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

« back to all changes in this revision

Viewing changes to docs/html/class-gtknotebook.html

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Notebook</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-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" lang="en"><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" lang="en"><a name="id3592179"></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>):
 
1
<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.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-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="id3902078"></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>):
2
2
<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></pre></td></tr></table><pre class="programlisting">
3
3
<span class="bold"><strong>Functions</strong></span>
4
4
 
5
 
<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" lang="en"><a name="id3593654"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
5
<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="id3903553"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
6
6
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
7
7
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
8
8
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
9
9
        +-- <a class="link" href="class-gtknotebook.html" title="gtk.Notebook">gtk.Notebook</a>
10
 
</pre></div><div class="refsect1" lang="en"><a name="id3593699"></a><h2>Implemented Interfaces</h2><p>
 
10
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3903597"></a><h2>Implemented Interfaces</h2><p>
11
11
                        <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
12
12
                        implements 
13
13
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
14
 
                </p></div><div class="refsect1" lang="en"><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><col><col></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
 
14
                </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
15
15
              button on the notebook pops up a menu that you can use to go
16
16
              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: &gt;=
17
17
          -1. Default value: -1.</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
30
30
              <code class="literal">gtk.POS_TOP</code> or
31
31
              <code class="literal">gtk.POS_BOTTOM</code>.  Default value:
32
32
              <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.
33
 
              Default value: 2,</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><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><col><col></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
 
33
              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
34
34
              the scroll arrows and the tabs. Allowed values: &gt;= 0.
35
35
              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
36
36
              button is displayed. Default value:
46
46
              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
47
47
              curvature. Allowed values: &gt;= 0. Default value: 1. Available
48
48
              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
49
 
              area. Default value: 2. Available in GTK+ 2.10.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><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><col><col></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.
 
49
              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.
50
50
              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.
51
51
              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:
52
52
              &gt;= -1 Default value: 0.</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.
57
57
              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>:
58
58
              <code class="literal">gtk.PACK_START</code> or
59
59
              <code class="literal">gtk.PACK_END</code>.  Default value:
60
 
              <code class="literal">gtk.PACK_START</code>.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3594620"></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><col><col></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:
 
60
              <code class="literal">gtk.PACK_START</code>.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Attributes"><a name="id3904518"></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:
61
61
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
62
 
<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" lang="en"><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" lang="en"><a name="id3595535"></a><h2>Description</h2><p>The <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
 
62
<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="id3905433"></a><h2>Description</h2><p>The <a class="link" href="class-gtknotebook.html" title="gtk.Notebook"><code class="classname">gtk.Notebook</code></a>
63
63
widget is a <a class="link" href="class-gtkcontainer.html" title="gtk.Container"><code class="classname">gtk.Container</code></a>
64
64
whose children are overlapping pages that can be switched between by  using
65
65
tab labels along one edge. There are many configuration options for the
81
81
          "type" attribute of a &lt;child&gt; element. Note that the content of the
82
82
          tab must be created before the tab can be filled. A tab child can be specified
83
83
          without specifying a &lt;child&gt; type attribute.
84
 
    </p><div class="refsect2" lang="en"><a name="gtkbuilder-ui-definition-fragment-with-gtknotebook"></a><h3>A UI definition fragment with gtk.Notebook</h3><pre class="programlisting">
 
84
    </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">
85
85
 
86
86
&lt;object class="GtkNotebook"&gt;
87
87
  &lt;child&gt;
102
102
                custom element in a &lt;child&gt; element gets parsed by the custom tag handler of
103
103
                the parent object, while a custom element in an &lt;object&gt; element gets parsed
104
104
                by the custom tag handler of the object.
105
 
            </p></div></div><div class="refsect1" lang="en"><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>
106
 
widget with no pages.</p></div><div class="refsect1" lang="en"><a name="id3595756"></a><h2>Methods</h2><div class="refsect2" lang="en"><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
 
