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