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

« back to all changes in this revision

Viewing changes to docs/html/class-gtktable.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
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Table</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-gtkstyle.html" title="gtk.Style"><link rel="next" href="class-gtktearoffmenuitem.html" title="gtk.TearoffMenuItem"></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.Table</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkstyle.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktearoffmenuitem.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Table</h2><p>gtk.Table — layout widgets in a two-dimensional array</p></div><div class="refsect1" lang="en"><a name="id3686373"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Table</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
2
 
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtktable.html#constructor-gtktable" title="Constructor">gtk.Table</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rows</code></strong></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>columns</code></strong></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span><span class="initializer">=False</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--resize" title="gtk.Table.resize">resize</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rows</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>columns</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--attach" title="gtk.Table.attach">attach</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>left_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>top_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bottom_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xoptions</code></strong></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yoptions</code></strong></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpadding</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypadding</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-row-spacing" title="gtk.Table.set_row_spacing">set_row_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>row</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-row-spacing" title="gtk.Table.get_row_spacing">get_row_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>row</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-col-spacing" title="gtk.Table.set_col_spacing">set_col_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-col-spacing" title="gtk.Table.get_col_spacing">get_col_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-row-spacings" title="gtk.Table.set_row_spacings">set_row_spacings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-default-row-spacing" title="gtk.Table.get_default_row_spacing">get_default_row_spacing</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-col-spacings" title="gtk.Table.set_col_spacings">set_col_spacings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-default-col-spacing" title="gtk.Table.get_default_col_spacing">get_default_col_spacing</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous">set_homogeneous</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-homogeneous" title="gtk.Table.get_homogeneous">get_homogeneous</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3686935"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Table</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-gtkstyle.html" title="gtk.Style"><link rel="next" href="class-gtktearoffmenuitem.html" title="gtk.TearoffMenuItem"></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.Table</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkstyle.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktearoffmenuitem.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Table</h2><p>gtk.Table — layout widgets in a two-dimensional array</p></div><div class="refsect1" lang="en"><a name="id3887280"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Table</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
 
2
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtktable.html#constructor-gtktable" title="Constructor">gtk.Table</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rows</code></strong></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>columns</code></strong></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span><span class="initializer">=False</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--resize" title="gtk.Table.resize">resize</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rows</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>columns</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--attach" title="gtk.Table.attach">attach</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>left_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>top_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bottom_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xoptions</code></strong></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yoptions</code></strong></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpadding</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypadding</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-row-spacing" title="gtk.Table.set_row_spacing">set_row_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>row</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-row-spacing" title="gtk.Table.get_row_spacing">get_row_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>row</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-col-spacing" title="gtk.Table.set_col_spacing">set_col_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-col-spacing" title="gtk.Table.get_col_spacing">get_col_spacing</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-row-spacings" title="gtk.Table.set_row_spacings">set_row_spacings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-default-row-spacing" title="gtk.Table.get_default_row_spacing">get_default_row_spacing</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-col-spacings" title="gtk.Table.set_col_spacings">set_col_spacings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-default-col-spacing" title="gtk.Table.get_default_col_spacing">get_default_col_spacing</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous">set_homogeneous</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktable.html#method-gtktable--get-homogeneous" title="gtk.Table.get_homogeneous">get_homogeneous</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3887842"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
3
3
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
4
4
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
5
5
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
6
6
        +-- <a class="link" href="class-gtktable.html" title="gtk.Table">gtk.Table</a>
7
 
</pre></div><div class="refsect1" lang="en"><a name="id3686980"></a><h2>Implemented Interfaces</h2><p>
 
7
</pre></div><div class="refsect1" lang="en"><a name="id3887887"></a><h2>Implemented Interfaces</h2><p>
8
8
                        <a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a>
9
9
                        implements 
10
10
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
16
16
and right neighbors, in pixels</td></tr><tr valign="top"><td valign="top">"y-options"</td><td valign="top">Read-Write</td><td valign="top">the vertical behavior of the child - a combination of:
17
17
<code class="literal">gtk.EXPAND</code>, <code class="literal">gtk.SHRINK</code> and
18
18
<code class="literal">gtk.FILL</code></td></tr><tr valign="top"><td valign="top">"y-padding"</td><td valign="top">Read-Write</td><td valign="top">Extra space added between the child widget and its top
19
 
and bottom neighbors, in pixels</td></tr></tbody></table></div></td></tr></table></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktable"></a><h2>gtk.Table 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></div></div><div class="refsect1" lang="en"><a name="id3687476"></a><h2>Description</h2><p>The <a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a> manages a
 
19
and bottom neighbors, in pixels</td></tr></tbody></table></div></td></tr></table></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktable"></a><h2>gtk.Table 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></div></div><div class="refsect1" lang="en"><a name="id3888383"></a><h2>Description</h2><p>The <a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a> manages a
20
20
group of widgets that are arranged in rows and columns, making it easy to
21
21
align many widgets next to each other, horizontally and vertically. Tables
22
22
are created with a call to <a class="link" href="class-gtktable.html#constructor-gtktable" title="Constructor">gtk.Table</a>(). The size of a table can
39
39
must be in the range 0 .. 65535. If <em class="parameter"><code>homogeneous</code></em> is
40
40
<code class="literal">True</code> the table cells will all be the same size as the
41
41
largest cell. If <em class="parameter"><code>rows</code></em> or
42
 
<em class="parameter"><code>columns</code></em> are not specified they default to 1.</p></div><div class="refsect1" lang="en"><a name="id3687803"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktable--resize"></a><h3>gtk.Table.resize</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">resize</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rows</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>columns</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>rows</code></strong> :</span></p></td><td>The new number of rows.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>columns</code></strong> :</span></p></td><td>The new number of columns.</td></tr></tbody></table><p>The <code class="methodname">resize</code>() method changes the size of
 
42
<em class="parameter"><code>columns</code></em> are not specified they default to 1.</p></div><div class="refsect1" lang="en"><a name="id3888710"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktable--resize"></a><h3>gtk.Table.resize</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">resize</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rows</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>columns</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>rows</code></strong> :</span></p></td><td>The new number of rows.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>columns</code></strong> :</span></p></td><td>The new number of columns.</td></tr></tbody></table><p>The <code class="methodname">resize</code>() method changes the size of
43
43
the table as specified by the parameters, <em class="parameter"><code>rows</code></em> and
44
44
<em class="parameter"><code>columns</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--attach"></a><h3>gtk.Table.attach</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">attach</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>left_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>right_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>top_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bottom_attach</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xoptions</code></strong></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yoptions</code></strong></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xpadding</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ypadding</code></strong></span><span class="initializer">=0</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><tr><td><p><span class="term"><strong class="parameter"><code>left_attach</code></strong> :</span></p></td><td>the column number to attach the left side of a
45
45
child widget to.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>right_attach</code></strong> :</span></p></td><td>the column number to attach the right side of a