105
            </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>
 
106
widget with no pages.</p></div><div class="refsect1" title="Methods"><a name="id3905654"></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
107
107
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
108
108
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
109
109
          <code class="literal">None</code>. In PyGTK 2.4 and above returns the index
113
113
the tab.</p><p>In PyGTK 2.4 and above <em class="parameter"><code>tab_label</code></em> can be
114
114
<code class="literal">None</code> to use a default label. Also if
115
115
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
116
 
<code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><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
 
116
<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
117
117
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
118
118
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
119
119
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
130
130
<code class="literal">None</code> then the menu label will have the same text as the
131
131
tab label. Otherwise, <em class="parameter"><code>menu_label</code></em> must be specified
132
132
and not <code class="literal">None</code>. These parameters will default to
133
 
<code class="literal">None</code> in PyGTK 2.4 as well.</p></div><div class="refsect2" lang="en"><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
 
133
<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
134
134
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
135
135
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
136
136
          <code class="literal">None</code>. In PyGTK 2.4 and above returns the index
140
140
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
141
141
<code class="literal">None</code> to use a default label. Also if
142
142
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
143
 
<code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><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
 
143
<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
144
144
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
145
145
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
146
146
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
157
157
<code class="literal">None</code> then the menu label will have the same text as the
158
158
tab label. Otherwise, <em class="parameter"><code>menu_label</code></em> must be specified
159
159
and not <code class="literal">None</code>. These parameters will default to
160
 
<code class="literal">None</code> in PyGTK 2.4 as well.</p></div><div class="refsect2" lang="en"><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
 
160
<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
161
161
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
162
162
<a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to
163
163
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
175
175
<code class="literal">None</code> to use a default label. Also if
176
176
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
177
177
<code class="literal">None</code>.</p><p>In Pygtk 2.4 and above <em class="parameter"><code>position</code></em> will
178
 
default to -1 if not specified.</p></div><div class="refsect2" lang="en"><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
 
178
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
179
179
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
180
180
<a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> to
181
181
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
197
197
tab label. Otherwise, <em class="parameter"><code>menu_label</code></em> must be specified
198
198
and not <code class="literal">None</code>. These parameters will default to
199
199
<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
200
 
default to -1 if not specified.</p></div><div class="refsect2" lang="en"><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.
 
200
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.
201
201
If -1, the last page will be removed.</td></tr></tbody></table><p>The <code class="methodname">remove_page</code>() method removes from
202
202
the notebook the page at the location specified by
203
203
<em class="parameter"><code>index</code></em>. The value of <em class="parameter"><code>index</code></em>
204
204
starts from 0. If <em class="parameter"><code>index</code></em> is -1 the last page of the
205
 
notebook will be removed.</p></div><div class="refsect2" lang="en"><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
 
205
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
206
206
in the notebook. If the notebook has no pages, then -1 will be
207
207
returned.</td></tr></tbody></table><p>The <code class="methodname">get_current_page</code>() method returns
208
 
the page index of the current page numbered from 0.</p></div><div class="refsect2" lang="en"><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
 
208
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
209
209
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
210
210
<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
211
211
child widget contained in the page with the index specified by
212
212
<em class="parameter"><code>page_num</code></em>. If <em class="parameter"><code>page_num</code></em> is out
213
213
of bounds for the page range of the notebook this method returns
214
 
<code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><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
215
 
          notebook.</td></tr></tbody></table><div class="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
216
 
number of pages in a notebook.</p></div><div class="refsect2" lang="en"><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
 
214
<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
 
215
          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
 
216
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
217
217
<em class="parameter"><code>child</code></em>, or -1 if <em class="parameter"><code>child</code></em> is not
218
218
in the notebook.</td></tr></tbody></table><p>The <code class="methodname">page_num</code>() method returns the index
219
219
of the page which contains the widget specified by
220
220
<em class="parameter"><code>child</code></em> or <code class="literal">None</code> if no page contains
221
 
