1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
14 class wxControlPtr(wxWindowPtr
):
15 def __init__(self
,this
):
18 def Create(self
, *_args
, **_kwargs
):
19 val
= apply(controlsc
.wxControl_Create
,(self
,) + _args
, _kwargs
)
21 def Command(self
, *_args
, **_kwargs
):
22 val
= apply(controlsc
.wxControl_Command
,(self
,) + _args
, _kwargs
)
24 def GetLabel(self
, *_args
, **_kwargs
):
25 val
= apply(controlsc
.wxControl_GetLabel
,(self
,) + _args
, _kwargs
)
27 def SetLabel(self
, *_args
, **_kwargs
):
28 val
= apply(controlsc
.wxControl_SetLabel
,(self
,) + _args
, _kwargs
)
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
)
39 def wxPreControl(*_args
,**_kwargs
):
40 val
= wxControlPtr(apply(controlsc
.new_wxPreControl
,_args
,_kwargs
))
45 class wxControlWithItemsPtr(wxControlPtr
):
46 def __init__(self
,this
):
49 def Delete(self
, *_args
, **_kwargs
):
50 val
= apply(controlsc
.wxControlWithItems_Delete
,(self
,) + _args
, _kwargs
)
52 def GetCount(self
, *_args
, **_kwargs
):
53 val
= apply(controlsc
.wxControlWithItems_GetCount
,(self
,) + _args
, _kwargs
)
55 def GetString(self
, *_args
, **_kwargs
):
56 val
= apply(controlsc
.wxControlWithItems_GetString
,(self
,) + _args
, _kwargs
)
58 def SetString(self
, *_args
, **_kwargs
):
59 val
= apply(controlsc
.wxControlWithItems_SetString
,(self
,) + _args
, _kwargs
)
61 def FindString(self
, *_args
, **_kwargs
):
62 val
= apply(controlsc
.wxControlWithItems_FindString
,(self
,) + _args
, _kwargs
)
64 def Select(self
, *_args
, **_kwargs
):
65 val
= apply(controlsc
.wxControlWithItems_Select
,(self
,) + _args
, _kwargs
)
67 def GetSelection(self
, *_args
, **_kwargs
):
68 val
= apply(controlsc
.wxControlWithItems_GetSelection
,(self
,) + _args
, _kwargs
)
70 def GetStringSelection(self
, *_args
, **_kwargs
):
71 val
= apply(controlsc
.wxControlWithItems_GetStringSelection
,(self
,) + _args
, _kwargs
)
73 def Append(self
, *_args
, **_kwargs
):
74 val
= apply(controlsc
.wxControlWithItems_Append
,(self
,) + _args
, _kwargs
)
76 def GetClientData(self
, *_args
, **_kwargs
):
77 val
= apply(controlsc
.wxControlWithItems_GetClientData
,(self
,) + _args
, _kwargs
)
79 def SetClientData(self
, *_args
, **_kwargs
):
80 val
= apply(controlsc
.wxControlWithItems_SetClientData
,(self
,) + _args
, _kwargs
)
83 return "<C wxControlWithItems instance at %s>" % (self
.this
,)
85 class wxControlWithItems(wxControlWithItemsPtr
):
86 def __init__(self
,this
):
92 class wxButtonPtr(wxControlPtr
):
93 def __init__(self
,this
):
96 def Create(self
, *_args
, **_kwargs
):
97 val
= apply(controlsc
.wxButton_Create
,(self
,) + _args
, _kwargs
)
99 def SetDefault(self
, *_args
, **_kwargs
):
100 val
= apply(controlsc
.wxButton_SetDefault
,(self
,) + _args
, _kwargs
)
102 def SetBackgroundColour(self
, *_args
, **_kwargs
):
103 val
= apply(controlsc
.wxButton_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
105 def SetForegroundColour(self
, *_args
, **_kwargs
):
106 val
= apply(controlsc
.wxButton_SetForegroundColour
,(self
,) + _args
, _kwargs
)
109 return "<C wxButton instance at %s>" % (self
.this
,)
110 class wxButton(wxButtonPtr
):
111 def __init__(self
,*_args
,**_kwargs
):
112 self
.this
= apply(controlsc
.new_wxButton
,_args
,_kwargs
)
117 def wxPreButton(*_args
,**_kwargs
):
118 val
= wxButtonPtr(apply(controlsc
.new_wxPreButton
,_args
,_kwargs
))
123 class wxBitmapButtonPtr(wxButtonPtr
):
124 def __init__(self
,this
):
127 def Create(self
, *_args
, **_kwargs
):
128 val
= apply(controlsc
.wxBitmapButton_Create
,(self
,) + _args
, _kwargs
)
130 def GetBitmapLabel(self
, *_args
, **_kwargs
):
131 val
= apply(controlsc
.wxBitmapButton_GetBitmapLabel
,(self
,) + _args
, _kwargs
)
132 if val
: val
= wxBitmapPtr(val
)
134 def GetBitmapDisabled(self
, *_args
, **_kwargs
):
135 val
= apply(controlsc
.wxBitmapButton_GetBitmapDisabled
,(self
,) + _args
, _kwargs
)
136 if val
: val
= wxBitmapPtr(val
)
138 def GetBitmapFocus(self
, *_args
, **_kwargs
):
139 val
= apply(controlsc
.wxBitmapButton_GetBitmapFocus
,(self
,) + _args
, _kwargs
)
140 if val
: val
= wxBitmapPtr(val
)
142 def GetBitmapSelected(self
, *_args
, **_kwargs
):
143 val
= apply(controlsc
.wxBitmapButton_GetBitmapSelected
,(self
,) + _args
, _kwargs
)
144 if val
: val
= wxBitmapPtr(val
)
146 def SetBitmapDisabled(self
, *_args
, **_kwargs
):
147 val
= apply(controlsc
.wxBitmapButton_SetBitmapDisabled
,(self
,) + _args
, _kwargs
)
149 def SetBitmapFocus(self
, *_args
, **_kwargs
):
150 val
= apply(controlsc
.wxBitmapButton_SetBitmapFocus
,(self
,) + _args
, _kwargs
)
152 def SetBitmapSelected(self
, *_args
, **_kwargs
):
153 val
= apply(controlsc
.wxBitmapButton_SetBitmapSelected
,(self
,) + _args
, _kwargs
)
155 def SetBitmapLabel(self
, *_args
, **_kwargs
):
156 val
= apply(controlsc
.wxBitmapButton_SetBitmapLabel
,(self
,) + _args
, _kwargs
)
158 def SetMargins(self
, *_args
, **_kwargs
):
159 val
= apply(controlsc
.wxBitmapButton_SetMargins
,(self
,) + _args
, _kwargs
)
161 def GetMarginX(self
, *_args
, **_kwargs
):
162 val
= apply(controlsc
.wxBitmapButton_GetMarginX
,(self
,) + _args
, _kwargs
)
164 def GetMarginY(self
, *_args
, **_kwargs
):
165 val
= apply(controlsc
.wxBitmapButton_GetMarginY
,(self
,) + _args
, _kwargs
)
168 return "<C wxBitmapButton instance at %s>" % (self
.this
,)
169 class wxBitmapButton(wxBitmapButtonPtr
):
170 def __init__(self
,*_args
,**_kwargs
):
171 self
.this
= apply(controlsc
.new_wxBitmapButton
,_args
,_kwargs
)
176 def wxPreBitmapButton(*_args
,**_kwargs
):
177 val
= wxBitmapButtonPtr(apply(controlsc
.new_wxPreBitmapButton
,_args
,_kwargs
))
182 class wxCheckBoxPtr(wxControlPtr
):
183 def __init__(self
,this
):
186 def Create(self
, *_args
, **_kwargs
):
187 val
= apply(controlsc
.wxCheckBox_Create
,(self
,) + _args
, _kwargs
)
189 def GetValue(self
, *_args
, **_kwargs
):
190 val
= apply(controlsc
.wxCheckBox_GetValue
,(self
,) + _args
, _kwargs
)
192 def SetValue(self
, *_args
, **_kwargs
):
193 val
= apply(controlsc
.wxCheckBox_SetValue
,(self
,) + _args
, _kwargs
)
196 return "<C wxCheckBox instance at %s>" % (self
.this
,)
197 class wxCheckBox(wxCheckBoxPtr
):
198 def __init__(self
,*_args
,**_kwargs
):
199 self
.this
= apply(controlsc
.new_wxCheckBox
,_args
,_kwargs
)
204 def wxPreCheckBox(*_args
,**_kwargs
):
205 val
= wxCheckBoxPtr(apply(controlsc
.new_wxPreCheckBox
,_args
,_kwargs
))
210 class wxChoicePtr(wxControlWithItemsPtr
):
211 def __init__(self
,this
):
214 def Create(self
, *_args
, **_kwargs
):
215 val
= apply(controlsc
.wxChoice_Create
,(self
,) + _args
, _kwargs
)
217 def Clear(self
, *_args
, **_kwargs
):
218 val
= apply(controlsc
.wxChoice_Clear
,(self
,) + _args
, _kwargs
)
220 def GetColumns(self
, *_args
, **_kwargs
):
221 val
= apply(controlsc
.wxChoice_GetColumns
,(self
,) + _args
, _kwargs
)
223 def SetColumns(self
, *_args
, **_kwargs
):
224 val
= apply(controlsc
.wxChoice_SetColumns
,(self
,) + _args
, _kwargs
)
226 def SetSelection(self
, *_args
, **_kwargs
):
227 val
= apply(controlsc
.wxChoice_SetSelection
,(self
,) + _args
, _kwargs
)
229 def SetStringSelection(self
, *_args
, **_kwargs
):
230 val
= apply(controlsc
.wxChoice_SetStringSelection
,(self
,) + _args
, _kwargs
)
232 def SetString(self
, *_args
, **_kwargs
):
233 val
= apply(controlsc
.wxChoice_SetString
,(self
,) + _args
, _kwargs
)
236 return "<C wxChoice instance at %s>" % (self
.this
,)
238 Select
= SetSelection
240 class wxChoice(wxChoicePtr
):
241 def __init__(self
,*_args
,**_kwargs
):
242 self
.this
= apply(controlsc
.new_wxChoice
,_args
,_kwargs
)
247 def wxPreChoice(*_args
,**_kwargs
):
248 val
= wxChoicePtr(apply(controlsc
.new_wxPreChoice
,_args
,_kwargs
))
253 class wxComboBoxPtr(wxChoicePtr
):
254 def __init__(self
,this
):
257 def Create(self
, *_args
, **_kwargs
):
258 val
= apply(controlsc
.wxComboBox_Create
,(self
,) + _args
, _kwargs
)
260 def Copy(self
, *_args
, **_kwargs
):
261 val
= apply(controlsc
.wxComboBox_Copy
,(self
,) + _args
, _kwargs
)
263 def Cut(self
, *_args
, **_kwargs
):
264 val
= apply(controlsc
.wxComboBox_Cut
,(self
,) + _args
, _kwargs
)
266 def GetInsertionPoint(self
, *_args
, **_kwargs
):
267 val
= apply(controlsc
.wxComboBox_GetInsertionPoint
,(self
,) + _args
, _kwargs
)
269 def GetLastPosition(self
, *_args
, **_kwargs
):
270 val
= apply(controlsc
.wxComboBox_GetLastPosition
,(self
,) + _args
, _kwargs
)
272 def GetValue(self
, *_args
, **_kwargs
):
273 val
= apply(controlsc
.wxComboBox_GetValue
,(self
,) + _args
, _kwargs
)
275 def Paste(self
, *_args
, **_kwargs
):
276 val
= apply(controlsc
.wxComboBox_Paste
,(self
,) + _args
, _kwargs
)
278 def Replace(self
, *_args
, **_kwargs
):
279 val
= apply(controlsc
.wxComboBox_Replace
,(self
,) + _args
, _kwargs
)
281 def Remove(self
, *_args
, **_kwargs
):
282 val
= apply(controlsc
.wxComboBox_Remove
,(self
,) + _args
, _kwargs
)
284 def SetInsertionPoint(self
, *_args
, **_kwargs
):
285 val
= apply(controlsc
.wxComboBox_SetInsertionPoint
,(self
,) + _args
, _kwargs
)
287 def SetInsertionPointEnd(self
, *_args
, **_kwargs
):
288 val
= apply(controlsc
.wxComboBox_SetInsertionPointEnd
,(self
,) + _args
, _kwargs
)
290 def SetSelection(self
, *_args
, **_kwargs
):
291 val
= apply(controlsc
.wxComboBox_SetSelection
,(self
,) + _args
, _kwargs
)
293 def SetMark(self
, *_args
, **_kwargs
):
294 val
= apply(controlsc
.wxComboBox_SetMark
,(self
,) + _args
, _kwargs
)
296 def SetValue(self
, *_args
, **_kwargs
):
297 val
= apply(controlsc
.wxComboBox_SetValue
,(self
,) + _args
, _kwargs
)
299 def SetEditable(self
, *_args
, **_kwargs
):
300 val
= apply(controlsc
.wxComboBox_SetEditable
,(self
,) + _args
, _kwargs
)
303 return "<C wxComboBox instance at %s>" % (self
.this
,)
304 class wxComboBox(wxComboBoxPtr
):
305 def __init__(self
,*_args
,**_kwargs
):
306 self
.this
= apply(controlsc
.new_wxComboBox
,_args
,_kwargs
)
311 def wxPreComboBox(*_args
,**_kwargs
):
312 val
= wxComboBoxPtr(apply(controlsc
.new_wxPreComboBox
,_args
,_kwargs
))
317 class wxGaugePtr(wxControlPtr
):
318 def __init__(self
,this
):
321 def Create(self
, *_args
, **_kwargs
):
322 val
= apply(controlsc
.wxGauge_Create
,(self
,) + _args
, _kwargs
)
324 def GetBezelFace(self
, *_args
, **_kwargs
):
325 val
= apply(controlsc
.wxGauge_GetBezelFace
,(self
,) + _args
, _kwargs
)
327 def GetRange(self
, *_args
, **_kwargs
):
328 val
= apply(controlsc
.wxGauge_GetRange
,(self
,) + _args
, _kwargs
)
330 def GetShadowWidth(self
, *_args
, **_kwargs
):
331 val
= apply(controlsc
.wxGauge_GetShadowWidth
,(self
,) + _args
, _kwargs
)
333 def GetValue(self
, *_args
, **_kwargs
):
334 val
= apply(controlsc
.wxGauge_GetValue
,(self
,) + _args
, _kwargs
)
336 def SetBezelFace(self
, *_args
, **_kwargs
):
337 val
= apply(controlsc
.wxGauge_SetBezelFace
,(self
,) + _args
, _kwargs
)
339 def SetRange(self
, *_args
, **_kwargs
):
340 val
= apply(controlsc
.wxGauge_SetRange
,(self
,) + _args
, _kwargs
)
342 def SetShadowWidth(self
, *_args
, **_kwargs
):
343 val
= apply(controlsc
.wxGauge_SetShadowWidth
,(self
,) + _args
, _kwargs
)
345 def SetValue(self
, *_args
, **_kwargs
):
346 val
= apply(controlsc
.wxGauge_SetValue
,(self
,) + _args
, _kwargs
)
349 return "<C wxGauge instance at %s>" % (self
.this
,)
350 class wxGauge(wxGaugePtr
):
351 def __init__(self
,*_args
,**_kwargs
):
352 self
.this
= apply(controlsc
.new_wxGauge
,_args
,_kwargs
)
357 def wxPreGauge(*_args
,**_kwargs
):
358 val
= wxGaugePtr(apply(controlsc
.new_wxPreGauge
,_args
,_kwargs
))
363 class wxStaticBoxPtr(wxControlPtr
):
364 def __init__(self
,this
):
367 def Create(self
, *_args
, **_kwargs
):
368 val
= apply(controlsc
.wxStaticBox_Create
,(self
,) + _args
, _kwargs
)
371 return "<C wxStaticBox instance at %s>" % (self
.this
,)
372 class wxStaticBox(wxStaticBoxPtr
):
373 def __init__(self
,*_args
,**_kwargs
):
374 self
.this
= apply(controlsc
.new_wxStaticBox
,_args
,_kwargs
)
379 def wxPreStaticBox(*_args
,**_kwargs
):
380 val
= wxStaticBoxPtr(apply(controlsc
.new_wxPreStaticBox
,_args
,_kwargs
))
385 class wxStaticLinePtr(wxControlPtr
):
386 def __init__(self
,this
):
389 def Create(self
, *_args
, **_kwargs
):
390 val
= apply(controlsc
.wxStaticLine_Create
,(self
,) + _args
, _kwargs
)
393 return "<C wxStaticLine instance at %s>" % (self
.this
,)
394 class wxStaticLine(wxStaticLinePtr
):
395 def __init__(self
,*_args
,**_kwargs
):
396 self
.this
= apply(controlsc
.new_wxStaticLine
,_args
,_kwargs
)
401 def wxPreStaticLine(*_args
,**_kwargs
):
402 val
= wxStaticLinePtr(apply(controlsc
.new_wxPreStaticLine
,_args
,_kwargs
))
407 class wxStaticTextPtr(wxControlPtr
):
408 def __init__(self
,this
):
411 def Create(self
, *_args
, **_kwargs
):
412 val
= apply(controlsc
.wxStaticText_Create
,(self
,) + _args
, _kwargs
)
414 def GetLabel(self
, *_args
, **_kwargs
):
415 val
= apply(controlsc
.wxStaticText_GetLabel
,(self
,) + _args
, _kwargs
)
417 def SetLabel(self
, *_args
, **_kwargs
):
418 val
= apply(controlsc
.wxStaticText_SetLabel
,(self
,) + _args
, _kwargs
)
421 return "<C wxStaticText instance at %s>" % (self
.this
,)
422 class wxStaticText(wxStaticTextPtr
):
423 def __init__(self
,*_args
,**_kwargs
):
424 self
.this
= apply(controlsc
.new_wxStaticText
,_args
,_kwargs
)
429 def wxPreStaticText(*_args
,**_kwargs
):
430 val
= wxStaticTextPtr(apply(controlsc
.new_wxPreStaticText
,_args
,_kwargs
))
435 class wxListBoxPtr(wxControlWithItemsPtr
):
436 def __init__(self
,this
):
439 def Create(self
, *_args
, **_kwargs
):
440 val
= apply(controlsc
.wxListBox_Create
,(self
,) + _args
, _kwargs
)
442 def Clear(self
, *_args
, **_kwargs
):
443 val
= apply(controlsc
.wxListBox_Clear
,(self
,) + _args
, _kwargs
)
445 def Deselect(self
, *_args
, **_kwargs
):
446 val
= apply(controlsc
.wxListBox_Deselect
,(self
,) + _args
, _kwargs
)
448 def GetSelections(self
, *_args
, **_kwargs
):
449 val
= apply(controlsc
.wxListBox_GetSelections
,(self
,) + _args
, _kwargs
)
451 def InsertItems(self
, *_args
, **_kwargs
):
452 val
= apply(controlsc
.wxListBox_InsertItems
,(self
,) + _args
, _kwargs
)
454 def IsSelected(self
, *_args
, **_kwargs
):
455 val
= apply(controlsc
.wxListBox_IsSelected
,(self
,) + _args
, _kwargs
)
457 def Selected(self
, *_args
, **_kwargs
):
458 val
= apply(controlsc
.wxListBox_Selected
,(self
,) + _args
, _kwargs
)
460 def Set(self
, *_args
, **_kwargs
):
461 val
= apply(controlsc
.wxListBox_Set
,(self
,) + _args
, _kwargs
)
463 def SetFirstItem(self
, *_args
, **_kwargs
):
464 val
= apply(controlsc
.wxListBox_SetFirstItem
,(self
,) + _args
, _kwargs
)
466 def SetFirstItemStr(self
, *_args
, **_kwargs
):
467 val
= apply(controlsc
.wxListBox_SetFirstItemStr
,(self
,) + _args
, _kwargs
)
469 def SetSelection(self
, *_args
, **_kwargs
):
470 val
= apply(controlsc
.wxListBox_SetSelection
,(self
,) + _args
, _kwargs
)
472 def SetString(self
, *_args
, **_kwargs
):
473 val
= apply(controlsc
.wxListBox_SetString
,(self
,) + _args
, _kwargs
)
475 def SetStringSelection(self
, *_args
, **_kwargs
):
476 val
= apply(controlsc
.wxListBox_SetStringSelection
,(self
,) + _args
, _kwargs
)
479 return "<C wxListBox instance at %s>" % (self
.this
,)
480 class wxListBox(wxListBoxPtr
):
481 def __init__(self
,*_args
,**_kwargs
):
482 self
.this
= apply(controlsc
.new_wxListBox
,_args
,_kwargs
)
487 def wxPreListBox(*_args
,**_kwargs
):
488 val
= wxListBoxPtr(apply(controlsc
.new_wxPreListBox
,_args
,_kwargs
))
493 class wxCheckListBoxPtr(wxListBoxPtr
):
494 def __init__(self
,this
):
497 def Create(self
, *_args
, **_kwargs
):
498 val
= apply(controlsc
.wxCheckListBox_Create
,(self
,) + _args
, _kwargs
)
500 def IsChecked(self
, *_args
, **_kwargs
):
501 val
= apply(controlsc
.wxCheckListBox_IsChecked
,(self
,) + _args
, _kwargs
)
503 def Check(self
, *_args
, **_kwargs
):
504 val
= apply(controlsc
.wxCheckListBox_Check
,(self
,) + _args
, _kwargs
)
506 def InsertItems(self
, *_args
, **_kwargs
):
507 val
= apply(controlsc
.wxCheckListBox_InsertItems
,(self
,) + _args
, _kwargs
)
509 def GetItemHeight(self
, *_args
, **_kwargs
):
510 val
= apply(controlsc
.wxCheckListBox_GetItemHeight
,(self
,) + _args
, _kwargs
)
513 return "<C wxCheckListBox instance at %s>" % (self
.this
,)
514 class wxCheckListBox(wxCheckListBoxPtr
):
515 def __init__(self
,*_args
,**_kwargs
):
516 self
.this
= apply(controlsc
.new_wxCheckListBox
,_args
,_kwargs
)
521 def wxPreCheckListBox(*_args
,**_kwargs
):
522 val
= wxCheckListBoxPtr(apply(controlsc
.new_wxPreCheckListBox
,_args
,_kwargs
))
527 class wxTextAttrPtr
:
528 def __init__(self
,this
):
531 def __del__(self
,controlsc
=controlsc
):
532 if self
.thisown
== 1 :
533 controlsc
.delete_wxTextAttr(self
)
534 def SetTextColour(self
, *_args
, **_kwargs
):
535 val
= apply(controlsc
.wxTextAttr_SetTextColour
,(self
,) + _args
, _kwargs
)
537 def SetBackgroundColour(self
, *_args
, **_kwargs
):
538 val
= apply(controlsc
.wxTextAttr_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
540 def SetFont(self
, *_args
, **_kwargs
):
541 val
= apply(controlsc
.wxTextAttr_SetFont
,(self
,) + _args
, _kwargs
)
543 def HasTextColour(self
, *_args
, **_kwargs
):
544 val
= apply(controlsc
.wxTextAttr_HasTextColour
,(self
,) + _args
, _kwargs
)
546 def HasBackgroundColour(self
, *_args
, **_kwargs
):
547 val
= apply(controlsc
.wxTextAttr_HasBackgroundColour
,(self
,) + _args
, _kwargs
)
549 def HasFont(self
, *_args
, **_kwargs
):
550 val
= apply(controlsc
.wxTextAttr_HasFont
,(self
,) + _args
, _kwargs
)
552 def GetTextColour(self
, *_args
, **_kwargs
):
553 val
= apply(controlsc
.wxTextAttr_GetTextColour
,(self
,) + _args
, _kwargs
)
554 if val
: val
= wxColourPtr(val
)
556 def GetBackgroundColour(self
, *_args
, **_kwargs
):
557 val
= apply(controlsc
.wxTextAttr_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
558 if val
: val
= wxColourPtr(val
)
560 def GetFont(self
, *_args
, **_kwargs
):
561 val
= apply(controlsc
.wxTextAttr_GetFont
,(self
,) + _args
, _kwargs
)
562 if val
: val
= wxFontPtr(val
)
565 return "<C wxTextAttr instance at %s>" % (self
.this
,)
566 class wxTextAttr(wxTextAttrPtr
):
567 def __init__(self
,*_args
,**_kwargs
):
568 self
.this
= apply(controlsc
.new_wxTextAttr
,_args
,_kwargs
)
574 class wxTextCtrlPtr(wxControlPtr
):
575 def __init__(self
,this
):
578 def Create(self
, *_args
, **_kwargs
):
579 val
= apply(controlsc
.wxTextCtrl_Create
,(self
,) + _args
, _kwargs
)
581 def Clear(self
, *_args
, **_kwargs
):
582 val
= apply(controlsc
.wxTextCtrl_Clear
,(self
,) + _args
, _kwargs
)
584 def Copy(self
, *_args
, **_kwargs
):
585 val
= apply(controlsc
.wxTextCtrl_Copy
,(self
,) + _args
, _kwargs
)
587 def Cut(self
, *_args
, **_kwargs
):
588 val
= apply(controlsc
.wxTextCtrl_Cut
,(self
,) + _args
, _kwargs
)
590 def DiscardEdits(self
, *_args
, **_kwargs
):
591 val
= apply(controlsc
.wxTextCtrl_DiscardEdits
,(self
,) + _args
, _kwargs
)
593 def GetInsertionPoint(self
, *_args
, **_kwargs
):
594 val
= apply(controlsc
.wxTextCtrl_GetInsertionPoint
,(self
,) + _args
, _kwargs
)
596 def GetLastPosition(self
, *_args
, **_kwargs
):
597 val
= apply(controlsc
.wxTextCtrl_GetLastPosition
,(self
,) + _args
, _kwargs
)
599 def GetLineLength(self
, *_args
, **_kwargs
):
600 val
= apply(controlsc
.wxTextCtrl_GetLineLength
,(self
,) + _args
, _kwargs
)
602 def GetLineText(self
, *_args
, **_kwargs
):
603 val
= apply(controlsc
.wxTextCtrl_GetLineText
,(self
,) + _args
, _kwargs
)
605 def GetNumberOfLines(self
, *_args
, **_kwargs
):
606 val
= apply(controlsc
.wxTextCtrl_GetNumberOfLines
,(self
,) + _args
, _kwargs
)
608 def GetValue(self
, *_args
, **_kwargs
):
609 val
= apply(controlsc
.wxTextCtrl_GetValue
,(self
,) + _args
, _kwargs
)
611 def IsModified(self
, *_args
, **_kwargs
):
612 val
= apply(controlsc
.wxTextCtrl_IsModified
,(self
,) + _args
, _kwargs
)
614 def LoadFile(self
, *_args
, **_kwargs
):
615 val
= apply(controlsc
.wxTextCtrl_LoadFile
,(self
,) + _args
, _kwargs
)
617 def Paste(self
, *_args
, **_kwargs
):
618 val
= apply(controlsc
.wxTextCtrl_Paste
,(self
,) + _args
, _kwargs
)
620 def PositionToXY(self
, *_args
, **_kwargs
):
621 val
= apply(controlsc
.wxTextCtrl_PositionToXY
,(self
,) + _args
, _kwargs
)
623 def Remove(self
, *_args
, **_kwargs
):
624 val
= apply(controlsc
.wxTextCtrl_Remove
,(self
,) + _args
, _kwargs
)
626 def Replace(self
, *_args
, **_kwargs
):
627 val
= apply(controlsc
.wxTextCtrl_Replace
,(self
,) + _args
, _kwargs
)
629 def SaveFile(self
, *_args
, **_kwargs
):
630 val
= apply(controlsc
.wxTextCtrl_SaveFile
,(self
,) + _args
, _kwargs
)
632 def SetEditable(self
, *_args
, **_kwargs
):
633 val
= apply(controlsc
.wxTextCtrl_SetEditable
,(self
,) + _args
, _kwargs
)
635 def SetInsertionPoint(self
, *_args
, **_kwargs
):
636 val
= apply(controlsc
.wxTextCtrl_SetInsertionPoint
,(self
,) + _args
, _kwargs
)
638 def SetInsertionPointEnd(self
, *_args
, **_kwargs
):
639 val
= apply(controlsc
.wxTextCtrl_SetInsertionPointEnd
,(self
,) + _args
, _kwargs
)
641 def SetSelection(self
, *_args
, **_kwargs
):
642 val
= apply(controlsc
.wxTextCtrl_SetSelection
,(self
,) + _args
, _kwargs
)
644 def SetValue(self
, *_args
, **_kwargs
):
645 val
= apply(controlsc
.wxTextCtrl_SetValue
,(self
,) + _args
, _kwargs
)
647 def ShowPosition(self
, *_args
, **_kwargs
):
648 val
= apply(controlsc
.wxTextCtrl_ShowPosition
,(self
,) + _args
, _kwargs
)
650 def WriteText(self
, *_args
, **_kwargs
):
651 val
= apply(controlsc
.wxTextCtrl_WriteText
,(self
,) + _args
, _kwargs
)
653 def AppendText(self
, *_args
, **_kwargs
):
654 val
= apply(controlsc
.wxTextCtrl_AppendText
,(self
,) + _args
, _kwargs
)
656 def XYToPosition(self
, *_args
, **_kwargs
):
657 val
= apply(controlsc
.wxTextCtrl_XYToPosition
,(self
,) + _args
, _kwargs
)
659 def CanCopy(self
, *_args
, **_kwargs
):
660 val
= apply(controlsc
.wxTextCtrl_CanCopy
,(self
,) + _args
, _kwargs
)
662 def CanCut(self
, *_args
, **_kwargs
):
663 val
= apply(controlsc
.wxTextCtrl_CanCut
,(self
,) + _args
, _kwargs
)
665 def CanPaste(self
, *_args
, **_kwargs
):
666 val
= apply(controlsc
.wxTextCtrl_CanPaste
,(self
,) + _args
, _kwargs
)
668 def CanRedo(self
, *_args
, **_kwargs
):
669 val
= apply(controlsc
.wxTextCtrl_CanRedo
,(self
,) + _args
, _kwargs
)
671 def CanUndo(self
, *_args
, **_kwargs
):
672 val
= apply(controlsc
.wxTextCtrl_CanUndo
,(self
,) + _args
, _kwargs
)
674 def GetSelection(self
, *_args
, **_kwargs
):
675 val
= apply(controlsc
.wxTextCtrl_GetSelection
,(self
,) + _args
, _kwargs
)
677 def IsEditable(self
, *_args
, **_kwargs
):
678 val
= apply(controlsc
.wxTextCtrl_IsEditable
,(self
,) + _args
, _kwargs
)
680 def Undo(self
, *_args
, **_kwargs
):
681 val
= apply(controlsc
.wxTextCtrl_Undo
,(self
,) + _args
, _kwargs
)
683 def Redo(self
, *_args
, **_kwargs
):
684 val
= apply(controlsc
.wxTextCtrl_Redo
,(self
,) + _args
, _kwargs
)
686 def SetStyle(self
, *_args
, **_kwargs
):
687 val
= apply(controlsc
.wxTextCtrl_SetStyle
,(self
,) + _args
, _kwargs
)
689 def SetDefaultStyle(self
, *_args
, **_kwargs
):
690 val
= apply(controlsc
.wxTextCtrl_SetDefaultStyle
,(self
,) + _args
, _kwargs
)
692 def GetDefaultStyle(self
, *_args
, **_kwargs
):
693 val
= apply(controlsc
.wxTextCtrl_GetDefaultStyle
,(self
,) + _args
, _kwargs
)
694 if val
: val
= wxTextAttrPtr(val
)
696 def SetMaxLength(self
, *_args
, **_kwargs
):
697 val
= apply(controlsc
.wxTextCtrl_SetMaxLength
,(self
,) + _args
, _kwargs
)
699 def write(self
, *_args
, **_kwargs
):
700 val
= apply(controlsc
.wxTextCtrl_write
,(self
,) + _args
, _kwargs
)
703 return "<C wxTextCtrl instance at %s>" % (self
.this
,)
704 class wxTextCtrl(wxTextCtrlPtr
):
705 def __init__(self
,*_args
,**_kwargs
):
706 self
.this
= apply(controlsc
.new_wxTextCtrl
,_args
,_kwargs
)
711 def wxPreTextCtrl(*_args
,**_kwargs
):
712 val
= wxTextCtrlPtr(apply(controlsc
.new_wxPreTextCtrl
,_args
,_kwargs
))
717 class wxScrollBarPtr(wxControlPtr
):
718 def __init__(self
,this
):
721 def Create(self
, *_args
, **_kwargs
):
722 val
= apply(controlsc
.wxScrollBar_Create
,(self
,) + _args
, _kwargs
)
724 def GetRange(self
, *_args
, **_kwargs
):
725 val
= apply(controlsc
.wxScrollBar_GetRange
,(self
,) + _args
, _kwargs
)
727 def GetPageSize(self
, *_args
, **_kwargs
):
728 val
= apply(controlsc
.wxScrollBar_GetPageSize
,(self
,) + _args
, _kwargs
)
730 def GetThumbPosition(self
, *_args
, **_kwargs
):
731 val
= apply(controlsc
.wxScrollBar_GetThumbPosition
,(self
,) + _args
, _kwargs
)
733 def GetThumbSize(self
, *_args
, **_kwargs
):
734 val
= apply(controlsc
.wxScrollBar_GetThumbSize
,(self
,) + _args
, _kwargs
)
736 def GetThumbLength(self
, *_args
, **_kwargs
):
737 val
= apply(controlsc
.wxScrollBar_GetThumbLength
,(self
,) + _args
, _kwargs
)
739 def SetThumbPosition(self
, *_args
, **_kwargs
):
740 val
= apply(controlsc
.wxScrollBar_SetThumbPosition
,(self
,) + _args
, _kwargs
)
742 def SetScrollbar(self
, *_args
, **_kwargs
):
743 val
= apply(controlsc
.wxScrollBar_SetScrollbar
,(self
,) + _args
, _kwargs
)
746 return "<C wxScrollBar instance at %s>" % (self
.this
,)
747 class wxScrollBar(wxScrollBarPtr
):
748 def __init__(self
,*_args
,**_kwargs
):
749 self
.this
= apply(controlsc
.new_wxScrollBar
,_args
,_kwargs
)
754 def wxPreScrollBar(*_args
,**_kwargs
):
755 val
= wxScrollBarPtr(apply(controlsc
.new_wxPreScrollBar
,_args
,_kwargs
))
760 class wxSpinButtonPtr(wxControlPtr
):
761 def __init__(self
,this
):
764 def Create(self
, *_args
, **_kwargs
):
765 val
= apply(controlsc
.wxSpinButton_Create
,(self
,) + _args
, _kwargs
)
767 def GetMax(self
, *_args
, **_kwargs
):
768 val
= apply(controlsc
.wxSpinButton_GetMax
,(self
,) + _args
, _kwargs
)
770 def GetMin(self
, *_args
, **_kwargs
):
771 val
= apply(controlsc
.wxSpinButton_GetMin
,(self
,) + _args
, _kwargs
)
773 def GetValue(self
, *_args
, **_kwargs
):
774 val
= apply(controlsc
.wxSpinButton_GetValue
,(self
,) + _args
, _kwargs
)
776 def SetRange(self
, *_args
, **_kwargs
):
777 val
= apply(controlsc
.wxSpinButton_SetRange
,(self
,) + _args
, _kwargs
)
779 def SetValue(self
, *_args
, **_kwargs
):
780 val
= apply(controlsc
.wxSpinButton_SetValue
,(self
,) + _args
, _kwargs
)
783 return "<C wxSpinButton instance at %s>" % (self
.this
,)
784 class wxSpinButton(wxSpinButtonPtr
):
785 def __init__(self
,*_args
,**_kwargs
):
786 self
.this
= apply(controlsc
.new_wxSpinButton
,_args
,_kwargs
)
791 def wxPreSpinButton(*_args
,**_kwargs
):
792 val
= wxSpinButtonPtr(apply(controlsc
.new_wxPreSpinButton
,_args
,_kwargs
))
797 class wxStaticBitmapPtr(wxControlPtr
):
798 def __init__(self
,this
):
801 def Create(self
, *_args
, **_kwargs
):
802 val
= apply(controlsc
.wxStaticBitmap_Create
,(self
,) + _args
, _kwargs
)
804 def GetBitmap(self
, *_args
, **_kwargs
):
805 val
= apply(controlsc
.wxStaticBitmap_GetBitmap
,(self
,) + _args
, _kwargs
)
806 if val
: val
= wxBitmapPtr(val
)
808 def SetBitmap(self
, *_args
, **_kwargs
):
809 val
= apply(controlsc
.wxStaticBitmap_SetBitmap
,(self
,) + _args
, _kwargs
)
811 def SetIcon(self
, *_args
, **_kwargs
):
812 val
= apply(controlsc
.wxStaticBitmap_SetIcon
,(self
,) + _args
, _kwargs
)
815 return "<C wxStaticBitmap instance at %s>" % (self
.this
,)
816 class wxStaticBitmap(wxStaticBitmapPtr
):
817 def __init__(self
,*_args
,**_kwargs
):
818 self
.this
= apply(controlsc
.new_wxStaticBitmap
,_args
,_kwargs
)
823 def wxPreStaticBitmap(*_args
,**_kwargs
):
824 val
= wxStaticBitmapPtr(apply(controlsc
.new_wxPreStaticBitmap
,_args
,_kwargs
))
829 class wxRadioBoxPtr(wxControlPtr
):
830 def __init__(self
,this
):
833 def Create(self
, *_args
, **_kwargs
):
834 val
= apply(controlsc
.wxRadioBox_Create
,(self
,) + _args
, _kwargs
)
836 def Enable(self
, *_args
, **_kwargs
):
837 val
= apply(controlsc
.wxRadioBox_Enable
,(self
,) + _args
, _kwargs
)
839 def EnableItem(self
, *_args
, **_kwargs
):
840 val
= apply(controlsc
.wxRadioBox_EnableItem
,(self
,) + _args
, _kwargs
)
842 def FindString(self
, *_args
, **_kwargs
):
843 val
= apply(controlsc
.wxRadioBox_FindString
,(self
,) + _args
, _kwargs
)
845 def GetString(self
, *_args
, **_kwargs
):
846 val
= apply(controlsc
.wxRadioBox_GetString
,(self
,) + _args
, _kwargs
)
848 def GetItemLabel(self
, *_args
, **_kwargs
):
849 val
= apply(controlsc
.wxRadioBox_GetItemLabel
,(self
,) + _args
, _kwargs
)
851 def SetItemLabel(self
, *_args
, **_kwargs
):
852 val
= apply(controlsc
.wxRadioBox_SetItemLabel
,(self
,) + _args
, _kwargs
)
854 def GetSelection(self
, *_args
, **_kwargs
):
855 val
= apply(controlsc
.wxRadioBox_GetSelection
,(self
,) + _args
, _kwargs
)
857 def GetStringSelection(self
, *_args
, **_kwargs
):
858 val
= apply(controlsc
.wxRadioBox_GetStringSelection
,(self
,) + _args
, _kwargs
)
860 def GetCount(self
, *_args
, **_kwargs
):
861 val
= apply(controlsc
.wxRadioBox_GetCount
,(self
,) + _args
, _kwargs
)
863 def SetSelection(self
, *_args
, **_kwargs
):
864 val
= apply(controlsc
.wxRadioBox_SetSelection
,(self
,) + _args
, _kwargs
)
866 def SetStringSelection(self
, *_args
, **_kwargs
):
867 val
= apply(controlsc
.wxRadioBox_SetStringSelection
,(self
,) + _args
, _kwargs
)
869 def Show(self
, *_args
, **_kwargs
):
870 val
= apply(controlsc
.wxRadioBox_Show
,(self
,) + _args
, _kwargs
)
872 def ShowItem(self
, *_args
, **_kwargs
):
873 val
= apply(controlsc
.wxRadioBox_ShowItem
,(self
,) + _args
, _kwargs
)
876 return "<C wxRadioBox instance at %s>" % (self
.this
,)
878 class wxRadioBox(wxRadioBoxPtr
):
879 def __init__(self
,*_args
,**_kwargs
):
880 self
.this
= apply(controlsc
.new_wxRadioBox
,_args
,_kwargs
)
885 def wxPreRadioBox(*_args
,**_kwargs
):
886 val
= wxRadioBoxPtr(apply(controlsc
.new_wxPreRadioBox
,_args
,_kwargs
))
891 class wxRadioButtonPtr(wxControlPtr
):
892 def __init__(self
,this
):
895 def Create(self
, *_args
, **_kwargs
):
896 val
= apply(controlsc
.wxRadioButton_Create
,(self
,) + _args
, _kwargs
)
898 def GetValue(self
, *_args
, **_kwargs
):
899 val
= apply(controlsc
.wxRadioButton_GetValue
,(self
,) + _args
, _kwargs
)
901 def SetValue(self
, *_args
, **_kwargs
):
902 val
= apply(controlsc
.wxRadioButton_SetValue
,(self
,) + _args
, _kwargs
)
905 return "<C wxRadioButton instance at %s>" % (self
.this
,)
906 class wxRadioButton(wxRadioButtonPtr
):
907 def __init__(self
,*_args
,**_kwargs
):
908 self
.this
= apply(controlsc
.new_wxRadioButton
,_args
,_kwargs
)
913 def wxPreRadioButton(*_args
,**_kwargs
):
914 val
= wxRadioButtonPtr(apply(controlsc
.new_wxPreRadioButton
,_args
,_kwargs
))
919 class wxSliderPtr(wxControlPtr
):
920 def __init__(self
,this
):
923 def Create(self
, *_args
, **_kwargs
):
924 val
= apply(controlsc
.wxSlider_Create
,(self
,) + _args
, _kwargs
)
926 def ClearSel(self
, *_args
, **_kwargs
):
927 val
= apply(controlsc
.wxSlider_ClearSel
,(self
,) + _args
, _kwargs
)
929 def ClearTicks(self
, *_args
, **_kwargs
):
930 val
= apply(controlsc
.wxSlider_ClearTicks
,(self
,) + _args
, _kwargs
)
932 def GetLineSize(self
, *_args
, **_kwargs
):
933 val
= apply(controlsc
.wxSlider_GetLineSize
,(self
,) + _args
, _kwargs
)
935 def GetMax(self
, *_args
, **_kwargs
):
936 val
= apply(controlsc
.wxSlider_GetMax
,(self
,) + _args
, _kwargs
)
938 def GetMin(self
, *_args
, **_kwargs
):
939 val
= apply(controlsc
.wxSlider_GetMin
,(self
,) + _args
, _kwargs
)
941 def GetPageSize(self
, *_args
, **_kwargs
):
942 val
= apply(controlsc
.wxSlider_GetPageSize
,(self
,) + _args
, _kwargs
)
944 def GetSelEnd(self
, *_args
, **_kwargs
):
945 val
= apply(controlsc
.wxSlider_GetSelEnd
,(self
,) + _args
, _kwargs
)
947 def GetSelStart(self
, *_args
, **_kwargs
):
948 val
= apply(controlsc
.wxSlider_GetSelStart
,(self
,) + _args
, _kwargs
)
950 def GetThumbLength(self
, *_args
, **_kwargs
):
951 val
= apply(controlsc
.wxSlider_GetThumbLength
,(self
,) + _args
, _kwargs
)
953 def GetTickFreq(self
, *_args
, **_kwargs
):
954 val
= apply(controlsc
.wxSlider_GetTickFreq
,(self
,) + _args
, _kwargs
)
956 def GetValue(self
, *_args
, **_kwargs
):
957 val
= apply(controlsc
.wxSlider_GetValue
,(self
,) + _args
, _kwargs
)
959 def SetRange(self
, *_args
, **_kwargs
):
960 val
= apply(controlsc
.wxSlider_SetRange
,(self
,) + _args
, _kwargs
)
962 def SetTickFreq(self
, *_args
, **_kwargs
):
963 val
= apply(controlsc
.wxSlider_SetTickFreq
,(self
,) + _args
, _kwargs
)
965 def SetLineSize(self
, *_args
, **_kwargs
):
966 val
= apply(controlsc
.wxSlider_SetLineSize
,(self
,) + _args
, _kwargs
)
968 def SetPageSize(self
, *_args
, **_kwargs
):
969 val
= apply(controlsc
.wxSlider_SetPageSize
,(self
,) + _args
, _kwargs
)
971 def SetSelection(self
, *_args
, **_kwargs
):
972 val
= apply(controlsc
.wxSlider_SetSelection
,(self
,) + _args
, _kwargs
)
974 def SetThumbLength(self
, *_args
, **_kwargs
):
975 val
= apply(controlsc
.wxSlider_SetThumbLength
,(self
,) + _args
, _kwargs
)
977 def SetTick(self
, *_args
, **_kwargs
):
978 val
= apply(controlsc
.wxSlider_SetTick
,(self
,) + _args
, _kwargs
)
980 def SetValue(self
, *_args
, **_kwargs
):
981 val
= apply(controlsc
.wxSlider_SetValue
,(self
,) + _args
, _kwargs
)
984 return "<C wxSlider instance at %s>" % (self
.this
,)
985 class wxSlider(wxSliderPtr
):
986 def __init__(self
,*_args
,**_kwargs
):
987 self
.this
= apply(controlsc
.new_wxSlider
,_args
,_kwargs
)
992 def wxPreSlider(*_args
,**_kwargs
):
993 val
= wxSliderPtr(apply(controlsc
.new_wxPreSlider
,_args
,_kwargs
))
998 class wxSpinCtrlPtr(wxSpinButtonPtr
):
999 def __init__(self
,this
):
1002 def Create(self
, *_args
, **_kwargs
):
1003 val
= apply(controlsc
.wxSpinCtrl_Create
,(self
,) + _args
, _kwargs
)
1005 def GetMax(self
, *_args
, **_kwargs
):
1006 val
= apply(controlsc
.wxSpinCtrl_GetMax
,(self
,) + _args
, _kwargs
)
1008 def GetMin(self
, *_args
, **_kwargs
):
1009 val
= apply(controlsc
.wxSpinCtrl_GetMin
,(self
,) + _args
, _kwargs
)
1011 def GetValue(self
, *_args
, **_kwargs
):
1012 val
= apply(controlsc
.wxSpinCtrl_GetValue
,(self
,) + _args
, _kwargs
)
1014 def SetRange(self
, *_args
, **_kwargs
):
1015 val
= apply(controlsc
.wxSpinCtrl_SetRange
,(self
,) + _args
, _kwargs
)
1017 def SetValue(self
, *_args
, **_kwargs
):
1018 val
= apply(controlsc
.wxSpinCtrl_SetValue
,(self
,) + _args
, _kwargs
)
1021 return "<C wxSpinCtrl instance at %s>" % (self
.this
,)
1022 class wxSpinCtrl(wxSpinCtrlPtr
):
1023 def __init__(self
,*_args
,**_kwargs
):
1024 self
.this
= apply(controlsc
.new_wxSpinCtrl
,_args
,_kwargs
)
1029 def wxPreSpinCtrl(*_args
,**_kwargs
):
1030 val
= wxSpinCtrlPtr(apply(controlsc
.new_wxPreSpinCtrl
,_args
,_kwargs
))
1035 class wxToggleButtonPtr(wxControlPtr
):
1036 def __init__(self
,this
):
1039 def Create(self
, *_args
, **_kwargs
):
1040 val
= apply(controlsc
.wxToggleButton_Create
,(self
,) + _args
, _kwargs
)
1042 def SetValue(self
, *_args
, **_kwargs
):
1043 val
= apply(controlsc
.wxToggleButton_SetValue
,(self
,) + _args
, _kwargs
)
1045 def GetValue(self
, *_args
, **_kwargs
):
1046 val
= apply(controlsc
.wxToggleButton_GetValue
,(self
,) + _args
, _kwargs
)
1048 def SetLabel(self
, *_args
, **_kwargs
):
1049 val
= apply(controlsc
.wxToggleButton_SetLabel
,(self
,) + _args
, _kwargs
)
1052 return "<C wxToggleButton instance at %s>" % (self
.this
,)
1053 class wxToggleButton(wxToggleButtonPtr
):
1054 def __init__(self
,*_args
,**_kwargs
):
1055 self
.this
= apply(controlsc
.new_wxToggleButton
,_args
,_kwargs
)
1060 def wxPreToggleButton(*_args
,**_kwargs
):
1061 val
= wxToggleButtonPtr(apply(controlsc
.new_wxPreToggleButton
,_args
,_kwargs
))
1068 #-------------- FUNCTION WRAPPERS ------------------
1070 def wxButton_GetDefaultSize(*_args
, **_kwargs
):
1071 val
= apply(controlsc
.wxButton_GetDefaultSize
,_args
,_kwargs
)
1072 if val
: val
= wxSizePtr(val
); val
.thisown
= 1
1077 #-------------- VARIABLE WRAPPERS ------------------
1079 cvar
= controlsc
.cvar
1080 wxDefaultValidator
= wxValidatorPtr(controlsc
.cvar
.wxDefaultValidator
)
1081 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= controlsc
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED