This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gtktable.html is in python-gtk2-doc 2.24.0-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
<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.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-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" title="gtk.Table"><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" title="Synopsis"><a name="id3930529"></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>):
<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" title="Ancestry"><a name="id3931091"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
        +-- <a class="link" href="class-gtktable.html" title="gtk.Table">gtk.Table</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3931135"></a><h2>Implemented Interfaces</h2><p>
			<a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a>
			implements 
			<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
		</p></div><div class="refsect1" title="gtk.Table Properties"><a name="properties-gtktable"></a><h2>gtk.Table 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">"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 <code class="literal">True</code>, 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" title="gtk.Table Style Properties"><a name="style-properties-gtktable"></a><h2>gtk.Table 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><div class="refsect1" title="gtk.Table Child Properties"><a name="child-properties-gtktable"></a><h2>gtk.Table 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">"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: <code class="literal">gtk.EXPAND</code>, <code class="literal">gtk.SHRINK</code> and
<code class="literal">gtk.FILL</code></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:
<code class="literal">gtk.EXPAND</code>, <code class="literal">gtk.SHRINK</code> and
<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
and bottom neighbors, in pixels</td></tr></tbody></table></div></td></tr></table></div><div class="refsect1" title="gtk.Table Signal Prototypes"><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" title="Description"><a name="id3931632"></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
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 class="link" href="class-gtktable.html#constructor-gtktable" title="Constructor">gtk.Table</a>(). The size of a table can
be changed using the <a class="link" href="class-gtktable.html#method-gtktable--resize" title="gtk.Table.resize"><code class="methodname">resize</code>()</a>
method.</p><p>Widgets can be added to a table using the <a class="link" href="class-gtktable.html#method-gtktable--attach" title="gtk.Table.attach"><code class="methodname">attach</code>()</a>
method. To alter the space of the row next to a specific row, use the <a class="link" href="class-gtktable.html#method-gtktable--set-row-spacing" title="gtk.Table.set_row_spacing"><code class="methodname">set_row_spacing</code>()</a> 
method, and for a column, the <a class="link" href="class-gtktable.html#method-gtktable--set-col-spacing" title="gtk.Table.set_col_spacing"><code class="methodname">set_col_spacing</code>()</a> 
method. The gaps between all rows or columns can be changed by calling the
<a class="link" href="class-gtktable.html#method-gtktable--set-row-spacings" title="gtk.Table.set_row_spacings"><code class="methodname">set_row_spacings</code>()</a> 
or <a class="link" href="class-gtktable.html#method-gtktable--set-col-spacings" title="gtk.Table.set_col_spacings"><code class="methodname">set_col_spacings</code>()</a> 
methods respectively. The <a class="link" href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous"><code class="methodname">set_homogeneous</code>()</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" title="Constructor"><a name="constructor-gtktable"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.Table</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></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 number of rows</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>columns</code></strong> :</span></p></td><td>the number of columns</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>homogeneous</code></strong> :</span></p></td><td>if <code class="literal">True</code> all table cells will
be the same size as the largest cell</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a>
widget</td></tr></tbody></table><p>Creates a new <a class="link" href="class-gtktable.html" title="gtk.Table"><code class="classname">gtk.Table</code></a> widget with
the number of rows and columns specified by the value of
<em class="parameter"><code>rows</code></em> and <em class="parameter"><code>columns</code></em> respectively.
The value of <em class="parameter"><code>rows</code></em> and <em class="parameter"><code>columns</code></em>
must be in the range 0 .. 65535. If <em class="parameter"><code>homogeneous</code></em> is
<code class="literal">True</code> the table cells will all be the same size as the
largest cell. If <em class="parameter"><code>rows</code></em> or
<em class="parameter"><code>columns</code></em> are not specified they default to 1.</p></div><div class="refsect1" title="Methods"><a name="id3931958"></a><h2>Methods</h2><div class="refsect2" title="gtk.Table.resize"><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
the table as specified by the parameters, <em class="parameter"><code>rows</code></em> and
<em class="parameter"><code>columns</code></em>.</p></div><div class="refsect2" title="gtk.Table.attach"><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
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
child widget to.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>top_attach</code></strong> :</span></p></td><td>the row number to attach the top side of a
child widget to.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>bottom_attach</code></strong> :</span></p></td><td>the row number to attach the bottom side of a
child widget to.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xoptions</code></strong> :</span></p></td><td>used to specify the properties of the child
widget when the table is resized horizontally.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>yoptions</code></strong> :</span></p></td><td>used to specify the properties of the child
widget when the table is resized vertically.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xpadding</code></strong> :</span></p></td><td>the amount of padding to add on the left and
right of the widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>ypadding</code></strong> :</span></p></td><td>the amount of padding to add above and below
the widget</td></tr></tbody></table><p>The <code class="methodname">attach</code>() method adds the widget
specified by <em class="parameter"><code>child</code></em> to the table. The number of
'cells' that a widget will occupy is specified by:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><em class="parameter"><code>left_attach</code></em> - the column to the
left of the widget</li><li class="listitem"><em class="parameter"><code>right_attach</code></em> - the column to the
right of the widget</li><li class="listitem"><em class="parameter"><code>top_attach</code></em> - the row above the
widget and</li><li class="listitem"><em class="parameter"><code>bottom_attach</code></em> - the row below the
widget</li></ul></div><p>The <em class="parameter"><code>xoptions</code></em> and
<em class="parameter"><code>yoptions</code></em> determine the expansion properties of the
widget in the horizontal and vertical directions respectively (the default
value is <code class="literal">gtk.FILL</code>|<code class="literal">gtk.EXPAND</code>). 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><p><span class="term"><code class="literal">gtk.EXPAND</code></span></p></td><td>the table cell should expand to take up any extra space
that has been allocated to the table.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.SHRINK</code></span></p></td><td>the widget should shrink when the table cell
shrinks.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.FILL</code></span></p></td><td>the widget should fill the space allocated to
it in the table cell.</td></tr></tbody></table><p>The <em class="parameter"><code>xpadding</code></em> and <em class="parameter"><code>ypadding</code></em> parameters determine the extra padding added around the widget. By default these are 0.</p></div><div class="refsect2" title="gtk.Table.set_row_spacing"><a name="method-gtktable--set-row-spacing"></a><h3>gtk.Table.set_row_spacing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_row_spacing</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></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>row</code></strong> :</span></p></td><td>the row number whose spacing will be
changed.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>spacing</code></strong> :</span></p></td><td>the number of pixels of added
spacing</td></tr></tbody></table><p>The <code class="methodname">set_row_spacing</code>() method sets the
spacing in pixels (specified by <em class="parameter"><code>spacing</code></em>) between the
specified <em class="parameter"><code>row</code></em> and the following row.</p></div><div class="refsect2" title="gtk.Table.get_row_spacing"><a name="method-gtktable--get-row-spacing"></a><h3>gtk.Table.get_row_spacing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_row_spacing</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>row</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>row</code></strong> :</span></p></td><td>a row in the table, 0 indicates the first
row</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the row spacing</td></tr></tbody></table><p>The <code class="methodname">get_row_spacing</code>() method returns
the amount of space between the specified <em class="parameter"><code>row</code></em>, and
the following row. See the <a class="link" href="class-gtktable.html#method-gtktable--set-row-spacing" title="gtk.Table.set_row_spacing"><code class="methodname">set_row_spacing</code>()</a> 
method.</p></div><div class="refsect2" title="gtk.Table.set_col_spacing"><a name="method-gtktable--set-col-spacing"></a><h3>gtk.Table.set_col_spacing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_col_spacing</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></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>column</code></strong> :</span></p></td><td>the column number whose spacing will be
changed.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>spacing</code></strong> :</span></p></td><td>the number of pixels of added
spacing</td></tr></tbody></table><p>The <code class="methodname">set_col_spacing</code>() method sets the
spacing in pixels (specified by <em class="parameter"><code>spacing</code></em>) between the
specified <em class="parameter"><code>column</code></em> and the following column.</p></div><div class="refsect2" title="gtk.Table.get_col_spacing"><a name="method-gtktable--get-col-spacing"></a><h3>gtk.Table.get_col_spacing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_col_spacing</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</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>column</code></strong> :</span></p></td><td>a column in the table, 0 indicates the first
column</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the column spacing</td></tr></tbody></table><p>The <code class="methodname">get_col_spacing</code>() returns the
amount of space between the specified <em class="parameter"><code>column</code></em>, and the
following column. See the <a class="link" href="class-gtktable.html#method-gtktable--set-col-spacing" title="gtk.Table.set_col_spacing"><code class="methodname">set_col_spacing</code>()</a> 
method.</p></div><div class="refsect2" title="gtk.Table.set_row_spacings"><a name="method-gtktable--set-row-spacings"></a><h3>gtk.Table.set_row_spacings</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_row_spacings</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</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>spacing</code></strong> :</span></p></td><td>the number of pixels of space to place between
every row in the table.</td></tr></tbody></table><p>The <code class="methodname">set_row_spacings</code>() method sets the
"row-spacing" property, that determines the space between every row in
table, to the value of <em class="parameter"><code>spacing</code></em>.</p></div><div class="refsect2" title="gtk.Table.get_default_row_spacing"><a name="method-gtktable--get-default-row-spacing"></a><h3>gtk.Table.get_default_row_spacing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_default_row_spacing</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 default row spacing</td></tr></tbody></table><p>The <code class="methodname">get_default_row_spacing</code>() 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 class="link" href="class-gtktable.html#method-gtktable--set-row-spacings" title="gtk.Table.set_row_spacings"><code class="methodname">set_row_spacings</code>()</a>)</p></div><div class="refsect2" title="gtk.Table.set_col_spacings"><a name="method-gtktable--set-col-spacings"></a><h3>gtk.Table.set_col_spacings</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_col_spacings</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spacing</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>spacing</code></strong> :</span></p></td><td>the number of pixels of space to place between
every column in the table.</td></tr></tbody></table><p>The <code class="methodname">set_col_spacings</code>() method sets the
"column-spacing" property, that determines the space between every column in
table, to the value of <em class="parameter"><code>spacing</code></em>.</p></div><div class="refsect2" title="gtk.Table.get_default_col_spacing"><a name="method-gtktable--get-default-col-spacing"></a><h3>gtk.Table.get_default_col_spacing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_default_col_spacing</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 default column spacing</td></tr></tbody></table><p>The <code class="methodname">get_default_col_spacing</code>() 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 class="link" href="class-gtktable.html#method-gtktable--set-col-spacings" title="gtk.Table.set_col_spacings"><code class="methodname">set_col_spacings</code>()</a>)</p></div><div class="refsect2" title="gtk.Table.set_homogeneous"><a name="method-gtktable--set-homogeneous"></a><h3>gtk.Table.set_homogeneous</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_homogeneous</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</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>homogeneous</code></strong> :</span></p></td><td>if <code class="literal">True</code> all cells will be
the same size as the largest cell</td></tr></tbody></table><p>The <code class="methodname">set_homogeneous</code>() method sets the
"homogeneous" property to the value of <em class="parameter"><code>homogeneous</code></em>. If
homogeneous is <code class="literal">True</code> all cells will be the same size as the
largest cell.</p></div><div class="refsect2" title="gtk.Table.get_homogeneous"><a name="method-gtktable--get-homogeneous"></a><h3>gtk.Table.get_homogeneous</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_homogeneous</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 cells are all
set to the same size</td></tr></tbody></table><p>The <code class="methodname">get_homogeneous</code>() method returns the
value of the "homogeneous" property. If the value of "homogeneous" is
<code class="literal">True</code> all cells are set to the same width and height. (See
the <a class="link" href="class-gtktable.html#method-gtktable--set-homogeneous" title="gtk.Table.set_homogeneous"><code class="methodname">set_homogeneous</code>()</a> 
method)</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-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>