<em class="parameter"><code>child</code></em>.</p></div><div class="refsect2" lang="en"><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
 
221
<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
222
222
from 0. If negative, the last page will be used. If greater than the number
223
223
of pages in the notebook, nothing will be done.</td></tr></tbody></table><p>The <code class="methodname">set_current_page</code>() method switches
224
224
to the page number specified by <em class="parameter"><code>page_num</code></em>. If
225
225
<em class="parameter"><code>page_num</code></em> is negative the last page is
226
 
selected.</p></div><div class="refsect2" lang="en"><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
227
 
next page. Nothing happens if the current page is the last page.</p></div><div class="refsect2" lang="en"><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
228
 
previous page. Nothing happens if the current page is the first page.</p></div><div class="refsect2" lang="en"><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
 
226
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
 
227
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
 
228
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
229
229
drawn around the notebook.</td></tr></tbody></table><p>The <code class="methodname">show_border</code>() method sets the
230
230
"show-border" property to the value of <em class="parameter"><code>show_border</code></em>.
231
231
If <em class="parameter"><code>show_border</code></em> is <code class="literal">True</code> a bevel
232
232
will be drawn around the notebook pages. This only has a visual effect when
233
 
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" lang="en"><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
 
233
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
234
234
drawn</td></tr></tbody></table><p>The <code class="methodname">get_show_border</code>() method returns
235
235
the value of the "show-border" property. If "show-border" is
236
236
<code class="literal">True</code> a bevel will be drawn around the notebook pages when
237
 
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" lang="en"><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
 
237
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
238
238
shown.</td></tr></tbody></table><p>The <code class="methodname">set_show_tabs</code>() method sets the
239
239
"show-tabs" property to the value of <em class="parameter"><code>show_tabs</code></em>. If
240
240
<em class="parameter"><code>show_tabs</code></em> is <code class="literal">True</code> the notebook
241
 
tabs will be displayed.</p></div><div class="refsect2" lang="en"><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
 
241
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
242
242
shown</td></tr></tbody></table><p>The <code class="methodname">get_show_tabs</code>() method returns the
243
243
value of the "show-tabs" property. If "show-tabs" is <code class="literal">True</code>
244
 
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" lang="en"><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:
 
244
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:
245
245
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
246
246
<code class="literal">gtk.POS_TOP</code> or
247
247
<code class="literal">gtk.POS_BOTTOM</code>.</td></tr></tbody></table><p>The <code class="methodname">set_tab_pos</code>() method sets the edge
249
249
by <em class="parameter"><code>pos</code></em>. The value of <em class="parameter"><code>pos</code></em> can
250
250
be one of: <code class="literal">gtk.POS_LEFT</code>,
251
251
<code class="literal">gtk.POS_RIGHT</code>, <code class="literal">gtk.POS_TOP</code> or
252
 
<code class="literal">gtk.POS_BOTTOM</code>.</p></div><div class="refsect2" lang="en"><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
 
252
<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
253
253
drawn</td></tr></tbody></table><p>The <code class="methodname">get_tab_pos</code>() method returns the
254
254
edge at which the tabs for switching pages in the notebook are drawn. The
255
255
return value is one of: <code class="literal">gtk.POS_LEFT</code>,
256
256
<code class="literal">gtk.POS_RIGHT</code>, <code class="literal">gtk.POS_TOP</code> or
257
 
<code class="literal">gtk.POS_BOTTOM</code>.</p></div><div class="refsect2" lang="en"><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
 
257
<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
258
258
be added</td></tr></tbody></table><p>The <code class="methodname">set_scrollable</code>() method sets the
259
259
"scrollable" property to the value specified by
260
260
<em class="parameter"><code>scrollable</code></em>. If <em class="parameter"><code>scrollable</code></em> is
261
261
<code class="literal">True</code> the tab label area will have arrows for scrolling if
262
 
