/usr/share/gtk-doc/html/pygtk/class-gtkobject.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Object</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-gtknotebook.html" title="gtk.Notebook"><link rel="next" href="class-gtkoffscreenwindow.html" title="gtk.OffscreenWindow"></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.Object</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtknotebook.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkoffscreenwindow.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.Object"><a name="class-gtkobject"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Object</h2><p>gtk.Object — the base class of the PyGTK type hierarchy.</p></div><div class="refsect1" title="Synopsis"><a name="id3814796"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Object</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#method-gtkobject--flags" title="gtk.Object.flags">flags</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#method-gtkobject--set-flags" title="gtk.Object.set_flags">set_flags</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>flags</code></em></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#method-gtkobject--unset-flags" title="gtk.Object.unset_flags">unset_flags</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>flags</code></em></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#method-gtkobject--destroy" title="gtk.Object.destroy">destroy</a></span>(<span class="methodparam"></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-gtkobject.html#function-gtk--bindings-activate" title="gtk.bindings_activate">gtk.bindings_activate</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>object</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>modifiers</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#function-gtk--bindings-activate-event" title="gtk.bindings_activate_event">gtk.bindings_activate_event</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>object</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>event</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#function-gtk--binding-entry-add-signal" title="gtk.binding_entry_add_signal">gtk.binding_entry_add_signal</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>object</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>keyval</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>modifiers</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>signal_name</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkobject.html#function-gtk--binding-entry-remove" title="gtk.binding_entry_remove">gtk.binding_entry_remove</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>class_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>modifiers</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3815146"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
</pre></div><div class="refsect1" title="gtk.Object Properties"><a name="properties-gtkobject"></a><h2>gtk.Object Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"user-data"</td><td valign="top">Read-Write</td><td valign="top">Anonymous User Data Pointer</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Object Signal Prototypes"><a name="signal-prototypes-gtkobject"></a><h2>gtk.Object Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkobject.html#signal-gtkobject--destroy" title='The "destroy" gtk.Object Signal'>destroy</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>object</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id3815334"></a><h2>Description</h2><p><a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> is the
base class for all widgets, and for a few non-widget objects such as <a class="link" href="class-gtkadjustment.html" title="gtk.Adjustment"><code class="classname">gtk.Adjustment</code></a>.
<a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a>
predates <PYGTKDOCLINK HREF="class-gobject"><code class="classname">GObject</code></PYGTKDOCLINK>; non-widgets
that derive from <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> rather
than <PYGTKDOCLINK HREF="class-gobject"><code class="classname">GObject</code></PYGTKDOCLINK> do
so for backward compatibility reasons.</p><p>The "destroy" signal, emitted by the <a class="link" href="class-gtkobject.html#method-gtkobject--destroy" title="gtk.Object.destroy"><code class="methodname">destroy</code>()</a>
method asks all code owning a GTK reference to the object to release its GTK
reference. So, for example, if you call
<code class="methodname">window.destroy</code>() where
<em class="parameter"><code>window</code></em> is a <a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a>, GTK will
release the GTK reference count that it owns; if you call
<code class="methodname">button.destroy</code>() where button is a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>,
<em class="parameter"><code>button</code></em> will be removed from its parent container and
the parent container will release its GTK reference to
<em class="parameter"><code>button</code></em>. Because these GTK references are released,
calling <a class="link" href="class-gtkobject.html#method-gtkobject--destroy" title="gtk.Object.destroy"><code class="methodname">destroy</code>()</a>
should result in freeing all memory associated with an object (finalizing
it) if the GTK reference count reaches zero. However, in PyGTK the GTK
objects are wrapped in a Python object that has its own reference counting
mechanism. The <a class="link" href="class-gtkobject.html#method-gtkobject--destroy" title="gtk.Object.destroy"><code class="methodname">destroy</code>()</a>
method does not affect the Python reference counts. The GTK object
associated with a Python object will not be released until the Python object
reference count reaches zero. Therefore, calling the <a class="link" href="class-gtkobject.html#method-gtkobject--destroy" title="gtk.Object.destroy"><code class="methodname">destroy</code>()</a>
method will not result in the finalization of the GTK object until the
Python object is finalized. In the case mentioned above if a <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a> is
destroyed using the <a class="link" href="class-gtkobject.html#method-gtkobject--destroy" title="gtk.Object.destroy"><code class="methodname">destroy</code>()</a>
method, it will be removed from its container and unmapped and unrealized
but it will not be finalized because the Python wrapper object will still
exist and hold a reference.</p></div><div class="refsect1" title="Methods"><a name="id3815502"></a><h2>Methods</h2><div class="refsect2" title="gtk.Object.flags"><a name="method-gtkobject--flags"></a><h3>gtk.Object.flags</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">flags</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 flags set for the
object</td></tr></tbody></table><p>The <code class="methodname">flags</code>() method returns the value of
the flags for the object. The flags returned will include both the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> flags and
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
flags.</p><p>The <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> flags
are:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.IN_DESTRUCTION</code></span></p></td><td>the object is currently being destroyed.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.FLOATING</code></span></p></td><td>the object is orphaned.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.RESERVED_1</code></span></p></td><td>reserved for future use</td></tr><tr><td><p><span class="term"><code class="literal">gtk.RESERVED_2</code></span></p></td><td>reserved for future use</td></tr></tbody></table><p>The <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> flags
are:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.TOPLEVEL</code></span></p></td><td>widgets without a real parent (e.g. <a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a> and <a class="link" href="class-gtkmenu.html" title="gtk.Menu"><code class="classname">gtk.Menu</code></a>) have this
flag set throughout their lifetime. Toplevel widgets always contain their
own <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.NO_WINDOW</code></span></p></td><td>a widget that does not provide its own <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>.
Visible action (e.g. drawing) is performed on the parent's <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.REALIZED</code></span></p></td><td>the widget has an associated <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.MAPPED</code></span></p></td><td>the widget can be displayed on the screen.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.VISIBLE</code></span></p></td><td>the widget will be mapped as soon as its parent is
mapped.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.SENSITIVE</code></span></p></td><td>The sensitivity of a widget determines whether it will
receive certain events (e.g. button or key presses). One requirement for the
widget's sensitivity is to have this flag set.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.PARENT_SENSITIVE</code></span></p></td><td>This is the second requirement for the widget's
sensitivity. Once a widget has <code class="literal">gtk.SENSITIVE</code> and
<code class="literal">gtk.PARENT_SENSITIVE set</code>, its state is effectively
sensitive.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.CAN_FOCUS</code></span></p></td><td>the widget is able to handle focus grabs.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.HAS_FOCUS</code></span></p></td><td>the widget has the focus - assumes that
<code class="literal">gtk.CAN_FOCUS</code> is set</td></tr><tr><td><p><span class="term"><code class="literal">gtk.CAN_DEFAULT</code></span></p></td><td>the widget is allowed to receive the default
action.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.HAS_DEFAULT</code></span></p></td><td>the widget currently will receive the default
action.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.HAS_GRAB</code></span></p></td><td>the widget is in the grab_widgets stack, and will be
the preferred one for receiving events.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.RC_STYLE</code></span></p></td><td>the widgets style has been looked up through the RC
mechanism. It does not imply that the widget actually had a style defined
through the RC mechanism.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.COMPOSITE_CHILD</code></span></p></td><td>the widget is a composite child of its
parent.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.NO_REPARENT</code></span></p></td><td>unused</td></tr><tr><td><p><span class="term"><code class="literal">gtk.APP_PAINTABLE</code></span></p></td><td>set on widgets whose window the application directly
draws on, in order to keep GTK from overwriting the drawn stuff.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.RECEIVES_DEFAULT</code></span></p></td><td>the widget when focused will receive the default action
and have <code class="literal">gtk.HAS_DEFAULT</code> set even if there is a different
widget set as default.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.DOUBLE_BUFFERED</code></span></p></td><td>exposes done on the widget should be
double-buffered.</td></tr></tbody></table></div><div class="refsect2" title="gtk.Object.set_flags"><a name="method-gtkobject--set-flags"></a><h3>gtk.Object.set_flags</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_flags</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>flags</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>flags</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> and <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> flags to
be set on this object</td></tr></tbody></table><p>The <code class="methodname">set_flags</code>() method sets the object
flags according to the value of <em class="parameter"><code>flags</code></em>. See <a class="link" href="class-gtkobject.html#method-gtkobject--flags" title="gtk.Object.flags"><code class="methodname">flags</code>()</a>
for a description of the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> and <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> flags
that can be set.</p></div><div class="refsect2" title="gtk.Object.unset_flags"><a name="method-gtkobject--unset-flags"></a><h3>gtk.Object.unset_flags</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">unset_flags</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>flags</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>flags</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> and <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> flags to
be unset on this object</td></tr></tbody></table><p>The <code class="methodname">unset_flags</code>() method unsets the
object flags according to the value of <em class="parameter"><code>flags</code></em>. See
<a class="link" href="class-gtkobject.html#method-gtkobject--flags" title="gtk.Object.flags"><code class="methodname">flags</code>()</a>
for a description of the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> and <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> flags
that can be unset.</p></div><div class="refsect2" title="gtk.Object.destroy"><a name="method-gtkobject--destroy"></a><h3>gtk.Object.destroy</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">destroy</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">destroy</code>() method emits the
"destroy" signal notifying all reference holders that they should release
the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a>.</p></div></div><div class="refsect1" title="Functions"><a name="id3816386"></a><h2>Functions</h2><div class="refsect2" title="gtk.bindings_activate"><a name="function-gtk--bindings-activate"></a><h3>gtk.bindings_activate</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.bindings_activate</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>object</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>modifiers</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>object</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> to
activate the bindings on</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>keyval</code></strong> :</span></p></td><td>a key value</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>modifiers</code></strong> :</span></p></td><td>a modifier mask</td></tr><tr><td><p><span class="term"><strong class="parameter"><code></code></strong> :</span></p></td><td></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the binding could be
activated</td></tr></tbody></table><p>The <code class="function">gtk.bindings_activate</code>() function
activates the bindings associated with the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> specified
by object with the key value specified by <em class="parameter"><code>keyval</code></em> and
the modifier mask specified by <em class="parameter"><code>modifiers</code></em>.</p></div><div class="refsect2" title="gtk.bindings_activate_event"><a name="function-gtk--bindings-activate-event"></a><h3>gtk.bindings_activate_event</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.bindings_activate_event</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>object</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>event</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>object</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> to
activate the bindings on</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>event</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if a matching key
binding was found</td></tr></tbody></table><p>The <code class="function">gtk.bindings_activate_event</code>() function
looks up key bindings for the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> specified
by <em class="parameter"><code>object</code></em> to find one matching the key <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a>
specified by <em class="parameter"><code>event</code></em>, and if one was found, activate
it.</p></div><div class="refsect2" title="gtk.binding_entry_add_signal"><a name="function-gtk--binding-entry-add-signal"></a><h3>gtk.binding_entry_add_signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.binding_entry_add_signal</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>object</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>keyval</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>modifiers</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>signal_name</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</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>object</code></em> :</span></p></td><td>the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a>
class the binding entry will be associated with</td></tr><tr><td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td><td>the key value</td></tr><tr><td><p><span class="term"><em class="parameter"><code>modifiers</code></em> :</span></p></td><td>the modifier mask</td></tr><tr><td><p><span class="term"><em class="parameter"><code>signal_name</code></em> :</span></p></td><td>the signal name</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>zero or more pairs of value type-value
pairs</td></tr></tbody></table><p>The <code class="function">gtk.binding_entry_add_signal</code>() function
adds a binding (specified by <em class="parameter"><code>keyval</code></em> and
<em class="parameter"><code>modifiers</code></em>) to the binding set of the object class
derived from <em class="parameter"><code>object</code></em>. The signal specified by
<em class="parameter"><code>signal_name</code></em> will be emitted with the optional
arguments specified by the argument pairs denoted by ... that are value type
and value. This function is used when creating a new widget class to set up
key bindings.</p></div><div class="refsect2" title="gtk.binding_entry_remove"><a name="function-gtk--binding-entry-remove"></a><h3>gtk.binding_entry_remove</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.binding_entry_remove</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>class_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>modifiers</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>class_type</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a>
class the binding entry will be removed from</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>keyval</code></strong> :</span></p></td><td>the key value</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>modifiers</code></strong> :</span></p></td><td>the modifier mask</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 function is available in PyGTK 2.2 and above.</p></div><p>The <code class="function">gtk.binding_entry_remove</code>() function
removes the binding (specified by <em class="parameter"><code>keyval</code></em> and
<em class="parameter"><code>modifiers</code></em>) from the binding set of the object class
specified by <em class="parameter"><code>class_type</code></em>.</p></div></div><div class="refsect1" title="Signals"><a name="id3817159"></a><h2>Signals</h2><div class="refsect2" title='The "destroy" gtk.Object Signal'><a name="signal-gtkobject--destroy"></a><h3>The "destroy" gtk.Object Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>object</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</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>object</code></em> :</span></p></td><td>the object that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "destroy" signal is emitted when the references for the
object should be destroyed.</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-gtknotebook.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-gtkoffscreenwindow.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Notebook </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.OffscreenWindow</td></tr></table></div></body></html>
|