summaryrefslogtreecommitdiff
path: root/docs/reference/pygtk-gtktable.xml
blob: 83b68a85cd69723632913749d373064de223e8bf (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<refentry id="class-gtktable">
  <refnamediv>
    <refname>gtk.Table</refname>
    <refpurpose>layout widgets in a two-dimensional array</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.Table</classname></ooclass>
      <ooclass><classname><link
linkend="class-gtkcontainer">gtk.Container</link></classname></ooclass>
      <constructorsynopsis language="python">
	<methodname><link linkend="constructor-gtktable">gtk.Table</link></methodname>
	<methodparam><parameter
		       role="keyword">rows</parameter><initializer>1</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">columns</parameter><initializer>1</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">homogeneous</parameter><initializer>False</initializer></methodparam>
      </constructorsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--resize">resize</link></methodname>
	<methodparam><parameter
		       role="keyword">rows</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">columns</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--attach">attach</link></methodname>
	<methodparam><parameter
		       role="keyword">child</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">left_attach</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">right_attach</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">top_attach</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">bottom_attach</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">xoptions</parameter><initializer>gtk.EXPAND|gtk.FILL</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">yoptions</parameter><initializer>gtk.EXPAND|gtk.FILL</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">xpadding</parameter><initializer>0</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">ypadding</parameter><initializer>0</initializer></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--set-row-spacing">set_row_spacing</link></methodname>
	<methodparam><parameter role="keyword">row</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">spacing</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--get-row-spacing">get_row_spacing</link></methodname>
	<methodparam><parameter role="keyword">row</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--set-col-spacing">set_col_spacing</link></methodname>
	<methodparam><parameter
		       role="keyword">column</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">spacing</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--get-col-spacing">get_col_spacing</link></methodname>
	<methodparam><parameter
		       role="keyword">column</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--set-row-spacings">set_row_spacings</link></methodname>
	<methodparam><parameter
		       role="keyword">spacing</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--get-default-row-spacing">get_default_row_spacing</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--set-col-spacings">set_col_spacings</link></methodname>
	<methodparam><parameter
		       role="keyword">spacing</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--get-default-col-spacing">get_default_col_spacing</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--set-homogeneous">set_homogeneous</link></methodname>
	<methodparam><parameter
		       role="keyword">homogeneous</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktable--get-homogeneous">get_homogeneous</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
    </classsynopsis>

  </refsect1>

  <refsect1>
    <title>Ancestry</title>

<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
  +-- <link linkend="class-gtkobject">gtk.Object</link>
    +-- <link linkend="class-gtkwidget">gtk.Widget</link>
      +-- <link linkend="class-gtkcontainer">gtk.Container</link>
        +-- <link linkend="class-gtktable">gtk.Table</link>
</synopsis>

  </refsect1>
  
  <refsect1>
		<title>Implemented Interfaces</title>
		<para>
			<link linkend="class-gtktable"><classname>gtk.Table</classname></link>
			implements 
			<link linkend="class-gtkbuildable"><classname>gtk.Buildable</classname></link>
		</para>
	</refsect1>

  <refsect1 id="properties-gtktable">
    <title>gtk.Table Properties</title>

    <para><link linkend="properties-gtkobject">gtk.Object Properties</link></para>
    <para><link linkend="properties-gtkwidget">gtk.Widget Properties</link></para>
    <para><link linkend="properties-gtkcontainer">gtk.Container Properties</link></para>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"column-spacing"</entry>
	      <entry>Read-Write</entry>
	      <entry>The amount of space between two adjacent
columns</entry>
	    </row>

	    <row valign="top">
	      <entry>"homogeneous"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the table cells are all the
same width or height</entry>
	    </row>

	    <row valign="top">
	      <entry>"n-columns"</entry>
	      <entry>Read-Write</entry>
	      <entry>The number of columns in the table</entry>
	    </row>

	    <row valign="top">
	      <entry>"n-rows"</entry>
	      <entry>Read-Write</entry>
	      <entry>The number of rows in the table</entry>
	    </row>

	    <row valign="top">
	      <entry>"row-spacing"</entry>
	      <entry>Read-Write</entry>
	      <entry>The amount of space between two adjacent rows</entry>
	    </row>

	  </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

  <refsect1 id="style-properties-gtktable">
    <title>gtk.Table Style Properties</title>

    <para><link linkend="style-properties-gtkwidget">gtk.Widget Style Properties</link></para>

  </refsect1>

  <refsect1 id="child-properties-gtktable">
    <title>gtk.Table Child Properties</title>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"bottom-attach"</entry>
	      <entry>Read-Write</entry>
	      <entry>The lowest row of the child</entry>
	    </row>

	    <row valign="top">
	      <entry>"left-attach"</entry>
	      <entry>Read-Write</entry>
	      <entry>The leftmost column of the child</entry>
	    </row>

	    <row valign="top">
	      <entry>"right-attach"</entry>
	      <entry>Read-Write</entry>
	      <entry>The rightmost column of the child</entry>
	    </row>

	    <row valign="top">
	      <entry>"top-attach"</entry>
	      <entry>Read-Write</entry>
	      <entry>The uppermost row of the child</entry>
	    </row>

	    <row valign="top">
	      <entry>"x-options"</entry>
	      <entry>Read-Write</entry>
	      <entry>the horizontal behavior of the child - a combination
of: <literal>gtk.EXPAND</literal>, <literal>gtk.SHRINK</literal> and
<literal>gtk.FILL</literal></entry>
	    </row>

	    <row valign="top">
	      <entry>"x-padding"</entry>
	      <entry>Read-Write</entry>
	      <entry>Extra space added between the child widget and its left
and right neighbors, in pixels</entry>
	    </row>

	    <row valign="top">
	      <entry>"y-options"</entry>
	      <entry>Read-Write</entry>
	      <entry>the vertical behavior of the child - a combination of:
<literal>gtk.EXPAND</literal>, <literal>gtk.SHRINK</literal> and
<literal>gtk.FILL</literal></entry>
	    </row>

	    <row valign="top">
	      <entry>"y-padding"</entry>
	      <entry>Read-Write</entry>
	      <entry>Extra space added between the child widget and its top
and bottom neighbors, in pixels</entry>
	    </row>

	  </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  <refsect1 id="signal-prototypes-gtktable">
    <title>gtk.Table Signal Prototypes</title>

    <para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkobject">gtk.Object Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkwidget">gtk.Widget Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkcontainer">gtk.Container Signal Prototypes</link></para>
  </refsect1>

  </refsect1>

  <refsect1>
    <title>Description</title>

    <para>The <link
linkend="class-gtktable"><classname>gtk.Table</classname></link> 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 <link
linkend="constructor-gtktable">gtk.Table</link>(). The size of a table can
be changed using the <link
linkend="method-gtktable--resize"><methodname>resize</methodname>()</link>
method.</para>

    <para>Widgets can be added to a table using the <link
linkend="method-gtktable--attach"><methodname>attach</methodname>()</link>
method. To alter the space of the row next to a specific row, use the <link
linkend="method-gtktable--set-row-spacing"><methodname>set_row_spacing</methodname>()</link> 
method, and for a column, the <link
linkend="method-gtktable--set-col-spacing"><methodname>set_col_spacing</methodname>()</link> 
method. The gaps between all rows or columns can be changed by calling the
<link
linkend="method-gtktable--set-row-spacings"><methodname>set_row_spacings</methodname>()</link> 
or <link
linkend="method-gtktable--set-col-spacings"><methodname>set_col_spacings</methodname>()</link> 
methods respectively. The <link
linkend="method-gtktable--set-homogeneous"><methodname>set_homogeneous</methodname>()</link> 
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.</para>

 </refsect1>

  <refsect1 id="constructor-gtktable">
    <title>Constructor</title>

    <programlisting><constructorsynopsis language="python">
	<methodname>gtk.Table</methodname>
	<methodparam><parameter
		       role="keyword">rows</parameter><initializer>1</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">columns</parameter><initializer>1</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">homogeneous</parameter><initializer>False</initializer></methodparam>
      </constructorsynopsis></programlisting>
    <variablelist>
      <varlistentry>
	<term><parameter role="keyword">rows</parameter>&nbsp;:</term>
	<listitem><simpara>the number of rows</simpara></listitem>
      </varlistentry>
      <varlistentry>
	<term><parameter role="keyword">columns</parameter>&nbsp;:</term>
	<listitem><simpara>the number of columns</simpara></listitem>
      </varlistentry>
      <varlistentry>
	<term><parameter
role="keyword">homogeneous</parameter>&nbsp;:</term>
	<listitem><simpara>if <literal>True</literal> all table cells will
be the same size as the largest cell</simpara></listitem>
      </varlistentry>
      <varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	<listitem><simpara>a new <link
linkend="class-gtktable"><classname>gtk.Table</classname></link>
widget</simpara></listitem>
      </varlistentry>
    </variablelist>

    <para>Creates a new <link
linkend="class-gtktable"><classname>gtk.Table</classname></link> widget with
the number of rows and columns specified by the value of
<parameter>rows</parameter> and <parameter>columns</parameter> respectively.
The value of <parameter>rows</parameter> and <parameter>columns</parameter>
must be in the range 0 .. 65535. If <parameter>homogeneous</parameter> is
<literal>True</literal> the table cells will all be the same size as the
largest cell. If <parameter>rows</parameter> or
<parameter>columns</parameter> are not specified they default to 1.</para>

  </refsect1>

  <refsect1>
    <title>Methods</title>

    <refsect2 id="method-gtktable--resize">
      <title>gtk.Table.resize</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>resize</methodname>
	  <methodparam><parameter
			 role="keyword">rows</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">columns</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">rows</parameter>&nbsp;:</term>
	  <listitem><simpara>The new number of rows.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">columns</parameter>&nbsp;:</term>
	  <listitem><simpara>The new number of columns.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>resize</methodname>() method changes the size of
the table as specified by the parameters, <parameter>rows</parameter> and
<parameter>columns</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtktable--attach">
      <title>gtk.Table.attach</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>attach</methodname>
	  <methodparam><parameter
			 role="keyword">child</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">left_attach</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">right_attach</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">top_attach</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">bottom_attach</parameter></methodparam>
	  <methodparam><parameter role="keyword">xoptions</parameter>
	    <initializer><literal>gtk.EXPAND</literal>|<literal>gtk.FILL</literal></initializer></methodparam>
    <methodparam><parameter role="keyword">yoptions</parameter>
	  <initializer><literal>gtk.EXPAND</literal>|<literal>gtk.FILL</literal></initializer></methodparam>
    <methodparam><parameter role="keyword">xpadding</parameter>
	  <initializer>0</initializer></methodparam>
    <methodparam><parameter role="keyword">ypadding</parameter>
	  <initializer>0</initializer></methodparam>
</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">child</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget to add.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">left_attach</parameter>&nbsp;:</term>
	  <listitem><simpara>the column number to attach the left side of a
child widget to.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">right_attach</parameter>&nbsp;:</term>
	  <listitem><simpara>the column number to attach the right side of a
child widget to.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">top_attach</parameter>&nbsp;:</term>
	  <listitem><simpara>the row number to attach the top side of a
child widget to.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">bottom_attach</parameter>&nbsp;:</term>
	  <listitem><simpara>the row number to attach the bottom side of a
child widget to.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">xoptions</parameter>&nbsp;:</term>
	  <listitem><simpara>used to specify the properties of the child
widget when the table is resized horizontally.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">yoptions</parameter>&nbsp;:</term>
	  <listitem><simpara>used to specify the properties of the child
widget when the table is resized vertically.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">xpadding</parameter>&nbsp;:</term>
	  <listitem><simpara>the amount of padding to add on the left and
right of the widget</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">ypadding</parameter>&nbsp;:</term>
	  <listitem><simpara>the amount of padding to add above and below
the widget</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>attach</methodname>() method adds the widget
specified by <parameter>child</parameter> to the table. The number of
'cells' that a widget will occupy is specified by:</para>

      <itemizedlist>
	<listitem>
	  <simpara><parameter>left_attach</parameter> - the column to the
left of the widget</simpara>
	</listitem>
	<listitem>
	  <simpara><parameter>right_attach</parameter> - the column to the
right of the widget</simpara>
	</listitem>
	<listitem>
	  <simpara><parameter>top_attach</parameter> - the row above the
widget and</simpara>
	</listitem>
	<listitem>
	  <simpara><parameter>bottom_attach</parameter> - the row below the
widget</simpara>
	</listitem>
      </itemizedlist>

      <para>The <parameter>xoptions</parameter> and
<parameter>yoptions</parameter> determine the expansion properties of the
widget in the horizontal and vertical directions respectively (the default
value is <literal>gtk.FILL</literal>|<literal>gtk.EXPAND</literal>). The
value of the options is a combination of:</para>

      <variablelist>
	<varlistentry>
	  <term><literal>gtk.EXPAND</literal></term>
	  <listitem>
	    <simpara>the table cell should expand to take up any extra space
that has been allocated to the table.</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.SHRINK</literal></term>
	  <listitem>
	    <simpara>the widget should shrink when the table cell
shrinks.</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.FILL</literal></term>
	  <listitem>
	    <simpara>the widget should fill the space allocated to
it in the table cell.</simpara>
	  </listitem>
	</varlistentry>
      </variablelist>

      <para>The <parameter>xpadding</parameter> and <parameter>ypadding</parameter> parameters determine the extra padding added around the widget. By default these are 0.</para>

    </refsect2>

    <refsect2 id="method-gtktable--set-row-spacing">
      <title>gtk.Table.set_row_spacing</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_row_spacing</methodname>
	  <methodparam><parameter
			 role="keyword">row</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">spacing</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">row</parameter>&nbsp;:</term>
	  <listitem><simpara>the row number whose spacing will be
changed.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">spacing</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of pixels of added
spacing</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_row_spacing</methodname>() method sets the
spacing in pixels (specified by <parameter>spacing</parameter>) between the
specified <parameter>row</parameter> and the following row.</para>

    </refsect2>

    <refsect2 id="method-gtktable--get-row-spacing">
      <title>gtk.Table.get_row_spacing</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_row_spacing</methodname>
	  <methodparam><parameter
			 role="keyword">row</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">row</parameter>&nbsp;:</term>
	  <listitem><simpara>a row in the table, 0 indicates the first
row</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the row spacing</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_row_spacing</methodname>() method returns
the amount of space between the specified <parameter>row</parameter>, and
the following row. See the <link
linkend="method-gtktable--set-row-spacing"><methodname>set_row_spacing</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtktable--set-col-spacing">
      <title>gtk.Table.set_col_spacing</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_col_spacing</methodname>
	  <methodparam><parameter
			 role="keyword">column</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">spacing</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">column</parameter>&nbsp;:</term>
	  <listitem><simpara>the column number whose spacing will be
changed.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">spacing</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of pixels of added
spacing</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_col_spacing</methodname>() method sets the
spacing in pixels (specified by <parameter>spacing</parameter>) between the
specified <parameter>column</parameter> and the following column.</para>

    </refsect2>

    <refsect2 id="method-gtktable--get-col-spacing">
      <title>gtk.Table.get_col_spacing</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_col_spacing</methodname>
	  <methodparam><parameter
			 role="keyword">column</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">column</parameter>&nbsp;:</term>
	  <listitem><simpara>a column in the table, 0 indicates the first
column</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the column spacing</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_col_spacing</methodname>() returns the
amount of space between the specified <parameter>column</parameter>, and the
following column. See the <link
linkend="method-gtktable--set-col-spacing"><methodname>set_col_spacing</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtktable--set-row-spacings">
      <title>gtk.Table.set_row_spacings</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_row_spacings</methodname>
	  <methodparam><parameter
			 role="keyword">spacing</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">spacing</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of pixels of space to place between
every row in the table.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_row_spacings</methodname>() method sets the
"row-spacing" property, that determines the space between every row in
table, to the value of <parameter>spacing</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtktable--get-default-row-spacing">
      <title>gtk.Table.get_default_row_spacing</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_default_row_spacing</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default row spacing</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_default_row_spacing</methodname>() 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 <link
linkend="method-gtktable--set-row-spacings"><methodname>set_row_spacings</methodname>()</link>)</para>

    </refsect2>

    <refsect2 id="method-gtktable--set-col-spacings">
      <title>gtk.Table.set_col_spacings</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_col_spacings</methodname>
	  <methodparam><parameter
			 role="keyword">spacing</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">spacing</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of pixels of space to place between
