| 1 | <?xml version="1.0" standalone="no"?> |
|---|
| 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
|---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> |
|---|
| 4 | |
|---|
| 5 | <refentry id="class-gtkbin"> |
|---|
| 6 | <refnamediv> |
|---|
| 7 | <refname>gtk.Bin</refname> |
|---|
| 8 | <refpurpose>an abstract base class defining a container with just one |
|---|
| 9 | child.</refpurpose> |
|---|
| 10 | </refnamediv> |
|---|
| 11 | |
|---|
| 12 | <refsect1> |
|---|
| 13 | <title>Synopsis</title> |
|---|
| 14 | |
|---|
| 15 | <classsynopsis language="python"> |
|---|
| 16 | <ooclass><classname>gtk.Bin</classname></ooclass> |
|---|
| 17 | <ooclass><classname><link |
|---|
| 18 | linkend="class-gtkcontainer">gtk.Container</link></classname></ooclass> |
|---|
| 19 | <methodsynopsis language="python"> |
|---|
| 20 | <methodname><link |
|---|
| 21 | linkend="method-gtkbin--get-child">get_child</link></methodname> |
|---|
| 22 | <methodparam></methodparam> </methodsynopsis> |
|---|
| 23 | </classsynopsis> |
|---|
| 24 | |
|---|
| 25 | </refsect1> |
|---|
| 26 | |
|---|
| 27 | <refsect1> |
|---|
| 28 | <title>Ancestry</title> |
|---|
| 29 | |
|---|
| 30 | <synopsis>+-- <link linkend="class-gobject">gobject.GObject</link> |
|---|
| 31 | +-- <link linkend="class-gtkobject">gtk.Object</link> |
|---|
| 32 | +-- <link linkend="class-gtkwidget">gtk.Widget</link> |
|---|
| 33 | +-- <link linkend="class-gtkcontainer">gtk.Container</link> |
|---|
| 34 | +-- <link linkend="class-gtkbin">gtk.Bin</link> |
|---|
| 35 | </synopsis> |
|---|
| 36 | |
|---|
| 37 | </refsect1> |
|---|
| 38 | |
|---|
| 39 | <refsect1 id="properties-gtkbin"> |
|---|
| 40 | <title>gtk.Bin Properties</title> |
|---|
| 41 | |
|---|
| 42 | <para><link linkend="properties-gtkobject">gtk.Object Properties</link></para> |
|---|
| 43 | <para><link linkend="properties-gtkwidget">gtk.Widget Properties</link></para> |
|---|
| 44 | <para><link linkend="properties-gtkcontainer">gtk.Container Properties</link></para> |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | </refsect1> |
|---|
| 48 | |
|---|
| 49 | <refsect1 id="style-properties-gtkbin"> |
|---|
| 50 | <title>gtk.Bin Style Properties</title> |
|---|
| 51 | |
|---|
| 52 | <para><link linkend="style-properties-gtkwidget">gtk.Widget Style Properties</link></para> |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | </refsect1> |
|---|
| 56 | |
|---|
| 57 | <refsect1 id="signal-prototypes-gtkbin"> |
|---|
| 58 | <title>gtk.Bin Signal Prototypes</title> |
|---|
| 59 | |
|---|
| 60 | <para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para> |
|---|
| 61 | <para><link linkend="signal-prototypes-gtkobject">gtk.Object Signal Prototypes</link></para> |
|---|
| 62 | <para><link linkend="signal-prototypes-gtkwidget">gtk.Widget Signal Prototypes</link></para> |
|---|
| 63 | <para><link linkend="signal-prototypes-gtkcontainer">gtk.Container Signal Prototypes</link></para> |
|---|
| 64 | </refsect1> |
|---|
| 65 | |
|---|
| 66 | <refsect1> |
|---|
| 67 | <title>Attributes</title> |
|---|
| 68 | |
|---|
| 69 | <blockquote role="properties"> |
|---|
| 70 | <informaltable pgwide="1" frame="none"> |
|---|
| 71 | <tgroup cols="3"> |
|---|
| 72 | <colspec column="1" colwidth="1in"/> |
|---|
| 73 | <colspec column="2" colwidth="1in"/> |
|---|
| 74 | <colspec column="3" colwidth="4in"/> |
|---|
| 75 | <tbody> |
|---|
| 76 | |
|---|
| 77 | <row valign="top"> |
|---|
| 78 | <entry>"child"</entry> |
|---|
| 79 | <entry>Read</entry> |
|---|
| 80 | <entry>The child widget or <literal>None</literal> if there |
|---|
| 81 | is no child.</entry> |
|---|
| 82 | </row> |
|---|
| 83 | |
|---|
| 84 | </tbody> |
|---|
| 85 | </tgroup> |
|---|
| 86 | </informaltable> |
|---|
| 87 | </blockquote> |
|---|
| 88 | |
|---|
| 89 | </refsect1> |
|---|
| 90 | |
|---|
| 91 | <refsect1> |
|---|
| 92 | <title>Description</title> |
|---|
| 93 | |
|---|
| 94 | <para><link linkend="class-gtkbin"><classname>gtk.Bin</classname></link> |
|---|
| 95 | is an abstract base class defining a widget that is a container with just |
|---|
| 96 | one child. It is useful for deriving subclasses, since it provides the |
|---|
| 97 | common code needed for handling a single child widget. Many PyGTK widgets |
|---|
| 98 | are subclasses of <link |
|---|
| 99 | linkend="class-gtkbin"><classname>gtk.Bin</classname></link>, including |
|---|
| 100 | <link linkend="class-gtkwindow"><classname>gtk.Window</classname></link>, |
|---|
| 101 | <link linkend="class-gtkbutton"><classname>gtk.Button</classname></link>, |
|---|
| 102 | <link linkend="class-gtkframe"><classname>gtk.Frame</classname></link>, |
|---|
| 103 | <link |
|---|
| 104 | linkend="class-gtkhandlebox"><classname>gtk.HandleBox</classname></link>, |
|---|
| 105 | and <link |
|---|
| 106 | linkend="class-gtkscrolledwindow"><classname>gtk.ScrolledWindow</classname></link>.</para> |
|---|
| 107 | |
|---|
| 108 | </refsect1> |
|---|
| 109 | |
|---|
| 110 | <refsect1> |
|---|
| 111 | <title>Methods</title> |
|---|
| 112 | |
|---|
| 113 | <refsect2 id="method-gtkbin--get-child"> |
|---|
| 114 | <title>gtk.Bin.get_child</title> |
|---|
| 115 | |
|---|
| 116 | <programlisting><methodsynopsis language="python"> |
|---|
| 117 | <methodname>get_child</methodname> |
|---|
| 118 | <methodparam></methodparam> </methodsynopsis></programlisting> |
|---|
| 119 | <variablelist> |
|---|
| 120 | <varlistentry> |
|---|
| 121 | <term><emphasis>Returns</emphasis> :</term> |
|---|
| 122 | <listitem><simpara>a reference to the child |
|---|
| 123 | widget</simpara></listitem> |
|---|
| 124 | </varlistentry> |
|---|
| 125 | </variablelist> |
|---|
| 126 | |
|---|
| 127 | <para>The <methodname>get_child</methodname>() method returns a |
|---|
| 128 | reference to the child of the bin, or <literal>None</literal> if the bin |
|---|
| 129 | contains no child widget.</para> |
|---|
| 130 | |
|---|
| 131 | </refsect2> |
|---|
| 132 | |
|---|
| 133 | </refsect1> |
|---|
| 134 | |
|---|
| 135 | </refentry> |
|---|