there are too many tabs to fit in the area.</p></div><div class="refsect2" lang="en"><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
 
262
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
263
263
are enabled</td></tr></tbody></table><p>The <code class="methodname">get_scrollable</code>() method returns the
264
264
value of the "scrollable" property. If "scrollable" is
265
265
<code class="literal">True</code> the tab label area has scrolling arrows enabled and
266
 
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" lang="en"><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
 
266
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
267
267
popup menu: if the user clicks with the right mouse button on the tabs, a
268
 
menu with all the pages will be popped up.</p></div><div class="refsect2" lang="en"><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
269
 
popup menu.</p></div><div class="refsect2" lang="en"><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
 
268
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
 
269
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
270
270
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
271
271
<em class="parameter"><code>child</code></em></td></tr></tbody></table><p>The <code class="methodname">get_tab_label</code>() method returns the
272
272
tab label widget for the page containing the widget
273
273
<em class="parameter"><code>child</code></em>. <code class="literal">None</code> is returned if
274
 
<em class="parameter"><code>child</code></em> is not in the notebook.</p></div><div class="refsect2" lang="en"><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
 
274
<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
275
275
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
276
276
use or <code class="literal">None</code>.</td></tr></tbody></table><p>The <code class="methodname">set_tab_label</code>() method replaces the
277
277
tab label for the notebook page containing <em class="parameter"><code>child</code></em> with
278
278
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
279
279
<code class="literal">None</code> to use a default label. Also if
280
280
<em class="parameter"><code>tab_label</code></em> is not specified it will default to
281
 
<code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><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
 
281
<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
282
282
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
283
283
a new label with the text specified by <em class="parameter"><code>tab_text</code></em> and
284
284
sets it as the tab label for the page containing
285
 
<em class="parameter"><code>child</code></em>.</p></div><div class="refsect2" lang="en"><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
 
285
<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
286
286
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
287
287
<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
288
288
<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
289
289
text of the tab label for the page containing <em class="parameter"><code>child</code></em>.
290
290
This method returns <code class="literal">None</code> if <em class="parameter"><code>child</code></em>
291
291
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>
292
 
widget.</p></div><div class="refsect2" lang="en"><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
 
292
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
293
293
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
294
294
the notebook page does not have a menu label other than the default (the tab
295
295
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
296
296
the menu label widget of the page containing <em class="parameter"><code>child</code></em>.
297
297
If <em class="parameter"><code>child</code></em> is not in a notebook page or the menu label
298
298
has not been set (it defaults to the tab label), this method returns
299
 
<code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><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
 
299
<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
300
300
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
301
301
label</td></tr></tbody></table><p>The <code class="methodname">set_menu_label</code>() replaces the menu
302
302
label for the page containing <em class="parameter"><code>child</code></em> with the widget
304
304
<code class="literal">None</code> to use a default label. Also if
305
305
<em class="parameter"><code>menu_label</code></em> is not specified it will default to
306
306
<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>
307
 
method for more information.</p></div><div class="refsect2" lang="en"><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
 
307
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
308
308
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
309
309
creates a new label widget and replaces the menu label of the page
310
 
containing<em class="parameter"><code>child</code></em>.</p></div><div class="refsect2" lang="en"><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
 
310
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
311
311
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
312
312
<code class="literal">None</code> if the widget does not have a menu label other than
313
313
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
317
317
<em class="parameter"><code>child</code></em>. If <em class="parameter"><code>child</code></em> is not in a
318
318
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
319
319
the menu label has not been set (it default to the tab label), the return
320
 
value is <code class="literal">None</code>.</p></div><div class="refsect2" lang="en"><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
 
320
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
321
321
value and the pack type</td></tr></tbody></table><p>The <code class="methodname">query_tab_label_packing</code>() method
322
322
returns a tuple containing the packing attributes (expand, fill, pack type)
323
323
for the tab label of the page containing <em class="parameter"><code>child</code></em>. If
327
327
can be one of <code class="literal">gtk.PACK_START</code> or
328
328
<code class="literal">gtk.PACK_END</code> to specify whether the tab is packed to the
329
329
left or right if tabs are on the top or bottom edge (top or bottom if the
330
 
tabs are on the left or right edge).</p></div><div class="refsect2" lang="en"><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
 
330
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
331
331
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
332
332
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
333
333
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:
343
343
specify whether the tab is packed to the left or right if tabs are on the
344
344
top or bottom edge (top or bottom if the tabs are on the left or right
345
345
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> 
346
 
for the exact meaning of the parameters.</p></div><div class="refsect2" lang="en"><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
 
346
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
347
347
<em class="parameter"><code>child</code></em> is to move to, or -1 to move to the
348
348
end</td></tr></tbody></table><p>The <code class="methodname">reorder_child</code>() method reorders
349
349
the notebook pages so that <em class="parameter"><code>child</code></em> appears in the page
350
350
whose index is specified by <em class="parameter"><code>position</code></em>. If
351
351
<em class="parameter"><code>position</code></em> is greater than or equal to the number of
352
352
children in the list or negative, <em class="parameter"><code>child</code></em> will be moved
353
 
to the end of the list.</p></div><div class="refsect2" lang="en"><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
354
 
          it</td></tr></tbody></table><div class="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
 
353
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
 
354
          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
355
355
      group identifier for the notebook to the value specified by
356
356
      <em class="parameter"><code>group_id</code></em>. Notebooks sharing the same group
357
357
      identifier will be able to exchange tabs via drag and drop. A notebook
358
358
      with group identifier -1 will not be able to exchange tabs with any
359
 
      other notebook.</p></div><div class="refsect2" lang="en"><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
360
 
          set.</td></tr></tbody></table><div class="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
361
 
      current group identifier for the notebook.</p></div><div class="refsect2" lang="en"><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
362
 
          reorderable.</td></tr></tbody></table><div class="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
 
359
      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
 
360
          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
 
361
      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
 
362
          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
363
363
      returns <code class="literal">True</code> if the tab can be reordered via drag
364
 
      and drop.</p></div><div class="refsect2" lang="en"><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
365
 
          reorderable.</td></tr></tbody></table><div class="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
 
364
      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
 
365
          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
366
366
      the "reorderable" property of <em class="parameter"><code>child</code></em> to the
367
367
      value of <em class="parameter"><code>reorderable</code></em>. If
368
368
      <em class="parameter"><code>reorderable</code></em> is <code class="literal">True</code>, the
369
 
      notebook tab can be reordered via drag and drop.</p></div><div class="refsect2" lang="en"><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
370
 
          detachable.</td></tr></tbody></table><div class="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
 
369
      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
 
370
          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
371
371
      the value of the "detachable" property of
372
372
      <em class="parameter"><code>child</code></em>. The method returns
373
373
      <em class="parameter"><code>True</code></em> if the tab contents can be detached from
374
 
      <em class="parameter"><code>notebook</code></em>.</p></div><div class="refsect2" lang="en"><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
375
 
          detachable or not</td></tr></tbody></table><div class="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
 
374
      <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
 
375
          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
376
376
      the "detachable" property of <em class="parameter"><code>child</code></em> to the value
377
377
      specified by <em class="parameter"><code>detachable</code></em>. If
378
378
      <em class="parameter"><code>detachable</code></em> is <code class="literal">True</code>,
384
384
      destination and accept the target 'GTK_NOTEBOOK_TAB'. The notebook
385
385
      will fill the selection with a reference to the child
386
386
      widget that corresponds to the dropped tab.</p><p>If you want a notebook to accept drags from other widgets, you
387
 
      will have to set your own DnD code to do it.</p></div></div><div class="refsect1" lang="en"><a name="id3601001"></a><h2>Functions</h2><div class="refsect2" lang="en"><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
 
387
      will have to set your own DnD code to do it.</p></div></div><div class="refsect1" title="Functions"><a name="id3910899"></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
388
388
          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
389
 
<em class="parameter"><code>func</code></em></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.10 and above.</p></div><p>The <code class="function">gtk.notebook_set_window_creation_hook</code>
 
389
<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>
390
390
function installs a global function (specified by
391
391
<em class="parameter"><code>func</code></em>) used to create a window when a detached tab
392
392
is dropped in an empty area.</p><p>The signature of the callback function
408
408
        This function will also be responsible of moving/resizing the window and adding the
409
409
        necessary properties to the notebook (i.e.: group-id). If the
410
410
        function returns <code class="literal">None</code>, the drag will be cancelled.
411
 
      </p></div></div><div class="refsect1" lang="en"><a name="id3601240"></a><h2>Signals</h2><div class="refsect2" lang="en"><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
 
411
      </p></div></div><div class="refsect1" title="Signals"><a name="id3911138"></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
412
412
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
413
413
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
414
414
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
415
415
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
416
416
any)</td></tr></tbody></table><p>The "change-current-page" signal is emitted when the page
417
 
forward or page backward request is issued.</p></div><div class="refsect2" lang="en"><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
 
417
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
418
418
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
419
419
      </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
420
420
      </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
425
425
      detachable tab is dropped on the root window.</p><p>A handler for this signal can create a window containing
426
426
      a notebook where the tab will be attached. It is also responsible
427
427
      for moving/resizing the window and adding the necessary properties
428
 
      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" lang="en"><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
 
428
      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
429
429
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td>the type of tab:
430
430
<code class="literal">gtk.NOTEBOOK_TAB_FIRST</code> or
431
431
<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
433
433
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
434
434
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
435
435
handled</td></tr></tbody></table><p>The "focus-tab" signal is emitted when the focus is changed by
436
 
tabbing.</p></div><div class="refsect2" lang="en"><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
 
436
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
437
437
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:
438
438
<code class="literal">gtk.DIR_TAB_FORWARD</code>,
439
439
<code class="literal">gtk.DIR_TAB_BACKWARD</code>, <code class="literal">gtk.DIR_UP</code>,
443
443
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
444
444
any)</td></tr></tbody></table><p>The "move-focus-out" signal is emitted when the focus is moved
445
445
out of the notebook with the specified
446
 
