~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/gtk-functions.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk Functions</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" 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-gtkwindowgroup.html" title="gtk.WindowGroup"><link rel="next" href="gtk-stock-items.html" title="Stock Items"></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 Functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkwindowgroup.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="gtk-stock-items.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="gtk-functions"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk Functions</h2><p>gtk Functions — miscellaneous functions</p></div><div class="refsect1" lang="en"><a name="id3909618"></a><h2>Synopsis</h2><div class="refsect2" lang="en"><a name="id3909624"></a><h3><a class="link" href="class-gtkaboutdialog.html" title="gtk.AboutDialog"><code class="classname">gtk.AboutDialog</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaboutdialog.html#function-gtk--about-dialog-set-email-hook" title="gtk.about_dialog_set_email_hook">gtk.about_dialog_set_email_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaboutdialog.html#function-gtk--about-dialog-set-url-hook" title="gtk.about_dialog_set_url_hook">gtk.about_dialog_set_url_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3909722"></a><h3><a class="link" href="class-gtkaccelgroup.html" title="gtk.AccelGroup"><code class="classname">gtk.AccelGroup</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-valid" title="gtk.accelerator_valid">gtk.accelerator_valid</a></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-gtkaccelgroup.html#function-gtk--accelerator-parse" title="gtk.accelerator_parse">gtk.accelerator_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-name" title="gtk.accelerator_name">gtk.accelerator_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_mods</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-set-default-mod-mask" title="gtk.accelerator_set_default_mod_mask">gtk.accelerator_set_default_mod_mask</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>default_mod_mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-get-default-mod-mask" title="gtk.accelerator_get_default_mod_mask">gtk.accelerator_get_default_mod_mask</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-get-label" title="gtk.accelerator_get_label">gtk.accelerator_get_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_mods</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accel-groups-from-object" title="gtk.accel_groups_from_object">gtk.accel_groups_from_object</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>object</code></em></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3909952"></a><h3><a class="link" href="class-gtkaccelmap.html" title="gtk.AccelMap"><code class="classname">gtk.AccelMap</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-add-entry" title="gtk.accel_map_add_entry">gtk.accel_map_add_entry</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_mods</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-change-entry" title="gtk.accel_map_change_entry">gtk.accel_map_lookup_entry</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-change-entry" title="gtk.accel_map_change_entry">gtk.accel_map_change_entry</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_mods</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>replace</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-foreach" title="gtk.accel_map_foreach">gtk.accel_map_foreach</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreach_func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-foreach-unfiltered" title="gtk.accel_map_foreach_unfiltered">gtk.accel_map_foreach_unfiltered</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreach_func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-get" title="gtk.accel_map_get">gtk.accel_map_get</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-load" title="gtk.accel_map_load">gtk.accel_map_load</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-save" title="gtk.accel_map_save">gtk.accel_map_save</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-load-fd" title="gtk.accel_map_load_fd">gtk.accel_map_load_fd</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fd</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-save-fd" title="gtk.accel_map_save_fd">gtk.accel_map_save_fd</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fd</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-lock-path" title="gtk.accel_map_lock_path">gtk.accel_map_lock_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-unlock-path" title="gtk.accel_map_unlock_path">gtk.accel_map_unlock_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-add-filter" title="gtk.accel_map_add_filter">gtk.accel_map_add_filter</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filter_pattern</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910407"></a><h3><a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-text" title="gtk.cell_view_new_with_text">gtk.cell_view_new_with_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-markup" title="gtk.cell_view_new_with_markup">gtk.cell_view_new_with_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-pixbuf" title="gtk.cell_view_new_with_pixbuf">gtk.cell_view_new_with_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910505"></a><h3><a class="link" href="class-gtkclipboard.html" title="gtk.Clipboard"><code class="classname">gtk.Clipboard</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkclipboard.html#function-gtk--clipboard-get" title="gtk.clipboard_get">gtk.clipboard_get</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910542"></a><h3><a class="link" href="class-gtkcolorselection.html" title="gtk.ColorSelection"><code class="classname">gtk.ColorSelection</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcolorselection.html#function-gtk--color-selection-palette-from-string" title="gtk.color_selection_palette_from_string">gtk.color_selection_palette_from_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>str</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcolorselection.html#function-gtk--color-selection-palette-to-string" title="gtk.color_selection_palette_to_string">gtk.color_selection_palette_to_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>colors</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910614"></a><h3><a class="link" href="class-gtkcombobox.html" title="gtk.ComboBox"><code class="classname">gtk.ComboBox</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcombobox.html#function-gtk--combo-box-new-text" title="gtk.combo_box_new_text">gtk.combo_box_new_text</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910652"></a><h3><a class="link" href="class-gtkcomboboxentry.html" title="gtk.ComboBoxEntry"><code class="classname">gtk.ComboBoxEntry</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcomboboxentry.html#function-gtk--combo-box-entry-new-text" title="gtk.combo_box_entry_new_text">gtk.combo_box_entry_new_text</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910690"></a><h3><a class="link" href="class-gtkcomboboxentry.html" title="gtk.ComboBoxEntry"><code class="classname">gtk.Container</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcontainer.html#function-gtk--container-class-install-child-property" title="gtk.container_class_install_child_property">gtk.container_class_install_child_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>klass</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>property_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pspec</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcontainer.html#function-gtk--container-class-list-child-properties" title="gtk.container_class_list_child_properties">gtk.container_class_list_child_properties</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>klass</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910790"></a><h3><a class="link" href="class-gtkdialog.html" title="gtk.Dialog"><code class="classname">gtk.Dialog</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><PYGTKDOCLINK HREF="function-gtk-%20-alternative-dialog-button-order">gtk.alternative_dialog_button_order</PYGTKDOCLINK></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910837"></a><h3><a class="link" href="class-gtkexpander.html" title="gtk.Expander"><code class="classname">gtk.Expander</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkexpander.html#function-gtk--expander-new-with-mnemonic" title="gtk.expander_new_with_mnemonic">gtk.expander_new_with_mnemonic</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910882"></a><h3><a class="link" href="class-gtkiconfactory.html" title="gtk.IconFactory"><code class="classname">gtk.IconFactory</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconfactory.html#function-gtk--icon-factory-lookup-default" title="gtk.icon_factory_lookup_default">gtk.icon_factory_lookup_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3910928"></a><h3><a class="link" href="class-gtkiconsource.html" title="gtk.IconSource"><code class="classname">gtk.IconSource</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-lookup" title="gtk.icon_size_lookup">gtk.icon_size_lookup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-lookup-for-settings" title="gtk.icon_size_lookup_for_settings">gtk.icon_size_lookup_for_settings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-register" title="gtk.icon_size_register">gtk.icon_size_register</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-register-alias" title="gtk.icon_size_register_alias">gtk.icon_size_register_alias</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>alias</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>target</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-from-name" title="gtk.icon_size_from_name">gtk.icon_size_from_name</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-gtkiconsource.html#function-gtk--icon-size-get-name" title="gtk.icon_size_get_name">gtk.icon_size_get_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3911160"></a><h3><a class="link" href="class-gtkicontheme.html" title="gtk.IconTheme"><code class="classname">gtk.IconTheme</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkicontheme.html#function-gtk--icon-theme-get-default" title="gtk.icon_theme_get_default">gtk.icon_theme_get_default</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkicontheme.html#function-gtk--icon-theme-get-for-screen" title="gtk.icon_theme_get_for_screen">gtk.icon_theme_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkicontheme.html#function-gtk--icon-theme-add-builtin-icon" title="gtk.icon_theme_add_builtin_icon">gtk.icon_theme_add_builtin_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</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>pixbuf</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3911271"></a><h3><a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-stock" title="gtk.image_new_from_stock">gtk.image_new_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-icon-set" title="gtk.image_new_from_icon_set">gtk.image_new_from_icon_set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_set</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_animation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>animation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3911437"></a><h3><a class="link" href="class-gtkitemfactory.html" title="gtk.ItemFactory"><code class="classname">gtk.ItemFactory</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkitemfactory.html#function-gtk--item-factory-from-widget" title="gtk.item_factory_from_widget">gtk.item_factory_from_widget</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-gtkitemfactory.html#function-gtk--item-factory-path-from-widget" title="gtk.item_factory_path_from_widget">gtk.item_factory_path_from_widget</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3911508"></a><h3><a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#function-gtk--link-button-set-uri-hook" title="gtk.link_button_set_uri_hook">gtk.link_button_set_uri_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3911569"></a><h3><a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> Functions</h3><pre class="programlisting"><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" title="gtk.bindings_activate">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="refsect2" lang="en"><a name="id3911806"></a><h3><a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpapersize.html#function-gtk--paper-size-new-from-ppd" title="gtk.paper_size_new_from_ppd">gtk.paper_size_new_from_ppd</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>ppd_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ppd_display_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpapersize.html#function-gtk--paper-size-new-custom" title="gtk.paper_size_new_custom">gtk.paper_size_new_cutom</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>display_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpapersize.html#function-gtk--paper-size-get-default" title="gtk.paper_size_get_default">gtk.paper_size_get_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912000"></a><h3><a class="link" href="class-gtkplug.html" title="gtk.Plug"><code class="classname">gtk.Plug</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkplug.html#function-gtk--plug-new-for-display" title="gtk.plug_new_for_display">gtk.plug_new_for_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>socket_id</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912058"></a><h3><a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-add-default-file" title="gtk.rc_add_default_file">gtk.rc_add_default_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-set-default-files" title="gtk.rc_set_default_files">gtk.rc_set_default_files</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filenames</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-default-files" title="gtk.rc_get_default_files">gtk.rc_get_default_files</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-style-by-paths" title="gtk.rc_get_style_by_paths">gtk.rc_get_style_by_paths</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>class_path</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-gtkrcstyle.html#function-gtk--rc-reparse-all-for-settings" title="gtk.rc_reparse_all_for_settings">gtk.rc_reparse_all_for_settings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>force_load</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reset-styles" title="gtk.rc_reset_styles">gtk.rc_reset_styles</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse" title="gtk.rc_parse">gtk.rc_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse-string" title="gtk.rc_parse_string">gtk.rc_parse_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rc_string</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reparse-all" title="gtk.rc_reparse_all">gtk.rc_reparse_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-find-module-in-path" title="gtk.rc_find_module_in_path">gtk.rc_find_module_in_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>module_file</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-theme-dir" title="gtk.rc_get_theme_dir">gtk.rc_get_theme_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-module-dir" title="gtk.rc_get_module_dir">gtk.rc_get_module_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-path" title="gtk.rc_get_im_module_path">gtk.rc_get_im_module_path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-file" title="gtk.rc_get_im_module_file">gtk.rc_get_im_module_file</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912457"></a><h3><a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager"><code class="classname">gtk.RecentManager</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentmanager.html#function-gtk--recent-manager-get-default" title="gtk.recent_manager_get_default">gtk.recent_manager_get_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentmanager.html#function-gtk--recent-manager-get-for-screen" title="gtk.recent_manager_get_for_screen">gtk.recent_manager_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912522"></a><h3><a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--selection-owner-set-for-display" title="gtk.selection_owner_set_for_display">gtk.selection_owner_set_for_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>selection</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-image-targets" title="gtk.target_list_add_image_targets">gtk.target_list_add_image_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span><span class="initializer">=False</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-text-targets" title="gtk.target_list_add_text_targets">gtk.target_list_add_text_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-uri-targets" title="gtk.target_list_add_uri_targets">gtk.target_list_add_uri_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912763"></a><h3><a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#function-gtk--settings-get-default" title="gtk.settings_get_default">gtk.settings_get_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#function-gtk--settings-get-for-screen" title="gtk.settings_get_for_screen">gtk.settings_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912827"></a><h3><a class="link" href="class-gtkstatusicon.html" title="gtk.StatusIcon"><code class="classname">gtk.StatusIcon</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-pixbuf" title="gtk.status_icon_new_from_pixbuf">gtk.status_icon_new_from_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-file" title="gtk.status_icon_new_from_file">gtk.status_icon_new_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-stock" title="gtk.status_icon_new_from_stock">gtk.status_icon_new_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-icon-name" title="gtk.status_icon_new_from_icon_name">gtk.status_icon_new_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-position-menu" title="gtk.status_icon_position_menu">gtk.status_icon_position_menu</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>menu</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>statusicon</code></em></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3912988"></a><h3><a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktooltips.html#function-gtk--tooltips-data-get" title="gtk.tooltips_data_get">gtk.tooltips_data_get</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3913032"></a><h3><a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreemodel.html#function-gtk--tree-row-reference-inserted" title="gtk.tree_row_reference_inserted">gtk.tree_row_reference_inserted</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>proxy</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreemodel.html#function-gtk--tree-row-reference-deleted" title="gtk.tree_row_reference_deleted">gtk.tree_row_reference_deleted</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>proxy</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3913131"></a><h3><a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-push-colormap" title="gtk.widget_push_colormap">gtk.widget_push_colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>cmap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-push-composite-child" title="gtk.widget_push_composite_child">gtk.widget_push_composite_child</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-pop-composite-child" title="gtk.widget_pop_composite_child">gtk.widget_pop_composite_child</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-pop-colormap" title="gtk.widget_pop_colormap">gtk.widget_pop_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-style" title="gtk.widget_get_default_style">gtk.widget_get_default_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-set-default-colormap" title="gtk.widget_set_default_colormap">gtk.widget_set_default_colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>colormap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-colormap" title="gtk.widget_get_default_colormap">gtk.widget_get_default_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-visual" title="gtk.widget_get_default_visual">gtk.widget_get_default_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-set-default-direction" title="gtk.widget_set_default_direction">gtk.widget_set_default_direction</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dir</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-direction" title="gtk.widget_get_default_direction">gtk.widget_get_default_direction</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-class-list-style-properties" title="gtk.widget_class_list_style_properties">gtk.widget_class_list_style_properties</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-gtkwidget.html#function-gtk--widget-class-install-style-property" title="gtk.widget_class_install_style_property">gtk.widget_class_install_style_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pspec</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3913433"></a><h3><a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon" title="gtk.window_set_default_icon">gtk.window_set_default_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon-from-file" title="gtk.window_set_default_icon_from_file">gtk.window_set_default_icon_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon-list" title="gtk.window_set_default_icon_list">gtk.window_set_default_icon_list</a></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-gtkwindow.html#function-gtk--window-get-default-icon-list" title="gtk.window_get_default_icon_list">gtk.window_get_default_icon_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-auto-startup-notification" title="gtk.window_set_auto_startup_notification">gtk.window_set_auto_startup_notification</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-list-toplevels" title="gtk.window_list_toplevels">gtk.window_list_toplevels</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon-name" title="gtk.window_set_default_icon_name">gtk.window_set_default_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3913621"></a><h3><a class="link" href="gtk-stock-items.html" title="Stock Items">Stock Item</a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-add" title="gtk.stock_add">gtk.stock_add</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>items</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-lookup" title="gtk.stock_lookup">gtk.stock_lookup</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>stock_id</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-list-ids" title="gtk.stock_list_ids">gtk.stock_list_ids</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre></div><div class="refsect2" lang="en"><a name="id3913713"></a><h3>Miscellaneous Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--check-version" title="gtk.check_version">gtk.check_version</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_major</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_minor</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_micro</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--draw-insertion-cursor" title="gtk.draw_insertion_cursor">gtk.draw_insertion_cursor</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>drawable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>location</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>is_primary</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>direction</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>draw_arrow</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-default-language" title="gtk.get_default_language">gtk.get_default_language</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--events-pending" title="gtk.events_pending">gtk.events_pending</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-do-event" title="gtk.main_do_event">gtk.main_do_event</a></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="gtk-functions.html#function-gtk--main" title="gtk.main">gtk.main</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-level" title="gtk.main_level">gtk.main_level</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit">gtk.main_quit</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-iteration" title="gtk.main_iteration">gtk.main_iteration</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-iteration-do" title="gtk.main_iteration_do">gtk.main_iteration_do</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--grab-get-current" title="gtk.grab_get_current">gtk.grab_get_current</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--quit-add" title="gtk.quit_add">gtk.quit_add</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>level</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</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="gtk-functions.html#function-gtk--quit-remove" title="gtk.quit_remove">gtk.quit_remove</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>quit_handler_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-current-event" title="gtk.get_current_event">gtk.get_current_event</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-current-event-state" title="gtk.get_current_event_state">gtk.get_current_event_state</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-current-event-time" title="gtk.get_current_event_time">gtk.get_current_event_time</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--init-check" title="gtk.init_check">gtk.init_check</a></span>()</code></pre></div></div><div class="refsect1" lang="en"><a name="id3914212"></a><h2>Description</h2><p>All <code class="literal">PyGTK</code> functions for the gtk module are
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk Functions</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><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-gtkwindowgroup.html" title="gtk.WindowGroup"><link rel="next" href="gtk-stock-items.html" title="Stock Items"></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 Functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkwindowgroup.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="gtk-stock-items.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk Functions"><a name="gtk-functions"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk Functions</h2><p>gtk Functions — miscellaneous functions</p></div><div class="refsect1" title="Synopsis"><a name="id4219725"></a><h2>Synopsis</h2><div class="refsect2" title="gtk.AboutDialog Functions"><a name="id4219731"></a><h3><a class="link" href="class-gtkaboutdialog.html" title="gtk.AboutDialog"><code class="classname">gtk.AboutDialog</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaboutdialog.html#function-gtk--about-dialog-set-email-hook" title="gtk.about_dialog_set_email_hook">gtk.about_dialog_set_email_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaboutdialog.html#function-gtk--about-dialog-set-url-hook" title="gtk.about_dialog_set_url_hook">gtk.about_dialog_set_url_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.AccelGroup Functions"><a name="id4219830"></a><h3><a class="link" href="class-gtkaccelgroup.html" title="gtk.AccelGroup"><code class="classname">gtk.AccelGroup</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-valid" title="gtk.accelerator_valid">gtk.accelerator_valid</a></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-gtkaccelgroup.html#function-gtk--accelerator-parse" title="gtk.accelerator_parse">gtk.accelerator_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-name" title="gtk.accelerator_name">gtk.accelerator_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_mods</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-set-default-mod-mask" title="gtk.accelerator_set_default_mod_mask">gtk.accelerator_set_default_mod_mask</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>default_mod_mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-get-default-mod-mask" title="gtk.accelerator_get_default_mod_mask">gtk.accelerator_get_default_mod_mask</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accelerator-get-label" title="gtk.accelerator_get_label">gtk.accelerator_get_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accelerator_mods</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelgroup.html#function-gtk--accel-groups-from-object" title="gtk.accel_groups_from_object">gtk.accel_groups_from_object</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>object</code></em></span></span>)</code></pre></div><div class="refsect2" title="gtk.AccelMap Functions"><a name="id4220059"></a><h3><a class="link" href="class-gtkaccelmap.html" title="gtk.AccelMap"><code class="classname">gtk.AccelMap</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-add-entry" title="gtk.accel_map_add_entry">gtk.accel_map_add_entry</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_mods</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-change-entry" title="gtk.accel_map_change_entry">gtk.accel_map_lookup_entry</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-change-entry" title="gtk.accel_map_change_entry">gtk.accel_map_change_entry</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_mods</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>replace</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-foreach" title="gtk.accel_map_foreach">gtk.accel_map_foreach</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreach_func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-foreach-unfiltered" title="gtk.accel_map_foreach_unfiltered">gtk.accel_map_foreach_unfiltered</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreach_func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-get" title="gtk.accel_map_get">gtk.accel_map_get</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-load" title="gtk.accel_map_load">gtk.accel_map_load</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-save" title="gtk.accel_map_save">gtk.accel_map_save</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-load-fd" title="gtk.accel_map_load_fd">gtk.accel_map_load_fd</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fd</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-save-fd" title="gtk.accel_map_save_fd">gtk.accel_map_save_fd</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fd</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-lock-path" title="gtk.accel_map_lock_path">gtk.accel_map_lock_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-unlock-path" title="gtk.accel_map_unlock_path">gtk.accel_map_unlock_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>accel_path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkaccelmap.html#function-gtk--accel-map-add-filter" title="gtk.accel_map_add_filter">gtk.accel_map_add_filter</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filter_pattern</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.CellView Functions"><a name="id4220514"></a><h3><a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-text" title="gtk.cell_view_new_with_text">gtk.cell_view_new_with_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-markup" title="gtk.cell_view_new_with_markup">gtk.cell_view_new_with_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-pixbuf" title="gtk.cell_view_new_with_pixbuf">gtk.cell_view_new_with_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.Clipboard Functions"><a name="id4220612"></a><h3><a class="link" href="class-gtkclipboard.html" title="gtk.Clipboard"><code class="classname">gtk.Clipboard</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkclipboard.html#function-gtk--clipboard-get" title="gtk.clipboard_get">gtk.clipboard_get</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.ColorSelection Functions"><a name="id4220650"></a><h3><a class="link" href="class-gtkcolorselection.html" title="gtk.ColorSelection"><code class="classname">gtk.ColorSelection</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcolorselection.html#function-gtk--color-selection-palette-from-string" title="gtk.color_selection_palette_from_string">gtk.color_selection_palette_from_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>str</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcolorselection.html#function-gtk--color-selection-palette-to-string" title="gtk.color_selection_palette_to_string">gtk.color_selection_palette_to_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>colors</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.ComboBox Functions"><a name="id4220722"></a><h3><a class="link" href="class-gtkcombobox.html" title="gtk.ComboBox"><code class="classname">gtk.ComboBox</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcombobox.html#function-gtk--combo-box-new-text" title="gtk.combo_box_new_text">gtk.combo_box_new_text</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.ComboBoxEntry Functions"><a name="id4220759"></a><h3><a class="link" href="class-gtkcomboboxentry.html" title="gtk.ComboBoxEntry"><code class="classname">gtk.ComboBoxEntry</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcomboboxentry.html#function-gtk--combo-box-entry-new-text" title="gtk.combo_box_entry_new_text">gtk.combo_box_entry_new_text</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.Container Functions"><a name="id4220797"></a><h3><a class="link" href="class-gtkcomboboxentry.html" title="gtk.ComboBoxEntry"><code class="classname">gtk.Container</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcontainer.html#function-gtk--container-class-install-child-property" title="gtk.container_class_install_child_property">gtk.container_class_install_child_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>klass</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>property_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pspec</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcontainer.html#function-gtk--container-class-list-child-properties" title="gtk.container_class_list_child_properties">gtk.container_class_list_child_properties</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>klass</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.Dialog Functions"><a name="id4220897"></a><h3><a class="link" href="class-gtkdialog.html" title="gtk.Dialog"><code class="classname">gtk.Dialog</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><PYGTKDOCLINK HREF="function-gtk-%20-alternative-dialog-button-order">gtk.alternative_dialog_button_order</PYGTKDOCLINK></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect2" title="gtk.Expander Functions"><a name="id4220944"></a><h3><a class="link" href="class-gtkexpander.html" title="gtk.Expander"><code class="classname">gtk.Expander</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkexpander.html#function-gtk--expander-new-with-mnemonic" title="gtk.expander_new_with_mnemonic">gtk.expander_new_with_mnemonic</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.IconFactory Functions"><a name="id4220989"></a><h3><a class="link" href="class-gtkiconfactory.html" title="gtk.IconFactory"><code class="classname">gtk.IconFactory</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconfactory.html#function-gtk--icon-factory-lookup-default" title="gtk.icon_factory_lookup_default">gtk.icon_factory_lookup_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.IconSource Functions"><a name="id4221035"></a><h3><a class="link" href="class-gtkiconsource.html" title="gtk.IconSource"><code class="classname">gtk.IconSource</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-lookup" title="gtk.icon_size_lookup">gtk.icon_size_lookup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-lookup-for-settings" title="gtk.icon_size_lookup_for_settings">gtk.icon_size_lookup_for_settings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-register" title="gtk.icon_size_register">gtk.icon_size_register</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-register-alias" title="gtk.icon_size_register_alias">gtk.icon_size_register_alias</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>alias</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>target</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkiconsource.html#function-gtk--icon-size-from-name" title="gtk.icon_size_from_name">gtk.icon_size_from_name</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-gtkiconsource.html#function-gtk--icon-size-get-name" title="gtk.icon_size_get_name">gtk.icon_size_get_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.IconTheme Functions"><a name="id4221267"></a><h3><a class="link" href="class-gtkicontheme.html" title="gtk.IconTheme"><code class="classname">gtk.IconTheme</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkicontheme.html#function-gtk--icon-theme-get-default" title="gtk.icon_theme_get_default">gtk.icon_theme_get_default</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkicontheme.html#function-gtk--icon-theme-get-for-screen" title="gtk.icon_theme_get_for_screen">gtk.icon_theme_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkicontheme.html#function-gtk--icon-theme-add-builtin-icon" title="gtk.icon_theme_add_builtin_icon">gtk.icon_theme_add_builtin_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</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>pixbuf</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.Image Functions"><a name="id4221379"></a><h3><a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-stock" title="gtk.image_new_from_stock">gtk.image_new_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-icon-set" title="gtk.image_new_from_icon_set">gtk.image_new_from_icon_set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_set</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_animation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>animation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.ItemFactory Functions"><a name="id4221544"></a><h3><a class="link" href="class-gtkitemfactory.html" title="gtk.ItemFactory"><code class="classname">gtk.ItemFactory</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkitemfactory.html#function-gtk--item-factory-from-widget" title="gtk.item_factory_from_widget">gtk.item_factory_from_widget</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-gtkitemfactory.html#function-gtk--item-factory-path-from-widget" title="gtk.item_factory_path_from_widget">gtk.item_factory_path_from_widget</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.LinkButton Functions"><a name="id4221616"></a><h3><a class="link" href="class-gtklinkbutton.html" title="gtk.LinkButton"><code class="classname">gtk.LinkButton</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtklinkbutton.html#function-gtk--link-button-set-uri-hook" title="gtk.link_button_set_uri_hook">gtk.link_button_set_uri_hook</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect2" title="gtk.Object Functions"><a name="id4221677"></a><h3><a class="link" href="class-gtkobject.html" title="gtk.Object"><code class="classname">gtk.Object</code></a> Functions</h3><pre class="programlisting"><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" title="gtk.bindings_activate">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="refsect2" title="gtk.PaperSize Functions"><a name="id4221914"></a><h3><a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpapersize.html#function-gtk--paper-size-new-from-ppd" title="gtk.paper_size_new_from_ppd">gtk.paper_size_new_from_ppd</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>ppd_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ppd_display_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpapersize.html#function-gtk--paper-size-new-custom" title="gtk.paper_size_new_custom">gtk.paper_size_new_cutom</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>display_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpapersize.html#function-gtk--paper-size-get-default" title="gtk.paper_size_get_default">gtk.paper_size_get_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.Plug Functions"><a name="id4222107"></a><h3><a class="link" href="class-gtkplug.html" title="gtk.Plug"><code class="classname">gtk.Plug</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkplug.html#function-gtk--plug-new-for-display" title="gtk.plug_new_for_display">gtk.plug_new_for_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>socket_id</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.RcStyle Functions"><a name="id4222165"></a><h3><a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-add-default-file" title="gtk.rc_add_default_file">gtk.rc_add_default_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-set-default-files" title="gtk.rc_set_default_files">gtk.rc_set_default_files</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filenames</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-default-files" title="gtk.rc_get_default_files">gtk.rc_get_default_files</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-style-by-paths" title="gtk.rc_get_style_by_paths">gtk.rc_get_style_by_paths</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>class_path</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-gtkrcstyle.html#function-gtk--rc-reparse-all-for-settings" title="gtk.rc_reparse_all_for_settings">gtk.rc_reparse_all_for_settings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>force_load</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reset-styles" title="gtk.rc_reset_styles">gtk.rc_reset_styles</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse" title="gtk.rc_parse">gtk.rc_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse-string" title="gtk.rc_parse_string">gtk.rc_parse_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rc_string</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reparse-all" title="gtk.rc_reparse_all">gtk.rc_reparse_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-find-module-in-path" title="gtk.rc_find_module_in_path">gtk.rc_find_module_in_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>module_file</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-theme-dir" title="gtk.rc_get_theme_dir">gtk.rc_get_theme_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-module-dir" title="gtk.rc_get_module_dir">gtk.rc_get_module_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-path" title="gtk.rc_get_im_module_path">gtk.rc_get_im_module_path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-file" title="gtk.rc_get_im_module_file">gtk.rc_get_im_module_file</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.RecentManager Functions"><a name="id4222565"></a><h3><a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager"><code class="classname">gtk.RecentManager</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentmanager.html#function-gtk--recent-manager-get-default" title="gtk.recent_manager_get_default">gtk.recent_manager_get_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentmanager.html#function-gtk--recent-manager-get-for-screen" title="gtk.recent_manager_get_for_screen">gtk.recent_manager_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.SelectionData Functions"><a name="id4222630"></a><h3><a class="link" href="class-gtkselectiondata.html" title="gtk.SelectionData"><code class="classname">gtk.SelectionData</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--selection-owner-set-for-display" title="gtk.selection_owner_set_for_display">gtk.selection_owner_set_for_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>selection</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-image-targets" title="gtk.target_list_add_image_targets">gtk.target_list_add_image_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writable</code></strong></span><span class="initializer">=False</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-text-targets" title="gtk.target_list_add_text_targets">gtk.target_list_add_text_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkselectiondata.html#function-gtk--target-list-add-uri-targets" title="gtk.target_list_add_uri_targets">gtk.target_list_add_uri_targets</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>list</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>info</code></strong></span><span class="initializer">=0</span></span>)</code></pre></div><div class="refsect2" title="gtk.Settings Functions"><a name="id4222871"></a><h3><a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#function-gtk--settings-get-default" title="gtk.settings_get_default">gtk.settings_get_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#function-gtk--settings-get-for-screen" title="gtk.settings_get_for_screen">gtk.settings_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.StatusIcon Functions"><a name="id4222935"></a><h3><a class="link" href="class-gtkstatusicon.html" title="gtk.StatusIcon"><code class="classname">gtk.StatusIcon</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-pixbuf" title="gtk.status_icon_new_from_pixbuf">gtk.status_icon_new_from_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-file" title="gtk.status_icon_new_from_file">gtk.status_icon_new_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-stock" title="gtk.status_icon_new_from_stock">gtk.status_icon_new_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-new-from-icon-name" title="gtk.status_icon_new_from_icon_name">gtk.status_icon_new_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstatusicon.html#function-gtk--status-icon-position-menu" title="gtk.status_icon_position_menu">gtk.status_icon_position_menu</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>menu</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>statusicon</code></em></span></span>)</code></pre></div><div class="refsect2" title="gtk.Tooltips Functions"><a name="id4223095"></a><h3><a class="link" href="class-gtktooltips.html" title="gtk.Tooltips"><code class="classname">gtk.Tooltips</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktooltips.html#function-gtk--tooltips-data-get" title="gtk.tooltips_data_get">gtk.tooltips_data_get</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.TreeModel Functions"><a name="id4223140"></a><h3><a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreemodel.html#function-gtk--tree-row-reference-inserted" title="gtk.tree_row_reference_inserted">gtk.tree_row_reference_inserted</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>proxy</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreemodel.html#function-gtk--tree-row-reference-deleted" title="gtk.tree_row_reference_deleted">gtk.tree_row_reference_deleted</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>proxy</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.Widget Functions"><a name="id4223239"></a><h3><a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-push-colormap" title="gtk.widget_push_colormap">gtk.widget_push_colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>cmap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-push-composite-child" title="gtk.widget_push_composite_child">gtk.widget_push_composite_child</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-pop-composite-child" title="gtk.widget_pop_composite_child">gtk.widget_pop_composite_child</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-pop-colormap" title="gtk.widget_pop_colormap">gtk.widget_pop_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-style" title="gtk.widget_get_default_style">gtk.widget_get_default_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-set-default-colormap" title="gtk.widget_set_default_colormap">gtk.widget_set_default_colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>colormap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-colormap" title="gtk.widget_get_default_colormap">gtk.widget_get_default_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-visual" title="gtk.widget_get_default_visual">gtk.widget_get_default_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-set-default-direction" title="gtk.widget_set_default_direction">gtk.widget_set_default_direction</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dir</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-get-default-direction" title="gtk.widget_get_default_direction">gtk.widget_get_default_direction</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwidget.html#function-gtk--widget-class-list-style-properties" title="gtk.widget_class_list_style_properties">gtk.widget_class_list_style_properties</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-gtkwidget.html#function-gtk--widget-class-install-style-property" title="gtk.widget_class_install_style_property">gtk.widget_class_install_style_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pspec</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.Window Functions"><a name="id4223541"></a><h3><a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon" title="gtk.window_set_default_icon">gtk.window_set_default_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon-from-file" title="gtk.window_set_default_icon_from_file">gtk.window_set_default_icon_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon-list" title="gtk.window_set_default_icon_list">gtk.window_set_default_icon_list</a></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-gtkwindow.html#function-gtk--window-get-default-icon-list" title="gtk.window_get_default_icon_list">gtk.window_get_default_icon_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-auto-startup-notification" title="gtk.window_set_auto_startup_notification">gtk.window_set_auto_startup_notification</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-list-toplevels" title="gtk.window_list_toplevels">gtk.window_list_toplevels</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkwindow.html#function-gtk--window-set-default-icon-name" title="gtk.window_set_default_icon_name">gtk.window_set_default_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code></pre></div><div class="refsect2" title="Stock Item Functions"><a name="id4223729"></a><h3><a class="link" href="gtk-stock-items.html" title="Stock Items">Stock Item</a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-add" title="gtk.stock_add">gtk.stock_add</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>items</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-lookup" title="gtk.stock_lookup">gtk.stock_lookup</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>stock_id</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-stock-items.html#function-gtk--stock-list-ids" title="gtk.stock_list_ids">gtk.stock_list_ids</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre></div><div class="refsect2" title="Miscellaneous Functions"><a name="id4223820"></a><h3>Miscellaneous Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--check-version" title="gtk.check_version">gtk.check_version</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_major</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_minor</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_micro</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--draw-insertion-cursor" title="gtk.draw_insertion_cursor">gtk.draw_insertion_cursor</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>drawable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>location</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>is_primary</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>direction</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>draw_arrow</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-default-language" title="gtk.get_default_language">gtk.get_default_language</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--events-pending" title="gtk.events_pending">gtk.events_pending</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-do-event" title="gtk.main_do_event">gtk.main_do_event</a></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="gtk-functions.html#function-gtk--main" title="gtk.main">gtk.main</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-level" title="gtk.main_level">gtk.main_level</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit">gtk.main_quit</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-iteration" title="gtk.main_iteration">gtk.main_iteration</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--main-iteration-do" title="gtk.main_iteration_do">gtk.main_iteration_do</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--grab-get-current" title="gtk.grab_get_current">gtk.grab_get_current</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--quit-add" title="gtk.quit_add">gtk.quit_add</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>level</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</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="gtk-functions.html#function-gtk--quit-remove" title="gtk.quit_remove">gtk.quit_remove</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>quit_handler_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-current-event" title="gtk.get_current_event">gtk.get_current_event</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-current-event-state" title="gtk.get_current_event_state">gtk.get_current_event_state</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--get-current-event-time" title="gtk.get_current_event_time">gtk.get_current_event_time</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--init-check" title="gtk.init_check">gtk.init_check</a></span>()</code></pre></div></div><div class="refsect1" title="Description"><a name="id4224319"></a><h2>Description</h2><p>All <code class="literal">PyGTK</code> functions for the gtk module are
2
2
listed above categorized by class. Those functions associated with a class
3
3
have their descriptions included with the class reference. Those functions
4
 
