This file is indexed.

/usr/share/gtk-doc/html/pygtk/gtk-functions.html is in python-gtk2-doc 2.24.0-4ubuntu1.

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

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<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.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-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="id4140549"></a><h2>Synopsis</h2><div class="refsect2" title="gtk.AboutDialog Functions"><a name="id4140555"></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="id4140654"></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="id4140883"></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="id4141338"></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="id4141436"></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="id4141474"></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="id4141546"></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="id4141583"></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.ComboBoxText Functions"><a name="id4141621"></a><h3><a class="link" href="class-gtkcomboboxtext.html" title="gtk.ComboBoxText"><code class="classname">gtk.ComboBoxText</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcomboboxtext.html#function-gtk--combo-box-text-new-with-entry" title="gtk.combo_box_text_new_with_entry">gtk.combo_box_text_new_with_entry</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.Container Functions"><a name="id4141659"></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="id4141759"></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"><a class="link" href="class-gtkdialog.html#function-gtk--alternative-dialog-button-order" title="gtk.alternative_dialog_button_order">gtk.alternative_dialog_button_order</a></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="id4141806"></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="id4141851"></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="id4141897"></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="id4142129"></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="id4142241"></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="id4142406"></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="id4142478"></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="id4142539"></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="id4142776"></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="id4142969"></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="id4143027"></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="id4143427"></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="id4143492"></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="id4143733"></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="id4143797"></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="id4143957"></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="id4144002"></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="id4144101"></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="id4144403"></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="id4144591"></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="id4144682"></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><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--remove-log-handlers" title="gtk.remove_log_handlers">gtk.remove_log_handlers</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--add-log-handlers" title="gtk.add_log_handlers">gtk.add_log_handlers</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--set-interactive" title="gtk.set_interactive">gtk.set_interactive</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>interactive</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gtk-functions.html#function-gtk--show-uri" title="gtk.show_uri">gtk.show_uri</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>timestamp</code></strong></span></span>)</code>
</pre></div></div><div class="refsect1" title="Description"><a name="id4145285"></a><h2>Description</h2><p>All <code class="literal">PyGTK</code> functions for the gtk module are
listed above categorized by class. Those functions associated with a class
have their descriptions included with the class reference. Those functions
that are not associated with a specific class are described below.</p></div><div class="refsect1" title="Functions"><a name="id4145306"></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
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
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
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
<code class="literal">GTK+</code> library is compatible or a string describing the
mismatch</td></tr></tbody></table><p>The <code class="function">gtk.check_version</code>() function checks the
underlying <code class="literal">GTK+</code> library version against the version
specified by <em class="parameter"><code>required_major</code></em>,
<em class="parameter"><code>required_minor</code></em> and
<em class="parameter"><code>required_micro</code></em>. If the library is compatible this
function returns <code class="literal">None</code>; otherwise it returns a string
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
<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
	  (<em class="parameter"><code>location.width</code></em> is
	  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
	  be the primary cursor color.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>direction</code></strong> :</span></p></td><td>the direction of the cursor; either
	  <code class="literal">gtk.TEXT_DIR_LTR</code> or
	  <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
	  arrow on the cursor. Should be <code class="literal">False</code> unless the
	  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
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>
specified by <em class="parameter"><code>drawable</code></em> at the position specified by
<em class="parameter"><code>location</code></em>. <em class="parameter"><code>area</code></em> specifies a
clipping rectangle or is <code class="literal">None</code> if the output should not be
clipped. If <em class="parameter"><code>is_primary</code></em> is <code class="literal">True</code> the
cursor should be the primary cursor color. <em class="parameter"><code>direction</code></em>
specifies whether the cursor is right-to-left or left-to-right. This is a
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>
object for the default language</td></tr></tbody></table><p>The <code class="function">gtk.get_default_language</code>() function
returns a <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
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
pending</td></tr></tbody></table><p>The <code class="function">gtk.events_pending</code>() function returns
<code class="literal">True</code> if any events are pending. This can be used to
update the user interface and invoke timeouts etc. while doing some time
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
process</td></tr></tbody></table><p>The <code class="function">gtk.main_do_event</code>() function processes
a single <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a>. This
function is public only to allow filtering of events between
<code class="literal">GDK</code> and <code class="literal">GTK+</code>. You will not usually
need to call this function directly. While you should not call this function
directly, you might want to know how exactly events are handled. So here is
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
builds an enter-leave pair together with the next event (peeked from
<code class="literal">GDK</code>) both events are thrown away. This is to avoid a
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
be determined the event is thrown away unless it belongs to a
<code class="literal">INCR</code> transaction. In that case it is passed to
<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
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
events for widgets that are not in the contained in the grab widget are sent
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
event widget for obvious reasons. </li><li class="listitem">Events which directly relate to the visual
representation of the event widget. </li><li class="listitem">Leave events are delivered to the event widget if
there was an enter event delivered to it before without the paired leave
event. </li><li class="listitem">Drag events are not redirected because it is unclear
what the semantics of that would be. </li></ul></div><p class="simpara">Another point of interest might be that all key events
are first passed through the key snooper functions if there are any. Read
the description of <code class="function">gtk_key_snooper_install</code>() if you
need this feature.</p></li><li class="listitem">After finishing the delivery the event is popped from the
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
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> 
function is called. You can nest calls to <code class="function">gtk.main</code>().
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> 
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
the main loop</td></tr></tbody></table><p>The <code class="function">gtk.main_level</code>() function returns the
current nesting level of the main loop. The nesting level is increased by
calling the <a class="link" href="gtk-functions.html#function-gtk--main" title="gtk.main"><code class="function">gtk.main</code>()</a> function
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> 
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
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>
function. The nesting level of the main loop is reduced by calling this
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
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> 
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
single iteration of the mainloop. If no events are waiting to be processed
<code class="literal">PyGTK</code> will block until the next event is noticed if
<em class="parameter"><code>block</code></em> is <code class="literal">True</code>. This function is
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> 
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
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> 
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
single iteration of the main loop. If <em class="parameter"><code>block</code></em> is
<code class="literal">True</code> block until an event occurs. This function is
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> 
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
the grab currently or <code class="literal">None</code> if no grab is
active</td></tr></tbody></table><p>The <code class="function">gtk.grab_get_current</code>() function returns
the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
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
<em class="parameter"><code>func</code></em> shall be called. You can pass 0 here to have
<em class="parameter"><code>func</code></em> run at the termination of the current main
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
removed from the list of quit handlers</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>...</code></strong> :</span></p></td><td>optional parameter(s) to be passed to
<em class="parameter"><code>func</code></em></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a handle for this quit handler (you need this
for the <a class="link" href="gtk-functions.html#function-gtk--quit-remove" title="gtk.quit_remove"><code class="function">gtk.quit_remove</code>()</a> 
function).</td></tr></tbody></table><p>The <code class="function">gtk.quit_add</code>() function registers a
function specified by <em class="parameter"><code>func</code></em> to be called when the
specified main loop <em class="parameter"><code>level</code></em> is exited.
<em class="parameter"><code>func</code></em> should return 0 to be removed from the list of
quit handlers. This function returns a handler ID that is used when removing
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> 
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
quit handler specified by <em class="parameter"><code>quit_handler_id</code></em> from the
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
<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
returns a copy of the event currently being processed by GTK+. For example,
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
current event will be the GdkEventButton that triggered the "clicked"
signal. If there is no current event, the function returns
<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
<code class="literal">None</code> if there is no current event or
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
returns the state of the current event or <code class="literal">None</code> if there
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
0L</td></tr></tbody></table><p>The <code class="function">gtk.get_current_event_time</code>() function
returns the timestamp from the current event or 0L if there is no current
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
          successfully initialized</td></tr></tbody></table><p>The <code class="function">gtk.init_check</code>() function tries to
      initialize GTK and returns <code class="literal">True</code> if
      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
      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
      installs the default PyGTK log handlers,</p></div><div class="refsect2" title="gtk.set_interactive"><a name="function-gtk--set-interactive"></a><h3>gtk.set_interactive</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.set_interactive</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>interactive</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>interactive</code></em> :</span></p></td><td>If <code class="literal">True</code> interactive usage is enabled</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.16 and above.</p></div><p>The <code class="function">gtk.set_interactive</code>() function can be used to
enable or disable interactive usage of PyGTK. By default, interactive usage is switched
on when importing gtk. You can then use PyGTK from the Python command prompt and see the
results immediately without having to call <code class="function">gtk.main</code>().</p></div><div class="refsect2" title="gtk.show_uri"><a name="function-gtk--show-uri"></a><h3>gtk.show_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">show_uri</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>screen</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>uri</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>timestamp</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>screen</code></strong> :</span></p></td><td>A
                        <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>
                        to show the uri on or <code class="literal">None</code> for the default screen.
                    </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>uri</code></strong> :</span></p></td><td>the uri to show.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>timestamp</code></strong> :</span></p></td><td>a timestamp to prevent focus stealing.
                    </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.14 and above.</p></div><p>
            The <code class="methodname">show_uri</code>() function is a convenience
            function for launching the default application to show the uri.
            The uri must be of a form understood by GIO. Typical examples are:
        </p><pre class="programlisting">
file:///home/gnome/pict.jpg
http://www.gnome.org
mailto:me@gnome.org
</pre><p>
            Ideally the timestamp is taken from the event triggering the
            <code class="methodname"><a class="link" href="gtk-functions.html#function-gtk--show-uri" title="gtk.show_uri">gtk.show_uri</a></code>()
            call. If timestamp is not known you can take gtk.gdk.CURRENT_TIME.
        </p><p>
            This function can be used as a replacement for gnome_vfs_url_show() and gnome_url_show().
        </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>