]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | # This file was created automatically by SWIG. |
2 | import controlsc | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from windows import * | |
7 | ||
8 | from gdi import * | |
9 | ||
4120ef2b RD |
10 | from clip_dnd import * |
11 | ||
70551f47 | 12 | from events import * |
105e45b9 | 13 | import wx |
70551f47 RD |
14 | class wxControlPtr(wxWindowPtr): |
15 | def __init__(self,this): | |
16 | self.this = this | |
17 | self.thisown = 0 | |
aa2a5b86 RD |
18 | def Create(self, *_args, **_kwargs): |
19 | val = apply(controlsc.wxControl_Create,(self,) + _args, _kwargs) | |
20 | return val | |
56f5d962 RD |
21 | def Command(self, *_args, **_kwargs): |
22 | val = apply(controlsc.wxControl_Command,(self,) + _args, _kwargs) | |
23 | return val | |
2d091820 RD |
24 | def GetLabel(self, *_args, **_kwargs): |
25 | val = apply(controlsc.wxControl_GetLabel,(self,) + _args, _kwargs) | |
70551f47 | 26 | return val |
2d091820 RD |
27 | def SetLabel(self, *_args, **_kwargs): |
28 | val = apply(controlsc.wxControl_SetLabel,(self,) + _args, _kwargs) | |
70551f47 RD |
29 | return val |
30 | def __repr__(self): | |
2d091820 | 31 | return "<C wxControl instance at %s>" % (self.this,) |
70551f47 | 32 | class wxControl(wxControlPtr): |
56f5d962 RD |
33 | def __init__(self,*_args,**_kwargs): |
34 | self.this = apply(controlsc.new_wxControl,_args,_kwargs) | |
35 | self.thisown = 1 | |
70551f47 RD |
36 | |
37 | ||
38 | ||
aa2a5b86 RD |
39 | def wxPreControl(*_args,**_kwargs): |
40 | val = wxControlPtr(apply(controlsc.new_wxPreControl,_args,_kwargs)) | |
41 | val.thisown = 1 | |
42 | return val | |
43 | ||
70551f47 RD |
44 | |
45 | class wxButtonPtr(wxControlPtr): | |
46 | def __init__(self,this): | |
47 | self.this = this | |
48 | self.thisown = 0 | |
aa2a5b86 RD |
49 | def Create(self, *_args, **_kwargs): |
50 | val = apply(controlsc.wxButton_Create,(self,) + _args, _kwargs) | |
51 | return val | |
2d091820 RD |
52 | def SetDefault(self, *_args, **_kwargs): |
53 | val = apply(controlsc.wxButton_SetDefault,(self,) + _args, _kwargs) | |
70551f47 | 54 | return val |
ab2208b5 RD |
55 | def SetBackgroundColour(self, *_args, **_kwargs): |
56 | val = apply(controlsc.wxButton_SetBackgroundColour,(self,) + _args, _kwargs) | |
57 | return val | |
58 | def SetForegroundColour(self, *_args, **_kwargs): | |
59 | val = apply(controlsc.wxButton_SetForegroundColour,(self,) + _args, _kwargs) | |
60 | return val | |
70551f47 | 61 | def __repr__(self): |
2d091820 | 62 | return "<C wxButton instance at %s>" % (self.this,) |
70551f47 | 63 | class wxButton(wxButtonPtr): |
2d091820 RD |
64 | def __init__(self,*_args,**_kwargs): |
65 | self.this = apply(controlsc.new_wxButton,_args,_kwargs) | |
70551f47 RD |
66 | self.thisown = 1 |
67 | ||
68 | ||
69 | ||
aa2a5b86 RD |
70 | def wxPreButton(*_args,**_kwargs): |
71 | val = wxButtonPtr(apply(controlsc.new_wxPreButton,_args,_kwargs)) | |
72 | val.thisown = 1 | |
73 | return val | |
74 | ||
70551f47 RD |
75 | |
76 | class wxBitmapButtonPtr(wxButtonPtr): | |
77 | def __init__(self,this): | |
78 | self.this = this | |
79 | self.thisown = 0 | |
aa2a5b86 RD |
80 | def Create(self, *_args, **_kwargs): |
81 | val = apply(controlsc.wxBitmapButton_Create,(self,) + _args, _kwargs) | |
82 | return val | |
2d091820 RD |
83 | def GetBitmapLabel(self, *_args, **_kwargs): |
84 | val = apply(controlsc.wxBitmapButton_GetBitmapLabel,(self,) + _args, _kwargs) | |
85 | if val: val = wxBitmapPtr(val) | |
70551f47 | 86 | return val |
2d091820 RD |
87 | def GetBitmapDisabled(self, *_args, **_kwargs): |
88 | val = apply(controlsc.wxBitmapButton_GetBitmapDisabled,(self,) + _args, _kwargs) | |
89 | if val: val = wxBitmapPtr(val) | |
c95e68d8 | 90 | return val |
2d091820 RD |
91 | def GetBitmapFocus(self, *_args, **_kwargs): |
92 | val = apply(controlsc.wxBitmapButton_GetBitmapFocus,(self,) + _args, _kwargs) | |
93 | if val: val = wxBitmapPtr(val) | |
c95e68d8 | 94 | return val |
2d091820 RD |
95 | def GetBitmapSelected(self, *_args, **_kwargs): |
96 | val = apply(controlsc.wxBitmapButton_GetBitmapSelected,(self,) + _args, _kwargs) | |
97 | if val: val = wxBitmapPtr(val) | |
c95e68d8 | 98 | return val |
2d091820 RD |
99 | def SetBitmapDisabled(self, *_args, **_kwargs): |
100 | val = apply(controlsc.wxBitmapButton_SetBitmapDisabled,(self,) + _args, _kwargs) | |
c95e68d8 | 101 | return val |
2d091820 RD |
102 | def SetBitmapFocus(self, *_args, **_kwargs): |
103 | val = apply(controlsc.wxBitmapButton_SetBitmapFocus,(self,) + _args, _kwargs) | |
c95e68d8 | 104 | return val |
2d091820 RD |
105 | def SetBitmapSelected(self, *_args, **_kwargs): |
106 | val = apply(controlsc.wxBitmapButton_SetBitmapSelected,(self,) + _args, _kwargs) | |
c95e68d8 | 107 | return val |
2d091820 RD |
108 | def SetBitmapLabel(self, *_args, **_kwargs): |
109 | val = apply(controlsc.wxBitmapButton_SetBitmapLabel,(self,) + _args, _kwargs) | |
70551f47 | 110 | return val |
f6bcfd97 BP |
111 | def SetMargins(self, *_args, **_kwargs): |
112 | val = apply(controlsc.wxBitmapButton_SetMargins,(self,) + _args, _kwargs) | |
113 | return val | |
114 | def GetMarginX(self, *_args, **_kwargs): | |
115 | val = apply(controlsc.wxBitmapButton_GetMarginX,(self,) + _args, _kwargs) | |
116 | return val | |
117 | def GetMarginY(self, *_args, **_kwargs): | |
118 | val = apply(controlsc.wxBitmapButton_GetMarginY,(self,) + _args, _kwargs) | |
119 | return val | |
70551f47 | 120 | def __repr__(self): |
2d091820 | 121 | return "<C wxBitmapButton instance at %s>" % (self.this,) |
70551f47 | 122 | class wxBitmapButton(wxBitmapButtonPtr): |
2d091820 RD |
123 | def __init__(self,*_args,**_kwargs): |
124 | self.this = apply(controlsc.new_wxBitmapButton,_args,_kwargs) | |
70551f47 RD |
125 | self.thisown = 1 |
126 | ||
127 | ||
128 | ||
aa2a5b86 RD |
129 | def wxPreBitmapButton(*_args,**_kwargs): |
130 | val = wxBitmapButtonPtr(apply(controlsc.new_wxPreBitmapButton,_args,_kwargs)) | |
131 | val.thisown = 1 | |
132 | return val | |
133 | ||
70551f47 RD |
134 | |
135 | class wxCheckBoxPtr(wxControlPtr): | |
136 | def __init__(self,this): | |
137 | self.this = this | |
138 | self.thisown = 0 | |
aa2a5b86 RD |
139 | def Create(self, *_args, **_kwargs): |
140 | val = apply(controlsc.wxCheckBox_Create,(self,) + _args, _kwargs) | |
141 | return val | |
2d091820 RD |
142 | def GetValue(self, *_args, **_kwargs): |
143 | val = apply(controlsc.wxCheckBox_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 144 | return val |
2d091820 RD |
145 | def SetValue(self, *_args, **_kwargs): |
146 | val = apply(controlsc.wxCheckBox_SetValue,(self,) + _args, _kwargs) | |
70551f47 RD |
147 | return val |
148 | def __repr__(self): | |
2d091820 | 149 | return "<C wxCheckBox instance at %s>" % (self.this,) |
70551f47 | 150 | class wxCheckBox(wxCheckBoxPtr): |
2d091820 RD |
151 | def __init__(self,*_args,**_kwargs): |
152 | self.this = apply(controlsc.new_wxCheckBox,_args,_kwargs) | |
70551f47 RD |
153 | self.thisown = 1 |
154 | ||
155 | ||
156 | ||
aa2a5b86 RD |
157 | def wxPreCheckBox(*_args,**_kwargs): |
158 | val = wxCheckBoxPtr(apply(controlsc.new_wxPreCheckBox,_args,_kwargs)) | |
159 | val.thisown = 1 | |
160 | return val | |
161 | ||
70551f47 RD |
162 | |
163 | class wxChoicePtr(wxControlPtr): | |
164 | def __init__(self,this): | |
165 | self.this = this | |
166 | self.thisown = 0 | |
aa2a5b86 RD |
167 | def Create(self, *_args, **_kwargs): |
168 | val = apply(controlsc.wxChoice_Create,(self,) + _args, _kwargs) | |
169 | return val | |
2d091820 RD |
170 | def Append(self, *_args, **_kwargs): |
171 | val = apply(controlsc.wxChoice_Append,(self,) + _args, _kwargs) | |
70551f47 | 172 | return val |
2d091820 RD |
173 | def Clear(self, *_args, **_kwargs): |
174 | val = apply(controlsc.wxChoice_Clear,(self,) + _args, _kwargs) | |
70551f47 | 175 | return val |
2c8a649d RD |
176 | def Delete(self, *_args, **_kwargs): |
177 | val = apply(controlsc.wxChoice_Delete,(self,) + _args, _kwargs) | |
178 | return val | |
2d091820 RD |
179 | def FindString(self, *_args, **_kwargs): |
180 | val = apply(controlsc.wxChoice_FindString,(self,) + _args, _kwargs) | |
70551f47 | 181 | return val |
2d091820 RD |
182 | def GetColumns(self, *_args, **_kwargs): |
183 | val = apply(controlsc.wxChoice_GetColumns,(self,) + _args, _kwargs) | |
70551f47 | 184 | return val |
2d091820 RD |
185 | def GetSelection(self, *_args, **_kwargs): |
186 | val = apply(controlsc.wxChoice_GetSelection,(self,) + _args, _kwargs) | |
70551f47 | 187 | return val |
2d091820 RD |
188 | def GetString(self, *_args, **_kwargs): |
189 | val = apply(controlsc.wxChoice_GetString,(self,) + _args, _kwargs) | |
70551f47 | 190 | return val |
2d091820 RD |
191 | def GetStringSelection(self, *_args, **_kwargs): |
192 | val = apply(controlsc.wxChoice_GetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 193 | return val |
2c8a649d RD |
194 | def GetCount(self, *_args, **_kwargs): |
195 | val = apply(controlsc.wxChoice_GetCount,(self,) + _args, _kwargs) | |
70551f47 | 196 | return val |
2d091820 RD |
197 | def SetColumns(self, *_args, **_kwargs): |
198 | val = apply(controlsc.wxChoice_SetColumns,(self,) + _args, _kwargs) | |
70551f47 | 199 | return val |
2d091820 RD |
200 | def SetSelection(self, *_args, **_kwargs): |
201 | val = apply(controlsc.wxChoice_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 202 | return val |
2d091820 RD |
203 | def SetStringSelection(self, *_args, **_kwargs): |
204 | val = apply(controlsc.wxChoice_SetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 205 | return val |
2c8a649d RD |
206 | def SetString(self, *_args, **_kwargs): |
207 | val = apply(controlsc.wxChoice_SetString,(self,) + _args, _kwargs) | |
208 | return val | |
70551f47 | 209 | def __repr__(self): |
2d091820 | 210 | return "<C wxChoice instance at %s>" % (self.this,) |
2c8a649d RD |
211 | |
212 | Number = GetCount | |
213 | Select = SetSelection | |
214 | ||
70551f47 | 215 | class wxChoice(wxChoicePtr): |
2d091820 RD |
216 | def __init__(self,*_args,**_kwargs): |
217 | self.this = apply(controlsc.new_wxChoice,_args,_kwargs) | |
70551f47 RD |
218 | self.thisown = 1 |
219 | ||
220 | ||
221 | ||
aa2a5b86 RD |
222 | def wxPreChoice(*_args,**_kwargs): |
223 | val = wxChoicePtr(apply(controlsc.new_wxPreChoice,_args,_kwargs)) | |
224 | val.thisown = 1 | |
225 | return val | |
226 | ||
70551f47 | 227 | |
d24a34bb | 228 | class wxComboBoxPtr(wxChoicePtr): |
70551f47 RD |
229 | def __init__(self,this): |
230 | self.this = this | |
231 | self.thisown = 0 | |
aa2a5b86 RD |
232 | def Create(self, *_args, **_kwargs): |
233 | val = apply(controlsc.wxComboBox_Create,(self,) + _args, _kwargs) | |
234 | return val | |
2d091820 RD |
235 | def Append(self, *_args, **_kwargs): |
236 | val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs) | |
70551f47 | 237 | return val |
2d091820 RD |
238 | def Clear(self, *_args, **_kwargs): |
239 | val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs) | |
70551f47 | 240 | return val |
2d091820 RD |
241 | def Copy(self, *_args, **_kwargs): |
242 | val = apply(controlsc.wxComboBox_Copy,(self,) + _args, _kwargs) | |
70551f47 | 243 | return val |
2d091820 RD |
244 | def Cut(self, *_args, **_kwargs): |
245 | val = apply(controlsc.wxComboBox_Cut,(self,) + _args, _kwargs) | |
70551f47 | 246 | return val |
2d091820 RD |
247 | def Delete(self, *_args, **_kwargs): |
248 | val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs) | |
70551f47 | 249 | return val |
2d091820 RD |
250 | def FindString(self, *_args, **_kwargs): |
251 | val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs) | |
70551f47 | 252 | return val |
2d091820 RD |
253 | def GetInsertionPoint(self, *_args, **_kwargs): |
254 | val = apply(controlsc.wxComboBox_GetInsertionPoint,(self,) + _args, _kwargs) | |
70551f47 | 255 | return val |
2d091820 RD |
256 | def GetLastPosition(self, *_args, **_kwargs): |
257 | val = apply(controlsc.wxComboBox_GetLastPosition,(self,) + _args, _kwargs) | |
70551f47 | 258 | return val |
2d091820 RD |
259 | def GetSelection(self, *_args, **_kwargs): |
260 | val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs) | |
70551f47 | 261 | return val |
2d091820 RD |
262 | def GetString(self, *_args, **_kwargs): |
263 | val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs) | |
70551f47 | 264 | return val |
2d091820 RD |
265 | def GetStringSelection(self, *_args, **_kwargs): |
266 | val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 267 | return val |
2d091820 RD |
268 | def GetValue(self, *_args, **_kwargs): |
269 | val = apply(controlsc.wxComboBox_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 270 | return val |
2d091820 RD |
271 | def Paste(self, *_args, **_kwargs): |
272 | val = apply(controlsc.wxComboBox_Paste,(self,) + _args, _kwargs) | |
70551f47 | 273 | return val |
2d091820 RD |
274 | def Replace(self, *_args, **_kwargs): |
275 | val = apply(controlsc.wxComboBox_Replace,(self,) + _args, _kwargs) | |
70551f47 | 276 | return val |
2d091820 RD |
277 | def Remove(self, *_args, **_kwargs): |
278 | val = apply(controlsc.wxComboBox_Remove,(self,) + _args, _kwargs) | |
70551f47 | 279 | return val |
2d091820 RD |
280 | def SetInsertionPoint(self, *_args, **_kwargs): |
281 | val = apply(controlsc.wxComboBox_SetInsertionPoint,(self,) + _args, _kwargs) | |
70551f47 | 282 | return val |
2d091820 RD |
283 | def SetInsertionPointEnd(self, *_args, **_kwargs): |
284 | val = apply(controlsc.wxComboBox_SetInsertionPointEnd,(self,) + _args, _kwargs) | |
70551f47 | 285 | return val |
2d091820 RD |
286 | def SetSelection(self, *_args, **_kwargs): |
287 | val = apply(controlsc.wxComboBox_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 288 | return val |
2d091820 RD |
289 | def SetMark(self, *_args, **_kwargs): |
290 | val = apply(controlsc.wxComboBox_SetMark,(self,) + _args, _kwargs) | |
291 | return val | |
292 | def SetValue(self, *_args, **_kwargs): | |
293 | val = apply(controlsc.wxComboBox_SetValue,(self,) + _args, _kwargs) | |
70551f47 | 294 | return val |
2c8a649d RD |
295 | def SetEditable(self, *_args, **_kwargs): |
296 | val = apply(controlsc.wxComboBox_SetEditable,(self,) + _args, _kwargs) | |
297 | return val | |
70551f47 | 298 | def __repr__(self): |
2d091820 | 299 | return "<C wxComboBox instance at %s>" % (self.this,) |
70551f47 | 300 | class wxComboBox(wxComboBoxPtr): |
2d091820 RD |
301 | def __init__(self,*_args,**_kwargs): |
302 | self.this = apply(controlsc.new_wxComboBox,_args,_kwargs) | |
70551f47 RD |
303 | self.thisown = 1 |
304 | ||
305 | ||
306 | ||
aa2a5b86 RD |
307 | def wxPreComboBox(*_args,**_kwargs): |
308 | val = wxComboBoxPtr(apply(controlsc.new_wxPreComboBox,_args,_kwargs)) | |
309 | val.thisown = 1 | |
310 | return val | |
311 | ||
70551f47 RD |
312 | |
313 | class wxGaugePtr(wxControlPtr): | |
314 | def __init__(self,this): | |
315 | self.this = this | |
316 | self.thisown = 0 | |
aa2a5b86 RD |
317 | def Create(self, *_args, **_kwargs): |
318 | val = apply(controlsc.wxGauge_Create,(self,) + _args, _kwargs) | |
319 | return val | |
2d091820 RD |
320 | def GetBezelFace(self, *_args, **_kwargs): |
321 | val = apply(controlsc.wxGauge_GetBezelFace,(self,) + _args, _kwargs) | |
70551f47 | 322 | return val |
2d091820 RD |
323 | def GetRange(self, *_args, **_kwargs): |
324 | val = apply(controlsc.wxGauge_GetRange,(self,) + _args, _kwargs) | |
70551f47 | 325 | return val |
2d091820 RD |
326 | def GetShadowWidth(self, *_args, **_kwargs): |
327 | val = apply(controlsc.wxGauge_GetShadowWidth,(self,) + _args, _kwargs) | |
70551f47 | 328 | return val |
2d091820 RD |
329 | def GetValue(self, *_args, **_kwargs): |
330 | val = apply(controlsc.wxGauge_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 331 | return val |
2d091820 RD |
332 | def SetBezelFace(self, *_args, **_kwargs): |
333 | val = apply(controlsc.wxGauge_SetBezelFace,(self,) + _args, _kwargs) | |
70551f47 | 334 | return val |
2d091820 RD |
335 | def SetRange(self, *_args, **_kwargs): |
336 | val = apply(controlsc.wxGauge_SetRange,(self,) + _args, _kwargs) | |
70551f47 | 337 | return val |
2d091820 RD |
338 | def SetShadowWidth(self, *_args, **_kwargs): |
339 | val = apply(controlsc.wxGauge_SetShadowWidth,(self,) + _args, _kwargs) | |
70551f47 | 340 | return val |
2d091820 RD |
341 | def SetValue(self, *_args, **_kwargs): |
342 | val = apply(controlsc.wxGauge_SetValue,(self,) + _args, _kwargs) | |
70551f47 RD |
343 | return val |
344 | def __repr__(self): | |
2d091820 | 345 | return "<C wxGauge instance at %s>" % (self.this,) |
70551f47 | 346 | class wxGauge(wxGaugePtr): |
2d091820 RD |
347 | def __init__(self,*_args,**_kwargs): |
348 | self.this = apply(controlsc.new_wxGauge,_args,_kwargs) | |
70551f47 RD |
349 | self.thisown = 1 |
350 | ||
351 | ||
352 | ||
aa2a5b86 RD |
353 | def wxPreGauge(*_args,**_kwargs): |
354 | val = wxGaugePtr(apply(controlsc.new_wxPreGauge,_args,_kwargs)) | |
355 | val.thisown = 1 | |
356 | return val | |
357 | ||
70551f47 RD |
358 | |
359 | class wxStaticBoxPtr(wxControlPtr): | |
360 | def __init__(self,this): | |
361 | self.this = this | |
362 | self.thisown = 0 | |
aa2a5b86 RD |
363 | def Create(self, *_args, **_kwargs): |
364 | val = apply(controlsc.wxStaticBox_Create,(self,) + _args, _kwargs) | |
365 | return val | |
70551f47 | 366 | def __repr__(self): |
2d091820 | 367 | return "<C wxStaticBox instance at %s>" % (self.this,) |
70551f47 | 368 | class wxStaticBox(wxStaticBoxPtr): |
2d091820 RD |
369 | def __init__(self,*_args,**_kwargs): |
370 | self.this = apply(controlsc.new_wxStaticBox,_args,_kwargs) | |
70551f47 RD |
371 | self.thisown = 1 |
372 | ||
373 | ||
374 | ||
aa2a5b86 RD |
375 | def wxPreStaticBox(*_args,**_kwargs): |
376 | val = wxStaticBoxPtr(apply(controlsc.new_wxPreStaticBox,_args,_kwargs)) | |
377 | val.thisown = 1 | |
378 | return val | |
379 | ||
70551f47 | 380 | |
d24a34bb RD |
381 | class wxStaticLinePtr(wxControlPtr): |
382 | def __init__(self,this): | |
383 | self.this = this | |
384 | self.thisown = 0 | |
aa2a5b86 RD |
385 | def Create(self, *_args, **_kwargs): |
386 | val = apply(controlsc.wxStaticLine_Create,(self,) + _args, _kwargs) | |
387 | return val | |
d24a34bb | 388 | def __repr__(self): |
2d091820 | 389 | return "<C wxStaticLine instance at %s>" % (self.this,) |
d24a34bb | 390 | class wxStaticLine(wxStaticLinePtr): |
2d091820 RD |
391 | def __init__(self,*_args,**_kwargs): |
392 | self.this = apply(controlsc.new_wxStaticLine,_args,_kwargs) | |
d24a34bb RD |
393 | self.thisown = 1 |
394 | ||
395 | ||
396 | ||
aa2a5b86 RD |
397 | def wxPreStaticLine(*_args,**_kwargs): |
398 | val = wxStaticLinePtr(apply(controlsc.new_wxPreStaticLine,_args,_kwargs)) | |
399 | val.thisown = 1 | |
400 | return val | |
401 | ||
d24a34bb | 402 | |
70551f47 RD |
403 | class wxStaticTextPtr(wxControlPtr): |
404 | def __init__(self,this): | |
405 | self.this = this | |
406 | self.thisown = 0 | |
aa2a5b86 RD |
407 | def Create(self, *_args, **_kwargs): |
408 | val = apply(controlsc.wxStaticText_Create,(self,) + _args, _kwargs) | |
409 | return val | |
2d091820 RD |
410 | def GetLabel(self, *_args, **_kwargs): |
411 | val = apply(controlsc.wxStaticText_GetLabel,(self,) + _args, _kwargs) | |
70551f47 | 412 | return val |
2d091820 RD |
413 | def SetLabel(self, *_args, **_kwargs): |
414 | val = apply(controlsc.wxStaticText_SetLabel,(self,) + _args, _kwargs) | |
70551f47 RD |
415 | return val |
416 | def __repr__(self): | |
2d091820 | 417 | return "<C wxStaticText instance at %s>" % (self.this,) |
70551f47 | 418 | class wxStaticText(wxStaticTextPtr): |
2d091820 RD |
419 | def __init__(self,*_args,**_kwargs): |
420 | self.this = apply(controlsc.new_wxStaticText,_args,_kwargs) | |
70551f47 RD |
421 | self.thisown = 1 |
422 | ||
423 | ||
424 | ||
aa2a5b86 RD |
425 | def wxPreStaticText(*_args,**_kwargs): |
426 | val = wxStaticTextPtr(apply(controlsc.new_wxPreStaticText,_args,_kwargs)) | |
427 | val.thisown = 1 | |
428 | return val | |
429 | ||
70551f47 RD |
430 | |
431 | class wxListBoxPtr(wxControlPtr): | |
432 | def __init__(self,this): | |
433 | self.this = this | |
434 | self.thisown = 0 | |
aa2a5b86 RD |
435 | def Create(self, *_args, **_kwargs): |
436 | val = apply(controlsc.wxListBox_Create,(self,) + _args, _kwargs) | |
437 | return val | |
2d091820 RD |
438 | def Append(self, *_args, **_kwargs): |
439 | val = apply(controlsc.wxListBox_Append,(self,) + _args, _kwargs) | |
70551f47 | 440 | return val |
2d091820 RD |
441 | def Clear(self, *_args, **_kwargs): |
442 | val = apply(controlsc.wxListBox_Clear,(self,) + _args, _kwargs) | |
70551f47 | 443 | return val |
2d091820 RD |
444 | def Delete(self, *_args, **_kwargs): |
445 | val = apply(controlsc.wxListBox_Delete,(self,) + _args, _kwargs) | |
70551f47 | 446 | return val |
2d091820 RD |
447 | def Deselect(self, *_args, **_kwargs): |
448 | val = apply(controlsc.wxListBox_Deselect,(self,) + _args, _kwargs) | |
70551f47 | 449 | return val |
2d091820 RD |
450 | def FindString(self, *_args, **_kwargs): |
451 | val = apply(controlsc.wxListBox_FindString,(self,) + _args, _kwargs) | |
70551f47 | 452 | return val |
2d091820 RD |
453 | def GetSelection(self, *_args, **_kwargs): |
454 | val = apply(controlsc.wxListBox_GetSelection,(self,) + _args, _kwargs) | |
70551f47 | 455 | return val |
2d091820 RD |
456 | def GetSelections(self, *_args, **_kwargs): |
457 | val = apply(controlsc.wxListBox_GetSelections,(self,) + _args, _kwargs) | |
ab9bc19b | 458 | return val |
37f6a977 RD |
459 | def InsertItems(self, *_args, **_kwargs): |
460 | val = apply(controlsc.wxListBox_InsertItems,(self,) + _args, _kwargs) | |
461 | return val | |
2d091820 RD |
462 | def GetString(self, *_args, **_kwargs): |
463 | val = apply(controlsc.wxListBox_GetString,(self,) + _args, _kwargs) | |
70551f47 | 464 | return val |
2d091820 RD |
465 | def GetStringSelection(self, *_args, **_kwargs): |
466 | val = apply(controlsc.wxListBox_GetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 467 | return val |
2c8a649d RD |
468 | def GetCount(self, *_args, **_kwargs): |
469 | val = apply(controlsc.wxListBox_GetCount,(self,) + _args, _kwargs) | |
470 | return val | |
471 | def IsSelected(self, *_args, **_kwargs): | |
472 | val = apply(controlsc.wxListBox_IsSelected,(self,) + _args, _kwargs) | |
70551f47 | 473 | return val |
2d091820 RD |
474 | def Selected(self, *_args, **_kwargs): |
475 | val = apply(controlsc.wxListBox_Selected,(self,) + _args, _kwargs) | |
70551f47 | 476 | return val |
2d091820 RD |
477 | def Set(self, *_args, **_kwargs): |
478 | val = apply(controlsc.wxListBox_Set,(self,) + _args, _kwargs) | |
70551f47 | 479 | return val |
2d091820 RD |
480 | def SetFirstItem(self, *_args, **_kwargs): |
481 | val = apply(controlsc.wxListBox_SetFirstItem,(self,) + _args, _kwargs) | |
70551f47 | 482 | return val |
2d091820 RD |
483 | def SetFirstItemStr(self, *_args, **_kwargs): |
484 | val = apply(controlsc.wxListBox_SetFirstItemStr,(self,) + _args, _kwargs) | |
70551f47 | 485 | return val |
2d091820 RD |
486 | def SetSelection(self, *_args, **_kwargs): |
487 | val = apply(controlsc.wxListBox_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 488 | return val |
2d091820 RD |
489 | def SetString(self, *_args, **_kwargs): |
490 | val = apply(controlsc.wxListBox_SetString,(self,) + _args, _kwargs) | |
70551f47 | 491 | return val |
2d091820 RD |
492 | def SetStringSelection(self, *_args, **_kwargs): |
493 | val = apply(controlsc.wxListBox_SetStringSelection,(self,) + _args, _kwargs) | |
70551f47 RD |
494 | return val |
495 | def __repr__(self): | |
2d091820 | 496 | return "<C wxListBox instance at %s>" % (self.this,) |
2c8a649d | 497 | Number = GetCount |
70551f47 | 498 | class wxListBox(wxListBoxPtr): |
2d091820 RD |
499 | def __init__(self,*_args,**_kwargs): |
500 | self.this = apply(controlsc.new_wxListBox,_args,_kwargs) | |
70551f47 RD |
501 | self.thisown = 1 |
502 | ||
503 | ||
504 | ||
aa2a5b86 RD |
505 | def wxPreListBox(*_args,**_kwargs): |
506 | val = wxListBoxPtr(apply(controlsc.new_wxPreListBox,_args,_kwargs)) | |
507 | val.thisown = 1 | |
508 | return val | |
509 | ||
70551f47 | 510 | |
c95e68d8 RD |
511 | class wxCheckListBoxPtr(wxListBoxPtr): |
512 | def __init__(self,this): | |
513 | self.this = this | |
514 | self.thisown = 0 | |
aa2a5b86 RD |
515 | def Create(self, *_args, **_kwargs): |
516 | val = apply(controlsc.wxCheckListBox_Create,(self,) + _args, _kwargs) | |
517 | return val | |
2d091820 RD |
518 | def IsChecked(self, *_args, **_kwargs): |
519 | val = apply(controlsc.wxCheckListBox_IsChecked,(self,) + _args, _kwargs) | |
c95e68d8 | 520 | return val |
2d091820 RD |
521 | def Check(self, *_args, **_kwargs): |
522 | val = apply(controlsc.wxCheckListBox_Check,(self,) + _args, _kwargs) | |
c95e68d8 | 523 | return val |
d29aba2f RD |
524 | def InsertItems(self, *_args, **_kwargs): |
525 | val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs) | |
526 | return val | |
2d091820 RD |
527 | def GetItemHeight(self, *_args, **_kwargs): |
528 | val = apply(controlsc.wxCheckListBox_GetItemHeight,(self,) + _args, _kwargs) | |
c95e68d8 RD |
529 | return val |
530 | def __repr__(self): | |
2d091820 | 531 | return "<C wxCheckListBox instance at %s>" % (self.this,) |
c95e68d8 | 532 | class wxCheckListBox(wxCheckListBoxPtr): |
2d091820 RD |
533 | def __init__(self,*_args,**_kwargs): |
534 | self.this = apply(controlsc.new_wxCheckListBox,_args,_kwargs) | |
c95e68d8 | 535 | self.thisown = 1 |
c95e68d8 RD |
536 | |
537 | ||
538 | ||
aa2a5b86 RD |
539 | def wxPreCheckListBox(*_args,**_kwargs): |
540 | val = wxCheckListBoxPtr(apply(controlsc.new_wxPreCheckListBox,_args,_kwargs)) | |
541 | val.thisown = 1 | |
542 | return val | |
543 | ||
c95e68d8 | 544 | |
9d6da64a RD |
545 | class wxTextAttrPtr : |
546 | def __init__(self,this): | |
547 | self.this = this | |
548 | self.thisown = 0 | |
549 | def __del__(self,controlsc=controlsc): | |
550 | if self.thisown == 1 : | |
551 | controlsc.delete_wxTextAttr(self) | |
552 | def SetTextColour(self, *_args, **_kwargs): | |
553 | val = apply(controlsc.wxTextAttr_SetTextColour,(self,) + _args, _kwargs) | |
554 | return val | |
555 | def SetBackgroundColour(self, *_args, **_kwargs): | |
556 | val = apply(controlsc.wxTextAttr_SetBackgroundColour,(self,) + _args, _kwargs) | |
557 | return val | |
558 | def SetFont(self, *_args, **_kwargs): | |
559 | val = apply(controlsc.wxTextAttr_SetFont,(self,) + _args, _kwargs) | |
560 | return val | |
561 | def HasTextColour(self, *_args, **_kwargs): | |
562 | val = apply(controlsc.wxTextAttr_HasTextColour,(self,) + _args, _kwargs) | |
563 | return val | |
564 | def HasBackgroundColour(self, *_args, **_kwargs): | |
565 | val = apply(controlsc.wxTextAttr_HasBackgroundColour,(self,) + _args, _kwargs) | |
566 | return val | |
567 | def HasFont(self, *_args, **_kwargs): | |
568 | val = apply(controlsc.wxTextAttr_HasFont,(self,) + _args, _kwargs) | |
569 | return val | |
570 | def GetTextColour(self, *_args, **_kwargs): | |
571 | val = apply(controlsc.wxTextAttr_GetTextColour,(self,) + _args, _kwargs) | |
572 | if val: val = wxColourPtr(val) | |
573 | return val | |
574 | def GetBackgroundColour(self, *_args, **_kwargs): | |
575 | val = apply(controlsc.wxTextAttr_GetBackgroundColour,(self,) + _args, _kwargs) | |
576 | if val: val = wxColourPtr(val) | |
577 | return val | |
578 | def GetFont(self, *_args, **_kwargs): | |
579 | val = apply(controlsc.wxTextAttr_GetFont,(self,) + _args, _kwargs) | |
580 | if val: val = wxFontPtr(val) | |
581 | return val | |
582 | def __repr__(self): | |
583 | return "<C wxTextAttr instance at %s>" % (self.this,) | |
584 | class wxTextAttr(wxTextAttrPtr): | |
585 | def __init__(self,*_args,**_kwargs): | |
586 | self.this = apply(controlsc.new_wxTextAttr,_args,_kwargs) | |
587 | self.thisown = 1 | |
588 | ||
589 | ||
590 | ||
591 | ||
70551f47 RD |
592 | class wxTextCtrlPtr(wxControlPtr): |
593 | def __init__(self,this): | |
594 | self.this = this | |
595 | self.thisown = 0 | |
aa2a5b86 RD |
596 | def Create(self, *_args, **_kwargs): |
597 | val = apply(controlsc.wxTextCtrl_Create,(self,) + _args, _kwargs) | |
598 | return val | |
2d091820 RD |
599 | def Clear(self, *_args, **_kwargs): |
600 | val = apply(controlsc.wxTextCtrl_Clear,(self,) + _args, _kwargs) | |
70551f47 | 601 | return val |
2d091820 RD |
602 | def Copy(self, *_args, **_kwargs): |
603 | val = apply(controlsc.wxTextCtrl_Copy,(self,) + _args, _kwargs) | |
70551f47 | 604 | return val |
2d091820 RD |
605 | def Cut(self, *_args, **_kwargs): |
606 | val = apply(controlsc.wxTextCtrl_Cut,(self,) + _args, _kwargs) | |
70551f47 | 607 | return val |
2d091820 RD |
608 | def DiscardEdits(self, *_args, **_kwargs): |
609 | val = apply(controlsc.wxTextCtrl_DiscardEdits,(self,) + _args, _kwargs) | |
70551f47 | 610 | return val |
2d091820 RD |
611 | def GetInsertionPoint(self, *_args, **_kwargs): |
612 | val = apply(controlsc.wxTextCtrl_GetInsertionPoint,(self,) + _args, _kwargs) | |
70551f47 | 613 | return val |
2d091820 RD |
614 | def GetLastPosition(self, *_args, **_kwargs): |
615 | val = apply(controlsc.wxTextCtrl_GetLastPosition,(self,) + _args, _kwargs) | |
70551f47 | 616 | return val |
2d091820 RD |
617 | def GetLineLength(self, *_args, **_kwargs): |
618 | val = apply(controlsc.wxTextCtrl_GetLineLength,(self,) + _args, _kwargs) | |
faf3cb35 | 619 | return val |
2d091820 RD |
620 | def GetLineText(self, *_args, **_kwargs): |
621 | val = apply(controlsc.wxTextCtrl_GetLineText,(self,) + _args, _kwargs) | |
faf3cb35 | 622 | return val |
2d091820 RD |
623 | def GetNumberOfLines(self, *_args, **_kwargs): |
624 | val = apply(controlsc.wxTextCtrl_GetNumberOfLines,(self,) + _args, _kwargs) | |
faf3cb35 | 625 | return val |
2d091820 RD |
626 | def GetValue(self, *_args, **_kwargs): |
627 | val = apply(controlsc.wxTextCtrl_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 628 | return val |
2d091820 RD |
629 | def IsModified(self, *_args, **_kwargs): |
630 | val = apply(controlsc.wxTextCtrl_IsModified,(self,) + _args, _kwargs) | |
70551f47 | 631 | return val |
2d091820 RD |
632 | def LoadFile(self, *_args, **_kwargs): |
633 | val = apply(controlsc.wxTextCtrl_LoadFile,(self,) + _args, _kwargs) | |
70551f47 | 634 | return val |
2d091820 RD |
635 | def Paste(self, *_args, **_kwargs): |
636 | val = apply(controlsc.wxTextCtrl_Paste,(self,) + _args, _kwargs) | |
70551f47 | 637 | return val |
2d091820 RD |
638 | def PositionToXY(self, *_args, **_kwargs): |
639 | val = apply(controlsc.wxTextCtrl_PositionToXY,(self,) + _args, _kwargs) | |
faf3cb35 | 640 | return val |
2d091820 RD |
641 | def Remove(self, *_args, **_kwargs): |
642 | val = apply(controlsc.wxTextCtrl_Remove,(self,) + _args, _kwargs) | |
70551f47 | 643 | return val |
2d091820 RD |
644 | def Replace(self, *_args, **_kwargs): |
645 | val = apply(controlsc.wxTextCtrl_Replace,(self,) + _args, _kwargs) | |
70551f47 | 646 | return val |
2d091820 RD |
647 | def SaveFile(self, *_args, **_kwargs): |
648 | val = apply(controlsc.wxTextCtrl_SaveFile,(self,) + _args, _kwargs) | |
70551f47 | 649 | return val |
2d091820 RD |
650 | def SetEditable(self, *_args, **_kwargs): |
651 | val = apply(controlsc.wxTextCtrl_SetEditable,(self,) + _args, _kwargs) | |
70551f47 | 652 | return val |
2d091820 RD |
653 | def SetInsertionPoint(self, *_args, **_kwargs): |
654 | val = apply(controlsc.wxTextCtrl_SetInsertionPoint,(self,) + _args, _kwargs) | |
70551f47 | 655 | return val |
2d091820 RD |
656 | def SetInsertionPointEnd(self, *_args, **_kwargs): |
657 | val = apply(controlsc.wxTextCtrl_SetInsertionPointEnd,(self,) + _args, _kwargs) | |
70551f47 | 658 | return val |
2d091820 RD |
659 | def SetSelection(self, *_args, **_kwargs): |
660 | val = apply(controlsc.wxTextCtrl_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 661 | return val |
2d091820 RD |
662 | def SetValue(self, *_args, **_kwargs): |
663 | val = apply(controlsc.wxTextCtrl_SetValue,(self,) + _args, _kwargs) | |
70551f47 | 664 | return val |
2d091820 RD |
665 | def ShowPosition(self, *_args, **_kwargs): |
666 | val = apply(controlsc.wxTextCtrl_ShowPosition,(self,) + _args, _kwargs) | |
70551f47 | 667 | return val |
2d091820 RD |
668 | def WriteText(self, *_args, **_kwargs): |
669 | val = apply(controlsc.wxTextCtrl_WriteText,(self,) + _args, _kwargs) | |
70551f47 | 670 | return val |
2d091820 RD |
671 | def AppendText(self, *_args, **_kwargs): |
672 | val = apply(controlsc.wxTextCtrl_AppendText,(self,) + _args, _kwargs) | |
ab9bc19b | 673 | return val |
2d091820 RD |
674 | def XYToPosition(self, *_args, **_kwargs): |
675 | val = apply(controlsc.wxTextCtrl_XYToPosition,(self,) + _args, _kwargs) | |
faf3cb35 | 676 | return val |
2d091820 RD |
677 | def CanCopy(self, *_args, **_kwargs): |
678 | val = apply(controlsc.wxTextCtrl_CanCopy,(self,) + _args, _kwargs) | |
53920141 | 679 | return val |
2d091820 RD |
680 | def CanCut(self, *_args, **_kwargs): |
681 | val = apply(controlsc.wxTextCtrl_CanCut,(self,) + _args, _kwargs) | |
53920141 | 682 | return val |
2d091820 RD |
683 | def CanPaste(self, *_args, **_kwargs): |
684 | val = apply(controlsc.wxTextCtrl_CanPaste,(self,) + _args, _kwargs) | |
53920141 | 685 | return val |
2d091820 RD |
686 | def CanRedo(self, *_args, **_kwargs): |
687 | val = apply(controlsc.wxTextCtrl_CanRedo,(self,) + _args, _kwargs) | |
53920141 | 688 | return val |
2d091820 RD |
689 | def CanUndo(self, *_args, **_kwargs): |
690 | val = apply(controlsc.wxTextCtrl_CanUndo,(self,) + _args, _kwargs) | |
53920141 | 691 | return val |
2d091820 RD |
692 | def GetSelection(self, *_args, **_kwargs): |
693 | val = apply(controlsc.wxTextCtrl_GetSelection,(self,) + _args, _kwargs) | |
53920141 | 694 | return val |
2d091820 RD |
695 | def IsEditable(self, *_args, **_kwargs): |
696 | val = apply(controlsc.wxTextCtrl_IsEditable,(self,) + _args, _kwargs) | |
53920141 | 697 | return val |
4120ef2b RD |
698 | def Undo(self, *_args, **_kwargs): |
699 | val = apply(controlsc.wxTextCtrl_Undo,(self,) + _args, _kwargs) | |
700 | return val | |
701 | def Redo(self, *_args, **_kwargs): | |
702 | val = apply(controlsc.wxTextCtrl_Redo,(self,) + _args, _kwargs) | |
703 | return val | |
9d6da64a RD |
704 | def SetStyle(self, *_args, **_kwargs): |
705 | val = apply(controlsc.wxTextCtrl_SetStyle,(self,) + _args, _kwargs) | |
706 | return val | |
707 | def SetDefaultStyle(self, *_args, **_kwargs): | |
708 | val = apply(controlsc.wxTextCtrl_SetDefaultStyle,(self,) + _args, _kwargs) | |
709 | return val | |
710 | def GetDefaultStyle(self, *_args, **_kwargs): | |
711 | val = apply(controlsc.wxTextCtrl_GetDefaultStyle,(self,) + _args, _kwargs) | |
712 | if val: val = wxTextAttrPtr(val) | |
713 | return val | |
aa2a5b86 RD |
714 | def SetMaxLength(self, *_args, **_kwargs): |
715 | val = apply(controlsc.wxTextCtrl_SetMaxLength,(self,) + _args, _kwargs) | |
716 | return val | |
4120ef2b RD |
717 | def write(self, *_args, **_kwargs): |
718 | val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs) | |
719 | return val | |
70551f47 | 720 | def __repr__(self): |
2d091820 | 721 | return "<C wxTextCtrl instance at %s>" % (self.this,) |
70551f47 | 722 | class wxTextCtrl(wxTextCtrlPtr): |
2d091820 RD |
723 | def __init__(self,*_args,**_kwargs): |
724 | self.this = apply(controlsc.new_wxTextCtrl,_args,_kwargs) | |
70551f47 RD |
725 | self.thisown = 1 |
726 | ||
727 | ||
728 | ||
aa2a5b86 RD |
729 | def wxPreTextCtrl(*_args,**_kwargs): |
730 | val = wxTextCtrlPtr(apply(controlsc.new_wxPreTextCtrl,_args,_kwargs)) | |
731 | val.thisown = 1 | |
732 | return val | |
733 | ||
70551f47 RD |
734 | |
735 | class wxScrollBarPtr(wxControlPtr): | |
736 | def __init__(self,this): | |
737 | self.this = this | |
738 | self.thisown = 0 | |
aa2a5b86 RD |
739 | def Create(self, *_args, **_kwargs): |
740 | val = apply(controlsc.wxScrollBar_Create,(self,) + _args, _kwargs) | |
741 | return val | |
2d091820 RD |
742 | def GetRange(self, *_args, **_kwargs): |
743 | val = apply(controlsc.wxScrollBar_GetRange,(self,) + _args, _kwargs) | |
70551f47 | 744 | return val |
2d091820 RD |
745 | def GetPageSize(self, *_args, **_kwargs): |
746 | val = apply(controlsc.wxScrollBar_GetPageSize,(self,) + _args, _kwargs) | |
70551f47 | 747 | return val |
2d091820 RD |
748 | def GetThumbPosition(self, *_args, **_kwargs): |
749 | val = apply(controlsc.wxScrollBar_GetThumbPosition,(self,) + _args, _kwargs) | |
70551f47 | 750 | return val |
2d091820 RD |
751 | def GetThumbSize(self, *_args, **_kwargs): |
752 | val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs) | |
70551f47 | 753 | return val |
2fc99549 RD |
754 | def GetThumbLength(self, *_args, **_kwargs): |
755 | val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs) | |
756 | return val | |
2d091820 RD |
757 | def SetThumbPosition(self, *_args, **_kwargs): |
758 | val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs) | |
70551f47 | 759 | return val |
2d091820 RD |
760 | def SetScrollbar(self, *_args, **_kwargs): |
761 | val = apply(controlsc.wxScrollBar_SetScrollbar,(self,) + _args, _kwargs) | |
70551f47 RD |
762 | return val |
763 | def __repr__(self): | |
2d091820 | 764 | return "<C wxScrollBar instance at %s>" % (self.this,) |
70551f47 | 765 | class wxScrollBar(wxScrollBarPtr): |
2d091820 RD |
766 | def __init__(self,*_args,**_kwargs): |
767 | self.this = apply(controlsc.new_wxScrollBar,_args,_kwargs) | |
70551f47 RD |
768 | self.thisown = 1 |
769 | ||
770 | ||
771 | ||
aa2a5b86 RD |
772 | def wxPreScrollBar(*_args,**_kwargs): |
773 | val = wxScrollBarPtr(apply(controlsc.new_wxPreScrollBar,_args,_kwargs)) | |
774 | val.thisown = 1 | |
775 | return val | |
776 | ||
70551f47 | 777 | |
62bd0874 RD |
778 | class wxSpinButtonPtr(wxControlPtr): |
779 | def __init__(self,this): | |
780 | self.this = this | |
781 | self.thisown = 0 | |
aa2a5b86 RD |
782 | def Create(self, *_args, **_kwargs): |
783 | val = apply(controlsc.wxSpinButton_Create,(self,) + _args, _kwargs) | |
784 | return val | |
2d091820 RD |
785 | def GetMax(self, *_args, **_kwargs): |
786 | val = apply(controlsc.wxSpinButton_GetMax,(self,) + _args, _kwargs) | |
62bd0874 | 787 | return val |
2d091820 RD |
788 | def GetMin(self, *_args, **_kwargs): |
789 | val = apply(controlsc.wxSpinButton_GetMin,(self,) + _args, _kwargs) | |
62bd0874 | 790 | return val |
2d091820 RD |
791 | def GetValue(self, *_args, **_kwargs): |
792 | val = apply(controlsc.wxSpinButton_GetValue,(self,) + _args, _kwargs) | |
62bd0874 | 793 | return val |
2d091820 RD |
794 | def SetRange(self, *_args, **_kwargs): |
795 | val = apply(controlsc.wxSpinButton_SetRange,(self,) + _args, _kwargs) | |
62bd0874 | 796 | return val |
2d091820 RD |
797 | def SetValue(self, *_args, **_kwargs): |
798 | val = apply(controlsc.wxSpinButton_SetValue,(self,) + _args, _kwargs) | |
62bd0874 RD |
799 | return val |
800 | def __repr__(self): | |
2d091820 | 801 | return "<C wxSpinButton instance at %s>" % (self.this,) |
62bd0874 | 802 | class wxSpinButton(wxSpinButtonPtr): |
2d091820 RD |
803 | def __init__(self,*_args,**_kwargs): |
804 | self.this = apply(controlsc.new_wxSpinButton,_args,_kwargs) | |
62bd0874 RD |
805 | self.thisown = 1 |
806 | ||
807 | ||
808 | ||
aa2a5b86 RD |
809 | def wxPreSpinButton(*_args,**_kwargs): |
810 | val = wxSpinButtonPtr(apply(controlsc.new_wxPreSpinButton,_args,_kwargs)) | |
811 | val.thisown = 1 | |
812 | return val | |
813 | ||
62bd0874 | 814 | |
70551f47 RD |
815 | class wxStaticBitmapPtr(wxControlPtr): |
816 | def __init__(self,this): | |
817 | self.this = this | |
818 | self.thisown = 0 | |
aa2a5b86 RD |
819 | def Create(self, *_args, **_kwargs): |
820 | val = apply(controlsc.wxStaticBitmap_Create,(self,) + _args, _kwargs) | |
821 | return val | |
2d091820 RD |
822 | def GetBitmap(self, *_args, **_kwargs): |
823 | val = apply(controlsc.wxStaticBitmap_GetBitmap,(self,) + _args, _kwargs) | |
824 | if val: val = wxBitmapPtr(val) | |
70551f47 | 825 | return val |
2d091820 RD |
826 | def SetBitmap(self, *_args, **_kwargs): |
827 | val = apply(controlsc.wxStaticBitmap_SetBitmap,(self,) + _args, _kwargs) | |
70551f47 | 828 | return val |
2d091820 RD |
829 | def SetIcon(self, *_args, **_kwargs): |
830 | val = apply(controlsc.wxStaticBitmap_SetIcon,(self,) + _args, _kwargs) | |
8bf5d46e | 831 | return val |
70551f47 | 832 | def __repr__(self): |
2d091820 | 833 | return "<C wxStaticBitmap instance at %s>" % (self.this,) |
70551f47 | 834 | class wxStaticBitmap(wxStaticBitmapPtr): |
2d091820 RD |
835 | def __init__(self,*_args,**_kwargs): |
836 | self.this = apply(controlsc.new_wxStaticBitmap,_args,_kwargs) | |
70551f47 RD |
837 | self.thisown = 1 |
838 | ||
839 | ||
840 | ||
aa2a5b86 RD |
841 | def wxPreStaticBitmap(*_args,**_kwargs): |
842 | val = wxStaticBitmapPtr(apply(controlsc.new_wxPreStaticBitmap,_args,_kwargs)) | |
843 | val.thisown = 1 | |
844 | return val | |
845 | ||
70551f47 RD |
846 | |
847 | class wxRadioBoxPtr(wxControlPtr): | |
848 | def __init__(self,this): | |
849 | self.this = this | |
850 | self.thisown = 0 | |
aa2a5b86 RD |
851 | def Create(self, *_args, **_kwargs): |
852 | val = apply(controlsc.wxRadioBox_Create,(self,) + _args, _kwargs) | |
853 | return val | |
2d091820 RD |
854 | def Enable(self, *_args, **_kwargs): |
855 | val = apply(controlsc.wxRadioBox_Enable,(self,) + _args, _kwargs) | |
70551f47 | 856 | return val |
2d091820 RD |
857 | def EnableItem(self, *_args, **_kwargs): |
858 | val = apply(controlsc.wxRadioBox_EnableItem,(self,) + _args, _kwargs) | |
70551f47 | 859 | return val |
2d091820 RD |
860 | def FindString(self, *_args, **_kwargs): |
861 | val = apply(controlsc.wxRadioBox_FindString,(self,) + _args, _kwargs) | |
70551f47 | 862 | return val |
2c8a649d RD |
863 | def GetString(self, *_args, **_kwargs): |
864 | val = apply(controlsc.wxRadioBox_GetString,(self,) + _args, _kwargs) | |
865 | return val | |
2d091820 RD |
866 | def GetItemLabel(self, *_args, **_kwargs): |
867 | val = apply(controlsc.wxRadioBox_GetItemLabel,(self,) + _args, _kwargs) | |
70551f47 | 868 | return val |
2c8a649d RD |
869 | def SetItemLabel(self, *_args, **_kwargs): |
870 | val = apply(controlsc.wxRadioBox_SetItemLabel,(self,) + _args, _kwargs) | |
871 | return val | |
2d091820 RD |
872 | def GetSelection(self, *_args, **_kwargs): |
873 | val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs) | |
70551f47 | 874 | return val |
2d091820 RD |
875 | def GetStringSelection(self, *_args, **_kwargs): |
876 | val = apply(controlsc.wxRadioBox_GetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 877 | return val |
2c8a649d RD |
878 | def GetCount(self, *_args, **_kwargs): |
879 | val = apply(controlsc.wxRadioBox_GetCount,(self,) + _args, _kwargs) | |
70551f47 | 880 | return val |
2d091820 RD |
881 | def SetSelection(self, *_args, **_kwargs): |
882 | val = apply(controlsc.wxRadioBox_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 883 | return val |
2d091820 RD |
884 | def SetStringSelection(self, *_args, **_kwargs): |
885 | val = apply(controlsc.wxRadioBox_SetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 886 | return val |
2d091820 RD |
887 | def Show(self, *_args, **_kwargs): |
888 | val = apply(controlsc.wxRadioBox_Show,(self,) + _args, _kwargs) | |
70551f47 | 889 | return val |
2d091820 RD |
890 | def ShowItem(self, *_args, **_kwargs): |
891 | val = apply(controlsc.wxRadioBox_ShowItem,(self,) + _args, _kwargs) | |
70551f47 RD |
892 | return val |
893 | def __repr__(self): | |
2d091820 | 894 | return "<C wxRadioBox instance at %s>" % (self.this,) |
2c8a649d | 895 | Number = GetCount |
70551f47 | 896 | class wxRadioBox(wxRadioBoxPtr): |
2d091820 RD |
897 | def __init__(self,*_args,**_kwargs): |
898 | self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs) | |
70551f47 RD |
899 | self.thisown = 1 |
900 | ||
901 | ||
902 | ||
aa2a5b86 RD |
903 | def wxPreRadioBox(*_args,**_kwargs): |
904 | val = wxRadioBoxPtr(apply(controlsc.new_wxPreRadioBox,_args,_kwargs)) | |
905 | val.thisown = 1 | |
906 | return val | |
907 | ||
70551f47 RD |
908 | |
909 | class wxRadioButtonPtr(wxControlPtr): | |
910 | def __init__(self,this): | |
911 | self.this = this | |
912 | self.thisown = 0 | |
aa2a5b86 RD |
913 | def Create(self, *_args, **_kwargs): |
914 | val = apply(controlsc.wxRadioButton_Create,(self,) + _args, _kwargs) | |
915 | return val | |
2d091820 RD |
916 | def GetValue(self, *_args, **_kwargs): |
917 | val = apply(controlsc.wxRadioButton_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 918 | return val |
2d091820 RD |
919 | def SetValue(self, *_args, **_kwargs): |
920 | val = apply(controlsc.wxRadioButton_SetValue,(self,) + _args, _kwargs) | |
70551f47 RD |
921 | return val |
922 | def __repr__(self): | |
2d091820 | 923 | return "<C wxRadioButton instance at %s>" % (self.this,) |
70551f47 | 924 | class wxRadioButton(wxRadioButtonPtr): |
2d091820 RD |
925 | def __init__(self,*_args,**_kwargs): |
926 | self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs) | |
70551f47 RD |
927 | self.thisown = 1 |
928 | ||
929 | ||
930 | ||
aa2a5b86 RD |
931 | def wxPreRadioButton(*_args,**_kwargs): |
932 | val = wxRadioButtonPtr(apply(controlsc.new_wxPreRadioButton,_args,_kwargs)) | |
933 | val.thisown = 1 | |
934 | return val | |
935 | ||
70551f47 RD |
936 | |
937 | class wxSliderPtr(wxControlPtr): | |
938 | def __init__(self,this): | |
939 | self.this = this | |
940 | self.thisown = 0 | |
aa2a5b86 RD |
941 | def Create(self, *_args, **_kwargs): |
942 | val = apply(controlsc.wxSlider_Create,(self,) + _args, _kwargs) | |
943 | return val | |
2d091820 RD |
944 | def ClearSel(self, *_args, **_kwargs): |
945 | val = apply(controlsc.wxSlider_ClearSel,(self,) + _args, _kwargs) | |
70551f47 | 946 | return val |
2d091820 RD |
947 | def ClearTicks(self, *_args, **_kwargs): |
948 | val = apply(controlsc.wxSlider_ClearTicks,(self,) + _args, _kwargs) | |
70551f47 | 949 | return val |
2d091820 RD |
950 | def GetLineSize(self, *_args, **_kwargs): |
951 | val = apply(controlsc.wxSlider_GetLineSize,(self,) + _args, _kwargs) | |
70551f47 | 952 | return val |
2d091820 RD |
953 | def GetMax(self, *_args, **_kwargs): |
954 | val = apply(controlsc.wxSlider_GetMax,(self,) + _args, _kwargs) | |
70551f47 | 955 | return val |
2d091820 RD |
956 | def GetMin(self, *_args, **_kwargs): |
957 | val = apply(controlsc.wxSlider_GetMin,(self,) + _args, _kwargs) | |
70551f47 | 958 | return val |
2d091820 RD |
959 | def GetPageSize(self, *_args, **_kwargs): |
960 | val = apply(controlsc.wxSlider_GetPageSize,(self,) + _args, _kwargs) | |
70551f47 | 961 | return val |
2d091820 RD |
962 | def GetSelEnd(self, *_args, **_kwargs): |
963 | val = apply(controlsc.wxSlider_GetSelEnd,(self,) + _args, _kwargs) | |
70551f47 | 964 | return val |
2d091820 RD |
965 | def GetSelStart(self, *_args, **_kwargs): |
966 | val = apply(controlsc.wxSlider_GetSelStart,(self,) + _args, _kwargs) | |
70551f47 | 967 | return val |
2d091820 RD |
968 | def GetThumbLength(self, *_args, **_kwargs): |
969 | val = apply(controlsc.wxSlider_GetThumbLength,(self,) + _args, _kwargs) | |
70551f47 | 970 | return val |
2d091820 RD |
971 | def GetTickFreq(self, *_args, **_kwargs): |
972 | val = apply(controlsc.wxSlider_GetTickFreq,(self,) + _args, _kwargs) | |
70551f47 | 973 | return val |
2d091820 RD |
974 | def GetValue(self, *_args, **_kwargs): |
975 | val = apply(controlsc.wxSlider_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 976 | return val |
2d091820 RD |
977 | def SetRange(self, *_args, **_kwargs): |
978 | val = apply(controlsc.wxSlider_SetRange,(self,) + _args, _kwargs) | |
70551f47 | 979 | return val |
2d091820 RD |
980 | def SetTickFreq(self, *_args, **_kwargs): |
981 | val = apply(controlsc.wxSlider_SetTickFreq,(self,) + _args, _kwargs) | |
70551f47 | 982 | return val |
2d091820 RD |
983 | def SetLineSize(self, *_args, **_kwargs): |
984 | val = apply(controlsc.wxSlider_SetLineSize,(self,) + _args, _kwargs) | |
70551f47 | 985 | return val |
2d091820 RD |
986 | def SetPageSize(self, *_args, **_kwargs): |
987 | val = apply(controlsc.wxSlider_SetPageSize,(self,) + _args, _kwargs) | |
70551f47 | 988 | return val |
2d091820 RD |
989 | def SetSelection(self, *_args, **_kwargs): |
990 | val = apply(controlsc.wxSlider_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 991 | return val |
2d091820 RD |
992 | def SetThumbLength(self, *_args, **_kwargs): |
993 | val = apply(controlsc.wxSlider_SetThumbLength,(self,) + _args, _kwargs) | |
70551f47 | 994 | return val |
2d091820 RD |
995 | def SetTick(self, *_args, **_kwargs): |
996 | val = apply(controlsc.wxSlider_SetTick,(self,) + _args, _kwargs) | |
70551f47 | 997 | return val |
2d091820 RD |
998 | def SetValue(self, *_args, **_kwargs): |
999 | val = apply(controlsc.wxSlider_SetValue,(self,) + _args, _kwargs) | |
70551f47 RD |
1000 | return val |
1001 | def __repr__(self): | |
2d091820 | 1002 | return "<C wxSlider instance at %s>" % (self.this,) |
70551f47 | 1003 | class wxSlider(wxSliderPtr): |
2d091820 RD |
1004 | def __init__(self,*_args,**_kwargs): |
1005 | self.this = apply(controlsc.new_wxSlider,_args,_kwargs) | |
70551f47 | 1006 | self.thisown = 1 |
f6bcfd97 BP |
1007 | |
1008 | ||
1009 | ||
aa2a5b86 RD |
1010 | def wxPreSlider(*_args,**_kwargs): |
1011 | val = wxSliderPtr(apply(controlsc.new_wxPreSlider,_args,_kwargs)) | |
1012 | val.thisown = 1 | |
1013 | return val | |
1014 | ||
f6bcfd97 BP |
1015 | |
1016 | class wxSpinCtrlPtr(wxSpinButtonPtr): | |
1017 | def __init__(self,this): | |
1018 | self.this = this | |
1019 | self.thisown = 0 | |
aa2a5b86 RD |
1020 | def Create(self, *_args, **_kwargs): |
1021 | val = apply(controlsc.wxSpinCtrl_Create,(self,) + _args, _kwargs) | |
1022 | return val | |
c368d904 RD |
1023 | def GetMax(self, *_args, **_kwargs): |
1024 | val = apply(controlsc.wxSpinCtrl_GetMax,(self,) + _args, _kwargs) | |
1025 | return val | |
1026 | def GetMin(self, *_args, **_kwargs): | |
1027 | val = apply(controlsc.wxSpinCtrl_GetMin,(self,) + _args, _kwargs) | |
1028 | return val | |
1029 | def GetValue(self, *_args, **_kwargs): | |
1030 | val = apply(controlsc.wxSpinCtrl_GetValue,(self,) + _args, _kwargs) | |
1031 | return val | |
1032 | def SetRange(self, *_args, **_kwargs): | |
1033 | val = apply(controlsc.wxSpinCtrl_SetRange,(self,) + _args, _kwargs) | |
1034 | return val | |
1035 | def SetValue(self, *_args, **_kwargs): | |
1036 | val = apply(controlsc.wxSpinCtrl_SetValue,(self,) + _args, _kwargs) | |
1037 | return val | |
f6bcfd97 BP |
1038 | def __repr__(self): |
1039 | return "<C wxSpinCtrl instance at %s>" % (self.this,) | |
1040 | class wxSpinCtrl(wxSpinCtrlPtr): | |
1041 | def __init__(self,*_args,**_kwargs): | |
1042 | self.this = apply(controlsc.new_wxSpinCtrl,_args,_kwargs) | |
1043 | self.thisown = 1 | |
70551f47 RD |
1044 | |
1045 | ||
1046 | ||
aa2a5b86 RD |
1047 | def wxPreSpinCtrl(*_args,**_kwargs): |
1048 | val = wxSpinCtrlPtr(apply(controlsc.new_wxPreSpinCtrl,_args,_kwargs)) | |
1049 | val.thisown = 1 | |
1050 | return val | |
1051 | ||
70551f47 | 1052 | |
7a446686 RD |
1053 | class wxToggleButtonPtr(wxControlPtr): |
1054 | def __init__(self,this): | |
1055 | self.this = this | |
1056 | self.thisown = 0 | |
aa2a5b86 RD |
1057 | def Create(self, *_args, **_kwargs): |
1058 | val = apply(controlsc.wxToggleButton_Create,(self,) + _args, _kwargs) | |
1059 | return val | |
7a446686 RD |
1060 | def SetValue(self, *_args, **_kwargs): |
1061 | val = apply(controlsc.wxToggleButton_SetValue,(self,) + _args, _kwargs) | |
1062 | return val | |
1063 | def GetValue(self, *_args, **_kwargs): | |
1064 | val = apply(controlsc.wxToggleButton_GetValue,(self,) + _args, _kwargs) | |
1065 | return val | |
1066 | def SetLabel(self, *_args, **_kwargs): | |
1067 | val = apply(controlsc.wxToggleButton_SetLabel,(self,) + _args, _kwargs) | |
1068 | return val | |
1069 | def __repr__(self): | |
1070 | return "<C wxToggleButton instance at %s>" % (self.this,) | |
1071 | class wxToggleButton(wxToggleButtonPtr): | |
1072 | def __init__(self,*_args,**_kwargs): | |
1073 | self.this = apply(controlsc.new_wxToggleButton,_args,_kwargs) | |
1074 | self.thisown = 1 | |
1075 | ||
1076 | ||
1077 | ||
aa2a5b86 RD |
1078 | def wxPreToggleButton(*_args,**_kwargs): |
1079 | val = wxToggleButtonPtr(apply(controlsc.new_wxPreToggleButton,_args,_kwargs)) | |
1080 | val.thisown = 1 | |
1081 | return val | |
1082 | ||
7a446686 | 1083 | |
70551f47 RD |
1084 | |
1085 | ||
1086 | #-------------- FUNCTION WRAPPERS ------------------ | |
1087 | ||
56f5d962 RD |
1088 | def wxButton_GetDefaultSize(*_args, **_kwargs): |
1089 | val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs) | |
1090 | if val: val = wxSizePtr(val); val.thisown = 1 | |
1091 | return val | |
1092 | ||
70551f47 RD |
1093 | |
1094 | ||
1095 | #-------------- VARIABLE WRAPPERS ------------------ | |
1096 | ||
37f6a977 RD |
1097 | cvar = controlsc.cvar |
1098 | wxDefaultValidator = wxValidatorPtr(controlsc.cvar.wxDefaultValidator) | |
7a446686 | 1099 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = controlsc.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED |