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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673
|
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="class-gtkobject">
<refnamediv>
<refname>gtk.Object</refname>
<refpurpose>the base class of the PyGTK type hierarchy.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<classsynopsis language="python">
<ooclass><classname>gtk.Object</classname></ooclass>
<ooclass><classname><link
linkend="class-gobject">gobject.GObject</link></classname></ooclass>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkobject--flags">flags</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkobject--set-flags">set_flags</link></methodname>
<methodparam><parameter>flags</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkobject--unset-flags">unset_flags</link></methodname>
<methodparam><parameter>flags</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkobject--destroy">destroy</link></methodname>
<methodparam></methodparam> </methodsynopsis>
</classsynopsis>
<programlisting>
<emphasis role="bold">Functions</emphasis>
<methodsynopsis language="python">
<methodname><link
linkend="function-gtk--bindings-activate">gtk.bindings_activate</link></methodname>
<methodparam><parameter
role="keyword">object</parameter></methodparam>
<methodparam><parameter
role="keyword">keyval</parameter></methodparam>
<methodparam><parameter
role="keyword">modifiers</parameter></methodparam>
</methodsynopsis><methodsynopsis language="python">
<methodname><link
linkend="function-gtk--bindings-activate-event">gtk.bindings_activate_event</link></methodname>
<methodparam><parameter
role="keyword">object</parameter></methodparam>
<methodparam><parameter
role="keyword">event</parameter></methodparam>
</methodsynopsis><methodsynopsis language="python">
<methodname><link
linkend="function-gtk--binding-entry-add-signal">gtk.binding_entry_add_signal</link></methodname>
<methodparam><parameter>object</parameter></methodparam>
<methodparam><parameter>keyval</parameter></methodparam>
<methodparam><parameter>modifiers</parameter></methodparam>
<methodparam><parameter>signal_name</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis><methodsynopsis language="python">
<methodname><link
linkend="function-gtk--binding-entry-remove">gtk.binding_entry_remove</link></methodname>
<methodparam><parameter
role="keyword">class_type</parameter></methodparam>
<methodparam><parameter
role="keyword">keyval</parameter></methodparam>
<methodparam><parameter
role="keyword">modifiers</parameter></methodparam>
</methodsynopsis></programlisting>
</refsect1>
<refsect1>
<title>Ancestry</title>
<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
+-- <link linkend="class-gtkobject">gtk.Object</link>
</synopsis>
</refsect1>
<refsect1 id="properties-gtkobject">
<title>gtk.Object Properties</title>
<blockquote role="properties">
<informaltable pgwide="1" frame="none">
<tgroup cols="3">
<colspec column="1" colwidth="1in"/>
<colspec column="2" colwidth="1in"/>
<colspec column="3" colwidth="3.5in"/>
<tbody>
<row valign="top">
<entry>"user-data"</entry>
<entry>Read-Write</entry>
<entry>Anonymous User Data Pointer</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</blockquote>
</refsect1>
<refsect1 id="signal-prototypes-gtkobject">
<title>gtk.Object Signal Prototypes</title>
<para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para>
<variablelist>
<varlistentry>
<term>"<link linkend="signal-gtkobject--destroy">destroy</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>object</parameter>
</methodparam>
<methodparam><parameter>user_param1</parameter>
</methodparam>
<methodparam><parameter>...</parameter>
</methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Description</title>
<para><link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> is the
base class for all widgets, and for a few non-widget objects such as <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>.
<link linkend="class-gtkobject"><classname>gtk.Object</classname></link>
predates <link
linkend="class-gobject"><classname>GObject</classname></link>; non-widgets
that derive from <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> rather
than <link linkend="class-gobject"><classname>GObject</classname></link> do
so for backward compatibility reasons.</para>
<para>The "destroy" signal, emitted by the <link
linkend="method-gtkobject--destroy"><methodname>destroy</methodname>()</link>
method asks all code owning a GTK reference to the object to release its GTK
reference. So, for example, if you call
<methodname>window.destroy</methodname>() where
<parameter>window</parameter> is a <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link>, GTK will
release the GTK reference count that it owns; if you call
<methodname>button.destroy</methodname>() where button is a <link
linkend="class-gtkbutton"><classname>gtk.Button</classname></link>,
<parameter>button</parameter> will be removed from its parent container and
the parent container will release its GTK reference to
<parameter>button</parameter>. Because these GTK references are released,
calling <link
linkend="method-gtkobject--destroy"><methodname>destroy</methodname>()</link>
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 <link
linkend="method-gtkobject--destroy"><methodname>destroy</methodname>()</link>
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 <link
linkend="method-gtkobject--destroy"><methodname>destroy</methodname>()</link>
method will not result in the finalization of the GTK object until the
Python object is finalized. In the case mentioned above if a <link
linkend="class-gtkbutton"><classname>gtk.Button</classname></link> is
destroyed using the <link
linkend="method-gtkobject--destroy"><methodname>destroy</methodname>()</link>
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.</para>
</refsect1>
<refsect1>
<title>Methods</title>
<refsect2 id="method-gtkobject--flags">
<title>gtk.Object.flags</title>
<programlisting><methodsynopsis language="python">
<methodname>flags</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the flags set for the
object</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>flags</methodname>() method returns the value of
the flags for the object. The flags returned will include both the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> flags and
the <link linkend="class-gtkwidget"><classname>gtk.Widget</classname></link>
flags.</para>
<para>The <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> flags
are:</para>
<variablelist>
<varlistentry>
<term><literal>gtk.IN_DESTRUCTION</literal></term>
<listitem>
<simpara>the object is currently being destroyed.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.FLOATING</literal></term>
<listitem>
<simpara>the object is orphaned.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.RESERVED_1</literal></term>
<listitem>
<simpara>reserved for future use</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.RESERVED_2</literal></term>
<listitem>
<simpara>reserved for future use</simpara>
</listitem>
</varlistentry>
</variablelist>
<para>The <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> flags
are:</para>
<variablelist>
<varlistentry>
<term><literal>gtk.TOPLEVEL</literal></term>
<listitem>
<simpara>widgets without a real parent (e.g. <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link> and <link
linkend="class-gtkmenu"><classname>gtk.Menu</classname></link>) have this
flag set throughout their lifetime. Toplevel widgets always contain their
own <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.NO_WINDOW</literal></term>
<listitem>
<simpara>a widget that does not provide its own <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>.
Visible action (e.g. drawing) is performed on the parent's <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.REALIZED</literal></term>
<listitem>
<simpara>the widget has an associated <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.MAPPED</literal></term>
<listitem>
<simpara>the widget can be displayed on the screen.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.VISIBLE</literal></term>
<listitem>
<simpara>the widget will be mapped as soon as its parent is
mapped.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.SENSITIVE</literal></term>
<listitem>
<simpara>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.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.PARENT_SENSITIVE</literal></term>
<listitem>
<simpara>This is the second requirement for the widget's
sensitivity. Once a widget has <literal>gtk.SENSITIVE</literal> and
<literal>gtk.PARENT_SENSITIVE set</literal>, its state is effectively
sensitive.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.CAN_FOCUS</literal></term>
<listitem>
<simpara>the widget is able to handle focus grabs.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.HAS_FOCUS</literal></term>
<listitem>
<simpara>the widget has the focus - assumes that
<literal>gtk.CAN_FOCUS</literal> is set</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.CAN_DEFAULT</literal></term>
<listitem>
<simpara>the widget is allowed to receive the default
action.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.HAS_DEFAULT</literal></term>
<listitem>
<simpara>the widget currently will receive the default
action.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.HAS_GRAB</literal></term>
<listitem>
<simpara>the widget is in the grab_widgets stack, and will be
the preferred one for receiving events.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.RC_STYLE</literal></term>
<listitem>
<simpara>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.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.COMPOSITE_CHILD</literal></term>
<listitem>
<simpara>the widget is a composite child of its
parent.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.NO_REPARENT</literal></term>
<listitem>
<simpara>unused</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.APP_PAINTABLE</literal></term>
<listitem>
<simpara>set on widgets whose window the application directly
draws on, in order to keep GTK from overwriting the drawn stuff.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.RECEIVES_DEFAULT</literal></term>
<listitem>
<simpara>the widget when focused will receive the default action
and have <literal>gtk.HAS_DEFAULT</literal> set even if there is a different
widget set as default.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>gtk.DOUBLE_BUFFERED</literal></term>
<listitem>
<simpara>exposes done on the widget should be
double-buffered.</simpara>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
<refsect2 id="method-gtkobject--set-flags">
<title>gtk.Object.set_flags</title>
<programlisting><methodsynopsis language="python">
<methodname>set_flags</methodname>
<methodparam><parameter
role="keyword">flags</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">flags</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> and <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> flags to
be set on this object</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_flags</methodname>() method sets the object
flags according to the value of <parameter>flags</parameter>. See <link
linkend="method-gtkobject--flags"><methodname>flags</methodname>()</link>
for a description of the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> and <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> flags
that can be set.</para>
</refsect2>
<refsect2 id="method-gtkobject--unset-flags">
<title>gtk.Object.unset_flags</title>
<programlisting><methodsynopsis language="python">
<methodname>unset_flags</methodname>
<methodparam><parameter
role="keyword">flags</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">flags</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> and <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> flags to
be unset on this object</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>unset_flags</methodname>() method unsets the
object flags according to the value of <parameter>flags</parameter>. See
<link
linkend="method-gtkobject--flags"><methodname>flags</methodname>()</link>
for a description of the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> and <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> flags
that can be unset.</para>
</refsect2>
<refsect2 id="method-gtkobject--destroy">
<title>gtk.Object.destroy</title>
<programlisting><methodsynopsis language="python">
<methodname>destroy</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<para>The <methodname>destroy</methodname>() method emits the
"destroy" signal notifying all reference holders that they should release
the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link>.</para>
</refsect2>
</refsect1>
<refsect1>
<title>Functions</title>
<refsect2 id="function-gtk--bindings-activate">
<title>gtk.bindings_activate</title>
<programlisting><methodsynopsis language="python">
<methodname>gtk.bindings_activate</methodname>
<methodparam><parameter
role="keyword">object</parameter></methodparam>
<methodparam><parameter
role="keyword">keyval</parameter></methodparam>
<methodparam><parameter
role="keyword">modifiers</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">object</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> to
activate the bindings on</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">keyval</parameter> :</term>
<listitem><simpara>a key value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">modifiers</parameter> :</term>
<listitem><simpara>a modifier mask</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword"></parameter> :</term>
<listitem><simpara></simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the binding could be
activated</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <function>gtk.bindings_activate</function>() function
activates the bindings associated with the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> specified
by object with the key value specified by <parameter>keyval</parameter> and
the modifier mask specified by <parameter>modifiers</parameter>.</para>
</refsect2>
<refsect2 id="function-gtk--bindings-activate-event">
<title>gtk.bindings_activate_event</title>
<programlisting><methodsynopsis language="python">
<methodname>gtk.bindings_activate_event</methodname>
<methodparam><parameter
role="keyword">object</parameter></methodparam>
<methodparam><parameter
role="keyword">event</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">object</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> to
activate the bindings on</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">event</parameter> :</term>
<listitem><simpara>a <link linkend="class-gdkevent"><classname>gtk.gdk.Event</classname></link></simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if a matching key
binding was found</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <function>gtk.bindings_activate_event</function>() function
looks up key bindings for the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link> specified
by <parameter>object</parameter> to find one matching the key <link
linkend="class-gdkevent"><classname>gtk.gdk.Event</classname></link>
specified by <parameter>event</parameter>, and if one was found, activate
it.</para>
</refsect2>
<refsect2 id="function-gtk--binding-entry-add-signal">
<title>gtk.binding_entry_add_signal</title>
<programlisting><methodsynopsis language="python">
<methodname>gtk.binding_entry_add_signal</methodname>
<methodparam><parameter>object</parameter></methodparam>
<methodparam><parameter>keyval</parameter></methodparam>
<methodparam><parameter>modifiers</parameter></methodparam>
<methodparam><parameter>signal_name</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>object</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link>
class the binding entry will be associated with</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>keyval</parameter> :</term>
<listitem><simpara>the key value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>modifiers</parameter> :</term>
<listitem><simpara>the modifier mask</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>signal_name</parameter> :</term>
<listitem><simpara>the signal name</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>zero or more pairs of value type-value
pairs</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <function>gtk.binding_entry_add_signal</function>() function
adds a binding (specified by <parameter>keyval</parameter> and
<parameter>modifiers</parameter>) to the binding set of the object class
derived from <parameter>object</parameter>. The signal specified by
<parameter>signal_name</parameter> 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.</para>
</refsect2>
<refsect2 id="function-gtk--binding-entry-remove">
<title>gtk.binding_entry_remove</title>
<programlisting><methodsynopsis language="python">
<methodname>gtk.binding_entry_remove</methodname>
<methodparam><parameter
role="keyword">class_type</parameter></methodparam>
<methodparam><parameter
role="keyword">keyval</parameter></methodparam>
<methodparam><parameter
role="keyword">modifiers</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">class_type</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkobject"><classname>gtk.Object</classname></link>
class the binding entry will be removed from</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">keyval</parameter> :</term>
<listitem><simpara>the key value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">modifiers</parameter> :</term>
<listitem><simpara>the modifier mask</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This function is available in PyGTK 2.2 and above.</para>
</note>
<para>The <function>gtk.binding_entry_remove</function>() function
removes the binding (specified by <parameter>keyval</parameter> and
<parameter>modifiers</parameter>) from the binding set of the object class
specified by <parameter>class_type</parameter>.</para>
</refsect2>
</refsect1>
<refsect1>
<title>Signals</title>
<refsect2 id="signal-gtkobject--destroy">
<title>The "destroy" gtk.Object Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>object</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>object</parameter> :</term>
<listitem><simpara>the object that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "destroy" signal is emitted when the references for the
object should be destroyed.</para>
</refsect2>
</refsect1>
</refentry>
|