that are not associated with a specific class are described below.</p></div><div class="refsect1" lang="en"><a name="id3914233"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--check-version"></a><h3>gtk.check_version</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.check_version</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_major</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_minor</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_micro</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>required_major</code></strong> :</span></p></td><td>the required major version
 
4
that are not associated with a specific class are described below.</p></div><div class="refsect1" title="Functions"><a name="id4224340"></a><h2>Functions</h2><div class="refsect2" title="gtk.check_version"><a name="function-gtk--check-version"></a><h3>gtk.check_version</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.check_version</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_major</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_minor</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>required_micro</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>required_major</code></strong> :</span></p></td><td>the required major version
5
5
number</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>required_minor</code></strong> :</span></p></td><td>the required minor version
6
6
number</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>required_micro</code></strong> :</span></p></td><td>the required micro version
7
7
number</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">None</code> if the underlying
12
12
<em class="parameter"><code>required_minor</code></em> and
13
13
<em class="parameter"><code>required_micro</code></em>. If the library is compatible this
14
14
function returns <code class="literal">None</code>; otherwise it returns a string
15
 
describing the mismatch.</p></div><div class="refsect2" lang="en"><a name="function-gtk--draw-insertion-cursor"></a><h3>gtk.draw_insertion_cursor</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.draw_insertion_cursor</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>drawable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>location</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>is_primary</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>direction</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>draw_arrow</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"><strong class="parameter"><code>drawable</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkdrawable.html" title="gtk.gdk.Drawable"><code class="classname">gtk.gdk.Drawable</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>the rectangle to which the output is clipped, or
 
15
describing the mismatch.</p></div><div class="refsect2" title="gtk.draw_insertion_cursor"><a name="function-gtk--draw-insertion-cursor"></a><h3>gtk.draw_insertion_cursor</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.draw_insertion_cursor</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>drawable</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>location</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>is_primary</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>direction</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>draw_arrow</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"><strong class="parameter"><code>drawable</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkdrawable.html" title="gtk.gdk.Drawable"><code class="classname">gtk.gdk.Drawable</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>the rectangle to which the output is clipped, or
16
16
<code class="literal">None</code> if the output should not be clipped</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>location</code></strong> :</span></p></td><td>the location to draw the cursor
17
17
          (<em class="parameter"><code>location.width</code></em> is
18
18
          ignored)</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>is_primary</code></strong> :</span></p></td><td> if <code class="literal">True</code> the cursor should
20
20
          <code class="literal">gtk.TEXT_DIR_LTR</code> or
21
21
          <code class="literal">gtk.TEXT_DIR_RTL</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>draw_arrow</code></strong> :</span></p></td><td>if <code class="literal">True</code> draw a directional
22
22
          arrow on the cursor. Should be <code class="literal">False</code> unless the
23
 
          cursor is split.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.4 and above.</p></div><p>The <code class="function">gtk.draw_insertion_cursor</code>() function
 
