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