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