23
          cursor is split.</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.4 and above.</p></div><p>The <code class="function">gtk.draw_insertion_cursor</code>() function
24
24
draws a text caret on the <a class="link" href="class-gdkdrawable.html" title="gtk.gdk.Drawable"><code class="classname">gtk.gdk.Drawable</code></a>
25
25
specified by <em class="parameter"><code>drawable</code></em> at the position specified by
26
26
<em class="parameter"><code>location</code></em>. <em class="parameter"><code>area</code></em> specifies a
28
28
clipped. If <em class="parameter"><code>is_primary</code></em> is <code class="literal">True</code> the
29
29
cursor should be the primary cursor color. <em class="parameter"><code>direction</code></em>
30
30
specifies whether the cursor is right-to-left or left-to-right. This is a
31
 
convenience function for drawing the standard cursor shape.</p></div><div class="refsect2" lang="en"><a name="function-gtk--get-default-language"></a><h3>gtk.get_default_language</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_default_language</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>a <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
 
31
convenience function for drawing the standard cursor shape.</p></div><div class="refsect2" title="gtk.get_default_language"><a name="function-gtk--get-default-language"></a><h3>gtk.get_default_language</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_default_language</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>a <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
32
32
object for the default language</td></tr></tbody></table><p>The <code class="function">gtk.get_default_language</code>() function
33
33
returns a <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
34
 
