This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gladexml.html is in python-gtk2-doc 2.24.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.glade.XML</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="glade-class-reference.html" title="The gtk.glade Class Reference"><link rel="prev" href="glade-class-reference.html" title="The gtk.glade Class Reference"><link rel="next" href="pango-class-reference.html" title="The pango Class Reference"></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.glade.XML</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glade-class-reference.html">Prev</a> </td><th width="60%" align="center">The gtk.glade Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="pango-class-reference.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.glade.XML"><a name="class-gladexml"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.glade.XML</h2><p>gtk.glade.XML — Allows dynamic loading of user interfaces
                from XML descriptions.</p></div><div class="refsect1" title="Synopsis"><a name="id3350759"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.glade.XML</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gladexml.html#constructor-gladexml" title="Constructor">gtk.glade.XML</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fname</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>root</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>domain</code></strong></span><span class="initializer">=""</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>typedict</code></strong></span><span class="initializer">={}</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#method-gladexml--signal-connect" title="gtk.glade.XML.signal_connect">signal_connect</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>handler_name</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#method-gladexml--signal-autoconnect" title="gtk.glade.XML.signal_autoconnect">signal_autoconnect</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dict</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#method-gladexml--get-widget" title="gtk.glade.XML.get_widget">get_widget</a></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-gladexml.html#method-gladexml--get-widget-prefix" title="gtk.glade.XML.get_widget_prefix">get_widget_prefix</a></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-gladexml.html#method-gladexml--relative-file" title="gtk.glade.XML.relative_file">relative_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>

<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--xml-new-from-buffer" title="gtk.glade.xml_new_from_buffer">gtk.glade.xml_new_from_buffer</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>root</code></strong></span><span class="initializer">=""</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>domain</code></strong></span><span class="initializer">=""</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>typedict</code></strong></span><span class="initializer">={}</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--get-widget-name" title="gtk.glade.get_widget_name">gtk.glade.get_widget_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--get-widget-tree" title="gtk.glade.get_widget_tree">gtk.glade.get_widget_tree</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--set-custom-handler" title="gtk.glade.set_custom_handler">gtk.glade.set_custom_handler</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>handler</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--bindtextdomain" title="gtk.glade.bindtextdomain">gtk.glade.bindtextdomain</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>domainname</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dirname</code></strong></span><span class="initializer">=""</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--textdomain" title="gtk.glade.textdomain">gtk.glade.textdomain</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>domainname</code></strong></span><span class="initializer">=""</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gladexml.html#function-glade--set-custom-widget-callbacks" title="gtk.glade.set_custom_widget_callbacks">gtk.glade.set_custom_widget_callbacks</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dict</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3256698"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
      +-- <a class="link" href="class-gladexml.html" title="gtk.glade.XML">gtk.glade.XML</a>
    </pre></div><div class="refsect1" title="gtk.glade.XML Signal Prototypes"><a name="signal-prototypes-gladexml"></a><h2>gtk.glade.XML Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" title="Description"><a name="id3256662"></a><h2>Description</h2><p>This object represents an `instantiation' of an XML interface
