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