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