]>
Commit | Line | Data |
---|---|---|
1 | # This file was created automatically by SWIG. | |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
4 | import _controls | |
5 | ||
6 | import core | |
7 | wx = core | |
8 | #--------------------------------------------------------------------------- | |
9 | ||
10 | BU_LEFT = _controls.BU_LEFT | |
11 | BU_TOP = _controls.BU_TOP | |
12 | BU_RIGHT = _controls.BU_RIGHT | |
13 | BU_BOTTOM = _controls.BU_BOTTOM | |
14 | BU_EXACTFIT = _controls.BU_EXACTFIT | |
15 | BU_AUTODRAW = _controls.BU_AUTODRAW | |
16 | class Button(core.Control): | |
17 | """""" | |
18 | def __repr__(self): | |
19 | return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
20 | def __init__(self, *args, **kwargs): | |
21 | """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
22 | Size size=DefaultSize, long style=0, | |
23 | Validator validator=DefaultValidator, | |
24 | wxString name=wxPyButtonNameStr) -> Button""" | |
25 | newobj = _controls.new_Button(*args, **kwargs) | |
26 | self.this = newobj.this | |
27 | self.thisown = 1 | |
28 | del newobj.thisown | |
29 | self._setOORInfo(self) | |
30 | ||
31 | def Create(*args, **kwargs): | |
32 | """Create(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
33 | Size size=DefaultSize, long style=0, | |
34 | Validator validator=DefaultValidator, | |
35 | wxString name=wxPyButtonNameStr) -> bool""" | |
36 | return _controls.Button_Create(*args, **kwargs) | |
37 | ||
38 | def SetDefault(*args, **kwargs): | |
39 | """SetDefault()""" | |
40 | return _controls.Button_SetDefault(*args, **kwargs) | |
41 | ||
42 | def SetImageLabel(*args, **kwargs): | |
43 | """SetImageLabel(wxBitmap bitmap)""" | |
44 | return _controls.Button_SetImageLabel(*args, **kwargs) | |
45 | ||
46 | def SetImageMargins(*args, **kwargs): | |
47 | """SetImageMargins(int x, int y)""" | |
48 | return _controls.Button_SetImageMargins(*args, **kwargs) | |
49 | ||
50 | def GetDefaultSize(*args, **kwargs): | |
51 | """Button.GetDefaultSize() -> Size""" | |
52 | return _controls.Button_GetDefaultSize(*args, **kwargs) | |
53 | ||
54 | GetDefaultSize = staticmethod(GetDefaultSize) | |
55 | ||
56 | class ButtonPtr(Button): | |
57 | def __init__(self, this): | |
58 | self.this = this | |
59 | if not hasattr(self,"thisown"): self.thisown = 0 | |
60 | self.__class__ = Button | |
61 | _controls.Button_swigregister(ButtonPtr) | |
62 | ||
63 | def PreButton(*args, **kwargs): | |
64 | """PreButton() -> Button""" | |
65 | val = _controls.new_PreButton(*args, **kwargs) | |
66 | val.thisown = 1 | |
67 | return val | |
68 | ||
69 | def Button_GetDefaultSize(*args, **kwargs): | |
70 | """Button_GetDefaultSize() -> Size""" | |
71 | return _controls.Button_GetDefaultSize(*args, **kwargs) | |
72 | ||
73 | class BitmapButton(Button): | |
74 | """""" | |
75 | def __repr__(self): | |
76 | return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
77 | def __init__(self, *args, **kwargs): | |
78 | """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition, | |
79 | Size size=DefaultSize, long style=BU_AUTODRAW, | |
80 | Validator validator=DefaultValidator, | |
81 | wxString name=wxPyButtonNameStr) -> BitmapButton""" | |
82 | newobj = _controls.new_BitmapButton(*args, **kwargs) | |
83 | self.this = newobj.this | |
84 | self.thisown = 1 | |
85 | del newobj.thisown | |
86 | self._setOORInfo(self) | |
87 | ||
88 | def Create(*args, **kwargs): | |
89 | """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition, | |
90 | Size size=DefaultSize, long style=BU_AUTODRAW, | |
91 | Validator validator=DefaultValidator, | |
92 | wxString name=wxPyButtonNameStr) -> bool""" | |
93 | return _controls.BitmapButton_Create(*args, **kwargs) | |
94 | ||
95 | def GetBitmapLabel(*args, **kwargs): | |
96 | """GetBitmapLabel() -> wxBitmap""" | |
97 | return _controls.BitmapButton_GetBitmapLabel(*args, **kwargs) | |
98 | ||
99 | def GetBitmapDisabled(*args, **kwargs): | |
100 | """GetBitmapDisabled() -> wxBitmap""" | |
101 | return _controls.BitmapButton_GetBitmapDisabled(*args, **kwargs) | |
102 | ||
103 | def GetBitmapFocus(*args, **kwargs): | |
104 | """GetBitmapFocus() -> wxBitmap""" | |
105 | return _controls.BitmapButton_GetBitmapFocus(*args, **kwargs) | |
106 | ||
107 | def GetBitmapSelected(*args, **kwargs): | |
108 | """GetBitmapSelected() -> wxBitmap""" | |
109 | return _controls.BitmapButton_GetBitmapSelected(*args, **kwargs) | |
110 | ||
111 | def SetBitmapDisabled(*args, **kwargs): | |
112 | """SetBitmapDisabled(wxBitmap bitmap)""" | |
113 | return _controls.BitmapButton_SetBitmapDisabled(*args, **kwargs) | |
114 | ||
115 | def SetBitmapFocus(*args, **kwargs): | |
116 | """SetBitmapFocus(wxBitmap bitmap)""" | |
117 | return _controls.BitmapButton_SetBitmapFocus(*args, **kwargs) | |
118 | ||
119 | def SetBitmapSelected(*args, **kwargs): | |
120 | """SetBitmapSelected(wxBitmap bitmap)""" | |
121 | return _controls.BitmapButton_SetBitmapSelected(*args, **kwargs) | |
122 | ||
123 | def SetBitmapLabel(*args, **kwargs): | |
124 | """SetBitmapLabel(wxBitmap bitmap)""" | |
125 | return _controls.BitmapButton_SetBitmapLabel(*args, **kwargs) | |
126 | ||
127 | def SetMargins(*args, **kwargs): | |
128 | """SetMargins(int x, int y)""" | |
129 | return _controls.BitmapButton_SetMargins(*args, **kwargs) | |
130 | ||
131 | def GetMarginX(*args, **kwargs): | |
132 | """GetMarginX() -> int""" | |
133 | return _controls.BitmapButton_GetMarginX(*args, **kwargs) | |
134 | ||
135 | def GetMarginY(*args, **kwargs): | |
136 | """GetMarginY() -> int""" | |
137 | return _controls.BitmapButton_GetMarginY(*args, **kwargs) | |
138 | ||
139 | ||
140 | class BitmapButtonPtr(BitmapButton): | |
141 | def __init__(self, this): | |
142 | self.this = this | |
143 | if not hasattr(self,"thisown"): self.thisown = 0 | |
144 | self.__class__ = BitmapButton | |
145 | _controls.BitmapButton_swigregister(BitmapButtonPtr) | |
146 | ||
147 | def PreBitmapButton(*args, **kwargs): | |
148 | """PreBitmapButton() -> BitmapButton""" | |
149 | val = _controls.new_PreBitmapButton(*args, **kwargs) | |
150 | val.thisown = 1 | |
151 | return val | |
152 | ||
153 | #--------------------------------------------------------------------------- | |
154 | ||
155 | CHK_2STATE = _controls.CHK_2STATE | |
156 | CHK_3STATE = _controls.CHK_3STATE | |
157 | CHK_ALLOW_3RD_STATE_FOR_USER = _controls.CHK_ALLOW_3RD_STATE_FOR_USER | |
158 | CHK_UNCHECKED = _controls.CHK_UNCHECKED | |
159 | CHK_CHECKED = _controls.CHK_CHECKED | |
160 | CHK_UNDETERMINED = _controls.CHK_UNDETERMINED | |
161 | class CheckBox(core.Control): | |
162 | """""" | |
163 | def __repr__(self): | |
164 | return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
165 | def __init__(self, *args, **kwargs): | |
166 | """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
167 | Size size=DefaultSize, long style=0, | |
168 | Validator validator=DefaultValidator, | |
169 | wxString name=wxPyCheckBoxNameStr) -> CheckBox""" | |
170 | newobj = _controls.new_CheckBox(*args, **kwargs) | |
171 | self.this = newobj.this | |
172 | self.thisown = 1 | |
173 | del newobj.thisown | |
174 | self._setOORInfo(self) | |
175 | ||
176 | def Create(*args, **kwargs): | |
177 | """Create(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
178 | Size size=DefaultSize, long style=0, | |
179 | Validator validator=DefaultValidator, | |
180 | wxString name=wxPyCheckBoxNameStr) -> bool""" | |
181 | return _controls.CheckBox_Create(*args, **kwargs) | |
182 | ||
183 | def GetValue(*args, **kwargs): | |
184 | """GetValue() -> bool""" | |
185 | return _controls.CheckBox_GetValue(*args, **kwargs) | |
186 | ||
187 | def IsChecked(*args, **kwargs): | |
188 | """IsChecked() -> bool""" | |
189 | return _controls.CheckBox_IsChecked(*args, **kwargs) | |
190 | ||
191 | def SetValue(*args, **kwargs): | |
192 | """SetValue(bool state)""" | |
193 | return _controls.CheckBox_SetValue(*args, **kwargs) | |
194 | ||
195 | def Get3StateValue(*args, **kwargs): | |
196 | """Get3StateValue() -> wxCheckBoxState""" | |
197 | return _controls.CheckBox_Get3StateValue(*args, **kwargs) | |
198 | ||
199 | def Set3StateValue(*args, **kwargs): | |
200 | """Set3StateValue(wxCheckBoxState state)""" | |
201 | return _controls.CheckBox_Set3StateValue(*args, **kwargs) | |
202 | ||
203 | def Is3State(*args, **kwargs): | |
204 | """Is3State() -> bool""" | |
205 | return _controls.CheckBox_Is3State(*args, **kwargs) | |
206 | ||
207 | def Is3rdStateAllowedForUser(*args, **kwargs): | |
208 | """Is3rdStateAllowedForUser() -> bool""" | |
209 | return _controls.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) | |
210 | ||
211 | ||
212 | class CheckBoxPtr(CheckBox): | |
213 | def __init__(self, this): | |
214 | self.this = this | |
215 | if not hasattr(self,"thisown"): self.thisown = 0 | |
216 | self.__class__ = CheckBox | |
217 | _controls.CheckBox_swigregister(CheckBoxPtr) | |
218 | ||
219 | def PreCheckBox(*args, **kwargs): | |
220 | """PreCheckBox() -> CheckBox""" | |
221 | val = _controls.new_PreCheckBox(*args, **kwargs) | |
222 | val.thisown = 1 | |
223 | return val | |
224 | ||
225 | #--------------------------------------------------------------------------- | |
226 | ||
227 | class Choice(core.ControlWithItems): | |
228 | """""" | |
229 | def __repr__(self): | |
230 | return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
231 | def __init__(self, *args, **kwargs): | |
232 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
233 | int choices=0, wxString choices_array=None, | |
234 | long style=0, Validator validator=DefaultValidator, | |
235 | wxString name=wxPyChoiceNameStr) -> Choice""" | |
236 | newobj = _controls.new_Choice(*args, **kwargs) | |
237 | self.this = newobj.this | |
238 | self.thisown = 1 | |
239 | del newobj.thisown | |
240 | self._setOORInfo(self) | |
241 | ||
242 | def Create(*args, **kwargs): | |
243 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
244 | int choices=0, wxString choices_array=None, | |
245 | long style=0, Validator validator=DefaultValidator, | |
246 | wxString name=wxPyChoiceNameStr) -> bool""" | |
247 | return _controls.Choice_Create(*args, **kwargs) | |
248 | ||
249 | def GetColumns(*args, **kwargs): | |
250 | """GetColumns() -> int""" | |
251 | return _controls.Choice_GetColumns(*args, **kwargs) | |
252 | ||
253 | def SetColumns(*args, **kwargs): | |
254 | """SetColumns(int n=1)""" | |
255 | return _controls.Choice_SetColumns(*args, **kwargs) | |
256 | ||
257 | def SetSelection(*args, **kwargs): | |
258 | """SetSelection(int n)""" | |
259 | return _controls.Choice_SetSelection(*args, **kwargs) | |
260 | ||
261 | def SetStringSelection(*args, **kwargs): | |
262 | """SetStringSelection(wxString string)""" | |
263 | return _controls.Choice_SetStringSelection(*args, **kwargs) | |
264 | ||
265 | def SetString(*args, **kwargs): | |
266 | """SetString(int n, wxString s)""" | |
267 | return _controls.Choice_SetString(*args, **kwargs) | |
268 | ||
269 | ||
270 | class ChoicePtr(Choice): | |
271 | def __init__(self, this): | |
272 | self.this = this | |
273 | if not hasattr(self,"thisown"): self.thisown = 0 | |
274 | self.__class__ = Choice | |
275 | _controls.Choice_swigregister(ChoicePtr) | |
276 | ||
277 | def PreChoice(*args, **kwargs): | |
278 | """PreChoice() -> Choice""" | |
279 | val = _controls.new_PreChoice(*args, **kwargs) | |
280 | val.thisown = 1 | |
281 | return val | |
282 | ||
283 | #--------------------------------------------------------------------------- | |
284 | ||
285 | class ComboBox(Choice): | |
286 | """""" | |
287 | def __repr__(self): | |
288 | return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
289 | def __init__(self, *args, **kwargs): | |
290 | """__init__(Window parent, int id, wxString value=wxPyEmptyString, | |
291 | Point pos=DefaultPosition, Size size=DefaultSize, | |
292 | int choices=0, wxString choices_array=None, | |
293 | long style=0, Validator validator=DefaultValidator, | |
294 | wxString name=wxPyComboBoxNameStr) -> ComboBox""" | |
295 | newobj = _controls.new_ComboBox(*args, **kwargs) | |
296 | self.this = newobj.this | |
297 | self.thisown = 1 | |
298 | del newobj.thisown | |
299 | self._setOORInfo(self) | |
300 | ||
301 | def Create(*args, **kwargs): | |
302 | """Create(Window parent, int id, wxString value=wxPyEmptyString, | |
303 | Point pos=DefaultPosition, Size size=DefaultSize, | |
304 | int choices=0, wxString choices_array=None, | |
305 | long style=0, Validator validator=DefaultValidator, | |
306 | wxString name=wxPyComboBoxNameStr) -> bool""" | |
307 | return _controls.ComboBox_Create(*args, **kwargs) | |
308 | ||
309 | def GetValue(*args, **kwargs): | |
310 | """GetValue() -> wxString""" | |
311 | return _controls.ComboBox_GetValue(*args, **kwargs) | |
312 | ||
313 | def SetValue(*args, **kwargs): | |
314 | """SetValue(wxString value)""" | |
315 | return _controls.ComboBox_SetValue(*args, **kwargs) | |
316 | ||
317 | def Copy(*args, **kwargs): | |
318 | """Copy()""" | |
319 | return _controls.ComboBox_Copy(*args, **kwargs) | |
320 | ||
321 | def Cut(*args, **kwargs): | |
322 | """Cut()""" | |
323 | return _controls.ComboBox_Cut(*args, **kwargs) | |
324 | ||
325 | def Paste(*args, **kwargs): | |
326 | """Paste()""" | |
327 | return _controls.ComboBox_Paste(*args, **kwargs) | |
328 | ||
329 | def SetInsertionPoint(*args, **kwargs): | |
330 | """SetInsertionPoint(long pos)""" | |
331 | return _controls.ComboBox_SetInsertionPoint(*args, **kwargs) | |
332 | ||
333 | def GetInsertionPoint(*args, **kwargs): | |
334 | """GetInsertionPoint() -> long""" | |
335 | return _controls.ComboBox_GetInsertionPoint(*args, **kwargs) | |
336 | ||
337 | def GetLastPosition(*args, **kwargs): | |
338 | """GetLastPosition() -> long""" | |
339 | return _controls.ComboBox_GetLastPosition(*args, **kwargs) | |
340 | ||
341 | def Replace(*args, **kwargs): | |
342 | """Replace(long from, long to, wxString value)""" | |
343 | return _controls.ComboBox_Replace(*args, **kwargs) | |
344 | ||
345 | def SetMark(*args, **kwargs): | |
346 | """SetMark(long from, long to)""" | |
347 | return _controls.ComboBox_SetMark(*args, **kwargs) | |
348 | ||
349 | def SetEditable(*args, **kwargs): | |
350 | """SetEditable(bool editable)""" | |
351 | return _controls.ComboBox_SetEditable(*args, **kwargs) | |
352 | ||
353 | def SetInsertionPointEnd(*args, **kwargs): | |
354 | """SetInsertionPointEnd()""" | |
355 | return _controls.ComboBox_SetInsertionPointEnd(*args, **kwargs) | |
356 | ||
357 | def Remove(*args, **kwargs): | |
358 | """Remove(long from, long to)""" | |
359 | return _controls.ComboBox_Remove(*args, **kwargs) | |
360 | ||
361 | ||
362 | class ComboBoxPtr(ComboBox): | |
363 | def __init__(self, this): | |
364 | self.this = this | |
365 | if not hasattr(self,"thisown"): self.thisown = 0 | |
366 | self.__class__ = ComboBox | |
367 | _controls.ComboBox_swigregister(ComboBoxPtr) | |
368 | ||
369 | def PreComboBox(*args, **kwargs): | |
370 | """PreComboBox() -> ComboBox""" | |
371 | val = _controls.new_PreComboBox(*args, **kwargs) | |
372 | val.thisown = 1 | |
373 | return val | |
374 | ||
375 | #--------------------------------------------------------------------------- | |
376 | ||
377 | GA_HORIZONTAL = _controls.GA_HORIZONTAL | |
378 | GA_VERTICAL = _controls.GA_VERTICAL | |
379 | GA_SMOOTH = _controls.GA_SMOOTH | |
380 | GA_PROGRESSBAR = _controls.GA_PROGRESSBAR | |
381 | class Gauge(core.Control): | |
382 | """""" | |
383 | def __repr__(self): | |
384 | return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
385 | def __init__(self, *args, **kwargs): | |
386 | """__init__(Window parent, int id, int range, Point pos=DefaultPosition, | |
387 | Size size=DefaultSize, long style=GA_HORIZONTAL, | |
388 | Validator validator=DefaultValidator, | |
389 | wxString name=wxPyGaugeNameStr) -> Gauge""" | |
390 | newobj = _controls.new_Gauge(*args, **kwargs) | |
391 | self.this = newobj.this | |
392 | self.thisown = 1 | |
393 | del newobj.thisown | |
394 | self._setOORInfo(self) | |
395 | ||
396 | def Create(*args, **kwargs): | |
397 | """Create(Window parent, int id, int range, Point pos=DefaultPosition, | |
398 | Size size=DefaultSize, long style=GA_HORIZONTAL, | |
399 | Validator validator=DefaultValidator, | |
400 | wxString name=wxPyGaugeNameStr) -> bool""" | |
401 | return _controls.Gauge_Create(*args, **kwargs) | |
402 | ||
403 | def SetRange(*args, **kwargs): | |
404 | """SetRange(int range)""" | |
405 | return _controls.Gauge_SetRange(*args, **kwargs) | |
406 | ||
407 | def GetRange(*args, **kwargs): | |
408 | """GetRange() -> int""" | |
409 | return _controls.Gauge_GetRange(*args, **kwargs) | |
410 | ||
411 | def SetValue(*args, **kwargs): | |
412 | """SetValue(int pos)""" | |
413 | return _controls.Gauge_SetValue(*args, **kwargs) | |
414 | ||
415 | def GetValue(*args, **kwargs): | |
416 | """GetValue() -> int""" | |
417 | return _controls.Gauge_GetValue(*args, **kwargs) | |
418 | ||
419 | def IsVertical(*args, **kwargs): | |
420 | """IsVertical() -> bool""" | |
421 | return _controls.Gauge_IsVertical(*args, **kwargs) | |
422 | ||
423 | def SetShadowWidth(*args, **kwargs): | |
424 | """SetShadowWidth(int w)""" | |
425 | return _controls.Gauge_SetShadowWidth(*args, **kwargs) | |
426 | ||
427 | def GetShadowWidth(*args, **kwargs): | |
428 | """GetShadowWidth() -> int""" | |
429 | return _controls.Gauge_GetShadowWidth(*args, **kwargs) | |
430 | ||
431 | def SetBezelFace(*args, **kwargs): | |
432 | """SetBezelFace(int w)""" | |
433 | return _controls.Gauge_SetBezelFace(*args, **kwargs) | |
434 | ||
435 | def GetBezelFace(*args, **kwargs): | |
436 | """GetBezelFace() -> int""" | |
437 | return _controls.Gauge_GetBezelFace(*args, **kwargs) | |
438 | ||
439 | ||
440 | class GaugePtr(Gauge): | |
441 | def __init__(self, this): | |
442 | self.this = this | |
443 | if not hasattr(self,"thisown"): self.thisown = 0 | |
444 | self.__class__ = Gauge | |
445 | _controls.Gauge_swigregister(GaugePtr) | |
446 | ||
447 | def PreGauge(*args, **kwargs): | |
448 | """PreGauge() -> Gauge""" | |
449 | val = _controls.new_PreGauge(*args, **kwargs) | |
450 | val.thisown = 1 | |
451 | return val | |
452 | ||
453 | #--------------------------------------------------------------------------- | |
454 | ||
455 | class StaticBox(core.Control): | |
456 | """""" | |
457 | def __repr__(self): | |
458 | return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
459 | def __init__(self, *args, **kwargs): | |
460 | """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
461 | Size size=DefaultSize, long style=0, | |
462 | wxString name=wxPyStaticBoxNameStr) -> StaticBox""" | |
463 | newobj = _controls.new_StaticBox(*args, **kwargs) | |
464 | self.this = newobj.this | |
465 | self.thisown = 1 | |
466 | del newobj.thisown | |
467 | self._setOORInfo(self) | |
468 | ||
469 | def Create(*args, **kwargs): | |
470 | """Create(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
471 | Size size=DefaultSize, long style=0, | |
472 | wxString name=wxPyStaticBoxNameStr) -> bool""" | |
473 | return _controls.StaticBox_Create(*args, **kwargs) | |
474 | ||
475 | ||
476 | class StaticBoxPtr(StaticBox): | |
477 | def __init__(self, this): | |
478 | self.this = this | |
479 | if not hasattr(self,"thisown"): self.thisown = 0 | |
480 | self.__class__ = StaticBox | |
481 | _controls.StaticBox_swigregister(StaticBoxPtr) | |
482 | ||
483 | def PreStaticBox(*args, **kwargs): | |
484 | """PreStaticBox() -> StaticBox""" | |
485 | val = _controls.new_PreStaticBox(*args, **kwargs) | |
486 | val.thisown = 1 | |
487 | return val | |
488 | ||
489 | #--------------------------------------------------------------------------- | |
490 | ||
491 | class StaticLine(core.Control): | |
492 | """""" | |
493 | def __repr__(self): | |
494 | return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
495 | def __init__(self, *args, **kwargs): | |
496 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
497 | long style=LI_HORIZONTAL, | |
498 | wxString name=wxPyStaticTextNameStr) -> StaticLine""" | |
499 | newobj = _controls.new_StaticLine(*args, **kwargs) | |
500 | self.this = newobj.this | |
501 | self.thisown = 1 | |
502 | del newobj.thisown | |
503 | self._setOORInfo(self) | |
504 | ||
505 | def Create(*args, **kwargs): | |
506 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
507 | long style=LI_HORIZONTAL, | |
508 | wxString name=wxPyStaticTextNameStr) -> bool""" | |
509 | return _controls.StaticLine_Create(*args, **kwargs) | |
510 | ||
511 | def IsVertical(*args, **kwargs): | |
512 | """IsVertical() -> bool""" | |
513 | return _controls.StaticLine_IsVertical(*args, **kwargs) | |
514 | ||
515 | def GetDefaultSize(*args, **kwargs): | |
516 | """StaticLine.GetDefaultSize() -> int""" | |
517 | return _controls.StaticLine_GetDefaultSize(*args, **kwargs) | |
518 | ||
519 | GetDefaultSize = staticmethod(GetDefaultSize) | |
520 | ||
521 | class StaticLinePtr(StaticLine): | |
522 | def __init__(self, this): | |
523 | self.this = this | |
524 | if not hasattr(self,"thisown"): self.thisown = 0 | |
525 | self.__class__ = StaticLine | |
526 | _controls.StaticLine_swigregister(StaticLinePtr) | |
527 | ||
528 | def PreStaticLine(*args, **kwargs): | |
529 | """PreStaticLine() -> StaticLine""" | |
530 | val = _controls.new_PreStaticLine(*args, **kwargs) | |
531 | val.thisown = 1 | |
532 | return val | |
533 | ||
534 | def StaticLine_GetDefaultSize(*args, **kwargs): | |
535 | """StaticLine_GetDefaultSize() -> int""" | |
536 | return _controls.StaticLine_GetDefaultSize(*args, **kwargs) | |
537 | ||
538 | #--------------------------------------------------------------------------- | |
539 | ||
540 | class StaticText(core.Control): | |
541 | """""" | |
542 | def __repr__(self): | |
543 | return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
544 | def __init__(self, *args, **kwargs): | |
545 | """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
546 | Size size=DefaultSize, long style=0, | |
547 | wxString name=wxPyStaticTextNameStr) -> StaticText""" | |
548 | newobj = _controls.new_StaticText(*args, **kwargs) | |
549 | self.this = newobj.this | |
550 | self.thisown = 1 | |
551 | del newobj.thisown | |
552 | self._setOORInfo(self) | |
553 | ||
554 | def Create(*args, **kwargs): | |
555 | """Create(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
556 | Size size=DefaultSize, long style=0, | |
557 | wxString name=wxPyStaticTextNameStr) -> bool""" | |
558 | return _controls.StaticText_Create(*args, **kwargs) | |
559 | ||
560 | ||
561 | class StaticTextPtr(StaticText): | |
562 | def __init__(self, this): | |
563 | self.this = this | |
564 | if not hasattr(self,"thisown"): self.thisown = 0 | |
565 | self.__class__ = StaticText | |
566 | _controls.StaticText_swigregister(StaticTextPtr) | |
567 | ||
568 | def PreStaticText(*args, **kwargs): | |
569 | """PreStaticText() -> StaticText""" | |
570 | val = _controls.new_PreStaticText(*args, **kwargs) | |
571 | val.thisown = 1 | |
572 | return val | |
573 | ||
574 | #--------------------------------------------------------------------------- | |
575 | ||
576 | class StaticBitmap(core.Control): | |
577 | """""" | |
578 | def __repr__(self): | |
579 | return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
580 | def __init__(self, *args, **kwargs): | |
581 | """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition, | |
582 | Size size=DefaultSize, long style=0, | |
583 | wxString name=wxPyStaticBitmapNameStr) -> StaticBitmap""" | |
584 | newobj = _controls.new_StaticBitmap(*args, **kwargs) | |
585 | self.this = newobj.this | |
586 | self.thisown = 1 | |
587 | del newobj.thisown | |
588 | def Create(*args, **kwargs): | |
589 | """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition, | |
590 | Size size=DefaultSize, long style=0, | |
591 | wxString name=wxPyStaticBitmapNameStr) -> bool""" | |
592 | return _controls.StaticBitmap_Create(*args, **kwargs) | |
593 | ||
594 | def GetBitmap(*args, **kwargs): | |
595 | """GetBitmap() -> wxBitmap""" | |
596 | return _controls.StaticBitmap_GetBitmap(*args, **kwargs) | |
597 | ||
598 | def SetBitmap(*args, **kwargs): | |
599 | """SetBitmap(wxBitmap bitmap)""" | |
600 | return _controls.StaticBitmap_SetBitmap(*args, **kwargs) | |
601 | ||
602 | def SetIcon(*args, **kwargs): | |
603 | """SetIcon(wxIcon icon)""" | |
604 | return _controls.StaticBitmap_SetIcon(*args, **kwargs) | |
605 | ||
606 | ||
607 | class StaticBitmapPtr(StaticBitmap): | |
608 | def __init__(self, this): | |
609 | self.this = this | |
610 | if not hasattr(self,"thisown"): self.thisown = 0 | |
611 | self.__class__ = StaticBitmap | |
612 | _controls.StaticBitmap_swigregister(StaticBitmapPtr) | |
613 | ||
614 | def PreStaticBitmap(*args, **kwargs): | |
615 | """PreStaticBitmap() -> StaticBitmap""" | |
616 | val = _controls.new_PreStaticBitmap(*args, **kwargs) | |
617 | val.thisown = 1 | |
618 | return val | |
619 | ||
620 | #--------------------------------------------------------------------------- | |
621 | ||
622 | class ListBox(core.ControlWithItems): | |
623 | """""" | |
624 | def __repr__(self): | |
625 | return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
626 | def __init__(self, *args, **kwargs): | |
627 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
628 | int choices=0, wxString choices_array=None, | |
629 | long style=0, Validator validator=DefaultValidator, | |
630 | wxString name=wxPyListBoxNameStr) -> ListBox""" | |
631 | newobj = _controls.new_ListBox(*args, **kwargs) | |
632 | self.this = newobj.this | |
633 | self.thisown = 1 | |
634 | del newobj.thisown | |
635 | self._setOORInfo(self) | |
636 | ||
637 | def Create(*args, **kwargs): | |
638 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
639 | int choices=0, wxString choices_array=None, | |
640 | long style=0, Validator validator=DefaultValidator, | |
641 | wxString name=wxPyListBoxNameStr) -> bool""" | |
642 | return _controls.ListBox_Create(*args, **kwargs) | |
643 | ||
644 | def Insert(*args, **kwargs): | |
645 | """Insert(wxString item, int pos, PyObject clientData=None)""" | |
646 | return _controls.ListBox_Insert(*args, **kwargs) | |
647 | ||
648 | def InsertItems(*args, **kwargs): | |
649 | """InsertItems(wxArrayString items, int pos)""" | |
650 | return _controls.ListBox_InsertItems(*args, **kwargs) | |
651 | ||
652 | def Set(*args, **kwargs): | |
653 | """Set(wxArrayString items)""" | |
654 | return _controls.ListBox_Set(*args, **kwargs) | |
655 | ||
656 | def IsSelected(*args, **kwargs): | |
657 | """IsSelected(int n) -> bool""" | |
658 | return _controls.ListBox_IsSelected(*args, **kwargs) | |
659 | ||
660 | def SetSelection(*args, **kwargs): | |
661 | """SetSelection(int n, bool select=True)""" | |
662 | return _controls.ListBox_SetSelection(*args, **kwargs) | |
663 | ||
664 | def Select(*args, **kwargs): | |
665 | """Select(int n)""" | |
666 | return _controls.ListBox_Select(*args, **kwargs) | |
667 | ||
668 | def Deselect(*args, **kwargs): | |
669 | """Deselect(int n)""" | |
670 | return _controls.ListBox_Deselect(*args, **kwargs) | |
671 | ||
672 | def DeselectAll(*args, **kwargs): | |
673 | """DeselectAll(int itemToLeaveSelected=-1)""" | |
674 | return _controls.ListBox_DeselectAll(*args, **kwargs) | |
675 | ||
676 | def SetStringSelection(*args, **kwargs): | |
677 | """SetStringSelection(wxString s, bool select=True) -> bool""" | |
678 | return _controls.ListBox_SetStringSelection(*args, **kwargs) | |
679 | ||
680 | def GetSelections(*args, **kwargs): | |
681 | """GetSelections() -> PyObject""" | |
682 | return _controls.ListBox_GetSelections(*args, **kwargs) | |
683 | ||
684 | def SetFirstItem(*args, **kwargs): | |
685 | """SetFirstItem(int n)""" | |
686 | return _controls.ListBox_SetFirstItem(*args, **kwargs) | |
687 | ||
688 | def SetFirstItemStr(*args, **kwargs): | |
689 | """SetFirstItemStr(wxString s)""" | |
690 | return _controls.ListBox_SetFirstItemStr(*args, **kwargs) | |
691 | ||
692 | def EnsureVisible(*args, **kwargs): | |
693 | """EnsureVisible(int n)""" | |
694 | return _controls.ListBox_EnsureVisible(*args, **kwargs) | |
695 | ||
696 | def AppendAndEnsureVisible(*args, **kwargs): | |
697 | """AppendAndEnsureVisible(wxString s)""" | |
698 | return _controls.ListBox_AppendAndEnsureVisible(*args, **kwargs) | |
699 | ||
700 | def IsSorted(*args, **kwargs): | |
701 | """IsSorted() -> bool""" | |
702 | return _controls.ListBox_IsSorted(*args, **kwargs) | |
703 | ||
704 | ||
705 | class ListBoxPtr(ListBox): | |
706 | def __init__(self, this): | |
707 | self.this = this | |
708 | if not hasattr(self,"thisown"): self.thisown = 0 | |
709 | self.__class__ = ListBox | |
710 | _controls.ListBox_swigregister(ListBoxPtr) | |
711 | ||
712 | def PreListBox(*args, **kwargs): | |
713 | """PreListBox() -> ListBox""" | |
714 | val = _controls.new_PreListBox(*args, **kwargs) | |
715 | val.thisown = 1 | |
716 | return val | |
717 | ||
718 | #--------------------------------------------------------------------------- | |
719 | ||
720 | class CheckListBox(ListBox): | |
721 | """""" | |
722 | def __repr__(self): | |
723 | return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
724 | def __init__(self, *args, **kwargs): | |
725 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
726 | int choices=0, wxString choices_array=None, | |
727 | long style=0, Validator validator=DefaultValidator, | |
728 | wxString name=wxPyListBoxNameStr) -> CheckListBox""" | |
729 | newobj = _controls.new_CheckListBox(*args, **kwargs) | |
730 | self.this = newobj.this | |
731 | self.thisown = 1 | |
732 | del newobj.thisown | |
733 | def Create(*args, **kwargs): | |
734 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
735 | int choices=0, wxString choices_array=None, | |
736 | long style=0, Validator validator=DefaultValidator, | |
737 | wxString name=wxPyListBoxNameStr) -> bool""" | |
738 | return _controls.CheckListBox_Create(*args, **kwargs) | |
739 | ||
740 | def IsChecked(*args, **kwargs): | |
741 | """IsChecked(int index) -> bool""" | |
742 | return _controls.CheckListBox_IsChecked(*args, **kwargs) | |
743 | ||
744 | def Check(*args, **kwargs): | |
745 | """Check(int index, int check=True)""" | |
746 | return _controls.CheckListBox_Check(*args, **kwargs) | |
747 | ||
748 | def GetItemHeight(*args, **kwargs): | |
749 | """GetItemHeight() -> int""" | |
750 | return _controls.CheckListBox_GetItemHeight(*args, **kwargs) | |
751 | ||
752 | def HitTest(*args, **kwargs): | |
753 | """HitTest(Point pt) -> int""" | |
754 | return _controls.CheckListBox_HitTest(*args, **kwargs) | |
755 | ||
756 | def HitTestXY(*args, **kwargs): | |
757 | """HitTestXY(int x, int y) -> int""" | |
758 | return _controls.CheckListBox_HitTestXY(*args, **kwargs) | |
759 | ||
760 | ||
761 | class CheckListBoxPtr(CheckListBox): | |
762 | def __init__(self, this): | |
763 | self.this = this | |
764 | if not hasattr(self,"thisown"): self.thisown = 0 | |
765 | self.__class__ = CheckListBox | |
766 | _controls.CheckListBox_swigregister(CheckListBoxPtr) | |
767 | ||
768 | def PreCheckListBox(*args, **kwargs): | |
769 | """PreCheckListBox() -> CheckListBox""" | |
770 | val = _controls.new_PreCheckListBox(*args, **kwargs) | |
771 | val.thisown = 1 | |
772 | return val | |
773 | ||
774 | #--------------------------------------------------------------------------- | |
775 | ||
776 | TE_NO_VSCROLL = _controls.TE_NO_VSCROLL | |
777 | TE_AUTO_SCROLL = _controls.TE_AUTO_SCROLL | |
778 | TE_READONLY = _controls.TE_READONLY | |
779 | TE_MULTILINE = _controls.TE_MULTILINE | |
780 | TE_PROCESS_TAB = _controls.TE_PROCESS_TAB | |
781 | TE_LEFT = _controls.TE_LEFT | |
782 | TE_CENTER = _controls.TE_CENTER | |
783 | TE_RIGHT = _controls.TE_RIGHT | |
784 | TE_CENTRE = _controls.TE_CENTRE | |
785 | TE_RICH = _controls.TE_RICH | |
786 | TE_PROCESS_ENTER = _controls.TE_PROCESS_ENTER | |
787 | TE_PASSWORD = _controls.TE_PASSWORD | |
788 | TE_AUTO_URL = _controls.TE_AUTO_URL | |
789 | TE_NOHIDESEL = _controls.TE_NOHIDESEL | |
790 | TE_DONTWRAP = _controls.TE_DONTWRAP | |
791 | TE_LINEWRAP = _controls.TE_LINEWRAP | |
792 | TE_WORDWRAP = _controls.TE_WORDWRAP | |
793 | TE_RICH2 = _controls.TE_RICH2 | |
794 | TEXT_ALIGNMENT_DEFAULT = _controls.TEXT_ALIGNMENT_DEFAULT | |
795 | TEXT_ALIGNMENT_LEFT = _controls.TEXT_ALIGNMENT_LEFT | |
796 | TEXT_ALIGNMENT_CENTRE = _controls.TEXT_ALIGNMENT_CENTRE | |
797 | TEXT_ALIGNMENT_CENTER = _controls.TEXT_ALIGNMENT_CENTER | |
798 | TEXT_ALIGNMENT_RIGHT = _controls.TEXT_ALIGNMENT_RIGHT | |
799 | TEXT_ALIGNMENT_JUSTIFIED = _controls.TEXT_ALIGNMENT_JUSTIFIED | |
800 | TEXT_ATTR_TEXT_COLOUR = _controls.TEXT_ATTR_TEXT_COLOUR | |
801 | TEXT_ATTR_BACKGROUND_COLOUR = _controls.TEXT_ATTR_BACKGROUND_COLOUR | |
802 | TEXT_ATTR_FONT_FACE = _controls.TEXT_ATTR_FONT_FACE | |
803 | TEXT_ATTR_FONT_SIZE = _controls.TEXT_ATTR_FONT_SIZE | |
804 | TEXT_ATTR_FONT_WEIGHT = _controls.TEXT_ATTR_FONT_WEIGHT | |
805 | TEXT_ATTR_FONT_ITALIC = _controls.TEXT_ATTR_FONT_ITALIC | |
806 | TEXT_ATTR_FONT_UNDERLINE = _controls.TEXT_ATTR_FONT_UNDERLINE | |
807 | TEXT_ATTR_FONT = _controls.TEXT_ATTR_FONT | |
808 | TEXT_ATTR_ALIGNMENT = _controls.TEXT_ATTR_ALIGNMENT | |
809 | TEXT_ATTR_LEFT_INDENT = _controls.TEXT_ATTR_LEFT_INDENT | |
810 | TEXT_ATTR_RIGHT_INDENT = _controls.TEXT_ATTR_RIGHT_INDENT | |
811 | TEXT_ATTR_TABS = _controls.TEXT_ATTR_TABS | |
812 | class TextAttr(object): | |
813 | """""" | |
814 | def __repr__(self): | |
815 | return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
816 | def __init__(self, *args): | |
817 | """__init__() -> TextAttr | |
818 | __init__(wxColour colText, wxColour colBack=wxNullColour, wxFont font=wxNullFont, | |
819 | wxTextAttrAlignment alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr""" | |
820 | newobj = _controls.new_TextAttr(*args) | |
821 | self.this = newobj.this | |
822 | self.thisown = 1 | |
823 | del newobj.thisown | |
824 | def Init(*args, **kwargs): | |
825 | """Init()""" | |
826 | return _controls.TextAttr_Init(*args, **kwargs) | |
827 | ||
828 | def SetTextColour(*args, **kwargs): | |
829 | """SetTextColour(wxColour colText)""" | |
830 | return _controls.TextAttr_SetTextColour(*args, **kwargs) | |
831 | ||
832 | def SetBackgroundColour(*args, **kwargs): | |
833 | """SetBackgroundColour(wxColour colBack)""" | |
834 | return _controls.TextAttr_SetBackgroundColour(*args, **kwargs) | |
835 | ||
836 | def SetFont(*args, **kwargs): | |
837 | """SetFont(wxFont font, long flags=TEXT_ATTR_FONT)""" | |
838 | return _controls.TextAttr_SetFont(*args, **kwargs) | |
839 | ||
840 | def SetAlignment(*args, **kwargs): | |
841 | """SetAlignment(wxTextAttrAlignment alignment)""" | |
842 | return _controls.TextAttr_SetAlignment(*args, **kwargs) | |
843 | ||
844 | def SetTabs(*args, **kwargs): | |
845 | """SetTabs(wxArrayInt tabs)""" | |
846 | return _controls.TextAttr_SetTabs(*args, **kwargs) | |
847 | ||
848 | def SetLeftIndent(*args, **kwargs): | |
849 | """SetLeftIndent(int indent)""" | |
850 | return _controls.TextAttr_SetLeftIndent(*args, **kwargs) | |
851 | ||
852 | def SetRightIndent(*args, **kwargs): | |
853 | """SetRightIndent(int indent)""" | |
854 | return _controls.TextAttr_SetRightIndent(*args, **kwargs) | |
855 | ||
856 | def SetFlags(*args, **kwargs): | |
857 | """SetFlags(long flags)""" | |
858 | return _controls.TextAttr_SetFlags(*args, **kwargs) | |
859 | ||
860 | def HasTextColour(*args, **kwargs): | |
861 | """HasTextColour() -> bool""" | |
862 | return _controls.TextAttr_HasTextColour(*args, **kwargs) | |
863 | ||
864 | def HasBackgroundColour(*args, **kwargs): | |
865 | """HasBackgroundColour() -> bool""" | |
866 | return _controls.TextAttr_HasBackgroundColour(*args, **kwargs) | |
867 | ||
868 | def HasFont(*args, **kwargs): | |
869 | """HasFont() -> bool""" | |
870 | return _controls.TextAttr_HasFont(*args, **kwargs) | |
871 | ||
872 | def HasAlignment(*args, **kwargs): | |
873 | """HasAlignment() -> bool""" | |
874 | return _controls.TextAttr_HasAlignment(*args, **kwargs) | |
875 | ||
876 | def HasTabs(*args, **kwargs): | |
877 | """HasTabs() -> bool""" | |
878 | return _controls.TextAttr_HasTabs(*args, **kwargs) | |
879 | ||
880 | def HasLeftIndent(*args, **kwargs): | |
881 | """HasLeftIndent() -> bool""" | |
882 | return _controls.TextAttr_HasLeftIndent(*args, **kwargs) | |
883 | ||
884 | def HasRightIndent(*args, **kwargs): | |
885 | """HasRightIndent() -> bool""" | |
886 | return _controls.TextAttr_HasRightIndent(*args, **kwargs) | |
887 | ||
888 | def HasFlag(*args, **kwargs): | |
889 | """HasFlag(long flag) -> bool""" | |
890 | return _controls.TextAttr_HasFlag(*args, **kwargs) | |
891 | ||
892 | def GetTextColour(*args, **kwargs): | |
893 | """GetTextColour() -> wxColour""" | |
894 | return _controls.TextAttr_GetTextColour(*args, **kwargs) | |
895 | ||
896 | def GetBackgroundColour(*args, **kwargs): | |
897 | """GetBackgroundColour() -> wxColour""" | |
898 | return _controls.TextAttr_GetBackgroundColour(*args, **kwargs) | |
899 | ||
900 | def GetFont(*args, **kwargs): | |
901 | """GetFont() -> wxFont""" | |
902 | return _controls.TextAttr_GetFont(*args, **kwargs) | |
903 | ||
904 | def GetAlignment(*args, **kwargs): | |
905 | """GetAlignment() -> wxTextAttrAlignment""" | |
906 | return _controls.TextAttr_GetAlignment(*args, **kwargs) | |
907 | ||
908 | def GetTabs(*args, **kwargs): | |
909 | """GetTabs() -> wxArrayInt""" | |
910 | return _controls.TextAttr_GetTabs(*args, **kwargs) | |
911 | ||
912 | def GetLeftIndent(*args, **kwargs): | |
913 | """GetLeftIndent() -> long""" | |
914 | return _controls.TextAttr_GetLeftIndent(*args, **kwargs) | |
915 | ||
916 | def GetRightIndent(*args, **kwargs): | |
917 | """GetRightIndent() -> long""" | |
918 | return _controls.TextAttr_GetRightIndent(*args, **kwargs) | |
919 | ||
920 | def GetFlags(*args, **kwargs): | |
921 | """GetFlags() -> long""" | |
922 | return _controls.TextAttr_GetFlags(*args, **kwargs) | |
923 | ||
924 | def IsDefault(*args, **kwargs): | |
925 | """IsDefault() -> bool""" | |
926 | return _controls.TextAttr_IsDefault(*args, **kwargs) | |
927 | ||
928 | def Combine(*args, **kwargs): | |
929 | """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" | |
930 | return _controls.TextAttr_Combine(*args, **kwargs) | |
931 | ||
932 | Combine = staticmethod(Combine) | |
933 | ||
934 | class TextAttrPtr(TextAttr): | |
935 | def __init__(self, this): | |
936 | self.this = this | |
937 | if not hasattr(self,"thisown"): self.thisown = 0 | |
938 | self.__class__ = TextAttr | |
939 | _controls.TextAttr_swigregister(TextAttrPtr) | |
940 | ||
941 | def TextAttr_Combine(*args, **kwargs): | |
942 | """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" | |
943 | return _controls.TextAttr_Combine(*args, **kwargs) | |
944 | ||
945 | class TextCtrl(core.Control): | |
946 | """""" | |
947 | def __repr__(self): | |
948 | return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
949 | def __init__(self, *args, **kwargs): | |
950 | """__init__(Window parent, int id, wxString value=wxPyEmptyString, | |
951 | Point pos=DefaultPosition, Size size=DefaultSize, | |
952 | long style=0, Validator validator=DefaultValidator, | |
953 | wxString name=wxPyTextCtrlNameStr) -> TextCtrl""" | |
954 | newobj = _controls.new_TextCtrl(*args, **kwargs) | |
955 | self.this = newobj.this | |
956 | self.thisown = 1 | |
957 | del newobj.thisown | |
958 | self._setOORInfo(self) | |
959 | ||
960 | def Create(*args, **kwargs): | |
961 | """Create(Window parent, int id, wxString value=wxPyEmptyString, | |
962 | Point pos=DefaultPosition, Size size=DefaultSize, | |
963 | long style=0, Validator validator=DefaultValidator, | |
964 | wxString name=wxPyTextCtrlNameStr) -> bool""" | |
965 | return _controls.TextCtrl_Create(*args, **kwargs) | |
966 | ||
967 | def GetValue(*args, **kwargs): | |
968 | """GetValue() -> wxString""" | |
969 | return _controls.TextCtrl_GetValue(*args, **kwargs) | |
970 | ||
971 | def SetValue(*args, **kwargs): | |
972 | """SetValue(wxString value)""" | |
973 | return _controls.TextCtrl_SetValue(*args, **kwargs) | |
974 | ||
975 | def GetRange(*args, **kwargs): | |
976 | """GetRange(long from, long to) -> wxString""" | |
977 | return _controls.TextCtrl_GetRange(*args, **kwargs) | |
978 | ||
979 | def GetLineLength(*args, **kwargs): | |
980 | """GetLineLength(long lineNo) -> int""" | |
981 | return _controls.TextCtrl_GetLineLength(*args, **kwargs) | |
982 | ||
983 | def GetLineText(*args, **kwargs): | |
984 | """GetLineText(long lineNo) -> wxString""" | |
985 | return _controls.TextCtrl_GetLineText(*args, **kwargs) | |
986 | ||
987 | def GetNumberOfLines(*args, **kwargs): | |
988 | """GetNumberOfLines() -> int""" | |
989 | return _controls.TextCtrl_GetNumberOfLines(*args, **kwargs) | |
990 | ||
991 | def IsModified(*args, **kwargs): | |
992 | """IsModified() -> bool""" | |
993 | return _controls.TextCtrl_IsModified(*args, **kwargs) | |
994 | ||
995 | def IsEditable(*args, **kwargs): | |
996 | """IsEditable() -> bool""" | |
997 | return _controls.TextCtrl_IsEditable(*args, **kwargs) | |
998 | ||
999 | def IsSingleLine(*args, **kwargs): | |
1000 | """IsSingleLine() -> bool""" | |
1001 | return _controls.TextCtrl_IsSingleLine(*args, **kwargs) | |
1002 | ||
1003 | def IsMultiLine(*args, **kwargs): | |
1004 | """IsMultiLine() -> bool""" | |
1005 | return _controls.TextCtrl_IsMultiLine(*args, **kwargs) | |
1006 | ||
1007 | def GetSelection(*args, **kwargs): | |
1008 | """GetSelection() -> (from, to) | |
1009 | ||
1010 | If the return values from and to are the same, there is no selection.""" | |
1011 | return _controls.TextCtrl_GetSelection(*args, **kwargs) | |
1012 | ||
1013 | def GetStringSelection(*args, **kwargs): | |
1014 | """GetStringSelection() -> wxString""" | |
1015 | return _controls.TextCtrl_GetStringSelection(*args, **kwargs) | |
1016 | ||
1017 | def Clear(*args, **kwargs): | |
1018 | """Clear()""" | |
1019 | return _controls.TextCtrl_Clear(*args, **kwargs) | |
1020 | ||
1021 | def Replace(*args, **kwargs): | |
1022 | """Replace(long from, long to, wxString value)""" | |
1023 | return _controls.TextCtrl_Replace(*args, **kwargs) | |
1024 | ||
1025 | def Remove(*args, **kwargs): | |
1026 | """Remove(long from, long to)""" | |
1027 | return _controls.TextCtrl_Remove(*args, **kwargs) | |
1028 | ||
1029 | def LoadFile(*args, **kwargs): | |
1030 | """LoadFile(wxString file) -> bool""" | |
1031 | return _controls.TextCtrl_LoadFile(*args, **kwargs) | |
1032 | ||
1033 | def SaveFile(*args, **kwargs): | |
1034 | """SaveFile(wxString file=wxPyEmptyString) -> bool""" | |
1035 | return _controls.TextCtrl_SaveFile(*args, **kwargs) | |
1036 | ||
1037 | def MarkDirty(*args, **kwargs): | |
1038 | """MarkDirty()""" | |
1039 | return _controls.TextCtrl_MarkDirty(*args, **kwargs) | |
1040 | ||
1041 | def DiscardEdits(*args, **kwargs): | |
1042 | """DiscardEdits()""" | |
1043 | return _controls.TextCtrl_DiscardEdits(*args, **kwargs) | |
1044 | ||
1045 | def SetMaxLength(*args, **kwargs): | |
1046 | """SetMaxLength(unsigned long len)""" | |
1047 | return _controls.TextCtrl_SetMaxLength(*args, **kwargs) | |
1048 | ||
1049 | def WriteText(*args, **kwargs): | |
1050 | """WriteText(wxString text)""" | |
1051 | return _controls.TextCtrl_WriteText(*args, **kwargs) | |
1052 | ||
1053 | def AppendText(*args, **kwargs): | |
1054 | """AppendText(wxString text)""" | |
1055 | return _controls.TextCtrl_AppendText(*args, **kwargs) | |
1056 | ||
1057 | def EmulateKeyPress(*args, **kwargs): | |
1058 | """EmulateKeyPress(KeyEvent event) -> bool""" | |
1059 | return _controls.TextCtrl_EmulateKeyPress(*args, **kwargs) | |
1060 | ||
1061 | def SetStyle(*args, **kwargs): | |
1062 | """SetStyle(long start, long end, TextAttr style) -> bool""" | |
1063 | return _controls.TextCtrl_SetStyle(*args, **kwargs) | |
1064 | ||
1065 | def GetStyle(*args, **kwargs): | |
1066 | """GetStyle(long position, TextAttr style) -> bool""" | |
1067 | return _controls.TextCtrl_GetStyle(*args, **kwargs) | |
1068 | ||
1069 | def SetDefaultStyle(*args, **kwargs): | |
1070 | """SetDefaultStyle(TextAttr style) -> bool""" | |
1071 | return _controls.TextCtrl_SetDefaultStyle(*args, **kwargs) | |
1072 | ||
1073 | def GetDefaultStyle(*args, **kwargs): | |
1074 | """GetDefaultStyle() -> TextAttr""" | |
1075 | return _controls.TextCtrl_GetDefaultStyle(*args, **kwargs) | |
1076 | ||
1077 | def XYToPosition(*args, **kwargs): | |
1078 | """XYToPosition(long x, long y) -> long""" | |
1079 | return _controls.TextCtrl_XYToPosition(*args, **kwargs) | |
1080 | ||
1081 | def PositionToXY(*args, **kwargs): | |
1082 | """PositionToXY(long pos) -> (x, y)""" | |
1083 | return _controls.TextCtrl_PositionToXY(*args, **kwargs) | |
1084 | ||
1085 | def ShowPosition(*args, **kwargs): | |
1086 | """ShowPosition(long pos)""" | |
1087 | return _controls.TextCtrl_ShowPosition(*args, **kwargs) | |
1088 | ||
1089 | def Copy(*args, **kwargs): | |
1090 | """Copy()""" | |
1091 | return _controls.TextCtrl_Copy(*args, **kwargs) | |
1092 | ||
1093 | def Cut(*args, **kwargs): | |
1094 | """Cut()""" | |
1095 | return _controls.TextCtrl_Cut(*args, **kwargs) | |
1096 | ||
1097 | def Paste(*args, **kwargs): | |
1098 | """Paste()""" | |
1099 | return _controls.TextCtrl_Paste(*args, **kwargs) | |
1100 | ||
1101 | def CanCopy(*args, **kwargs): | |
1102 | """CanCopy() -> bool""" | |
1103 | return _controls.TextCtrl_CanCopy(*args, **kwargs) | |
1104 | ||
1105 | def CanCut(*args, **kwargs): | |
1106 | """CanCut() -> bool""" | |
1107 | return _controls.TextCtrl_CanCut(*args, **kwargs) | |
1108 | ||
1109 | def CanPaste(*args, **kwargs): | |
1110 | """CanPaste() -> bool""" | |
1111 | return _controls.TextCtrl_CanPaste(*args, **kwargs) | |
1112 | ||
1113 | def Undo(*args, **kwargs): | |
1114 | """Undo()""" | |
1115 | return _controls.TextCtrl_Undo(*args, **kwargs) | |
1116 | ||
1117 | def Redo(*args, **kwargs): | |
1118 | """Redo()""" | |
1119 | return _controls.TextCtrl_Redo(*args, **kwargs) | |
1120 | ||
1121 | def CanUndo(*args, **kwargs): | |
1122 | """CanUndo() -> bool""" | |
1123 | return _controls.TextCtrl_CanUndo(*args, **kwargs) | |
1124 | ||
1125 | def CanRedo(*args, **kwargs): | |
1126 | """CanRedo() -> bool""" | |
1127 | return _controls.TextCtrl_CanRedo(*args, **kwargs) | |
1128 | ||
1129 | def SetInsertionPoint(*args, **kwargs): | |
1130 | """SetInsertionPoint(long pos)""" | |
1131 | return _controls.TextCtrl_SetInsertionPoint(*args, **kwargs) | |
1132 | ||
1133 | def SetInsertionPointEnd(*args, **kwargs): | |
1134 | """SetInsertionPointEnd()""" | |
1135 | return _controls.TextCtrl_SetInsertionPointEnd(*args, **kwargs) | |
1136 | ||
1137 | def GetInsertionPoint(*args, **kwargs): | |
1138 | """GetInsertionPoint() -> long""" | |
1139 | return _controls.TextCtrl_GetInsertionPoint(*args, **kwargs) | |
1140 | ||
1141 | def GetLastPosition(*args, **kwargs): | |
1142 | """GetLastPosition() -> long""" | |
1143 | return _controls.TextCtrl_GetLastPosition(*args, **kwargs) | |
1144 | ||
1145 | def SetSelection(*args, **kwargs): | |
1146 | """SetSelection(long from, long to)""" | |
1147 | return _controls.TextCtrl_SetSelection(*args, **kwargs) | |
1148 | ||
1149 | def SelectAll(*args, **kwargs): | |
1150 | """SelectAll()""" | |
1151 | return _controls.TextCtrl_SelectAll(*args, **kwargs) | |
1152 | ||
1153 | def SetEditable(*args, **kwargs): | |
1154 | """SetEditable(bool editable)""" | |
1155 | return _controls.TextCtrl_SetEditable(*args, **kwargs) | |
1156 | ||
1157 | def ShowNativeCaret(*args, **kwargs): | |
1158 | """ShowNativeCaret(bool show=True) -> bool""" | |
1159 | return _controls.TextCtrl_ShowNativeCaret(*args, **kwargs) | |
1160 | ||
1161 | def HideNativeCaret(*args, **kwargs): | |
1162 | """HideNativeCaret() -> bool""" | |
1163 | return _controls.TextCtrl_HideNativeCaret(*args, **kwargs) | |
1164 | ||
1165 | def write(*args, **kwargs): | |
1166 | """write(wxString text)""" | |
1167 | return _controls.TextCtrl_write(*args, **kwargs) | |
1168 | ||
1169 | def GetString(*args, **kwargs): | |
1170 | """GetString(long from, long to) -> wxString""" | |
1171 | return _controls.TextCtrl_GetString(*args, **kwargs) | |
1172 | ||
1173 | ||
1174 | class TextCtrlPtr(TextCtrl): | |
1175 | def __init__(self, this): | |
1176 | self.this = this | |
1177 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1178 | self.__class__ = TextCtrl | |
1179 | _controls.TextCtrl_swigregister(TextCtrlPtr) | |
1180 | ||
1181 | def PreTextCtrl(*args, **kwargs): | |
1182 | """PreTextCtrl() -> TextCtrl""" | |
1183 | val = _controls.new_PreTextCtrl(*args, **kwargs) | |
1184 | val.thisown = 1 | |
1185 | return val | |
1186 | ||
1187 | wxEVT_COMMAND_TEXT_UPDATED = _controls.wxEVT_COMMAND_TEXT_UPDATED | |
1188 | wxEVT_COMMAND_TEXT_ENTER = _controls.wxEVT_COMMAND_TEXT_ENTER | |
1189 | wxEVT_COMMAND_TEXT_URL = _controls.wxEVT_COMMAND_TEXT_URL | |
1190 | wxEVT_COMMAND_TEXT_MAXLEN = _controls.wxEVT_COMMAND_TEXT_MAXLEN | |
1191 | class TextUrlEvent(core.CommandEvent): | |
1192 | """""" | |
1193 | def __repr__(self): | |
1194 | return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1195 | def __init__(self, *args, **kwargs): | |
1196 | """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" | |
1197 | newobj = _controls.new_TextUrlEvent(*args, **kwargs) | |
1198 | self.this = newobj.this | |
1199 | self.thisown = 1 | |
1200 | del newobj.thisown | |
1201 | def GetMouseEvent(*args, **kwargs): | |
1202 | """GetMouseEvent() -> MouseEvent""" | |
1203 | return _controls.TextUrlEvent_GetMouseEvent(*args, **kwargs) | |
1204 | ||
1205 | def GetURLStart(*args, **kwargs): | |
1206 | """GetURLStart() -> long""" | |
1207 | return _controls.TextUrlEvent_GetURLStart(*args, **kwargs) | |
1208 | ||
1209 | def GetURLEnd(*args, **kwargs): | |
1210 | """GetURLEnd() -> long""" | |
1211 | return _controls.TextUrlEvent_GetURLEnd(*args, **kwargs) | |
1212 | ||
1213 | ||
1214 | class TextUrlEventPtr(TextUrlEvent): | |
1215 | def __init__(self, this): | |
1216 | self.this = this | |
1217 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1218 | self.__class__ = TextUrlEvent | |
1219 | _controls.TextUrlEvent_swigregister(TextUrlEventPtr) | |
1220 | ||
1221 | EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) | |
1222 | EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) | |
1223 | EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) | |
1224 | EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) | |
1225 | ||
1226 | #--------------------------------------------------------------------------- | |
1227 | ||
1228 | class ScrollBar(core.Control): | |
1229 | """""" | |
1230 | def __repr__(self): | |
1231 | return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1232 | def __init__(self, *args, **kwargs): | |
1233 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
1234 | Size size=DefaultSize, long style=SB_HORIZONTAL, | |
1235 | Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> ScrollBar""" | |
1236 | newobj = _controls.new_ScrollBar(*args, **kwargs) | |
1237 | self.this = newobj.this | |
1238 | self.thisown = 1 | |
1239 | del newobj.thisown | |
1240 | self._setOORInfo(self) | |
1241 | ||
1242 | def Create(*args, **kwargs): | |
1243 | """Create(Window parent, int id=-1, Point pos=DefaultPosition, | |
1244 | Size size=DefaultSize, long style=SB_HORIZONTAL, | |
1245 | Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> bool""" | |
1246 | return _controls.ScrollBar_Create(*args, **kwargs) | |
1247 | ||
1248 | def GetThumbPosition(*args, **kwargs): | |
1249 | """GetThumbPosition() -> int""" | |
1250 | return _controls.ScrollBar_GetThumbPosition(*args, **kwargs) | |
1251 | ||
1252 | def GetThumbSize(*args, **kwargs): | |
1253 | """GetThumbSize() -> int""" | |
1254 | return _controls.ScrollBar_GetThumbSize(*args, **kwargs) | |
1255 | ||
1256 | GetThumbLength = GetThumbSize | |
1257 | def GetPageSize(*args, **kwargs): | |
1258 | """GetPageSize() -> int""" | |
1259 | return _controls.ScrollBar_GetPageSize(*args, **kwargs) | |
1260 | ||
1261 | def GetRange(*args, **kwargs): | |
1262 | """GetRange() -> int""" | |
1263 | return _controls.ScrollBar_GetRange(*args, **kwargs) | |
1264 | ||
1265 | def IsVertical(*args, **kwargs): | |
1266 | """IsVertical() -> bool""" | |
1267 | return _controls.ScrollBar_IsVertical(*args, **kwargs) | |
1268 | ||
1269 | def SetThumbPosition(*args, **kwargs): | |
1270 | """SetThumbPosition(int viewStart)""" | |
1271 | return _controls.ScrollBar_SetThumbPosition(*args, **kwargs) | |
1272 | ||
1273 | def SetScrollbar(*args, **kwargs): | |
1274 | """SetScrollbar(int position, int thumbSize, int range, int pageSize, | |
1275 | bool refresh=True)""" | |
1276 | return _controls.ScrollBar_SetScrollbar(*args, **kwargs) | |
1277 | ||
1278 | ||
1279 | class ScrollBarPtr(ScrollBar): | |
1280 | def __init__(self, this): | |
1281 | self.this = this | |
1282 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1283 | self.__class__ = ScrollBar | |
1284 | _controls.ScrollBar_swigregister(ScrollBarPtr) | |
1285 | ||
1286 | def PreScrollBar(*args, **kwargs): | |
1287 | """PreScrollBar() -> ScrollBar""" | |
1288 | val = _controls.new_PreScrollBar(*args, **kwargs) | |
1289 | val.thisown = 1 | |
1290 | return val | |
1291 | ||
1292 | #--------------------------------------------------------------------------- | |
1293 | ||
1294 | SP_HORIZONTAL = _controls.SP_HORIZONTAL | |
1295 | SP_VERTICAL = _controls.SP_VERTICAL | |
1296 | SP_ARROW_KEYS = _controls.SP_ARROW_KEYS | |
1297 | SP_WRAP = _controls.SP_WRAP | |
1298 | class SpinButton(core.Control): | |
1299 | """""" | |
1300 | def __repr__(self): | |
1301 | return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1302 | def __init__(self, *args, **kwargs): | |
1303 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
1304 | Size size=DefaultSize, long style=SP_HORIZONTAL, | |
1305 | wxString name=wxPySPIN_BUTTON_NAME) -> SpinButton""" | |
1306 | newobj = _controls.new_SpinButton(*args, **kwargs) | |
1307 | self.this = newobj.this | |
1308 | self.thisown = 1 | |
1309 | del newobj.thisown | |
1310 | self._setOORInfo(self) | |
1311 | ||
1312 | def Create(*args, **kwargs): | |
1313 | """Create(Window parent, int id=-1, Point pos=DefaultPosition, | |
1314 | Size size=DefaultSize, long style=SP_HORIZONTAL, | |
1315 | wxString name=wxPySPIN_BUTTON_NAME) -> bool""" | |
1316 | return _controls.SpinButton_Create(*args, **kwargs) | |
1317 | ||
1318 | def GetValue(*args, **kwargs): | |
1319 | """GetValue() -> int""" | |
1320 | return _controls.SpinButton_GetValue(*args, **kwargs) | |
1321 | ||
1322 | def GetMin(*args, **kwargs): | |
1323 | """GetMin() -> int""" | |
1324 | return _controls.SpinButton_GetMin(*args, **kwargs) | |
1325 | ||
1326 | def GetMax(*args, **kwargs): | |
1327 | """GetMax() -> int""" | |
1328 | return _controls.SpinButton_GetMax(*args, **kwargs) | |
1329 | ||
1330 | def SetValue(*args, **kwargs): | |
1331 | """SetValue(int val)""" | |
1332 | return _controls.SpinButton_SetValue(*args, **kwargs) | |
1333 | ||
1334 | def SetMin(*args, **kwargs): | |
1335 | """SetMin(int minVal)""" | |
1336 | return _controls.SpinButton_SetMin(*args, **kwargs) | |
1337 | ||
1338 | def SetMax(*args, **kwargs): | |
1339 | """SetMax(int maxVal)""" | |
1340 | return _controls.SpinButton_SetMax(*args, **kwargs) | |
1341 | ||
1342 | def SetRange(*args, **kwargs): | |
1343 | """SetRange(int minVal, int maxVal)""" | |
1344 | return _controls.SpinButton_SetRange(*args, **kwargs) | |
1345 | ||
1346 | def IsVertical(*args, **kwargs): | |
1347 | """IsVertical() -> bool""" | |
1348 | return _controls.SpinButton_IsVertical(*args, **kwargs) | |
1349 | ||
1350 | ||
1351 | class SpinButtonPtr(SpinButton): | |
1352 | def __init__(self, this): | |
1353 | self.this = this | |
1354 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1355 | self.__class__ = SpinButton | |
1356 | _controls.SpinButton_swigregister(SpinButtonPtr) | |
1357 | ||
1358 | def PreSpinButton(*args, **kwargs): | |
1359 | """PreSpinButton() -> SpinButton""" | |
1360 | val = _controls.new_PreSpinButton(*args, **kwargs) | |
1361 | val.thisown = 1 | |
1362 | return val | |
1363 | ||
1364 | class SpinCtrl(core.Control): | |
1365 | """""" | |
1366 | def __repr__(self): | |
1367 | return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1368 | def __init__(self, *args, **kwargs): | |
1369 | """__init__(Window parent, int id=-1, wxString value=wxPyEmptyString, | |
1370 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1371 | long style=SP_ARROW_KEYS, int min=0, | |
1372 | int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> SpinCtrl""" | |
1373 | newobj = _controls.new_SpinCtrl(*args, **kwargs) | |
1374 | self.this = newobj.this | |
1375 | self.thisown = 1 | |
1376 | del newobj.thisown | |
1377 | self._setOORInfo(self) | |
1378 | ||
1379 | def Create(*args, **kwargs): | |
1380 | """Create(Window parent, int id=-1, wxString value=wxPyEmptyString, | |
1381 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1382 | long style=SP_ARROW_KEYS, int min=0, | |
1383 | int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> bool""" | |
1384 | return _controls.SpinCtrl_Create(*args, **kwargs) | |
1385 | ||
1386 | def GetValue(*args, **kwargs): | |
1387 | """GetValue() -> int""" | |
1388 | return _controls.SpinCtrl_GetValue(*args, **kwargs) | |
1389 | ||
1390 | def SetValue(*args, **kwargs): | |
1391 | """SetValue(int value)""" | |
1392 | return _controls.SpinCtrl_SetValue(*args, **kwargs) | |
1393 | ||
1394 | def SetValueString(*args, **kwargs): | |
1395 | """SetValueString(wxString text)""" | |
1396 | return _controls.SpinCtrl_SetValueString(*args, **kwargs) | |
1397 | ||
1398 | def SetRange(*args, **kwargs): | |
1399 | """SetRange(int minVal, int maxVal)""" | |
1400 | return _controls.SpinCtrl_SetRange(*args, **kwargs) | |
1401 | ||
1402 | def GetMin(*args, **kwargs): | |
1403 | """GetMin() -> int""" | |
1404 | return _controls.SpinCtrl_GetMin(*args, **kwargs) | |
1405 | ||
1406 | def GetMax(*args, **kwargs): | |
1407 | """GetMax() -> int""" | |
1408 | return _controls.SpinCtrl_GetMax(*args, **kwargs) | |
1409 | ||
1410 | def SetSelection(*args, **kwargs): | |
1411 | """SetSelection(long from, long to)""" | |
1412 | return _controls.SpinCtrl_SetSelection(*args, **kwargs) | |
1413 | ||
1414 | ||
1415 | class SpinCtrlPtr(SpinCtrl): | |
1416 | def __init__(self, this): | |
1417 | self.this = this | |
1418 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1419 | self.__class__ = SpinCtrl | |
1420 | _controls.SpinCtrl_swigregister(SpinCtrlPtr) | |
1421 | ||
1422 | def PreSpinCtrl(*args, **kwargs): | |
1423 | """PreSpinCtrl() -> SpinCtrl""" | |
1424 | val = _controls.new_PreSpinCtrl(*args, **kwargs) | |
1425 | val.thisown = 1 | |
1426 | return val | |
1427 | ||
1428 | wxEVT_COMMAND_SPINCTRL_UPDATED = _controls.wxEVT_COMMAND_SPINCTRL_UPDATED | |
1429 | EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) | |
1430 | ||
1431 | #--------------------------------------------------------------------------- | |
1432 | ||
1433 | class RadioBox(core.Control): | |
1434 | """""" | |
1435 | def __repr__(self): | |
1436 | return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1437 | def __init__(self, *args, **kwargs): | |
1438 | """__init__(Window parent, int id, wxString label, Point point=DefaultPosition, | |
1439 | Size size=DefaultSize, int choices=0, | |
1440 | wxString choices_array=None, int majorDimension=0, | |
1441 | long style=RA_HORIZONTAL, Validator validator=DefaultValidator, | |
1442 | wxString name=wxPyRadioBoxNameStr) -> RadioBox""" | |
1443 | newobj = _controls.new_RadioBox(*args, **kwargs) | |
1444 | self.this = newobj.this | |
1445 | self.thisown = 1 | |
1446 | del newobj.thisown | |
1447 | self._setOORInfo(self) | |
1448 | ||
1449 | def Create(*args, **kwargs): | |
1450 | """Create(Window parent, int id, wxString label, Point point=DefaultPosition, | |
1451 | Size size=DefaultSize, int choices=0, | |
1452 | wxString choices_array=None, int majorDimension=0, | |
1453 | long style=RA_HORIZONTAL, Validator validator=DefaultValidator, | |
1454 | wxString name=wxPyRadioBoxNameStr) -> bool""" | |
1455 | return _controls.RadioBox_Create(*args, **kwargs) | |
1456 | ||
1457 | def SetSelection(*args, **kwargs): | |
1458 | """SetSelection(int n)""" | |
1459 | return _controls.RadioBox_SetSelection(*args, **kwargs) | |
1460 | ||
1461 | def GetSelection(*args, **kwargs): | |
1462 | """GetSelection() -> int""" | |
1463 | return _controls.RadioBox_GetSelection(*args, **kwargs) | |
1464 | ||
1465 | def GetStringSelection(*args, **kwargs): | |
1466 | """GetStringSelection() -> wxString""" | |
1467 | return _controls.RadioBox_GetStringSelection(*args, **kwargs) | |
1468 | ||
1469 | def SetStringSelection(*args, **kwargs): | |
1470 | """SetStringSelection(wxString s) -> bool""" | |
1471 | return _controls.RadioBox_SetStringSelection(*args, **kwargs) | |
1472 | ||
1473 | def GetCount(*args, **kwargs): | |
1474 | """GetCount() -> int""" | |
1475 | return _controls.RadioBox_GetCount(*args, **kwargs) | |
1476 | ||
1477 | def FindString(*args, **kwargs): | |
1478 | """FindString(wxString s) -> int""" | |
1479 | return _controls.RadioBox_FindString(*args, **kwargs) | |
1480 | ||
1481 | def GetString(*args, **kwargs): | |
1482 | """GetString(int n) -> wxString""" | |
1483 | return _controls.RadioBox_GetString(*args, **kwargs) | |
1484 | ||
1485 | def SetString(*args, **kwargs): | |
1486 | """SetString(int n, wxString label)""" | |
1487 | return _controls.RadioBox_SetString(*args, **kwargs) | |
1488 | ||
1489 | GetItemLabel = GetString | |
1490 | SetItemLabel = SetString | |
1491 | def EnableItem(*args, **kwargs): | |
1492 | """EnableItem(int n, bool enable=True)""" | |
1493 | return _controls.RadioBox_EnableItem(*args, **kwargs) | |
1494 | ||
1495 | def ShowItem(*args, **kwargs): | |
1496 | """ShowItem(int n, bool show=True)""" | |
1497 | return _controls.RadioBox_ShowItem(*args, **kwargs) | |
1498 | ||
1499 | def GetColumnCount(*args, **kwargs): | |
1500 | """GetColumnCount() -> int""" | |
1501 | return _controls.RadioBox_GetColumnCount(*args, **kwargs) | |
1502 | ||
1503 | def GetRowCount(*args, **kwargs): | |
1504 | """GetRowCount() -> int""" | |
1505 | return _controls.RadioBox_GetRowCount(*args, **kwargs) | |
1506 | ||
1507 | def GetNextItem(*args, **kwargs): | |
1508 | """GetNextItem(int item, wxDirection dir, long style) -> int""" | |
1509 | return _controls.RadioBox_GetNextItem(*args, **kwargs) | |
1510 | ||
1511 | ||
1512 | class RadioBoxPtr(RadioBox): | |
1513 | def __init__(self, this): | |
1514 | self.this = this | |
1515 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1516 | self.__class__ = RadioBox | |
1517 | _controls.RadioBox_swigregister(RadioBoxPtr) | |
1518 | ||
1519 | def PreRadioBox(*args, **kwargs): | |
1520 | """PreRadioBox() -> RadioBox""" | |
1521 | val = _controls.new_PreRadioBox(*args, **kwargs) | |
1522 | val.thisown = 1 | |
1523 | return val | |
1524 | ||
1525 | #--------------------------------------------------------------------------- | |
1526 | ||
1527 | class RadioButton(core.Control): | |
1528 | """""" | |
1529 | def __repr__(self): | |
1530 | return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1531 | def __init__(self, *args, **kwargs): | |
1532 | """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
1533 | Size size=DefaultSize, long style=0, | |
1534 | Validator validator=DefaultValidator, | |
1535 | wxString name=wxPyRadioButtonNameStr) -> RadioButton""" | |
1536 | newobj = _controls.new_RadioButton(*args, **kwargs) | |
1537 | self.this = newobj.this | |
1538 | self.thisown = 1 | |
1539 | del newobj.thisown | |
1540 | self._setOORInfo(self) | |
1541 | ||
1542 | def Create(*args, **kwargs): | |
1543 | """Create(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
1544 | Size size=DefaultSize, long style=0, | |
1545 | Validator validator=DefaultValidator, | |
1546 | wxString name=wxPyRadioButtonNameStr) -> bool""" | |
1547 | return _controls.RadioButton_Create(*args, **kwargs) | |
1548 | ||
1549 | def GetValue(*args, **kwargs): | |
1550 | """GetValue() -> bool""" | |
1551 | return _controls.RadioButton_GetValue(*args, **kwargs) | |
1552 | ||
1553 | def SetValue(*args, **kwargs): | |
1554 | """SetValue(bool value)""" | |
1555 | return _controls.RadioButton_SetValue(*args, **kwargs) | |
1556 | ||
1557 | ||
1558 | class RadioButtonPtr(RadioButton): | |
1559 | def __init__(self, this): | |
1560 | self.this = this | |
1561 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1562 | self.__class__ = RadioButton | |
1563 | _controls.RadioButton_swigregister(RadioButtonPtr) | |
1564 | ||
1565 | def PreRadioButton(*args, **kwargs): | |
1566 | """PreRadioButton() -> RadioButton""" | |
1567 | val = _controls.new_PreRadioButton(*args, **kwargs) | |
1568 | val.thisown = 1 | |
1569 | return val | |
1570 | ||
1571 | #--------------------------------------------------------------------------- | |
1572 | ||
1573 | class Slider(core.Control): | |
1574 | """""" | |
1575 | def __repr__(self): | |
1576 | return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1577 | def __init__(self, *args, **kwargs): | |
1578 | """__init__(Window parent, int id, int value, int minValue, int maxValue, | |
1579 | Point point=DefaultPosition, Size size=DefaultSize, | |
1580 | long style=SL_HORIZONTAL, Validator validator=DefaultValidator, | |
1581 | wxString name=wxPySliderNameStr) -> Slider""" | |
1582 | newobj = _controls.new_Slider(*args, **kwargs) | |
1583 | self.this = newobj.this | |
1584 | self.thisown = 1 | |
1585 | del newobj.thisown | |
1586 | self._setOORInfo(self) | |
1587 | ||
1588 | def Create(*args, **kwargs): | |
1589 | """Create(Window parent, int id, int value, int minValue, int maxValue, | |
1590 | Point point=DefaultPosition, Size size=DefaultSize, | |
1591 | long style=SL_HORIZONTAL, Validator validator=DefaultValidator, | |
1592 | wxString name=wxPySliderNameStr) -> bool""" | |
1593 | return _controls.Slider_Create(*args, **kwargs) | |
1594 | ||
1595 | def GetValue(*args, **kwargs): | |
1596 | """GetValue() -> int""" | |
1597 | return _controls.Slider_GetValue(*args, **kwargs) | |
1598 | ||
1599 | def SetValue(*args, **kwargs): | |
1600 | """SetValue(int value)""" | |
1601 | return _controls.Slider_SetValue(*args, **kwargs) | |
1602 | ||
1603 | def SetRange(*args, **kwargs): | |
1604 | """SetRange(int minValue, int maxValue)""" | |
1605 | return _controls.Slider_SetRange(*args, **kwargs) | |
1606 | ||
1607 | def GetMin(*args, **kwargs): | |
1608 | """GetMin() -> int""" | |
1609 | return _controls.Slider_GetMin(*args, **kwargs) | |
1610 | ||
1611 | def GetMax(*args, **kwargs): | |
1612 | """GetMax() -> int""" | |
1613 | return _controls.Slider_GetMax(*args, **kwargs) | |
1614 | ||
1615 | def SetMin(*args, **kwargs): | |
1616 | """SetMin(int minValue)""" | |
1617 | return _controls.Slider_SetMin(*args, **kwargs) | |
1618 | ||
1619 | def SetMax(*args, **kwargs): | |
1620 | """SetMax(int maxValue)""" | |
1621 | return _controls.Slider_SetMax(*args, **kwargs) | |
1622 | ||
1623 | def SetLineSize(*args, **kwargs): | |
1624 | """SetLineSize(int lineSize)""" | |
1625 | return _controls.Slider_SetLineSize(*args, **kwargs) | |
1626 | ||
1627 | def SetPageSize(*args, **kwargs): | |
1628 | """SetPageSize(int pageSize)""" | |
1629 | return _controls.Slider_SetPageSize(*args, **kwargs) | |
1630 | ||
1631 | def GetLineSize(*args, **kwargs): | |
1632 | """GetLineSize() -> int""" | |
1633 | return _controls.Slider_GetLineSize(*args, **kwargs) | |
1634 | ||
1635 | def GetPageSize(*args, **kwargs): | |
1636 | """GetPageSize() -> int""" | |
1637 | return _controls.Slider_GetPageSize(*args, **kwargs) | |
1638 | ||
1639 | def SetThumbLength(*args, **kwargs): | |
1640 | """SetThumbLength(int lenPixels)""" | |
1641 | return _controls.Slider_SetThumbLength(*args, **kwargs) | |
1642 | ||
1643 | def GetThumbLength(*args, **kwargs): | |
1644 | """GetThumbLength() -> int""" | |
1645 | return _controls.Slider_GetThumbLength(*args, **kwargs) | |
1646 | ||
1647 | def SetTickFreq(*args, **kwargs): | |
1648 | """SetTickFreq(int n, int pos)""" | |
1649 | return _controls.Slider_SetTickFreq(*args, **kwargs) | |
1650 | ||
1651 | def GetTickFreq(*args, **kwargs): | |
1652 | """GetTickFreq() -> int""" | |
1653 | return _controls.Slider_GetTickFreq(*args, **kwargs) | |
1654 | ||
1655 | def ClearTicks(*args, **kwargs): | |
1656 | """ClearTicks()""" | |
1657 | return _controls.Slider_ClearTicks(*args, **kwargs) | |
1658 | ||
1659 | def SetTick(*args, **kwargs): | |
1660 | """SetTick(int tickPos)""" | |
1661 | return _controls.Slider_SetTick(*args, **kwargs) | |
1662 | ||
1663 | def ClearSel(*args, **kwargs): | |
1664 | """ClearSel()""" | |
1665 | return _controls.Slider_ClearSel(*args, **kwargs) | |
1666 | ||
1667 | def GetSelEnd(*args, **kwargs): | |
1668 | """GetSelEnd() -> int""" | |
1669 | return _controls.Slider_GetSelEnd(*args, **kwargs) | |
1670 | ||
1671 | def GetSelStart(*args, **kwargs): | |
1672 | """GetSelStart() -> int""" | |
1673 | return _controls.Slider_GetSelStart(*args, **kwargs) | |
1674 | ||
1675 | def SetSelection(*args, **kwargs): | |
1676 | """SetSelection(int min, int max)""" | |
1677 | return _controls.Slider_SetSelection(*args, **kwargs) | |
1678 | ||
1679 | ||
1680 | class SliderPtr(Slider): | |
1681 | def __init__(self, this): | |
1682 | self.this = this | |
1683 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1684 | self.__class__ = Slider | |
1685 | _controls.Slider_swigregister(SliderPtr) | |
1686 | ||
1687 | def PreSlider(*args, **kwargs): | |
1688 | """PreSlider() -> Slider""" | |
1689 | val = _controls.new_PreSlider(*args, **kwargs) | |
1690 | val.thisown = 1 | |
1691 | return val | |
1692 | ||
1693 | #--------------------------------------------------------------------------- | |
1694 | ||
1695 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED | |
1696 | EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) | |
1697 | ||
1698 | class ToggleButton(core.Control): | |
1699 | """""" | |
1700 | def __repr__(self): | |
1701 | return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1702 | def __init__(self, *args, **kwargs): | |
1703 | """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
1704 | Size size=DefaultSize, long style=0, | |
1705 | Validator validator=DefaultValidator, | |
1706 | wxString name=wxPyToggleButtonNameStr) -> ToggleButton""" | |
1707 | newobj = _controls.new_ToggleButton(*args, **kwargs) | |
1708 | self.this = newobj.this | |
1709 | self.thisown = 1 | |
1710 | del newobj.thisown | |
1711 | self._setOORInfo(self) | |
1712 | ||
1713 | def Create(*args, **kwargs): | |
1714 | """Create(Window parent, int id, wxString label, Point pos=DefaultPosition, | |
1715 | Size size=DefaultSize, long style=0, | |
1716 | Validator validator=DefaultValidator, | |
1717 | wxString name=wxPyToggleButtonNameStr) -> bool""" | |
1718 | return _controls.ToggleButton_Create(*args, **kwargs) | |
1719 | ||
1720 | def SetValue(*args, **kwargs): | |
1721 | """SetValue(bool value)""" | |
1722 | return _controls.ToggleButton_SetValue(*args, **kwargs) | |
1723 | ||
1724 | def GetValue(*args, **kwargs): | |
1725 | """GetValue() -> bool""" | |
1726 | return _controls.ToggleButton_GetValue(*args, **kwargs) | |
1727 | ||
1728 | def SetLabel(*args, **kwargs): | |
1729 | """SetLabel(wxString label)""" | |
1730 | return _controls.ToggleButton_SetLabel(*args, **kwargs) | |
1731 | ||
1732 | ||
1733 | class ToggleButtonPtr(ToggleButton): | |
1734 | def __init__(self, this): | |
1735 | self.this = this | |
1736 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1737 | self.__class__ = ToggleButton | |
1738 | _controls.ToggleButton_swigregister(ToggleButtonPtr) | |
1739 | ||
1740 | def PreToggleButton(*args, **kwargs): | |
1741 | """PreToggleButton() -> ToggleButton""" | |
1742 | val = _controls.new_PreToggleButton(*args, **kwargs) | |
1743 | val.thisown = 1 | |
1744 | return val | |
1745 | ||
1746 | #--------------------------------------------------------------------------- | |
1747 | ||
1748 | class BookCtrl(core.Control): | |
1749 | """""" | |
1750 | def __init__(self): raise RuntimeError, "No constructor defined" | |
1751 | def __repr__(self): | |
1752 | return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1753 | def GetPageCount(*args, **kwargs): | |
1754 | """GetPageCount() -> size_t""" | |
1755 | return _controls.BookCtrl_GetPageCount(*args, **kwargs) | |
1756 | ||
1757 | def GetPage(*args, **kwargs): | |
1758 | """GetPage(size_t n) -> Window""" | |
1759 | return _controls.BookCtrl_GetPage(*args, **kwargs) | |
1760 | ||
1761 | def GetSelection(*args, **kwargs): | |
1762 | """GetSelection() -> int""" | |
1763 | return _controls.BookCtrl_GetSelection(*args, **kwargs) | |
1764 | ||
1765 | def SetPageText(*args, **kwargs): | |
1766 | """SetPageText(size_t n, wxString strText) -> bool""" | |
1767 | return _controls.BookCtrl_SetPageText(*args, **kwargs) | |
1768 | ||
1769 | def GetPageText(*args, **kwargs): | |
1770 | """GetPageText(size_t n) -> wxString""" | |
1771 | return _controls.BookCtrl_GetPageText(*args, **kwargs) | |
1772 | ||
1773 | def SetImageList(*args, **kwargs): | |
1774 | """SetImageList(wxImageList imageList)""" | |
1775 | return _controls.BookCtrl_SetImageList(*args, **kwargs) | |
1776 | ||
1777 | def AssignImageList(*args, **kwargs): | |
1778 | """AssignImageList(wxImageList imageList)""" | |
1779 | val = _controls.BookCtrl_AssignImageList(*args, **kwargs) | |
1780 | args[1].thisown = 0 | |
1781 | return val | |
1782 | ||
1783 | def GetImageList(*args, **kwargs): | |
1784 | """GetImageList() -> wxImageList""" | |
1785 | return _controls.BookCtrl_GetImageList(*args, **kwargs) | |
1786 | ||
1787 | def GetPageImage(*args, **kwargs): | |
1788 | """GetPageImage(size_t n) -> int""" | |
1789 | return _controls.BookCtrl_GetPageImage(*args, **kwargs) | |
1790 | ||
1791 | def SetPageImage(*args, **kwargs): | |
1792 | """SetPageImage(size_t n, int imageId) -> bool""" | |
1793 | return _controls.BookCtrl_SetPageImage(*args, **kwargs) | |
1794 | ||
1795 | def SetPageSize(*args, **kwargs): | |
1796 | """SetPageSize(Size size)""" | |
1797 | return _controls.BookCtrl_SetPageSize(*args, **kwargs) | |
1798 | ||
1799 | def CalcSizeFromPage(*args, **kwargs): | |
1800 | """CalcSizeFromPage(Size sizePage) -> Size""" | |
1801 | return _controls.BookCtrl_CalcSizeFromPage(*args, **kwargs) | |
1802 | ||
1803 | def DeletePage(*args, **kwargs): | |
1804 | """DeletePage(size_t n) -> bool""" | |
1805 | return _controls.BookCtrl_DeletePage(*args, **kwargs) | |
1806 | ||
1807 | def RemovePage(*args, **kwargs): | |
1808 | """RemovePage(size_t n) -> bool""" | |
1809 | return _controls.BookCtrl_RemovePage(*args, **kwargs) | |
1810 | ||
1811 | def DeleteAllPages(*args, **kwargs): | |
1812 | """DeleteAllPages() -> bool""" | |
1813 | return _controls.BookCtrl_DeleteAllPages(*args, **kwargs) | |
1814 | ||
1815 | def AddPage(*args, **kwargs): | |
1816 | """AddPage(Window page, wxString text, bool select=False, int imageId=-1) -> bool""" | |
1817 | return _controls.BookCtrl_AddPage(*args, **kwargs) | |
1818 | ||
1819 | def InsertPage(*args, **kwargs): | |
1820 | """InsertPage(size_t n, Window page, wxString text, bool select=False, | |
1821 | int imageId=-1) -> bool""" | |
1822 | return _controls.BookCtrl_InsertPage(*args, **kwargs) | |
1823 | ||
1824 | def SetSelection(*args, **kwargs): | |
1825 | """SetSelection(size_t n) -> int""" | |
1826 | return _controls.BookCtrl_SetSelection(*args, **kwargs) | |
1827 | ||
1828 | def AdvanceSelection(*args, **kwargs): | |
1829 | """AdvanceSelection(bool forward=True)""" | |
1830 | return _controls.BookCtrl_AdvanceSelection(*args, **kwargs) | |
1831 | ||
1832 | ||
1833 | class BookCtrlPtr(BookCtrl): | |
1834 | def __init__(self, this): | |
1835 | self.this = this | |
1836 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1837 | self.__class__ = BookCtrl | |
1838 | _controls.BookCtrl_swigregister(BookCtrlPtr) | |
1839 | ||
1840 | class BookCtrlEvent(core.NotifyEvent): | |
1841 | """""" | |
1842 | def __repr__(self): | |
1843 | return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1844 | def __init__(self, *args, **kwargs): | |
1845 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
1846 | int nOldSel=-1) -> BookCtrlEvent""" | |
1847 | newobj = _controls.new_BookCtrlEvent(*args, **kwargs) | |
1848 | self.this = newobj.this | |
1849 | self.thisown = 1 | |
1850 | del newobj.thisown | |
1851 | def GetSelection(*args, **kwargs): | |
1852 | """GetSelection() -> int""" | |
1853 | return _controls.BookCtrlEvent_GetSelection(*args, **kwargs) | |
1854 | ||
1855 | def SetSelection(*args, **kwargs): | |
1856 | """SetSelection(int nSel)""" | |
1857 | return _controls.BookCtrlEvent_SetSelection(*args, **kwargs) | |
1858 | ||
1859 | def GetOldSelection(*args, **kwargs): | |
1860 | """GetOldSelection() -> int""" | |
1861 | return _controls.BookCtrlEvent_GetOldSelection(*args, **kwargs) | |
1862 | ||
1863 | def SetOldSelection(*args, **kwargs): | |
1864 | """SetOldSelection(int nOldSel)""" | |
1865 | return _controls.BookCtrlEvent_SetOldSelection(*args, **kwargs) | |
1866 | ||
1867 | ||
1868 | class BookCtrlEventPtr(BookCtrlEvent): | |
1869 | def __init__(self, this): | |
1870 | self.this = this | |
1871 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1872 | self.__class__ = BookCtrlEvent | |
1873 | _controls.BookCtrlEvent_swigregister(BookCtrlEventPtr) | |
1874 | ||
1875 | #--------------------------------------------------------------------------- | |
1876 | ||
1877 | NB_FIXEDWIDTH = _controls.NB_FIXEDWIDTH | |
1878 | NB_TOP = _controls.NB_TOP | |
1879 | NB_LEFT = _controls.NB_LEFT | |
1880 | NB_RIGHT = _controls.NB_RIGHT | |
1881 | NB_BOTTOM = _controls.NB_BOTTOM | |
1882 | NB_MULTILINE = _controls.NB_MULTILINE | |
1883 | NB_HITTEST_NOWHERE = _controls.NB_HITTEST_NOWHERE | |
1884 | NB_HITTEST_ONICON = _controls.NB_HITTEST_ONICON | |
1885 | NB_HITTEST_ONLABEL = _controls.NB_HITTEST_ONLABEL | |
1886 | NB_HITTEST_ONITEM = _controls.NB_HITTEST_ONITEM | |
1887 | class Notebook(BookCtrl): | |
1888 | """""" | |
1889 | def __repr__(self): | |
1890 | return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1891 | def __init__(self, *args, **kwargs): | |
1892 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
1893 | long style=0, wxString name=wxPyNOTEBOOK_NAME) -> Notebook""" | |
1894 | newobj = _controls.new_Notebook(*args, **kwargs) | |
1895 | self.this = newobj.this | |
1896 | self.thisown = 1 | |
1897 | del newobj.thisown | |
1898 | self._setOORInfo(self) | |
1899 | ||
1900 | def Create(*args, **kwargs): | |
1901 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
1902 | long style=0, wxString name=wxPyNOTEBOOK_NAME) -> bool""" | |
1903 | return _controls.Notebook_Create(*args, **kwargs) | |
1904 | ||
1905 | def GetRowCount(*args, **kwargs): | |
1906 | """GetRowCount() -> int""" | |
1907 | return _controls.Notebook_GetRowCount(*args, **kwargs) | |
1908 | ||
1909 | def SetPadding(*args, **kwargs): | |
1910 | """SetPadding(Size padding)""" | |
1911 | return _controls.Notebook_SetPadding(*args, **kwargs) | |
1912 | ||
1913 | def SetTabSize(*args, **kwargs): | |
1914 | """SetTabSize(Size sz)""" | |
1915 | return _controls.Notebook_SetTabSize(*args, **kwargs) | |
1916 | ||
1917 | def HitTest(*args, **kwargs): | |
1918 | """HitTest(Point pt) -> (tab, where) | |
1919 | ||
1920 | Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.""" | |
1921 | return _controls.Notebook_HitTest(*args, **kwargs) | |
1922 | ||
1923 | def CalcSizeFromPage(*args, **kwargs): | |
1924 | """CalcSizeFromPage(Size sizePage) -> Size""" | |
1925 | return _controls.Notebook_CalcSizeFromPage(*args, **kwargs) | |
1926 | ||
1927 | def ApplyThemeBackground(*args, **kwargs): | |
1928 | """ApplyThemeBackground(Window window, wxColour colour)""" | |
1929 | return _controls.Notebook_ApplyThemeBackground(*args, **kwargs) | |
1930 | ||
1931 | ||
1932 | class NotebookPtr(Notebook): | |
1933 | def __init__(self, this): | |
1934 | self.this = this | |
1935 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1936 | self.__class__ = Notebook | |
1937 | _controls.Notebook_swigregister(NotebookPtr) | |
1938 | ||
1939 | def PreNotebook(*args, **kwargs): | |
1940 | """PreNotebook() -> Notebook""" | |
1941 | val = _controls.new_PreNotebook(*args, **kwargs) | |
1942 | val.thisown = 1 | |
1943 | return val | |
1944 | ||
1945 | class NotebookEvent(BookCtrlEvent): | |
1946 | """""" | |
1947 | def __repr__(self): | |
1948 | return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1949 | def __init__(self, *args, **kwargs): | |
1950 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
1951 | int nOldSel=-1) -> NotebookEvent""" | |
1952 | newobj = _controls.new_NotebookEvent(*args, **kwargs) | |
1953 | self.this = newobj.this | |
1954 | self.thisown = 1 | |
1955 | del newobj.thisown | |
1956 | ||
1957 | class NotebookEventPtr(NotebookEvent): | |
1958 | def __init__(self, this): | |
1959 | self.this = this | |
1960 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1961 | self.__class__ = NotebookEvent | |
1962 | _controls.NotebookEvent_swigregister(NotebookEventPtr) | |
1963 | ||
1964 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED | |
1965 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
1966 | # wxNotebook events | |
1967 | EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) | |
1968 | EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) | |
1969 | ||
1970 | #---------------------------------------------------------------------------- | |
1971 | ||
1972 | class NotebookPage(wx.Panel): | |
1973 | """ | |
1974 | There is an old (and apparently unsolvable) bug when placing a | |
1975 | window with a nonstandard background colour in a wxNotebook on | |
1976 | wxGTK, as the notbooks's background colour would always be used | |
1977 | when the window is refreshed. The solution is to place a panel in | |
1978 | the notbook and the coloured window on the panel, sized to cover | |
1979 | the panel. This simple class does that for you, just put an | |
1980 | instance of this in the notebook and make your regular window a | |
1981 | child of this one and it will handle the resize for you. | |
1982 | """ | |
1983 | def __init__(self, parent, id=-1, | |
1984 | pos=wx.DefaultPosition, size=wx.DefaultSize, | |
1985 | style=wx.TAB_TRAVERSAL, name="panel"): | |
1986 | wx.Panel.__init__(self, parent, id, pos, size, style, name) | |
1987 | self.child = None | |
1988 | EVT_SIZE(self, self.OnSize) | |
1989 | ||
1990 | def OnSize(self, evt): | |
1991 | if self.child is None: | |
1992 | children = self.GetChildren() | |
1993 | if len(children): | |
1994 | self.child = children[0] | |
1995 | if self.child: | |
1996 | self.child.SetPosition((0,0)) | |
1997 | self.child.SetSize(self.GetSize()) | |
1998 | ||
1999 | ||
2000 | #--------------------------------------------------------------------------- | |
2001 | ||
2002 | LB_DEFAULT = _controls.LB_DEFAULT | |
2003 | LB_TOP = _controls.LB_TOP | |
2004 | LB_BOTTOM = _controls.LB_BOTTOM | |
2005 | LB_LEFT = _controls.LB_LEFT | |
2006 | LB_RIGHT = _controls.LB_RIGHT | |
2007 | LB_ALIGN_MASK = _controls.LB_ALIGN_MASK | |
2008 | class Listbook(BookCtrl): | |
2009 | """""" | |
2010 | def __repr__(self): | |
2011 | return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2012 | def __init__(self, *args, **kwargs): | |
2013 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
2014 | long style=0, wxString name=wxPyEmptyString) -> Listbook""" | |
2015 | newobj = _controls.new_Listbook(*args, **kwargs) | |
2016 | self.this = newobj.this | |
2017 | self.thisown = 1 | |
2018 | del newobj.thisown | |
2019 | self._setOORInfo(self) | |
2020 | ||
2021 | def Create(*args, **kwargs): | |
2022 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
2023 | long style=0, wxString name=wxPyEmptyString) -> bool""" | |
2024 | return _controls.Listbook_Create(*args, **kwargs) | |
2025 | ||
2026 | def IsVertical(*args, **kwargs): | |
2027 | """IsVertical() -> bool""" | |
2028 | return _controls.Listbook_IsVertical(*args, **kwargs) | |
2029 | ||
2030 | ||
2031 | class ListbookPtr(Listbook): | |
2032 | def __init__(self, this): | |
2033 | self.this = this | |
2034 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2035 | self.__class__ = Listbook | |
2036 | _controls.Listbook_swigregister(ListbookPtr) | |
2037 | ||
2038 | def PreListbook(*args, **kwargs): | |
2039 | """PreListbook() -> Listbook""" | |
2040 | val = _controls.new_PreListbook(*args, **kwargs) | |
2041 | val.thisown = 1 | |
2042 | return val | |
2043 | ||
2044 | class ListbookEvent(BookCtrlEvent): | |
2045 | """""" | |
2046 | def __repr__(self): | |
2047 | return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2048 | def __init__(self, *args, **kwargs): | |
2049 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
2050 | int nOldSel=-1) -> ListbookEvent""" | |
2051 | newobj = _controls.new_ListbookEvent(*args, **kwargs) | |
2052 | self.this = newobj.this | |
2053 | self.thisown = 1 | |
2054 | del newobj.thisown | |
2055 | ||
2056 | class ListbookEventPtr(ListbookEvent): | |
2057 | def __init__(self, this): | |
2058 | self.this = this | |
2059 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2060 | self.__class__ = ListbookEvent | |
2061 | _controls.ListbookEvent_swigregister(ListbookEventPtr) | |
2062 | ||
2063 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED | |
2064 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING | |
2065 | EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) | |
2066 | EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) | |
2067 | ||
2068 | #--------------------------------------------------------------------------- | |
2069 | ||
2070 | class BookCtrlSizer(core.Sizer): | |
2071 | """""" | |
2072 | def __repr__(self): | |
2073 | return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2074 | def __init__(self, *args, **kwargs): | |
2075 | """__init__(BookCtrl nb) -> BookCtrlSizer""" | |
2076 | newobj = _controls.new_BookCtrlSizer(*args, **kwargs) | |
2077 | self.this = newobj.this | |
2078 | self.thisown = 1 | |
2079 | del newobj.thisown | |
2080 | self._setOORInfo(self) | |
2081 | ||
2082 | def RecalcSizes(*args, **kwargs): | |
2083 | """RecalcSizes()""" | |
2084 | return _controls.BookCtrlSizer_RecalcSizes(*args, **kwargs) | |
2085 | ||
2086 | def CalcMin(*args, **kwargs): | |
2087 | """CalcMin() -> Size""" | |
2088 | return _controls.BookCtrlSizer_CalcMin(*args, **kwargs) | |
2089 | ||
2090 | def GetControl(*args, **kwargs): | |
2091 | """GetControl() -> BookCtrl""" | |
2092 | return _controls.BookCtrlSizer_GetControl(*args, **kwargs) | |
2093 | ||
2094 | ||
2095 | class BookCtrlSizerPtr(BookCtrlSizer): | |
2096 | def __init__(self, this): | |
2097 | self.this = this | |
2098 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2099 | self.__class__ = BookCtrlSizer | |
2100 | _controls.BookCtrlSizer_swigregister(BookCtrlSizerPtr) | |
2101 | ||
2102 | class NotebookSizer(core.Sizer): | |
2103 | """""" | |
2104 | def __repr__(self): | |
2105 | return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2106 | def __init__(self, *args, **kwargs): | |
2107 | """__init__(Notebook nb) -> NotebookSizer""" | |
2108 | newobj = _controls.new_NotebookSizer(*args, **kwargs) | |
2109 | self.this = newobj.this | |
2110 | self.thisown = 1 | |
2111 | del newobj.thisown | |
2112 | self._setOORInfo(self) | |
2113 | ||
2114 | def RecalcSizes(*args, **kwargs): | |
2115 | """RecalcSizes()""" | |
2116 | return _controls.NotebookSizer_RecalcSizes(*args, **kwargs) | |
2117 | ||
2118 | def CalcMin(*args, **kwargs): | |
2119 | """CalcMin() -> Size""" | |
2120 | return _controls.NotebookSizer_CalcMin(*args, **kwargs) | |
2121 | ||
2122 | def GetNotebook(*args, **kwargs): | |
2123 | """GetNotebook() -> Notebook""" | |
2124 | return _controls.NotebookSizer_GetNotebook(*args, **kwargs) | |
2125 | ||
2126 | ||
2127 | class NotebookSizerPtr(NotebookSizer): | |
2128 | def __init__(self, this): | |
2129 | self.this = this | |
2130 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2131 | self.__class__ = NotebookSizer | |
2132 | _controls.NotebookSizer_swigregister(NotebookSizerPtr) | |
2133 | ||
2134 | #--------------------------------------------------------------------------- | |
2135 | ||
2136 | TOOL_STYLE_BUTTON = _controls.TOOL_STYLE_BUTTON | |
2137 | TOOL_STYLE_SEPARATOR = _controls.TOOL_STYLE_SEPARATOR | |
2138 | TOOL_STYLE_CONTROL = _controls.TOOL_STYLE_CONTROL | |
2139 | TB_HORIZONTAL = _controls.TB_HORIZONTAL | |
2140 | TB_VERTICAL = _controls.TB_VERTICAL | |
2141 | TB_3DBUTTONS = _controls.TB_3DBUTTONS | |
2142 | TB_FLAT = _controls.TB_FLAT | |
2143 | TB_DOCKABLE = _controls.TB_DOCKABLE | |
2144 | TB_NOICONS = _controls.TB_NOICONS | |
2145 | TB_TEXT = _controls.TB_TEXT | |
2146 | TB_NODIVIDER = _controls.TB_NODIVIDER | |
2147 | TB_NOALIGN = _controls.TB_NOALIGN | |
2148 | TB_HORZ_LAYOUT = _controls.TB_HORZ_LAYOUT | |
2149 | TB_HORZ_TEXT = _controls.TB_HORZ_TEXT | |
2150 | class ToolBarToolBase(core.Object): | |
2151 | """""" | |
2152 | def __init__(self): raise RuntimeError, "No constructor defined" | |
2153 | def __repr__(self): | |
2154 | return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2155 | def GetId(*args, **kwargs): | |
2156 | """GetId() -> int""" | |
2157 | return _controls.ToolBarToolBase_GetId(*args, **kwargs) | |
2158 | ||
2159 | def GetControl(*args, **kwargs): | |
2160 | """GetControl() -> Control""" | |
2161 | return _controls.ToolBarToolBase_GetControl(*args, **kwargs) | |
2162 | ||
2163 | def GetToolBar(*args, **kwargs): | |
2164 | """GetToolBar() -> ToolBarBase""" | |
2165 | return _controls.ToolBarToolBase_GetToolBar(*args, **kwargs) | |
2166 | ||
2167 | def IsButton(*args, **kwargs): | |
2168 | """IsButton() -> int""" | |
2169 | return _controls.ToolBarToolBase_IsButton(*args, **kwargs) | |
2170 | ||
2171 | def IsControl(*args, **kwargs): | |
2172 | """IsControl() -> int""" | |
2173 | return _controls.ToolBarToolBase_IsControl(*args, **kwargs) | |
2174 | ||
2175 | def IsSeparator(*args, **kwargs): | |
2176 | """IsSeparator() -> int""" | |
2177 | return _controls.ToolBarToolBase_IsSeparator(*args, **kwargs) | |
2178 | ||
2179 | def GetStyle(*args, **kwargs): | |
2180 | """GetStyle() -> int""" | |
2181 | return _controls.ToolBarToolBase_GetStyle(*args, **kwargs) | |
2182 | ||
2183 | def GetKind(*args, **kwargs): | |
2184 | """GetKind() -> wxItemKind""" | |
2185 | return _controls.ToolBarToolBase_GetKind(*args, **kwargs) | |
2186 | ||
2187 | def IsEnabled(*args, **kwargs): | |
2188 | """IsEnabled() -> bool""" | |
2189 | return _controls.ToolBarToolBase_IsEnabled(*args, **kwargs) | |
2190 | ||
2191 | def IsToggled(*args, **kwargs): | |
2192 | """IsToggled() -> bool""" | |
2193 | return _controls.ToolBarToolBase_IsToggled(*args, **kwargs) | |
2194 | ||
2195 | def CanBeToggled(*args, **kwargs): | |
2196 | """CanBeToggled() -> bool""" | |
2197 | return _controls.ToolBarToolBase_CanBeToggled(*args, **kwargs) | |
2198 | ||
2199 | def GetNormalBitmap(*args, **kwargs): | |
2200 | """GetNormalBitmap() -> wxBitmap""" | |
2201 | return _controls.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) | |
2202 | ||
2203 | def GetDisabledBitmap(*args, **kwargs): | |
2204 | """GetDisabledBitmap() -> wxBitmap""" | |
2205 | return _controls.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) | |
2206 | ||
2207 | def GetBitmap(*args, **kwargs): | |
2208 | """GetBitmap() -> wxBitmap""" | |
2209 | return _controls.ToolBarToolBase_GetBitmap(*args, **kwargs) | |
2210 | ||
2211 | def GetLabel(*args, **kwargs): | |
2212 | """GetLabel() -> wxString""" | |
2213 | return _controls.ToolBarToolBase_GetLabel(*args, **kwargs) | |
2214 | ||
2215 | def GetShortHelp(*args, **kwargs): | |
2216 | """GetShortHelp() -> wxString""" | |
2217 | return _controls.ToolBarToolBase_GetShortHelp(*args, **kwargs) | |
2218 | ||
2219 | def GetLongHelp(*args, **kwargs): | |
2220 | """GetLongHelp() -> wxString""" | |
2221 | return _controls.ToolBarToolBase_GetLongHelp(*args, **kwargs) | |
2222 | ||
2223 | def Enable(*args, **kwargs): | |
2224 | """Enable(bool enable) -> bool""" | |
2225 | return _controls.ToolBarToolBase_Enable(*args, **kwargs) | |
2226 | ||
2227 | def Toggle(*args, **kwargs): | |
2228 | """Toggle()""" | |
2229 | return _controls.ToolBarToolBase_Toggle(*args, **kwargs) | |
2230 | ||
2231 | def SetToggle(*args, **kwargs): | |
2232 | """SetToggle(bool toggle) -> bool""" | |
2233 | return _controls.ToolBarToolBase_SetToggle(*args, **kwargs) | |
2234 | ||
2235 | def SetShortHelp(*args, **kwargs): | |
2236 | """SetShortHelp(wxString help) -> bool""" | |
2237 | return _controls.ToolBarToolBase_SetShortHelp(*args, **kwargs) | |
2238 | ||
2239 | def SetLongHelp(*args, **kwargs): | |
2240 | """SetLongHelp(wxString help) -> bool""" | |
2241 | return _controls.ToolBarToolBase_SetLongHelp(*args, **kwargs) | |
2242 | ||
2243 | def SetNormalBitmap(*args, **kwargs): | |
2244 | """SetNormalBitmap(wxBitmap bmp)""" | |
2245 | return _controls.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) | |
2246 | ||
2247 | def SetDisabledBitmap(*args, **kwargs): | |
2248 | """SetDisabledBitmap(wxBitmap bmp)""" | |
2249 | return _controls.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) | |
2250 | ||
2251 | def SetLabel(*args, **kwargs): | |
2252 | """SetLabel(wxString label)""" | |
2253 | return _controls.ToolBarToolBase_SetLabel(*args, **kwargs) | |
2254 | ||
2255 | def Detach(*args, **kwargs): | |
2256 | """Detach()""" | |
2257 | return _controls.ToolBarToolBase_Detach(*args, **kwargs) | |
2258 | ||
2259 | def Attach(*args, **kwargs): | |
2260 | """Attach(ToolBarBase tbar)""" | |
2261 | return _controls.ToolBarToolBase_Attach(*args, **kwargs) | |
2262 | ||
2263 | def GetClientData(*args, **kwargs): | |
2264 | """GetClientData() -> PyObject""" | |
2265 | return _controls.ToolBarToolBase_GetClientData(*args, **kwargs) | |
2266 | ||
2267 | def SetClientData(*args, **kwargs): | |
2268 | """SetClientData(PyObject clientData)""" | |
2269 | return _controls.ToolBarToolBase_SetClientData(*args, **kwargs) | |
2270 | ||
2271 | GetBitmap1 = GetNormalBitmap | |
2272 | GetBitmap2 = GetDisabledBitmap | |
2273 | SetBitmap1 = SetNormalBitmap | |
2274 | SetBitmap2 = SetDisabledBitmap | |
2275 | ||
2276 | ||
2277 | class ToolBarToolBasePtr(ToolBarToolBase): | |
2278 | def __init__(self, this): | |
2279 | self.this = this | |
2280 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2281 | self.__class__ = ToolBarToolBase | |
2282 | _controls.ToolBarToolBase_swigregister(ToolBarToolBasePtr) | |
2283 | ||
2284 | class ToolBarBase(core.Control): | |
2285 | """""" | |
2286 | def __init__(self): raise RuntimeError, "No constructor defined" | |
2287 | def __repr__(self): | |
2288 | return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2289 | def DoAddTool(*args, **kwargs): | |
2290 | """DoAddTool(int id, wxString label, wxBitmap bitmap, wxBitmap bmpDisabled=wxNullBitmap, | |
2291 | wxItemKind kind=ITEM_NORMAL, | |
2292 | wxString shortHelp=wxPyEmptyString, | |
2293 | wxString longHelp=wxPyEmptyString, PyObject clientData=None) -> ToolBarToolBase""" | |
2294 | return _controls.ToolBarBase_DoAddTool(*args, **kwargs) | |
2295 | ||
2296 | def DoInsertTool(*args, **kwargs): | |
2297 | """DoInsertTool(size_t pos, int id, wxString label, wxBitmap bitmap, | |
2298 | wxBitmap bmpDisabled=wxNullBitmap, wxItemKind kind=ITEM_NORMAL, | |
2299 | wxString shortHelp=wxPyEmptyString, | |
2300 | wxString longHelp=wxPyEmptyString, | |
2301 | PyObject clientData=None) -> ToolBarToolBase""" | |
2302 | return _controls.ToolBarBase_DoInsertTool(*args, **kwargs) | |
2303 | ||
2304 | # These match the original Add methods for this class, kept for | |
2305 | # backwards compatibility with versions < 2.3.3. | |
2306 | ||
2307 | ||
2308 | def AddTool(self, id, bitmap, | |
2309 | pushedBitmap = wx.NullBitmap, | |
2310 | isToggle = 0, | |
2311 | clientData = None, | |
2312 | shortHelpString = '', | |
2313 | longHelpString = '') : | |
2314 | '''Old style method to add a tool to the toolbar.''' | |
2315 | kind = wx.ITEM_NORMAL | |
2316 | if isToggle: kind = wx.ITEM_CHECK | |
2317 | return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, | |
2318 | shortHelpString, longHelpString, clientData) | |
2319 | ||
2320 | def AddSimpleTool(self, id, bitmap, | |
2321 | shortHelpString = '', | |
2322 | longHelpString = '', | |
2323 | isToggle = 0): | |
2324 | '''Old style method to add a tool to the toolbar.''' | |
2325 | kind = wx.ITEM_NORMAL | |
2326 | if isToggle: kind = wx.ITEM_CHECK | |
2327 | return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, | |
2328 | shortHelpString, longHelpString, None) | |
2329 | ||
2330 | def InsertTool(self, pos, id, bitmap, | |
2331 | pushedBitmap = wx.NullBitmap, | |
2332 | isToggle = 0, | |
2333 | clientData = None, | |
2334 | shortHelpString = '', | |
2335 | longHelpString = ''): | |
2336 | '''Old style method to insert a tool in the toolbar.''' | |
2337 | kind = wx.ITEM_NORMAL | |
2338 | if isToggle: kind = wx.ITEM_CHECK | |
2339 | return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, | |
2340 | shortHelpString, longHelpString, clientData) | |
2341 | ||
2342 | def InsertSimpleTool(self, pos, id, bitmap, | |
2343 | shortHelpString = '', | |
2344 | longHelpString = '', | |
2345 | isToggle = 0): | |
2346 | '''Old style method to insert a tool in the toolbar.''' | |
2347 | kind = wx.ITEM_NORMAL | |
2348 | if isToggle: kind = wx.ITEM_CHECK | |
2349 | return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, | |
2350 | shortHelpString, longHelpString, None) | |
2351 | ||
2352 | ||
2353 | # The following are the new toolbar Add methods starting with | |
2354 | # 2.3.3. They are renamed to have 'Label' in the name so as to be | |
2355 | # able to keep backwards compatibility with using the above | |
2356 | # methods. Eventually these should migrate to be the methods used | |
2357 | # primarily and lose the 'Label' in the name... | |
2358 | ||
2359 | def AddLabelTool(self, id, label, bitmap, | |
2360 | bmpDisabled = wx.NullBitmap, | |
2361 | kind = wx.ITEM_NORMAL, | |
2362 | shortHelp = '', longHelp = '', | |
2363 | clientData = None): | |
2364 | ''' | |
2365 | The full AddTool() function. | |
2366 | ||
2367 | If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap | |
2368 | is created and used as the disabled image. | |
2369 | ''' | |
2370 | return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, | |
2371 | shortHelp, longHelp, clientData) | |
2372 | ||
2373 | ||
2374 | def InsertLabelTool(self, pos, id, label, bitmap, | |
2375 | bmpDisabled = wx.NullBitmap, | |
2376 | kind = wx.ITEM_NORMAL, | |
2377 | shortHelp = '', longHelp = '', | |
2378 | clientData = None): | |
2379 | ''' | |
2380 | Insert the new tool at the given position, if pos == GetToolsCount(), it | |
2381 | is equivalent to AddTool() | |
2382 | ''' | |
2383 | return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2384 | shortHelp, longHelp, clientData) | |
2385 | ||
2386 | def AddCheckLabelTool(self, id, label, bitmap, | |
2387 | bmpDisabled = wx.NullBitmap, | |
2388 | shortHelp = '', longHelp = '', | |
2389 | clientData = None): | |
2390 | '''Add a check tool, i.e. a tool which can be toggled''' | |
2391 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, | |
2392 | shortHelp, longHelp, clientData) | |
2393 | ||
2394 | def AddRadioLabelTool(self, id, label, bitmap, | |
2395 | bmpDisabled = wx.NullBitmap, | |
2396 | shortHelp = '', longHelp = '', | |
2397 | clientData = None): | |
2398 | ''' | |
2399 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
2400 | other toggled radio tools in the same group when it happens | |
2401 | ''' | |
2402 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, | |
2403 | shortHelp, longHelp, clientData) | |
2404 | ||
2405 | ||
2406 | # For consistency with the backwards compatible methods above, here are | |
2407 | # some non-'Label' versions of the Check and Radio methods | |
2408 | def AddCheckTool(self, id, bitmap, | |
2409 | bmpDisabled = wx.NullBitmap, | |
2410 | shortHelp = '', longHelp = '', | |
2411 | clientData = None): | |
2412 | '''Add a check tool, i.e. a tool which can be toggled''' | |
2413 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, | |
2414 | shortHelp, longHelp, clientData) | |
2415 | ||
2416 | def AddRadioTool(self, id, bitmap, | |
2417 | bmpDisabled = wx.NullBitmap, | |
2418 | shortHelp = '', longHelp = '', | |
2419 | clientData = None): | |
2420 | ''' | |
2421 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
2422 | other toggled radio tools in the same group when it happens | |
2423 | ''' | |
2424 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, | |
2425 | shortHelp, longHelp, clientData) | |
2426 | ||
2427 | def AddControl(*args, **kwargs): | |
2428 | """AddControl(Control control) -> ToolBarToolBase""" | |
2429 | return _controls.ToolBarBase_AddControl(*args, **kwargs) | |
2430 | ||
2431 | def InsertControl(*args, **kwargs): | |
2432 | """InsertControl(size_t pos, Control control) -> ToolBarToolBase""" | |
2433 | return _controls.ToolBarBase_InsertControl(*args, **kwargs) | |
2434 | ||
2435 | def FindControl(*args, **kwargs): | |
2436 | """FindControl(int id) -> Control""" | |
2437 | return _controls.ToolBarBase_FindControl(*args, **kwargs) | |
2438 | ||
2439 | def AddSeparator(*args, **kwargs): | |
2440 | """AddSeparator() -> ToolBarToolBase""" | |
2441 | return _controls.ToolBarBase_AddSeparator(*args, **kwargs) | |
2442 | ||
2443 | def InsertSeparator(*args, **kwargs): | |
2444 | """InsertSeparator(size_t pos) -> ToolBarToolBase""" | |
2445 | return _controls.ToolBarBase_InsertSeparator(*args, **kwargs) | |
2446 | ||
2447 | def RemoveTool(*args, **kwargs): | |
2448 | """RemoveTool(int id) -> ToolBarToolBase""" | |
2449 | return _controls.ToolBarBase_RemoveTool(*args, **kwargs) | |
2450 | ||
2451 | def DeleteToolByPos(*args, **kwargs): | |
2452 | """DeleteToolByPos(size_t pos) -> bool""" | |
2453 | return _controls.ToolBarBase_DeleteToolByPos(*args, **kwargs) | |
2454 | ||
2455 | def DeleteTool(*args, **kwargs): | |
2456 | """DeleteTool(int id) -> bool""" | |
2457 | return _controls.ToolBarBase_DeleteTool(*args, **kwargs) | |
2458 | ||
2459 | def ClearTools(*args, **kwargs): | |
2460 | """ClearTools()""" | |
2461 | return _controls.ToolBarBase_ClearTools(*args, **kwargs) | |
2462 | ||
2463 | def Realize(*args, **kwargs): | |
2464 | """Realize() -> bool""" | |
2465 | return _controls.ToolBarBase_Realize(*args, **kwargs) | |
2466 | ||
2467 | def EnableTool(*args, **kwargs): | |
2468 | """EnableTool(int id, bool enable)""" | |
2469 | return _controls.ToolBarBase_EnableTool(*args, **kwargs) | |
2470 | ||
2471 | def ToggleTool(*args, **kwargs): | |
2472 | """ToggleTool(int id, bool toggle)""" | |
2473 | return _controls.ToolBarBase_ToggleTool(*args, **kwargs) | |
2474 | ||
2475 | def SetToggle(*args, **kwargs): | |
2476 | """SetToggle(int id, bool toggle)""" | |
2477 | return _controls.ToolBarBase_SetToggle(*args, **kwargs) | |
2478 | ||
2479 | def GetToolClientData(*args, **kwargs): | |
2480 | """GetToolClientData(int id) -> PyObject""" | |
2481 | return _controls.ToolBarBase_GetToolClientData(*args, **kwargs) | |
2482 | ||
2483 | def SetToolClientData(*args, **kwargs): | |
2484 | """SetToolClientData(int id, PyObject clientData)""" | |
2485 | return _controls.ToolBarBase_SetToolClientData(*args, **kwargs) | |
2486 | ||
2487 | def GetToolPos(*args, **kwargs): | |
2488 | """GetToolPos(int id) -> int""" | |
2489 | return _controls.ToolBarBase_GetToolPos(*args, **kwargs) | |
2490 | ||
2491 | def GetToolState(*args, **kwargs): | |
2492 | """GetToolState(int id) -> bool""" | |
2493 | return _controls.ToolBarBase_GetToolState(*args, **kwargs) | |
2494 | ||
2495 | def GetToolEnabled(*args, **kwargs): | |
2496 | """GetToolEnabled(int id) -> bool""" | |
2497 | return _controls.ToolBarBase_GetToolEnabled(*args, **kwargs) | |
2498 | ||
2499 | def SetToolShortHelp(*args, **kwargs): | |
2500 | """SetToolShortHelp(int id, wxString helpString)""" | |
2501 | return _controls.ToolBarBase_SetToolShortHelp(*args, **kwargs) | |
2502 | ||
2503 | def GetToolShortHelp(*args, **kwargs): | |
2504 | """GetToolShortHelp(int id) -> wxString""" | |
2505 | return _controls.ToolBarBase_GetToolShortHelp(*args, **kwargs) | |
2506 | ||
2507 | def SetToolLongHelp(*args, **kwargs): | |
2508 | """SetToolLongHelp(int id, wxString helpString)""" | |
2509 | return _controls.ToolBarBase_SetToolLongHelp(*args, **kwargs) | |
2510 | ||
2511 | def GetToolLongHelp(*args, **kwargs): | |
2512 | """GetToolLongHelp(int id) -> wxString""" | |
2513 | return _controls.ToolBarBase_GetToolLongHelp(*args, **kwargs) | |
2514 | ||
2515 | def SetMarginsXY(*args, **kwargs): | |
2516 | """SetMarginsXY(int x, int y)""" | |
2517 | return _controls.ToolBarBase_SetMarginsXY(*args, **kwargs) | |
2518 | ||
2519 | def SetMargins(*args, **kwargs): | |
2520 | """SetMargins(Size size)""" | |
2521 | return _controls.ToolBarBase_SetMargins(*args, **kwargs) | |
2522 | ||
2523 | def SetToolPacking(*args, **kwargs): | |
2524 | """SetToolPacking(int packing)""" | |
2525 | return _controls.ToolBarBase_SetToolPacking(*args, **kwargs) | |
2526 | ||
2527 | def SetToolSeparation(*args, **kwargs): | |
2528 | """SetToolSeparation(int separation)""" | |
2529 | return _controls.ToolBarBase_SetToolSeparation(*args, **kwargs) | |
2530 | ||
2531 | def GetToolMargins(*args, **kwargs): | |
2532 | """GetToolMargins() -> Size""" | |
2533 | return _controls.ToolBarBase_GetToolMargins(*args, **kwargs) | |
2534 | ||
2535 | def GetMargins(*args, **kwargs): | |
2536 | """GetMargins() -> Size""" | |
2537 | return _controls.ToolBarBase_GetMargins(*args, **kwargs) | |
2538 | ||
2539 | def GetToolPacking(*args, **kwargs): | |
2540 | """GetToolPacking() -> int""" | |
2541 | return _controls.ToolBarBase_GetToolPacking(*args, **kwargs) | |
2542 | ||
2543 | def GetToolSeparation(*args, **kwargs): | |
2544 | """GetToolSeparation() -> int""" | |
2545 | return _controls.ToolBarBase_GetToolSeparation(*args, **kwargs) | |
2546 | ||
2547 | def SetRows(*args, **kwargs): | |
2548 | """SetRows(int nRows)""" | |
2549 | return _controls.ToolBarBase_SetRows(*args, **kwargs) | |
2550 | ||
2551 | def SetMaxRowsCols(*args, **kwargs): | |
2552 | """SetMaxRowsCols(int rows, int cols)""" | |
2553 | return _controls.ToolBarBase_SetMaxRowsCols(*args, **kwargs) | |
2554 | ||
2555 | def GetMaxRows(*args, **kwargs): | |
2556 | """GetMaxRows() -> int""" | |
2557 | return _controls.ToolBarBase_GetMaxRows(*args, **kwargs) | |
2558 | ||
2559 | def GetMaxCols(*args, **kwargs): | |
2560 | """GetMaxCols() -> int""" | |
2561 | return _controls.ToolBarBase_GetMaxCols(*args, **kwargs) | |
2562 | ||
2563 | def SetToolBitmapSize(*args, **kwargs): | |
2564 | """SetToolBitmapSize(Size size)""" | |
2565 | return _controls.ToolBarBase_SetToolBitmapSize(*args, **kwargs) | |
2566 | ||
2567 | def GetToolBitmapSize(*args, **kwargs): | |
2568 | """GetToolBitmapSize() -> Size""" | |
2569 | return _controls.ToolBarBase_GetToolBitmapSize(*args, **kwargs) | |
2570 | ||
2571 | def GetToolSize(*args, **kwargs): | |
2572 | """GetToolSize() -> Size""" | |
2573 | return _controls.ToolBarBase_GetToolSize(*args, **kwargs) | |
2574 | ||
2575 | def FindToolForPosition(*args, **kwargs): | |
2576 | """FindToolForPosition(int x, int y) -> ToolBarToolBase""" | |
2577 | return _controls.ToolBarBase_FindToolForPosition(*args, **kwargs) | |
2578 | ||
2579 | def IsVertical(*args, **kwargs): | |
2580 | """IsVertical() -> bool""" | |
2581 | return _controls.ToolBarBase_IsVertical(*args, **kwargs) | |
2582 | ||
2583 | ||
2584 | class ToolBarBasePtr(ToolBarBase): | |
2585 | def __init__(self, this): | |
2586 | self.this = this | |
2587 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2588 | self.__class__ = ToolBarBase | |
2589 | _controls.ToolBarBase_swigregister(ToolBarBasePtr) | |
2590 | ||
2591 | class ToolBar(ToolBarBase): | |
2592 | """""" | |
2593 | def __repr__(self): | |
2594 | return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2595 | def __init__(self, *args, **kwargs): | |
2596 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
2597 | long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
2598 | wxString name=wxPyToolBarNameStr) -> ToolBar""" | |
2599 | newobj = _controls.new_ToolBar(*args, **kwargs) | |
2600 | self.this = newobj.this | |
2601 | self.thisown = 1 | |
2602 | del newobj.thisown | |
2603 | self._setOORInfo(self) | |
2604 | ||
2605 | def Create(*args, **kwargs): | |
2606 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
2607 | long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
2608 | wxString name=wxPyToolBarNameStr) -> bool""" | |
2609 | return _controls.ToolBar_Create(*args, **kwargs) | |
2610 | ||
2611 | def FindToolForPosition(*args, **kwargs): | |
2612 | """FindToolForPosition(int x, int y) -> ToolBarToolBase""" | |
2613 | return _controls.ToolBar_FindToolForPosition(*args, **kwargs) | |
2614 | ||
2615 | ||
2616 | class ToolBarPtr(ToolBar): | |
2617 | def __init__(self, this): | |
2618 | self.this = this | |
2619 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2620 | self.__class__ = ToolBar | |
2621 | _controls.ToolBar_swigregister(ToolBarPtr) | |
2622 | ||
2623 | def PreToolBar(*args, **kwargs): | |
2624 | """PreToolBar() -> ToolBar""" | |
2625 | val = _controls.new_PreToolBar(*args, **kwargs) | |
2626 | val.thisown = 1 | |
2627 | return val | |
2628 | ||
2629 | #--------------------------------------------------------------------------- | |
2630 | ||
2631 | LC_VRULES = _controls.LC_VRULES | |
2632 | LC_HRULES = _controls.LC_HRULES | |
2633 | LC_ICON = _controls.LC_ICON | |
2634 | LC_SMALL_ICON = _controls.LC_SMALL_ICON | |
2635 | LC_LIST = _controls.LC_LIST | |
2636 | LC_REPORT = _controls.LC_REPORT | |
2637 | LC_ALIGN_TOP = _controls.LC_ALIGN_TOP | |
2638 | LC_ALIGN_LEFT = _controls.LC_ALIGN_LEFT | |
2639 | LC_AUTOARRANGE = _controls.LC_AUTOARRANGE | |
2640 | LC_VIRTUAL = _controls.LC_VIRTUAL | |
2641 | LC_EDIT_LABELS = _controls.LC_EDIT_LABELS | |
2642 | LC_NO_HEADER = _controls.LC_NO_HEADER | |
2643 | LC_NO_SORT_HEADER = _controls.LC_NO_SORT_HEADER | |
2644 | LC_SINGLE_SEL = _controls.LC_SINGLE_SEL | |
2645 | LC_SORT_ASCENDING = _controls.LC_SORT_ASCENDING | |
2646 | LC_SORT_DESCENDING = _controls.LC_SORT_DESCENDING | |
2647 | LC_MASK_TYPE = _controls.LC_MASK_TYPE | |
2648 | LC_MASK_ALIGN = _controls.LC_MASK_ALIGN | |
2649 | LC_MASK_SORT = _controls.LC_MASK_SORT | |
2650 | LIST_MASK_STATE = _controls.LIST_MASK_STATE | |
2651 | LIST_MASK_TEXT = _controls.LIST_MASK_TEXT | |
2652 | LIST_MASK_IMAGE = _controls.LIST_MASK_IMAGE | |
2653 | LIST_MASK_DATA = _controls.LIST_MASK_DATA | |
2654 | LIST_SET_ITEM = _controls.LIST_SET_ITEM | |
2655 | LIST_MASK_WIDTH = _controls.LIST_MASK_WIDTH | |
2656 | LIST_MASK_FORMAT = _controls.LIST_MASK_FORMAT | |
2657 | LIST_STATE_DONTCARE = _controls.LIST_STATE_DONTCARE | |
2658 | LIST_STATE_DROPHILITED = _controls.LIST_STATE_DROPHILITED | |
2659 | LIST_STATE_FOCUSED = _controls.LIST_STATE_FOCUSED | |
2660 | LIST_STATE_SELECTED = _controls.LIST_STATE_SELECTED | |
2661 | LIST_STATE_CUT = _controls.LIST_STATE_CUT | |
2662 | LIST_STATE_DISABLED = _controls.LIST_STATE_DISABLED | |
2663 | LIST_STATE_FILTERED = _controls.LIST_STATE_FILTERED | |
2664 | LIST_STATE_INUSE = _controls.LIST_STATE_INUSE | |
2665 | LIST_STATE_PICKED = _controls.LIST_STATE_PICKED | |
2666 | LIST_STATE_SOURCE = _controls.LIST_STATE_SOURCE | |
2667 | LIST_HITTEST_ABOVE = _controls.LIST_HITTEST_ABOVE | |
2668 | LIST_HITTEST_BELOW = _controls.LIST_HITTEST_BELOW | |
2669 | LIST_HITTEST_NOWHERE = _controls.LIST_HITTEST_NOWHERE | |
2670 | LIST_HITTEST_ONITEMICON = _controls.LIST_HITTEST_ONITEMICON | |
2671 | LIST_HITTEST_ONITEMLABEL = _controls.LIST_HITTEST_ONITEMLABEL | |
2672 | LIST_HITTEST_ONITEMRIGHT = _controls.LIST_HITTEST_ONITEMRIGHT | |
2673 | LIST_HITTEST_ONITEMSTATEICON = _controls.LIST_HITTEST_ONITEMSTATEICON | |
2674 | LIST_HITTEST_TOLEFT = _controls.LIST_HITTEST_TOLEFT | |
2675 | LIST_HITTEST_TORIGHT = _controls.LIST_HITTEST_TORIGHT | |
2676 | LIST_HITTEST_ONITEM = _controls.LIST_HITTEST_ONITEM | |
2677 | LIST_NEXT_ABOVE = _controls.LIST_NEXT_ABOVE | |
2678 | LIST_NEXT_ALL = _controls.LIST_NEXT_ALL | |
2679 | LIST_NEXT_BELOW = _controls.LIST_NEXT_BELOW | |
2680 | LIST_NEXT_LEFT = _controls.LIST_NEXT_LEFT | |
2681 | LIST_NEXT_RIGHT = _controls.LIST_NEXT_RIGHT | |
2682 | LIST_ALIGN_DEFAULT = _controls.LIST_ALIGN_DEFAULT | |
2683 | LIST_ALIGN_LEFT = _controls.LIST_ALIGN_LEFT | |
2684 | LIST_ALIGN_TOP = _controls.LIST_ALIGN_TOP | |
2685 | LIST_ALIGN_SNAP_TO_GRID = _controls.LIST_ALIGN_SNAP_TO_GRID | |
2686 | LIST_FORMAT_LEFT = _controls.LIST_FORMAT_LEFT | |
2687 | LIST_FORMAT_RIGHT = _controls.LIST_FORMAT_RIGHT | |
2688 | LIST_FORMAT_CENTRE = _controls.LIST_FORMAT_CENTRE | |
2689 | LIST_FORMAT_CENTER = _controls.LIST_FORMAT_CENTER | |
2690 | LIST_AUTOSIZE = _controls.LIST_AUTOSIZE | |
2691 | LIST_AUTOSIZE_USEHEADER = _controls.LIST_AUTOSIZE_USEHEADER | |
2692 | LIST_RECT_BOUNDS = _controls.LIST_RECT_BOUNDS | |
2693 | LIST_RECT_ICON = _controls.LIST_RECT_ICON | |
2694 | LIST_RECT_LABEL = _controls.LIST_RECT_LABEL | |
2695 | LIST_FIND_UP = _controls.LIST_FIND_UP | |
2696 | LIST_FIND_DOWN = _controls.LIST_FIND_DOWN | |
2697 | LIST_FIND_LEFT = _controls.LIST_FIND_LEFT | |
2698 | LIST_FIND_RIGHT = _controls.LIST_FIND_RIGHT | |
2699 | #--------------------------------------------------------------------------- | |
2700 | ||
2701 | class ListItemAttr(object): | |
2702 | """""" | |
2703 | def __repr__(self): | |
2704 | return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2705 | def __init__(self, *args, **kwargs): | |
2706 | """__init__(wxColour colText=wxNullColour, wxColour colBack=wxNullColour, | |
2707 | wxFont font=wxNullFont) -> ListItemAttr""" | |
2708 | newobj = _controls.new_ListItemAttr(*args, **kwargs) | |
2709 | self.this = newobj.this | |
2710 | self.thisown = 1 | |
2711 | del newobj.thisown | |
2712 | def SetTextColour(*args, **kwargs): | |
2713 | """SetTextColour(wxColour colText)""" | |
2714 | return _controls.ListItemAttr_SetTextColour(*args, **kwargs) | |
2715 | ||
2716 | def SetBackgroundColour(*args, **kwargs): | |
2717 | """SetBackgroundColour(wxColour colBack)""" | |
2718 | return _controls.ListItemAttr_SetBackgroundColour(*args, **kwargs) | |
2719 | ||
2720 | def SetFont(*args, **kwargs): | |
2721 | """SetFont(wxFont font)""" | |
2722 | return _controls.ListItemAttr_SetFont(*args, **kwargs) | |
2723 | ||
2724 | def HasTextColour(*args, **kwargs): | |
2725 | """HasTextColour() -> bool""" | |
2726 | return _controls.ListItemAttr_HasTextColour(*args, **kwargs) | |
2727 | ||
2728 | def HasBackgroundColour(*args, **kwargs): | |
2729 | """HasBackgroundColour() -> bool""" | |
2730 | return _controls.ListItemAttr_HasBackgroundColour(*args, **kwargs) | |
2731 | ||
2732 | def HasFont(*args, **kwargs): | |
2733 | """HasFont() -> bool""" | |
2734 | return _controls.ListItemAttr_HasFont(*args, **kwargs) | |
2735 | ||
2736 | def GetTextColour(*args, **kwargs): | |
2737 | """GetTextColour() -> wxColour""" | |
2738 | return _controls.ListItemAttr_GetTextColour(*args, **kwargs) | |
2739 | ||
2740 | def GetBackgroundColour(*args, **kwargs): | |
2741 | """GetBackgroundColour() -> wxColour""" | |
2742 | return _controls.ListItemAttr_GetBackgroundColour(*args, **kwargs) | |
2743 | ||
2744 | def GetFont(*args, **kwargs): | |
2745 | """GetFont() -> wxFont""" | |
2746 | return _controls.ListItemAttr_GetFont(*args, **kwargs) | |
2747 | ||
2748 | def Destroy(*args, **kwargs): | |
2749 | """Destroy()""" | |
2750 | return _controls.ListItemAttr_Destroy(*args, **kwargs) | |
2751 | ||
2752 | ||
2753 | class ListItemAttrPtr(ListItemAttr): | |
2754 | def __init__(self, this): | |
2755 | self.this = this | |
2756 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2757 | self.__class__ = ListItemAttr | |
2758 | _controls.ListItemAttr_swigregister(ListItemAttrPtr) | |
2759 | ||
2760 | #--------------------------------------------------------------------------- | |
2761 | ||
2762 | class ListItem(core.Object): | |
2763 | """""" | |
2764 | def __repr__(self): | |
2765 | return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2766 | def __init__(self, *args, **kwargs): | |
2767 | """__init__() -> ListItem""" | |
2768 | newobj = _controls.new_ListItem(*args, **kwargs) | |
2769 | self.this = newobj.this | |
2770 | self.thisown = 1 | |
2771 | del newobj.thisown | |
2772 | def __del__(self, destroy=_controls.delete_ListItem): | |
2773 | """__del__()""" | |
2774 | try: | |
2775 | if self.thisown: destroy(self) | |
2776 | except: pass | |
2777 | ||
2778 | def Clear(*args, **kwargs): | |
2779 | """Clear()""" | |
2780 | return _controls.ListItem_Clear(*args, **kwargs) | |
2781 | ||
2782 | def ClearAttributes(*args, **kwargs): | |
2783 | """ClearAttributes()""" | |
2784 | return _controls.ListItem_ClearAttributes(*args, **kwargs) | |
2785 | ||
2786 | def SetMask(*args, **kwargs): | |
2787 | """SetMask(long mask)""" | |
2788 | return _controls.ListItem_SetMask(*args, **kwargs) | |
2789 | ||
2790 | def SetId(*args, **kwargs): | |
2791 | """SetId(long id)""" | |
2792 | return _controls.ListItem_SetId(*args, **kwargs) | |
2793 | ||
2794 | def SetColumn(*args, **kwargs): | |
2795 | """SetColumn(int col)""" | |
2796 | return _controls.ListItem_SetColumn(*args, **kwargs) | |
2797 | ||
2798 | def SetState(*args, **kwargs): | |
2799 | """SetState(long state)""" | |
2800 | return _controls.ListItem_SetState(*args, **kwargs) | |
2801 | ||
2802 | def SetStateMask(*args, **kwargs): | |
2803 | """SetStateMask(long stateMask)""" | |
2804 | return _controls.ListItem_SetStateMask(*args, **kwargs) | |
2805 | ||
2806 | def SetText(*args, **kwargs): | |
2807 | """SetText(wxString text)""" | |
2808 | return _controls.ListItem_SetText(*args, **kwargs) | |
2809 | ||
2810 | def SetImage(*args, **kwargs): | |
2811 | """SetImage(int image)""" | |
2812 | return _controls.ListItem_SetImage(*args, **kwargs) | |
2813 | ||
2814 | def SetData(*args, **kwargs): | |
2815 | """SetData(long data)""" | |
2816 | return _controls.ListItem_SetData(*args, **kwargs) | |
2817 | ||
2818 | def SetWidth(*args, **kwargs): | |
2819 | """SetWidth(int width)""" | |
2820 | return _controls.ListItem_SetWidth(*args, **kwargs) | |
2821 | ||
2822 | def SetAlign(*args, **kwargs): | |
2823 | """SetAlign(wxListColumnFormat align)""" | |
2824 | return _controls.ListItem_SetAlign(*args, **kwargs) | |
2825 | ||
2826 | def SetTextColour(*args, **kwargs): | |
2827 | """SetTextColour(wxColour colText)""" | |
2828 | return _controls.ListItem_SetTextColour(*args, **kwargs) | |
2829 | ||
2830 | def SetBackgroundColour(*args, **kwargs): | |
2831 | """SetBackgroundColour(wxColour colBack)""" | |
2832 | return _controls.ListItem_SetBackgroundColour(*args, **kwargs) | |
2833 | ||
2834 | def SetFont(*args, **kwargs): | |
2835 | """SetFont(wxFont font)""" | |
2836 | return _controls.ListItem_SetFont(*args, **kwargs) | |
2837 | ||
2838 | def GetMask(*args, **kwargs): | |
2839 | """GetMask() -> long""" | |
2840 | return _controls.ListItem_GetMask(*args, **kwargs) | |
2841 | ||
2842 | def GetId(*args, **kwargs): | |
2843 | """GetId() -> long""" | |
2844 | return _controls.ListItem_GetId(*args, **kwargs) | |
2845 | ||
2846 | def GetColumn(*args, **kwargs): | |
2847 | """GetColumn() -> int""" | |
2848 | return _controls.ListItem_GetColumn(*args, **kwargs) | |
2849 | ||
2850 | def GetState(*args, **kwargs): | |
2851 | """GetState() -> long""" | |
2852 | return _controls.ListItem_GetState(*args, **kwargs) | |
2853 | ||
2854 | def GetText(*args, **kwargs): | |
2855 | """GetText() -> wxString""" | |
2856 | return _controls.ListItem_GetText(*args, **kwargs) | |
2857 | ||
2858 | def GetImage(*args, **kwargs): | |
2859 | """GetImage() -> int""" | |
2860 | return _controls.ListItem_GetImage(*args, **kwargs) | |
2861 | ||
2862 | def GetData(*args, **kwargs): | |
2863 | """GetData() -> long""" | |
2864 | return _controls.ListItem_GetData(*args, **kwargs) | |
2865 | ||
2866 | def GetWidth(*args, **kwargs): | |
2867 | """GetWidth() -> int""" | |
2868 | return _controls.ListItem_GetWidth(*args, **kwargs) | |
2869 | ||
2870 | def GetAlign(*args, **kwargs): | |
2871 | """GetAlign() -> wxListColumnFormat""" | |
2872 | return _controls.ListItem_GetAlign(*args, **kwargs) | |
2873 | ||
2874 | def GetAttributes(*args, **kwargs): | |
2875 | """GetAttributes() -> ListItemAttr""" | |
2876 | return _controls.ListItem_GetAttributes(*args, **kwargs) | |
2877 | ||
2878 | def HasAttributes(*args, **kwargs): | |
2879 | """HasAttributes() -> bool""" | |
2880 | return _controls.ListItem_HasAttributes(*args, **kwargs) | |
2881 | ||
2882 | def GetTextColour(*args, **kwargs): | |
2883 | """GetTextColour() -> wxColour""" | |
2884 | return _controls.ListItem_GetTextColour(*args, **kwargs) | |
2885 | ||
2886 | def GetBackgroundColour(*args, **kwargs): | |
2887 | """GetBackgroundColour() -> wxColour""" | |
2888 | return _controls.ListItem_GetBackgroundColour(*args, **kwargs) | |
2889 | ||
2890 | def GetFont(*args, **kwargs): | |
2891 | """GetFont() -> wxFont""" | |
2892 | return _controls.ListItem_GetFont(*args, **kwargs) | |
2893 | ||
2894 | m_mask = property(_controls.ListItem_m_mask_get, _controls.ListItem_m_mask_set) | |
2895 | m_itemId = property(_controls.ListItem_m_itemId_get, _controls.ListItem_m_itemId_set) | |
2896 | m_col = property(_controls.ListItem_m_col_get, _controls.ListItem_m_col_set) | |
2897 | m_state = property(_controls.ListItem_m_state_get, _controls.ListItem_m_state_set) | |
2898 | m_stateMask = property(_controls.ListItem_m_stateMask_get, _controls.ListItem_m_stateMask_set) | |
2899 | m_text = property(_controls.ListItem_m_text_get, _controls.ListItem_m_text_set) | |
2900 | m_image = property(_controls.ListItem_m_image_get, _controls.ListItem_m_image_set) | |
2901 | m_data = property(_controls.ListItem_m_data_get, _controls.ListItem_m_data_set) | |
2902 | m_format = property(_controls.ListItem_m_format_get, _controls.ListItem_m_format_set) | |
2903 | m_width = property(_controls.ListItem_m_width_get, _controls.ListItem_m_width_set) | |
2904 | ||
2905 | class ListItemPtr(ListItem): | |
2906 | def __init__(self, this): | |
2907 | self.this = this | |
2908 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2909 | self.__class__ = ListItem | |
2910 | _controls.ListItem_swigregister(ListItemPtr) | |
2911 | ||
2912 | #--------------------------------------------------------------------------- | |
2913 | ||
2914 | class ListEvent(core.NotifyEvent): | |
2915 | """""" | |
2916 | def __repr__(self): | |
2917 | return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2918 | def __init__(self, *args, **kwargs): | |
2919 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" | |
2920 | newobj = _controls.new_ListEvent(*args, **kwargs) | |
2921 | self.this = newobj.this | |
2922 | self.thisown = 1 | |
2923 | del newobj.thisown | |
2924 | m_code = property(_controls.ListEvent_m_code_get, _controls.ListEvent_m_code_set) | |
2925 | m_oldItemIndex = property(_controls.ListEvent_m_oldItemIndex_get, _controls.ListEvent_m_oldItemIndex_set) | |
2926 | m_itemIndex = property(_controls.ListEvent_m_itemIndex_get, _controls.ListEvent_m_itemIndex_set) | |
2927 | m_col = property(_controls.ListEvent_m_col_get, _controls.ListEvent_m_col_set) | |
2928 | m_pointDrag = property(_controls.ListEvent_m_pointDrag_get, _controls.ListEvent_m_pointDrag_set) | |
2929 | m_item = property(_controls.ListEvent_m_item_get) | |
2930 | def GetKeyCode(*args, **kwargs): | |
2931 | """GetKeyCode() -> int""" | |
2932 | return _controls.ListEvent_GetKeyCode(*args, **kwargs) | |
2933 | ||
2934 | GetCode = GetKeyCode | |
2935 | def GetIndex(*args, **kwargs): | |
2936 | """GetIndex() -> long""" | |
2937 | return _controls.ListEvent_GetIndex(*args, **kwargs) | |
2938 | ||
2939 | def GetColumn(*args, **kwargs): | |
2940 | """GetColumn() -> int""" | |
2941 | return _controls.ListEvent_GetColumn(*args, **kwargs) | |
2942 | ||
2943 | def GetPoint(*args, **kwargs): | |
2944 | """GetPoint() -> Point""" | |
2945 | return _controls.ListEvent_GetPoint(*args, **kwargs) | |
2946 | ||
2947 | GetPostiion = GetPoint | |
2948 | def GetLabel(*args, **kwargs): | |
2949 | """GetLabel() -> wxString""" | |
2950 | return _controls.ListEvent_GetLabel(*args, **kwargs) | |
2951 | ||
2952 | def GetText(*args, **kwargs): | |
2953 | """GetText() -> wxString""" | |
2954 | return _controls.ListEvent_GetText(*args, **kwargs) | |
2955 | ||
2956 | def GetImage(*args, **kwargs): | |
2957 | """GetImage() -> int""" | |
2958 | return _controls.ListEvent_GetImage(*args, **kwargs) | |
2959 | ||
2960 | def GetData(*args, **kwargs): | |
2961 | """GetData() -> long""" | |
2962 | return _controls.ListEvent_GetData(*args, **kwargs) | |
2963 | ||
2964 | def GetMask(*args, **kwargs): | |
2965 | """GetMask() -> long""" | |
2966 | return _controls.ListEvent_GetMask(*args, **kwargs) | |
2967 | ||
2968 | def GetItem(*args, **kwargs): | |
2969 | """GetItem() -> ListItem""" | |
2970 | return _controls.ListEvent_GetItem(*args, **kwargs) | |
2971 | ||
2972 | def GetCacheFrom(*args, **kwargs): | |
2973 | """GetCacheFrom() -> long""" | |
2974 | return _controls.ListEvent_GetCacheFrom(*args, **kwargs) | |
2975 | ||
2976 | def GetCacheTo(*args, **kwargs): | |
2977 | """GetCacheTo() -> long""" | |
2978 | return _controls.ListEvent_GetCacheTo(*args, **kwargs) | |
2979 | ||
2980 | def IsEditCancelled(*args, **kwargs): | |
2981 | """IsEditCancelled() -> bool""" | |
2982 | return _controls.ListEvent_IsEditCancelled(*args, **kwargs) | |
2983 | ||
2984 | def SetEditCanceled(*args, **kwargs): | |
2985 | """SetEditCanceled(bool editCancelled)""" | |
2986 | return _controls.ListEvent_SetEditCanceled(*args, **kwargs) | |
2987 | ||
2988 | ||
2989 | class ListEventPtr(ListEvent): | |
2990 | def __init__(self, this): | |
2991 | self.this = this | |
2992 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2993 | self.__class__ = ListEvent | |
2994 | _controls.ListEvent_swigregister(ListEventPtr) | |
2995 | ||
2996 | wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
2997 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
2998 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
2999 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
3000 | wxEVT_COMMAND_LIST_DELETE_ITEM = _controls.wxEVT_COMMAND_LIST_DELETE_ITEM | |
3001 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
3002 | wxEVT_COMMAND_LIST_GET_INFO = _controls.wxEVT_COMMAND_LIST_GET_INFO | |
3003 | wxEVT_COMMAND_LIST_SET_INFO = _controls.wxEVT_COMMAND_LIST_SET_INFO | |
3004 | wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_SELECTED | |
3005 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
3006 | wxEVT_COMMAND_LIST_KEY_DOWN = _controls.wxEVT_COMMAND_LIST_KEY_DOWN | |
3007 | wxEVT_COMMAND_LIST_INSERT_ITEM = _controls.wxEVT_COMMAND_LIST_INSERT_ITEM | |
3008 | wxEVT_COMMAND_LIST_COL_CLICK = _controls.wxEVT_COMMAND_LIST_COL_CLICK | |
3009 | wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK | |
3010 | wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK | |
3011 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_LIST_ITEM_ACTIVATED | |
3012 | wxEVT_COMMAND_LIST_CACHE_HINT = _controls.wxEVT_COMMAND_LIST_CACHE_HINT | |
3013 | wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK | |
3014 | wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG | |
3015 | wxEVT_COMMAND_LIST_COL_DRAGGING = _controls.wxEVT_COMMAND_LIST_COL_DRAGGING | |
3016 | wxEVT_COMMAND_LIST_COL_END_DRAG = _controls.wxEVT_COMMAND_LIST_COL_END_DRAG | |
3017 | wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls.wxEVT_COMMAND_LIST_ITEM_FOCUSED | |
3018 | EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) | |
3019 | EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) | |
3020 | EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) | |
3021 | EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) | |
3022 | EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) | |
3023 | EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) | |
3024 | EVT_LIST_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO , 1) | |
3025 | EVT_LIST_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO , 1) | |
3026 | EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) | |
3027 | EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) | |
3028 | EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) | |
3029 | EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) | |
3030 | EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) | |
3031 | EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) | |
3032 | EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) | |
3033 | EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) | |
3034 | EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) | |
3035 | EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) | |
3036 | EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) | |
3037 | EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) | |
3038 | EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) | |
3039 | EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) | |
3040 | ||
3041 | #--------------------------------------------------------------------------- | |
3042 | ||
3043 | class ListCtrl(core.Control): | |
3044 | """""" | |
3045 | def __repr__(self): | |
3046 | return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3047 | def __init__(self, *args, **kwargs): | |
3048 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
3049 | Size size=DefaultSize, long style=LC_ICON, | |
3050 | Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListCtrl""" | |
3051 | newobj = _controls.new_ListCtrl(*args, **kwargs) | |
3052 | self.this = newobj.this | |
3053 | self.thisown = 1 | |
3054 | del newobj.thisown | |
3055 | self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl) | |
3056 | ||
3057 | def Create(*args, **kwargs): | |
3058 | """Create(Window parent, int id=-1, Point pos=DefaultPosition, | |
3059 | Size size=DefaultSize, long style=LC_ICON, | |
3060 | Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool""" | |
3061 | return _controls.ListCtrl_Create(*args, **kwargs) | |
3062 | ||
3063 | def _setCallbackInfo(*args, **kwargs): | |
3064 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
3065 | return _controls.ListCtrl__setCallbackInfo(*args, **kwargs) | |
3066 | ||
3067 | def SetForegroundColour(*args, **kwargs): | |
3068 | """SetForegroundColour(wxColour col) -> bool""" | |
3069 | return _controls.ListCtrl_SetForegroundColour(*args, **kwargs) | |
3070 | ||
3071 | def SetBackgroundColour(*args, **kwargs): | |
3072 | """SetBackgroundColour(wxColour col) -> bool""" | |
3073 | return _controls.ListCtrl_SetBackgroundColour(*args, **kwargs) | |
3074 | ||
3075 | def GetColumn(*args, **kwargs): | |
3076 | """GetColumn(int col) -> ListItem""" | |
3077 | val = _controls.ListCtrl_GetColumn(*args, **kwargs) | |
3078 | if val is not None: val.thisown = 1 | |
3079 | return val | |
3080 | ||
3081 | def SetColumn(*args, **kwargs): | |
3082 | """SetColumn(int col, ListItem item) -> bool""" | |
3083 | return _controls.ListCtrl_SetColumn(*args, **kwargs) | |
3084 | ||
3085 | def GetColumnWidth(*args, **kwargs): | |
3086 | """GetColumnWidth(int col) -> int""" | |
3087 | return _controls.ListCtrl_GetColumnWidth(*args, **kwargs) | |
3088 | ||
3089 | def SetColumnWidth(*args, **kwargs): | |
3090 | """SetColumnWidth(int col, int width) -> bool""" | |
3091 | return _controls.ListCtrl_SetColumnWidth(*args, **kwargs) | |
3092 | ||
3093 | def GetCountPerPage(*args, **kwargs): | |
3094 | """GetCountPerPage() -> int""" | |
3095 | return _controls.ListCtrl_GetCountPerPage(*args, **kwargs) | |
3096 | ||
3097 | def GetViewRect(*args, **kwargs): | |
3098 | """GetViewRect() -> Rect""" | |
3099 | return _controls.ListCtrl_GetViewRect(*args, **kwargs) | |
3100 | ||
3101 | def GetEditControl(*args, **kwargs): | |
3102 | """GetEditControl() -> TextCtrl""" | |
3103 | return _controls.ListCtrl_GetEditControl(*args, **kwargs) | |
3104 | ||
3105 | def GetItem(*args, **kwargs): | |
3106 | """GetItem(long itemId, int col=0) -> ListItem""" | |
3107 | val = _controls.ListCtrl_GetItem(*args, **kwargs) | |
3108 | if val is not None: val.thisown = 1 | |
3109 | return val | |
3110 | ||
3111 | def SetItem(*args, **kwargs): | |
3112 | """SetItem(ListItem info) -> bool""" | |
3113 | return _controls.ListCtrl_SetItem(*args, **kwargs) | |
3114 | ||
3115 | def SetStringItem(*args, **kwargs): | |
3116 | """SetStringItem(long index, int col, wxString label, int imageId=-1) -> long""" | |
3117 | return _controls.ListCtrl_SetStringItem(*args, **kwargs) | |
3118 | ||
3119 | def GetItemState(*args, **kwargs): | |
3120 | """GetItemState(long item, long stateMask) -> int""" | |
3121 | return _controls.ListCtrl_GetItemState(*args, **kwargs) | |
3122 | ||
3123 | def SetItemState(*args, **kwargs): | |
3124 | """SetItemState(long item, long state, long stateMask) -> bool""" | |
3125 | return _controls.ListCtrl_SetItemState(*args, **kwargs) | |
3126 | ||
3127 | def SetItemImage(*args, **kwargs): | |
3128 | """SetItemImage(long item, int image, int selImage) -> bool""" | |
3129 | return _controls.ListCtrl_SetItemImage(*args, **kwargs) | |
3130 | ||
3131 | def GetItemText(*args, **kwargs): | |
3132 | """GetItemText(long item) -> wxString""" | |
3133 | return _controls.ListCtrl_GetItemText(*args, **kwargs) | |
3134 | ||
3135 | def SetItemText(*args, **kwargs): | |
3136 | """SetItemText(long item, wxString str)""" | |
3137 | return _controls.ListCtrl_SetItemText(*args, **kwargs) | |
3138 | ||
3139 | def GetItemData(*args, **kwargs): | |
3140 | """GetItemData(long item) -> long""" | |
3141 | return _controls.ListCtrl_GetItemData(*args, **kwargs) | |
3142 | ||
3143 | def SetItemData(*args, **kwargs): | |
3144 | """SetItemData(long item, long data) -> bool""" | |
3145 | return _controls.ListCtrl_SetItemData(*args, **kwargs) | |
3146 | ||
3147 | def GetItemPosition(*args, **kwargs): | |
3148 | """GetItemPosition(long item) -> Point""" | |
3149 | return _controls.ListCtrl_GetItemPosition(*args, **kwargs) | |
3150 | ||
3151 | def GetItemRect(*args, **kwargs): | |
3152 | """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect""" | |
3153 | return _controls.ListCtrl_GetItemRect(*args, **kwargs) | |
3154 | ||
3155 | def SetItemPosition(*args, **kwargs): | |
3156 | """SetItemPosition(long item, Point pos) -> bool""" | |
3157 | return _controls.ListCtrl_SetItemPosition(*args, **kwargs) | |
3158 | ||
3159 | def GetItemCount(*args, **kwargs): | |
3160 | """GetItemCount() -> int""" | |
3161 | return _controls.ListCtrl_GetItemCount(*args, **kwargs) | |
3162 | ||
3163 | def GetColumnCount(*args, **kwargs): | |
3164 | """GetColumnCount() -> int""" | |
3165 | return _controls.ListCtrl_GetColumnCount(*args, **kwargs) | |
3166 | ||
3167 | def GetItemSpacing(*args, **kwargs): | |
3168 | """GetItemSpacing() -> Size""" | |
3169 | return _controls.ListCtrl_GetItemSpacing(*args, **kwargs) | |
3170 | ||
3171 | def GetSelectedItemCount(*args, **kwargs): | |
3172 | """GetSelectedItemCount() -> int""" | |
3173 | return _controls.ListCtrl_GetSelectedItemCount(*args, **kwargs) | |
3174 | ||
3175 | def GetTextColour(*args, **kwargs): | |
3176 | """GetTextColour() -> wxColour""" | |
3177 | return _controls.ListCtrl_GetTextColour(*args, **kwargs) | |
3178 | ||
3179 | def SetTextColour(*args, **kwargs): | |
3180 | """SetTextColour(wxColour col)""" | |
3181 | return _controls.ListCtrl_SetTextColour(*args, **kwargs) | |
3182 | ||
3183 | def GetTopItem(*args, **kwargs): | |
3184 | """GetTopItem() -> long""" | |
3185 | return _controls.ListCtrl_GetTopItem(*args, **kwargs) | |
3186 | ||
3187 | def SetSingleStyle(*args, **kwargs): | |
3188 | """SetSingleStyle(long style, bool add=True)""" | |
3189 | return _controls.ListCtrl_SetSingleStyle(*args, **kwargs) | |
3190 | ||
3191 | def SetWindowStyleFlag(*args, **kwargs): | |
3192 | """SetWindowStyleFlag(long style)""" | |
3193 | return _controls.ListCtrl_SetWindowStyleFlag(*args, **kwargs) | |
3194 | ||
3195 | def GetNextItem(*args, **kwargs): | |
3196 | """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" | |
3197 | return _controls.ListCtrl_GetNextItem(*args, **kwargs) | |
3198 | ||
3199 | def GetImageList(*args, **kwargs): | |
3200 | """GetImageList(int which) -> wxImageList""" | |
3201 | return _controls.ListCtrl_GetImageList(*args, **kwargs) | |
3202 | ||
3203 | def SetImageList(*args, **kwargs): | |
3204 | """SetImageList(wxImageList imageList, int which)""" | |
3205 | return _controls.ListCtrl_SetImageList(*args, **kwargs) | |
3206 | ||
3207 | def AssignImageList(*args, **kwargs): | |
3208 | """AssignImageList(wxImageList imageList, int which)""" | |
3209 | val = _controls.ListCtrl_AssignImageList(*args, **kwargs) | |
3210 | args[1].thisown = 0 | |
3211 | return val | |
3212 | ||
3213 | def IsVirtual(*args, **kwargs): | |
3214 | """IsVirtual() -> bool""" | |
3215 | return _controls.ListCtrl_IsVirtual(*args, **kwargs) | |
3216 | ||
3217 | def RefreshItem(*args, **kwargs): | |
3218 | """RefreshItem(long item)""" | |
3219 | return _controls.ListCtrl_RefreshItem(*args, **kwargs) | |
3220 | ||
3221 | def RefreshItems(*args, **kwargs): | |
3222 | """RefreshItems(long itemFrom, long itemTo)""" | |
3223 | return _controls.ListCtrl_RefreshItems(*args, **kwargs) | |
3224 | ||
3225 | def Arrange(*args, **kwargs): | |
3226 | """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool""" | |
3227 | return _controls.ListCtrl_Arrange(*args, **kwargs) | |
3228 | ||
3229 | def DeleteItem(*args, **kwargs): | |
3230 | """DeleteItem(long item) -> bool""" | |
3231 | return _controls.ListCtrl_DeleteItem(*args, **kwargs) | |
3232 | ||
3233 | def DeleteAllItems(*args, **kwargs): | |
3234 | """DeleteAllItems() -> bool""" | |
3235 | return _controls.ListCtrl_DeleteAllItems(*args, **kwargs) | |
3236 | ||
3237 | def DeleteColumn(*args, **kwargs): | |
3238 | """DeleteColumn(int col) -> bool""" | |
3239 | return _controls.ListCtrl_DeleteColumn(*args, **kwargs) | |
3240 | ||
3241 | def DeleteAllColumns(*args, **kwargs): | |
3242 | """DeleteAllColumns() -> bool""" | |
3243 | return _controls.ListCtrl_DeleteAllColumns(*args, **kwargs) | |
3244 | ||
3245 | def ClearAll(*args, **kwargs): | |
3246 | """ClearAll()""" | |
3247 | return _controls.ListCtrl_ClearAll(*args, **kwargs) | |
3248 | ||
3249 | def EditLabel(*args, **kwargs): | |
3250 | """EditLabel(long item) -> TextCtrl""" | |
3251 | return _controls.ListCtrl_EditLabel(*args, **kwargs) | |
3252 | ||
3253 | def EndEditLabel(*args, **kwargs): | |
3254 | """EndEditLabel(bool cancel) -> bool""" | |
3255 | return _controls.ListCtrl_EndEditLabel(*args, **kwargs) | |
3256 | ||
3257 | def EnsureVisible(*args, **kwargs): | |
3258 | """EnsureVisible(long item) -> bool""" | |
3259 | return _controls.ListCtrl_EnsureVisible(*args, **kwargs) | |
3260 | ||
3261 | def FindItem(*args, **kwargs): | |
3262 | """FindItem(long start, wxString str, bool partial=False) -> long""" | |
3263 | return _controls.ListCtrl_FindItem(*args, **kwargs) | |
3264 | ||
3265 | def FindItemData(*args, **kwargs): | |
3266 | """FindItemData(long start, long data) -> long""" | |
3267 | return _controls.ListCtrl_FindItemData(*args, **kwargs) | |
3268 | ||
3269 | def FindItemAtPos(*args, **kwargs): | |
3270 | """FindItemAtPos(long start, Point pt, int direction) -> long""" | |
3271 | return _controls.ListCtrl_FindItemAtPos(*args, **kwargs) | |
3272 | ||
3273 | def HitTest(*args, **kwargs): | |
3274 | """HitTest(Point point) -> (item, where) | |
3275 | ||
3276 | Determines which item (if any) is at the specified point, | |
3277 | giving details in the second return value (see wxLIST_HITTEST_... flags.)""" | |
3278 | return _controls.ListCtrl_HitTest(*args, **kwargs) | |
3279 | ||
3280 | def InsertItem(*args, **kwargs): | |
3281 | """InsertItem(ListItem info) -> long""" | |
3282 | return _controls.ListCtrl_InsertItem(*args, **kwargs) | |
3283 | ||
3284 | def InsertStringItem(*args, **kwargs): | |
3285 | """InsertStringItem(long index, wxString label) -> long""" | |
3286 | return _controls.ListCtrl_InsertStringItem(*args, **kwargs) | |
3287 | ||
3288 | def InsertImageItem(*args, **kwargs): | |
3289 | """InsertImageItem(long index, int imageIndex) -> long""" | |
3290 | return _controls.ListCtrl_InsertImageItem(*args, **kwargs) | |
3291 | ||
3292 | def InsertImageStringItem(*args, **kwargs): | |
3293 | """InsertImageStringItem(long index, wxString label, int imageIndex) -> long""" | |
3294 | return _controls.ListCtrl_InsertImageStringItem(*args, **kwargs) | |
3295 | ||
3296 | def InsertColumnInfo(*args, **kwargs): | |
3297 | """InsertColumnInfo(long col, ListItem info) -> long""" | |
3298 | return _controls.ListCtrl_InsertColumnInfo(*args, **kwargs) | |
3299 | ||
3300 | def InsertColumn(*args, **kwargs): | |
3301 | """InsertColumn(long col, wxString heading, int format=LIST_FORMAT_LEFT, | |
3302 | int width=-1) -> long""" | |
3303 | return _controls.ListCtrl_InsertColumn(*args, **kwargs) | |
3304 | ||
3305 | def SetItemCount(*args, **kwargs): | |
3306 | """SetItemCount(long count)""" | |
3307 | return _controls.ListCtrl_SetItemCount(*args, **kwargs) | |
3308 | ||
3309 | def ScrollList(*args, **kwargs): | |
3310 | """ScrollList(int dx, int dy) -> bool""" | |
3311 | return _controls.ListCtrl_ScrollList(*args, **kwargs) | |
3312 | ||
3313 | def SetItemTextColour(*args, **kwargs): | |
3314 | """SetItemTextColour(long item, wxColour col)""" | |
3315 | return _controls.ListCtrl_SetItemTextColour(*args, **kwargs) | |
3316 | ||
3317 | def GetItemTextColour(*args, **kwargs): | |
3318 | """GetItemTextColour(long item) -> wxColour""" | |
3319 | return _controls.ListCtrl_GetItemTextColour(*args, **kwargs) | |
3320 | ||
3321 | def SetItemBackgroundColour(*args, **kwargs): | |
3322 | """SetItemBackgroundColour(long item, wxColour col)""" | |
3323 | return _controls.ListCtrl_SetItemBackgroundColour(*args, **kwargs) | |
3324 | ||
3325 | def GetItemBackgroundColour(*args, **kwargs): | |
3326 | """GetItemBackgroundColour(long item) -> wxColour""" | |
3327 | return _controls.ListCtrl_GetItemBackgroundColour(*args, **kwargs) | |
3328 | ||
3329 | # | |
3330 | # Some helpers... | |
3331 | def Select(self, idx, on=1): | |
3332 | '''[de]select an item''' | |
3333 | if on: state = wx.LIST_STATE_SELECTED | |
3334 | else: state = 0 | |
3335 | self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) | |
3336 | ||
3337 | def Focus(self, idx): | |
3338 | '''Focus and show the given item''' | |
3339 | self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) | |
3340 | self.EnsureVisible(idx) | |
3341 | ||
3342 | def GetFocusedItem(self): | |
3343 | '''get the currently focused item or -1 if none''' | |
3344 | return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) | |
3345 | ||
3346 | def GetFirstSelected(self, *args): | |
3347 | '''return first selected item, or -1 when none''' | |
3348 | return self.GetNextSelected(-1) | |
3349 | ||
3350 | def GetNextSelected(self, item): | |
3351 | '''return subsequent selected items, or -1 when no more''' | |
3352 | return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) | |
3353 | ||
3354 | def IsSelected(self, idx): | |
3355 | '''return True if the item is selected''' | |
3356 | return self.GetItemState(idx, wx.LIST_STATE_SELECTED) != 0 | |
3357 | ||
3358 | def SetColumnImage(self, col, image): | |
3359 | item = self.GetColumn(col) | |
3360 | # preserve all other attributes too | |
3361 | item.SetMask( wx.LIST_MASK_STATE | | |
3362 | wx.LIST_MASK_TEXT | | |
3363 | wx.LIST_MASK_IMAGE | | |
3364 | wx.LIST_MASK_DATA | | |
3365 | wx.LIST_SET_ITEM | | |
3366 | wx.LIST_MASK_WIDTH | | |
3367 | wx.LIST_MASK_FORMAT ) | |
3368 | item.SetImage(image) | |
3369 | self.SetColumn(col, item) | |
3370 | ||
3371 | def ClearColumnImage(self, col): | |
3372 | self.SetColumnImage(col, -1) | |
3373 | ||
3374 | def Append(self, entry): | |
3375 | '''Append an item to the list control. The entry parameter should be a | |
3376 | sequence with an item for each column''' | |
3377 | if len(entry): | |
3378 | if wx.USE_UNICODE: | |
3379 | cvtfunc = unicode | |
3380 | else: | |
3381 | cvtfunc = str | |
3382 | pos = self.GetItemCount() | |
3383 | self.InsertStringItem(pos, cvtfunc(entry[0])) | |
3384 | for i in range(1, len(entry)): | |
3385 | self.SetStringItem(pos, i, cvtfunc(entry[i])) | |
3386 | return pos | |
3387 | ||
3388 | def SortItems(*args, **kwargs): | |
3389 | """SortItems(PyObject func) -> bool""" | |
3390 | return _controls.ListCtrl_SortItems(*args, **kwargs) | |
3391 | ||
3392 | def GetMainWindow(*args, **kwargs): | |
3393 | """GetMainWindow() -> Window""" | |
3394 | return _controls.ListCtrl_GetMainWindow(*args, **kwargs) | |
3395 | ||
3396 | ||
3397 | class ListCtrlPtr(ListCtrl): | |
3398 | def __init__(self, this): | |
3399 | self.this = this | |
3400 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3401 | self.__class__ = ListCtrl | |
3402 | _controls.ListCtrl_swigregister(ListCtrlPtr) | |
3403 | ||
3404 | def PreListCtrl(*args, **kwargs): | |
3405 | """PreListCtrl() -> ListCtrl""" | |
3406 | val = _controls.new_PreListCtrl(*args, **kwargs) | |
3407 | val.thisown = 1 | |
3408 | return val | |
3409 | ||
3410 | #--------------------------------------------------------------------------- | |
3411 | ||
3412 | class ListView(ListCtrl): | |
3413 | """""" | |
3414 | def __repr__(self): | |
3415 | return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3416 | def __init__(self, *args, **kwargs): | |
3417 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
3418 | Size size=DefaultSize, long style=LC_REPORT, | |
3419 | Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListView""" | |
3420 | newobj = _controls.new_ListView(*args, **kwargs) | |
3421 | self.this = newobj.this | |
3422 | self.thisown = 1 | |
3423 | del newobj.thisown | |
3424 | self._setOORInfo(self) | |
3425 | ||
3426 | def Create(*args, **kwargs): | |
3427 | """Create(Window parent, int id=-1, Point pos=DefaultPosition, | |
3428 | Size size=DefaultSize, long style=LC_REPORT, | |
3429 | Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool""" | |
3430 | return _controls.ListView_Create(*args, **kwargs) | |
3431 | ||
3432 | def Select(*args, **kwargs): | |
3433 | """Select(long n, bool on=True)""" | |
3434 | return _controls.ListView_Select(*args, **kwargs) | |
3435 | ||
3436 | def Focus(*args, **kwargs): | |
3437 | """Focus(long index)""" | |
3438 | return _controls.ListView_Focus(*args, **kwargs) | |
3439 | ||
3440 | def GetFocusedItem(*args, **kwargs): | |
3441 | """GetFocusedItem() -> long""" | |
3442 | return _controls.ListView_GetFocusedItem(*args, **kwargs) | |
3443 | ||
3444 | def GetNextSelected(*args, **kwargs): | |
3445 | """GetNextSelected(long item) -> long""" | |
3446 | return _controls.ListView_GetNextSelected(*args, **kwargs) | |
3447 | ||
3448 | def GetFirstSelected(*args, **kwargs): | |
3449 | """GetFirstSelected() -> long""" | |
3450 | return _controls.ListView_GetFirstSelected(*args, **kwargs) | |
3451 | ||
3452 | def IsSelected(*args, **kwargs): | |
3453 | """IsSelected(long index) -> bool""" | |
3454 | return _controls.ListView_IsSelected(*args, **kwargs) | |
3455 | ||
3456 | def SetColumnImage(*args, **kwargs): | |
3457 | """SetColumnImage(int col, int image)""" | |
3458 | return _controls.ListView_SetColumnImage(*args, **kwargs) | |
3459 | ||
3460 | def ClearColumnImage(*args, **kwargs): | |
3461 | """ClearColumnImage(int col)""" | |
3462 | return _controls.ListView_ClearColumnImage(*args, **kwargs) | |
3463 | ||
3464 | ||
3465 | class ListViewPtr(ListView): | |
3466 | def __init__(self, this): | |
3467 | self.this = this | |
3468 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3469 | self.__class__ = ListView | |
3470 | _controls.ListView_swigregister(ListViewPtr) | |
3471 | ||
3472 | def PreListView(*args, **kwargs): | |
3473 | """PreListView() -> ListView""" | |
3474 | val = _controls.new_PreListView(*args, **kwargs) | |
3475 | val.thisown = 1 | |
3476 | return val | |
3477 | ||
3478 | #--------------------------------------------------------------------------- | |
3479 | ||
3480 | TR_NO_BUTTONS = _controls.TR_NO_BUTTONS | |
3481 | TR_HAS_BUTTONS = _controls.TR_HAS_BUTTONS | |
3482 | TR_NO_LINES = _controls.TR_NO_LINES | |
3483 | TR_LINES_AT_ROOT = _controls.TR_LINES_AT_ROOT | |
3484 | TR_SINGLE = _controls.TR_SINGLE | |
3485 | TR_MULTIPLE = _controls.TR_MULTIPLE | |
3486 | TR_EXTENDED = _controls.TR_EXTENDED | |
3487 | TR_HAS_VARIABLE_ROW_HEIGHT = _controls.TR_HAS_VARIABLE_ROW_HEIGHT | |
3488 | TR_EDIT_LABELS = _controls.TR_EDIT_LABELS | |
3489 | TR_HIDE_ROOT = _controls.TR_HIDE_ROOT | |
3490 | TR_ROW_LINES = _controls.TR_ROW_LINES | |
3491 | TR_FULL_ROW_HIGHLIGHT = _controls.TR_FULL_ROW_HIGHLIGHT | |
3492 | TR_DEFAULT_STYLE = _controls.TR_DEFAULT_STYLE | |
3493 | TR_TWIST_BUTTONS = _controls.TR_TWIST_BUTTONS | |
3494 | TR_MAC_BUTTONS = _controls.TR_MAC_BUTTONS | |
3495 | TR_AQUA_BUTTONS = _controls.TR_AQUA_BUTTONS | |
3496 | TreeItemIcon_Normal = _controls.TreeItemIcon_Normal | |
3497 | TreeItemIcon_Selected = _controls.TreeItemIcon_Selected | |
3498 | TreeItemIcon_Expanded = _controls.TreeItemIcon_Expanded | |
3499 | TreeItemIcon_SelectedExpanded = _controls.TreeItemIcon_SelectedExpanded | |
3500 | TreeItemIcon_Max = _controls.TreeItemIcon_Max | |
3501 | TREE_HITTEST_ABOVE = _controls.TREE_HITTEST_ABOVE | |
3502 | TREE_HITTEST_BELOW = _controls.TREE_HITTEST_BELOW | |
3503 | TREE_HITTEST_NOWHERE = _controls.TREE_HITTEST_NOWHERE | |
3504 | TREE_HITTEST_ONITEMBUTTON = _controls.TREE_HITTEST_ONITEMBUTTON | |
3505 | TREE_HITTEST_ONITEMICON = _controls.TREE_HITTEST_ONITEMICON | |
3506 | TREE_HITTEST_ONITEMINDENT = _controls.TREE_HITTEST_ONITEMINDENT | |
3507 | TREE_HITTEST_ONITEMLABEL = _controls.TREE_HITTEST_ONITEMLABEL | |
3508 | TREE_HITTEST_ONITEMRIGHT = _controls.TREE_HITTEST_ONITEMRIGHT | |
3509 | TREE_HITTEST_ONITEMSTATEICON = _controls.TREE_HITTEST_ONITEMSTATEICON | |
3510 | TREE_HITTEST_TOLEFT = _controls.TREE_HITTEST_TOLEFT | |
3511 | TREE_HITTEST_TORIGHT = _controls.TREE_HITTEST_TORIGHT | |
3512 | TREE_HITTEST_ONITEMUPPERPART = _controls.TREE_HITTEST_ONITEMUPPERPART | |
3513 | TREE_HITTEST_ONITEMLOWERPART = _controls.TREE_HITTEST_ONITEMLOWERPART | |
3514 | TREE_HITTEST_ONITEM = _controls.TREE_HITTEST_ONITEM | |
3515 | #--------------------------------------------------------------------------- | |
3516 | ||
3517 | class TreeItemId(object): | |
3518 | """""" | |
3519 | def __repr__(self): | |
3520 | return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3521 | def __init__(self, *args, **kwargs): | |
3522 | """__init__() -> TreeItemId""" | |
3523 | newobj = _controls.new_TreeItemId(*args, **kwargs) | |
3524 | self.this = newobj.this | |
3525 | self.thisown = 1 | |
3526 | del newobj.thisown | |
3527 | def __del__(self, destroy=_controls.delete_TreeItemId): | |
3528 | """__del__()""" | |
3529 | try: | |
3530 | if self.thisown: destroy(self) | |
3531 | except: pass | |
3532 | ||
3533 | def IsOk(*args, **kwargs): | |
3534 | """IsOk() -> bool""" | |
3535 | return _controls.TreeItemId_IsOk(*args, **kwargs) | |
3536 | ||
3537 | def __eq__(*args, **kwargs): | |
3538 | """__eq__(TreeItemId other) -> bool""" | |
3539 | return _controls.TreeItemId___eq__(*args, **kwargs) | |
3540 | ||
3541 | def __ne__(*args, **kwargs): | |
3542 | """__ne__(TreeItemId other) -> bool""" | |
3543 | return _controls.TreeItemId___ne__(*args, **kwargs) | |
3544 | ||
3545 | m_pItem = property(_controls.TreeItemId_m_pItem_get, _controls.TreeItemId_m_pItem_set) | |
3546 | Ok = IsOk | |
3547 | def __nonzero__(self): return self.IsOk() | |
3548 | ||
3549 | class TreeItemIdPtr(TreeItemId): | |
3550 | def __init__(self, this): | |
3551 | self.this = this | |
3552 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3553 | self.__class__ = TreeItemId | |
3554 | _controls.TreeItemId_swigregister(TreeItemIdPtr) | |
3555 | ||
3556 | class TreeItemData(object): | |
3557 | """""" | |
3558 | def __repr__(self): | |
3559 | return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3560 | def __init__(self, *args, **kwargs): | |
3561 | """__init__(PyObject obj=None) -> TreeItemData""" | |
3562 | newobj = _controls.new_TreeItemData(*args, **kwargs) | |
3563 | self.this = newobj.this | |
3564 | self.thisown = 1 | |
3565 | del newobj.thisown | |
3566 | def GetData(*args, **kwargs): | |
3567 | """GetData() -> PyObject""" | |
3568 | return _controls.TreeItemData_GetData(*args, **kwargs) | |
3569 | ||
3570 | def SetData(*args, **kwargs): | |
3571 | """SetData(PyObject obj)""" | |
3572 | return _controls.TreeItemData_SetData(*args, **kwargs) | |
3573 | ||
3574 | def GetId(*args, **kwargs): | |
3575 | """GetId() -> TreeItemId""" | |
3576 | return _controls.TreeItemData_GetId(*args, **kwargs) | |
3577 | ||
3578 | def SetId(*args, **kwargs): | |
3579 | """SetId(TreeItemId id)""" | |
3580 | return _controls.TreeItemData_SetId(*args, **kwargs) | |
3581 | ||
3582 | def Destroy(*args, **kwargs): | |
3583 | """Destroy()""" | |
3584 | return _controls.TreeItemData_Destroy(*args, **kwargs) | |
3585 | ||
3586 | ||
3587 | class TreeItemDataPtr(TreeItemData): | |
3588 | def __init__(self, this): | |
3589 | self.this = this | |
3590 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3591 | self.__class__ = TreeItemData | |
3592 | _controls.TreeItemData_swigregister(TreeItemDataPtr) | |
3593 | ||
3594 | #--------------------------------------------------------------------------- | |
3595 | ||
3596 | wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_DRAG | |
3597 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
3598 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
3599 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
3600 | wxEVT_COMMAND_TREE_DELETE_ITEM = _controls.wxEVT_COMMAND_TREE_DELETE_ITEM | |
3601 | wxEVT_COMMAND_TREE_GET_INFO = _controls.wxEVT_COMMAND_TREE_GET_INFO | |
3602 | wxEVT_COMMAND_TREE_SET_INFO = _controls.wxEVT_COMMAND_TREE_SET_INFO | |
3603 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
3604 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
3605 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
3606 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
3607 | wxEVT_COMMAND_TREE_SEL_CHANGED = _controls.wxEVT_COMMAND_TREE_SEL_CHANGED | |
3608 | wxEVT_COMMAND_TREE_SEL_CHANGING = _controls.wxEVT_COMMAND_TREE_SEL_CHANGING | |
3609 | wxEVT_COMMAND_TREE_KEY_DOWN = _controls.wxEVT_COMMAND_TREE_KEY_DOWN | |
3610 | wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls.wxEVT_COMMAND_TREE_ITEM_ACTIVATED | |
3611 | wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK | |
3612 | wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK | |
3613 | wxEVT_COMMAND_TREE_END_DRAG = _controls.wxEVT_COMMAND_TREE_END_DRAG | |
3614 | wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK | |
3615 | EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) | |
3616 | EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) | |
3617 | EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) | |
3618 | EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) | |
3619 | EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) | |
3620 | EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) | |
3621 | EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) | |
3622 | EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) | |
3623 | EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) | |
3624 | EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) | |
3625 | EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) | |
3626 | EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) | |
3627 | EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) | |
3628 | EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) | |
3629 | EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) | |
3630 | EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) | |
3631 | EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) | |
3632 | EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) | |
3633 | EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) | |
3634 | ||
3635 | ||
3636 | class TreeEvent(core.NotifyEvent): | |
3637 | """""" | |
3638 | def __repr__(self): | |
3639 | return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3640 | def __init__(self, *args, **kwargs): | |
3641 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent""" | |
3642 | newobj = _controls.new_TreeEvent(*args, **kwargs) | |
3643 | self.this = newobj.this | |
3644 | self.thisown = 1 | |
3645 | del newobj.thisown | |
3646 | def GetItem(*args, **kwargs): | |
3647 | """GetItem() -> TreeItemId""" | |
3648 | return _controls.TreeEvent_GetItem(*args, **kwargs) | |
3649 | ||
3650 | def SetItem(*args, **kwargs): | |
3651 | """SetItem(TreeItemId item)""" | |
3652 | return _controls.TreeEvent_SetItem(*args, **kwargs) | |
3653 | ||
3654 | def GetOldItem(*args, **kwargs): | |
3655 | """GetOldItem() -> TreeItemId""" | |
3656 | return _controls.TreeEvent_GetOldItem(*args, **kwargs) | |
3657 | ||
3658 | def SetOldItem(*args, **kwargs): | |
3659 | """SetOldItem(TreeItemId item)""" | |
3660 | return _controls.TreeEvent_SetOldItem(*args, **kwargs) | |
3661 | ||
3662 | def GetPoint(*args, **kwargs): | |
3663 | """GetPoint() -> Point""" | |
3664 | return _controls.TreeEvent_GetPoint(*args, **kwargs) | |
3665 | ||
3666 | def SetPoint(*args, **kwargs): | |
3667 | """SetPoint(Point pt)""" | |
3668 | return _controls.TreeEvent_SetPoint(*args, **kwargs) | |
3669 | ||
3670 | def GetKeyEvent(*args, **kwargs): | |
3671 | """GetKeyEvent() -> KeyEvent""" | |
3672 | return _controls.TreeEvent_GetKeyEvent(*args, **kwargs) | |
3673 | ||
3674 | def GetKeyCode(*args, **kwargs): | |
3675 | """GetKeyCode() -> int""" | |
3676 | return _controls.TreeEvent_GetKeyCode(*args, **kwargs) | |
3677 | ||
3678 | def SetKeyEvent(*args, **kwargs): | |
3679 | """SetKeyEvent(KeyEvent evt)""" | |
3680 | return _controls.TreeEvent_SetKeyEvent(*args, **kwargs) | |
3681 | ||
3682 | def GetLabel(*args, **kwargs): | |
3683 | """GetLabel() -> wxString""" | |
3684 | return _controls.TreeEvent_GetLabel(*args, **kwargs) | |
3685 | ||
3686 | def SetLabel(*args, **kwargs): | |
3687 | """SetLabel(wxString label)""" | |
3688 | return _controls.TreeEvent_SetLabel(*args, **kwargs) | |
3689 | ||
3690 | def IsEditCancelled(*args, **kwargs): | |
3691 | """IsEditCancelled() -> bool""" | |
3692 | return _controls.TreeEvent_IsEditCancelled(*args, **kwargs) | |
3693 | ||
3694 | def SetEditCanceled(*args, **kwargs): | |
3695 | """SetEditCanceled(bool editCancelled)""" | |
3696 | return _controls.TreeEvent_SetEditCanceled(*args, **kwargs) | |
3697 | ||
3698 | ||
3699 | class TreeEventPtr(TreeEvent): | |
3700 | def __init__(self, this): | |
3701 | self.this = this | |
3702 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3703 | self.__class__ = TreeEvent | |
3704 | _controls.TreeEvent_swigregister(TreeEventPtr) | |
3705 | ||
3706 | #--------------------------------------------------------------------------- | |
3707 | ||
3708 | class TreeCtrl(core.Control): | |
3709 | """""" | |
3710 | def __repr__(self): | |
3711 | return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3712 | def __init__(self, *args, **kwargs): | |
3713 | """__init__(Window parent, int id=-1, Point pos=DefaultPosition, | |
3714 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, | |
3715 | Validator validator=DefaultValidator, | |
3716 | wxString name=wxPy_TreeCtrlNameStr) -> TreeCtrl""" | |
3717 | newobj = _controls.new_TreeCtrl(*args, **kwargs) | |
3718 | self.this = newobj.this | |
3719 | self.thisown = 1 | |
3720 | del newobj.thisown | |
3721 | self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl) | |
3722 | ||
3723 | def Create(*args, **kwargs): | |
3724 | """Create(Window parent, int id=-1, Point pos=DefaultPosition, | |
3725 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, | |
3726 | Validator validator=DefaultValidator, | |
3727 | wxString name=wxPy_TreeCtrlNameStr) -> bool""" | |
3728 | return _controls.TreeCtrl_Create(*args, **kwargs) | |
3729 | ||
3730 | def _setCallbackInfo(*args, **kwargs): | |
3731 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
3732 | return _controls.TreeCtrl__setCallbackInfo(*args, **kwargs) | |
3733 | ||
3734 | def GetCount(*args, **kwargs): | |
3735 | """GetCount() -> size_t""" | |
3736 | return _controls.TreeCtrl_GetCount(*args, **kwargs) | |
3737 | ||
3738 | def GetIndent(*args, **kwargs): | |
3739 | """GetIndent() -> unsigned int""" | |
3740 | return _controls.TreeCtrl_GetIndent(*args, **kwargs) | |
3741 | ||
3742 | def SetIndent(*args, **kwargs): | |
3743 | """SetIndent(unsigned int indent)""" | |
3744 | return _controls.TreeCtrl_SetIndent(*args, **kwargs) | |
3745 | ||
3746 | def GetSpacing(*args, **kwargs): | |
3747 | """GetSpacing() -> unsigned int""" | |
3748 | return _controls.TreeCtrl_GetSpacing(*args, **kwargs) | |
3749 | ||
3750 | def SetSpacing(*args, **kwargs): | |
3751 | """SetSpacing(unsigned int spacing)""" | |
3752 | return _controls.TreeCtrl_SetSpacing(*args, **kwargs) | |
3753 | ||
3754 | def GetImageList(*args, **kwargs): | |
3755 | """GetImageList() -> wxImageList""" | |
3756 | return _controls.TreeCtrl_GetImageList(*args, **kwargs) | |
3757 | ||
3758 | def GetStateImageList(*args, **kwargs): | |
3759 | """GetStateImageList() -> wxImageList""" | |
3760 | return _controls.TreeCtrl_GetStateImageList(*args, **kwargs) | |
3761 | ||
3762 | def SetImageList(*args, **kwargs): | |
3763 | """SetImageList(wxImageList imageList)""" | |
3764 | return _controls.TreeCtrl_SetImageList(*args, **kwargs) | |
3765 | ||
3766 | def SetStateImageList(*args, **kwargs): | |
3767 | """SetStateImageList(wxImageList imageList)""" | |
3768 | return _controls.TreeCtrl_SetStateImageList(*args, **kwargs) | |
3769 | ||
3770 | def AssignImageList(*args, **kwargs): | |
3771 | """AssignImageList(wxImageList imageList)""" | |
3772 | val = _controls.TreeCtrl_AssignImageList(*args, **kwargs) | |
3773 | args[1].thisown = 0 | |
3774 | return val | |
3775 | ||
3776 | def AssignStateImageList(*args, **kwargs): | |
3777 | """AssignStateImageList(wxImageList imageList)""" | |
3778 | val = _controls.TreeCtrl_AssignStateImageList(*args, **kwargs) | |
3779 | args[1].thisown = 0 | |
3780 | return val | |
3781 | ||
3782 | def GetItemText(*args, **kwargs): | |
3783 | """GetItemText(TreeItemId item) -> wxString""" | |
3784 | return _controls.TreeCtrl_GetItemText(*args, **kwargs) | |
3785 | ||
3786 | def GetItemImage(*args, **kwargs): | |
3787 | """GetItemImage(TreeItemId item, wxTreeItemIcon which=TreeItemIcon_Normal) -> int""" | |
3788 | return _controls.TreeCtrl_GetItemImage(*args, **kwargs) | |
3789 | ||
3790 | def GetItemData(*args, **kwargs): | |
3791 | """GetItemData(TreeItemId item) -> TreeItemData""" | |
3792 | return _controls.TreeCtrl_GetItemData(*args, **kwargs) | |
3793 | ||
3794 | def GetItemPyData(*args, **kwargs): | |
3795 | """GetItemPyData(TreeItemId item) -> PyObject""" | |
3796 | return _controls.TreeCtrl_GetItemPyData(*args, **kwargs) | |
3797 | ||
3798 | GetPyData = GetItemPyData | |
3799 | def GetItemTextColour(*args, **kwargs): | |
3800 | """GetItemTextColour(TreeItemId item) -> wxColour""" | |
3801 | return _controls.TreeCtrl_GetItemTextColour(*args, **kwargs) | |
3802 | ||
3803 | def GetItemBackgroundColour(*args, **kwargs): | |
3804 | """GetItemBackgroundColour(TreeItemId item) -> wxColour""" | |
3805 | return _controls.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) | |
3806 | ||
3807 | def GetItemFont(*args, **kwargs): | |
3808 | """GetItemFont(TreeItemId item) -> wxFont""" | |
3809 | return _controls.TreeCtrl_GetItemFont(*args, **kwargs) | |
3810 | ||
3811 | def SetItemText(*args, **kwargs): | |
3812 | """SetItemText(TreeItemId item, wxString text)""" | |
3813 | return _controls.TreeCtrl_SetItemText(*args, **kwargs) | |
3814 | ||
3815 | def SetItemImage(*args, **kwargs): | |
3816 | """SetItemImage(TreeItemId item, int image, wxTreeItemIcon which=TreeItemIcon_Normal)""" | |
3817 | return _controls.TreeCtrl_SetItemImage(*args, **kwargs) | |
3818 | ||
3819 | def SetItemData(*args, **kwargs): | |
3820 | """SetItemData(TreeItemId item, TreeItemData data)""" | |
3821 | return _controls.TreeCtrl_SetItemData(*args, **kwargs) | |
3822 | ||
3823 | def SetItemPyData(*args, **kwargs): | |
3824 | """SetItemPyData(TreeItemId item, PyObject obj)""" | |
3825 | return _controls.TreeCtrl_SetItemPyData(*args, **kwargs) | |
3826 | ||
3827 | SetPyData = SetItemPyData | |
3828 | def SetItemHasChildren(*args, **kwargs): | |
3829 | """SetItemHasChildren(TreeItemId item, bool has=True)""" | |
3830 | return _controls.TreeCtrl_SetItemHasChildren(*args, **kwargs) | |
3831 | ||
3832 | def SetItemBold(*args, **kwargs): | |
3833 | """SetItemBold(TreeItemId item, bool bold=True)""" | |
3834 | return _controls.TreeCtrl_SetItemBold(*args, **kwargs) | |
3835 | ||
3836 | def SetItemDropHighlight(*args, **kwargs): | |
3837 | """SetItemDropHighlight(TreeItemId item, bool highlight=True)""" | |
3838 | return _controls.TreeCtrl_SetItemDropHighlight(*args, **kwargs) | |
3839 | ||
3840 | def SetItemTextColour(*args, **kwargs): | |
3841 | """SetItemTextColour(TreeItemId item, wxColour col)""" | |
3842 | return _controls.TreeCtrl_SetItemTextColour(*args, **kwargs) | |
3843 | ||
3844 | def SetItemBackgroundColour(*args, **kwargs): | |
3845 | """SetItemBackgroundColour(TreeItemId item, wxColour col)""" | |
3846 | return _controls.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) | |
3847 | ||
3848 | def SetItemFont(*args, **kwargs): | |
3849 | """SetItemFont(TreeItemId item, wxFont font)""" | |
3850 | return _controls.TreeCtrl_SetItemFont(*args, **kwargs) | |
3851 | ||
3852 | def IsVisible(*args, **kwargs): | |
3853 | """IsVisible(TreeItemId item) -> bool""" | |
3854 | return _controls.TreeCtrl_IsVisible(*args, **kwargs) | |
3855 | ||
3856 | def ItemHasChildren(*args, **kwargs): | |
3857 | """ItemHasChildren(TreeItemId item) -> bool""" | |
3858 | return _controls.TreeCtrl_ItemHasChildren(*args, **kwargs) | |
3859 | ||
3860 | def IsExpanded(*args, **kwargs): | |
3861 | """IsExpanded(TreeItemId item) -> bool""" | |
3862 | return _controls.TreeCtrl_IsExpanded(*args, **kwargs) | |
3863 | ||
3864 | def IsSelected(*args, **kwargs): | |
3865 | """IsSelected(TreeItemId item) -> bool""" | |
3866 | return _controls.TreeCtrl_IsSelected(*args, **kwargs) | |
3867 | ||
3868 | def IsBold(*args, **kwargs): | |
3869 | """IsBold(TreeItemId item) -> bool""" | |
3870 | return _controls.TreeCtrl_IsBold(*args, **kwargs) | |
3871 | ||
3872 | def GetChildrenCount(*args, **kwargs): | |
3873 | """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t""" | |
3874 | return _controls.TreeCtrl_GetChildrenCount(*args, **kwargs) | |
3875 | ||
3876 | def GetRootItem(*args, **kwargs): | |
3877 | """GetRootItem() -> TreeItemId""" | |
3878 | return _controls.TreeCtrl_GetRootItem(*args, **kwargs) | |
3879 | ||
3880 | def GetSelection(*args, **kwargs): | |
3881 | """GetSelection() -> TreeItemId""" | |
3882 | return _controls.TreeCtrl_GetSelection(*args, **kwargs) | |
3883 | ||
3884 | def GetSelections(*args, **kwargs): | |
3885 | """GetSelections() -> PyObject""" | |
3886 | return _controls.TreeCtrl_GetSelections(*args, **kwargs) | |
3887 | ||
3888 | def GetItemParent(*args, **kwargs): | |
3889 | """GetItemParent(TreeItemId item) -> TreeItemId""" | |
3890 | return _controls.TreeCtrl_GetItemParent(*args, **kwargs) | |
3891 | ||
3892 | def GetFirstChild(*args, **kwargs): | |
3893 | """GetFirstChild(TreeItemId item) -> PyObject""" | |
3894 | return _controls.TreeCtrl_GetFirstChild(*args, **kwargs) | |
3895 | ||
3896 | def GetNextChild(*args, **kwargs): | |
3897 | """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject""" | |
3898 | return _controls.TreeCtrl_GetNextChild(*args, **kwargs) | |
3899 | ||
3900 | def GetLastChild(*args, **kwargs): | |
3901 | """GetLastChild(TreeItemId item) -> TreeItemId""" | |
3902 | return _controls.TreeCtrl_GetLastChild(*args, **kwargs) | |
3903 | ||
3904 | def GetNextSibling(*args, **kwargs): | |
3905 | """GetNextSibling(TreeItemId item) -> TreeItemId""" | |
3906 | return _controls.TreeCtrl_GetNextSibling(*args, **kwargs) | |
3907 | ||
3908 | def GetPrevSibling(*args, **kwargs): | |
3909 | """GetPrevSibling(TreeItemId item) -> TreeItemId""" | |
3910 | return _controls.TreeCtrl_GetPrevSibling(*args, **kwargs) | |
3911 | ||
3912 | def GetFirstVisibleItem(*args, **kwargs): | |
3913 | """GetFirstVisibleItem() -> TreeItemId""" | |
3914 | return _controls.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) | |
3915 | ||
3916 | def GetNextVisible(*args, **kwargs): | |
3917 | """GetNextVisible(TreeItemId item) -> TreeItemId""" | |
3918 | return _controls.TreeCtrl_GetNextVisible(*args, **kwargs) | |
3919 | ||
3920 | def GetPrevVisible(*args, **kwargs): | |
3921 | """GetPrevVisible(TreeItemId item) -> TreeItemId""" | |
3922 | return _controls.TreeCtrl_GetPrevVisible(*args, **kwargs) | |
3923 | ||
3924 | def AddRoot(*args, **kwargs): | |
3925 | """AddRoot(wxString text, int image=-1, int selectedImage=-1, | |
3926 | TreeItemData data=None) -> TreeItemId""" | |
3927 | return _controls.TreeCtrl_AddRoot(*args, **kwargs) | |
3928 | ||
3929 | def PrependItem(*args, **kwargs): | |
3930 | """PrependItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1, | |
3931 | TreeItemData data=None) -> TreeItemId""" | |
3932 | return _controls.TreeCtrl_PrependItem(*args, **kwargs) | |
3933 | ||
3934 | def InsertItem(*args, **kwargs): | |
3935 | """InsertItem(TreeItemId parent, TreeItemId idPrevious, wxString text, | |
3936 | int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" | |
3937 | return _controls.TreeCtrl_InsertItem(*args, **kwargs) | |
3938 | ||
3939 | def InsertItemBefore(*args, **kwargs): | |
3940 | """InsertItemBefore(TreeItemId parent, size_t index, wxString text, int image=-1, | |
3941 | int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" | |
3942 | return _controls.TreeCtrl_InsertItemBefore(*args, **kwargs) | |
3943 | ||
3944 | def AppendItem(*args, **kwargs): | |
3945 | """AppendItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1, | |
3946 | TreeItemData data=None) -> TreeItemId""" | |
3947 | return _controls.TreeCtrl_AppendItem(*args, **kwargs) | |
3948 | ||
3949 | def Delete(*args, **kwargs): | |
3950 | """Delete(TreeItemId item)""" | |
3951 | return _controls.TreeCtrl_Delete(*args, **kwargs) | |
3952 | ||
3953 | def DeleteChildren(*args, **kwargs): | |
3954 | """DeleteChildren(TreeItemId item)""" | |
3955 | return _controls.TreeCtrl_DeleteChildren(*args, **kwargs) | |
3956 | ||
3957 | def DeleteAllItems(*args, **kwargs): | |
3958 | """DeleteAllItems()""" | |
3959 | return _controls.TreeCtrl_DeleteAllItems(*args, **kwargs) | |
3960 | ||
3961 | def Expand(*args, **kwargs): | |
3962 | """Expand(TreeItemId item)""" | |
3963 | return _controls.TreeCtrl_Expand(*args, **kwargs) | |
3964 | ||
3965 | def Collapse(*args, **kwargs): | |
3966 | """Collapse(TreeItemId item)""" | |
3967 | return _controls.TreeCtrl_Collapse(*args, **kwargs) | |
3968 | ||
3969 | def CollapseAndReset(*args, **kwargs): | |
3970 | """CollapseAndReset(TreeItemId item)""" | |
3971 | return _controls.TreeCtrl_CollapseAndReset(*args, **kwargs) | |
3972 | ||
3973 | def Toggle(*args, **kwargs): | |
3974 | """Toggle(TreeItemId item)""" | |
3975 | return _controls.TreeCtrl_Toggle(*args, **kwargs) | |
3976 | ||
3977 | def Unselect(*args, **kwargs): | |
3978 | """Unselect()""" | |
3979 | return _controls.TreeCtrl_Unselect(*args, **kwargs) | |
3980 | ||
3981 | def UnselectAll(*args, **kwargs): | |
3982 | """UnselectAll()""" | |
3983 | return _controls.TreeCtrl_UnselectAll(*args, **kwargs) | |
3984 | ||
3985 | def SelectItem(*args, **kwargs): | |
3986 | """SelectItem(TreeItemId item)""" | |
3987 | return _controls.TreeCtrl_SelectItem(*args, **kwargs) | |
3988 | ||
3989 | def EnsureVisible(*args, **kwargs): | |
3990 | """EnsureVisible(TreeItemId item)""" | |
3991 | return _controls.TreeCtrl_EnsureVisible(*args, **kwargs) | |
3992 | ||
3993 | def ScrollTo(*args, **kwargs): | |
3994 | """ScrollTo(TreeItemId item)""" | |
3995 | return _controls.TreeCtrl_ScrollTo(*args, **kwargs) | |
3996 | ||
3997 | def EditLabel(*args, **kwargs): | |
3998 | """EditLabel(TreeItemId item)""" | |
3999 | return _controls.TreeCtrl_EditLabel(*args, **kwargs) | |
4000 | ||
4001 | def GetEditControl(*args, **kwargs): | |
4002 | """GetEditControl() -> TextCtrl""" | |
4003 | return _controls.TreeCtrl_GetEditControl(*args, **kwargs) | |
4004 | ||
4005 | def EndEditLabel(*args, **kwargs): | |
4006 | """EndEditLabel(TreeItemId item, bool discardChanges=False)""" | |
4007 | return _controls.TreeCtrl_EndEditLabel(*args, **kwargs) | |
4008 | ||
4009 | def SortChildren(*args, **kwargs): | |
4010 | """SortChildren(TreeItemId item)""" | |
4011 | return _controls.TreeCtrl_SortChildren(*args, **kwargs) | |
4012 | ||
4013 | def HitTest(*args, **kwargs): | |
4014 | """HitTest(Point point) -> (item, where) | |
4015 | ||
4016 | Determine which item (if any) belongs the given point. The | |
4017 | coordinates specified are relative to the client area of tree ctrl | |
4018 | and the where return value is set to a bitmask of wxTREE_HITTEST_xxx | |
4019 | constants. | |
4020 | """ | |
4021 | return _controls.TreeCtrl_HitTest(*args, **kwargs) | |
4022 | ||
4023 | def GetBoundingRect(*args, **kwargs): | |
4024 | """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject""" | |
4025 | return _controls.TreeCtrl_GetBoundingRect(*args, **kwargs) | |
4026 | ||
4027 | ||
4028 | class TreeCtrlPtr(TreeCtrl): | |
4029 | def __init__(self, this): | |
4030 | self.this = this | |
4031 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4032 | self.__class__ = TreeCtrl | |
4033 | _controls.TreeCtrl_swigregister(TreeCtrlPtr) | |
4034 | ||
4035 | def PreTreeCtrl(*args, **kwargs): | |
4036 | """PreTreeCtrl() -> TreeCtrl""" | |
4037 | val = _controls.new_PreTreeCtrl(*args, **kwargs) | |
4038 | val.thisown = 1 | |
4039 | return val | |
4040 | ||
4041 | #--------------------------------------------------------------------------- | |
4042 | ||
4043 | DIRCTRL_DIR_ONLY = _controls.DIRCTRL_DIR_ONLY | |
4044 | DIRCTRL_SELECT_FIRST = _controls.DIRCTRL_SELECT_FIRST | |
4045 | DIRCTRL_SHOW_FILTERS = _controls.DIRCTRL_SHOW_FILTERS | |
4046 | DIRCTRL_3D_INTERNAL = _controls.DIRCTRL_3D_INTERNAL | |
4047 | DIRCTRL_EDIT_LABELS = _controls.DIRCTRL_EDIT_LABELS | |
4048 | class GenericDirCtrl(core.Control): | |
4049 | """""" | |
4050 | def __repr__(self): | |
4051 | return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4052 | def __init__(self, *args, **kwargs): | |
4053 | """__init__(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr, | |
4054 | Point pos=DefaultPosition, | |
4055 | Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
4056 | wxString filter=wxPyEmptyString, | |
4057 | int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> GenericDirCtrl""" | |
4058 | newobj = _controls.new_GenericDirCtrl(*args, **kwargs) | |
4059 | self.this = newobj.this | |
4060 | self.thisown = 1 | |
4061 | del newobj.thisown | |
4062 | self._setOORInfo(self) | |
4063 | ||
4064 | def Create(*args, **kwargs): | |
4065 | """Create(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr, | |
4066 | Point pos=DefaultPosition, | |
4067 | Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
4068 | wxString filter=wxPyEmptyString, | |
4069 | int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> bool""" | |
4070 | return _controls.GenericDirCtrl_Create(*args, **kwargs) | |
4071 | ||
4072 | def ExpandPath(*args, **kwargs): | |
4073 | """ExpandPath(wxString path) -> bool""" | |
4074 | return _controls.GenericDirCtrl_ExpandPath(*args, **kwargs) | |
4075 | ||
4076 | def GetDefaultPath(*args, **kwargs): | |
4077 | """GetDefaultPath() -> wxString""" | |
4078 | return _controls.GenericDirCtrl_GetDefaultPath(*args, **kwargs) | |
4079 | ||
4080 | def SetDefaultPath(*args, **kwargs): | |
4081 | """SetDefaultPath(wxString path)""" | |
4082 | return _controls.GenericDirCtrl_SetDefaultPath(*args, **kwargs) | |
4083 | ||
4084 | def GetPath(*args, **kwargs): | |
4085 | """GetPath() -> wxString""" | |
4086 | return _controls.GenericDirCtrl_GetPath(*args, **kwargs) | |
4087 | ||
4088 | def GetFilePath(*args, **kwargs): | |
4089 | """GetFilePath() -> wxString""" | |
4090 | return _controls.GenericDirCtrl_GetFilePath(*args, **kwargs) | |
4091 | ||
4092 | def SetPath(*args, **kwargs): | |
4093 | """SetPath(wxString path)""" | |
4094 | return _controls.GenericDirCtrl_SetPath(*args, **kwargs) | |
4095 | ||
4096 | def ShowHidden(*args, **kwargs): | |
4097 | """ShowHidden(bool show)""" | |
4098 | return _controls.GenericDirCtrl_ShowHidden(*args, **kwargs) | |
4099 | ||
4100 | def GetShowHidden(*args, **kwargs): | |
4101 | """GetShowHidden() -> bool""" | |
4102 | return _controls.GenericDirCtrl_GetShowHidden(*args, **kwargs) | |
4103 | ||
4104 | def GetFilter(*args, **kwargs): | |
4105 | """GetFilter() -> wxString""" | |
4106 | return _controls.GenericDirCtrl_GetFilter(*args, **kwargs) | |
4107 | ||
4108 | def SetFilter(*args, **kwargs): | |
4109 | """SetFilter(wxString filter)""" | |
4110 | return _controls.GenericDirCtrl_SetFilter(*args, **kwargs) | |
4111 | ||
4112 | def GetFilterIndex(*args, **kwargs): | |
4113 | """GetFilterIndex() -> int""" | |
4114 | return _controls.GenericDirCtrl_GetFilterIndex(*args, **kwargs) | |
4115 | ||
4116 | def SetFilterIndex(*args, **kwargs): | |
4117 | """SetFilterIndex(int n)""" | |
4118 | return _controls.GenericDirCtrl_SetFilterIndex(*args, **kwargs) | |
4119 | ||
4120 | def GetRootId(*args, **kwargs): | |
4121 | """GetRootId() -> TreeItemId""" | |
4122 | return _controls.GenericDirCtrl_GetRootId(*args, **kwargs) | |
4123 | ||
4124 | def GetTreeCtrl(*args, **kwargs): | |
4125 | """GetTreeCtrl() -> wxTreeCtrl""" | |
4126 | return _controls.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) | |
4127 | ||
4128 | def GetFilterListCtrl(*args, **kwargs): | |
4129 | """GetFilterListCtrl() -> DirFilterListCtrl""" | |
4130 | return _controls.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) | |
4131 | ||
4132 | def FindChild(*args, **kwargs): | |
4133 | """FindChild(wxTreeItemId parentId, wxString path) -> (item, done) | |
4134 | ||
4135 | Find the child that matches the first part of 'path'. E.g. if a child path is | |
4136 | "/usr" and 'path' is "/usr/include" then the child for /usr is returned. | |
4137 | If the path string has been used (we're at the leaf), done is set to True | |
4138 | """ | |
4139 | return _controls.GenericDirCtrl_FindChild(*args, **kwargs) | |
4140 | ||
4141 | def DoResize(*args, **kwargs): | |
4142 | """DoResize()""" | |
4143 | return _controls.GenericDirCtrl_DoResize(*args, **kwargs) | |
4144 | ||
4145 | def ReCreateTree(*args, **kwargs): | |
4146 | """ReCreateTree()""" | |
4147 | return _controls.GenericDirCtrl_ReCreateTree(*args, **kwargs) | |
4148 | ||
4149 | ||
4150 | class GenericDirCtrlPtr(GenericDirCtrl): | |
4151 | def __init__(self, this): | |
4152 | self.this = this | |
4153 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4154 | self.__class__ = GenericDirCtrl | |
4155 | _controls.GenericDirCtrl_swigregister(GenericDirCtrlPtr) | |
4156 | ||
4157 | def PreGenericDirCtrl(*args, **kwargs): | |
4158 | """PreGenericDirCtrl() -> GenericDirCtrl""" | |
4159 | val = _controls.new_PreGenericDirCtrl(*args, **kwargs) | |
4160 | val.thisown = 1 | |
4161 | return val | |
4162 | ||
4163 | class DirFilterListCtrl(Choice): | |
4164 | """""" | |
4165 | def __repr__(self): | |
4166 | return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4167 | def __init__(self, *args, **kwargs): | |
4168 | """__init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, | |
4169 | Size size=DefaultSize, long style=0) -> DirFilterListCtrl""" | |
4170 | newobj = _controls.new_DirFilterListCtrl(*args, **kwargs) | |
4171 | self.this = newobj.this | |
4172 | self.thisown = 1 | |
4173 | del newobj.thisown | |
4174 | self._setOORInfo(self) | |
4175 | ||
4176 | def Create(*args, **kwargs): | |
4177 | """Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, | |
4178 | Size size=DefaultSize, long style=0) -> bool""" | |
4179 | return _controls.DirFilterListCtrl_Create(*args, **kwargs) | |
4180 | ||
4181 | def FillFilterList(*args, **kwargs): | |
4182 | """FillFilterList(wxString filter, int defaultFilter)""" | |
4183 | return _controls.DirFilterListCtrl_FillFilterList(*args, **kwargs) | |
4184 | ||
4185 | ||
4186 | class DirFilterListCtrlPtr(DirFilterListCtrl): | |
4187 | def __init__(self, this): | |
4188 | self.this = this | |
4189 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4190 | self.__class__ = DirFilterListCtrl | |
4191 | _controls.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr) | |
4192 | ||
4193 | def PreDirFilterListCtrl(*args, **kwargs): | |
4194 | """PreDirFilterListCtrl() -> DirFilterListCtrl""" | |
4195 | val = _controls.new_PreDirFilterListCtrl(*args, **kwargs) | |
4196 | val.thisown = 1 | |
4197 | return val | |
4198 | ||
4199 | #--------------------------------------------------------------------------- | |
4200 | ||
4201 | class PyControl(core.Control): | |
4202 | """""" | |
4203 | def __repr__(self): | |
4204 | return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4205 | def __init__(self, *args, **kwargs): | |
4206 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
4207 | long style=0, Validator validator=DefaultValidator, | |
4208 | wxString name=wxPyControlNameStr) -> PyControl""" | |
4209 | newobj = _controls.new_PyControl(*args, **kwargs) | |
4210 | self.this = newobj.this | |
4211 | self.thisown = 1 | |
4212 | del newobj.thisown | |
4213 | self._setOORInfo(self); self._setCallbackInfo(self, PyControl) | |
4214 | ||
4215 | def _setCallbackInfo(*args, **kwargs): | |
4216 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4217 | return _controls.PyControl__setCallbackInfo(*args, **kwargs) | |
4218 | ||
4219 | def base_DoMoveWindow(*args, **kwargs): | |
4220 | """base_DoMoveWindow(int x, int y, int width, int height)""" | |
4221 | return _controls.PyControl_base_DoMoveWindow(*args, **kwargs) | |
4222 | ||
4223 | def base_DoSetSize(*args, **kwargs): | |
4224 | """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
4225 | return _controls.PyControl_base_DoSetSize(*args, **kwargs) | |
4226 | ||
4227 | def base_DoSetClientSize(*args, **kwargs): | |
4228 | """base_DoSetClientSize(int width, int height)""" | |
4229 | return _controls.PyControl_base_DoSetClientSize(*args, **kwargs) | |
4230 | ||
4231 | def base_DoSetVirtualSize(*args, **kwargs): | |
4232 | """base_DoSetVirtualSize(int x, int y)""" | |
4233 | return _controls.PyControl_base_DoSetVirtualSize(*args, **kwargs) | |
4234 | ||
4235 | def base_DoGetSize(*args, **kwargs): | |
4236 | """base_DoGetSize() -> (width, height)""" | |
4237 | return _controls.PyControl_base_DoGetSize(*args, **kwargs) | |
4238 | ||
4239 | def base_DoGetClientSize(*args, **kwargs): | |
4240 | """base_DoGetClientSize() -> (width, height)""" | |
4241 | return _controls.PyControl_base_DoGetClientSize(*args, **kwargs) | |
4242 | ||
4243 | def base_DoGetPosition(*args, **kwargs): | |
4244 | """base_DoGetPosition() -> (x,y)""" | |
4245 | return _controls.PyControl_base_DoGetPosition(*args, **kwargs) | |
4246 | ||
4247 | def base_DoGetVirtualSize(*args, **kwargs): | |
4248 | """base_DoGetVirtualSize() -> Size""" | |
4249 | return _controls.PyControl_base_DoGetVirtualSize(*args, **kwargs) | |
4250 | ||
4251 | def base_DoGetBestSize(*args, **kwargs): | |
4252 | """base_DoGetBestSize() -> Size""" | |
4253 | return _controls.PyControl_base_DoGetBestSize(*args, **kwargs) | |
4254 | ||
4255 | def base_InitDialog(*args, **kwargs): | |
4256 | """base_InitDialog()""" | |
4257 | return _controls.PyControl_base_InitDialog(*args, **kwargs) | |
4258 | ||
4259 | def base_TransferDataToWindow(*args, **kwargs): | |
4260 | """base_TransferDataToWindow() -> bool""" | |
4261 | return _controls.PyControl_base_TransferDataToWindow(*args, **kwargs) | |
4262 | ||
4263 | def base_TransferDataFromWindow(*args, **kwargs): | |
4264 | """base_TransferDataFromWindow() -> bool""" | |
4265 | return _controls.PyControl_base_TransferDataFromWindow(*args, **kwargs) | |
4266 | ||
4267 | def base_Validate(*args, **kwargs): | |
4268 | """base_Validate() -> bool""" | |
4269 | return _controls.PyControl_base_Validate(*args, **kwargs) | |
4270 | ||
4271 | def base_AcceptsFocus(*args, **kwargs): | |
4272 | """base_AcceptsFocus() -> bool""" | |
4273 | return _controls.PyControl_base_AcceptsFocus(*args, **kwargs) | |
4274 | ||
4275 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
4276 | """base_AcceptsFocusFromKeyboard() -> bool""" | |
4277 | return _controls.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
4278 | ||
4279 | def base_GetMaxSize(*args, **kwargs): | |
4280 | """base_GetMaxSize() -> Size""" | |
4281 | return _controls.PyControl_base_GetMaxSize(*args, **kwargs) | |
4282 | ||
4283 | def base_AddChild(*args, **kwargs): | |
4284 | """base_AddChild(Window child)""" | |
4285 | return _controls.PyControl_base_AddChild(*args, **kwargs) | |
4286 | ||
4287 | def base_RemoveChild(*args, **kwargs): | |
4288 | """base_RemoveChild(Window child)""" | |
4289 | return _controls.PyControl_base_RemoveChild(*args, **kwargs) | |
4290 | ||
4291 | ||
4292 | class PyControlPtr(PyControl): | |
4293 | def __init__(self, this): | |
4294 | self.this = this | |
4295 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4296 | self.__class__ = PyControl | |
4297 | _controls.PyControl_swigregister(PyControlPtr) | |
4298 | ||
4299 | #--------------------------------------------------------------------------- | |
4300 | ||
4301 | FRAME_EX_CONTEXTHELP = _controls.FRAME_EX_CONTEXTHELP | |
4302 | DIALOG_EX_CONTEXTHELP = _controls.DIALOG_EX_CONTEXTHELP | |
4303 | wxEVT_HELP = _controls.wxEVT_HELP | |
4304 | wxEVT_DETAILED_HELP = _controls.wxEVT_DETAILED_HELP | |
4305 | EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) | |
4306 | EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) | |
4307 | EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) | |
4308 | EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) | |
4309 | ||
4310 | class HelpEvent(core.CommandEvent): | |
4311 | """""" | |
4312 | def __repr__(self): | |
4313 | return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4314 | def __init__(self, *args, **kwargs): | |
4315 | """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent""" | |
4316 | newobj = _controls.new_HelpEvent(*args, **kwargs) | |
4317 | self.this = newobj.this | |
4318 | self.thisown = 1 | |
4319 | del newobj.thisown | |
4320 | def GetPosition(*args, **kwargs): | |
4321 | """GetPosition() -> Point""" | |
4322 | return _controls.HelpEvent_GetPosition(*args, **kwargs) | |
4323 | ||
4324 | def SetPosition(*args, **kwargs): | |
4325 | """SetPosition(Point pos)""" | |
4326 | return _controls.HelpEvent_SetPosition(*args, **kwargs) | |
4327 | ||
4328 | def GetLink(*args, **kwargs): | |
4329 | """GetLink() -> wxString""" | |
4330 | return _controls.HelpEvent_GetLink(*args, **kwargs) | |
4331 | ||
4332 | def SetLink(*args, **kwargs): | |
4333 | """SetLink(wxString link)""" | |
4334 | return _controls.HelpEvent_SetLink(*args, **kwargs) | |
4335 | ||
4336 | def GetTarget(*args, **kwargs): | |
4337 | """GetTarget() -> wxString""" | |
4338 | return _controls.HelpEvent_GetTarget(*args, **kwargs) | |
4339 | ||
4340 | def SetTarget(*args, **kwargs): | |
4341 | """SetTarget(wxString target)""" | |
4342 | return _controls.HelpEvent_SetTarget(*args, **kwargs) | |
4343 | ||
4344 | ||
4345 | class HelpEventPtr(HelpEvent): | |
4346 | def __init__(self, this): | |
4347 | self.this = this | |
4348 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4349 | self.__class__ = HelpEvent | |
4350 | _controls.HelpEvent_swigregister(HelpEventPtr) | |
4351 | ||
4352 | class ContextHelp(core.Object): | |
4353 | """""" | |
4354 | def __repr__(self): | |
4355 | return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4356 | def __init__(self, *args, **kwargs): | |
4357 | """__init__(Window window=None, bool doNow=True) -> ContextHelp""" | |
4358 | newobj = _controls.new_ContextHelp(*args, **kwargs) | |
4359 | self.this = newobj.this | |
4360 | self.thisown = 1 | |
4361 | del newobj.thisown | |
4362 | def __del__(self, destroy=_controls.delete_ContextHelp): | |
4363 | """__del__()""" | |
4364 | try: | |
4365 | if self.thisown: destroy(self) | |
4366 | except: pass | |
4367 | ||
4368 | def BeginContextHelp(*args, **kwargs): | |
4369 | """BeginContextHelp(Window window=None) -> bool""" | |
4370 | return _controls.ContextHelp_BeginContextHelp(*args, **kwargs) | |
4371 | ||
4372 | def EndContextHelp(*args, **kwargs): | |
4373 | """EndContextHelp() -> bool""" | |
4374 | return _controls.ContextHelp_EndContextHelp(*args, **kwargs) | |
4375 | ||
4376 | ||
4377 | class ContextHelpPtr(ContextHelp): | |
4378 | def __init__(self, this): | |
4379 | self.this = this | |
4380 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4381 | self.__class__ = ContextHelp | |
4382 | _controls.ContextHelp_swigregister(ContextHelpPtr) | |
4383 | ||
4384 | class ContextHelpButton(BitmapButton): | |
4385 | """""" | |
4386 | def __repr__(self): | |
4387 | return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4388 | def __init__(self, *args, **kwargs): | |
4389 | """__init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, | |
4390 | Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton""" | |
4391 | newobj = _controls.new_ContextHelpButton(*args, **kwargs) | |
4392 | self.this = newobj.this | |
4393 | self.thisown = 1 | |
4394 | del newobj.thisown | |
4395 | self._setOORInfo(self) | |
4396 | ||
4397 | ||
4398 | class ContextHelpButtonPtr(ContextHelpButton): | |
4399 | def __init__(self, this): | |
4400 | self.this = this | |
4401 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4402 | self.__class__ = ContextHelpButton | |
4403 | _controls.ContextHelpButton_swigregister(ContextHelpButtonPtr) | |
4404 | ||
4405 | class HelpProvider(object): | |
4406 | """""" | |
4407 | def __init__(self): raise RuntimeError, "No constructor defined" | |
4408 | def __repr__(self): | |
4409 | return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4410 | def Set(*args, **kwargs): | |
4411 | """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider""" | |
4412 | return _controls.HelpProvider_Set(*args, **kwargs) | |
4413 | ||
4414 | Set = staticmethod(Set) | |
4415 | def Get(*args, **kwargs): | |
4416 | """HelpProvider.Get() -> HelpProvider""" | |
4417 | return _controls.HelpProvider_Get(*args, **kwargs) | |
4418 | ||
4419 | Get = staticmethod(Get) | |
4420 | def GetHelp(*args, **kwargs): | |
4421 | """GetHelp(Window window) -> wxString""" | |
4422 | return _controls.HelpProvider_GetHelp(*args, **kwargs) | |
4423 | ||
4424 | def ShowHelp(*args, **kwargs): | |
4425 | """ShowHelp(Window window) -> bool""" | |
4426 | return _controls.HelpProvider_ShowHelp(*args, **kwargs) | |
4427 | ||
4428 | def AddHelp(*args, **kwargs): | |
4429 | """AddHelp(Window window, wxString text)""" | |
4430 | return _controls.HelpProvider_AddHelp(*args, **kwargs) | |
4431 | ||
4432 | def AddHelpById(*args, **kwargs): | |
4433 | """AddHelpById(int id, wxString text)""" | |
4434 | return _controls.HelpProvider_AddHelpById(*args, **kwargs) | |
4435 | ||
4436 | def Destroy(*args, **kwargs): | |
4437 | """Destroy()""" | |
4438 | return _controls.HelpProvider_Destroy(*args, **kwargs) | |
4439 | ||
4440 | ||
4441 | class HelpProviderPtr(HelpProvider): | |
4442 | def __init__(self, this): | |
4443 | self.this = this | |
4444 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4445 | self.__class__ = HelpProvider | |
4446 | _controls.HelpProvider_swigregister(HelpProviderPtr) | |
4447 | ||
4448 | def HelpProvider_Set(*args, **kwargs): | |
4449 | """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider""" | |
4450 | return _controls.HelpProvider_Set(*args, **kwargs) | |
4451 | ||
4452 | def HelpProvider_Get(*args, **kwargs): | |
4453 | """HelpProvider_Get() -> HelpProvider""" | |
4454 | return _controls.HelpProvider_Get(*args, **kwargs) | |
4455 | ||
4456 | class SimpleHelpProvider(HelpProvider): | |
4457 | """""" | |
4458 | def __repr__(self): | |
4459 | return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4460 | def __init__(self, *args, **kwargs): | |
4461 | """__init__() -> SimpleHelpProvider""" | |
4462 | newobj = _controls.new_SimpleHelpProvider(*args, **kwargs) | |
4463 | self.this = newobj.this | |
4464 | self.thisown = 1 | |
4465 | del newobj.thisown | |
4466 | ||
4467 | class SimpleHelpProviderPtr(SimpleHelpProvider): | |
4468 | def __init__(self, this): | |
4469 | self.this = this | |
4470 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4471 | self.__class__ = SimpleHelpProvider | |
4472 | _controls.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr) | |
4473 | ||
4474 | #--------------------------------------------------------------------------- | |
4475 | ||
4476 | class DragImage(core.Object): | |
4477 | """""" | |
4478 | def __repr__(self): | |
4479 | return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4480 | def __init__(self, *args, **kwargs): | |
4481 | """__init__(wxBitmap image, wxCursor cursor=wxNullCursor) -> DragImage""" | |
4482 | newobj = _controls.new_DragImage(*args, **kwargs) | |
4483 | self.this = newobj.this | |
4484 | self.thisown = 1 | |
4485 | del newobj.thisown | |
4486 | def __del__(self, destroy=_controls.delete_DragImage): | |
4487 | """__del__()""" | |
4488 | try: | |
4489 | if self.thisown: destroy(self) | |
4490 | except: pass | |
4491 | ||
4492 | def SetBackingBitmap(*args, **kwargs): | |
4493 | """SetBackingBitmap(wxBitmap bitmap)""" | |
4494 | return _controls.DragImage_SetBackingBitmap(*args, **kwargs) | |
4495 | ||
4496 | def BeginDrag(*args, **kwargs): | |
4497 | """BeginDrag(Point hotspot, Window window, bool fullScreen=False, | |
4498 | Rect rect=None) -> bool""" | |
4499 | return _controls.DragImage_BeginDrag(*args, **kwargs) | |
4500 | ||
4501 | def BeginDragBounded(*args, **kwargs): | |
4502 | """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool""" | |
4503 | return _controls.DragImage_BeginDragBounded(*args, **kwargs) | |
4504 | ||
4505 | def EndDrag(*args, **kwargs): | |
4506 | """EndDrag() -> bool""" | |
4507 | return _controls.DragImage_EndDrag(*args, **kwargs) | |
4508 | ||
4509 | def Move(*args, **kwargs): | |
4510 | """Move(Point pt) -> bool""" | |
4511 | return _controls.DragImage_Move(*args, **kwargs) | |
4512 | ||
4513 | def Show(*args, **kwargs): | |
4514 | """Show() -> bool""" | |
4515 | return _controls.DragImage_Show(*args, **kwargs) | |
4516 | ||
4517 | def Hide(*args, **kwargs): | |
4518 | """Hide() -> bool""" | |
4519 | return _controls.DragImage_Hide(*args, **kwargs) | |
4520 | ||
4521 | def GetImageRect(*args, **kwargs): | |
4522 | """GetImageRect(Point pos) -> Rect""" | |
4523 | return _controls.DragImage_GetImageRect(*args, **kwargs) | |
4524 | ||
4525 | def DoDrawImage(*args, **kwargs): | |
4526 | """DoDrawImage(wxDC dc, Point pos) -> bool""" | |
4527 | return _controls.DragImage_DoDrawImage(*args, **kwargs) | |
4528 | ||
4529 | def UpdateBackingFromWindow(*args, **kwargs): | |
4530 | """UpdateBackingFromWindow(wxDC windowDC, wxMemoryDC destDC, Rect sourceRect, | |
4531 | Rect destRect) -> bool""" | |
4532 | return _controls.DragImage_UpdateBackingFromWindow(*args, **kwargs) | |
4533 | ||
4534 | def RedrawImage(*args, **kwargs): | |
4535 | """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" | |
4536 | return _controls.DragImage_RedrawImage(*args, **kwargs) | |
4537 | ||
4538 | ||
4539 | class DragImagePtr(DragImage): | |
4540 | def __init__(self, this): | |
4541 | self.this = this | |
4542 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4543 | self.__class__ = DragImage | |
4544 | _controls.DragImage_swigregister(DragImagePtr) | |
4545 | ||
4546 | def DragIcon(*args, **kwargs): | |
4547 | """DragIcon(wxIcon image, wxCursor cursor=wxNullCursor) -> DragImage""" | |
4548 | val = _controls.new_DragIcon(*args, **kwargs) | |
4549 | val.thisown = 1 | |
4550 | return val | |
4551 | ||
4552 | def DragString(*args, **kwargs): | |
4553 | """DragString(wxString str, wxCursor cursor=wxNullCursor) -> DragImage""" | |
4554 | val = _controls.new_DragString(*args, **kwargs) | |
4555 | val.thisown = 1 | |
4556 | return val | |
4557 | ||
4558 | def DragTreeItem(*args, **kwargs): | |
4559 | """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" | |
4560 | val = _controls.new_DragTreeItem(*args, **kwargs) | |
4561 | val.thisown = 1 | |
4562 | return val | |
4563 | ||
4564 | def DragListItem(*args, **kwargs): | |
4565 | """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" | |
4566 | val = _controls.new_DragListItem(*args, **kwargs) | |
4567 | val.thisown = 1 | |
4568 | return val | |
4569 | ||
4570 |