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
|
<?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-gtkbox">
<refnamediv>
<refname>gtk.Box</refname>
<refpurpose>an abstract base class for box containers</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<classsynopsis language="python">
<ooclass><classname>gtk.Box</classname></ooclass>
<ooclass><classname><link
linkend="class-gtkcontainer">gtk.Container</link></classname></ooclass>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--pack-start">pack_start</link></methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">expand</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">fill</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">padding</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--pack-end">pack_end</link></methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">expand</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">fill</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">padding</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--pack-start-defaults">pack_start_defaults</link></methodname>
<methodparam><parameter
role="keyword">widget</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--pack-end-defaults">pack_end_defaults</link></methodname>
<methodparam><parameter
role="keyword">widget</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--set-homogeneous">set_homogeneous</link></methodname>
<methodparam><parameter
role="keyword">homogeneous</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--get-homogeneous">get_homogeneous</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--set-spacing">set_spacing</link></methodname>
<methodparam><parameter
role="keyword">spacing</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--get-spacing">get_spacing</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--reorder-child">reorder_child</link></methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">position</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--query-child-packing">query_child_packing</link></methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtkbox--set-child-packing">set_child_packing</link></methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">expand</parameter></methodparam>
<methodparam><parameter
role="keyword">fill</parameter></methodparam>
<methodparam><parameter
role="keyword">padding</parameter></methodparam>
<methodparam><parameter
role="keyword">pack_type</parameter></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-gtkbox">gtk.Box</link>
</synopsis>
</refsect1>
<refsect1>
<title>Implemented Interfaces</title>
<para>
<link linkend="class-gtkbox"><classname>gtk.Box</classname></link>
implements
<link linkend="class-gtkbuildable"><classname>gtk.Buildable</classname></link>
</para>
</refsect1>
<refsect1 id="properties-gtkbox">
<title>gtk.Box 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="3.5in"/>
<tbody>
<row valign="top">
<entry>"spacing"</entry>
<entry>Read/Write</entry>
<entry>The amount of space between children.</entry>
</row>
<row valign="top">
<entry>"homogeneous"</entry>
<entry>Read/Write</entry>
<entry>If True the children should all be the same size.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</blockquote>
</refsect1>
<refsect1 id="style-properties-gtkbox">
<title>gtk.Box Style Properties</title>
<para><link linkend="style-properties-gtkwidget">gtk.Widget Style Properties</link></para>
</refsect1>
<refsect1 id="child-properties-gtkbox">
<title>gtk.Box 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="3.5in"/>
<tbody>
<row valign="top">
<entry>"expand"</entry>
<entry>Read/Write</entry>
<entry>If <literal>True</literal> the child should receive
extra space when the parent grows</entry>
</row>
<row valign="top">
<entry>"fill"</entry>
<entry>Read/Write</entry>
<entry>If <literal>True</literal> extra space given to the
child should be allocated to the child; if
<literal>False</literal> extra space given to the child should
be used as padding</entry>
</row>
<row valign="top">
<entry>"padding"</entry>
<entry>Read/Write</entry>
<entry>The amount of extra space to put between the child and
its neighbors, in pixels</entry>
</row>
<row valign="top">
<entry>"pack-type"</entry>
<entry>Read/Write</entry>
<entry>Indicates whether the child is packed with reference to
the start (<literal>gtk.PACK_START</literal>) or end
(<literal>gtk.PACK_END</literal>) of the parent</entry>
</row>
<row valign="top">
<entry>"position"</entry>
<entry>Read/Write</entry>
<entry>The index of the child in the parent</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</blockquote>
</refsect1>
<refsect1 id="signal-prototypes-gtkbox">
<title>gtk.Box 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>
<title>Description</title>
<para>The <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> class is an
abstract base class defining a widget that encapsulates functionality for a
particular kind of container, one that organizes a variable number of
widgets into a rectangular area. <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> currently has
two families of derived classes: <link
linkend="class-gtkhbox"><classname>gtk.HBox</classname></link> and <link
linkend="class-gtkvbox"><classname>gtk.VBox</classname></link> being one,
and <link
linkend="class-gtkhbuttonbox"><classname>gtk.HButtonBox</classname></link> and <link
linkend="class-gtkvbuttonbox"><classname>gtk.VButtonBox</classname></link> --
the other.</para>
<para>The rectangular area of a <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> is organized
into either a single row or a single column of child widgets depending upon
whether the box is of type <link
linkend="class-gtkhbox"><classname>gtk.HBox</classname></link> or <link
linkend="class-gtkvbox"><classname>gtk.VBox</classname></link>,
respectively. Thus, all children of a <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> are allocated
one dimension in common, which is the height of a row, or the width of a
column.</para>
<para><link linkend="class-gtkbox"><classname>gtk.Box</classname></link>
uses a notion of packing. Packing refers to adding widgets with reference to
a particular position in a <link
linkend="class-gtkbox"><classname>gtk.Container</classname></link>. For a
<link linkend="class-gtkbox"><classname>gtk.Box</classname></link>, there
are two reference positions: the start and the end of the box. For a <link
linkend="class-gtkvbox"><classname>gtk.VBox</classname></link>, the start is
defined as the top of the box and the end is defined as the bottom. For a
<link linkend="class-gtkhbox"><classname>gtk.HBox</classname></link> the
start is defined as the left side and the end is defined as the right
side.</para>
<para>Repeated calls to <link
linkend="method-gtkbox--pack-start"><methodname>pack_start</methodname>()</link>
pack widgets into a <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> from start to
end. The <link
linkend="method-gtkbox--pack-end"><methodname>pack_end</methodname>()</link>
method adds widgets from end to start. You may intersperse these calls and
add widgets from both ends of the same <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link>.</para>
<para>Because <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> is a <link
linkend="class-gtkcontainer"><classname>gtk.Container</classname></link>,
you may also use <link
linkend="method-gtkcontainer--add"><methodname>add</methodname>()</link> to
insert widgets into the box, and they will be packed as if with the <link
linkend="method-gtkbox--pack-start-defaults"><methodname>pack_start</methodname>()</link>
method. Use <link
linkend="method-gtkcontainer--remove"><methodname>remove</methodname>()</link>
to remove widgets from the <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link>.</para>
<para>The <link
linkend="method-gtkbox--set-homogeneous"><methodname>set_homogeneous</methodname>()</link>
method specifies whether or not all children of the <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> are forced to
get the same amount of space.</para>
<para>The <link
linkend="method-gtkbox--set-spacing"><methodname>set_spacing</methodname>()</link>
method determines how much space will be minimally placed between all
children in the <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link>.</para>
<para>The <link
linkend="method-gtkbox--reorder-child"><methodname>reorder_child</methodname>()</link>
method moves a <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> child to a
different place in the box.</para>
<para>The <link
linkend="method-gtkbox--set-child-packing"><methodname>set_child_packing</methodname>()</link>
method resets the expand, fill, and padding attributes of any <link
linkend="class-gtkbox"><classname>gtk.Box</classname></link> child. Use the
<link
linkend="method-gtkbox--query-child-packing"><methodname>query_child_packing</methodname>()</link>
to query these properties.</para>
</refsect1>
<refsect1>
<title>Methods</title>
<refsect2 id="method-gtkbox--pack-start">
<title>gtk.Box.pack_start</title>
<programlisting><methodsynopsis language="python">
<methodname>pack_start</methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">expand</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">fill</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">padding</parameter><initializer>0</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">child</parameter> :</term>
<listitem><simpara>the widget to be added to the
box</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">expand</parameter> :</term>
<listitem><simpara>True if <parameter>child</parameter> is to be
given extra space allocated to box. The extra space will be divided evenly
between all children of box that use this option.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">fill</parameter> :</term>
<listitem><simpara>True if space given to
<parameter>child</parameter> by the <parameter>expand</parameter> option is
actually allocated to <parameter>child</parameter>, rather than just padding
it. This parameter has no effect if <parameter>expand</parameter> is set to
False. A child is always allocated the full height of a <link
linkend="class-gtkhbox"><classname>gtk.HBox</classname></link> and the full
width of a <link
linkend="class-gtkvbox"><classname>gtk.VBox</classname></link>. This option
affects the other dimension.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">padding</parameter> :</term>
<listitem><simpara>extra space in pixels to put between
<parameter>child</parameter> and its neighbors, over and above the global
amount specified by <parameter>spacing</parameter> in <link
linkend="class-gtkhbox"><classname>gtk.Box</classname></link>. If
<parameter>child</parameter> is a widget at one of the reference ends of
box, then <parameter>padding</parameter> pixels are also put between
<parameter>child</parameter> and the reference edge of
box.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>pack_start</methodname>() method adds
<parameter>child</parameter> to the box, packed with reference to the start
of box. The <parameter>child</parameter> is packed after any other child
packed with reference to the start of box. </para>
</refsect2>
<refsect2 id="method-gtkbox--pack-end">
<title>gtk.Box.pack_end</title>
<programlisting><methodsynopsis language="python">
<methodname>pack_end</methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">expand</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">fill</parameter><initializer>True</initializer></methodparam>
<methodparam><parameter
role="keyword">padding</parameter><initializer>0</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">child</parameter> :</term>
<listitem><simpara>the widget to be added to the
box</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">expand</parameter> :</term>
<listitem><simpara>True if <parameter>child</parameter> is to be
given extra space allocated to box. The extra space will be divided evenly
between all children of box that use this option.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">fill</parameter> :</term>
<listitem><simpara>True if space given to
<parameter>child</parameter> by the <parameter>expand</parameter> option is
actually allocated to <parameter>child</parameter>, rather than just padding
it. This parameter has no effect if <parameter>expand</parameter> is set to
False. A child is always allocated the full height of a <link
linkend="class-gtkhbox"><classname>gtk.HBox</classname></link> and the full
width of a <link
linkend="class-gtkvbox"><classname>gtk.VBox</classname></link>. This option
affects the other dimension.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">padding</parameter> :</term>
<listitem><simpara>extra space in pixels to put between
<parameter>child</parameter> and its neighbors, over and above the global
amount specified by <parameter>spacing</parameter> in <link
linkend="class-gtkhbox"><classname>gtk.Box</classname></link>. If
<parameter>child</parameter> is a widget at one of the reference ends of
box, then <parameter>padding</parameter> pixels are also put between
<parameter>child</parameter> and the reference edge of
box.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>pack_end</methodname>() method adds
<parameter>child</parameter> to the box, packed with reference to the end of
the box. The <parameter>child</parameter> is packed after (away from end of)
any other child packed with reference to the end of the box.</para>
</refsect2>
<refsect2 id="method-gtkbox--pack-start-defaults">
<title>gtk.Box.pack_start_defaults</title>
<programlisting><methodsynopsis language="python">
<methodname>pack_start_defaults</methodname>
<methodparam><parameter
role="keyword">widget</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">widget</parameter> :</term>
<listitem><simpara>the widget to be added to the
box</simpara></listitem>
</varlistentry>
</variablelist>
<warning>
<para>This method is deprecated in PyGTK 2.4 and above.</para>
</warning>
<para>The <methodname>pack_start_defaults</methodname>() method adds
<parameter>widget</parameter> to the box, packed with reference to the start
of the box. The <parameter>widget</parameter> is packed after any other
child widget packed with reference to the start of box. The parameters for
packing the child widget: expand, fill, and padding are given their default
values, True, True, and 0, respectively.</para>
</refsect2>
<refsect2 id="method-gtkbox--pack-end-defaults">
<title>gtk.Box.pack_end_defaults</title>
<programlisting><methodsynopsis language="python">
<methodname>pack_end_defaults</methodname>
<methodparam><parameter
role="keyword">widget</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">widget</parameter> :</term>
<listitem><simpara>the widget to be added to the
box</simpara></listitem>
</varlistentry>
</variablelist>
<warning>
<para>This method is deprecated in PyGTK 2.4 and above.</para>
</warning>
<para>The <methodname>pack_end_defaults</methodname>() method adds
<parameter>widget</parameter> to the box, packed with reference to the end
of the box. The <parameter>widget</parameter> is packed after (away from the
end of) any other child widget packed with reference to the end of the box.
The parameters for packing the child widget: expand, fill, and padding are
given their default values, True, True, and 0, respectively.</para>
</refsect2>
<refsect2 id="method-gtkbox--set-homogeneous">
<title>gtk.Box.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> :</term>
<listitem><simpara>If <literal>True</literal> the box is
homogeneous i.e. all children are allocated the same space otherwise the
allocations vary for each child.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_homogeneous</methodname>() method sets the
homogeneous (all children are allocated the same space) property of the
box.</para>
</refsect2>
<refsect2 id="method-gtkbox--get-homogeneous">
<title>gtk.Box.get_homogeneous</title>
<programlisting><methodsynopsis language="python">
<methodname>get_homogeneous</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the box is
homogeneous.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_homogeneous</methodname>() method returns
whether the box is homogeneous (all children are allocated the same space).
See <link
linkend="method-gtkbox--set-homogeneous"><methodname>gtk.Box.set_homogeneous()</methodname></link>.</para>
</refsect2>
<refsect2 id="method-gtkbox--set-spacing">
<title>gtk.Box.set_spacing</title>
<programlisting><methodsynopsis language="python">
<methodname>set_spacing</methodname>
<methodparam><parameter
role="keyword">spacing</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">spacing</parameter> :</term>
<listitem><simpara>the number of pixels to put between
children.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_spacing</methodname>() method sets the
number of pixels to place between children of the box.</para>
</refsect2>
<refsect2 id="method-gtkbox--get-spacing">
<title>gtk.Box.get_spacing</title>
<programlisting><methodsynopsis language="python">
<methodname>get_spacing</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the spacing in pixels between
children</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_spacing</methodname>() method returns the
number of pixels used as padding between children as set by the <link
linkend="method-gtkbox--set-spacing"><methodname>set_spacing</methodname>()</link>.</para>
</refsect2>
<refsect2 id="method-gtkbox--reorder-child">
<title>gtk.Box.reorder_child</title>
<programlisting><methodsynopsis language="python">
<methodname>reorder_child</methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">position</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">child</parameter> :</term>
<listitem><simpara>the child widget to move</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">position</parameter> :</term>
<listitem><simpara>the new position for child in the children list
of the box starting from 0. If negative, indicates the end of the
list.</simpara></listitem>
</varlistentry>
</variablelist>
<para>Moves child to a new position in the list of the box children.
The list contains both widgets packed gtk.PACK_START as well as widgets
packed gtk.PACK_END, in the order that these widgets were added to
box.</para>
<para>A widget's position in the box children list determines where
the widget is packed into box. A child widget at some position in the list
will be packed just after all other widgets of the same packing type that
appear earlier in the list.</para>
</refsect2>
<refsect2 id="method-gtkbox--query-child-packing">
<title>gtk.Box.query_child_packing</title>
<programlisting><methodsynopsis language="python">
<methodname>query_child_packing</methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">child</parameter> :</term>
<listitem><simpara>the child widget to be queried for its packing
information</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">expand</parameter> :</term>
<listitem><simpara>the child's expand value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">fill</parameter> :</term>
<listitem><simpara>the child's fill value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">padding</parameter> :</term>
<listitem><simpara>the child's padding value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">pack_type</parameter> :</term>
<listitem><simpara>the child's pack_type
value</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>query_child_packing</methodname>() method
returns a tuple containing information about how <parameter>child</parameter>
is packed into the box. The tuple members are: (expand, fill, padding,
pack_type) where: expand and fill are 0 or 1 (corresponding to False or
True); padding is the number of pixels of padding; and pack_type is
gtk.PACK_START or gtk.PACK_END.</para>
</refsect2>
<refsect2 id="method-gtkbox--set-child-packing">
<title>gtk.Box.set_child_packing</title>
<programlisting><methodsynopsis language="python">
<methodname>set_child_packing</methodname>
<methodparam><parameter
role="keyword">child</parameter></methodparam>
<methodparam><parameter
role="keyword">expand</parameter></methodparam>
<methodparam><parameter
role="keyword">fill</parameter></methodparam>
<methodparam><parameter
role="keyword">padding</parameter></methodparam>
<methodparam><parameter
role="keyword">pack_type</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">child</parameter> :</term>
<listitem><simpara>the child widget to be queried for its packing
information</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">expand</parameter> :</term>
<listitem><simpara>the child's new expand
value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">fill</parameter> :</term>
<listitem><simpara>the child's new fill value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">padding</parameter> :</term>
<listitem><simpara>the child's new padding
value</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">pack_type</parameter> :</term>
<listitem><simpara>the child's new pack_type
value</simpara></listitem>
</varlistentry>
</variablelist>
</refsect2>
<para>The <methodname>set_child_packing</methodname>() method sets the
way child is packed into the box.</para>
</refsect1>
</refentry>
|