describing the default language.</p></div><div class="refsect2" lang="en"><a name="function-gtk--events-pending"></a><h3>gtk.events_pending</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.events_pending</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><code class="literal">True</code> if any events are
 
34
describing the default language.</p></div><div class="refsect2" title="gtk.events_pending"><a name="function-gtk--events-pending"></a><h3>gtk.events_pending</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.events_pending</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><code class="literal">True</code> if any events are
35
35
pending</td></tr></tbody></table><p>The <code class="function">gtk.events_pending</code>() function returns
36
36
<code class="literal">True</code> if any events are pending. This can be used to
37
37
update the user interface and invoke timeouts etc. while doing some time
38
 
intensive computation.</p></div><div class="refsect2" lang="en"><a name="function-gtk--main-do-event"></a><h3>gtk.main_do_event</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_do_event</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></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>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> to
 
38
intensive computation.</p></div><div class="refsect2" title="gtk.main_do_event"><a name="function-gtk--main-do-event"></a><h3>gtk.main_do_event</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_do_event</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></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>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> to
39
39
process</td></tr></tbody></table><p>The <code class="function">gtk.main_do_event</code>() function processes
40
40
a single <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a>. This
41
41
function is public only to allow filtering of events between
42
42
<code class="literal">GDK</code> and <code class="literal">GTK+</code>. You will not usually
43
43
need to call this function directly. While you should not call this function
44
44
directly, you might want to know how exactly events are handled. So here is
45
 
