]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
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 | ||
4120ef2b RD |
10 | from clip_dnd import * |
11 | ||
70551f47 | 12 | from events import * |
105e45b9 | 13 | import wx |
70551f47 RD |
14 | class 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 | 29 | class 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 | ||
38 | class 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 | 53 | class 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 | ||
62 | class 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 | 105 | class 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 | ||
114 | class 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 | 126 | class 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 | ||
135 | class 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 |
0adbc166 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 |
0adbc166 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 |
0adbc166 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,) |
0adbc166 RD |
180 | |
181 | Number = GetCount | |
182 | Select = SetSelection | |
183 | ||
70551f47 | 184 | class 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 | 193 | class 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 |
0adbc166 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 | 262 | class 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 | ||
271 | class 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 | 301 | class 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 | ||
310 | class 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 | 316 | class 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 |
324 | class 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 | 330 | class 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 |
338 | class 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 | 350 | class 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 | ||
359 | class 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 |
0adbc166 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,) |
0adbc166 | 422 | Number = GetCount |
70551f47 | 423 | class 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 |
432 | class 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 | 450 | class 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 | ||
d56cebe7 RD |
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 | ||
70551f47 RD |
506 | class 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 | |
d56cebe7 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 | 630 | class 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 | ||
639 | class 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 | 666 | class 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 |
675 | class 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 | 696 | class 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 |
704 | class 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 | 720 | class 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 | ||
729 | class 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 |
0adbc166 RD |
742 | def GetString(self, *_args, **_kwargs): |
743 | val = apply(controlsc.wxRadioBox_GetString,(self,) + _args, _kwargs) | |
744 | return val | |
745 | def SetString(self, *_args, **_kwargs): | |
746 | val = apply(controlsc.wxRadioBox_SetString,(self,) + _args, _kwargs) | |
70551f47 | 747 | return val |
2d091820 RD |
748 | def GetSelection(self, *_args, **_kwargs): |
749 | val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs) | |
70551f47 | 750 | return val |
2d091820 RD |
751 | def GetStringSelection(self, *_args, **_kwargs): |
752 | val = apply(controlsc.wxRadioBox_GetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 753 | return val |
0adbc166 RD |
754 | def GetCount(self, *_args, **_kwargs): |
755 | val = apply(controlsc.wxRadioBox_GetCount,(self,) + _args, _kwargs) | |
756 | return val | |
757 | def GetColumnCount(self, *_args, **_kwargs): | |
758 | val = apply(controlsc.wxRadioBox_GetColumnCount,(self,) + _args, _kwargs) | |
70551f47 | 759 | return val |
0adbc166 RD |
760 | def GetRowCount(self, *_args, **_kwargs): |
761 | val = apply(controlsc.wxRadioBox_GetRowCount,(self,) + _args, _kwargs) | |
70551f47 | 762 | return val |
2d091820 RD |
763 | def SetSelection(self, *_args, **_kwargs): |
764 | val = apply(controlsc.wxRadioBox_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 765 | return val |
2d091820 RD |
766 | def SetStringSelection(self, *_args, **_kwargs): |
767 | val = apply(controlsc.wxRadioBox_SetStringSelection,(self,) + _args, _kwargs) | |
70551f47 | 768 | return val |
2d091820 RD |
769 | def Show(self, *_args, **_kwargs): |
770 | val = apply(controlsc.wxRadioBox_Show,(self,) + _args, _kwargs) | |
70551f47 | 771 | return val |
2d091820 RD |
772 | def ShowItem(self, *_args, **_kwargs): |
773 | val = apply(controlsc.wxRadioBox_ShowItem,(self,) + _args, _kwargs) | |
70551f47 RD |
774 | return val |
775 | def __repr__(self): | |
2d091820 | 776 | return "<C wxRadioBox instance at %s>" % (self.this,) |
0adbc166 RD |
777 | |
778 | GetItemLabel = GetString | |
779 | SetItemLabel = SetString | |
780 | ||
781 | Number = GetCount | |
70551f47 | 782 | class wxRadioBox(wxRadioBoxPtr): |
2d091820 RD |
783 | def __init__(self,*_args,**_kwargs): |
784 | self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs) | |
70551f47 | 785 | self.thisown = 1 |
f6bcfd97 | 786 | #wx._StdWindowCallbacks(self) |
70551f47 RD |
787 | |
788 | ||
789 | ||
790 | ||
791 | class wxRadioButtonPtr(wxControlPtr): | |
792 | def __init__(self,this): | |
793 | self.this = this | |
794 | self.thisown = 0 | |
2d091820 RD |
795 | def GetValue(self, *_args, **_kwargs): |
796 | val = apply(controlsc.wxRadioButton_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 797 | return val |
2d091820 RD |
798 | def SetValue(self, *_args, **_kwargs): |
799 | val = apply(controlsc.wxRadioButton_SetValue,(self,) + _args, _kwargs) | |
70551f47 RD |
800 | return val |
801 | def __repr__(self): | |
2d091820 | 802 | return "<C wxRadioButton instance at %s>" % (self.this,) |
70551f47 | 803 | class wxRadioButton(wxRadioButtonPtr): |
2d091820 RD |
804 | def __init__(self,*_args,**_kwargs): |
805 | self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs) | |
70551f47 | 806 | self.thisown = 1 |
f6bcfd97 | 807 | #wx._StdWindowCallbacks(self) |
70551f47 RD |
808 | |
809 | ||
810 | ||
811 | ||
812 | class wxSliderPtr(wxControlPtr): | |
813 | def __init__(self,this): | |
814 | self.this = this | |
815 | self.thisown = 0 | |
2d091820 RD |
816 | def ClearSel(self, *_args, **_kwargs): |
817 | val = apply(controlsc.wxSlider_ClearSel,(self,) + _args, _kwargs) | |
70551f47 | 818 | return val |
2d091820 RD |
819 | def ClearTicks(self, *_args, **_kwargs): |
820 | val = apply(controlsc.wxSlider_ClearTicks,(self,) + _args, _kwargs) | |
70551f47 | 821 | return val |
2d091820 RD |
822 | def GetLineSize(self, *_args, **_kwargs): |
823 | val = apply(controlsc.wxSlider_GetLineSize,(self,) + _args, _kwargs) | |
70551f47 | 824 | return val |
2d091820 RD |
825 | def GetMax(self, *_args, **_kwargs): |
826 | val = apply(controlsc.wxSlider_GetMax,(self,) + _args, _kwargs) | |
70551f47 | 827 | return val |
2d091820 RD |
828 | def GetMin(self, *_args, **_kwargs): |
829 | val = apply(controlsc.wxSlider_GetMin,(self,) + _args, _kwargs) | |
70551f47 | 830 | return val |
2d091820 RD |
831 | def GetPageSize(self, *_args, **_kwargs): |
832 | val = apply(controlsc.wxSlider_GetPageSize,(self,) + _args, _kwargs) | |
70551f47 | 833 | return val |
2d091820 RD |
834 | def GetSelEnd(self, *_args, **_kwargs): |
835 | val = apply(controlsc.wxSlider_GetSelEnd,(self,) + _args, _kwargs) | |
70551f47 | 836 | return val |
2d091820 RD |
837 | def GetSelStart(self, *_args, **_kwargs): |
838 | val = apply(controlsc.wxSlider_GetSelStart,(self,) + _args, _kwargs) | |
70551f47 | 839 | return val |
2d091820 RD |
840 | def GetThumbLength(self, *_args, **_kwargs): |
841 | val = apply(controlsc.wxSlider_GetThumbLength,(self,) + _args, _kwargs) | |
70551f47 | 842 | return val |
2d091820 RD |
843 | def GetTickFreq(self, *_args, **_kwargs): |
844 | val = apply(controlsc.wxSlider_GetTickFreq,(self,) + _args, _kwargs) | |
70551f47 | 845 | return val |
2d091820 RD |
846 | def GetValue(self, *_args, **_kwargs): |
847 | val = apply(controlsc.wxSlider_GetValue,(self,) + _args, _kwargs) | |
70551f47 | 848 | return val |
2d091820 RD |
849 | def SetRange(self, *_args, **_kwargs): |
850 | val = apply(controlsc.wxSlider_SetRange,(self,) + _args, _kwargs) | |
70551f47 | 851 | return val |
2d091820 RD |
852 | def SetTickFreq(self, *_args, **_kwargs): |
853 | val = apply(controlsc.wxSlider_SetTickFreq,(self,) + _args, _kwargs) | |
70551f47 | 854 | return val |
2d091820 RD |
855 | def SetLineSize(self, *_args, **_kwargs): |
856 | val = apply(controlsc.wxSlider_SetLineSize,(self,) + _args, _kwargs) | |
70551f47 | 857 | return val |
2d091820 RD |
858 | def SetPageSize(self, *_args, **_kwargs): |
859 | val = apply(controlsc.wxSlider_SetPageSize,(self,) + _args, _kwargs) | |
70551f47 | 860 | return val |
2d091820 RD |
861 | def SetSelection(self, *_args, **_kwargs): |
862 | val = apply(controlsc.wxSlider_SetSelection,(self,) + _args, _kwargs) | |
70551f47 | 863 | return val |
2d091820 RD |
864 | def SetThumbLength(self, *_args, **_kwargs): |
865 | val = apply(controlsc.wxSlider_SetThumbLength,(self,) + _args, _kwargs) | |
70551f47 | 866 | return val |
2d091820 RD |
867 | def SetTick(self, *_args, **_kwargs): |
868 | val = apply(controlsc.wxSlider_SetTick,(self,) + _args, _kwargs) | |
70551f47 | 869 | return val |
2d091820 RD |
870 | def SetValue(self, *_args, **_kwargs): |
871 | val = apply(controlsc.wxSlider_SetValue,(self,) + _args, _kwargs) | |
70551f47 RD |
872 | return val |
873 | def __repr__(self): | |
2d091820 | 874 | return "<C wxSlider instance at %s>" % (self.this,) |
70551f47 | 875 | class wxSlider(wxSliderPtr): |
2d091820 RD |
876 | def __init__(self,*_args,**_kwargs): |
877 | self.this = apply(controlsc.new_wxSlider,_args,_kwargs) | |
70551f47 | 878 | self.thisown = 1 |
f6bcfd97 BP |
879 | #wx._StdWindowCallbacks(self) |
880 | ||
881 | ||
882 | ||
883 | ||
884 | class wxSpinCtrlPtr(wxSpinButtonPtr): | |
885 | def __init__(self,this): | |
886 | self.this = this | |
887 | self.thisown = 0 | |
c368d904 RD |
888 | def GetMax(self, *_args, **_kwargs): |
889 | val = apply(controlsc.wxSpinCtrl_GetMax,(self,) + _args, _kwargs) | |
890 | return val | |
891 | def GetMin(self, *_args, **_kwargs): | |
892 | val = apply(controlsc.wxSpinCtrl_GetMin,(self,) + _args, _kwargs) | |
893 | return val | |
894 | def GetValue(self, *_args, **_kwargs): | |
895 | val = apply(controlsc.wxSpinCtrl_GetValue,(self,) + _args, _kwargs) | |
896 | return val | |
897 | def SetRange(self, *_args, **_kwargs): | |
898 | val = apply(controlsc.wxSpinCtrl_SetRange,(self,) + _args, _kwargs) | |
899 | return val | |
900 | def SetValue(self, *_args, **_kwargs): | |
901 | val = apply(controlsc.wxSpinCtrl_SetValue,(self,) + _args, _kwargs) | |
902 | return val | |
f6bcfd97 BP |
903 | def __repr__(self): |
904 | return "<C wxSpinCtrl instance at %s>" % (self.this,) | |
905 | class wxSpinCtrl(wxSpinCtrlPtr): | |
906 | def __init__(self,*_args,**_kwargs): | |
907 | self.this = apply(controlsc.new_wxSpinCtrl,_args,_kwargs) | |
908 | self.thisown = 1 | |
70551f47 RD |
909 | |
910 | ||
911 | ||
912 | ||
d1679124 RD |
913 | class wxToggleButtonPtr(wxControlPtr): |
914 | def __init__(self,this): | |
915 | self.this = this | |
916 | self.thisown = 0 | |
917 | def SetValue(self, *_args, **_kwargs): | |
918 | val = apply(controlsc.wxToggleButton_SetValue,(self,) + _args, _kwargs) | |
919 | return val | |
920 | def GetValue(self, *_args, **_kwargs): | |
921 | val = apply(controlsc.wxToggleButton_GetValue,(self,) + _args, _kwargs) | |
922 | return val | |
923 | def SetLabel(self, *_args, **_kwargs): | |
924 | val = apply(controlsc.wxToggleButton_SetLabel,(self,) + _args, _kwargs) | |
925 | return val | |
926 | def __repr__(self): | |
927 | return "<C wxToggleButton instance at %s>" % (self.this,) | |
928 | class wxToggleButton(wxToggleButtonPtr): | |
929 | def __init__(self,*_args,**_kwargs): | |
930 | self.this = apply(controlsc.new_wxToggleButton,_args,_kwargs) | |
931 | self.thisown = 1 | |
932 | ||
933 | ||
934 | ||
935 | ||
70551f47 RD |
936 | |
937 | ||
938 | #-------------- FUNCTION WRAPPERS ------------------ | |
939 | ||
56f5d962 RD |
940 | def wxButton_GetDefaultSize(*_args, **_kwargs): |
941 | val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs) | |
942 | if val: val = wxSizePtr(val); val.thisown = 1 | |
943 | return val | |
944 | ||
70551f47 RD |
945 | |
946 | ||
947 | #-------------- VARIABLE WRAPPERS ------------------ | |
948 | ||
37f6a977 RD |
949 | cvar = controlsc.cvar |
950 | wxDefaultValidator = wxValidatorPtr(controlsc.cvar.wxDefaultValidator) | |
d1679124 | 951 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = controlsc.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED |