This file is indexed.

/usr/share/gtk-doc/html/pygtk/gdk-functions.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.

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

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk 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="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="prev" href="class-gdkwindow.html" title="gtk.gdk.Window"><link rel="next" href="gdk-constants.html" title="gtk.gdk Constants"></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.gdk Functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkwindow.html">Prev</a> </td><th width="60%" align="center">The gtk.gdk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="gdk-constants.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.gdk Functions"><a name="gdk-functions"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk Functions</h2><p>gtk.gdk Functions — the gtk.gdk module functions</p></div><div class="refsect1" title="Synopsis"><a name="id3009453"></a><h2>Synopsis</h2><div class="refsect2" title="gtk.gdk.Atom Functions"><a name="id3009459"></a><h3><a class="link" href="class-gdkatom.html" title="gtk.gdk.Atom"><code class="classname">gtk.gdk.Atom</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkatom.html#constructor-gdkatom-intern" title="Constructor">gtk.gdk.atom_intern</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>only_if_exists</code></strong></span><span class="initializer">=False</span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Color Functions"><a name="id3009519"></a><h3><a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcolor.html#function-gdk--color-parse" title="gtk.gdk.color_parse">gtk.gdk.color_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spec</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Colormap Functions"><a name="id3009563"></a><h3><a class="link" href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><code class="classname">gtk.gdk.Colormap</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcolormap.html#function-gdk--colormap-get-system" title="gtk.gdk.colormap_get_system">gtk.gdk.colormap_get_system</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Device Functions"><a name="id3009599"></a><h3><a class="link" href="class-gdkdevice.html" title="gtk.gdk.Device"><code class="classname">gtk.gdk.Device</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdevice.html#function-gdk--devices-list" title="gtk.gdk.devices_list">gtk.gdk.devices_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdevice.html#function-gdk--device-get-core-pointer" title="gtk.gdk.device_get_core_pointer">gtk.gdk.device_get_core_pointer</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Display Functions"><a name="id3009654"></a><h3><a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdisplay.html#function-gdk--display-get-default" title="gtk.gdk.display_get_default">gtk.gdk.display_get_default</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.DisplayManager Functions"><a name="id3009690"></a><h3><a class="link" href="class-gdkdisplaymanager.html" title="gtk.gdk.DisplayManager"><code class="classname">gtk.gdk.DisplayManager</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdisplaymanager.html#function-gdk--display-manager-get" title="gtk.gdk.display_manager_get">gtk.gdk.display_manager_get</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Event Functions"><a name="id3009726"></a><h3><a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--events-pending" title="gtk.gdk.events_pending">gtk.gdk.events_pending</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--event-peek" title="gtk.gdk.event_peek">gtk.gdk.event_peek</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--event-get" title="gtk.gdk.event_get">gtk.gdk.event_get</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--event-get-graphics-expose" title="gtk.gdk.event_get_graphics_expose">gtk.gdk.event_get_graphics_expose</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--set-show-events" title="gtk.gdk.set_show_events">gtk.gdk.set_show_events</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_events</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--get-show-events" title="gtk.gdk.get_show_events">gtk.gdk.get_show_events</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkevent.html#function-gdk--event-handler-set" title="gtk.gdk.event_handler_set">gtk.gdk.event_handler_set</a></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>data</code></em></span><span class="initializer">=None</span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Keymap Functions"><a name="id3009904"></a><h3><a class="link" href="class-gdkkeymap.html" title="gtk.gdk.Keymap"><code class="classname">gtk.gdk.Keymap</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keymap-get-default" title="gtk.gdk.keymap_get_default">gtk.gdk.keymap_get_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keymap-get-for-display" title="gtk.gdk.keymap_get_for_display">gtk.gdk.keymap_get_for_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-name" title="gtk.gdk.keyval_name">gtk.gdk.keyval_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-from-name" title="gtk.gdk.keyval_from_name">gtk.gdk.keyval_from_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-convert-case" title="gtk.gdk.keyval_convert_case">gtk.gdk.keyval_convert_case</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>symbol</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-to-upper" title="gtk.gdk.keyval_to_upper">gtk.gdk.keyval_to_upper</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-to-lower" title="gtk.gdk.keyval_to_lower">gtk.gdk.keyval_to_lower</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-is-upper" title="gtk.gdk.keyval_is_upper">gtk.gdk.keyval_is_upper</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-is-lower" title="gtk.gdk.keyval_is_lower">gtk.gdk.keyval_is_lower</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--keyval-to-unicode" title="gtk.gdk.keyval_to_unicode">gtk.gdk.keyval_to_unicode</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>keyval</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkkeymap.html#function-gdk--unicode-to-keyval" title="gtk.gdk.unicode_to_keyval">gtk.gdk.unicode_to_keyval</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wc</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.PangoRenderer Functions"><a name="id3010192"></a><h3><a class="link" href="class-gdkpangorenderer.html" title="gtk.gdk.PangoRenderer"><code class="classname">gtk.gdk.PangoRenderer</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpangorenderer.html#function-gdk--gdk-pango-renderer-get-default" title="gtk.gdk.gdk_pango_renderer_get_default">gtk.gdk.gdk_pango_renderer_get_default</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.gdk.Pixbuf Functions"><a name="id3010235"></a><h3><a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixbuf.html#function-gdk--pixbuf-new-from-file" title="gtk.gdk.pixbuf_new_from_file">gtk.gdk.pixbuf_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-gdkpixbuf.html#function-gdk--pixbuf-new-from-file-at-size" title="gtk.gdk.pixbuf_new_from_file_at_size">gtk.gdk.pixbuf_new_from_file_at_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</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-gdkpixbuf.html#function-gdk--pixbuf-new-from-data" title="gtk.gdk.pixbuf_new_from_data">gtk.gdk.pixbuf_new_from_data</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>colorspace</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>has_alpha</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bits_per_sample</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>rowstride</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixbuf.html#function-gdk--pixbuf-new-from-array" title="gtk.gdk.pixbuf_new_from_array">gtk.gdk.pixbuf_new_from_array</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>array</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>colorspace</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bits_per_sample</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixbuf.html#function-gdk--pixbuf-new-from-xpm-data" title="gtk.gdk.pixbuf_new_from_xpm_data">gtk.gdk.pixbuf_new_from_xpm_data</a></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-gdkpixbuf.html#function-gdk--pixbuf-new-from-inline" title="gtk.gdk.pixbuf_new_from_inline">gtk.gdk.pixbuf_new_from_inline</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>data_length</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>copy_pixels</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixbuf.html#function-gdk--pixbuf-get-formats" title="gtk.gdk.pixbuf_get_formats">gtk.gdk.pixbuf_get_formats</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="class-gdkpixbuf.html#function-gdk--pixbuf-get-file-info" title="gtk.gdk.pixbuf_get_file_info">gtk.gdk.pixbuf_get_file_info</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.PixbufLoader Functions"><a name="id3010619"></a><h3><a class="link" href="class-gdkpixbufloader.html" title="gtk.gdk.PixbufLoader"><code class="classname">gtk.gdk.PixbufLoader</code> Functions</a></h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixbufloader.html#function-gdk--pixbuf-loader-new-with-mime-type" title="gtk.gdk.pixbuf_loader_new_with_mime_type">gtk.gdk.pixbuf_loader_new_with_mime_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mime_type</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Pixmap Functions"><a name="id3010663"></a><h3><a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixmap.html#function-gdk--bitmap-create-from-data" title="gtk.gdk.bitmap_create_from_data">gtk.gdk.bitmap_create_from_data</a></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>data</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-gdkpixmap.html#function-gdk--pixmap-create-from-data" title="gtk.gdk.pixmap_create_from_data">gtk.gdk.pixmap_create_from_data</a></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>data</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>depth</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fg</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bg</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixmap.html#function-gdk--pixmap-create-from-xpm" title="gtk.gdk.pixmap_create_from_xpm">gtk.gdk.pixmap_create_from_xpm</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>transparent_color</code></strong></span></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-gdkpixmap.html#function-gdk--pixmap-colormap-create-from-xpm" title="gtk.gdk.pixmap_colormap_create_from_xpm">gtk.gdk.pixmap_colormap_create_from_xpm</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>colormap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>transparent_color</code></strong></span></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-gdkpixmap.html#function-gdk--pixmap-create-from-xpm-d" title="gtk.gdk.pixmap_create_from_xpm_d">gtk.gdk.pixmap_create_from_xpm_d</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>transparent_color</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-gdkpixmap.html#function-gdk--pixmap-colormap-create-from-xpm-d" title="gtk.gdk.pixmap_colormap_create_from_xpm_d">gtk.gdk.pixmap_colormap_create_from_xpm_d</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>colormap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>transparent_color</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-gdkpixmap.html#function-gdk--pixmap-foreign-new" title="gtk.gdk.pixmap_foreign_new">gtk.gdk.pixmap_foreign_new</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixmap.html#function-gdk--pixmap-lookup" title="gtk.gdk.pixmap_lookup">gtk.gdk.pixmap_lookup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixmap.html#function-gdk--pixmap-foreign-new-for-display" title="gtk.gdk.pixmap_foreign_new_for_display">gtk.gdk.pixmap_foreign_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>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkpixmap.html#function-gdk--pixmap-lookup-for-display" title="gtk.gdk.pixmap_lookup_for_display">gtk.gdk.pixmap_lookup_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>anid</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Region Functions"><a name="id3370426"></a><h3><a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#function-gdk--region-rectangle" title="gtk.gdk.region_rectangle">gtk.gdk.region_rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rectangle</code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Screen Functions"><a name="id3370469"></a><h3><a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkscreen.html#function-gdk--screen-width" title="gtk.gdk.screen_width">gtk.gdk.screen_width</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkscreen.html#function-gdk--screen-height" title="gtk.gdk.screen_height">gtk.gdk.screen_height</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkscreen.html#function-gdk--screen-width-mm" title="gtk.gdk.screen_width_mm">gtk.gdk.screen_width_mm</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkscreen.html#function-gdk--screen-height-mm" title="gtk.gdk.screen_height_mm">gtk.gdk.screen_height_mm</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkscreen.html#function-gdk--screen-get-default" title="gtk.gdk.screen_get_default">gtk.gdk.screen_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.gdk.Visual Functions"><a name="id3370584"></a><h3><a class="link" href="class-gdkvisual.html" title="gtk.gdk.Visual"><code class="classname">gtk.gdk.Visual</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkvisual.html#function-gdk--list-visuals" title="gtk.gdk.list_visuals">gtk.gdk.list_visuals</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="class-gdkvisual.html#function-gdk--visual-get-best" title="gtk.gdk.visual_get_best">gtk.gdk.visual_get_best</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="class-gdkvisual.html#function-gdk--visual-get-best-depth" title="gtk.gdk.visual_get_best_depth">gtk.gdk.visual_get_best_depth</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="class-gdkvisual.html#function-gdk--visual-get-best-type" title="gtk.gdk.visual_get_best_type">gtk.gdk.visual_get_best_type</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="class-gdkvisual.html#function-gdk--visual-get-best-with-depth" title="gtk.gdk.visual_get_best_with_depth">gtk.gdk.visual_get_best_with_depth</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>depth</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkvisual.html#function-gdk--visual-get-best-with-type" title="gtk.gdk.visual_get_best_with_type">gtk.gdk.visual_get_best_with_type</a></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-gdkvisual.html#function-gdk--visual-get-system" title="gtk.gdk.visual_get_system">gtk.gdk.visual_get_system</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="class-gdkvisual.html#function-gdk--query-depths" title="gtk.gdk.query_depths">gtk.gdk.query_depths</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="class-gdkvisual.html#function-gdk--query-visual-types" title="gtk.gdk.query_visual_types">gtk.gdk.query_visual_types</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre></div><div class="refsect2" title="gtk.gdk.Window Functions"><a name="id3370818"></a><h3><a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a> Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkwindow.html#function-gdk--window-foreign-new" title="gtk.gdk.window_foreign_new">gtk.gdk.window_foreign_new</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkwindow.html#function-gdk--window-foreign-new-for-display" title="gtk.gdk.window_foreign_new_for_display">gtk.gdk.window_foreign_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>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkwindow.html#function-gdk--get-default-root-window" title="gtk.gdk.get_default_root_window">gtk.gdk.get_default_root_window</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="class-gdkwindow.html#function-gdk--window-get-toplevels" title="gtk.gdk.window_get_toplevels">gtk.gdk.window_get_toplevels</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="class-gdkwindow.html#function-gdk--window-lookup" title="gtk.gdk.window_lookup">gtk.gdk.window_lookup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkwindow.html#function-gdk--window-lookup-for-display" title="gtk.gdk.window_lookup_for_display">gtk.gdkwindow_lookup_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>anid</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkwindow.html#function-gdk--window-process-all-updates" title="gtk.gdk.window_process_all_updates">gtk.gdk.window_process_all_updates</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="class-gdkwindow.html#function-gdk--gdk-window-set-debug-updates" title="gtk.gdk.gdk_window_set_debug_updates">gtk.gdk.gdk_window_set_debug_updates</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="class-gdkwindow.html#function-gdk--window-at-pointer" title="gtk.gdk.window_at_pointer">gtk.gdk.window_at_pointer</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="id3371084"></a><h3>Miscellaneous Functions</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--pointer-grab" title="gtk.gdk.pointer_grab">gtk.gdk.pointer_grab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>owner_events</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>event_mask</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>confine_to</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>cursor</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--pointer-ungrab" title="gtk.gdk.pointer_ungrab">gtk.gdk.pointer_ungrab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--keyboard-grab" title="gtk.gdk.keyboard_grab">gtk.gdk.keyboard_grab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>owner_events</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--keyboard-ungrab" title="gtk.gdk.keyboard_ungrab">gtk.gdk.keyboard_ungrab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--pointer-is-grabbed" title="gtk.gdk.pointer_is_grabbed">gtk.gdk.pointer_is_grabbed</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--flush" title="gtk.gdk.flush">gtk.gdk.flush</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--beep" title="gtk.gdk.beep">gtk.gdk.beep</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--set-double-click-time" title="gtk.gdk.set_double_click_time">gtk.gdk.set_double_click_time</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>msec</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--threads-enter" title="gtk.gdk.threads_enter">gtk.gdk.threads_enter</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--threads-leave" title="gtk.gdk.threads_leave">gtk.gdk.threads_leave</a></span>(<span class="methodparam"></span>)</code><br><pre class="synopsis">
	  <code class="varname"><a class="link" href="gdk-functions.html#function-gdk--lock" title="gtk.gdk.lock">gtk.gdk.lock</a></code>
  </pre><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--threads-init" title="gtk.gdk.threads_init">gtk.gdk.threads_init</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--rgb-ditherable" title="gtk.gdk.rgb_ditherable">gtk.gdk.rgb_ditherable</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--rgb-get-colormap" title="gtk.gdk.rgb_get_colormap">gtk.gdk.rgb_get_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--rgb-set-verbose" title="gtk.gdk.rgb_set_verbose">gtk.gdk.rgb_set_verbose</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>verbose</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--rgb-set-install" title="gtk.gdk.rgb_set_install">gtk.gdk.rgb_set_install</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>install</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--rgb-set-min-colors" title="gtk.gdk.rgb_set_min_colors">gtk.gdk.rgb_set_min_colors</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>min_colors</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--rgb-get-visual" title="gtk.gdk.rgb_get_visual">gtk.gdk.rgb_get_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--selection-owner-get" title="gtk.gdk.selection_owner_get">gtk.gdk.selection_owner_get</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>selection</code></strong></span></span>)</code><br>
  
  <code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--selection-owner-get-for-display" title="gtk.gdk.selection_owner_get_for_display">gtk.gdk.selection_owner_get_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>selection</code></strong></span></span>)</code><br>
  
  <code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--selection-owner-set-for-display" title="gtk.gdk.selection_owner_set_for_display">gtk.gdk.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>owner</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>send_event</code></strong></span></span>)</code><br>
  
  <code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--selection-send-notify" title="gtk.gdk.selection_send_notify">gtk.gdk.selection_send_notify</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>requestor</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>target</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>property</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--set-sm-client-id" title="gtk.gdk.set_sm_client_id">gtk.gdk.set_sm_client_id</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>sm_client_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--notify-startup-complete" title="gtk.gdk.notify_startup_complete">gtk.gdk.notify_startup_complete</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--get-program-class" title="gtk.gdk.get_program_class">gtk.gdk.get_program_class</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--set-program-class" title="gtk.gdk.set_program_class">gtk.gdk.set_program_class</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>program_class</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--get-display" title="gtk.gdk.get_display">gtk.gdk.get_display</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--get-display-arg-name" title="gtk.gdk.get_display_arg_name">gtk.gdk.get_display_arg_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--pango-context-get-for-screen" title="gtk.gdk.pango_context_get_for_screen">gtk.gdk.pango_context_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="gdk-functions.html#function-gdk--pango-context-get" title="gtk.gdk.pango_context_get">gtk.gdk.pango_context_get</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="gdk-functions.html#function-gdk--x11-display-get-startup-notification-id" title="gtk.gdk.x11_display_get_startup_notification_id">gtk.gdk.x11_display_get_startup_notification_id</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>)</code></pre></div></div><div class="refsect1" title="Description"><a name="id3372026"></a><h2>Description</h2><p>These functions are part of the <code class="literal">PyGTK</code> gtk.gdk