what this function does with the event:</p><div class="orderedlist"><ol type="1"><li>Compress enter/leave notify events. If the event passed
 
45
what this function does with the event:</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">Compress enter/leave notify events. If the event passed
46
46
builds an enter-leave pair together with the next event (peeked from
47
47
<code class="literal">GDK</code>) both events are thrown away. This is to avoid a
48
 
backlog of (de-)highlighting widgets crossed by the pointer.</li><li>Find the widget which got the event. If the widget can't
 
48
backlog of (de-)highlighting widgets crossed by the pointer.</li><li class="listitem">Find the widget which got the event. If the widget can't
49
49
be determined the event is thrown away unless it belongs to a
50
50
<code class="literal">INCR</code> transaction. In that case it is passed to
51
 
<code class="function">gtk_selection_incr_event</code>().</li><li>Then the event is passed on a stack so you can query the
52
 
currently handled event with <a class="link" href="gtk-functions.html#function-gtk--get-current-event" title="gtk.get_current_event"><code class="function">gtk.get_current_event</code>()</a>.</li><li><p>The event is sent to a widget. If a grab is active all
 
51
<code class="function">gtk_selection_incr_event</code>().</li><li class="listitem">Then the event is passed on a stack so you can query the
 
52
currently handled event with <a class="link" href="gtk-functions.html#function-gtk--get-current-event" title="gtk.get_current_event"><code class="function">gtk.get_current_event</code>()</a>.</li><li class="listitem"><p class="simpara">The event is sent to a widget. If a grab is active all
53
53
events for widgets that are not in the contained in the grab widget are sent
54
 
