]>
Commit | Line | Data |
---|---|---|
1 | # This file was created automatically by SWIG. | |
2 | import sizersc | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from windows import * | |
7 | ||
8 | from gdi import * | |
9 | ||
10 | from clip_dnd import * | |
11 | ||
12 | from controls import * | |
13 | ||
14 | from events import * | |
15 | import wx | |
16 | import string | |
17 | class 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 | |
58 | def GetUserData(self, *_args, **_kwargs): | |
59 | val = apply(sizersc.wxSizerItem_GetUserData,(self,) + _args, _kwargs) | |
60 | return val | |
61 | def __repr__(self): | |
62 | return "<C wxSizerItem instance at %s>" % (self.this,) | |
63 | class wxSizerItem(wxSizerItemPtr): | |
64 | def __init__(self,this): | |
65 | self.this = this | |
66 | ||
67 | ||
68 | ||
69 | ||
70 | class wxSizerPtr : | |
71 | def __init__(self,this): | |
72 | self.this = this | |
73 | self.thisown = 0 | |
74 | def Destroy(self, *_args, **_kwargs): | |
75 | val = apply(sizersc.wxSizer_Destroy,(self,) + _args, _kwargs) | |
76 | return val | |
77 | def AddWindow(self, *_args, **_kwargs): | |
78 | val = apply(sizersc.wxSizer_AddWindow,(self,) + _args, _kwargs) | |
79 | return val | |
80 | def AddSizer(self, *_args, **_kwargs): | |
81 | val = apply(sizersc.wxSizer_AddSizer,(self,) + _args, _kwargs) | |
82 | return val | |
83 | def AddSpacer(self, *_args, **_kwargs): | |
84 | val = apply(sizersc.wxSizer_AddSpacer,(self,) + _args, _kwargs) | |
85 | return val | |
86 | def PrependWindow(self, *_args, **_kwargs): | |
87 | val = apply(sizersc.wxSizer_PrependWindow,(self,) + _args, _kwargs) | |
88 | return val | |
89 | def PrependSizer(self, *_args, **_kwargs): | |
90 | val = apply(sizersc.wxSizer_PrependSizer,(self,) + _args, _kwargs) | |
91 | return val | |
92 | def PrependSpacer(self, *_args, **_kwargs): | |
93 | val = apply(sizersc.wxSizer_PrependSpacer,(self,) + _args, _kwargs) | |
94 | return val | |
95 | def RemoveWindow(self, *_args, **_kwargs): | |
96 | val = apply(sizersc.wxSizer_RemoveWindow,(self,) + _args, _kwargs) | |
97 | return val | |
98 | def RemoveSizer(self, *_args, **_kwargs): | |
99 | val = apply(sizersc.wxSizer_RemoveSizer,(self,) + _args, _kwargs) | |
100 | return val | |
101 | def RemovePos(self, *_args, **_kwargs): | |
102 | val = apply(sizersc.wxSizer_RemovePos,(self,) + _args, _kwargs) | |
103 | return val | |
104 | def SetDimension(self, *_args, **_kwargs): | |
105 | val = apply(sizersc.wxSizer_SetDimension,(self,) + _args, _kwargs) | |
106 | return val | |
107 | def GetSize(self, *_args, **_kwargs): | |
108 | val = apply(sizersc.wxSizer_GetSize,(self,) + _args, _kwargs) | |
109 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
110 | return val | |
111 | def GetPosition(self, *_args, **_kwargs): | |
112 | val = apply(sizersc.wxSizer_GetPosition,(self,) + _args, _kwargs) | |
113 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
114 | return val | |
115 | def GetMinSize(self, *_args, **_kwargs): | |
116 | val = apply(sizersc.wxSizer_GetMinSize,(self,) + _args, _kwargs) | |
117 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
118 | return val | |
119 | def Layout(self, *_args, **_kwargs): | |
120 | val = apply(sizersc.wxSizer_Layout,(self,) + _args, _kwargs) | |
121 | return val | |
122 | def Fit(self, *_args, **_kwargs): | |
123 | val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs) | |
124 | return val | |
125 | def SetSizeHints(self, *_args, **_kwargs): | |
126 | val = apply(sizersc.wxSizer_SetSizeHints,(self,) + _args, _kwargs) | |
127 | return val | |
128 | def GetChildren(self, *_args, **_kwargs): | |
129 | val = apply(sizersc.wxSizer_GetChildren,(self,) + _args, _kwargs) | |
130 | return val | |
131 | def __repr__(self): | |
132 | return "<C wxSizer instance at %s>" % (self.this,) | |
133 | ||
134 | def Add(self, *args): | |
135 | if type(args[0]) == type(1): | |
136 | apply(self.AddSpacer, args) | |
137 | elif string.find(args[0].this, 'Sizer') != -1: | |
138 | apply(self.AddSizer, args) | |
139 | else: | |
140 | apply(self.AddWindow, args) | |
141 | ||
142 | def Prepend(self, *args): | |
143 | if type(args[0]) == type(1): | |
144 | apply(self.PrependSpacer, args) | |
145 | elif string.find(args[0].this, 'Sizer') != -1: | |
146 | apply(self.PrependSizer, args) | |
147 | else: | |
148 | apply(self.PrependWindow, args) | |
149 | ||
150 | def Remove(self, *args): | |
151 | if type(args[0]) == type(1): | |
152 | apply(self.RemovePos, args) | |
153 | elif string.find(args[0].this, 'Sizer') != -1: | |
154 | apply(self.RemoveSizer, args) | |
155 | else: | |
156 | apply(self.RemoveWindow, args) | |
157 | ||
158 | def AddMany(self, widgets): | |
159 | for childinfo in widgets: | |
160 | if type(childinfo) != type(()): | |
161 | childinfo = (childinfo, ) | |
162 | apply(self.Add, childinfo) | |
163 | ||
164 | class wxSizer(wxSizerPtr): | |
165 | def __init__(self,this): | |
166 | self.this = this | |
167 | ||
168 | ||
169 | ||
170 | ||
171 | class wxPySizerPtr(wxSizerPtr): | |
172 | def __init__(self,this): | |
173 | self.this = this | |
174 | self.thisown = 0 | |
175 | def _setSelf(self, *_args, **_kwargs): | |
176 | val = apply(sizersc.wxPySizer__setSelf,(self,) + _args, _kwargs) | |
177 | return val | |
178 | def __repr__(self): | |
179 | return "<C wxPySizer instance at %s>" % (self.this,) | |
180 | class wxPySizer(wxPySizerPtr): | |
181 | def __init__(self,*_args,**_kwargs): | |
182 | self.this = apply(sizersc.new_wxPySizer,_args,_kwargs) | |
183 | self.thisown = 1 | |
184 | self._setSelf(self) | |
185 | ||
186 | ||
187 | ||
188 | ||
189 | class wxBoxSizerPtr(wxSizerPtr): | |
190 | def __init__(self,this): | |
191 | self.this = this | |
192 | self.thisown = 0 | |
193 | def GetOrientation(self, *_args, **_kwargs): | |
194 | val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs) | |
195 | return val | |
196 | def __repr__(self): | |
197 | return "<C wxBoxSizer instance at %s>" % (self.this,) | |
198 | class wxBoxSizer(wxBoxSizerPtr): | |
199 | def __init__(self,*_args,**_kwargs): | |
200 | self.this = apply(sizersc.new_wxBoxSizer,_args,_kwargs) | |
201 | self.thisown = 1 | |
202 | ||
203 | ||
204 | ||
205 | ||
206 | class wxStaticBoxSizerPtr(wxBoxSizerPtr): | |
207 | def __init__(self,this): | |
208 | self.this = this | |
209 | self.thisown = 0 | |
210 | def GetStaticBox(self, *_args, **_kwargs): | |
211 | val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs) | |
212 | if val: val = wxStaticBoxPtr(val) | |
213 | return val | |
214 | def __repr__(self): | |
215 | return "<C wxStaticBoxSizer instance at %s>" % (self.this,) | |
216 | class wxStaticBoxSizer(wxStaticBoxSizerPtr): | |
217 | def __init__(self,*_args,**_kwargs): | |
218 | self.this = apply(sizersc.new_wxStaticBoxSizer,_args,_kwargs) | |
219 | self.thisown = 1 | |
220 | ||
221 | ||
222 | ||
223 | ||
224 | ||
225 | ||
226 | #-------------- FUNCTION WRAPPERS ------------------ | |
227 | ||
228 | ||
229 | ||
230 | #-------------- VARIABLE WRAPPERS ------------------ | |
231 |