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