File: class-gtktable.html

package info (click to toggle)
python-gtk2-doc 2.5.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,304 kB
  • ctags: 3,741
  • sloc: makefile: 38
file content (98 lines) | stat: -rw-r--r-- 31,409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Table</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.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="previous" 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><div></div></div><div class="refnamediv"><h2>gtk.Table</h2><p>gtk.Table &#8212; layout widgets in a two-dimensional array</p></div><div class="refsect1" lang="en"><a name="id3521784"></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 href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a></span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a href="class-gtktable.html#constructor-gtktable" title="Constructor">gtk.Table</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>rows</tt></b></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>columns</tt></b></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>homogeneous</tt></b></span><span class="initializer">=FALSE</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtktable.html#method-gtktable--resize" title="gtk.Table.resize">resize</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>rows</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>columns</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtktable.html#method-gtktable--attach" title="gtk.Table.attach">attach</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>child</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>left_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>right_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>top_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>bottom_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>xoptions</tt></b></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>yoptions</tt></b></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>xpadding</tt></b></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>ypadding</tt></b></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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"><b class="parameter"><tt>row</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>spacing</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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"><b class="parameter"><tt>row</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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"><b class="parameter"><tt>column</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>spacing</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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"><b class="parameter"><tt>column</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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"><b class="parameter"><tt>spacing</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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 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"><b class="parameter"><tt>spacing</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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 href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous">set_homogeneous</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>homogeneous</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a 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="id3522173"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
  +-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
    +-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
      +-- <a href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
        +-- <a href="class-gtktable.html" title="gtk.Table">gtk.Table</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3522216"></a><h2>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">"column-spacing"</td><td valign="top">Read-Write</td><td valign="top">The amount of space between two adjacent
