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