module. All the functions are listed above with links to the function
description. Most functions are associated with a specific object class and
their descriptions are part of the class reference. Those functions that are
not directly associated with a specific class have their descriptions
below.</p></div><div class="refsect1" title="Functions"><a name="id3372048"></a><h2>Functions</h2><div class="refsect2" title="gtk.gdk.pointer_grab"><a name="function-gdk--pointer-grab"></a><h3>gtk.gdk.pointer_grab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.pointer_grab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>owner_events</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>event_mask</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>confine_to</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>cursor</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</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>window</code></strong> :</span></p></td><td>the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a> that
will own the grab (the grab window).</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>owner_events</code></strong> :</span></p></td><td>if <code class="literal">False</code> then all pointer
events are reported with respect to <em class="parameter"><code>window</code></em> and are
only reported if selected by <em class="parameter"><code>event_mask</code></em>. If
<code class="literal">True</code> then pointer events for this application are
reported as normal, but pointer events outside this application are reported
with respect to <em class="parameter"><code>window</code></em> and only if selected by
<em class="parameter"><code>event_mask</code></em>. In either mode, unreported events are
discarded.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>event_mask</code></strong> :</span></p></td><td>specifies the event mask, that is used in
accordance with <em class="parameter"><code>owner_events</code></em>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>confine_to</code></strong> :</span></p></td><td>If not <code class="literal">None</code>, the pointer
will be confined to this <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
during the grab. If the pointer is outside
<em class="parameter"><code>confine_to</code></em>, it will automatically be moved to the
closest edge of <em class="parameter"><code>confine_to</code></em> and enter and leave events
will be generated as necessary.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>cursor</code></strong> :</span></p></td><td>the <a class="link" href="class-gdkcursor.html" title="gtk.gdk.Cursor"><code class="classname">gtk.gdk.Cursor</code></a> to
display while the grab is active. If this is None then the normal cursors
are used for <em class="parameter"><code>window</code></em> and its descendants, and the
cursor for <em class="parameter"><code>window</code></em> is used for all other
windows.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>time</code></strong> :</span></p></td><td>the timestamp of the event that led to this
pointer grab. This usually comes from a <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a>, though
0L can be used to use the current time if the time isn't
known.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a grab status value</td></tr></tbody></table><p>The <code class="function">gtk.gdk.pointer_grab</code>() function grabs
the pointer (usually a mouse) so that all events are passed to this
application until the pointer is ungrabbed with the <a class="link" href="gdk-functions.html#function-gdk--pointer-ungrab" title="gtk.gdk.pointer_ungrab"><code class="function">gtk.gdk.pointer_ungrab</code>()</a>, 
or the grab window becomes unviewable. This overrides any previous pointer
grab by this client. This function returns a grab status value:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.gdk.GRAB_SUCCESS</code></span></p></td><td>The resource was successfully grabbed.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.GRAB_ALREADY_GRABBED</code></span></p></td><td>The resource is actively grabbed by another
client.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.GRAB_INVALID_TIME</code></span></p></td><td>The resource was grabbed more recently than the
specified time.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.GRAB_NOT_VIEWABLE</code></span></p></td><td>The grab window or the
<em class="parameter"><code>confine_to</code></em> window are not viewable.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.gdk.GRAB_FROZEN</code></span></p></td><td>The resource is frozen by an active grab of another
client.</td></tr></tbody></table><p>Pointer grabs are used for operations that need complete
control over mouse events, even if the mouse leaves the application. For
example it is used for drag and drop, for dragging the handle in the <a class="link" href="class-gtkhpaned.html" title="gtk.HPaned"><code class="classname">gtk.HPaned</code></a> and <a class="link" href="class-gtkvpaned.html" title="gtk.VPaned"><code class="classname">gtk.VPaned</code></a> widgets.
Note that if the event mask of an X window has selected both button press
and button release events, then a button press event will cause an automatic
pointer grab until the button is released. X does this automatically since
most applications expect to receive button press and release events in
pairs. It is equivalent to a pointer grab on the window with
<em class="parameter"><code>owner_events</code></em> set to <code class="literal">True</code>.</p></div><div class="refsect2" title="gtk.gdk.pointer_ungrab"><a name="function-gdk--pointer-ungrab"></a><h3>gtk.gdk.pointer_ungrab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.pointer_ungrab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</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>time</code></strong> :</span></p></td><td>a timestamp from a <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a> or 0L
to use the current time</td></tr></tbody></table><p>The <code class="function">gtk.gdk.pointer_ungrab</code>() function
ungrabs the pointer if it is grabbed by this application.</p></div><div class="refsect2" title="gtk.gdk.keyboard_grab"><a name="function-gdk--keyboard-grab"></a><h3>gtk.gdk.keyboard_grab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.keyboard_grab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>owner_events</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</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>window</code></strong> :</span></p></td><td>the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a> that
will own the grab (the grab window).</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>owner_events</code></strong> :</span></p></td><td>if <code class="literal">False</code> then all keyboard
events are reported with respect to <em class="parameter"><code>window</code></em>. If
<code class="literal">True</code> then keyboard events for this application are
reported as normal, but keyboard events outside this application are
reported with respect to <em class="parameter"><code>window</code></em>. Both key press and
key release events are always reported, independent of the event mask set by
the application.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>time</code></strong> :</span></p></td><td>a timestamp from a <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a> or 0L
to use the current time</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a grab status value</td></tr></tbody></table><p>The <code class="function">gtk.gdk.keyboard_grab</code>() function grabs
the keyboard so that all events are passed to this application until the
keyboard is ungrabbed with the <a class="link" href="gdk-functions.html#function-gdk--keyboard-ungrab" title="gtk.gdk.keyboard_ungrab"><code class="function">gtk.gdk.keyboard_ungrab</code>()</a>) 
function. This overrides any previous keyboard grab by this client.</p></div><div class="refsect2" title="gtk.gdk.keyboard_ungrab"><a name="function-gdk--keyboard-ungrab"></a><h3>gtk.gdk.keyboard_ungrab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.keyboard_ungrab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</code></strong></span><span class="initializer">=0L</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>time</code></strong> :</span></p></td><td>a timestamp from a <a class="link" href="class-gdkevent.html" title="gtk.gdk.Event"><code class="classname">gtk.gdk.Event</code></a> or 0L
to use the current time</td></tr></tbody></table><p>The <code class="function">gtk.gdk.keyboard_ungrab</code>() function
ungrabs the keyboard if it is grabbed by this application.</p></div><div class="refsect2" title="gtk.gdk.pointer_is_grabbed"><a name="function-gdk--pointer-is-grabbed"></a><h3>gtk.gdk.pointer_is_grabbed</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.pointer_is_grabbed</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 the pointer is
currently grabbed by this application.</td></tr></tbody></table><p>The <code class="function">gtk.gdk.pointer_is_grabbed</code>() function
returns <code class="literal">True</code> if the pointer is currently grabbed by this
application. Note that this does not take the implicit pointer grab on
button presses into account.</p></div><div class="refsect2" title="gtk.gdk.flush"><a name="function-gdk--flush"></a><h3>gtk.gdk.flush</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.flush</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre><p>The <code class="function">gtk.gdk.flush</code>() function flushes the X
output buffer and waits until all requests have been processed by the
server. This is rarely needed by applications.</p></div><div class="refsect2" title="gtk.gdk.beep"><a name="function-gdk--beep"></a><h3>gtk.gdk.beep</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.beep</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.gdk.beep</code>() function emits a short
beep.</p></div><div class="refsect2" title="gtk.gdk.set_double_click_time"><a name="function-gdk--set-double-click-time"></a><h3>gtk.gdk.set_double_click_time</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.set_double_click_time</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>msec</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>msec</code></strong> :</span></p></td><td>the double click time in
milliseconds</td></tr></tbody></table><p>The <code class="function">gtk.gdk.set_double_click_time</code>()
function set the double click time for the default display. Applications
should NOT set this, it is a global user-configured setting.</p></div><div class="refsect2" title="gtk.gdk.threads_enter"><a name="function-gdk--threads-enter"></a><h3>gtk.gdk.threads_enter</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.threads_enter</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.gdk.threads_enter</code>() function marks
the beginning of a critical section that only one thread can operate within
at a time. The critical section is guarded by a <code class="literal">GDK</code>
mutual exclusion lock. Python threads are enabled while waiting for the
<code class="literal">GDK</code> lock. See the <a class="link" href="gdk-functions.html#function-gdk--threads-init" title="gtk.gdk.threads_init"><code class="function">gtk.gtk.threads_init</code>()</a> 
function for more information about threading.</p></div><div class="refsect2" title="gtk.gdk.threads_leave"><a name="function-gdk--threads-leave"></a><h3>gtk.gdk.threads_leave</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.threads_leave</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.gdk.threads_leave</code>() function marks
the end of a critical section started by the <a class="link" href="gdk-functions.html#function-gdk--threads-enter" title="gtk.gdk.threads_enter"><code class="function">gtk.gdk.threads_enter</code>()</a> 
function. See the <a class="link" href="gdk-functions.html#function-gdk--threads-init" title="gtk.gdk.threads_init"><code class="function">gtk.gtk.threads_init</code>()</a> 
function for more information about threading.</p></div><div class="refsect2" title="gtk.gdk.lock"><a name="function-gdk--lock"></a><h3>gtk.gdk.lock</h3><pre class="programlisting"><pre class="synopsis">
	  <code class="varname">gtk.gdk.lock</code>
	</pre></pre><p>
	The <code class="varname">gtk.gdk.lock</code> constant is a context manager that calls
	<a class="link" href="gdk-functions.html#function-gdk--threads-enter" title="gtk.gdk.threads_enter"><code class="function">gtk.gdk.threads_enter</code></a>
	and <a class="link" href="gdk-functions.html#function-gdk--threads-leave" title="gtk.gdk.threads_leave"><code class="function">gtk.gdk.threads_leave</code></a>
	in its <code class="function">__enter__</code> and <code class="function">__exit__</code> methods
	correspondingly. It is intended to be used in <code class="literal">with</code> statement,
	new in Python 2.5. Read statement description for details.
      </p></div><div class="refsect2" title="gtk.gdk.threads_init"><a name="function-gdk--threads-init"></a><h3>gtk.gdk.threads_init</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.threads_init</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="function">gtk.gdk.threads_init</code>() function
