]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/msw/controls.py
rewrite to avoid unnecessary redraws
[wxWidgets.git] / wxPython / src / msw / controls.py
... / ...
CommitLineData
1# This file was created automatically by SWIG.
2import controlsc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
10from clip_dnd import *
11
12from events import *
13import wx
14class wxControlPtr(wxWindowPtr):
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def Command(self, *_args, **_kwargs):
19 val = apply(controlsc.wxControl_Command,(self,) + _args, _kwargs)
20 return val
21 def GetLabel(self, *_args, **_kwargs):
22 val = apply(controlsc.wxControl_GetLabel,(self,) + _args, _kwargs)
23 return val
24 def SetLabel(self, *_args, **_kwargs):
25 val = apply(controlsc.wxControl_SetLabel,(self,) + _args, _kwargs)
26 return val
27 def __repr__(self):
28 return "<C wxControl instance at %s>" % (self.this,)
29class wxControl(wxControlPtr):
30 def __init__(self,*_args,**_kwargs):
31 self.this = apply(controlsc.new_wxControl,_args,_kwargs)
32 self.thisown = 1
33 #wx._StdWindowCallbacks(self)
34
35
36
37
38class wxButtonPtr(wxControlPtr):
39 def __init__(self,this):
40 self.this = this
41 self.thisown = 0
42 def SetDefault(self, *_args, **_kwargs):
43 val = apply(controlsc.wxButton_SetDefault,(self,) + _args, _kwargs)
44 return val
45 def SetBackgroundColour(self, *_args, **_kwargs):
46 val = apply(controlsc.wxButton_SetBackgroundColour,(self,) + _args, _kwargs)
47 return val
48 def SetForegroundColour(self, *_args, **_kwargs):
49 val = apply(controlsc.wxButton_SetForegroundColour,(self,) + _args, _kwargs)
50 return val
51 def __repr__(self):
52 return "<C wxButton instance at %s>" % (self.this,)
53class wxButton(wxButtonPtr):
54 def __init__(self,*_args,**_kwargs):
55 self.this = apply(controlsc.new_wxButton,_args,_kwargs)
56 self.thisown = 1
57 #wx._StdWindowCallbacks(self)
58
59
60
61
62class wxBitmapButtonPtr(wxButtonPtr):
63 def __init__(self,this):
64 self.this = this
65 self.thisown = 0
66 def GetBitmapLabel(self, *_args, **_kwargs):
67 val = apply(controlsc.wxBitmapButton_GetBitmapLabel,(self,) + _args, _kwargs)
68 if val: val = wxBitmapPtr(val)
69 return val
70 def GetBitmapDisabled(self, *_args, **_kwargs):
71 val = apply(controlsc.wxBitmapButton_GetBitmapDisabled,(self,) + _args, _kwargs)
72 if val: val = wxBitmapPtr(val)
73 return val
74 def GetBitmapFocus(self, *_args, **_kwargs):
75 val = apply(controlsc.wxBitmapButton_GetBitmapFocus,(self,) + _args, _kwargs)
76 if val: val = wxBitmapPtr(val)
77 return val
78 def GetBitmapSelected(self, *_args, **_kwargs):
79 val = apply(controlsc.wxBitmapButton_GetBitmapSelected,(self,) + _args, _kwargs)
80 if val: val = wxBitmapPtr(val)
81 return val
82 def SetBitmapDisabled(self, *_args, **_kwargs):
83 val = apply(controlsc.wxBitmapButton_SetBitmapDisabled,(self,) + _args, _kwargs)
84 return val
85 def SetBitmapFocus(self, *_args, **_kwargs):
86 val = apply(controlsc.wxBitmapButton_SetBitmapFocus,(self,) + _args, _kwargs)
87 return val
88 def SetBitmapSelected(self, *_args, **_kwargs):
89 val = apply(controlsc.wxBitmapButton_SetBitmapSelected,(self,) + _args, _kwargs)
90 return val
91 def SetBitmapLabel(self, *_args, **_kwargs):
92 val = apply(controlsc.wxBitmapButton_SetBitmapLabel,(self,) + _args, _kwargs)
93 return val
94 def SetMargins(self, *_args, **_kwargs):
95 val = apply(controlsc.wxBitmapButton_SetMargins,(self,) + _args, _kwargs)
96 return val
97 def GetMarginX(self, *_args, **_kwargs):
98 val = apply(controlsc.wxBitmapButton_GetMarginX,(self,) + _args, _kwargs)
99 return val
100 def GetMarginY(self, *_args, **_kwargs):
101 val = apply(controlsc.wxBitmapButton_GetMarginY,(self,) + _args, _kwargs)
102 return val
103 def __repr__(self):
104 return "<C wxBitmapButton instance at %s>" % (self.this,)
105class wxBitmapButton(wxBitmapButtonPtr):
106 def __init__(self,*_args,**_kwargs):
107 self.this = apply(controlsc.new_wxBitmapButton,_args,_kwargs)
108 self.thisown = 1
109 #wx._StdWindowCallbacks(self)
110
111
112
113
114class wxCheckBoxPtr(wxControlPtr):
115 def __init__(self,this):
116 self.this = this
117 self.thisown = 0
118 def GetValue(self, *_args, **_kwargs):
119 val = apply(controlsc.wxCheckBox_GetValue,(self,) + _args, _kwargs)
120 return val
121 def SetValue(self, *_args, **_kwargs):
122 val = apply(controlsc.wxCheckBox_SetValue,(self,) + _args, _kwargs)
123 return val
124 def __repr__(self):
125 return "<C wxCheckBox instance at %s>" % (self.this,)
126class wxCheckBox(wxCheckBoxPtr):
127 def __init__(self,*_args,**_kwargs):
128 self.this = apply(controlsc.new_wxCheckBox,_args,_kwargs)
129 self.thisown = 1
130 #wx._StdWindowCallbacks(self)
131
132
133
134
135class wxChoicePtr(wxControlPtr):
136 def __init__(self,this):
137 self.this = this
138 self.thisown = 0
139 def Append(self, *_args, **_kwargs):
140 val = apply(controlsc.wxChoice_Append,(self,) + _args, _kwargs)
141 return val
142 def Clear(self, *_args, **_kwargs):
143 val = apply(controlsc.wxChoice_Clear,(self,) + _args, _kwargs)
144 return val
145 def FindString(self, *_args, **_kwargs):
146 val = apply(controlsc.wxChoice_FindString,(self,) + _args, _kwargs)
147 return val
148 def GetColumns(self, *_args, **_kwargs):
149 val = apply(controlsc.wxChoice_GetColumns,(self,) + _args, _kwargs)
150 return val
151 def GetSelection(self, *_args, **_kwargs):
152 val = apply(controlsc.wxChoice_GetSelection,(self,) + _args, _kwargs)
153 return val
154 def GetString(self, *_args, **_kwargs):
155 val = apply(controlsc.wxChoice_GetString,(self,) + _args, _kwargs)
156 return val
157 def GetStringSelection(self, *_args, **_kwargs):
158 val = apply(controlsc.wxChoice_GetStringSelection,(self,) + _args, _kwargs)
159 return val
160 def Number(self, *_args, **_kwargs):
161 val = apply(controlsc.wxChoice_Number,(self,) + _args, _kwargs)
162 return val
163 def SetColumns(self, *_args, **_kwargs):
164 val = apply(controlsc.wxChoice_SetColumns,(self,) + _args, _kwargs)
165 return val
166 def SetSelection(self, *_args, **_kwargs):
167 val = apply(controlsc.wxChoice_SetSelection,(self,) + _args, _kwargs)
168 return val
169 def SetStringSelection(self, *_args, **_kwargs):
170 val = apply(controlsc.wxChoice_SetStringSelection,(self,) + _args, _kwargs)
171 return val
172 def __repr__(self):
173 return "<C wxChoice instance at %s>" % (self.this,)
174class wxChoice(wxChoicePtr):
175 def __init__(self,*_args,**_kwargs):
176 self.this = apply(controlsc.new_wxChoice,_args,_kwargs)
177 self.thisown = 1
178 #wx._StdWindowCallbacks(self)
179
180
181
182
183class wxComboBoxPtr(wxChoicePtr):
184 def __init__(self,this):
185 self.this = this
186 self.thisown = 0
187 def Append(self, *_args, **_kwargs):
188 val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs)
189 return val
190 def Clear(self, *_args, **_kwargs):
191 val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs)
192 return val
193 def Copy(self, *_args, **_kwargs):
194 val = apply(controlsc.wxComboBox_Copy,(self,) + _args, _kwargs)
195 return val
196 def Cut(self, *_args, **_kwargs):
197 val = apply(controlsc.wxComboBox_Cut,(self,) + _args, _kwargs)
198 return val
199 def Delete(self, *_args, **_kwargs):
200 val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs)
201 return val
202 def FindString(self, *_args, **_kwargs):
203 val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs)
204 return val
205 def GetInsertionPoint(self, *_args, **_kwargs):
206 val = apply(controlsc.wxComboBox_GetInsertionPoint,(self,) + _args, _kwargs)
207 return val
208 def GetLastPosition(self, *_args, **_kwargs):
209 val = apply(controlsc.wxComboBox_GetLastPosition,(self,) + _args, _kwargs)
210 return val
211 def GetSelection(self, *_args, **_kwargs):
212 val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs)
213 return val
214 def GetString(self, *_args, **_kwargs):
215 val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs)
216 return val
217 def GetStringSelection(self, *_args, **_kwargs):
218 val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs)
219 return val
220 def GetValue(self, *_args, **_kwargs):
221 val = apply(controlsc.wxComboBox_GetValue,(self,) + _args, _kwargs)
222 return val
223 def Number(self, *_args, **_kwargs):
224 val = apply(controlsc.wxComboBox_Number,(self,) + _args, _kwargs)
225 return val
226 def Paste(self, *_args, **_kwargs):
227 val = apply(controlsc.wxComboBox_Paste,(self,) + _args, _kwargs)
228 return val
229 def Replace(self, *_args, **_kwargs):
230 val = apply(controlsc.wxComboBox_Replace,(self,) + _args, _kwargs)
231 return val
232 def Remove(self, *_args, **_kwargs):
233 val = apply(controlsc.wxComboBox_Remove,(self,) + _args, _kwargs)
234 return val
235 def SetInsertionPoint(self, *_args, **_kwargs):
236 val = apply(controlsc.wxComboBox_SetInsertionPoint,(self,) + _args, _kwargs)
237 return val
238 def SetInsertionPointEnd(self, *_args, **_kwargs):
239 val = apply(controlsc.wxComboBox_SetInsertionPointEnd,(self,) + _args, _kwargs)
240 return val
241 def SetSelection(self, *_args, **_kwargs):
242 val = apply(controlsc.wxComboBox_SetSelection,(self,) + _args, _kwargs)
243 return val
244 def SetMark(self, *_args, **_kwargs):
245 val = apply(controlsc.wxComboBox_SetMark,(self,) + _args, _kwargs)
246 return val
247 def SetValue(self, *_args, **_kwargs):
248 val = apply(controlsc.wxComboBox_SetValue,(self,) + _args, _kwargs)
249 return val
250 def __repr__(self):
251 return "<C wxComboBox instance at %s>" % (self.this,)
252class wxComboBox(wxComboBoxPtr):
253 def __init__(self,*_args,**_kwargs):
254 self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)
255 self.thisown = 1
256 #wx._StdWindowCallbacks(self)
257
258
259
260
261class wxGaugePtr(wxControlPtr):
262 def __init__(self,this):
263 self.this = this
264 self.thisown = 0
265 def GetBezelFace(self, *_args, **_kwargs):
266 val = apply(controlsc.wxGauge_GetBezelFace,(self,) + _args, _kwargs)
267 return val
268 def GetRange(self, *_args, **_kwargs):
269 val = apply(controlsc.wxGauge_GetRange,(self,) + _args, _kwargs)
270 return val
271 def GetShadowWidth(self, *_args, **_kwargs):
272 val = apply(controlsc.wxGauge_GetShadowWidth,(self,) + _args, _kwargs)
273 return val
274 def GetValue(self, *_args, **_kwargs):
275 val = apply(controlsc.wxGauge_GetValue,(self,) + _args, _kwargs)
276 return val
277 def SetBezelFace(self, *_args, **_kwargs):
278 val = apply(controlsc.wxGauge_SetBezelFace,(self,) + _args, _kwargs)
279 return val
280 def SetRange(self, *_args, **_kwargs):
281 val = apply(controlsc.wxGauge_SetRange,(self,) + _args, _kwargs)
282 return val
283 def SetShadowWidth(self, *_args, **_kwargs):
284 val = apply(controlsc.wxGauge_SetShadowWidth,(self,) + _args, _kwargs)
285 return val
286 def SetValue(self, *_args, **_kwargs):
287 val = apply(controlsc.wxGauge_SetValue,(self,) + _args, _kwargs)
288 return val
289 def __repr__(self):
290 return "<C wxGauge instance at %s>" % (self.this,)
291class wxGauge(wxGaugePtr):
292 def __init__(self,*_args,**_kwargs):
293 self.this = apply(controlsc.new_wxGauge,_args,_kwargs)
294 self.thisown = 1
295 #wx._StdWindowCallbacks(self)
296
297
298
299
300class wxStaticBoxPtr(wxControlPtr):
301 def __init__(self,this):
302 self.this = this
303 self.thisown = 0
304 def __repr__(self):
305 return "<C wxStaticBox instance at %s>" % (self.this,)
306class wxStaticBox(wxStaticBoxPtr):
307 def __init__(self,*_args,**_kwargs):
308 self.this = apply(controlsc.new_wxStaticBox,_args,_kwargs)
309 self.thisown = 1
310
311
312
313
314class wxStaticLinePtr(wxControlPtr):
315 def __init__(self,this):
316 self.this = this
317 self.thisown = 0
318 def __repr__(self):
319 return "<C wxStaticLine instance at %s>" % (self.this,)
320class wxStaticLine(wxStaticLinePtr):
321 def __init__(self,*_args,**_kwargs):
322 self.this = apply(controlsc.new_wxStaticLine,_args,_kwargs)
323 self.thisown = 1
324
325
326
327
328class wxStaticTextPtr(wxControlPtr):
329 def __init__(self,this):
330 self.this = this
331 self.thisown = 0
332 def GetLabel(self, *_args, **_kwargs):
333 val = apply(controlsc.wxStaticText_GetLabel,(self,) + _args, _kwargs)
334 return val
335 def SetLabel(self, *_args, **_kwargs):
336 val = apply(controlsc.wxStaticText_SetLabel,(self,) + _args, _kwargs)
337 return val
338 def __repr__(self):
339 return "<C wxStaticText instance at %s>" % (self.this,)
340class wxStaticText(wxStaticTextPtr):
341 def __init__(self,*_args,**_kwargs):
342 self.this = apply(controlsc.new_wxStaticText,_args,_kwargs)
343 self.thisown = 1
344 #wx._StdWindowCallbacks(self)
345
346
347
348
349class wxListBoxPtr(wxControlPtr):
350 def __init__(self,this):
351 self.this = this
352 self.thisown = 0
353 def Append(self, *_args, **_kwargs):
354 val = apply(controlsc.wxListBox_Append,(self,) + _args, _kwargs)
355 return val
356 def Clear(self, *_args, **_kwargs):
357 val = apply(controlsc.wxListBox_Clear,(self,) + _args, _kwargs)
358 return val
359 def Delete(self, *_args, **_kwargs):
360 val = apply(controlsc.wxListBox_Delete,(self,) + _args, _kwargs)
361 return val
362 def Deselect(self, *_args, **_kwargs):
363 val = apply(controlsc.wxListBox_Deselect,(self,) + _args, _kwargs)
364 return val
365 def FindString(self, *_args, **_kwargs):
366 val = apply(controlsc.wxListBox_FindString,(self,) + _args, _kwargs)
367 return val
368 def GetSelection(self, *_args, **_kwargs):
369 val = apply(controlsc.wxListBox_GetSelection,(self,) + _args, _kwargs)
370 return val
371 def GetSelections(self, *_args, **_kwargs):
372 val = apply(controlsc.wxListBox_GetSelections,(self,) + _args, _kwargs)
373 return val
374 def InsertItems(self, *_args, **_kwargs):
375 val = apply(controlsc.wxListBox_InsertItems,(self,) + _args, _kwargs)
376 return val
377 def GetString(self, *_args, **_kwargs):
378 val = apply(controlsc.wxListBox_GetString,(self,) + _args, _kwargs)
379 return val
380 def GetStringSelection(self, *_args, **_kwargs):
381 val = apply(controlsc.wxListBox_GetStringSelection,(self,) + _args, _kwargs)
382 return val
383 def Number(self, *_args, **_kwargs):
384 val = apply(controlsc.wxListBox_Number,(self,) + _args, _kwargs)
385 return val
386 def Selected(self, *_args, **_kwargs):
387 val = apply(controlsc.wxListBox_Selected,(self,) + _args, _kwargs)
388 return val
389 def Set(self, *_args, **_kwargs):
390 val = apply(controlsc.wxListBox_Set,(self,) + _args, _kwargs)
391 return val
392 def SetFirstItem(self, *_args, **_kwargs):
393 val = apply(controlsc.wxListBox_SetFirstItem,(self,) + _args, _kwargs)
394 return val
395 def SetFirstItemStr(self, *_args, **_kwargs):
396 val = apply(controlsc.wxListBox_SetFirstItemStr,(self,) + _args, _kwargs)
397 return val
398 def SetSelection(self, *_args, **_kwargs):
399 val = apply(controlsc.wxListBox_SetSelection,(self,) + _args, _kwargs)
400 return val
401 def SetString(self, *_args, **_kwargs):
402 val = apply(controlsc.wxListBox_SetString,(self,) + _args, _kwargs)
403 return val
404 def SetStringSelection(self, *_args, **_kwargs):
405 val = apply(controlsc.wxListBox_SetStringSelection,(self,) + _args, _kwargs)
406 return val
407 def __repr__(self):
408 return "<C wxListBox instance at %s>" % (self.this,)
409class wxListBox(wxListBoxPtr):
410 def __init__(self,*_args,**_kwargs):
411 self.this = apply(controlsc.new_wxListBox,_args,_kwargs)
412 self.thisown = 1
413 #wx._StdWindowCallbacks(self)
414
415
416
417
418class wxCheckListBoxPtr(wxListBoxPtr):
419 def __init__(self,this):
420 self.this = this
421 self.thisown = 0
422 def IsChecked(self, *_args, **_kwargs):
423 val = apply(controlsc.wxCheckListBox_IsChecked,(self,) + _args, _kwargs)
424 return val
425 def Check(self, *_args, **_kwargs):
426 val = apply(controlsc.wxCheckListBox_Check,(self,) + _args, _kwargs)
427 return val
428 def InsertItems(self, *_args, **_kwargs):
429 val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs)
430 return val
431 def GetItemHeight(self, *_args, **_kwargs):
432 val = apply(controlsc.wxCheckListBox_GetItemHeight,(self,) + _args, _kwargs)
433 return val
434 def __repr__(self):
435 return "<C wxCheckListBox instance at %s>" % (self.this,)
436class wxCheckListBox(wxCheckListBoxPtr):
437 def __init__(self,*_args,**_kwargs):
438 self.this = apply(controlsc.new_wxCheckListBox,_args,_kwargs)
439 self.thisown = 1
440 #wx._StdWindowCallbacks(self)
441
442
443
444
445class wxTextCtrlPtr(wxControlPtr):
446 def __init__(self,this):
447 self.this = this
448 self.thisown = 0
449 def Clear(self, *_args, **_kwargs):
450 val = apply(controlsc.wxTextCtrl_Clear,(self,) + _args, _kwargs)
451 return val
452 def Copy(self, *_args, **_kwargs):
453 val = apply(controlsc.wxTextCtrl_Copy,(self,) + _args, _kwargs)
454 return val
455 def Cut(self, *_args, **_kwargs):
456 val = apply(controlsc.wxTextCtrl_Cut,(self,) + _args, _kwargs)
457 return val
458 def DiscardEdits(self, *_args, **_kwargs):
459 val = apply(controlsc.wxTextCtrl_DiscardEdits,(self,) + _args, _kwargs)
460 return val
461 def GetInsertionPoint(self, *_args, **_kwargs):
462 val = apply(controlsc.wxTextCtrl_GetInsertionPoint,(self,) + _args, _kwargs)
463 return val
464 def GetLastPosition(self, *_args, **_kwargs):
465 val = apply(controlsc.wxTextCtrl_GetLastPosition,(self,) + _args, _kwargs)
466 return val
467 def GetLineLength(self, *_args, **_kwargs):
468 val = apply(controlsc.wxTextCtrl_GetLineLength,(self,) + _args, _kwargs)
469 return val
470 def GetLineText(self, *_args, **_kwargs):
471 val = apply(controlsc.wxTextCtrl_GetLineText,(self,) + _args, _kwargs)
472 return val
473 def GetNumberOfLines(self, *_args, **_kwargs):
474 val = apply(controlsc.wxTextCtrl_GetNumberOfLines,(self,) + _args, _kwargs)
475 return val
476 def GetValue(self, *_args, **_kwargs):
477 val = apply(controlsc.wxTextCtrl_GetValue,(self,) + _args, _kwargs)
478 return val
479 def IsModified(self, *_args, **_kwargs):
480 val = apply(controlsc.wxTextCtrl_IsModified,(self,) + _args, _kwargs)
481 return val
482 def LoadFile(self, *_args, **_kwargs):
483 val = apply(controlsc.wxTextCtrl_LoadFile,(self,) + _args, _kwargs)
484 return val
485 def Paste(self, *_args, **_kwargs):
486 val = apply(controlsc.wxTextCtrl_Paste,(self,) + _args, _kwargs)
487 return val
488 def PositionToXY(self, *_args, **_kwargs):
489 val = apply(controlsc.wxTextCtrl_PositionToXY,(self,) + _args, _kwargs)
490 return val
491 def Remove(self, *_args, **_kwargs):
492 val = apply(controlsc.wxTextCtrl_Remove,(self,) + _args, _kwargs)
493 return val
494 def Replace(self, *_args, **_kwargs):
495 val = apply(controlsc.wxTextCtrl_Replace,(self,) + _args, _kwargs)
496 return val
497 def SaveFile(self, *_args, **_kwargs):
498 val = apply(controlsc.wxTextCtrl_SaveFile,(self,) + _args, _kwargs)
499 return val
500 def SetEditable(self, *_args, **_kwargs):
501 val = apply(controlsc.wxTextCtrl_SetEditable,(self,) + _args, _kwargs)
502 return val
503 def SetInsertionPoint(self, *_args, **_kwargs):
504 val = apply(controlsc.wxTextCtrl_SetInsertionPoint,(self,) + _args, _kwargs)
505 return val
506 def SetInsertionPointEnd(self, *_args, **_kwargs):
507 val = apply(controlsc.wxTextCtrl_SetInsertionPointEnd,(self,) + _args, _kwargs)
508 return val
509 def SetSelection(self, *_args, **_kwargs):
510 val = apply(controlsc.wxTextCtrl_SetSelection,(self,) + _args, _kwargs)
511 return val
512 def SetValue(self, *_args, **_kwargs):
513 val = apply(controlsc.wxTextCtrl_SetValue,(self,) + _args, _kwargs)
514 return val
515 def ShowPosition(self, *_args, **_kwargs):
516 val = apply(controlsc.wxTextCtrl_ShowPosition,(self,) + _args, _kwargs)
517 return val
518 def WriteText(self, *_args, **_kwargs):
519 val = apply(controlsc.wxTextCtrl_WriteText,(self,) + _args, _kwargs)
520 return val
521 def AppendText(self, *_args, **_kwargs):
522 val = apply(controlsc.wxTextCtrl_AppendText,(self,) + _args, _kwargs)
523 return val
524 def XYToPosition(self, *_args, **_kwargs):
525 val = apply(controlsc.wxTextCtrl_XYToPosition,(self,) + _args, _kwargs)
526 return val
527 def CanCopy(self, *_args, **_kwargs):
528 val = apply(controlsc.wxTextCtrl_CanCopy,(self,) + _args, _kwargs)
529 return val
530 def CanCut(self, *_args, **_kwargs):
531 val = apply(controlsc.wxTextCtrl_CanCut,(self,) + _args, _kwargs)
532 return val
533 def CanPaste(self, *_args, **_kwargs):
534 val = apply(controlsc.wxTextCtrl_CanPaste,(self,) + _args, _kwargs)
535 return val
536 def CanRedo(self, *_args, **_kwargs):
537 val = apply(controlsc.wxTextCtrl_CanRedo,(self,) + _args, _kwargs)
538 return val
539 def CanUndo(self, *_args, **_kwargs):
540 val = apply(controlsc.wxTextCtrl_CanUndo,(self,) + _args, _kwargs)
541 return val
542 def GetSelection(self, *_args, **_kwargs):
543 val = apply(controlsc.wxTextCtrl_GetSelection,(self,) + _args, _kwargs)
544 return val
545 def IsEditable(self, *_args, **_kwargs):
546 val = apply(controlsc.wxTextCtrl_IsEditable,(self,) + _args, _kwargs)
547 return val
548 def Undo(self, *_args, **_kwargs):
549 val = apply(controlsc.wxTextCtrl_Undo,(self,) + _args, _kwargs)
550 return val
551 def Redo(self, *_args, **_kwargs):
552 val = apply(controlsc.wxTextCtrl_Redo,(self,) + _args, _kwargs)
553 return val
554 def write(self, *_args, **_kwargs):
555 val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs)
556 return val
557 def __repr__(self):
558 return "<C wxTextCtrl instance at %s>" % (self.this,)
559class wxTextCtrl(wxTextCtrlPtr):
560 def __init__(self,*_args,**_kwargs):
561 self.this = apply(controlsc.new_wxTextCtrl,_args,_kwargs)
562 self.thisown = 1
563 #wx._StdWindowCallbacks(self)
564
565
566
567
568class wxScrollBarPtr(wxControlPtr):
569 def __init__(self,this):
570 self.this = this
571 self.thisown = 0
572 def GetRange(self, *_args, **_kwargs):
573 val = apply(controlsc.wxScrollBar_GetRange,(self,) + _args, _kwargs)
574 return val
575 def GetPageSize(self, *_args, **_kwargs):
576 val = apply(controlsc.wxScrollBar_GetPageSize,(self,) + _args, _kwargs)
577 return val
578 def GetThumbPosition(self, *_args, **_kwargs):
579 val = apply(controlsc.wxScrollBar_GetThumbPosition,(self,) + _args, _kwargs)
580 return val
581 def GetThumbSize(self, *_args, **_kwargs):
582 val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs)
583 return val
584 def GetThumbLength(self, *_args, **_kwargs):
585 val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs)
586 return val
587 def SetThumbPosition(self, *_args, **_kwargs):
588 val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs)
589 return val
590 def SetScrollbar(self, *_args, **_kwargs):
591 val = apply(controlsc.wxScrollBar_SetScrollbar,(self,) + _args, _kwargs)
592 return val
593 def __repr__(self):
594 return "<C wxScrollBar instance at %s>" % (self.this,)
595class wxScrollBar(wxScrollBarPtr):
596 def __init__(self,*_args,**_kwargs):
597 self.this = apply(controlsc.new_wxScrollBar,_args,_kwargs)
598 self.thisown = 1
599 #wx._StdWindowCallbacks(self)
600
601
602
603
604class wxSpinButtonPtr(wxControlPtr):
605 def __init__(self,this):
606 self.this = this
607 self.thisown = 0
608 def GetMax(self, *_args, **_kwargs):
609 val = apply(controlsc.wxSpinButton_GetMax,(self,) + _args, _kwargs)
610 return val
611 def GetMin(self, *_args, **_kwargs):
612 val = apply(controlsc.wxSpinButton_GetMin,(self,) + _args, _kwargs)
613 return val
614 def GetValue(self, *_args, **_kwargs):
615 val = apply(controlsc.wxSpinButton_GetValue,(self,) + _args, _kwargs)
616 return val
617 def SetRange(self, *_args, **_kwargs):
618 val = apply(controlsc.wxSpinButton_SetRange,(self,) + _args, _kwargs)
619 return val
620 def SetValue(self, *_args, **_kwargs):
621 val = apply(controlsc.wxSpinButton_SetValue,(self,) + _args, _kwargs)
622 return val
623 def __repr__(self):
624 return "<C wxSpinButton instance at %s>" % (self.this,)
625class wxSpinButton(wxSpinButtonPtr):
626 def __init__(self,*_args,**_kwargs):
627 self.this = apply(controlsc.new_wxSpinButton,_args,_kwargs)
628 self.thisown = 1
629
630
631
632
633class wxStaticBitmapPtr(wxControlPtr):
634 def __init__(self,this):
635 self.this = this
636 self.thisown = 0
637 def GetBitmap(self, *_args, **_kwargs):
638 val = apply(controlsc.wxStaticBitmap_GetBitmap,(self,) + _args, _kwargs)
639 if val: val = wxBitmapPtr(val)
640 return val
641 def SetBitmap(self, *_args, **_kwargs):
642 val = apply(controlsc.wxStaticBitmap_SetBitmap,(self,) + _args, _kwargs)
643 return val
644 def SetIcon(self, *_args, **_kwargs):
645 val = apply(controlsc.wxStaticBitmap_SetIcon,(self,) + _args, _kwargs)
646 return val
647 def __repr__(self):
648 return "<C wxStaticBitmap instance at %s>" % (self.this,)
649class wxStaticBitmap(wxStaticBitmapPtr):
650 def __init__(self,*_args,**_kwargs):
651 self.this = apply(controlsc.new_wxStaticBitmap,_args,_kwargs)
652 self.thisown = 1
653 #wx._StdWindowCallbacks(self)
654
655
656
657
658class wxRadioBoxPtr(wxControlPtr):
659 def __init__(self,this):
660 self.this = this
661 self.thisown = 0
662 def Enable(self, *_args, **_kwargs):
663 val = apply(controlsc.wxRadioBox_Enable,(self,) + _args, _kwargs)
664 return val
665 def EnableItem(self, *_args, **_kwargs):
666 val = apply(controlsc.wxRadioBox_EnableItem,(self,) + _args, _kwargs)
667 return val
668 def FindString(self, *_args, **_kwargs):
669 val = apply(controlsc.wxRadioBox_FindString,(self,) + _args, _kwargs)
670 return val
671 def GetItemLabel(self, *_args, **_kwargs):
672 val = apply(controlsc.wxRadioBox_GetItemLabel,(self,) + _args, _kwargs)
673 return val
674 def GetSelection(self, *_args, **_kwargs):
675 val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs)
676 return val
677 def GetString(self, *_args, **_kwargs):
678 val = apply(controlsc.wxRadioBox_GetString,(self,) + _args, _kwargs)
679 return val
680 def GetStringSelection(self, *_args, **_kwargs):
681 val = apply(controlsc.wxRadioBox_GetStringSelection,(self,) + _args, _kwargs)
682 return val
683 def Number(self, *_args, **_kwargs):
684 val = apply(controlsc.wxRadioBox_Number,(self,) + _args, _kwargs)
685 return val
686 def SetItemLabel(self, *_args, **_kwargs):
687 val = apply(controlsc.wxRadioBox_SetItemLabel,(self,) + _args, _kwargs)
688 return val
689 def SetSelection(self, *_args, **_kwargs):
690 val = apply(controlsc.wxRadioBox_SetSelection,(self,) + _args, _kwargs)
691 return val
692 def SetStringSelection(self, *_args, **_kwargs):
693 val = apply(controlsc.wxRadioBox_SetStringSelection,(self,) + _args, _kwargs)
694 return val
695 def Show(self, *_args, **_kwargs):
696 val = apply(controlsc.wxRadioBox_Show,(self,) + _args, _kwargs)
697 return val
698 def ShowItem(self, *_args, **_kwargs):
699 val = apply(controlsc.wxRadioBox_ShowItem,(self,) + _args, _kwargs)
700 return val
701 def __repr__(self):
702 return "<C wxRadioBox instance at %s>" % (self.this,)
703class wxRadioBox(wxRadioBoxPtr):
704 def __init__(self,*_args,**_kwargs):
705 self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs)
706 self.thisown = 1
707 #wx._StdWindowCallbacks(self)
708
709
710
711
712class wxRadioButtonPtr(wxControlPtr):
713 def __init__(self,this):
714 self.this = this
715 self.thisown = 0
716 def GetValue(self, *_args, **_kwargs):
717 val = apply(controlsc.wxRadioButton_GetValue,(self,) + _args, _kwargs)
718 return val
719 def SetValue(self, *_args, **_kwargs):
720 val = apply(controlsc.wxRadioButton_SetValue,(self,) + _args, _kwargs)
721 return val
722 def __repr__(self):
723 return "<C wxRadioButton instance at %s>" % (self.this,)
724class wxRadioButton(wxRadioButtonPtr):
725 def __init__(self,*_args,**_kwargs):
726 self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs)
727 self.thisown = 1
728 #wx._StdWindowCallbacks(self)
729
730
731
732
733class wxSliderPtr(wxControlPtr):
734 def __init__(self,this):
735 self.this = this
736 self.thisown = 0
737 def ClearSel(self, *_args, **_kwargs):
738 val = apply(controlsc.wxSlider_ClearSel,(self,) + _args, _kwargs)
739 return val
740 def ClearTicks(self, *_args, **_kwargs):
741 val = apply(controlsc.wxSlider_ClearTicks,(self,) + _args, _kwargs)
742 return val
743 def GetLineSize(self, *_args, **_kwargs):
744 val = apply(controlsc.wxSlider_GetLineSize,(self,) + _args, _kwargs)
745 return val
746 def GetMax(self, *_args, **_kwargs):
747 val = apply(controlsc.wxSlider_GetMax,(self,) + _args, _kwargs)
748 return val
749 def GetMin(self, *_args, **_kwargs):
750 val = apply(controlsc.wxSlider_GetMin,(self,) + _args, _kwargs)
751 return val
752 def GetPageSize(self, *_args, **_kwargs):
753 val = apply(controlsc.wxSlider_GetPageSize,(self,) + _args, _kwargs)
754 return val
755 def GetSelEnd(self, *_args, **_kwargs):
756 val = apply(controlsc.wxSlider_GetSelEnd,(self,) + _args, _kwargs)
757 return val
758 def GetSelStart(self, *_args, **_kwargs):
759 val = apply(controlsc.wxSlider_GetSelStart,(self,) + _args, _kwargs)
760 return val
761 def GetThumbLength(self, *_args, **_kwargs):
762 val = apply(controlsc.wxSlider_GetThumbLength,(self,) + _args, _kwargs)
763 return val
764 def GetTickFreq(self, *_args, **_kwargs):
765 val = apply(controlsc.wxSlider_GetTickFreq,(self,) + _args, _kwargs)
766 return val
767 def GetValue(self, *_args, **_kwargs):
768 val = apply(controlsc.wxSlider_GetValue,(self,) + _args, _kwargs)
769 return val
770 def SetRange(self, *_args, **_kwargs):
771 val = apply(controlsc.wxSlider_SetRange,(self,) + _args, _kwargs)
772 return val
773 def SetTickFreq(self, *_args, **_kwargs):
774 val = apply(controlsc.wxSlider_SetTickFreq,(self,) + _args, _kwargs)
775 return val
776 def SetLineSize(self, *_args, **_kwargs):
777 val = apply(controlsc.wxSlider_SetLineSize,(self,) + _args, _kwargs)
778 return val
779 def SetPageSize(self, *_args, **_kwargs):
780 val = apply(controlsc.wxSlider_SetPageSize,(self,) + _args, _kwargs)
781 return val
782 def SetSelection(self, *_args, **_kwargs):
783 val = apply(controlsc.wxSlider_SetSelection,(self,) + _args, _kwargs)
784 return val
785 def SetThumbLength(self, *_args, **_kwargs):
786 val = apply(controlsc.wxSlider_SetThumbLength,(self,) + _args, _kwargs)
787 return val
788 def SetTick(self, *_args, **_kwargs):
789 val = apply(controlsc.wxSlider_SetTick,(self,) + _args, _kwargs)
790 return val
791 def SetValue(self, *_args, **_kwargs):
792 val = apply(controlsc.wxSlider_SetValue,(self,) + _args, _kwargs)
793 return val
794 def __repr__(self):
795 return "<C wxSlider instance at %s>" % (self.this,)
796class wxSlider(wxSliderPtr):
797 def __init__(self,*_args,**_kwargs):
798 self.this = apply(controlsc.new_wxSlider,_args,_kwargs)
799 self.thisown = 1
800 #wx._StdWindowCallbacks(self)
801
802
803
804
805class wxSpinCtrlPtr(wxSpinButtonPtr):
806 def __init__(self,this):
807 self.this = this
808 self.thisown = 0
809 def GetMax(self, *_args, **_kwargs):
810 val = apply(controlsc.wxSpinCtrl_GetMax,(self,) + _args, _kwargs)
811 return val
812 def GetMin(self, *_args, **_kwargs):
813 val = apply(controlsc.wxSpinCtrl_GetMin,(self,) + _args, _kwargs)
814 return val
815 def GetValue(self, *_args, **_kwargs):
816 val = apply(controlsc.wxSpinCtrl_GetValue,(self,) + _args, _kwargs)
817 return val
818 def SetRange(self, *_args, **_kwargs):
819 val = apply(controlsc.wxSpinCtrl_SetRange,(self,) + _args, _kwargs)
820 return val
821 def SetValue(self, *_args, **_kwargs):
822 val = apply(controlsc.wxSpinCtrl_SetValue,(self,) + _args, _kwargs)
823 return val
824 def __repr__(self):
825 return "<C wxSpinCtrl instance at %s>" % (self.this,)
826class wxSpinCtrl(wxSpinCtrlPtr):
827 def __init__(self,*_args,**_kwargs):
828 self.this = apply(controlsc.new_wxSpinCtrl,_args,_kwargs)
829 self.thisown = 1
830
831
832
833
834class wxToggleButtonPtr(wxControlPtr):
835 def __init__(self,this):
836 self.this = this
837 self.thisown = 0
838 def SetValue(self, *_args, **_kwargs):
839 val = apply(controlsc.wxToggleButton_SetValue,(self,) + _args, _kwargs)
840 return val
841 def GetValue(self, *_args, **_kwargs):
842 val = apply(controlsc.wxToggleButton_GetValue,(self,) + _args, _kwargs)
843 return val
844 def SetLabel(self, *_args, **_kwargs):
845 val = apply(controlsc.wxToggleButton_SetLabel,(self,) + _args, _kwargs)
846 return val
847 def __repr__(self):
848 return "<C wxToggleButton instance at %s>" % (self.this,)
849class wxToggleButton(wxToggleButtonPtr):
850 def __init__(self,*_args,**_kwargs):
851 self.this = apply(controlsc.new_wxToggleButton,_args,_kwargs)
852 self.thisown = 1
853
854
855
856
857
858
859#-------------- FUNCTION WRAPPERS ------------------
860
861def wxButton_GetDefaultSize(*_args, **_kwargs):
862 val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs)
863 if val: val = wxSizePtr(val); val.thisown = 1
864 return val
865
866
867
868#-------------- VARIABLE WRAPPERS ------------------
869
870cvar = controlsc.cvar
871wxDefaultValidator = wxValidatorPtr(controlsc.cvar.wxDefaultValidator)
872wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = controlsc.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED