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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Paned</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-gtkpagesetup.html" title="gtk.PageSetup"><link rel="next" href="class-gtkpapersize.html" title="gtk.PaperSize"></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.Paned</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkpagesetup.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkpapersize.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkpaned"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Paned</h2><p>gtk.Paned — a base class for widgets with two adjustable
2
 
panes</p></div><div class="refsect1" lang="en"><a name="id3584626"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Paned</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
3
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--add1" title="gtk.Paned.add1">add1</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-gtkpaned.html#method-gtkpaned--add2" title="gtk.Paned.add2">add2</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-gtkpaned.html#method-gtkpaned--pack1" title="gtk.Paned.pack1">pack1</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>resize</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shrink</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--pack2" title="gtk.Paned.pack2">pack2</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>resize</code></strong></span><span class="initializer">=True</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shrink</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--get-position" title="gtk.Paned.get_position">get_position</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--set-position" title="gtk.Paned.set_position">set_position</a></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-gtkpaned.html#method-gtkpaned--compute-position" title="gtk.Paned.compute_position">compute_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>allocation</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>child1_req</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>child2_req</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--get-child1" title="gtk.Paned.get_child1">get_child1</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--get-child2" title="gtk.Paned.get_child2">get_child2</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3584972"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
2
panes</p></div><div class="refsect1" lang="en"><a name="id3785432"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Paned</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
 
3
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--add1" title="gtk.Paned.add1">add1</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-gtkpaned.html#method-gtkpaned--add2" title="gtk.Paned.add2">add2</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-gtkpaned.html#method-gtkpaned--pack1" title="gtk.Paned.pack1">pack1</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>resize</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shrink</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--pack2" title="gtk.Paned.pack2">pack2</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>resize</code></strong></span><span class="initializer">=True</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shrink</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--get-position" title="gtk.Paned.get_position">get_position</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--set-position" title="gtk.Paned.set_position">set_position</a></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-gtkpaned.html#method-gtkpaned--compute-position" title="gtk.Paned.compute_position">compute_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>allocation</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>child1_req</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>child2_req</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--get-child1" title="gtk.Paned.get_child1">get_child1</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpaned.html#method-gtkpaned--get-child2" title="gtk.Paned.get_child2">get_child2</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3785778"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
4
4
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
5
5
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
6
6
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
7
7
        +-- <a class="link" href="class-gtkpaned.html" title="gtk.Paned">gtk.Paned</a>
8
 
</pre></div><div class="refsect1" lang="en"><a name="id3585017"></a><h2>Implemented Interfaces</h2><p>
 
8
</pre></div><div class="refsect1" lang="en"><a name="id3785823"></a><h2>Implemented Interfaces</h2><p>
9
9
                        <a class="link" href="class-gtkpaned.html" title="gtk.Paned"><code class="classname">gtk.Paned</code></a>
10
10
                        implements 
11
11
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
17
17
all the way to the left or top).</td></tr><tr valign="top"><td valign="top">"position-set"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the "position" property is
18
18
valid.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="child-properties-gtkpaned"></a><h2>gtk.Paned 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">"resize"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the child expands and
19
19
shrinks along with the paned widget. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"shrink"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the child can be made
20
 
smaller than its requisition. Available in GTK+ 2.4 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkpaned"></a><h2>gtk.Paned 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">"handle-size"</td><td valign="top">Read</td><td valign="top">The width of the handle</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkpaned"></a><h2>gtk.Paned 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-gtkpaned.html#signal-gtkpaned--accept-position" title='The "accept-position" gtk.Paned Signal'>accept-position</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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-gtkpaned.html#signal-gtkpaned--cancel-position" title='The "cancel-position" gtk.Paned Signal'>cancel-position</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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-gtkpaned.html#signal-gtkpaned--cycle-child-focus" title='The "cycle-child-focus" gtk.Paned Signal'>cycle-child-focus</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>reversed</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-gtkpaned.html#signal-gtkpaned--cycle-handle-focus" title='The "cycle-handle-focus" gtk.Paned Signal'>cycle-handle-focus</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>reversed</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-gtkpaned.html#signal-gtkpaned--move-handle" title='The "move-handle" gtk.Paned Signal'>move-handle</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>scrolltype</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-gtkpaned.html#signal-gtkpaned--toggle-handle-focus" title='The "toggle-handle-focus" gtk.Paned Signal'>toggle-handle-focus</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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="id3585842"></a><h2>Description</h2><p><a class="link" href="class-gtkpaned.html" title="gtk.Paned"><code class="classname">gtk.Paned</code></a> is the base
 
20
smaller than its requisition. Available in GTK+ 2.4 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkpaned"></a><h2>gtk.Paned 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">"handle-size"</td><td valign="top">Read</td><td valign="top">The width of the handle</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkpaned"></a><h2>gtk.Paned 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-gtkpaned.html#signal-gtkpaned--accept-position" title='The "accept-position" gtk.Paned Signal'>accept-position</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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-gtkpaned.html#signal-gtkpaned--cancel-position" title='The "cancel-position" gtk.Paned Signal'>cancel-position</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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-gtkpaned.html#signal-gtkpaned--cycle-child-focus" title='The "cycle-child-focus" gtk.Paned Signal'>cycle-child-focus</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>reversed</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-gtkpaned.html#signal-gtkpaned--cycle-handle-focus" title='The "cycle-handle-focus" gtk.Paned Signal'>cycle-handle-focus</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>reversed</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-gtkpaned.html#signal-gtkpaned--move-handle" title='The "move-handle" gtk.Paned Signal'>move-handle</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>scrolltype</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-gtkpaned.html#signal-gtkpaned--toggle-handle-focus" title='The "toggle-handle-focus" gtk.Paned Signal'>toggle-handle-focus</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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="id3786648"></a><h2>Description</h2><p><a class="link" href="class-gtkpaned.html" title="gtk.Paned"><code class="classname">gtk.Paned</code></a> is the base
21
21
class for widgets with two panes, arranged either horizontally (<a class="link" href="class-gtkhpaned.html" title="gtk.HPaned"><code class="classname">gtk.HPaned</code></a>) or
22
22
vertically (<a class="link" href="class-gtkvpaned.html" title="gtk.VPaned"><code class="classname">gtk.VPaned</code></a>). Child
23
23
widgets are added to the panes of the widget with the <a class="link" href="class-gtkpaned.html#method-gtkpaned--pack1" title="gtk.Paned.pack1"><code class="methodname">pack1</code>()</a> and
38
38
both children, the resizing behaves as if resize is <code class="literal">True</code>
39
39
for both children. The application can set the position of the slider by
40
40
calling the <a class="link" href="class-gtkpaned.html#method-gtkpaned--set-position" title="gtk.Paned.set_position"><code class="methodname">set_position</code>()</a> 
41
 
method.</p></div><div class="refsect1" lang="en"><a name="id3585975"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkpaned--add1"></a><h3>gtk.Paned.add1</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add1</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 widget to add</td></tr></tbody></table><p>The <code class="methodname">add1</code>() method adds the widget
 
41
method.</p></div><div class="refsect1" lang="en"><a name="id3786781"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkpaned--add1"></a><h3>gtk.Paned.add1</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add1</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 widget to add</td></tr></tbody></table><p>The <code class="methodname">add1</code>() method adds the widget
42
42
specified by <em class="parameter"><code>child</code></em> to the top or left pane with the
43
43
default packing parameters (resize is <code class="literal">False</code> and shrink is
44
44
<code class="literal">True</code>). See the <a class="link" href="class-gtkpaned.html#method-gtkpaned--pack1" title="gtk.Paned.pack1"><code class="methodname">pack1</code>()</a>
98
98
positions.</p></div><div class="refsect2" lang="en"><a name="method-gtkpaned--get-child1"></a><h3>gtk.Paned.get_child1</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_child1</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 first child, or<code class="literal">None</code></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in  PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_child1</code>() method returns the
99
99
first child of the paned widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkpaned--get-child2"></a><h3>gtk.Paned.get_child2</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_child2</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 second child, or
100
100
<code class="literal">None</code></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in  PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_child2</code>() method returns 
101
 
the second child of the paned widget.</p></div></div><div class="refsect1" lang="en"><a name="id3587158"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkpaned--accept-position"></a><h3>The "accept-position" gtk.Paned Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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>paned</code></em> :</span></p></td><td>the paned that received the
 
101
the second child of the paned widget.</p></div></div><div class="refsect1" lang="en"><a name="id3787963"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkpaned--accept-position"></a><h3>The "accept-position" gtk.Paned Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>paned</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>paned</code></em> :</span></p></td><td>the paned that received the
102
102
signal</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
103
103
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
104
104
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if