initializes <code class="literal">PyGTK</code> to use the Python macros that allow
multiple threads to serialize access to the Python interpreter (using the
Python Global Interpreter Lock (GIL)). In addition, the
<code class="function">gtk.gdk.threads_init</code>() function initializes the
<code class="literal">GDK</code> global lock (mutex) that serializes thread access to
the <code class="literal">GTK</code> and <code class="literal">GDK</code> libraries. Thus there
are two different global locking mechanisms at work that are initialized by
the <code class="function">gtk.gdk.threads_init</code>() function: Python and
<code class="literal">GDK</code>.</p><p>The <code class="function">gtk.gdk.threads_init</code>() function must be
called before the <a class="link" href="gtk-functions.html#function-gtk--main" title="gtk.main"><code class="function">gtk.main</code>()</a>
function. At this point in the application the Python GIL is held by the
main application thread. (Usually the main thread calls the
<code class="function">gtk.gdk.threads_init</code>() function though any thread could
call it instead.) When the <a class="link" href="gtk-functions.html#function-gtk--main" title="gtk.main"><code class="function">gtk.main</code>()</a> function
is called the GIL is released and other threads may use the Python
interpreter. When <code class="literal">PyGTK</code> signal handlers are invoked in
the main thread the GIL is reacquired so that the Python interpreter can run
the handler code.</p></div><div class="refsect2" title="gtk.gdk.rgb_ditherable"><a name="function-gdk--rgb-ditherable"></a><h3>gtk.gdk.rgb_ditherable</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.rgb_ditherable</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 the <a class="link" href="class-gdkvisual.html" title="gtk.gdk.Visual"><code class="classname">gtk.gdk.Visual</code></a> is
ditherable</td></tr></tbody></table><p>The <code class="function">gtk.gdk.rgb_ditherable</code>() function
returns <code class="literal">True</code> if the <a class="link" href="class-gdkvisual.html" title="gtk.gdk.Visual"><code class="classname">gtk.gdk.Visual</code></a> is
ditherable. This function may be useful for presenting a user interface
choice to the user about which dither mode is desired; if the display is not
ditherable, it may make sense to gray out or hide the corresponding UI
widget.</p></div><div class="refsect2" title="gtk.gdk.rgb_get_colormap"><a name="function-gdk--rgb-get-colormap"></a><h3>gtk.gdk.rgb_get_colormap</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.rgb_get_colormap</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 preferred <a class="link" href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><code class="classname">gtk.gdk.Colormap</code></a>
for rendering image data.</td></tr></tbody></table><p>The <code class="function">gtk.gdk.rgb_get_colormap</code>() function
returns the preferred <a class="link" href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><code class="classname">gtk.gdk.Colormap</code></a>.</p></div><div class="refsect2" title="gtk.gdk.rgb_set_verbose"><a name="function-gdk--rgb-set-verbose"></a><h3>gtk.gdk.rgb_set_verbose</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.rgb_set_verbose</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>verbose</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>verbose</code></strong> :</span></p></td><td>If <code class="literal">True</code> messages should be
verbose</td></tr></tbody></table><p>The <code class="function">gtk.gdk.rgb_set_verbose</code>() function sets
the "verbose" flag to the value specified by <em class="parameter"><code>verbose</code></em>.
If <em class="parameter"><code>verbose</code></em> is <code class="literal">True</code> messages will
be verbose. This is generally only useful for debugging.</p></div><div class="refsect2" title="gtk.gdk.rgb_set_install"><a name="function-gdk--rgb-set-install"></a><h3>gtk.gdk.rgb_set_install</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.rgb_set_install</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>install</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>install</code></strong> :</span></p></td><td>if <code class="literal">True</code> set install
mode</td></tr></tbody></table><p>The <code class="function">gtk.gdk.rgb_set_install</code>() function sets
the "install" mode to the value of <em class="parameter"><code>install</code></em>. If
<em class="parameter"><code>install</code></em> is <code class="literal">True</code>, a new "private"
colormap is always installed rather than trying to find a best fit with the
colors already allocated. Ordinarily, a colormap only be installed if a
sufficient cube cannot be allocated. A private colormap has more colors,
leading to better quality display, but also leads to the dreaded "colormap
flashing" effect.</p></div><div class="refsect2" title="gtk.gdk.rgb_set_min_colors"><a name="function-gdk--rgb-set-min-colors"></a><h3>gtk.gdk.rgb_set_min_colors</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.rgb_set_min_colors</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>min_colors</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>min_colors</code></strong> :</span></p></td><td>the minimum number of
colors.</td></tr></tbody></table><p>The <code class="function">gtk.gdk.rgb_set_min_colors</code>() function
sets the minimum number of colors for the color cube to the value specified
by <em class="parameter"><code>min_colors</code></em>. Generally, the largest color cube is
allocated. If a color cube at least as large as
<em class="parameter"><code>min_colors</code></em> can't be allocated, a private colormap is
installed. </p></div><div class="refsect2" title="gtk.gdk.rgb_get_visual"><a name="function-gdk--rgb-get-visual"></a><h3>gtk.gdk.rgb_get_visual</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.rgb_get_visual</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-gdkvisual.html" title="gtk.gdk.Visual"><code class="classname">gtk.gdk.Visual</code></a> being
used</td></tr></tbody></table><p>The <code class="function">gtk.gdk.rgb_get_visual</code>() function
returns the <a class="link" href="class-gdkvisual.html" title="gtk.gdk.Visual"><code class="classname">gtk.gdk.Visual</code></a> being
used to render image data on the default screen.</p></div><div class="refsect2" title="gtk.gdk.selection_owner_get"><a name="function-gdk--selection-owner-get"></a><h3>gtk.gdk.selection_owner_get</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.selection_owner_get</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>selection</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>selection</code></strong> :</span></p></td><td>an atom indentifying a
selection.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a> that
owns the selection or None.</td></tr></tbody></table><p>The <code class="function">gtk.gdk.selection_owner_get</code>() function
returns the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a> that
owns the selection specified by <em class="parameter"><code>selection</code></em> if there is
a selection owner for this window, and if it is a window known to the
current application. Note that the return value may be owned by a different
process if a foreign window was previously created for that window, but a
new foreign window will never be created by this call.</p></div><div class="refsect2" title="gtk.gdk.selection_owner_get_for_display"><a name="function-gdk--selection-owner-get-for-display"></a><h3>gtk.gdk.selection_owner_get_for_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.selection_owner_get_for_display</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>selection</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>display</code></strong> :</span></p></td><td>A <a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a>.
	  </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>selection</code></strong> :</span></p></td><td>an atom indentifying a selection.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>If there is a selection owner for this window, and it is
	  a window known to the current process, the
	  <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a> that
	  owns the selection or <code class="literal">None</code>.</td></tr></tbody></table><p>
	The <code class="function">gtk.gdk.selection_owner_get_for_display</code>() function
	determine the owner of the given selection. 
      </p><p>
	Note that the return value may be owned by a different process if a foreign
	window was previously created for that window, but a new foreign window will
	never be created by this call.
      </p></div><div class="refsect2" title="gtk.gdk.selection_owner_set_for_display"><a name="function-gdk--selection-owner-set-for-display"></a><h3>gtk.gdk.selection_owner_set_for_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.selection_owner_set_for_display</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>owner</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>timw</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>send_event</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>display</code></strong> :</span></p></td><td>A <a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a>.
	  </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>owner</code></strong> :</span></p></td><td>A <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
	  or <code class="literal">None</code> to indicate that the owner for the given should be unset. 
	  </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>selection</code></strong> :</span></p></td><td>an atom indentifying a selection.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>time</code></strong> :</span></p></td><td>timestamp to use when setting the selection. If this is
	  older than the timestamp given last time the owner was set for the given
	  selection, the request will be ignored.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>send_event</code></strong> :</span></p></td><td>if <code class="literal">True</code>, and the new owner is different
	  from the current owner, the current owner will be sent a SelectionClear
	  event.</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 selection owner was successfully
	  changed to owner, otherwise <code class="literal">False</code>.</td></tr></tbody></table><p>
	The <code class="function">gtk.gdk.selection_owner_set_for_display</code>() function
	sets the <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>
	owner as the current owner of the selection selection.
      </p></div><div class="refsect2" title="gtk.gdk.selection_send_notify"><a name="function-gdk--selection-send-notify"></a><h3>gtk.gdk.selection_send_notify</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.selection_send_notify</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>requestor</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>target</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>property</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>time</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>requestor</code></strong> :</span></p></td><td>the integer ID of the window to deliver the