to the latter with a few exceptions:</p><div class="itemizedlist"><ul type="disc"><li>Deletion and destruction events are still sent to the
55
 
event widget for obvious reasons. </li><li>Events which directly relate to the visual
56
 
representation of the event widget. </li><li>Leave events are delivered to the event widget if
 
54
to the latter with a few exceptions:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">Deletion and destruction events are still sent to the
 
55
event widget for obvious reasons. </li><li class="listitem">Events which directly relate to the visual
 
56
representation of the event widget. </li><li class="listitem">Leave events are delivered to the event widget if
57
57
there was an enter event delivered to it before without the paired leave
58
 
event. </li><li>Drag events are not redirected because it is unclear
59
 
what the semantics of that would be. </li></ul></div><p>Another point of interest might be that all key events
 
58
event. </li><li class="listitem">Drag events are not redirected because it is unclear
 
59
what the semantics of that would be. </li></ul></div><p class="simpara">Another point of interest might be that all key events
60
60
are first passed through the key snooper functions if there are any. Read
61
61
the description of <code class="function">gtk_key_snooper_install</code>() if you
62
 
need this feature.</p></li><li>After finishing the delivery the event is popped from the
63
 
event stack. </li></ol></div><p></p></div><div class="refsect2" lang="en"><a name="function-gtk--main"></a><h3>gtk.main</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.main</code>() function runs the main loop
 
62
need this feature.</p></li><li class="listitem">After finishing the delivery the event is popped from the
 
63
event stack. </li></ol></div><p></p></div><div class="refsect2" title="gtk.main"><a name="function-gtk--main"></a><h3>gtk.main</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.main</code>() function runs the main loop
64
64
until the <a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit"><code class="function">gtk.main_quit</code>()</a> 
65
65
function is called. You can nest calls to <code class="function">gtk.main</code>().
66
66
In that case the call to the <a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit"><code class="function">gtk.main_quit</code>()</a> 
67
 
function will make the innermost invocation of the main loop return.</p></div><div class="refsect2" lang="en"><a name="function-gtk--main-level"></a><h3>gtk.main_level</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_level</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 nesting level of the current invocation of
 
67
function will make the innermost invocation of the main loop return.</p></div><div class="refsect2" title="gtk.main_level"><a name="function-gtk--main-level"></a><h3>gtk.main_level</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_level</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 nesting level of the current invocation of
68
68
the main loop</td></tr></tbody></table><p>The <code class="function">gtk.main_level</code>() function returns the
69
69
current nesting level of the main loop. The nesting level is increased by
70
70
calling the <a class="link" href="gtk-functions.html#function-gtk--main" title="gtk.main"><code class="function">gtk.main</code>()</a> function
71
71
and reduced by calling the <a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit"><code class="function">gtk.main_quit</code>()</a> 
72
 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--main-quit"></a><h3>gtk.main_quit</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_quit</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.main_quit</code>() function terminates the
 
72
function.</p></div><div class="refsect2" title="gtk.main_quit"><a name="function-gtk--main-quit"></a><h3>gtk.main_quit</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_quit</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.main_quit</code>() function terminates the
73
73
current main loop level started by the most recent call to the <a class="link" href="gtk-functions.html#function-gtk--main" title="gtk.main"><code class="function">gtk.main</code>()</a>
74
74
function. The nesting level of the main loop is reduced by calling this
75
 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--main-iteration"></a><h3>gtk.main_iteration</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_iteration</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span><span class="initializer">=True</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>block</code></strong> :</span></p></td><td>if <code class="literal">True</code> block if no events
 
75
function.</p></div><div class="refsect2" title="gtk.main_iteration"><a name="function-gtk--main-iteration"></a><h3>gtk.main_iteration</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_iteration</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span><span class="initializer">=True</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>block</code></strong> :</span></p></td><td>if <code class="literal">True</code> block if no events
76
76
are pending</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 <a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit"><code class="function">gtk.main_quit</code>()</a> 
77
77
function has been called for the innermost main loop.</td></tr></tbody></table><p>The <code class="function">gtk.main_iteration</code>() function runs a
78
78
single iteration of the mainloop. If no events are waiting to be processed
79
79
<code class="literal">PyGTK</code> will block until the next event is noticed if
80
80
<em class="parameter"><code>block</code></em> is <code class="literal">True</code>. This function is
81
81
identical to the <a class="link" href="gtk-functions.html#function-gtk--main-iteration-do" title="gtk.main_iteration_do"><code class="function">gtk.main_iteration_do</code>()</a> 
82
 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--main-iteration-do"></a><h3>gtk.main_iteration_do</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_iteration_do</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span><span class="initializer">=True</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>block</code></strong> :</span></p></td><td>if <code class="literal">True</code> block if no events
 
82
function.</p></div><div class="refsect2" title="gtk.main_iteration_do"><a name="function-gtk--main-iteration-do"></a><h3>gtk.main_iteration_do</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.main_iteration_do</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>block</code></strong></span><span class="initializer">=True</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>block</code></strong> :</span></p></td><td>if <code class="literal">True</code> block if no events
83
83
are pending</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 <a class="link" href="gtk-functions.html#function-gtk--main-quit" title="gtk.main_quit"><code class="function">gtk.main_quit</code>()</a> 
84
84
function has been called for the innermost main loop.</td></tr></tbody></table><p>The <code class="function">gtk.main_iteration_do</code>() function runs a
85
85
single iteration of the main loop. If <em class="parameter"><code>block</code></em> is
86
86
<code class="literal">True</code> block until an event occurs. This function is
87
87
identical to the <a class="link" href="gtk-functions.html#function-gtk--main-iteration" title="gtk.main_iteration"><code class="function">gtk.main_iteration</code>()</a> 
88
 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--grab-get-current"></a><h3>gtk.grab_get_current</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.grab_get_current</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 <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> that has
 
