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