/usr/share/gtk-doc/html/pygtk/class-gtknotebook.html is in python-gtk2-doc 2.24.0-4.
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 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Notebook</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-gtkmountoperation.html" title="gtk.MountOperation"><link rel="next" href="class-gtkobject.html" title="gtk.Object"></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.Notebook</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkmountoperation.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkobject.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.Notebook"><a name="class-gtknotebook"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Notebook</h2><p>gtk.Notebook — a tabbed notebook container.</p></div><div class="refsect1" title="Synopsis"><a name="id3803166"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Notebook</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtknotebook.html#constructor-gtknotebook" title="Constructor">gtk.Notebook</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--append-page" title="gtk.Notebook.append_page">append_page</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--append-page-menu" title="gtk.Notebook.append_page_menu">append_page_menu</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--prepend-page" title="gtk.Notebook.prepend_page">prepend_page</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--prepend-page-menu" title="gtk.Notebook.prepend_page_menu">prepend_page_menu</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--insert-page" title="gtk.Notebook.insert_page">insert_page</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span><span class="initializer">=-1</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--insert-page-menu" title="gtk.Notebook.insert_page_menu">insert_page_menu</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span><span class="initializer">=-1</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--remove-page" title="gtk.Notebook.remove_page">remove_page</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_num</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-current-page" title="gtk.Notebook.get_current_page">get_current_page</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-nth-page" title="gtk.Notebook.get_nth_page">get_nth_page</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_num</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-n-pages" title="gtk.Notebook.get_n_pages">get_n_pages</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--page-num" title="gtk.Notebook.page_num">page_num</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-current-page" title="gtk.Notebook.set_current_page">set_current_page</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_num</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--next-page" title="gtk.Notebook.next_page">next_page</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--prev-page" title="gtk.Notebook.prev_page">prev_page</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-show-border" title="gtk.Notebook.set_show_border">set_show_border</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_border</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-show-border" title="gtk.Notebook.get_show_border">get_show_border</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-show-tabs" title="gtk.Notebook.set_show_tabs">set_show_tabs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_tabs</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-show-tabs" title="gtk.Notebook.get_show_tabs">get_show_tabs</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-pos" title="gtk.Notebook.set_tab_pos">set_tab_pos</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-pos" title="gtk.Notebook.get_tab_pos">get_tab_pos</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-scrollable" title="gtk.Notebook.set_scrollable">set_scrollable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>scrollable</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-scrollable" title="gtk.Notebook.get_scrollable">get_scrollable</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--popup-enable" title="gtk.Notebook.popup_enable">popup_enable</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--popup-disable" title="gtk.Notebook.popup_disable">popup_disable</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-label" title="gtk.Notebook.get_tab_label">get_tab_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-label" title="gtk.Notebook.set_tab_label">set_tab_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-label-text" title="gtk.Notebook.set_tab_label_text">set_tab_label_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_text</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-label-text" title="gtk.Notebook.get_tab_label_text">get_tab_label_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-menu-label" title="gtk.Notebook.get_menu_label">get_menu_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-menu-label" title="gtk.Notebook.set_menu_label">set_menu_label</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-menu-label-text" title="gtk.Notebook.set_menu_label_text">set_menu_label_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_text</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-menu-label-text" title="gtk.Notebook.get_menu_label_text">get_menu_label_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--query-tab-label-packing" title="gtk.Notebook.query_tab_label_packing">query_tab_label_packing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-label-packing" title="gtk.Notebook.set_tab_label_packing">set_tab_label_packing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>expand</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pack_type</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--reorder-child" title="gtk.Notebook.reorder_child">reorder_child</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-group-id" title="gtk.Notebook.set_group_id">set_group_id</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group_id</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-group-id" title="gtk.Notebook.get_group_id">get_group_id</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-reorderable" title="gtk.Notebook.get_tab_reorderable">get_tab_reorderable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-reorderable" title="gtk.Notebook.set_tab_reorderable">set_tab_reorderable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>reorderable</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-detachable" title="gtk.Notebook.get_tab_detachable">get_tab_detachable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-detachable" title="gtk.Notebook.set_tab_detachable">set_tab_detachable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detachable</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-group-name" title="gtk.Notebook.set_group_name">set_group_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group_name</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-group-name" title="gtk.Notebook.get_group_name">get_group_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-hborder" title="gtk.Notebook.get_tab_hborder">get_tab_hborder</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-tab-vborder" title="gtk.Notebook.get_tab_vborder">get_tab_vborder</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--get-action-widget" title="gtk.Notebook.get_action_widget">get_action_widget</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pack_type</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#method-gtknotebook--set-action-widget" title="gtk.Notebook.set_action_widget">set_action_widget</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>pack_type</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtknotebook.html#function-gtk--notebook-set-window-creation-hook" title="gtk.notebook_set_window_creation_hook">gtk.notebook_set_window_creation_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="refsect1" title="Ancestry"><a name="id3804798"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a class="link" href="class-gtknotebook.html" title="gtk.Notebook">gtk.Notebook</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3804843"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
implements
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
</p></div><div class="refsect1" title="gtk.Notebook Properties"><a name="properties-gtknotebook"></a><h2>gtk.Notebook Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"enable-popup"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, pressing the right mouse
button on the notebook pops up a menu that you can use to go
to a page. Default value: <code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"group-id"</td><td valign="top">Read-Write</td><td valign="top">Group ID for tabs drag and drop. Allowed values: >=
-1. Default value: -1.</td></tr><tr valign="top"><td valign="top">"group-name"</td><td valign="top">Read-Write</td><td valign="top">Group name for tabs drag and drop. Default value: <code class="literal">None</code>.
Available in GTK+ 2.24.</td></tr><tr valign="top"><td valign="top">"homogeneous"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, tabs should have
homogeneous sizes. Default value:
<code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"page"</td><td valign="top">Read-Write</td><td valign="top">The index of the current page. Allowed values: >= 0.
Default value: 0.</td></tr><tr valign="top"><td valign="top">"scrollable"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, scroll arrows are added if
there are too many tabs to fit. Default value:
<code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"show-border"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the border should be shown.
Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"show-tabs"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, tabs should be shown.
Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"tab-border"</td><td valign="top">Write</td><td valign="top">The width of the border around the tab labels. Default
value: 2.</td></tr><tr valign="top"><td valign="top">"tab-hborder"</td><td valign="top">Read-Write</td><td valign="top">The width of the horizontal border of tab labels.
Default value: 2.</td></tr><tr valign="top"><td valign="top">"tab-pos"</td><td valign="top">Read-Write</td><td valign="top">The side of the notebook that holds the tabs - one of
the <a class="xref" href="gtk-constants.html#gtk-position-type-constants" title="GTK Position Type Constants">GTK Position Type Constants</a>:
<code class="literal">gtk.POS_LEFT</code>,
<code class="literal">gtk.POS_RIGHT</code>,
<code class="literal">gtk.POS_TOP</code> or
<code class="literal">gtk.POS_BOTTOM</code>. Default value:
<code class="literal">gtk.POS_TOP</code>.</td></tr><tr valign="top"><td valign="top">"tab-vborder"</td><td valign="top">Read-Write</td><td valign="top">The width of the vertical border of tab labels.
Default value: 2,</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Notebook Style Properties"><a name="style-properties-gtknotebook"></a><h2>gtk.Notebook Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"arrow-spacing"</td><td valign="top">Read-Write</td><td valign="top">The "arrow-size" property defines the spacing between
the scroll arrows and the tabs. Allowed values: >= 0.
Default value: 0. Available in GTK+ 2.10.</td></tr><tr valign="top"><td valign="top">"has-backward-stepper"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> the standard backward arrow
button is displayed. Default value:
<code class="literal">True</code>. Available in GTK+ 2.4 and
above.</td></tr><tr valign="top"><td valign="top">"has-forward-stepper"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> the standard forward arrow
button is displayed. Default value:
<code class="literal">True</code>. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"has-secondary-backward-stepper"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> a second backward arrow
button is displayed on the opposite end of the tab
area. Default value: <code class="literal">False</code>. Available in
GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"has-secondary-forward-stepper"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> a second forward arrow
button is displayed on the opposite end of the tab
area. Default value: <code class="literal">False</code>. Available in
GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"tab-curvature"</td><td valign="top">Read-Write</td><td valign="top">The "tab-curvature" property defines size of tab
curvature. Allowed values: >= 0. Default value: 1. Available
in GTK+ 2.10.</td></tr><tr valign="top"><td valign="top">"tab-overlap"</td><td valign="top">Read-Write</td><td valign="top">The "tab-overlap" property defines size of tab overlap
area. Default value: 2. Available in GTK+ 2.10.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Notebook Child Properties"><a name="child-properties-gtknotebook"></a><h2>gtk.Notebook Child Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"detachable"</td><td valign="top">Read-Write</td><td valign="top">if <code class="literal">True</code> the tab is detachable.
Default value: <code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"menu-label"</td><td valign="top">Read-Write</td><td valign="top">The string displayed in the child's menu entry.
Default value: <code class="literal">None</code></td></tr><tr valign="top"><td valign="top">"position"</td><td valign="top">Read-Write</td><td valign="top">The index of the child in the parent. Allowed values:
>= -1 Default value: 0.</td></tr><tr valign="top"><td valign="top">"reorderable"</td><td valign="top">Read-Write</td><td valign="top">Whether the tab is reorderable by user action or not.
Default value: <code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"tab-expand"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, expand the child's tabs.
Default value: <code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"tab-fill"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the child's tab should fill
the allocated area. Default value:
<code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"tab-label"</td><td valign="top">Read-Write</td><td valign="top">The string displayed on the child's tab label. Default
value: <code class="literal">None</code>.</td></tr><tr valign="top"><td valign="top">"tab-pack""</td><td valign="top">Read-Write</td><td valign="top">A pack type indicating whether the child is packed with
reference to the start or end of the parent - one of the <a class="xref" href="gtk-constants.html#gtk-pack-type-constants" title="GTK Pack Type Constants">GTK Pack Type Constants</a>:
<code class="literal">gtk.PACK_START</code> or
<code class="literal">gtk.PACK_END</code>. Default value:
<code class="literal">gtk.PACK_START</code>.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Attributes"><a name="id3805813"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"tab_pos"</td><td valign="top">Read</td><td valign="top">The side of the notebook that holds the tabs:
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
<code class="literal">gtk.POS_TOP</code> or <code class="literal">gtk.POS_BOTTOM</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.Notebook Signal Prototypes"><a name="signal-prototypes-gtknotebook"></a><h2>gtk.Notebook Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--change-current-page" title='The "change-current-page" gtk.Notebook Signal'>change-current-page</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>offset</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--create-window" title='The "create-window" gtk.Notebook Signal'>create-window</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>x</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>y</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--focus-tab" title='The "focus-tab" gtk.Notebook Signal'>focus-tab</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--move-focus-out" title='The "move-focus-out" gtk.Notebook Signal'>move-focus-out</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>direction_type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--page-added" title='The "page-added" Signal'>page-added</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--page-removed" title='The "page-removed" Signal'>page-removed</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--page-reordered" title='The "page-reordered" Signal'>page-reordered</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--select-page" title='The "select-page" gtk.Notebook Signal'>select-page</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>move_focus</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtknotebook.html#signal-gtknotebook--switch-page" title='The "switch-page" gtk.Notebook Signal'>switch-page</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id3806728"></a><h2>Description</h2><p>The <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
widget is a <a class="link" href="class-gtkcontainer.html" title="gtk.Container"><code class="classname">gtk.Container</code></a>
whose children are overlapping pages that can be switched between by using
tab labels along one edge. There are many configuration options for the
<a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>. You
can choose on which edge the tabs appear (see <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-tab-pos" title="gtk.Notebook.set_tab_pos"><code class="methodname">set_tab_pos</code>()</a>);
whether the notebook should be made bigger or scrolling arrows added if
there are too many tabs to fit (see <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-scrollable" title="gtk.Notebook.set_scrollable"><code class="methodname">set_scrollable</code>()</a>);
and, whether there will be a popup menu allowing the users to switch pages.
(see <a class="link" href="class-gtknotebook.html#method-gtknotebook--popup-enable" title="gtk.Notebook.popup_enable"><code class="methodname">popup_enable</code>()</a>,
<a class="link" href="class-gtknotebook.html#method-gtknotebook--popup-disable" title="gtk.Notebook.popup_disable"><code class="methodname">popup_disable</code>()</a>).</p><p>The <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a> is
particularly useful for displaying a large number of application controls
that can be grouped into several functional areas. The typical example is
the user preferences dialog in some applications. For example, a notebook
page can be setup for each of font selection, color selection, formating,
etc.</p><p>
The <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
implementation of the <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
interface supports placing children into tabs by specifying "tab" as the
"type" attribute of a <child> element. Note that the content of the
tab must be created before the tab can be filled. A tab child can be specified
without specifying a <child> type attribute.
</p><div class="refsect2" title="A UI definition fragment with gtk.Notebook"><a name="gtkbuilder-ui-definition-fragment-with-gtknotebook"></a><h3>A UI definition fragment with gtk.Notebook</h3><pre class="programlisting">
<object class="GtkNotebook">
<child>
<object class="GtkLabel" id="notebook-content">
<property name="label">Content</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="notebook-tab">
<property name="label">Tab</property>
</object>
</child>
</object>
</pre><p>
Beyond this general structure, several object classes define their own XML DTD
fragments for filling in the ANY placeholders in the DTD above. Note that a
custom element in a <child> element gets parsed by the custom tag handler of
the parent object, while a custom element in an <object> element gets parsed
by the custom tag handler of the object.
</p></div></div><div class="refsect1" title="Constructor"><a name="constructor-gtknotebook"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.Notebook</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 newly created <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a></td></tr></tbody></table><p>Creates a new <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
widget with no pages.</p></div><div class="refsect1" title="Methods"><a name="id3806949"></a><h2>Methods</h2><div class="refsect2" title="gtk.Notebook.append_page"><a name="method-gtknotebook--append-page"></a><h3>gtk.Notebook.append_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_page</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to use as
the contents of the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to be
used as the label for the page.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>in PyGTK 2.0 and 2.2 returns
<code class="literal">None</code>. In PyGTK 2.4 and above returns the index
number of the page in the notebook</td></tr></tbody></table><p>The <code class="methodname">append_page</code>() method appends a page
to the notebook using the widget specified by <em class="parameter"><code>child</code></em>
and the widget specified by <em class="parameter"><code>tab_label</code></em> as the label on
the tab.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. Also if
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
<code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.Notebook.append_page_menu"><a name="method-gtknotebook--append-page-menu"></a><h3>gtk.Notebook.append_page_menu</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_page_menu</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to use as
the contents of the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to be
used as the label for the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>menu_label</code></strong> :</span></p></td><td>the widget to use as a label for the
page-switch menu, if that is enabled.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>in PyGTK 2.0 and 2.2 returns
<code class="literal">None</code>. In PyGTK 2.4 and above returns the index
number of the page in the notebook</td></tr></tbody></table><p>The <code class="methodname">append_page_menu</code>() method appends a
page to the notebook and specifying the widget to use as the label in the
popup menu. <em class="parameter"><code>child</code></em> specifies the widget to use as the
contents of the page; <em class="parameter"><code>tab_label</code></em> specifies the widget
to be used as the tab label; and, <em class="parameter"><code>menu_label</code></em>
specifies the widget to use in the popup menu.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. If
<em class="parameter"><code>tab_label</code></em> is a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a> or
<code class="literal">None</code> and <em class="parameter"><code>menu_label</code></em> is
<code class="literal">None</code> then the menu label will have the same text as the
tab label. Otherwise, <em class="parameter"><code>menu_label</code></em> must be specified
and not <code class="literal">None</code>. These parameters will default to
<code class="literal">None</code> in PyGTK 2.4 as well.</p></div><div class="refsect2" title="gtk.Notebook.prepend_page"><a name="method-gtknotebook--prepend-page"></a><h3>gtk.Notebook.prepend_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_page</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to use as
the contents of the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to be
used as the label for the page.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>in PyGTK 2.0 and 2.2 returns
<code class="literal">None</code>. In PyGTK 2.4 and above returns the index
number of the page in the notebook</td></tr></tbody></table><p>The <code class="methodname">prepend_page</code>() method prepends a
page to the notebook. <em class="parameter"><code>child</code></em> specifies the widget to
use as the contents of the page and <em class="parameter"><code>tab_label</code></em>
specifies the widget to be used as the tab label.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. Also if
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
<code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.Notebook.prepend_page_menu"><a name="method-gtknotebook--prepend-page-menu"></a><h3>gtk.Notebook.prepend_page_menu</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_page_menu</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to use as
the contents of the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to be
used as the label for the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>menu_label</code></strong> :</span></p></td><td>the widget to use as a label for the
page-switch menu, if that is enabled.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>in PyGTK 2.0 and 2.2 returns
<code class="literal">None</code>. In PyGTK 2.4 and above returns the index
number of the page in the notebook</td></tr></tbody></table><p>The <code class="methodname">prepend_page_menu</code>() method prepends
a page to the notebook specifying the widget to use as the label in the
popup menu. <em class="parameter"><code>child</code></em> specifies the widget to use as the
contents of the page; <em class="parameter"><code>tab_label</code></em> specifies the widget
to use as the tab label; and, <em class="parameter"><code>menu_label</code></em> specifies
the widget to use in the popup menu.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. If
<em class="parameter"><code>tab_label</code></em> is a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a> or
<code class="literal">None</code> and <em class="parameter"><code>menu_label</code></em> is
<code class="literal">None</code> then the menu label will have the same text as the
tab label. Otherwise, <em class="parameter"><code>menu_label</code></em> must be specified
and not <code class="literal">None</code>. These parameters will default to
<code class="literal">None</code> in PyGTK 2.4 as well.</p></div><div class="refsect2" title="gtk.Notebook.insert_page"><a name="method-gtknotebook--insert-page"></a><h3>gtk.Notebook.insert_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_page</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to use as
the contents of the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the
<a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to
be used as the label for the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the index (starting at 0) at which to insert
the page, or -1 to append the page after all other
pages.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>in PyGTK 2.0 and 2.2 returns
<code class="literal">None</code>. In PyGTK 2.4 and above returns the index
number of the page in the notebook</td></tr></tbody></table><p>The <code class="methodname">insert_page</code>() method inserts a page
into the notebook at the location specified by
<em class="parameter"><code>position</code></em> (0 is the first page).
<em class="parameter"><code>child</code></em> is the widget to use as the contents of the
page and <em class="parameter"><code>tab_label</code></em> specifies the widget to be used as
the tab label. If <em class="parameter"><code>position</code></em> is -1 the page is appended
to the notebook. In PyGTK 2.4 and above if <em class="parameter"><code>tab_label</code></em>
is <code class="literal">None</code> a default label if "page N" is used.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. Also if
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
<code class="literal">None</code>.</p><p>In Pygtk 2.4 and above <em class="parameter"><code>position</code></em> will
default to -1 if not specified.</p></div><div class="refsect2" title="gtk.Notebook.insert_page_menu"><a name="method-gtknotebook--insert-page-menu"></a><h3>gtk.Notebook.insert_page_menu</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_page_menu</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to use as
the contents of the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the
<a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to
be used as the label for the page.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>menu_label</code></strong> :</span></p></td><td>the widget to use as a label for the
page-switch menu, if that is enabled.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the index (starting at 0) at which to insert
the page, or -1 to append the page after all other
pages.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>in PyGTK 2.0 and 2.2 returns
<code class="literal">None</code>. In PyGTK 2.4 and above returns the index
number of the page in the notebook</td></tr></tbody></table><p>The <code class="methodname">insert_page_menu</code>() method inserts a
page into the notebook at the location specified by
<em class="parameter"><code>position</code></em>. <em class="parameter"><code>child</code></em> specifies the
widget to use as the contents of the page; <em class="parameter"><code>tab_label</code></em>
specifies the widget to use as the tab label; and
<em class="parameter"><code>menu_label</code></em> specifies the widget to use as the label
in the popup menu.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. If
<em class="parameter"><code>tab_label</code></em> is a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a> or
<code class="literal">None</code> and <em class="parameter"><code>menu_label</code></em> is
<code class="literal">None</code> then the menu label will have the same text as the
tab label. Otherwise, <em class="parameter"><code>menu_label</code></em> must be specified
and not <code class="literal">None</code>. These parameters will default to
<code class="literal">None</code> in PyGTK 2.4 as well.</p><p>In Pygtk 2.4 and above <em class="parameter"><code>position</code></em> will
default to -1 if not specified.</p></div><div class="refsect2" title="gtk.Notebook.remove_page"><a name="method-gtknotebook--remove-page"></a><h3>gtk.Notebook.remove_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">remove_page</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_num</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>page_num</code></strong> :</span></p></td><td>the index of a notebook page, starting from 0.
If -1, the last page will be removed.</td></tr></tbody></table><p>The <code class="methodname">remove_page</code>() method removes from
the notebook the page at the location specified by
<em class="parameter"><code>index</code></em>. The value of <em class="parameter"><code>index</code></em>
starts from 0. If <em class="parameter"><code>index</code></em> is -1 the last page of the
notebook will be removed.</p></div><div class="refsect2" title="gtk.Notebook.get_current_page"><a name="method-gtknotebook--get-current-page"></a><h3>gtk.Notebook.get_current_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_current_page</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 index (starting from 0) of the current page
in the notebook. If the notebook has no pages, then -1 will be
returned.</td></tr></tbody></table><p>The <code class="methodname">get_current_page</code>() method returns
the page index of the current page numbered from 0.</p></div><div class="refsect2" title="gtk.Notebook.get_nth_page"><a name="method-gtknotebook--get-nth-page"></a><h3>gtk.Notebook.get_nth_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_nth_page</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_num</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>page_num</code></strong> :</span></p></td><td>the index of a page in the
notebook</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the child widget, or <code class="literal">None</code> if
<em class="parameter"><code>page_num</code></em> is out of bounds.</td></tr></tbody></table><p>The <code class="methodname">get_nth_page</code>() method returns the
child widget contained in the page with the index specified by
<em class="parameter"><code>page_num</code></em>. If <em class="parameter"><code>page_num</code></em> is out
of bounds for the page range of the notebook this method returns
<code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.Notebook.get_n_pages"><a name="method-gtknotebook--get-n-pages"></a><h3>gtk.Notebook.get_n_pages</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_n_pages</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 number of pages in the
notebook.</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 method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_n_pages</code>() method returns the
number of pages in a notebook.</p></div><div class="refsect2" title="gtk.Notebook.page_num"><a name="method-gtknotebook--page-num"></a><h3>gtk.Notebook.page_num</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">page_num</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the index of the page containing
<em class="parameter"><code>child</code></em>, or -1 if <em class="parameter"><code>child</code></em> is not
in the notebook.</td></tr></tbody></table><p>The <code class="methodname">page_num</code>() method returns the index
of the page which contains the widget specified by
<em class="parameter"><code>child</code></em> or -1 if no page contains
<em class="parameter"><code>child</code></em>.</p></div><div class="refsect2" title="gtk.Notebook.set_current_page"><a name="method-gtknotebook--set-current-page"></a><h3>gtk.Notebook.set_current_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_current_page</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_num</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>page_num</code></strong> :</span></p></td><td>the index of the page to switch to, starting
from 0. If negative, the last page will be used. If greater than the number
of pages in the notebook, nothing will be done.</td></tr></tbody></table><p>The <code class="methodname">set_current_page</code>() method switches
to the page number specified by <em class="parameter"><code>page_num</code></em>. If
<em class="parameter"><code>page_num</code></em> is negative the last page is
selected.</p></div><div class="refsect2" title="gtk.Notebook.next_page"><a name="method-gtknotebook--next-page"></a><h3>gtk.Notebook.next_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">next_page</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">next_page</code>() method switches to the
next page. Nothing happens if the current page is the last page.</p></div><div class="refsect2" title="gtk.Notebook.prev_page"><a name="method-gtknotebook--prev-page"></a><h3>gtk.Notebook.prev_page</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prev_page</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">prev_page</code>() method switches to the
previous page. Nothing happens if the current page is the first page.</p></div><div class="refsect2" title="gtk.Notebook.set_show_border"><a name="method-gtknotebook--set-show-border"></a><h3>gtk.Notebook.set_show_border</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_border</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_border</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>show_border</code></strong> :</span></p></td><td>if <code class="literal">True</code> a bevel should be
drawn around the notebook.</td></tr></tbody></table><p>The <code class="methodname">show_border</code>() method sets the
"show-border" property to the value of <em class="parameter"><code>show_border</code></em>.
If <em class="parameter"><code>show_border</code></em> is <code class="literal">True</code> a bevel
will be drawn around the notebook pages. This only has a visual effect when
the tabs are not shown. See <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-show-tabs" title="gtk.Notebook.set_show_tabs"><code class="methodname">set_show_tabs</code>()</a>.</p></div><div class="refsect2" title="gtk.Notebook.get_show_border"><a name="method-gtknotebook--get-show-border"></a><h3>gtk.Notebook.get_show_border</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_show_border</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 bevel should be
drawn</td></tr></tbody></table><p>The <code class="methodname">get_show_border</code>() method returns
the value of the "show-border" property. If "show-border" is
<code class="literal">True</code> a bevel will be drawn around the notebook pages when
tabs are not shown. See <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-show-border" title="gtk.Notebook.set_show_border"><code class="methodname">set_show_border</code>()</a>.</p></div><div class="refsect2" title="gtk.Notebook.set_show_tabs"><a name="method-gtknotebook--set-show-tabs"></a><h3>gtk.Notebook.set_show_tabs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_tabs</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_tabs</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>show_tabs</code></strong> :</span></p></td><td>if <code class="literal">True</code> the tabs should be
shown.</td></tr></tbody></table><p>The <code class="methodname">set_show_tabs</code>() method sets the
"show-tabs" property to the value of <em class="parameter"><code>show_tabs</code></em>. If
<em class="parameter"><code>show_tabs</code></em> is <code class="literal">True</code> the notebook
tabs will be displayed.</p></div><div class="refsect2" title="gtk.Notebook.get_show_tabs"><a name="method-gtknotebook--get-show-tabs"></a><h3>gtk.Notebook.get_show_tabs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_show_tabs</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 tabs are
shown</td></tr></tbody></table><p>The <code class="methodname">get_show_tabs</code>() method returns the
value of the "show-tabs" property. If "show-tabs" is <code class="literal">True</code>
the tabs of the notebook are shown. See <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-show-tabs" title="gtk.Notebook.set_show_tabs"><code class="methodname">set_show_tabs</code>()</a>.</p></div><div class="refsect2" title="gtk.Notebook.set_tab_pos"><a name="method-gtknotebook--set-tab-pos"></a><h3>gtk.Notebook.set_tab_pos</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tab_pos</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</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>pos</code></strong> :</span></p></td><td>the edge to draw the tabs at:
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
<code class="literal">gtk.POS_TOP</code> or
<code class="literal">gtk.POS_BOTTOM</code>.</td></tr></tbody></table><p>The <code class="methodname">set_tab_pos</code>() method sets the edge
at which the tabs for switching pages in the notebook are drawn as specified
by <em class="parameter"><code>pos</code></em>. The value of <em class="parameter"><code>pos</code></em> can
be one of: <code class="literal">gtk.POS_LEFT</code>,
<code class="literal">gtk.POS_RIGHT</code>, <code class="literal">gtk.POS_TOP</code> or
<code class="literal">gtk.POS_BOTTOM</code>.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_pos"><a name="method-gtknotebook--get-tab-pos"></a><h3>gtk.Notebook.get_tab_pos</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_pos</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 edge at which the tabs are
drawn</td></tr></tbody></table><p>The <code class="methodname">get_tab_pos</code>() method returns the
edge at which the tabs for switching pages in the notebook are drawn. The
return value is one of: <code class="literal">gtk.POS_LEFT</code>,
<code class="literal">gtk.POS_RIGHT</code>, <code class="literal">gtk.POS_TOP</code> or
<code class="literal">gtk.POS_BOTTOM</code>.</p></div><div class="refsect2" title="gtk.Notebook.set_scrollable"><a name="method-gtknotebook--set-scrollable"></a><h3>gtk.Notebook.set_scrollable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_scrollable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>scrollable</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>scrollable</code></strong> :</span></p></td><td>if <code class="literal">True</code> scroll arrows should
be added</td></tr></tbody></table><p>The <code class="methodname">set_scrollable</code>() method sets the
"scrollable" property to the value specified by
<em class="parameter"><code>scrollable</code></em>. If <em class="parameter"><code>scrollable</code></em> is
<code class="literal">True</code> the tab label area will have arrows for scrolling if
there are too many tabs to fit in the area.</p></div><div class="refsect2" title="gtk.Notebook.get_scrollable"><a name="method-gtknotebook--get-scrollable"></a><h3>gtk.Notebook.get_scrollable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_scrollable</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 arrows for scrolling
are enabled</td></tr></tbody></table><p>The <code class="methodname">get_scrollable</code>() method returns the
value of the "scrollable" property. If "scrollable" is
<code class="literal">True</code> the tab label area has scrolling arrows enabled and
displayed if there are too many tabs to fit in the display area. See <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-scrollable" title="gtk.Notebook.set_scrollable"><code class="methodname">set_scrollable</code>()</a>.</p></div><div class="refsect2" title="gtk.Notebook.popup_enable"><a name="method-gtknotebook--popup-enable"></a><h3>gtk.Notebook.popup_enable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">popup_enable</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">popup_enable</code>() method enables the
popup menu: if the user clicks with the right mouse button on the tabs, a
menu with all the pages will be popped up.</p></div><div class="refsect2" title="gtk.Notebook.popup_disable"><a name="method-gtknotebook--popup-disable"></a><h3>gtk.Notebook.popup_disable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">popup_disable</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">popup_disable</code>() method disables the
popup menu.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_label"><a name="method-gtknotebook--get-tab-label"></a><h3>gtk.Notebook.get_tab_label</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_label</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the tab label widget for the page containing
<em class="parameter"><code>child</code></em></td></tr></tbody></table><p>The <code class="methodname">get_tab_label</code>() method returns the
tab label widget for the page containing the widget
<em class="parameter"><code>child</code></em>. <code class="literal">None</code> is returned if
<em class="parameter"><code>child</code></em> is not in the notebook.</p></div><div class="refsect2" title="gtk.Notebook.set_tab_label"><a name="method-gtknotebook--set-tab-label"></a><h3>gtk.Notebook.set_tab_label</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tab_label</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_label</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_label</code></strong> :</span></p></td><td>the tab label widget to
use or <code class="literal">None</code>.</td></tr></tbody></table><p>The <code class="methodname">set_tab_label</code>() method replaces the
tab label for the notebook page containing <em class="parameter"><code>child</code></em> with
the widget specified by <em class="parameter"><code>tab_label</code></em>.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
<code class="literal">None</code> to use a default label. Also if
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
<code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.Notebook.set_tab_label_text"><a name="method-gtknotebook--set-tab-label-text"></a><h3>gtk.Notebook.set_tab_label_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tab_label_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tab_text</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tab_text</code></strong> :</span></p></td><td>the new label text</td></tr></tbody></table><p>The <code class="methodname">set_tab_label_text</code>() method creates
a new label with the text specified by <em class="parameter"><code>tab_text</code></em> and
sets it as the tab label for the page containing
<em class="parameter"><code>child</code></em>.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_label_text"><a name="method-gtknotebook--get-tab-label-text"></a><h3>gtk.Notebook.get_tab_label_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_label_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>value: the text of the tab label, or
<code class="literal">None</code> if the tab label widget is not a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a> or
<em class="parameter"><code>child</code></em> is not in a notebook page.</td></tr></tbody></table><p>The <code class="methodname">get_tab_label_text</code>() retrieves the
text of the tab label for the page containing <em class="parameter"><code>child</code></em>.
This method returns <code class="literal">None</code> if <em class="parameter"><code>child</code></em>
is not in a notebook page or the page tab label is not a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a>
widget.</p></div><div class="refsect2" title="gtk.Notebook.get_menu_label"><a name="method-gtknotebook--get-menu-label"></a><h3>gtk.Notebook.get_menu_label</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_menu_label</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the menu label, or <code class="literal">None</code> if
the notebook page does not have a menu label other than the default (the tab
label) or if child is not in a notebook page.</td></tr></tbody></table><p>The <code class="methodname">get_menu_label</code>() method retrieves
the menu label widget of the page containing <em class="parameter"><code>child</code></em>.
If <em class="parameter"><code>child</code></em> is not in a notebook page or the menu label
has not been set (it defaults to the tab label), this method returns
<code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.Notebook.set_menu_label"><a name="method-gtknotebook--set-menu-label"></a><h3>gtk.Notebook.set_menu_label</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_menu_label</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_label</code></strong></span><span class="initializer">=None</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>menu_label</code></strong> :</span></p></td><td>a widget to be used as the new menu
label</td></tr></tbody></table><p>The <code class="methodname">set_menu_label</code>() replaces the menu
label for the page containing <em class="parameter"><code>child</code></em> with the widget
specified by <em class="parameter"><code>menu_label</code></em>.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>menu_label</code></em> can be
<code class="literal">None</code> to use a default label. Also if
<em class="parameter"><code>menu_label</code></em> is not specified it will default to
<code class="literal">None</code>. See the <a class="link" href="class-gtknotebook.html#method-gtknotebook--append-page-menu" title="gtk.Notebook.append_page_menu"><code class="methodname">append_page_menu</code>()</a>
method for more information.</p></div><div class="refsect2" title="gtk.Notebook.set_menu_label_text"><a name="method-gtknotebook--set-menu-label-text"></a><h3>gtk.Notebook.set_menu_label_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_menu_label_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_text</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>menu_text</code></strong> :</span></p></td><td>the new menu label text</td></tr></tbody></table><p>The <code class="methodname">set_menu_label_text</code>() method
creates a new label widget and replaces the menu label of the page
containing<em class="parameter"><code>child</code></em>.</p></div><div class="refsect2" title="gtk.Notebook.get_menu_label_text"><a name="method-gtknotebook--get-menu-label-text"></a><h3>gtk.Notebook.get_menu_label_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_menu_label_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>a child widget of a notebook
page.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>value: the text of the tab label, or
<code class="literal">None</code> if the widget does not have a menu label other than
the default menu label, or the menu label widget is not a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a> or
<em class="parameter"><code>child</code></em> is not contained in a notebook
page.</td></tr></tbody></table><p>The <code class="methodname">get_menu_label_text</code>() method
retrieves the text of the menu label for the page containing
<em class="parameter"><code>child</code></em>. If <em class="parameter"><code>child</code></em> is not in a
notebook page or the menu label is not a <a class="link" href="class-gtklabel.html" title="gtk.Label"><code class="classname">gtk.Label</code></a> widget or
the menu label has not been set (it default to the tab label), the return
value is <code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.Notebook.query_tab_label_packing"><a name="method-gtknotebook--query-tab-label-packing"></a><h3>gtk.Notebook.query_tab_label_packing</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">query_tab_label_packing</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>the page</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing: the expand value, the fill
value and the pack type</td></tr></tbody></table><p>The <code class="methodname">query_tab_label_packing</code>() method
returns a tuple containing the packing attributes (expand, fill, pack type)
for the tab label of the page containing <em class="parameter"><code>child</code></em>. If
the expand attribute is <code class="literal">True</code> the tab can expand to take
up the free space in the tab area. If fill is <code class="literal">True</code> the
label widget in the tab can use up all the space in the tab. The pack type
can be one of <code class="literal">gtk.PACK_START</code> or
<code class="literal">gtk.PACK_END</code> to specify whether the tab is packed to the
left or right if tabs are on the top or bottom edge (top or bottom if the
tabs are on the left or right edge).</p></div><div class="refsect2" title="gtk.Notebook.set_tab_label_packing"><a name="method-gtknotebook--set-tab-label-packing"></a><h3>gtk.Notebook.set_tab_label_packing</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tab_label_packing</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>expand</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pack_type</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>child</code></strong> :</span></p></td><td>a widget contained in a notebook
page</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>expand</code></strong> :</span></p></td><td>if <code class="literal">True</code> the tab can expand
to fill the free space in the tab area</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>fill</code></strong> :</span></p></td><td>if <code class="literal">True</code> the label widget can
fill the space in the tab</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>pack_type</code></strong> :</span></p></td><td>the position of the tab:
<code class="literal">gtk.PACK_START</code> or
<code class="literal">gtk.PACK_END</code></td></tr></tbody></table><p>The <code class="methodname">set_tab_label_packing</code>() method sets
the packing parameters for the tab label of the page containing
<em class="parameter"><code>child</code></em>. If <em class="parameter"><code>expand</code></em> is
<code class="literal">True</code> the tab can expand to take up the free space in the
tab area. If <em class="parameter"><code>fill</code></em> is <code class="literal">True</code> the
label widget in the tab can use up all the space in the tab. The
<em class="parameter"><code>pack_type</code></em> can be one of
<code class="literal">gtk.PACK_START</code> or <code class="literal">gtk.PACK_END</code> to
specify whether the tab is packed to the left or right if tabs are on the
top or bottom edge (top or bottom if the tabs are on the left or right
edge).See <a class="link" href="class-gtkbox.html#method-gtkbox--pack-start" title="gtk.Box.pack_start"><code class="methodname">gtk.Box.pack_start</code>()</a>
for the exact meaning of the parameters.</p></div><div class="refsect2" title="gtk.Notebook.reorder_child"><a name="method-gtknotebook--reorder-child"></a><h3>gtk.Notebook.reorder_child</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">reorder_child</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</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>child</code></strong> :</span></p></td><td>the child widget to move</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>position</code></strong> :</span></p></td><td>the index of the page that
<em class="parameter"><code>child</code></em> is to move to, or -1 to move to the
end</td></tr></tbody></table><p>The <code class="methodname">reorder_child</code>() method reorders
the notebook pages so that <em class="parameter"><code>child</code></em> appears in the page
whose index is specified by <em class="parameter"><code>position</code></em>. If
<em class="parameter"><code>position</code></em> is greater than or equal to the number of
children in the list or negative, <em class="parameter"><code>child</code></em> will be moved
to the end of the list.</p></div><div class="refsect2" title="gtk.Notebook.set_group_id"><a name="method-gtknotebook--set-group-id"></a><h3>gtk.Notebook.set_group_id</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_group_id</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group_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>group_id</code></strong> :</span></p></td><td>a group identifier, or -1 to unset
it</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 method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_group_id</code>() method sets the
group identifier for the notebook to the value specified by
<em class="parameter"><code>group_id</code></em>. Notebooks sharing the same group
identifier will be able to exchange tabs via drag and drop. A notebook
with group identifier -1 will not be able to exchange tabs with any
other notebook.</p></div><div class="refsect2" title="gtk.Notebook.get_group_id"><a name="method-gtknotebook--get-group-id"></a><h3>gtk.Notebook.get_group_id</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_group_id</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 group identifier, or -1 if none is
set.</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 method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_group_id</code>() method returns the
current group identifier for the notebook.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_reorderable"><a name="method-gtknotebook--get-tab-reorderable"></a><h3>gtk.Notebook.get_tab_reorderable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_reorderable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>a child <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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the tab is
reorderable.</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 method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_tab_reorderable</code>() method
returns <code class="literal">True</code> if the tab can be reordered via drag
and drop.</p></div><div class="refsect2" title="gtk.Notebook.set_tab_reorderable"><a name="method-gtknotebook--set-tab-reorderable"></a><h3>gtk.Notebook.set_tab_reorderable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tab_reorderable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>reorderable</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>child</code></strong> :</span></p></td><td>a child <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>reorderable</code></strong> :</span></p></td><td>if <code class="literal">True</code> the tab is
reorderable.</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 method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_tab_reorderable</code>() method sets
the "reorderable" property of <em class="parameter"><code>child</code></em> to the
value of <em class="parameter"><code>reorderable</code></em>. If
<em class="parameter"><code>reorderable</code></em> is <code class="literal">True</code>, the
notebook tab can be reordered via drag and drop.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_detachable"><a name="method-gtknotebook--get-tab-detachable"></a><h3>gtk.Notebook.get_tab_detachable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_detachable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</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>child</code></strong> :</span></p></td><td>a child <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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>if <code class="literal">True</code> the tab is
detachable.</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 method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_tab_detachable</code>() method returns
the value of the "detachable" property of
<em class="parameter"><code>child</code></em>. The method returns
<em class="parameter"><code>True</code></em> if the tab contents can be detached from
<em class="parameter"><code>notebook</code></em>.</p></div><div class="refsect2" title="gtk.Notebook.set_tab_detachable"><a name="method-gtknotebook--set-tab-detachable"></a><h3>gtk.Notebook.set_tab_detachable</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_tab_detachable</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detachable</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>child</code></strong> :</span></p></td><td>a child <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>detachable</code></strong> :</span></p></td><td>if <code class="literal">True</code> the tab is
detachable or not</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 method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_tab_detachable</code>() method sets
the "detachable" property of <em class="parameter"><code>child</code></em> to the value
specified by <em class="parameter"><code>detachable</code></em>. If
<em class="parameter"><code>detachable</code></em> is <code class="literal">True</code>,
<em class="parameter"><code>child</code></em> can be moved from this notebook to
another notebook or widget.</p><p>Note that two notebooks must share a common group identifier
(see the <a class="link" href="class-gtknotebook.html#method-gtknotebook--set-group-id" title="gtk.Notebook.set_group_id"><code class="methodname">set_group_id</code>()</a>
method) to allow automatic tabs interchange between them.</p><p>If you want a widget to interact with a notebook through DnD
(i.e.: accept dragged tabs from it) it must be set as a drop
destination and accept the target 'GTK_NOTEBOOK_TAB'. The notebook
will fill the selection with a reference to the child
widget that corresponds to the dropped tab.</p><p>If you want a notebook to accept drags from other widgets, you
will have to set your own DnD code to do it.</p></div><div class="refsect2" title="gtk.Notebook.set_group_name"><a name="method-gtknotebook--set-group-name"></a><h3>gtk.Notebook.set_group_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_group_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group_name</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>group_name</code></strong> :</span></p></td><td>the group name, 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 method is available in PyGTK 2.24 and above.</p></div><p>The <code class="methodname">set_group_name</code>() method sets a group name for notebook.</p></div><div class="refsect2" title="gtk.Notebook.get_group_name"><a name="method-gtknotebook--get-group-name"></a><h3>gtk.Notebook.get_group_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_group_name</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 group name, 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 method is available in PyGTK 2.24 and above.</p></div><p>The <code class="methodname">get_group_name</code>() method gets the current group name for notebook.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_hborder"><a name="method-gtknotebook--get-tab-hborder"></a><h3>gtk.Notebook.get_tab_hborder</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_hborder</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 horizontal width of a tab border.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_tab_hborder</code>() method returns the horizontal width of a tab border.</p></div><div class="refsect2" title="gtk.Notebook.get_tab_vborder"><a name="method-gtknotebook--get-tab-vborder"></a><h3>gtk.Notebook.get_tab_vborder</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tab_vborder</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 vertical width of a tab border.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_tab_vborder</code>() method returns the vertical width of a tab border.</p></div><div class="refsect2" title="gtk.Notebook.get_action_widget"><a name="method-gtknotebook--get-action-widget"></a><h3>gtk.Notebook.get_action_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_action_widget</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pack_type</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>pack_type</code></strong> :</span></p></td><td>pack type of the action widget to receive.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the action widget with the given pack_type or <code class="literal">None</code>
when this action widget has not been set.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_action_widget</code>() method gets one of the action widgets.</p></div><div class="refsect2" title="gtk.Notebook.set_action_widget"><a name="method-gtknotebook--set-action-widget"></a><h3>gtk.Notebook.set_action_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_action_widget</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>pack_type</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>pack_type</code></strong> :</span></p></td><td>pack type of the action widget.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_action_widget</code>() method sets widget as one of the action widgets. Depending on
the pack type the widget will be placed before or after the tabs. You can use a <a class="link" href="class-gtkbox.html" title="gtk.Box"><code class="classname">gtk.Box</code></a>
if you need to pack more than one widget on the same side.</p><p>Note that action widgets are "internal" children of the notebook and thus not included in the list returned
from <a class="link" href="class-gtkcontainer.html#method-gtkcontainer--foreach" title="gtk.Container.foreach"><code class="methodname">foreach</code></a>().</p></div></div><div class="refsect1" title="Functions"><a name="id3812726"></a><h2>Functions</h2><div class="refsect2" title="gtk.notebook_set_window_creation_hook"><a name="function-gtk--notebook-set-window-creation-hook"></a><h3>gtk.notebook_set_window_creation_hook</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtk.notebook_set_window_creation_hook</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><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>func</code></strong> :</span></p></td><td> a function to call when a tab is dropped
in an empty area.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>data</code></strong> :</span></p></td><td> data to pass to
<em class="parameter"><code>func</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.10 and above.</p></div><p>The <code class="function">gtk.notebook_set_window_creation_hook</code>
function installs a global function (specified by
<em class="parameter"><code>func</code></em>) used to create a window when a detached tab
is dropped in an empty area.</p><p>The signature of the callback function
<em class="parameter"><code>func</code></em> is:</p><pre class="programlisting">
def func(source, page, x, y, user_data)
</pre><p>where <em class="parameter"><code>source</code></em> is the
<a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
of the drag operation, <em class="parameter"><code>page</code></em> is the child
<a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> affected,
<em class="parameter"><code>x</code></em> is the X coordinate where the drop happens,
<em class="parameter"><code>y</code></em> is the Y coordinate where the drop happens,
<em class="parameter"><code>user_data</code></em> is the user data to pass to <em class="parameter"><code>func</code></em>.
</p><p>
This function is used by
<a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
when a detachable tab is dropped in the root window,
it's used to create a window containing a notebook where the tab will be attached.
This function will also be responsible of moving/resizing the window and adding the
necessary properties to the notebook (i.e.: group-id). If the
function returns <code class="literal">None</code>, the drag will be cancelled.
</p></div></div><div class="refsect1" title="Signals"><a name="id3812964"></a><h2>Signals</h2><div class="refsect2" title='The "change-current-page" gtk.Notebook Signal'><a name="signal-gtknotebook--change-current-page"></a><h3>The "change-current-page" gtk.Notebook Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>offset</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td><td>the count of pages to move (negative count is
backward)</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "change-current-page" signal is emitted when the page
forward or page backward request is issued.</p></div><div class="refsect2" title='The "create-window" gtk.Notebook Signal'><a name="signal-gtknotebook--create-window"></a><h3>The "create-window" gtk.Notebook Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>x</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>y</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td><td>the tab of notebook that is being detached
</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td>the X coordinate where the drop happens
</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td>the Y coordinate where the drop happens
</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "create-window" signal is emitted when a
detachable tab is dropped on the root window.</p><p>A handler for this signal can create a window containing
a notebook where the tab will be attached. It is also responsible
for moving/resizing the window and adding the necessary properties
to the notebook (e.g. the <a class="link" href="class-gtknotebook.html#properties-gtknotebook" title="gtk.Notebook Properties">GtkNotebook:group-id</a> ).</p></div><div class="refsect2" title='The "focus-tab" gtk.Notebook Signal'><a name="signal-gtknotebook--focus-tab"></a><h3>The "focus-tab" gtk.Notebook Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td>the type of tab:
<code class="literal">gtk.NOTEBOOK_TAB_FIRST</code> or
<code class="literal">gtk.NOTEBOOK_TAB_LAST</code></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the signal was
handled</td></tr></tbody></table><p>The "focus-tab" signal is emitted when the focus is changed by
tabbing.</p></div><div class="refsect2" title='The "move-focus-out" gtk.Notebook Signal'><a name="signal-gtknotebook--move-focus-out"></a><h3>The "move-focus-out" gtk.Notebook Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>direction_type</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>direction_type</code></em> :</span></p></td><td>the direction type of the focus move:
<code class="literal">gtk.DIR_TAB_FORWARD</code>,
<code class="literal">gtk.DIR_TAB_BACKWARD</code>, <code class="literal">gtk.DIR_UP</code>,
<code class="literal">gtk.DIR_DOWN</code>, <code class="literal">gtk.DIR_LEFT</code> or
<code class="literal">gtk.DIR_RIGHT</code></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "move-focus-out" signal is emitted when the focus is moved
out of the notebook with the specified
<em class="parameter"><code>direction_type</code></em>.</p></div><div class="refsect2" title='The "page-added" Signal'><a name="signal-gtknotebook--page-added"></a><h3>The "page-added" Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
affected</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page_num</code></em> :</span></p></td><td>the new page number for
<em class="parameter"><code>child</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in PyGTK 2.10 and above.</p></div><p>The "page-added" signal is emitted when a page is added to the
notebook.</p></div><div class="refsect2" title='The "page-removed" Signal'><a name="signal-gtknotebook--page-removed"></a><h3>The "page-removed" Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
affected</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page_num</code></em> :</span></p></td><td>the new page number for
<em class="parameter"><code>child</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in PyGTK 2.10 and above.</p></div><p>The "page-removed" signal is emitted after a page is removed
from the notebook.</p></div><div class="refsect2" title='The "page-reordered" Signal'><a name="signal-gtknotebook--page-reordered"></a><h3>The "page-reordered" Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>child</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a>
affected</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page_num</code></em> :</span></p></td><td>the new page number for
<em class="parameter"><code>child</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in PyGTK 2.10 and above.</p></div><p>The "page-reordered" signal is emitted when a page has been
reordered.</p></div><div class="refsect2" title='The "select-page" gtk.Notebook Signal'><a name="signal-gtknotebook--select-page"></a><h3>The "select-page" gtk.Notebook Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>move_focus</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>move_focus</code></em> :</span></p></td><td>if <code class="literal">True</code> move the
focus to a child widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the signal was
handled</td></tr></tbody></table><p>The "select-page" signal is emitted when a new child page is
selected.</p></div><div class="refsect2" title='The "switch-page" gtk.Notebook Signal'><a name="signal-gtknotebook--switch-page"></a><h3>The "switch-page" gtk.Notebook Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>notebook</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>page_num</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>notebook</code></em> :</span></p></td><td>the notebook that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td><td>the new current page</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page_num</code></em> :</span></p></td><td>the index of the new current
page</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "switch-page" signal is emitted when the notebook page is
changed. Note the <em class="parameter"><code>page</code></em> parameter is a GPointer and
not usable within PyGTK. Use the <em class="parameter"><code>page_num</code></em> parameter
to retrieve the new current page using the <a class="link" href="class-gtknotebook.html#method-gtknotebook--get-nth-page" title="gtk.Notebook.get_nth_page"><code class="methodname">get_nth_page</code>()</a>
method.</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-gtkmountoperation.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtkobject.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.MountOperation </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.Object</td></tr></table></div></body></html>
|