88
function.</p></div><div class="refsect2" title="gtk.grab_get_current"><a name="function-gtk--grab-get-current"></a><h3>gtk.grab_get_current</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.grab_get_current</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 <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> that has
89
89
the grab currently or <code class="literal">None</code> if no grab is
90
90
active</td></tr></tbody></table><p>The <code class="function">gtk.grab_get_current</code>() function returns
91
91
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
92
 
that has the grab or <code class="literal">None</code> if no grab is active.</p></div><div class="refsect2" lang="en"><a name="function-gtk--quit-add"></a><h3>gtk.quit_add</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.quit_add</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>level</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</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"><strong class="parameter"><code>level</code></strong> :</span></p></td><td>the level at which termination
 
92
that has the grab or <code class="literal">None</code> if no grab is active.</p></div><div class="refsect2" title="gtk.quit_add"><a name="function-gtk--quit-add"></a><h3>gtk.quit_add</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.quit_add</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>level</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</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"><strong class="parameter"><code>level</code></strong> :</span></p></td><td>the level at which termination
93
93
<em class="parameter"><code>func</code></em> shall be called. You can pass 0 here to have
94
94
<em class="parameter"><code>func</code></em> run at the termination of the current main
95
95
loop.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>func</code></strong> :</span></p></td><td>the function to call - it should return 0 to be
102
102
<em class="parameter"><code>func</code></em> should return 0 to be removed from the list of
103
103
quit handlers. This function returns a handler ID that is used when removing
104
104
the handler with the <a class="link" href="gtk-functions.html#function-gtk--quit-remove" title="gtk.quit_remove"><code class="function">gtk.quit_remove</code>()</a> 
105
 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--quit-remove"></a><h3>gtk.quit_remove</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.quit_remove</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>quit_handler_id</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>quit_handler_id</code></strong> :</span></p></td><td>the ID of a quit handler</td></tr></tbody></table><p>The <code class="function">gtk.quit_remove</code>() function removes the
 
105
function.</p></div><div class="refsect2" title="gtk.quit_remove"><a name="function-gtk--quit-remove"></a><h3>gtk.quit_remove</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.quit_remove</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>quit_handler_id</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>quit_handler_id</code></strong> :</span></p></td><td>the ID of a quit handler</td></tr></tbody></table><p>The <code class="function">gtk.quit_remove</code>() function removes the
106
106
quit handler specified by <em class="parameter"><code>quit_handler_id</code></em> from the
107
 
list of quit handlers.</p></div><div class="refsect2" lang="en"><a name="function-gtk--get-current-event"></a><h3>gtk.get_current_event</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_current_event</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>a copy of the current event or
108
 
<code class="literal">None</code></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.get_current_event</code>() function
 
107
list of quit handlers.</p></div><div class="refsect2" title="gtk.get_current_event"><a name="function-gtk--get-current-event"></a><h3>gtk.get_current_event</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_current_event</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>a copy of the current event or
 
108
<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 function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.get_current_event</code>() function
109
109
returns a copy of the event currently being processed by GTK+. For example,
110
110
if you get a "clicked" signal from <a class="link" href="class-gtkbutton.html" title="gtk.Button"><code class="classname">gtk.Button</code></a>, the
111
111
current event will be the GdkEventButton that triggered the "clicked"
112
112
signal. If there is no current event, the function returns
113
 
<code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><a name="function-gtk--get-current-event-state"></a><h3>gtk.get_current_event_state</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_current_event_state</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 state of the current event if any or
 
113
<code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.get_current_event_state"><a name="function-gtk--get-current-event-state"></a><h3>gtk.get_current_event_state</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_current_event_state</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 state of the current event if any or
114
114
<code class="literal">None</code> if there is no current event or
115
 
state</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.get_current_event_state</code>() function
 
115
state</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.6 and above.</p></div><p>The <code class="function">gtk.get_current_event_state</code>() function
116
116
returns the state of the current event or <code class="literal">None</code> if there
117
 
is no current event or state.</p></div><div class="refsect2" lang="en"><a name="function-gtk--get-current-event-time"></a><h3>gtk.get_current_event_time</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_current_event_time</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 timestamp of the current event or
 
117
is no current event or state.</p></div><div class="refsect2" title="gtk.get_current_event_time"><a name="function-gtk--get-current-event-time"></a><h3>gtk.get_current_event_time</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.get_current_event_time</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 timestamp of the current event or
118
118
0L</td></tr></tbody></table><p>The <code class="function">gtk.get_current_event_time</code>() function
119
119
returns the timestamp from the current event or 0L if there is no current
120
 
event.</p></div><div class="refsect2" lang="en"><a name="function-gtk--init-check"></a><h3>gtk.init_check</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.init_check</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><code class="literal">True</code> if GTK has been
 
120
event.</p></div><div class="refsect2" title="gtk.init_check"><a name="function-gtk--init-check"></a><h3>gtk.init_check</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.init_check</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><code class="literal">True</code> if GTK has been
121
121
          successfully initialized</td></tr></tbody></table><p>The <code class="function">gtk.init_check</code>() function tries to
122
122
      initialize GTK and returns <code class="literal">True</code> if
123
 
      successful.</p></div><div class="refsect2" lang="en"><a name="function-gtk--remove-log-handlers"></a><h3>gtk.remove_log_handlers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.remove_log_handlers</span>(<span class="methodparam"></span>)</code></pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.10 and above.</p></div><p>The <code class="function">gtk.remove_log_handlers</code>() function
124
 
      removes the default PyGTK log handlers,</p></div><div class="refsect2" lang="en"><a name="function-gtk--add-log-handlers"></a><h3>gtk.add_log_handlers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.add_log_handlers</span>(<span class="methodparam"></span>)</code></pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.10 and above.</p></div><p>The <code class="function">gtk.add_log_handlers</code>() function
 
123
      successful.</p></div><div class="refsect2" title="gtk.remove_log_handlers"><a name="function-gtk--remove-log-handlers"></a><h3>gtk.remove_log_handlers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.remove_log_handlers</span>(<span class="methodparam"></span>)</code></pre><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.10 and above.</p></div><p>The <code class="function">gtk.remove_log_handlers</code>() function
 
124
      removes the default PyGTK log handlers,</p></div><div class="refsect2" title="gtk.add_log_handlers"><a name="function-gtk--add-log-handlers"></a><h3>gtk.add_log_handlers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.add_log_handlers</span>(<span class="methodparam"></span>)</code></pre><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.10 and above.</p></div><p>The <code class="function">gtk.add_log_handlers</code>() function
125
125
      installs the default PyGTK log handlers,</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-gtkwindowgroup.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="gtk-stock-items.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.WindowGroup </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Stock Items</td></tr></table></div></body></html>