<em class="parameter"><code>direction_type</code></em>.</p></div><div class="refsect2" lang="en"><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
447
 
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>
448
 
          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
449
 
          <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
450
 
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
451
 
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
452
 
any)</td></tr></tbody></table><div class="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
453
 
      notebook.</p></div><div class="refsect2" lang="en"><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
454
 
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>
455
 
          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
456
 
          <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
457
 
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
458
 
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
459
 
any)</td></tr></tbody></table><div class="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
460
 
      from the notebook.</p></div><div class="refsect2" lang="en"><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
461
 
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>
462
 
          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
463
 
          <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
464
 
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
465
 
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
466
 
any)</td></tr></tbody></table><div class="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
467
 
      reordered.</p></div><div class="refsect2" lang="en"><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
 
446
<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
 
447
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>
 
448
          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
 
449
          <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
 
450
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
 
451
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
 
452
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
 
453
      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
 
454
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>
 
455
          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
 
456
          <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
 
457
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
 
458
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
 
459
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
 
460
      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
 
461
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>
 
462
          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
 
463
          <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
 
464
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
 
465
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
 
466
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
 
467
      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
468
468
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
469
469
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
470
470
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
471
471
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
472
472
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
473
473
handled</td></tr></tbody></table><p>The "select-page" signal is emitted when a new child page is
474
 
selected.</p></div><div class="refsect2" lang="en"><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
 
474
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
475
475
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
476
476
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
477
477
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>