1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 import gobject
24 import gtk
25
27 '''
28 Horizontal frame to padding 1 pixel round child.
29 '''
30
31 - def __init__(self,
32 padding=1,
33 xalign=0.0,
34 yalign=0.0,
35 xscale=1.0,
36 yscale=1.0):
37 '''
38 Initialize HorizontalFrame class.
39
40 @param padding: Padding value.
41 @param xalign: The fraction of horizontal free space to the left of the child widget. Ranges from 0.0 to 1.0.
42 @param yalign: The fraction of vertical free space above the child widget. Ranges from 0.0 to 1.0.
43 @param xscale: The fraction of horizontal free space that the child widget absorbs, from 0.0 to 1.0.
44 @param yscale: The fraction of vertical free space that the child widget absorbs, from 0.0 to 1.0.
45 '''
46
47 gtk.Alignment.__init__(self)
48 self.set(xalign, yalign, xscale, yscale)
49 self.set_padding(0, 0, padding, padding)
50
51 gobject.type_register(HorizontalFrame)
52
54 '''
55 Vertical frame to padding 1 pixel round child.
56 '''
57
58 - def __init__(self,
59 padding=1,
60 xalign=0.0,
61 yalign=0.0,
62 xscale=1.0,
63 yscale=1.0):
64 '''
65 Initialize VerticalFrame class.
66
67 @param padding: Padding value.
68 @param xalign: The fraction of horizontal free space to the left of the child widget. Ranges from 0.0 to 1.0.
69 @param yalign: The fraction of vertical free space above the child widget. Ranges from 0.0 to 1.0.
70 @param xscale: The fraction of horizontal free space that the child widget absorbs, from 0.0 to 1.0.
71 @param yscale: The fraction of vertical free space that the child widget absorbs, from 0.0 to 1.0.
72 '''
73
74 gtk.Alignment.__init__(self)
75 self.set(xalign, yalign, xscale, yscale)
76 self.set_padding(padding, padding, 0, 0)
77
78 gobject.type_register(VerticalFrame)
79