1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.FileChooserWidget</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkfilechooserdialog.html" title="gtk.FileChooserDialog"><link rel="next" href="class-gtkfilefilter.html" title="gtk.FileFilter"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.FileChooserWidget</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkfilechooserdialog.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkfilefilter.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkfilechooserwidget"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.FileChooserWidget</h2><p>gtk.FileChooserWidget — a file chooser
widget that can be embedded in other widgets(new in PyGTK
2.4)</p></div><div class="refsect1" lang="en"><a name="id3420362"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.FileChooserWidget</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtkvbox.html" title="gtk.VBox">gtk.VBox</a></span></span>, <span class="ooclass"><span class="classname"><a href="class-gtkfilechooser.html" title="gtk.FileChooser">gtk.FileChooser</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a href="class-gtkfilechooserwidget.html#constructor-gtkfilechooserwidget" title="Constructor">gtk.FileChooserWidget</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>action</tt></b></span><span class="initializer">=gtk.FILE_CHOOSER_ACTION_OPEN</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>backend</tt></b></span><span class="initializer">=None</span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3420422"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
+-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a href="class-gtkbox.html" title="gtk.Box">gtk.Box</a>
+-- <a href="class-gtkvbox.html" title="gtk.VBox">gtk.VBox</a>
+-- <a href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget">gtk.FileChooserWidget</a> (implements <a href="class-gtkfilechooser.html" title="gtk.FileChooser">gtk.FileChooser</a>)
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3420473"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>The <a href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><tt class="classname">gtk.FileChooserWidget</tt></a>
is a widget suitable for selecting files. It is the main building block of a
<a href="class-gtkfilechooserdialog.html" title="gtk.FileChooserDialog"><tt class="classname">gtk.FileChooserDialog</tt></a>. Most
applications will only need to use the latter; you can use <a href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><tt class="classname">gtk.FileChooserWidget</tt></a>
as part of a larger window if you have special needs.</p><p>Note that <a href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><tt class="classname">gtk.FileChooserWidget</tt></a>
does not have any methods, signals or properties of its own. Instead, you
should use the methods, signals and properties of the <a href="class-gtkfilechooser.html" title="gtk.FileChooser"><tt class="classname">gtk.FileChooser</tt></a>.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkfilechooserwidget"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.FileChooserWidget</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>action</tt></b></span><span class="initializer">=gtk.FILE_CHOOSER_ACTION_OPEN</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>backend</tt></b></span><span class="initializer">=None</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>action</tt></b>:</span></td><td>The open or save mode for the
widget or <tt class="literal">None</tt>.</td></tr><tr><td><span class="term"><b class="parameter"><tt>backend</tt></b>:</span></td><td>The name of the specific filesystem backend to
use or <tt class="literal">None</tt>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new <a href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><tt class="classname">gtk.FileChooserWidget</tt></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.4 and above.</p></div><p>Creates a new <a href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><tt class="classname">gtk.FileChooserWidget</tt></a>.
This is a file chooser widget that can be embedded in custom windows, and it
is the same widget that is used by <a href="class-gtkfilechooserdialog.html" title="gtk.FileChooserDialog"><tt class="classname">gtk.FileChooserDialog</tt></a>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkfilechooserdialog.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtkfilefilter.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.FileChooserDialog</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.FileFilter</td></tr></table></div></body></html>
|