description.  When one of these objects is created, the XML file is read,
and the interface is created. The <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a> object
then provides an interface for accessing the widgets in the interface by the
names assigned to them inside the XML description.</p><p>The <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a> object
can also be used to connect handlers to the named signals in the
description.  Libglade also provides an interface by which it can look up
the signal handler names in the program's symbol table and automatically
connect as many handlers up as it can that way.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gladexml"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.glade.XML</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fname</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>root</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>domain</code></strong></span><span class="initializer">=""</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>typedict</code></strong></span><span class="initializer">={}</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>fname</code></strong> :</span></p></td><td>the XML file name</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>root</code></strong> :</span></p></td><td>the widget node in <em class="parameter"><code>fname</code></em> to
start building from (or <code class="literal">None</code>)</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>domain</code></strong> :</span></p></td><td>the translation domain for the XML file (or
<code class="literal">""</code> for default)</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>typedict</code></strong> :</span></p></td><td>A dictionary used to lookup types (or
<code class="literal">{}</code> for default)</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a>
object</td></tr></tbody></table><p>Creates a new <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a> object
(and the corresponding widgets) from the XML file specified by
<em class="parameter"><code>fname</code></em>. Optionally it will only build the interface
from the widget node specified by <em class="parameter"><code>root</code></em> (if it is not
<code class="literal">None</code>).  This feature is useful if you only want to build
say a toolbar or menu from the XML file, but not the window it is embedded
in. Note also that the XML parse tree is cached to speed up creating another
<a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a>
object for the same file.</p></div><div class="refsect1" title="Methods"><a name="id3347217"></a><h2>Methods</h2><div class="refsect2" title="gtk.glade.XML.signal_connect"><a name="method-gladexml--signal-connect"></a><h3>gtk.glade.XML.signal_connect</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">signal_connect</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>handler_name</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</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"><em class="parameter"><code>handler_name</code></em> :</span></p></td><td>the signal handler name</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td><td>the signal handler function</td></tr></tbody></table><p>In the glade interface descriptions, signal handlers are
specified for widgets by name. The <code class="methodname">signal_connect</code>()
method allows you to connect a callback specified by
<em class="parameter"><code>func</code></em> to all signals in the <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a> file
with the signal handler name specified by
<em class="parameter"><code>handler_name</code></em>.</p></div><div class="refsect2" title="gtk.glade.XML.signal_autoconnect"><a name="method-gladexml--signal-autoconnect"></a><h3>gtk.glade.XML.signal_autoconnect</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">signal_autoconnect</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dict</code></strong></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>dict</code></strong> :</span></p></td><td>a mapping or an instance</td></tr></tbody></table><p>The <code class="methodname">signal_autoconnect</code>() method is a
variation of the <a class="link" href="class-gladexml.html#method-gladexml--signal-connect" title="gtk.glade.XML.signal_connect">gtk.glade.XML.signal_connect</a>
method. It uses Python's introspective features to look at the keys (if
<em class="parameter"><code>dict</code></em> is a mapping) or attributes (if
<em class="parameter"><code>dict</code></em> is an instance) and tries to match them with the
signal handler names given in the interface description. The callbacks
referenced by each matched key or attribute are connected to their matching
signals. The argument is called <code class="literal">dict</code> due to compatibility
reasons since originally only the mapping interface was supported. The
instance variant was introduced in PyGTK 2.0.</p></div><div class="refsect2" title="gtk.glade.XML.get_widget"><a name="method-gladexml--get-widget"></a><h3>gtk.glade.XML.get_widget</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_widget</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></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 of the widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the widget matching the name or
<code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">get_widget</code>() method returns a
reference to the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> specified
by <em class="parameter"><code>name</code></em> in the interface
description. <code class="literal">None</code> is returned, if
<em class="parameter"><code>name</code></em> doesn't specify a widget in the
interface.</p></div><div class="refsect2" title="gtk.glade.XML.get_widget_prefix"><a name="method-gladexml--get-widget-prefix"></a><h3>gtk.glade.XML.get_widget_prefix</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_widget_prefix</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></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 prefix the widget names or
<code class="literal">""</code> for all widgets</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>A list of widgets that match <em class="parameter"><code>name</code></em>
as the start of their name or <code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">get_widget_prefix</code>() method returns
a list of interface <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> objects
that have names prefixed by
<em class="parameter"><code>name</code></em>. <code class="literal">None</code> is returned if no
interface widget names match the prefix <em class="parameter"><code>name</code></em>.</p></div><div class="refsect2" title="gtk.glade.XML.relative_file"><a name="method-gladexml--relative-file"></a><h3>gtk.glade.XML.relative_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">relative_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></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>filename</code></strong> :</span></p></td><td>a relative file pathname</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the absolute file pathname</td></tr></tbody></table><p>The <code class="methodname">relative_file</code>() method resolves the
relative pathname specified by <em class="parameter"><code>filename</code></em>, using the
directory of the XML file as a base. If <em class="parameter"><code>filename</code></em>
contains an absolute pathname, then the original file name is
returned.</p></div></div><div class="refsect1" title="Functions"><a name="id3123886"></a><h2>Functions</h2><div class="refsect2" title="gtk.glade.xml_new_from_buffer"><a name="function-glade--xml-new-from-buffer"></a><h3>gtk.glade.xml_new_from_buffer</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.image_new_from_buffer</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>root</code></strong></span><span class="initializer">=""</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>domain</code></strong></span><span class="initializer">=""</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>typedict</code></strong></span><span class="initializer">={}</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>buffer</code></strong> :</span></p></td><td>the string containing the XML buffer</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>size</code></strong> :</span></p></td><td>size of the string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>root</code></strong> :</span></p></td><td>the widget node in fname to start building from
(or <code class="literal">""</code>)</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>domain</code></strong> :</span></p></td><td>the translation domain for the XML file (or
<code class="literal">""</code> for default)</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>typedict</code></strong> :</span></p></td><td>A dictionary used to lookup types (or
<code class="literal">{}</code> for default)</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a>
 object.</td></tr></tbody></table><p>The <code class="function">gtk.glade.xml_new_from_buffer</code>()
function creates a new <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a> object
(and the corresponding widgets) from the string specified by
<em class="parameter"><code>buffer</code></em>. Optionally it will only build the interface
from the widget node specified by <em class="parameter"><code>root</code></em> (if it is not
<code class="literal">""</code>).  This feature is useful if you only want to build
say a toolbar or menu from the XML document, but not the window it is
embedded in.</p></div><div class="refsect2" title="gtk.glade.get_widget_name"><a name="function-glade--get-widget-name"></a><h3>gtk.glade.get_widget_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.glade.get_widget_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></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>widget</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the name of the widget</td></tr></tbody></table><p>The <code class="function">gtk.glade.get_widget_name</code>() function
returns the name of the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> specified
by <em class="parameter"><code>widget</code></em> that was generated by a <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a>
object.</p></div><div class="refsect2" title="gtk.glade.get_widget_tree"><a name="function-glade--get-widget-tree"></a><h3>gtk.glade.get_widget_tree</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.glade.get_widget_tree</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></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>widget</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a>
object that built <em class="parameter"><code>widget</code></em></td></tr></tbody></table><p>This <code class="function">gtk.glade.get_widget_tree</code>() function
is used to get the <a class="link" href="class-gladexml.html" title="gtk.glade.XML"><code class="classname">gtk.glade.XML</code></a> object
that built the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> specified
by <em class="parameter"><code>widget</code></em>.</p></div><div class="refsect2" title="gtk.glade.set_custom_handler"><a name="function-glade--set-custom-handler"></a><h3>gtk.glade.set_custom_handler</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.glade.set_custom_handler</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>handler</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></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>handler</code></strong> :</span></p></td><td>the custom widget handler.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>user data passed to the custom handler.</td></tr></tbody></table><p>This <code class="function">gtk.glade.set_custom_handler</code>() function 
    allows you to override the default behaviour when a Custom widget is found in an interface.
  </p></div><div class="refsect2" title="gtk.glade.bindtextdomain"><a name="function-glade--bindtextdomain"></a><h3>gtk.glade.bindtextdomain</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.glade.bindtextdomain</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>domainname</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dirname</code></strong></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>domainname</code></strong> :</span></p></td><td>the name of the application.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>dirname</code></strong> :</span></p></td><td>the directory where to find locales.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the value of <em class="parameter"><code>dirname</code></em></td></tr></tbody></table><p>This <code class="function">gtk.glade.bindtextdomain</code>() function allows you to use internationalisation with glade.
  </p></div><div class="refsect2" title="gtk.glade.textdomain"><a name="function-glade--textdomain"></a><h3>gtk.glade.textdomain</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.glade.textdomain</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>domainname</code></strong></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>domainname</code></strong> :</span></p></td><td>the name of the application.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the value of <em class="parameter"><code>domainname</code></em></td></tr></tbody></table><p>This <code class="function">gtk.glade.textdomain</code>() function allows you to use internationalisation with glade.
  </p></div><div class="refsect2" title="gtk.glade.set_custom_widget_callbacks"><a name="function-glade--set-custom-widget-callbacks"></a><h3>gtk.glade.set_custom_widget_callbacks</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.glade.set_custom_widget_callbacks</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dict</code></strong></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>dict</code></strong> :</span></p></td><td>a dictionary of function names.</td></tr></tbody></table><p>This <code class="function">gtk.glade.set_custom_widget_callbacks</code>() function 
  takes a dictionary of function names-&gt;functions, for an example see 
  <a class="ulink" href="http://www.async.com.br/faq/pygtk/index.py" target="_top">PyGTK FAQ 22.7</a>
  for an example.
  </p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glade-class-reference.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="glade-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pango-class-reference.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The gtk.glade Class Reference </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> The pango Class Reference</td></tr></table></div></body></html>