Your IP : 216.73.216.48
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Buildable</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><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="prev" href="class-gtkbox.html" title="gtk.Box"><link rel="next" href="class-gtkbuilder.html" title="gtk.Builder"></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.Buildable</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkbox.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkbuilder.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.Buildable"><a name="class-gtkbuildable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Buildable</h2><p>gtk.Buildable — Interface for objects that can be built by GtkBuilder.</p></div><div class="refsect1" title="Synopsis"><a name="id3487059"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Buildable</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-ginterface">gobject.GInterface</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--add-child" title="gtk.Buildable.add_child">add_child</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>builder</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--construct-child" title="gtk.Buildable.construct_child">construct_child</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>builder</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--get-internal-child" title="gtk.Buildable.get_internal_child">get_internal_child</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>builder</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>childname</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--get-name" title="gtk.Buildable.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--parser-finished" title="gtk.Buildable.parser_finished">parser_finished</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>builder</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--set-name" title="gtk.Buildable.set_name">set_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3531020"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-ginterface">gobject.GInterface</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable">gtk.Buildable</a>
</pre></div><div class="refsect1" title="Known Implementation"><a name="id3473366"></a><h2>Known Implementation</h2><p>
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
is implementated by
<a class="link" href="class-gtkbin.html" title="gtk.Bin"><code class="classname">gtk.Bin</code></a>,
<a class="link" href="class-gtktreeview.html" title="gtk.TreeView"><code class="classname">gtk.TreeView</code></a>,
<a class="link" href="class-gtkbuttonbox.html" title="gtk.ButtonBox"><code class="classname">gtk.ButtonBox</code></a>,
<a class="link" href="class-gtkpaned.html" title="gtk.Paned"><code class="classname">gtk.Paned</code></a>,
<a class="link" href="class-gtkcolorselectiondialog.html" title="gtk.ColorSelectionDialog"><code class="classname">gtk.ColorSelectionDialog</code></a>,
<a class="link" href="class-gtkvbuttonbox.html" title="gtk.VButtonBox"><code class="classname">gtk.VButtonBox</code></a>,
<a class="link" href="class-gtktearoffmenuitem.html" title="gtk.TearoffMenuItem"><code class="classname">gtk.TearoffMenuItem</code></a>,
<a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a>,
<a class="link" href="class-gtkoptionmenu.html" title="gtk.OptionMenu"><code class="classname">gtk.OptionMenu</code></a>,
<a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a>,
<a class="link" href="class-gtkcalendar.html" title="gtk.Calendar"><code class="classname">gtk.Calendar</code></a>,
<a class="link" href="class-gtkfixed.html" title="gtk.Fixed"><code class="classname">gtk.Fixed</code></a>,
<a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a>,
<a class="link" href="class-gtkhbuttonbox.html" title="gtk.HButtonBox"><code class="classname">gtk.HButtonBox</code></a>,
<a class="link" href="class-gtkinputdialog.html" title="gtk.InputDialog"><code class="classname">gtk.InputDialog</code></a>,
<a class="link" href="class-gtkradiobutton.html" title="gtk.RadioButton"><code class="classname">gtk.RadioButton</code></a>,
<a class="link" href="class-gtkvruler.html" title="gtk.VRuler"><code class="classname">gtk.VRuler</code></a>,
<a class="link" href="class-gtkvseparator.html" title="gtk.VSeparator"><code class="classname">gtk.VSeparator</code></a>,
<a class="link" href="class-gtkvbox.html" title="gtk.VBox"><code class="classname">gtk.VBox</code></a>,
<a class="link" href="class-gtkcurve.html" title="gtk.Curve"><code class="classname">gtk.Curve</code></a>,
<a class="link" href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><code class="classname">gtk.RadioToolButton</code></a>,
<a class="link" href="class-gtkhruler.html" title="gtk.HRuler"><code class="classname">gtk.HRuler</code></a>,
<a class="link" href="class-gtktogglebutton.html" title="gtk.ToggleButton"><code class="classname">gtk.ToggleButton</code></a>,
<a class="link" href="class-gtkseparatormenuitem.html" title="gtk.SeparatorMenuItem"><code class="classname">gtk.SeparatorMenuItem</code></a>,
<a class="link" href="class-gtkhscale.html" title="gtk.HScale"><code class="classname">gtk.HScale</code></a>,
<a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a>,
<a class="link" href="class-gtktreeviewcolumn.html" title="gtk.TreeViewColumn"><code class="classname">gtk.TreeViewColumn</code></a>,
<a class="link" href="class-gtkimagemenuitem.html" title="gtk.ImageMenuItem"><code class="classname">gtk.ImageMenuItem</code></a>,
<a class="link" href="class-gtkfilechooserbutton.html" title="gtk.FileChooserButton"><code class="classname">gtk.FileChooserButton</code></a>,
<a class="link" href="class-gtkcheckbutton.html" title="gtk.CheckButton"><code class="classname">gtk.CheckButton</code></a>,
<a class="link" href="class-gtkradiomenuitem.html" title="gtk.RadioMenuItem"><code class="classname">gtk.RadioMenuItem</code></a>,
<a class="link" href="class-gtkmenushell.html" title="gtk.MenuShell"><code class="classname">gtk.MenuShell</code></a>,
<a class="link" href="class-gtkstatusbar.html" title="gtk.Statusbar"><code class="classname">gtk.StatusBar</code></a>,
<a class="link" href="class-gtkdrawingarea.html" title="gtk.DrawingArea"><code class="classname">gtk.DrawingArea</code></a>,
<a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>,
<a class="link" href="class-gtkiconview.html" title="gtk.IconView"><code class="classname">gtk.IconView</code></a>,
<a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>,
<a class="link" href="class-gtkuimanager.html" title="gtk.UIManager"><code class="classname">gtk.UIManager</code></a>,
<a class="link" href="class-gtksocket.html" title="gtk.Socket"><code class="classname">gtk.Socket</code></a>,
<a class="link" href="class-gtkvscale.html" title="gtk.VScale"><code class="classname">gtk.VScale</code></a>,
<a class="link" href="class-gtkgammacurve.html" title="gtk.GammaCurve"><code class="classname">gtk.GammaCurve</code></a>,
<a class="link" href="class-gtkalignment.html" title="gtk.Alignment"><code class="classname">gtk.Alignment</code></a>,
<a class="link" href="class-gtkmenutoolbutton.html" title="gtk.MenuToolButton"><code class="classname">gtk.MenuToolButton</code></a>,
<a class="link" href="class-gtkmenuitem.html" title="gtk.MenuItem"><code class="classname">gtk.MenuItem</code></a>,
<a class="link" href="class-gtkpagesetupunixdialog.html" title="gtkunixprint.PageSetupUnixDialog"><code class="classname">gtk.PageSetupUnixDialog</code></a>,
<a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu"><code class="classname">gtk.RecentChooserMenu</code></a>,
<a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>,
<a class="link" href="class-gtkhseparator.html" title="gtk.HSeparator"><code class="classname">gtk.HSeparator</code></a>,
<a class="link" href="class-gtkprogressbar.html" title="gtk.ProgressBar"><code class="classname">gtk.ProgressBar</code></a>,
<a class="link" href="class-gtkactiongroup.html" title="gtk.ActionGroup"><code class="classname">gtk.ActionGroup</code></a>,
<a class="link" href="class-gtkrange.html" title="gtk.Range"><code class="classname">gtk.Range</code></a>,
<a class="link" href="class-gtkassistant.html" title="gtk.Assistant"><code class="classname">gtk.Assistant</code></a>,
<a class="link" href="class-gtkfileselection.html" title="gtk.FileSelection"><code class="classname">gtk.FileSelection</code></a>,
<a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.ToolBar</code></a>,
<a class="link" href="class-gtkaccellabel.html" title="gtk.AccelLabel"><code class="classname">gtk.AccellLabel</code></a>,
<a class="link" href="class-gtkrecentchooserdialog.html" title="gtk.RecentChooserDialog"><code class="classname">gtk.RecentChooserDialog</code></a>,
<a class="link" href="class-gtkexpander.html" title="gtk.Expander"><code class="classname">gtk.Expander</code></a>,
<a class="link" href="class-gtkscale.html" title="gtk.Scale"><code class="classname">gtk.Scale</code></a>,
<a class="link" href="class-gtktreestore.html" title="gtk.TreeStore"><code class="classname">gtk.TreeStore</code></a>,
<a class="link" href="class-gtkmessagedialog.html" title="gtk.MessageDialog"><code class="classname">gtk.MessageDialog</code></a>,
<a class="link" href="class-gtkseparator.html" title="gtk.Separator"><code class="classname">gtk.Separator</code></a>,
<a class="link" href="class-gtklayout.html" title="gtk.Layout"><code class="classname">gtk.Layout</code></a>,
<a class="link" href="class-gtkfontselection.html" title="gtk.FontSelection"><code class="classname">gtk.FontSelection</code></a>,
<a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a>,
<a class="link" href="class-gtkinvisible.html" title="gtk.Invisible"><code class="classname">gtk.Invisible</code></a>,
<a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a>,
<a class="link" href="class-gtkseparatortoolitem.html" title="gtk.SeparatorToolItem"><code class="classname">gtk.SeparatorToolItem</code></a>,
<a class="link" href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><code class="classname">gtk.FileChooserWidget</code></a>,
<a class="link" href="class-gtkcheckmenuitem.html" title="gtk.CheckMenuItem"><code class="classname">gtk.CheckMenuItem</code></a>,
<a class="link" href="class-gtktoolbutton.html" title="gtk.ToolButton"><code class="classname">gtk.ToolButton</code></a>,
<a class="link" href="class-gtkmisc.html" title="gtk.Misc"><code class="classname">gtk.Misc</code></a>,
<a class="link" href="class-gtkeventbox.html" title="gtk.EventBox"><code class="classname">gtk.EventBox</code></a>,
<a class="link" href="class-gtkfontbutton.html" title="gtk.FontButton"><code class="classname">gtkFontButton.</code></a>,
<a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"><code class="classname">gtk.EntryCompletion</code></a>,
<a class="link" href="class-gtkdialog.html" title="gtk.Dialog"><code class="classname">gtk.Dialog</code></a>,
<a class="link" href="class-gtkhbox.html" title="gtk.HBox"><code class="classname">gtk.HBox</code></a>,
<a class="link" href="class-gtkcombo.html" title="gtk.Combo"><code class="classname">gtk.Combo</code></a>,
<a class="link" href="class-gtkaspectframe.html" title="gtk.AspectFrame"><code class="classname">gtk.AspectFrame</code></a>,
<a class="link" href="class-gtkaboutdialog.html" title="gtk.AboutDialog"><code class="classname">gtk.AboutDialog</code></a>,
<a class="link" href="class-gtkhscrollbar.html" title="gtk.HScrollbar"><code class="classname">gtk.HScrollBar</code></a>,
<a class="link" href="class-gtkliststore.html" title="gtk.ListStore"><code class="classname">gtk.Liststore</code></a>,
<a class="link" href="class-gtkscalebutton.html" title="gtk.ScaleButton"><code class="classname">gtk.ScaleButton</code></a>,
<a class="link" href="class-gtkrecentchooserwidget.html" title="gtk.RecentChooserWidget"><code class="classname">gtk.RecentChooserWidget</code></a>,
<a class="link" href="class-gtktoggletoolbutton.html" title="gtk.ToggleToolButton"><code class="classname">gtk.ToggleToolButton</code></a>,
<a class="link" href="class-gtkcombobox.html" title="gtk.ComboBox"><code class="classname">gtk.ComboBox</code></a>,
<a class="link" href="class-gtkvscrollbar.html" title="gtk.VScrollbar"><code class="classname">gtk.VScrollBar</code></a>,
<a class="link" href="class-gtkframe.html" title="gtk.Frame"><code class="classname">gtk.Frame</code></a>,
<a class="link" href="class-gtkspinbutton.html" title="gtk.SpinButton"><code class="classname">gtk.SpinButton</code></a>,
<a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a>,
<a class="link" href="class-gtkfontselectiondialog.html" title="gtk.FontSelectionDialog"><code class="classname">gtk.FontSelectionDialog</code></a>,
<a class="link" href="class-gtkcolorselection.html" title="gtk.ColorSelection"><code class="classname">gtk.ColorSelection</code></a>,
<a class="link" href="class-gtkitem.html" title="gtk.Item"><code class="classname">gtk.Item</code></a>,
<a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>,
<a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction"><code class="classname">gtk.RecentAction</code></a>,
<a class="link" href="class-gtkvolumebutton.html" title="gtk.VolumeButton"><code class="classname">gtk.VolumeButton</code></a>,
<a class="link" href="class-gtkmenubar.html" title="gtk.MenuBar"><code class="classname">gtk.MenuBar</code></a>,
<a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>,
<a class="link" href="class-gtkarrow.html" title="gtk.Arrow"><code class="classname">gtk.Arrow</code></a>,
<a class="link" href="class-gtktoggleaction.html" title="gtk.ToggleAction"><code class="classname">gtk.ToggleAction</code></a>,
<a class="link" href="class-gtkradioaction.html" title="gtk.RadioAction"><code class="classname">gtk.RadioAction</code></a>,
<a class="link" href="class-gtkplug.html" title="gtk.Plug"><code class="classname">gtk.Plug</code></a>,
<a class="link" href="class-gtkhpaned.html" title="gtk.HPaned"><code class="classname">gtk.HPaned</code></a>,
<a class="link" href="class-gtkbox.html" title="gtk.Box"><code class="classname">gtk.Box</code></a>,
<a class="link" href="class-gtkmenu.html" title="gtk.Menu"><code class="classname">gtk.Menu</code></a>,
<a class="link" href="class-gtkaction.html" title="gtk.Action"><code class="classname">gtk.Action</code></a>,
<a class="link" href="class-gtkprintunixdialog.html" title="gtkunixprint.PrintUnixDialog"><code class="classname">gtk.PrintUnixDialog</code></a>,
<a class="link" href="class-gtkcomboboxentry.html" title="gtk.ComboBoxEntry"><code class="classname">gtk.ComboBoxEntry</code></a>,
<a class="link" href="class-gtkcolorbutton.html" title="gtk.ColorButton"><code class="classname">gtk.ColorButton</code></a>,
<a class="link" href="class-gtkfilechooserdialog.html" title="gtk.FileChooserDialog"><code class="classname">gtk.FileChooserDialog</code></a>,
<a class="link" href="class-gtkruler.html" title="gtk.Ruler"><code class="classname">gtk.Ruler</code></a>,
<a class="link" href="class-gtkvpaned.html" title="gtk.VPaned"><code class="classname">gtk.VPaned</code></a>,
<a class="link" href="class-gtkhandlebox.html" title="gtk.HandleBox"><code class="classname">gtk.HandleBox</code></a>,
<a class="link" href="class-gtkscrollbar.html" title="gtk.Scrollbar"><code class="classname">gtk.Srollbar</code></a>,
<a class="link" href="class-gtkcontainer.html" title="gtk.Container"><code class="classname">gtk.Container</code></a>,
<a class="link" href="class-gtksizegroup.html" title="gtk.SizeGroup"><code class="classname">gtk.SizeGroup</code></a>,
<a class="link" href="class-gtkviewport.html" title="gtk.Viewport"><code class="classname">gtk.ViewPort</code></a>,
<a class="link" href="class-gtkscrolledwindow.html" title="gtk.ScrolledWindow"><code class="classname">gtk.ScrolledWindow</code></a>,
</p></div><div class="refsect1" title="Description"><a name="id3012698"></a><h2>Description</h2><p>
In order to allow construction from a <a class="link" href="class-gtkbuilder.html#gtkbuilder-ui-definition" title="gtk.Builder UI definition">GtkBuilder UI description</a>,
an object class must implement the GtkBuildable interface. The interface includes methods for setting
names and properties of objects, parsing custom tags, constructing child objects.
</p><p>
The GtkBuildable interface is implemented by all widgets and many of the non-widget objects that are provided
by GTK+. The main user of this interface is GtkBuilder, there should be very little need for applications to
call any gtk.Buildable methods.
</p></div><div class="refsect1" title="Methods"><a name="id2925988"></a><h2>Methods</h2><div class="refsect2" title="gtk.Buildable.add_child"><a name="method-gtkbuildable--add-child"></a><h3>gtk.Buildable.add_child</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">add_child</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>builder</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>type</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>builder</code></strong> :</span></p></td><td>
A <a class="link" href="class-gtkbuilder.html" title="gtk.Builder"><code class="classname">gtk.Builder</code></a>
</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>child</code></strong> :</span></p></td><td>The child to add.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>type</code></strong> :</span></p></td><td>
The kind of <em class="parameter"><code>child</code></em> or <code class="literal">None</code>.
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">add_child</code>() method adds a child to buildable. type is an
optional string describing how the child should be added.
</p></div><div class="refsect2" title="gtk.Buildable.construct_child"><a name="method-gtkbuildable--construct-child"></a><h3>gtk.Buildable.construct_child</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">construct_child</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>builder</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>name</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>builder</code></strong> :</span></p></td><td>
A <a class="link" href="class-gtkbuilder.html" title="gtk.Builder"><code class="classname">gtk.Builder</code></a>
</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>The name of child to construct.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>The constructed child.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">construct_child</code>() method constructs a child of buildable
with the name <em class="parameter"><code>name</code></em>.
</p><p>
GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
</p></div><div class="refsect2" title="gtk.Buildable.get_internal_child"><a name="method-gtkbuildable--get-internal-child"></a><h3>gtk.Buildable.get_internal_child</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_internal_child</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>builder</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>childname</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>builder</code></strong> :</span></p></td><td>
A <a class="link" href="class-gtkbuilder.html" title="gtk.Builder"><code class="classname">gtk.Builder</code></a>
</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>childname</code></strong> :</span></p></td><td>The name of child.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>The internal child of the buildable object.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">get_internal_child</code>() method gets the internal child
called childname of the buildable object.
</p></div><div class="refsect2" title="gtk.Buildable.get_name"><a name="method-gtkbuildable--get-name"></a><h3>gtk.Buildable.get_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_name</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>
The name set with
<code class="methodname"><a class="link" href="class-gtkbuildable.html#method-gtkbuildable--set-name" title="gtk.Buildable.set_name">set_name</a></code>
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">get_name</code>() method gets the name of the buildable object.
</p><p>
GtkBuilder sets the name based on the the
<a class="link" href="class-gtkbuilder.html#gtkbuilder-ui-definition" title="gtk.Builder UI definition">GtkBuilder UI description</a>
used to construct the buildable.
</p></div><div class="refsect2" title="gtk.Buildable.parser_finished"><a name="method-gtkbuildable--parser-finished"></a><h3>gtk.Buildable.parser_finished</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">parser_finished</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>builder</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>builder</code></strong> :</span></p></td><td>
A <a class="link" href="class-gtkbuilder.html" title="gtk.Builder"><code class="classname">gtk.Builder</code></a>
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">parser_finished</code>() method is called when the builder finishes
the parsing of a GtkBuilder UI definition. Note that this will be called once for each
time <code class="methodname"><a class="link" href="class-gtkbuilder.html#method-gtkbuilder--add-from-file" title="gtk.Builder.add_from_file">add_from_file</a></code>
or <code class="methodname"><a class="link" href="class-gtkbuilder.html#method-gtkbuilder--add-from-string" title="gtk.Builder.add_from_string">add_from_string</a></code>
is called on a builder.
</p></div><div class="refsect2" title="gtk.Buildable.set_name"><a name="method-gtkbuildable--set-name"></a><h3>gtk.Buildable.set_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_name</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>name</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>The name to set.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">set_name</code>() method sets the name of the buildable object.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkbox.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-gtkbuilder.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Box </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.Builder</td></tr></table></div></body></html>