]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/sizers.py
added font encoding support
[wxWidgets.git] / utils / wxPython / src / gtk / sizers.py
CommitLineData
37f6a977
RD
1# This file was created automatically by SWIG.
2import sizersc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
10from controls import *
11
12from events import *
13import wx
14import string
15class wxSizerItemPtr :
16 def __init__(self,this):
17 self.this = this
18 self.thisown = 0
19 def GetSize(self, *_args, **_kwargs):
20 val = apply(sizersc.wxSizerItem_GetSize,(self,) + _args, _kwargs)
21 if val: val = wxSizePtr(val) ; val.thisown = 1
22 return val
23 def CalcMin(self, *_args, **_kwargs):
24 val = apply(sizersc.wxSizerItem_CalcMin,(self,) + _args, _kwargs)
25 if val: val = wxSizePtr(val) ; val.thisown = 1
26 return val
27 def SetDimension(self, *_args, **_kwargs):
28 val = apply(sizersc.wxSizerItem_SetDimension,(self,) + _args, _kwargs)
29 return val
30 def IsWindow(self, *_args, **_kwargs):
31 val = apply(sizersc.wxSizerItem_IsWindow,(self,) + _args, _kwargs)
32 return val
33 def IsSizer(self, *_args, **_kwargs):
34 val = apply(sizersc.wxSizerItem_IsSizer,(self,) + _args, _kwargs)
35 return val
36 def IsSpacer(self, *_args, **_kwargs):
37 val = apply(sizersc.wxSizerItem_IsSpacer,(self,) + _args, _kwargs)
38 return val
39 def GetWindow(self, *_args, **_kwargs):
40 val = apply(sizersc.wxSizerItem_GetWindow,(self,) + _args, _kwargs)
41 if val: val = wxWindowPtr(val)
42 return val
43 def GetSizer(self, *_args, **_kwargs):
44 val = apply(sizersc.wxSizerItem_GetSizer,(self,) + _args, _kwargs)
45 if val: val = wxSizerPtr(val)
46 return val
47 def GetOption(self, *_args, **_kwargs):
48 val = apply(sizersc.wxSizerItem_GetOption,(self,) + _args, _kwargs)
49 return val
50 def GetFlag(self, *_args, **_kwargs):
51 val = apply(sizersc.wxSizerItem_GetFlag,(self,) + _args, _kwargs)
52 return val
53 def GetBorder(self, *_args, **_kwargs):
54 val = apply(sizersc.wxSizerItem_GetBorder,(self,) + _args, _kwargs)
55 return val
56 def GetUserData(self, *_args, **_kwargs):
57 val = apply(sizersc.wxSizerItem_GetUserData,(self,) + _args, _kwargs)
58 return val
59 def __repr__(self):
60 return "<C wxSizerItem instance at %s>" % (self.this,)
61class wxSizerItem(wxSizerItemPtr):
62 def __init__(self,this):
63 self.this = this
64
65
66
67
68class wxSizerPtr :
69 def __init__(self,this):
70 self.this = this
71 self.thisown = 0
72 def Destroy(self, *_args, **_kwargs):
73 val = apply(sizersc.wxSizer_Destroy,(self,) + _args, _kwargs)
74 return val
75 def AddWindow(self, *_args, **_kwargs):
76 val = apply(sizersc.wxSizer_AddWindow,(self,) + _args, _kwargs)
77 return val
78 def AddSizer(self, *_args, **_kwargs):
79 val = apply(sizersc.wxSizer_AddSizer,(self,) + _args, _kwargs)
80 return val
81 def AddSpacer(self, *_args, **_kwargs):
82 val = apply(sizersc.wxSizer_AddSpacer,(self,) + _args, _kwargs)
83 return val
84 def PrependWindow(self, *_args, **_kwargs):
85 val = apply(sizersc.wxSizer_PrependWindow,(self,) + _args, _kwargs)
86 return val
87 def PrependSizer(self, *_args, **_kwargs):
88 val = apply(sizersc.wxSizer_PrependSizer,(self,) + _args, _kwargs)
89 return val
90 def PrependSpacer(self, *_args, **_kwargs):
91 val = apply(sizersc.wxSizer_PrependSpacer,(self,) + _args, _kwargs)
92 return val
93 def RemoveWindow(self, *_args, **_kwargs):
94 val = apply(sizersc.wxSizer_RemoveWindow,(self,) + _args, _kwargs)
95 return val
96 def RemoveSizer(self, *_args, **_kwargs):
97 val = apply(sizersc.wxSizer_RemoveSizer,(self,) + _args, _kwargs)
98 return val
99 def RemovePos(self, *_args, **_kwargs):
100 val = apply(sizersc.wxSizer_RemovePos,(self,) + _args, _kwargs)
101 return val
102 def SetDimension(self, *_args, **_kwargs):
103 val = apply(sizersc.wxSizer_SetDimension,(self,) + _args, _kwargs)
104 return val
105 def GetSize(self, *_args, **_kwargs):
106 val = apply(sizersc.wxSizer_GetSize,(self,) + _args, _kwargs)
107 if val: val = wxSizePtr(val) ; val.thisown = 1
108 return val
109 def GetPosition(self, *_args, **_kwargs):
110 val = apply(sizersc.wxSizer_GetPosition,(self,) + _args, _kwargs)
111 if val: val = wxPointPtr(val) ; val.thisown = 1
112 return val
113 def GetMinSize(self, *_args, **_kwargs):
114 val = apply(sizersc.wxSizer_GetMinSize,(self,) + _args, _kwargs)
115 if val: val = wxSizePtr(val) ; val.thisown = 1
116 return val
117 def Layout(self, *_args, **_kwargs):
118 val = apply(sizersc.wxSizer_Layout,(self,) + _args, _kwargs)
119 return val
120 def Fit(self, *_args, **_kwargs):
121 val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs)
122 return val
123 def SetSizeHints(self, *_args, **_kwargs):
124 val = apply(sizersc.wxSizer_SetSizeHints,(self,) + _args, _kwargs)
125 return val
126 def GetChildren(self, *_args, **_kwargs):
127 val = apply(sizersc.wxSizer_GetChildren,(self,) + _args, _kwargs)
128 return val
129 def __repr__(self):
130 return "<C wxSizer instance at %s>" % (self.this,)
131
132 def Add(self, *args):
133 if type(args[0]) == type(1):
134 apply(self.AddSpacer, args)
135 elif string.find(args[0].this, 'Sizer') != -1:
136 apply(self.AddSizer, args)
137 else:
138 apply(self.AddWindow, args)
139
140 def Prepend(self, *args):
141 if type(args[0]) == type(1):
142 apply(self.PrependSpacer, args)
143 elif string.find(args[0].this, 'Sizer') != -1:
144 apply(self.PrependSizer, args)
145 else:
146 apply(self.PrependWindow, args)
147
148 def Remove(self, *args):
149 if type(args[0]) == type(1):
150 apply(self.RemovePos, args)
151 elif string.find(args[0].this, 'Sizer') != -1:
152 apply(self.RemoveSizer, args)
153 else:
154 apply(self.RemoveWindow, args)
155
156 def AddMany(self, widgets):
157 for childinfo in widgets:
158 if type(childinfo) != type(()):
159 childinfo = (childinfo, )
160 apply(self.Add, childinfo)
161
162class wxSizer(wxSizerPtr):
163 def __init__(self,this):
164 self.this = this
165
166
167
168
169class wxPySizerPtr(wxSizerPtr):
170 def __init__(self,this):
171 self.this = this
172 self.thisown = 0
173 def _setSelf(self, *_args, **_kwargs):
174 val = apply(sizersc.wxPySizer__setSelf,(self,) + _args, _kwargs)
175 return val
176 def __repr__(self):
177 return "<C wxPySizer instance at %s>" % (self.this,)
178class wxPySizer(wxPySizerPtr):
179 def __init__(self,*_args,**_kwargs):
180 self.this = apply(sizersc.new_wxPySizer,_args,_kwargs)
181 self.thisown = 1
182 self._setSelf(self)
183
184
185
186
187class wxBoxSizerPtr(wxSizerPtr):
188 def __init__(self,this):
189 self.this = this
190 self.thisown = 0
191 def GetOrientation(self, *_args, **_kwargs):
192 val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs)
193 return val
194 def __repr__(self):
195 return "<C wxBoxSizer instance at %s>" % (self.this,)
196class wxBoxSizer(wxBoxSizerPtr):
197 def __init__(self,*_args,**_kwargs):
198 self.this = apply(sizersc.new_wxBoxSizer,_args,_kwargs)
199 self.thisown = 1
200
201
202
203
204class wxStaticBoxSizerPtr(wxBoxSizerPtr):
205 def __init__(self,this):
206 self.this = this
207 self.thisown = 0
208 def GetStaticBox(self, *_args, **_kwargs):
209 val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs)
210 if val: val = wxStaticBoxPtr(val)
211 return val
212 def __repr__(self):
213 return "<C wxStaticBoxSizer instance at %s>" % (self.this,)
214class wxStaticBoxSizer(wxStaticBoxSizerPtr):
215 def __init__(self,*_args,**_kwargs):
216 self.this = apply(sizersc.new_wxStaticBoxSizer,_args,_kwargs)
217 self.thisown = 1
218
219
220
221
222
223
224#-------------- FUNCTION WRAPPERS ------------------
225
226
227
228#-------------- VARIABLE WRAPPERS ------------------
229