every column in the table.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_col_spacings</methodname>() method sets the
"column-spacing" property, that determines the space between every column in
table, to the value of <parameter>spacing</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtktable--get-default-col-spacing">
      <title>gtk.Table.get_default_col_spacing</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_default_col_spacing</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default column spacing</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_default_col_spacing</methodname>() 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 <link
linkend="method-gtktable--set-col-spacings"><methodname>set_col_spacings</methodname>()</link>)</para>

    </refsect2>

    <refsect2 id="method-gtktable--set-homogeneous">
      <title>gtk.Table.set_homogeneous</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_homogeneous</methodname>
	  <methodparam><parameter
			 role="keyword">homogeneous</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">homogeneous</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> all cells will be
the same size as the largest cell</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_homogeneous</methodname>() method sets the
"homogeneous" property to the value of <parameter>homogeneous</parameter>. If
homogeneous is <literal>True</literal> all cells will be the same size as the
largest cell.</para>

    </refsect2>

    <refsect2 id="method-gtktable--get-homogeneous">
      <title>gtk.Table.get_homogeneous</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_homogeneous</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the cells are all
set to the same size</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_homogeneous</methodname>() method returns the
value of the "homogeneous" property. If the value of "homogeneous" is
<literal>True</literal> all cells are set to the same width and height. (See
the <link
linkend="method-gtktable--set-homogeneous"><methodname>set_homogeneous</methodname>()</link> 
method)</para>

    </refsect2>

  </refsect1>

</refentry>