response to.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>selection</code></strong> :</span></p></td><td>an atom representing the selection that was
requested.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>target</code></strong> :</span></p></td><td>an atom representing the target that was
selected. </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>property</code></strong> :</span></p></td><td>an atom representing the property in which the
selection owner stored the data.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>time</code></strong> :</span></p></td><td>a timestamp</td></tr></tbody></table><p>The <code class="function">gtk.gdk.selection_send_notify</code>()
function sends a response to a SelectionRequest event.</p></div><div class="refsect2" title="gtk.gdk.set_sm_client_id"><a name="function-gdk--set-sm-client-id"></a><h3>gtk.gdk.set_sm_client_id</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.set_sm_client_id</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>sm_client_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>sm_client_id</code></strong> :</span></p></td><td>the client id string assigned by the session
manager when the connection was opened</td></tr></tbody></table><p>The <code class="function">gtk.gdk.set_sm_client_id</code>() function
sets the <code class="literal">SM_CLIENT_ID</code> property on the application's
leader window so that the window manager can save the application's state
using the X11R6 ICCCM session management protocol. See the X Session
Management Library documentation for more information on session management
and the Inter-Client Communication Conventions Manual (ICCCM) for
information on the <code class="literal">WM_CLIENT_LEADER</code> property. (Both
documents are part of the X Window System distribution.)</p></div><div class="refsect2" title="gtk.gdk.notify_startup_complete"><a name="function-gdk--notify-startup-complete"></a><h3>gtk.gdk.notify_startup_complete</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.notify_startup_complete</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.8 and above</p></div><p>The <code class="function">gtk.gdk.notify_startup_complete</code>()
function indicates to the GUI environment that the application has finished
loading. If the applications opens windows, this function is normally called
after opening the application's initial set of windows.</p><p>GTK+ will call this function automatically after opening the
first <a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a> unless
the <a class="link" href="class-gtkwindow.html#function-gtk--window-set-auto-startup-notification" title="gtk.window_set_auto_startup_notification"><code class="function">gtk.window_set_auto_startup_notification</code>()</a>
function is called to disable that feature.</p></div><div class="refsect2" title="gtk.gdk.get_program_class"><a name="function-gdk--get-program-class"></a><h3>gtk.gdk.get_program_class</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.get_program_class</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 program class</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.8 and above</p></div><p>The <code class="function">gtk.gdk.get_program_class</code>() function
returns the program class. Unless the program class has explicitly been set
with the <a class="link" href="gdk-functions.html#function-gdk--set-program-class" title="gtk.gdk.set_program_class"><code class="function">gtk.gdk.set_program_class</code>()</a>
function or with the <code class="option">--class</code> commandline option, the
default value is the program name with the first character converted to
uppercase.</p></div><div class="refsect2" title="gtk.gdk.set_program_class"><a name="function-gdk--set-program-class"></a><h3>gtk.gdk.set_program_class</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.set_program_class</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>program_class</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>program_class</code></strong> :</span></p></td><td>a string containing the program
class</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.8 and above</p></div><p>The <code class="function">gtk.gdk.set_program_class</code>() function
sets the program class to the string contained in
<em class="parameter"><code>program_class</code></em>. The <code class="literal">X11</code> backend
uses the program class to set the class name part of the
<code class="literal">WM_CLASS</code> property on toplevel windows.</p></div><div class="refsect2" title="gtk.gdk.get_display"><a name="function-gdk--get-display"></a><h3>gtk.gdk.get_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.get_display</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 name of the display</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.8 and above</p></div><p>The <code class="function">gtk.gdk.get_display</code>() function returns
the name of the display, which is usually derived from the
<code class="envar">DISPLAY</code> environment variable or the
<code class="option">--display</code> command line option.</p></div><div class="refsect2" title="gtk.gdk.get_display_arg_name"><a name="function-gdk--get-display-arg-name"></a><h3>gtk.gdk.get_display_arg_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.get_display_arg_name</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 display name, if specified explicitly, 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.8 and above</p></div><p>The <code class="function">gtk.gdk.get_display_arg_name</code>() function
returns the display name specified in the command line arguments, if any or
<code class="literal">None</code> if the display name was not explicitly set.</p></div><div class="refsect2" title="gtk.gdk.pango_context_get_for_screen"><a name="function-gdk--pango-context-get-for-screen"></a><h3>gtk.gdk.pango_context_get_for_screen</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.pango_context_get_for_screen</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</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>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></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
object</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.8 and above</p></div><p>The
<code class="function">gtk.gdk.pango_context_get_for_screen</code>() function
creates a new <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
object for the <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>
specified by <em class="parameter"><code>screen</code></em>. Normally you should use the
<a class="link" href="class-gtkwidget.html#method-gtkwidget--get-pango-context" title="gtk.Widget.get_pango_context"><code class="methodname">get_pango_context</code>()</a>
method instead of this function, to get the appropriate Pango context for
the widget you intend to render text onto.</p></div><div class="refsect2" title="gtk.gdk.pango_context_get"><a name="function-gdk--pango-context-get"></a><h3>gtk.gdk.pango_context_get</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.pango_context_get</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 new <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
for the default display.</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.8 and above</p></div><p>The <code class="function">gtk.gdk.pango_context_get</code>()
function creates a new <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a> for
the default display. Normally you should use the <a class="link" href="class-gtkwidget.html#method-gtkwidget--get-pango-context" title="gtk.Widget.get_pango_context"><code class="methodname">get_pango_context</code>()</a>
method instead of this function, to get the appropriate Pango context for
the widget you intend to render text onto.</p></div><div class="refsect2" title="gtk.gdk.x11_display_get_startup_notification_id"><a name="function-gdk--x11-display-get-startup-notification-id"></a><h3>gtk.gdk.x11_display_get_startup_notification_id</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.x11_display_get_startup_notification_id</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</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>display</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the startup notification ID for <em class="parameter"><code>display</code></em>
      </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.12 and above</p></div><p>The
<code class="function">gtk.gdk.x11_display_get_startup_notification_id</code>() function
gets the startup notification ID for a display.</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-gdkwindow.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gdk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="gdk-constants.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.gdk.Window </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.gdk Constants</td></tr></table></div></body></html>