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