columns</td></tr><tr valign="top"><td valign="top">"homogeneous"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the table cells are all the
same width or height</td></tr><tr valign="top"><td valign="top">"n-columns"</td><td valign="top">Read-Write</td><td valign="top">The number of columns in the table</td></tr><tr valign="top"><td valign="top">"n-rows"</td><td valign="top">Read-Write</td><td valign="top">The number of rows in the table</td></tr><tr valign="top"><td valign="top">"row-spacing"</td><td valign="top">Read-Write</td><td valign="top">The amount of space between two adjacent rows</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3522361"></a><h2>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">"bottom-attach"</td><td valign="top">Read-Write</td><td valign="top">The lowest row of the child</td></tr><tr valign="top"><td valign="top">"left-attach"</td><td valign="top">Read-Write</td><td valign="top">The leftmost column of the child</td></tr><tr valign="top"><td valign="top">"right-attach"</td><td valign="top">Read-Write</td><td valign="top">The rightmost column of the child</td></tr><tr valign="top"><td valign="top">"top-attach"</td><td valign="top">Read-Write</td><td valign="top">The uppermost row of the child</td></tr><tr valign="top"><td valign="top">"x-options"</td><td valign="top">Read-Write</td><td valign="top">the horizontal behavior of the child - a combination
of: <tt class="literal">gtk.EXPAND</tt>, <tt class="literal">gtk.SHRINK</tt> and
<tt class="literal">gtk.FILL</tt></td></tr><tr valign="top"><td valign="top">"x-padding"</td><td valign="top">Read-Write</td><td valign="top">Extra space added between the child widget and its left
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:
<tt class="literal">gtk.EXPAND</tt>, <tt class="literal">gtk.SHRINK</tt> and
<tt class="literal">gtk.FILL</tt></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
and bottom neighbors, in pixels</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3522577"></a><h2>Description</h2><p>The <a href="class-gtktable.html" title="gtk.Table"><tt class="classname">gtk.Table</tt></a> manages a
group of widgets that are arranged in rows and columns, making it easy to
align many widgets next to each other, horizontally and vertically. Tables
are created with a call to <a href="class-gtktable.html#constructor-gtktable" title="Constructor">gtk.Table</a>(). The size of a table can
be changed using the <a href="class-gtktable.html#method-gtktable--resize" title="gtk.Table.resize"><tt class="methodname">resize</tt>()</a>
method.</p><p>Widgets can be added to a table using the <a href="class-gtktable.html#method-gtktable--attach" title="gtk.Table.attach"><tt class="methodname">attach</tt>()</a>
method. To alter the space of the row next to a specific row, use the <a href="class-gtktable.html#method-gtktable--set-row-spacing" title="gtk.Table.set_row_spacing"><tt class="methodname">set_row_spacing</tt>()</a> 
method, and for a column, the <a href="class-gtktable.html#method-gtktable--set-col-spacing" title="gtk.Table.set_col_spacing"><tt class="methodname">set_col_spacing</tt>()</a> 
method. The gaps between all rows or columns can be changed by calling the
<a href="class-gtktable.html#method-gtktable--set-row-spacings" title="gtk.Table.set_row_spacings"><tt class="methodname">set_row_spacings</tt>()</a> 
or <a href="class-gtktable.html#method-gtktable--set-col-spacings" title="gtk.Table.set_col_spacings"><tt class="methodname">set_col_spacings</tt>()</a> 
methods respectively. The <a href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous"><tt class="methodname">set_homogeneous</tt>()</a> 
method changes the setting that determines whether all cells in the table
will resize themselves to the size of the largest widget in the
table.</p></div><div class="refsect1" lang="en"><a name="constructor-gtktable"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.Table</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>rows</tt></b></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>columns</tt></b></span><span class="initializer">=1</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>homogeneous</tt></b></span><span class="initializer">=FALSE</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>rows</tt></b>:</span></td><td>the number of rows</td></tr><tr><td><span class="term"><b class="parameter"><tt>columns</tt></b>:</span></td><td>the number of columns</td></tr><tr><td><span class="term"><b class="parameter"><tt>homogeneous</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> all table cells will
be the same size as the largest cell</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new <a href="class-gtktable.html" title="gtk.Table"><tt class="classname">gtk.Table</tt></a>
widget</td></tr></tbody></table><p>Creates a new <a href="class-gtktable.html" title="gtk.Table"><tt class="classname">gtk.Table</tt></a> widget with
the number of rows and columns specified by the value of
<i class="parameter"><tt>rows</tt></i> and <i class="parameter"><tt>columns</tt></i> respectively.
The value of <i class="parameter"><tt>rows</tt></i> and <i class="parameter"><tt>columns</tt></i>
must be in the range 0 .. 65535. If <i class="parameter"><tt>homogeneous</tt></i> is
<tt class="literal">TRUE</tt> the table cells will all be the same size as the
largest cell. If <i class="parameter"><tt>rows</tt></i> or
<i class="parameter"><tt>columns</tt></i> are not specified they default to 1.</p></div><div class="refsect1" lang="en"><a name="id3522854"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktable--resize"></a><h3>gtk.Table.resize</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">resize</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>rows</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>columns</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>rows</tt></b>:</span></td><td>The new number of rows.</td></tr><tr><td><span class="term"><b class="parameter"><tt>columns</tt></b>:</span></td><td>The new number of columns.</td></tr></tbody></table><p>The <tt class="methodname">resize</tt>() method changes the size of
the table as specified by the parameters, <i class="parameter"><tt>rows</tt></i> and
<i class="parameter"><tt>columns</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--attach"></a><h3>gtk.Table.attach</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">attach</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>child</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>left_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>right_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>top_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>bottom_attach</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>xoptions</tt></b></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>yoptions</tt></b></span><span class="initializer">=gtk.EXPAND|gtk.FILL</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>xpadding</tt></b></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>ypadding</tt></b></span><span class="initializer">=0</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>child</tt></b>:</span></td><td>the widget to add.</td></tr><tr><td><span class="term"><b class="parameter"><tt>left_attach</tt></b>:</span></td><td>the column number to attach the left side of a
child widget to.</td></tr><tr><td><span class="term"><b class="parameter"><tt>right_attach</tt></b>:</span></td><td>the column number to attach the right side of a
child widget to.</td></tr><tr><td><span class="term"><b class="parameter"><tt>top_attach</tt></b>:</span></td><td>the row number to attach the top side of a
child widget to.</td></tr><tr><td><span class="term"><b class="parameter"><tt>bottom_attach</tt></b>:</span></td><td>the row number to attach the bottom side of a
child widget to.</td></tr><tr><td><span class="term"><b class="parameter"><tt>xoptions</tt></b>:</span></td><td>used to specify the properties of the child
widget when the table is resized horizontally.</td></tr><tr><td><span class="term"><b class="parameter"><tt>yoptions</tt></b>:</span></td><td>used to specify the properties of the child
widget when the table is resized vertically.</td></tr><tr><td><span class="term"><b class="parameter"><tt>xpadding</tt></b>:</span></td><td>the amount of padding to add on the left and
right of the widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>ypadding</tt></b>:</span></td><td>the amount of padding to add above and below
the widget</td></tr></tbody></table><p>The <tt class="methodname">attach</tt>() method adds the widget
specified by <i class="parameter"><tt>child</tt></i> to the table. The number of
'cells' that a widget will occupy is specified by:</p><div class="itemizedlist"><ul type="disc"><li><i class="parameter"><tt>left_attach</tt></i> - the column to the
left of the widget</li><li><i class="parameter"><tt>right_attach</tt></i> - the column to the
right of the widget</li><li><i class="parameter"><tt>top_attach</tt></i> - the row above the
widget and</li><li><i class="parameter"><tt>bottom_attach</tt></i> - the row below the
widget</li></ul></div><p>The <i class="parameter"><tt>xoptions</tt></i> and
<i class="parameter"><tt>yoptions</tt></i> determine the expansion properties of the
widget in the horizontal and vertical directions respectively (the default
value is <tt class="literal">gtk.FILL</tt>|<tt class="literal">gtk.EXPAND</tt>). The
value of the options is a combination of:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gtk.EXPAND</tt></span></td><td>the table cell should expand to take up any extra space
that has been allocated to the table.</td></tr><tr><td><span class="term"><tt class="literal">gtk.SHRINK</tt></span></td><td>the widget should shrink when the table cell
shrinks.</td></tr><tr><td><span class="term"><tt class="literal">gtk.FILL</tt></span></td><td>the widget should fill the space allocated to
it in the table cell.</td></tr></tbody></table><p>The <i class="parameter"><tt>xpadding</tt></i> and <i class="parameter"><tt>ypadding</tt></i> parameters determine the extra padding added around the widget. By default these are 0.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--set-row-spacing"></a><h3>gtk.Table.set_row_spacing</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_row_spacing</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>row</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>spacing</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>row</tt></b>:</span></td><td>the row number whose spacing will be
changed.</td></tr><tr><td><span class="term"><b class="parameter"><tt>spacing</tt></b>:</span></td><td>the number of pixels of added
spacing</td></tr></tbody></table><p>The <tt class="methodname">set_row_spacing</tt>() method sets the
spacing in pixels (specified by <i class="parameter"><tt>spacing</tt></i>) between the
specified <i class="parameter"><tt>row</tt></i> and the following row.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--get-row-spacing"></a><h3>gtk.Table.get_row_spacing</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_row_spacing</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>row</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>row</tt></b>:</span></td><td>a row in the table, 0 indicates the first
row</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the row spacing</td></tr></tbody></table><p>The <tt class="methodname">get_row_spacing</tt>() method returns
the amount of space between the specified <i class="parameter"><tt>row</tt></i>, and
the following row. See the <a href="class-gtktable.html#method-gtktable--set-row-spacing" title="gtk.Table.set_row_spacing"><tt class="methodname">set_row_spacing</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--set-col-spacing"></a><h3>gtk.Table.set_col_spacing</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_col_spacing</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>column</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>spacing</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>column</tt></b>:</span></td><td>the column number whose spacing will be
changed.</td></tr><tr><td><span class="term"><b class="parameter"><tt>spacing</tt></b>:</span></td><td>the number of pixels of added
spacing</td></tr></tbody></table><p>The <tt class="methodname">set_col_spacing</tt>() method sets the
spacing in pixels (specified by <i class="parameter"><tt>spacing</tt></i>) between the
specified <i class="parameter"><tt>column</tt></i> and the following column.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--get-col-spacing"></a><h3>gtk.Table.get_col_spacing</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_col_spacing</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>column</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>column</tt></b>:</span></td><td>a column in the table, 0 indicates the first
column</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the column spacing</td></tr></tbody></table><p>The <tt class="methodname">get_col_spacing</tt>() returns the
amount of space between the specified <i class="parameter"><tt>column</tt></i>, and the
following column. See the <a href="class-gtktable.html#method-gtktable--set-col-spacing" title="gtk.Table.set_col_spacing"><tt class="methodname">set_col_spacing</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--set-row-spacings"></a><h3>gtk.Table.set_row_spacings</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_row_spacings</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>spacing</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>spacing</tt></b>:</span></td><td>the number of pixels of space to place between
every row in the table.</td></tr></tbody></table><p>The <tt class="methodname">set_row_spacings</tt>() method sets the
"row-spacing" property, that determines the space between every row in
table, to the value of <i class="parameter"><tt>spacing</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--get-default-row-spacing"></a><h3>gtk.Table.get_default_row_spacing</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_default_row_spacing</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the default row spacing</td></tr></tbody></table><p>The <tt class="methodname">get_default_row_spacing</tt>() method
returns the value of the "row-spacing" property that specifies the default
row spacing for the table i.e. the spacing that will be used for newly added
rows. (See the <a href="class-gtktable.html#method-gtktable--set-row-spacings" title="gtk.Table.set_row_spacings"><tt class="methodname">set_row_spacings</tt>()</a>)</p></div><div class="refsect2" lang="en"><a name="method-gtktable--set-col-spacings"></a><h3>gtk.Table.set_col_spacings</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_col_spacings</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>spacing</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>spacing</tt></b>:</span></td><td>the number of pixels of space to place between
every column in the table.</td></tr></tbody></table><p>The <tt class="methodname">set_col_spacings</tt>() method sets the
"column-spacing" property, that determines the space between every column in
table, to the value of <i class="parameter"><tt>spacing</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--get-default-col-spacing"></a><h3>gtk.Table.get_default_col_spacing</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_default_col_spacing</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the default column spacing</td></tr></tbody></table><p>The <tt class="methodname">get_default_col_spacing</tt>() method
returns the value of the "column-spacing" property to the default column
spacing for the table i.e. the spacing that will be used for newly added
columns. (See the <a href="class-gtktable.html#method-gtktable--set-col-spacings" title="gtk.Table.set_col_spacings"><tt class="methodname">set_col_spacings</tt>()</a>)</p></div><div class="refsect2" lang="en"><a name="method-gtktable--set-homogeneous"></a><h3>gtk.Table.set_homogeneous</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_homogeneous</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>homogeneous</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>homogeneous</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> all cells will be
the same size as the largest cell</td></tr></tbody></table><p>The <tt class="methodname">set_homogeneous</tt>() method sets the
"homogeneous" property to the value of <i class="parameter"><tt>homogeneous</tt></i>. If
homogeneous is <tt class="literal">TRUE</tt> all cells will be the same size as the
largest cell.</p></div><div class="refsect2" lang="en"><a name="method-gtktable--get-homogeneous"></a><h3>gtk.Table.get_homogeneous</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_homogeneous</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the cells are all
set to the same size</td></tr></tbody></table><p>The <tt class="methodname">get_homogeneous</tt>() method returns the
value of the "homogeneous" property. If the value of "homogeneous" is
<tt class="literal">TRUE</tt> all cells are set to the same width and height. (See
the <a href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous"><tt class="methodname">set_homogeneous</tt>()</a> 
method)</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkstyle.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtktearoffmenuitem.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Style</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.TearoffMenuItem</td></tr></table></div></body></html>