1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
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
):
18 A button is a control that contains a text string, and is one of the most
19 common elements of a GUI. It may be placed on a dialog box or panel, or
20 indeed almost any other window.
23 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
24 def __init__(self
, *args
, **kwargs
):
26 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
27 Size size=DefaultSize, long style=0,
28 Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button
30 Create and show a button.
32 newobj
= _controls
.new_Button(*args
, **kwargs
)
33 self
.this
= newobj
.this
36 self
._setOORInfo
(self
)
38 def Create(*args
, **kwargs
):
40 Create(Window parent, int id, String label, Point pos=DefaultPosition,
41 Size size=DefaultSize, long style=0,
42 Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool
44 Acutally create the GUI Button for 2-phase creation.
46 return _controls
.Button_Create(*args
, **kwargs
)
48 def SetDefault(*args
, **kwargs
):
52 This sets the button to be the default item for the panel or dialog box.
54 return _controls
.Button_SetDefault(*args
, **kwargs
)
56 def GetDefaultSize(*args
, **kwargs
):
57 """GetDefaultSize() -> Size"""
58 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
60 GetDefaultSize
= staticmethod(GetDefaultSize
)
62 class ButtonPtr(Button
):
63 def __init__(self
, this
):
65 if not hasattr(self
,"thisown"): self
.thisown
= 0
66 self
.__class
__ = Button
67 _controls
.Button_swigregister(ButtonPtr
)
69 ButtonNameStr
= cvar
.ButtonNameStr
71 def PreButton(*args
, **kwargs
):
75 Precreate a Button for 2-phase creation.
77 val
= _controls
.new_PreButton(*args
, **kwargs
)
81 def Button_GetDefaultSize(*args
, **kwargs
):
82 """Button_GetDefaultSize() -> Size"""
83 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
85 class BitmapButton(Button
):
86 """A Buttont that contains a bitmap."""
88 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
89 def __init__(self
, *args
, **kwargs
):
91 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
92 Size size=DefaultSize, long style=BU_AUTODRAW,
93 Validator validator=DefaultValidator,
94 String name=ButtonNameStr) -> BitmapButton
96 Create and show a button.
98 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
99 self
.this
= newobj
.this
102 self
._setOORInfo
(self
)
104 def Create(*args
, **kwargs
):
106 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
107 Size size=DefaultSize, long style=BU_AUTODRAW,
108 Validator validator=DefaultValidator,
109 String name=ButtonNameStr) -> bool
111 Acutally create the GUI BitmapButton for 2-phase creation.
113 return _controls
.BitmapButton_Create(*args
, **kwargs
)
115 def GetBitmapLabel(*args
, **kwargs
):
117 GetBitmapLabel() -> Bitmap
119 Returns the label bitmap (the one passed to the constructor).
121 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
123 def GetBitmapDisabled(*args
, **kwargs
):
125 GetBitmapDisabled() -> Bitmap
127 Returns the bitmap for the disabled state.
129 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
131 def GetBitmapFocus(*args
, **kwargs
):
133 GetBitmapFocus() -> Bitmap
135 Returns the bitmap for the focused state.
137 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
139 def GetBitmapSelected(*args
, **kwargs
):
141 GetBitmapSelected() -> Bitmap
143 Returns the bitmap for the selected state.
145 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
147 def SetBitmapDisabled(*args
, **kwargs
):
149 SetBitmapDisabled(Bitmap bitmap)
151 Sets the bitmap for the disabled button appearance.
153 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
155 def SetBitmapFocus(*args
, **kwargs
):
157 SetBitmapFocus(Bitmap bitmap)
159 Sets the bitmap for the button appearance when it has the keyboard focus.
161 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
163 def SetBitmapSelected(*args
, **kwargs
):
165 SetBitmapSelected(Bitmap bitmap)
167 Sets the bitmap for the selected (depressed) button appearance.
169 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
171 def SetBitmapLabel(*args
, **kwargs
):
173 SetBitmapLabel(Bitmap bitmap)
175 Sets the bitmap label for the button. This is the bitmap used for the
176 unselected state, and for all other states if no other bitmaps are provided.
178 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
180 def SetMargins(*args
, **kwargs
):
181 """SetMargins(int x, int y)"""
182 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
184 def GetMarginX(*args
, **kwargs
):
185 """GetMarginX() -> int"""
186 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
188 def GetMarginY(*args
, **kwargs
):
189 """GetMarginY() -> int"""
190 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
193 class BitmapButtonPtr(BitmapButton
):
194 def __init__(self
, this
):
196 if not hasattr(self
,"thisown"): self
.thisown
= 0
197 self
.__class
__ = BitmapButton
198 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
200 def PreBitmapButton(*args
, **kwargs
):
202 PreBitmapButton() -> BitmapButton
204 Precreate a BitmapButton for 2-phase creation.
206 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
210 #---------------------------------------------------------------------------
212 CHK_2STATE
= _controls
.CHK_2STATE
213 CHK_3STATE
= _controls
.CHK_3STATE
214 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
215 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
216 CHK_CHECKED
= _controls
.CHK_CHECKED
217 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
218 class CheckBox(core
.Control
):
220 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
221 def __init__(self
, *args
, **kwargs
):
223 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
224 Size size=DefaultSize, long style=0,
225 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
227 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
228 self
.this
= newobj
.this
231 self
._setOORInfo
(self
)
233 def Create(*args
, **kwargs
):
235 Create(Window parent, int id, String label, Point pos=DefaultPosition,
236 Size size=DefaultSize, long style=0,
237 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
239 return _controls
.CheckBox_Create(*args
, **kwargs
)
241 def GetValue(*args
, **kwargs
):
242 """GetValue() -> bool"""
243 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
245 def IsChecked(*args
, **kwargs
):
246 """IsChecked() -> bool"""
247 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
249 def SetValue(*args
, **kwargs
):
250 """SetValue(bool state)"""
251 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
253 def Get3StateValue(*args
, **kwargs
):
254 """Get3StateValue() -> int"""
255 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
257 def Set3StateValue(*args
, **kwargs
):
258 """Set3StateValue(int state)"""
259 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
261 def Is3State(*args
, **kwargs
):
262 """Is3State() -> bool"""
263 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
265 def Is3rdStateAllowedForUser(*args
, **kwargs
):
266 """Is3rdStateAllowedForUser() -> bool"""
267 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
270 class CheckBoxPtr(CheckBox
):
271 def __init__(self
, this
):
273 if not hasattr(self
,"thisown"): self
.thisown
= 0
274 self
.__class
__ = CheckBox
275 _controls
.CheckBox_swigregister(CheckBoxPtr
)
276 CheckBoxNameStr
= cvar
.CheckBoxNameStr
278 def PreCheckBox(*args
, **kwargs
):
279 """PreCheckBox() -> CheckBox"""
280 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
284 #---------------------------------------------------------------------------
286 class Choice(core
.ControlWithItems
):
288 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
289 def __init__(self
, *args
, **kwargs
):
291 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
292 int choices=0, String choices_array=None,
293 long style=0, Validator validator=DefaultValidator,
294 String name=ChoiceNameStr) -> Choice
296 newobj
= _controls
.new_Choice(*args
, **kwargs
)
297 self
.this
= newobj
.this
300 self
._setOORInfo
(self
)
302 def Create(*args
, **kwargs
):
304 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
305 int choices=0, String choices_array=None,
306 long style=0, Validator validator=DefaultValidator,
307 String name=ChoiceNameStr) -> bool
309 return _controls
.Choice_Create(*args
, **kwargs
)
311 def GetColumns(*args
, **kwargs
):
312 """GetColumns() -> int"""
313 return _controls
.Choice_GetColumns(*args
, **kwargs
)
315 def SetColumns(*args
, **kwargs
):
316 """SetColumns(int n=1)"""
317 return _controls
.Choice_SetColumns(*args
, **kwargs
)
319 def SetSelection(*args
, **kwargs
):
320 """SetSelection(int n)"""
321 return _controls
.Choice_SetSelection(*args
, **kwargs
)
323 def SetStringSelection(*args
, **kwargs
):
324 """SetStringSelection(String string)"""
325 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
327 def SetString(*args
, **kwargs
):
328 """SetString(int n, String s)"""
329 return _controls
.Choice_SetString(*args
, **kwargs
)
332 class ChoicePtr(Choice
):
333 def __init__(self
, this
):
335 if not hasattr(self
,"thisown"): self
.thisown
= 0
336 self
.__class
__ = Choice
337 _controls
.Choice_swigregister(ChoicePtr
)
338 ChoiceNameStr
= cvar
.ChoiceNameStr
340 def PreChoice(*args
, **kwargs
):
341 """PreChoice() -> Choice"""
342 val
= _controls
.new_PreChoice(*args
, **kwargs
)
346 #---------------------------------------------------------------------------
348 class ComboBox(core
.Control
,core
.ItemContainer
):
350 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
351 def __init__(self
, *args
, **kwargs
):
353 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
354 Size size=DefaultSize,
355 int choices=0, String choices_array=None,
356 long style=0, Validator validator=DefaultValidator,
357 String name=ComboBoxNameStr) -> ComboBox
359 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
360 self
.this
= newobj
.this
363 self
._setOORInfo
(self
)
365 def Create(*args
, **kwargs
):
367 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
368 Size size=DefaultSize,
369 int choices=0, String choices_array=None,
370 long style=0, Validator validator=DefaultValidator,
371 String name=ComboBoxNameStr) -> bool
373 return _controls
.ComboBox_Create(*args
, **kwargs
)
375 def GetValue(*args
, **kwargs
):
376 """GetValue() -> String"""
377 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
379 def SetValue(*args
, **kwargs
):
380 """SetValue(String value)"""
381 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
383 def Copy(*args
, **kwargs
):
385 return _controls
.ComboBox_Copy(*args
, **kwargs
)
387 def Cut(*args
, **kwargs
):
389 return _controls
.ComboBox_Cut(*args
, **kwargs
)
391 def Paste(*args
, **kwargs
):
393 return _controls
.ComboBox_Paste(*args
, **kwargs
)
395 def SetInsertionPoint(*args
, **kwargs
):
396 """SetInsertionPoint(long pos)"""
397 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
399 def GetInsertionPoint(*args
, **kwargs
):
400 """GetInsertionPoint() -> long"""
401 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
403 def GetLastPosition(*args
, **kwargs
):
404 """GetLastPosition() -> long"""
405 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
407 def Replace(*args
, **kwargs
):
408 """Replace(long from, long to, String value)"""
409 return _controls
.ComboBox_Replace(*args
, **kwargs
)
411 def SetSelection(*args
, **kwargs
):
412 """SetSelection(int n)"""
413 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
415 def SetMark(*args
, **kwargs
):
416 """SetMark(long from, long to)"""
417 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
419 def SetEditable(*args
, **kwargs
):
420 """SetEditable(bool editable)"""
421 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
423 def SetInsertionPointEnd(*args
, **kwargs
):
424 """SetInsertionPointEnd()"""
425 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
427 def Remove(*args
, **kwargs
):
428 """Remove(long from, long to)"""
429 return _controls
.ComboBox_Remove(*args
, **kwargs
)
432 class ComboBoxPtr(ComboBox
):
433 def __init__(self
, this
):
435 if not hasattr(self
,"thisown"): self
.thisown
= 0
436 self
.__class
__ = ComboBox
437 _controls
.ComboBox_swigregister(ComboBoxPtr
)
438 ComboBoxNameStr
= cvar
.ComboBoxNameStr
440 def PreComboBox(*args
, **kwargs
):
441 """PreComboBox() -> ComboBox"""
442 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
446 #---------------------------------------------------------------------------
448 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
449 GA_VERTICAL
= _controls
.GA_VERTICAL
450 GA_SMOOTH
= _controls
.GA_SMOOTH
451 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
452 class Gauge(core
.Control
):
454 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
455 def __init__(self
, *args
, **kwargs
):
457 __init__(Window parent, int id, int range, Point pos=DefaultPosition,
458 Size size=DefaultSize, long style=GA_HORIZONTAL,
459 Validator validator=DefaultValidator,
460 String name=GaugeNameStr) -> Gauge
462 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
463 self
.this
= newobj
.this
466 self
._setOORInfo
(self
)
468 def Create(*args
, **kwargs
):
470 Create(Window parent, int id, int range, Point pos=DefaultPosition,
471 Size size=DefaultSize, long style=GA_HORIZONTAL,
472 Validator validator=DefaultValidator,
473 String name=GaugeNameStr) -> bool
475 return _controls
.Gauge_Create(*args
, **kwargs
)
477 def SetRange(*args
, **kwargs
):
478 """SetRange(int range)"""
479 return _controls
.Gauge_SetRange(*args
, **kwargs
)
481 def GetRange(*args
, **kwargs
):
482 """GetRange() -> int"""
483 return _controls
.Gauge_GetRange(*args
, **kwargs
)
485 def SetValue(*args
, **kwargs
):
486 """SetValue(int pos)"""
487 return _controls
.Gauge_SetValue(*args
, **kwargs
)
489 def GetValue(*args
, **kwargs
):
490 """GetValue() -> int"""
491 return _controls
.Gauge_GetValue(*args
, **kwargs
)
493 def IsVertical(*args
, **kwargs
):
494 """IsVertical() -> bool"""
495 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
497 def SetShadowWidth(*args
, **kwargs
):
498 """SetShadowWidth(int w)"""
499 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
501 def GetShadowWidth(*args
, **kwargs
):
502 """GetShadowWidth() -> int"""
503 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
505 def SetBezelFace(*args
, **kwargs
):
506 """SetBezelFace(int w)"""
507 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
509 def GetBezelFace(*args
, **kwargs
):
510 """GetBezelFace() -> int"""
511 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
514 class GaugePtr(Gauge
):
515 def __init__(self
, this
):
517 if not hasattr(self
,"thisown"): self
.thisown
= 0
518 self
.__class
__ = Gauge
519 _controls
.Gauge_swigregister(GaugePtr
)
520 GaugeNameStr
= cvar
.GaugeNameStr
522 def PreGauge(*args
, **kwargs
):
523 """PreGauge() -> Gauge"""
524 val
= _controls
.new_PreGauge(*args
, **kwargs
)
528 #---------------------------------------------------------------------------
530 class StaticBox(core
.Control
):
532 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
533 def __init__(self
, *args
, **kwargs
):
535 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
536 Size size=DefaultSize, long style=0,
537 String name=StaticBoxNameStr) -> StaticBox
539 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
540 self
.this
= newobj
.this
543 self
._setOORInfo
(self
)
545 def Create(*args
, **kwargs
):
547 Create(Window parent, int id, String label, Point pos=DefaultPosition,
548 Size size=DefaultSize, long style=0,
549 String name=StaticBoxNameStr) -> bool
551 return _controls
.StaticBox_Create(*args
, **kwargs
)
554 class StaticBoxPtr(StaticBox
):
555 def __init__(self
, this
):
557 if not hasattr(self
,"thisown"): self
.thisown
= 0
558 self
.__class
__ = StaticBox
559 _controls
.StaticBox_swigregister(StaticBoxPtr
)
560 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
561 StaticBoxNameStr
= cvar
.StaticBoxNameStr
562 StaticTextNameStr
= cvar
.StaticTextNameStr
564 def PreStaticBox(*args
, **kwargs
):
565 """PreStaticBox() -> StaticBox"""
566 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
570 #---------------------------------------------------------------------------
572 class StaticLine(core
.Control
):
574 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
575 def __init__(self
, *args
, **kwargs
):
577 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
578 long style=LI_HORIZONTAL,
579 String name=StaticTextNameStr) -> StaticLine
581 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
582 self
.this
= newobj
.this
585 self
._setOORInfo
(self
)
587 def Create(*args
, **kwargs
):
589 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
590 long style=LI_HORIZONTAL,
591 String name=StaticTextNameStr) -> bool
593 return _controls
.StaticLine_Create(*args
, **kwargs
)
595 def IsVertical(*args
, **kwargs
):
596 """IsVertical() -> bool"""
597 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
599 def GetDefaultSize(*args
, **kwargs
):
600 """GetDefaultSize() -> int"""
601 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
603 GetDefaultSize
= staticmethod(GetDefaultSize
)
605 class StaticLinePtr(StaticLine
):
606 def __init__(self
, this
):
608 if not hasattr(self
,"thisown"): self
.thisown
= 0
609 self
.__class
__ = StaticLine
610 _controls
.StaticLine_swigregister(StaticLinePtr
)
612 def PreStaticLine(*args
, **kwargs
):
613 """PreStaticLine() -> StaticLine"""
614 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
618 def StaticLine_GetDefaultSize(*args
, **kwargs
):
619 """StaticLine_GetDefaultSize() -> int"""
620 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
622 #---------------------------------------------------------------------------
624 class StaticText(core
.Control
):
626 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
627 def __init__(self
, *args
, **kwargs
):
629 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
630 Size size=DefaultSize, long style=0,
631 String name=StaticTextNameStr) -> StaticText
633 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
634 self
.this
= newobj
.this
637 self
._setOORInfo
(self
)
639 def Create(*args
, **kwargs
):
641 Create(Window parent, int id, String label, Point pos=DefaultPosition,
642 Size size=DefaultSize, long style=0,
643 String name=StaticTextNameStr) -> bool
645 return _controls
.StaticText_Create(*args
, **kwargs
)
648 class StaticTextPtr(StaticText
):
649 def __init__(self
, this
):
651 if not hasattr(self
,"thisown"): self
.thisown
= 0
652 self
.__class
__ = StaticText
653 _controls
.StaticText_swigregister(StaticTextPtr
)
655 def PreStaticText(*args
, **kwargs
):
656 """PreStaticText() -> StaticText"""
657 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
661 #---------------------------------------------------------------------------
663 class StaticBitmap(core
.Control
):
665 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
666 def __init__(self
, *args
, **kwargs
):
668 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
669 Size size=DefaultSize, long style=0,
670 String name=StaticBitmapNameStr) -> StaticBitmap
672 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
673 self
.this
= newobj
.this
676 def Create(*args
, **kwargs
):
678 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
679 Size size=DefaultSize, long style=0,
680 String name=StaticBitmapNameStr) -> bool
682 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
684 def GetBitmap(*args
, **kwargs
):
685 """GetBitmap() -> Bitmap"""
686 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
688 def SetBitmap(*args
, **kwargs
):
689 """SetBitmap(Bitmap bitmap)"""
690 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
692 def SetIcon(*args
, **kwargs
):
693 """SetIcon(Icon icon)"""
694 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
697 class StaticBitmapPtr(StaticBitmap
):
698 def __init__(self
, this
):
700 if not hasattr(self
,"thisown"): self
.thisown
= 0
701 self
.__class
__ = StaticBitmap
702 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
704 def PreStaticBitmap(*args
, **kwargs
):
705 """PreStaticBitmap() -> StaticBitmap"""
706 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
710 #---------------------------------------------------------------------------
712 class ListBox(core
.ControlWithItems
):
714 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
715 def __init__(self
, *args
, **kwargs
):
717 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
718 int choices=0, String choices_array=None,
719 long style=0, Validator validator=DefaultValidator,
720 String name=ListBoxNameStr) -> ListBox
722 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
723 self
.this
= newobj
.this
726 self
._setOORInfo
(self
)
728 def Create(*args
, **kwargs
):
730 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
731 int choices=0, String choices_array=None,
732 long style=0, Validator validator=DefaultValidator,
733 String name=ListBoxNameStr) -> bool
735 return _controls
.ListBox_Create(*args
, **kwargs
)
737 def Insert(*args
, **kwargs
):
738 """Insert(String item, int pos, PyObject clientData=None)"""
739 return _controls
.ListBox_Insert(*args
, **kwargs
)
741 def InsertItems(*args
, **kwargs
):
742 """InsertItems(wxArrayString items, int pos)"""
743 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
745 def Set(*args
, **kwargs
):
746 """Set(wxArrayString items)"""
747 return _controls
.ListBox_Set(*args
, **kwargs
)
749 def IsSelected(*args
, **kwargs
):
750 """IsSelected(int n) -> bool"""
751 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
753 def SetSelection(*args
, **kwargs
):
754 """SetSelection(int n, bool select=True)"""
755 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
757 def Select(*args
, **kwargs
):
759 return _controls
.ListBox_Select(*args
, **kwargs
)
761 def Deselect(*args
, **kwargs
):
762 """Deselect(int n)"""
763 return _controls
.ListBox_Deselect(*args
, **kwargs
)
765 def DeselectAll(*args
, **kwargs
):
766 """DeselectAll(int itemToLeaveSelected=-1)"""
767 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
769 def SetStringSelection(*args
, **kwargs
):
770 """SetStringSelection(String s, bool select=True) -> bool"""
771 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
773 def GetSelections(*args
, **kwargs
):
774 """GetSelections() -> PyObject"""
775 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
777 def SetFirstItem(*args
, **kwargs
):
778 """SetFirstItem(int n)"""
779 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
781 def SetFirstItemStr(*args
, **kwargs
):
782 """SetFirstItemStr(String s)"""
783 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
785 def EnsureVisible(*args
, **kwargs
):
786 """EnsureVisible(int n)"""
787 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
789 def AppendAndEnsureVisible(*args
, **kwargs
):
790 """AppendAndEnsureVisible(String s)"""
791 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
793 def IsSorted(*args
, **kwargs
):
794 """IsSorted() -> bool"""
795 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
798 class ListBoxPtr(ListBox
):
799 def __init__(self
, this
):
801 if not hasattr(self
,"thisown"): self
.thisown
= 0
802 self
.__class
__ = ListBox
803 _controls
.ListBox_swigregister(ListBoxPtr
)
804 ListBoxNameStr
= cvar
.ListBoxNameStr
806 def PreListBox(*args
, **kwargs
):
807 """PreListBox() -> ListBox"""
808 val
= _controls
.new_PreListBox(*args
, **kwargs
)
812 #---------------------------------------------------------------------------
814 class CheckListBox(ListBox
):
816 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
817 def __init__(self
, *args
, **kwargs
):
819 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
820 int choices=0, String choices_array=None,
821 long style=0, Validator validator=DefaultValidator,
822 String name=ListBoxNameStr) -> CheckListBox
824 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
825 self
.this
= newobj
.this
828 self
._setOORInfo
(self
)
830 def Create(*args
, **kwargs
):
832 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
833 int choices=0, String choices_array=None,
834 long style=0, Validator validator=DefaultValidator,
835 String name=ListBoxNameStr) -> bool
837 return _controls
.CheckListBox_Create(*args
, **kwargs
)
839 def IsChecked(*args
, **kwargs
):
840 """IsChecked(int index) -> bool"""
841 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
843 def Check(*args
, **kwargs
):
844 """Check(int index, int check=True)"""
845 return _controls
.CheckListBox_Check(*args
, **kwargs
)
847 def HitTest(*args
, **kwargs
):
848 """HitTest(Point pt) -> int"""
849 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
851 def HitTestXY(*args
, **kwargs
):
852 """HitTestXY(int x, int y) -> int"""
853 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
856 class CheckListBoxPtr(CheckListBox
):
857 def __init__(self
, this
):
859 if not hasattr(self
,"thisown"): self
.thisown
= 0
860 self
.__class
__ = CheckListBox
861 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
863 def PreCheckListBox(*args
, **kwargs
):
864 """PreCheckListBox() -> CheckListBox"""
865 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
869 #---------------------------------------------------------------------------
871 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
872 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
873 TE_READONLY
= _controls
.TE_READONLY
874 TE_MULTILINE
= _controls
.TE_MULTILINE
875 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
876 TE_LEFT
= _controls
.TE_LEFT
877 TE_CENTER
= _controls
.TE_CENTER
878 TE_RIGHT
= _controls
.TE_RIGHT
879 TE_CENTRE
= _controls
.TE_CENTRE
880 TE_RICH
= _controls
.TE_RICH
881 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
882 TE_PASSWORD
= _controls
.TE_PASSWORD
883 TE_AUTO_URL
= _controls
.TE_AUTO_URL
884 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
885 TE_DONTWRAP
= _controls
.TE_DONTWRAP
886 TE_LINEWRAP
= _controls
.TE_LINEWRAP
887 TE_WORDWRAP
= _controls
.TE_WORDWRAP
888 TE_RICH2
= _controls
.TE_RICH2
889 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
890 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
891 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
892 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
893 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
894 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
895 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
896 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
897 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
898 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
899 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
900 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
901 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
902 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
903 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
904 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
905 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
906 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
907 class TextAttr(object):
909 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
910 def __init__(self
, *args
):
912 __init__() -> TextAttr
913 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
914 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
916 newobj
= _controls
.new_TextAttr(*args
)
917 self
.this
= newobj
.this
920 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
923 if self
.thisown
: destroy(self
)
926 def Init(*args
, **kwargs
):
928 return _controls
.TextAttr_Init(*args
, **kwargs
)
930 def SetTextColour(*args
, **kwargs
):
931 """SetTextColour(Colour colText)"""
932 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
934 def SetBackgroundColour(*args
, **kwargs
):
935 """SetBackgroundColour(Colour colBack)"""
936 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
938 def SetFont(*args
, **kwargs
):
939 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
940 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
942 def SetAlignment(*args
, **kwargs
):
943 """SetAlignment(int alignment)"""
944 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
946 def SetTabs(*args
, **kwargs
):
947 """SetTabs(wxArrayInt tabs)"""
948 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
950 def SetLeftIndent(*args
, **kwargs
):
951 """SetLeftIndent(int indent)"""
952 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
954 def SetRightIndent(*args
, **kwargs
):
955 """SetRightIndent(int indent)"""
956 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
958 def SetFlags(*args
, **kwargs
):
959 """SetFlags(long flags)"""
960 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
962 def HasTextColour(*args
, **kwargs
):
963 """HasTextColour() -> bool"""
964 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
966 def HasBackgroundColour(*args
, **kwargs
):
967 """HasBackgroundColour() -> bool"""
968 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
970 def HasFont(*args
, **kwargs
):
971 """HasFont() -> bool"""
972 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
974 def HasAlignment(*args
, **kwargs
):
975 """HasAlignment() -> bool"""
976 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
978 def HasTabs(*args
, **kwargs
):
979 """HasTabs() -> bool"""
980 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
982 def HasLeftIndent(*args
, **kwargs
):
983 """HasLeftIndent() -> bool"""
984 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
986 def HasRightIndent(*args
, **kwargs
):
987 """HasRightIndent() -> bool"""
988 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
990 def HasFlag(*args
, **kwargs
):
991 """HasFlag(long flag) -> bool"""
992 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
994 def GetTextColour(*args
, **kwargs
):
995 """GetTextColour() -> Colour"""
996 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
998 def GetBackgroundColour(*args
, **kwargs
):
999 """GetBackgroundColour() -> Colour"""
1000 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1002 def GetFont(*args
, **kwargs
):
1003 """GetFont() -> Font"""
1004 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1006 def GetAlignment(*args
, **kwargs
):
1007 """GetAlignment() -> int"""
1008 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1010 def GetTabs(*args
, **kwargs
):
1011 """GetTabs() -> wxArrayInt"""
1012 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1014 def GetLeftIndent(*args
, **kwargs
):
1015 """GetLeftIndent() -> long"""
1016 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1018 def GetRightIndent(*args
, **kwargs
):
1019 """GetRightIndent() -> long"""
1020 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1022 def GetFlags(*args
, **kwargs
):
1023 """GetFlags() -> long"""
1024 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1026 def IsDefault(*args
, **kwargs
):
1027 """IsDefault() -> bool"""
1028 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1030 def Combine(*args
, **kwargs
):
1031 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1032 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1034 Combine
= staticmethod(Combine
)
1036 class TextAttrPtr(TextAttr
):
1037 def __init__(self
, this
):
1039 if not hasattr(self
,"thisown"): self
.thisown
= 0
1040 self
.__class
__ = TextAttr
1041 _controls
.TextAttr_swigregister(TextAttrPtr
)
1042 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1044 def TextAttr_Combine(*args
, **kwargs
):
1045 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1046 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1048 class TextCtrl(core
.Control
):
1050 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1051 def __init__(self
, *args
, **kwargs
):
1053 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1054 Size size=DefaultSize,
1055 long style=0, Validator validator=DefaultValidator,
1056 String name=TextCtrlNameStr) -> TextCtrl
1058 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1059 self
.this
= newobj
.this
1062 self
._setOORInfo
(self
)
1064 def Create(*args
, **kwargs
):
1066 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1067 Size size=DefaultSize,
1068 long style=0, Validator validator=DefaultValidator,
1069 String name=TextCtrlNameStr) -> bool
1071 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1073 def GetValue(*args
, **kwargs
):
1074 """GetValue() -> String"""
1075 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1077 def SetValue(*args
, **kwargs
):
1078 """SetValue(String value)"""
1079 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1081 def GetRange(*args
, **kwargs
):
1082 """GetRange(long from, long to) -> String"""
1083 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1085 def GetLineLength(*args
, **kwargs
):
1086 """GetLineLength(long lineNo) -> int"""
1087 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1089 def GetLineText(*args
, **kwargs
):
1090 """GetLineText(long lineNo) -> String"""
1091 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1093 def GetNumberOfLines(*args
, **kwargs
):
1094 """GetNumberOfLines() -> int"""
1095 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1097 def IsModified(*args
, **kwargs
):
1098 """IsModified() -> bool"""
1099 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1101 def IsEditable(*args
, **kwargs
):
1102 """IsEditable() -> bool"""
1103 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1105 def IsSingleLine(*args
, **kwargs
):
1106 """IsSingleLine() -> bool"""
1107 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1109 def IsMultiLine(*args
, **kwargs
):
1110 """IsMultiLine() -> bool"""
1111 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1113 def GetSelection(*args
, **kwargs
):
1115 GetSelection() -> (from, to)
1117 If the return values from and to are the same, there is no selection.
1119 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1121 def GetStringSelection(*args
, **kwargs
):
1122 """GetStringSelection() -> String"""
1123 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1125 def Clear(*args
, **kwargs
):
1127 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1129 def Replace(*args
, **kwargs
):
1130 """Replace(long from, long to, String value)"""
1131 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1133 def Remove(*args
, **kwargs
):
1134 """Remove(long from, long to)"""
1135 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1137 def LoadFile(*args
, **kwargs
):
1138 """LoadFile(String file) -> bool"""
1139 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1141 def SaveFile(*args
, **kwargs
):
1142 """SaveFile(String file=EmptyString) -> bool"""
1143 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1145 def MarkDirty(*args
, **kwargs
):
1147 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1149 def DiscardEdits(*args
, **kwargs
):
1150 """DiscardEdits()"""
1151 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1153 def SetMaxLength(*args
, **kwargs
):
1154 """SetMaxLength(unsigned long len)"""
1155 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1157 def WriteText(*args
, **kwargs
):
1158 """WriteText(String text)"""
1159 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1161 def AppendText(*args
, **kwargs
):
1162 """AppendText(String text)"""
1163 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1165 def EmulateKeyPress(*args
, **kwargs
):
1166 """EmulateKeyPress(KeyEvent event) -> bool"""
1167 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1169 def SetStyle(*args
, **kwargs
):
1170 """SetStyle(long start, long end, TextAttr style) -> bool"""
1171 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1173 def GetStyle(*args
, **kwargs
):
1174 """GetStyle(long position, TextAttr style) -> bool"""
1175 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1177 def SetDefaultStyle(*args
, **kwargs
):
1178 """SetDefaultStyle(TextAttr style) -> bool"""
1179 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1181 def GetDefaultStyle(*args
, **kwargs
):
1182 """GetDefaultStyle() -> TextAttr"""
1183 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1185 def XYToPosition(*args
, **kwargs
):
1186 """XYToPosition(long x, long y) -> long"""
1187 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1189 def PositionToXY(*args
, **kwargs
):
1190 """PositionToXY(long pos) -> (x, y)"""
1191 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1193 def ShowPosition(*args
, **kwargs
):
1194 """ShowPosition(long pos)"""
1195 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1197 def Copy(*args
, **kwargs
):
1199 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1201 def Cut(*args
, **kwargs
):
1203 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1205 def Paste(*args
, **kwargs
):
1207 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1209 def CanCopy(*args
, **kwargs
):
1210 """CanCopy() -> bool"""
1211 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1213 def CanCut(*args
, **kwargs
):
1214 """CanCut() -> bool"""
1215 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1217 def CanPaste(*args
, **kwargs
):
1218 """CanPaste() -> bool"""
1219 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1221 def Undo(*args
, **kwargs
):
1223 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1225 def Redo(*args
, **kwargs
):
1227 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1229 def CanUndo(*args
, **kwargs
):
1230 """CanUndo() -> bool"""
1231 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1233 def CanRedo(*args
, **kwargs
):
1234 """CanRedo() -> bool"""
1235 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1237 def SetInsertionPoint(*args
, **kwargs
):
1238 """SetInsertionPoint(long pos)"""
1239 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1241 def SetInsertionPointEnd(*args
, **kwargs
):
1242 """SetInsertionPointEnd()"""
1243 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1245 def GetInsertionPoint(*args
, **kwargs
):
1246 """GetInsertionPoint() -> long"""
1247 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1249 def GetLastPosition(*args
, **kwargs
):
1250 """GetLastPosition() -> long"""
1251 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1253 def SetSelection(*args
, **kwargs
):
1254 """SetSelection(long from, long to)"""
1255 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1257 def SelectAll(*args
, **kwargs
):
1259 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1261 def SetEditable(*args
, **kwargs
):
1262 """SetEditable(bool editable)"""
1263 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1265 def write(*args
, **kwargs
):
1266 """write(String text)"""
1267 return _controls
.TextCtrl_write(*args
, **kwargs
)
1269 def GetString(*args
, **kwargs
):
1270 """GetString(long from, long to) -> String"""
1271 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1274 class TextCtrlPtr(TextCtrl
):
1275 def __init__(self
, this
):
1277 if not hasattr(self
,"thisown"): self
.thisown
= 0
1278 self
.__class
__ = TextCtrl
1279 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1281 def PreTextCtrl(*args
, **kwargs
):
1282 """PreTextCtrl() -> TextCtrl"""
1283 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1287 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1288 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1289 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1290 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1291 class TextUrlEvent(core
.CommandEvent
):
1293 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1294 def __init__(self
, *args
, **kwargs
):
1295 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1296 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1297 self
.this
= newobj
.this
1300 def GetMouseEvent(*args
, **kwargs
):
1301 """GetMouseEvent() -> MouseEvent"""
1302 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1304 def GetURLStart(*args
, **kwargs
):
1305 """GetURLStart() -> long"""
1306 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1308 def GetURLEnd(*args
, **kwargs
):
1309 """GetURLEnd() -> long"""
1310 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1313 class TextUrlEventPtr(TextUrlEvent
):
1314 def __init__(self
, this
):
1316 if not hasattr(self
,"thisown"): self
.thisown
= 0
1317 self
.__class
__ = TextUrlEvent
1318 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1320 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1321 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1322 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1323 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1325 #---------------------------------------------------------------------------
1327 class ScrollBar(core
.Control
):
1329 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1330 def __init__(self
, *args
, **kwargs
):
1332 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1333 Size size=DefaultSize, long style=SB_HORIZONTAL,
1334 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1336 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1337 self
.this
= newobj
.this
1340 self
._setOORInfo
(self
)
1342 def Create(*args
, **kwargs
):
1344 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1345 Size size=DefaultSize, long style=SB_HORIZONTAL,
1346 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1348 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1350 def GetThumbPosition(*args
, **kwargs
):
1351 """GetThumbPosition() -> int"""
1352 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1354 def GetThumbSize(*args
, **kwargs
):
1355 """GetThumbSize() -> int"""
1356 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1358 GetThumbLength
= GetThumbSize
1359 def GetPageSize(*args
, **kwargs
):
1360 """GetPageSize() -> int"""
1361 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1363 def GetRange(*args
, **kwargs
):
1364 """GetRange() -> int"""
1365 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1367 def IsVertical(*args
, **kwargs
):
1368 """IsVertical() -> bool"""
1369 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1371 def SetThumbPosition(*args
, **kwargs
):
1372 """SetThumbPosition(int viewStart)"""
1373 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1375 def SetScrollbar(*args
, **kwargs
):
1377 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1380 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1383 class ScrollBarPtr(ScrollBar
):
1384 def __init__(self
, this
):
1386 if not hasattr(self
,"thisown"): self
.thisown
= 0
1387 self
.__class
__ = ScrollBar
1388 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1389 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1391 def PreScrollBar(*args
, **kwargs
):
1392 """PreScrollBar() -> ScrollBar"""
1393 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1397 #---------------------------------------------------------------------------
1399 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1400 SP_VERTICAL
= _controls
.SP_VERTICAL
1401 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1402 SP_WRAP
= _controls
.SP_WRAP
1403 class SpinButton(core
.Control
):
1405 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1406 def __init__(self
, *args
, **kwargs
):
1408 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1409 Size size=DefaultSize, long style=SP_HORIZONTAL,
1410 String name=SPIN_BUTTON_NAME) -> SpinButton
1412 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1413 self
.this
= newobj
.this
1416 self
._setOORInfo
(self
)
1418 def Create(*args
, **kwargs
):
1420 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1421 Size size=DefaultSize, long style=SP_HORIZONTAL,
1422 String name=SPIN_BUTTON_NAME) -> bool
1424 return _controls
.SpinButton_Create(*args
, **kwargs
)
1426 def GetValue(*args
, **kwargs
):
1427 """GetValue() -> int"""
1428 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1430 def GetMin(*args
, **kwargs
):
1431 """GetMin() -> int"""
1432 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1434 def GetMax(*args
, **kwargs
):
1435 """GetMax() -> int"""
1436 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1438 def SetValue(*args
, **kwargs
):
1439 """SetValue(int val)"""
1440 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1442 def SetMin(*args
, **kwargs
):
1443 """SetMin(int minVal)"""
1444 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1446 def SetMax(*args
, **kwargs
):
1447 """SetMax(int maxVal)"""
1448 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1450 def SetRange(*args
, **kwargs
):
1451 """SetRange(int minVal, int maxVal)"""
1452 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1454 def IsVertical(*args
, **kwargs
):
1455 """IsVertical() -> bool"""
1456 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1459 class SpinButtonPtr(SpinButton
):
1460 def __init__(self
, this
):
1462 if not hasattr(self
,"thisown"): self
.thisown
= 0
1463 self
.__class
__ = SpinButton
1464 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1465 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1466 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1468 def PreSpinButton(*args
, **kwargs
):
1469 """PreSpinButton() -> SpinButton"""
1470 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1474 class SpinCtrl(core
.Control
):
1476 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1477 def __init__(self
, *args
, **kwargs
):
1479 __init__(Window parent, int id=-1, String value=EmptyString,
1480 Point pos=DefaultPosition, Size size=DefaultSize,
1481 long style=SP_ARROW_KEYS, int min=0, int max=100,
1482 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1484 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1485 self
.this
= newobj
.this
1488 self
._setOORInfo
(self
)
1490 def Create(*args
, **kwargs
):
1492 Create(Window parent, int id=-1, String value=EmptyString,
1493 Point pos=DefaultPosition, Size size=DefaultSize,
1494 long style=SP_ARROW_KEYS, int min=0, int max=100,
1495 int initial=0, String name=SpinCtrlNameStr) -> bool
1497 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1499 def GetValue(*args
, **kwargs
):
1500 """GetValue() -> int"""
1501 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1503 def SetValue(*args
, **kwargs
):
1504 """SetValue(int value)"""
1505 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1507 def SetValueString(*args
, **kwargs
):
1508 """SetValueString(String text)"""
1509 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1511 def SetRange(*args
, **kwargs
):
1512 """SetRange(int minVal, int maxVal)"""
1513 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1515 def GetMin(*args
, **kwargs
):
1516 """GetMin() -> int"""
1517 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1519 def GetMax(*args
, **kwargs
):
1520 """GetMax() -> int"""
1521 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1523 def SetSelection(*args
, **kwargs
):
1524 """SetSelection(long from, long to)"""
1525 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1528 class SpinCtrlPtr(SpinCtrl
):
1529 def __init__(self
, this
):
1531 if not hasattr(self
,"thisown"): self
.thisown
= 0
1532 self
.__class
__ = SpinCtrl
1533 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1535 def PreSpinCtrl(*args
, **kwargs
):
1536 """PreSpinCtrl() -> SpinCtrl"""
1537 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1541 class SpinEvent(core
.NotifyEvent
):
1543 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1544 def __init__(self
, *args
, **kwargs
):
1545 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1546 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1547 self
.this
= newobj
.this
1550 def GetPosition(*args
, **kwargs
):
1551 """GetPosition() -> int"""
1552 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1554 def SetPosition(*args
, **kwargs
):
1555 """SetPosition(int pos)"""
1556 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1559 class SpinEventPtr(SpinEvent
):
1560 def __init__(self
, this
):
1562 if not hasattr(self
,"thisown"): self
.thisown
= 0
1563 self
.__class
__ = SpinEvent
1564 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1566 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1567 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1568 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1569 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1570 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1572 #---------------------------------------------------------------------------
1574 class RadioBox(core
.Control
):
1576 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1577 def __init__(self
, *args
, **kwargs
):
1579 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1580 Size size=DefaultSize, int choices=0,
1581 String choices_array=None, int majorDimension=0,
1582 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1583 String name=RadioBoxNameStr) -> RadioBox
1585 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1586 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1587 self
.this
= newobj
.this
1590 self
._setOORInfo
(self
)
1592 def Create(*args
, **kwargs
):
1594 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1595 Size size=DefaultSize, int choices=0,
1596 String choices_array=None, int majorDimension=0,
1597 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1598 String name=RadioBoxNameStr) -> bool
1600 return _controls
.RadioBox_Create(*args
, **kwargs
)
1602 def SetSelection(*args
, **kwargs
):
1603 """SetSelection(int n)"""
1604 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1606 def GetSelection(*args
, **kwargs
):
1607 """GetSelection() -> int"""
1608 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1610 def GetStringSelection(*args
, **kwargs
):
1611 """GetStringSelection() -> String"""
1612 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1614 def SetStringSelection(*args
, **kwargs
):
1615 """SetStringSelection(String s) -> bool"""
1616 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1618 def GetCount(*args
, **kwargs
):
1619 """GetCount() -> int"""
1620 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1622 def FindString(*args
, **kwargs
):
1623 """FindString(String s) -> int"""
1624 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1626 def GetString(*args
, **kwargs
):
1627 """GetString(int n) -> String"""
1628 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1630 def SetString(*args
, **kwargs
):
1631 """SetString(int n, String label)"""
1632 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1634 GetItemLabel
= GetString
1635 SetItemLabel
= SetString
1636 def EnableItem(*args
, **kwargs
):
1637 """EnableItem(int n, bool enable=True)"""
1638 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1640 def ShowItem(*args
, **kwargs
):
1641 """ShowItem(int n, bool show=True)"""
1642 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1644 def GetColumnCount(*args
, **kwargs
):
1645 """GetColumnCount() -> int"""
1646 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1648 def GetRowCount(*args
, **kwargs
):
1649 """GetRowCount() -> int"""
1650 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1652 def GetNextItem(*args
, **kwargs
):
1653 """GetNextItem(int item, int dir, long style) -> int"""
1654 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1657 class RadioBoxPtr(RadioBox
):
1658 def __init__(self
, this
):
1660 if not hasattr(self
,"thisown"): self
.thisown
= 0
1661 self
.__class
__ = RadioBox
1662 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1663 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1664 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1666 def PreRadioBox(*args
, **kwargs
):
1667 """PreRadioBox() -> RadioBox"""
1668 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1672 #---------------------------------------------------------------------------
1674 class RadioButton(core
.Control
):
1676 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1677 def __init__(self
, *args
, **kwargs
):
1679 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1680 Size size=DefaultSize, long style=0,
1681 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1683 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1684 self
.this
= newobj
.this
1687 self
._setOORInfo
(self
)
1689 def Create(*args
, **kwargs
):
1691 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1692 Size size=DefaultSize, long style=0,
1693 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1695 return _controls
.RadioButton_Create(*args
, **kwargs
)
1697 def GetValue(*args
, **kwargs
):
1698 """GetValue() -> bool"""
1699 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1701 def SetValue(*args
, **kwargs
):
1702 """SetValue(bool value)"""
1703 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1706 class RadioButtonPtr(RadioButton
):
1707 def __init__(self
, this
):
1709 if not hasattr(self
,"thisown"): self
.thisown
= 0
1710 self
.__class
__ = RadioButton
1711 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1713 def PreRadioButton(*args
, **kwargs
):
1714 """PreRadioButton() -> RadioButton"""
1715 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1719 #---------------------------------------------------------------------------
1721 class Slider(core
.Control
):
1723 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1724 def __init__(self
, *args
, **kwargs
):
1726 __init__(Window parent, int id, int value, int minValue, int maxValue,
1727 Point pos=DefaultPosition, Size size=DefaultSize,
1728 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1729 String name=SliderNameStr) -> Slider
1731 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1732 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1733 self
.this
= newobj
.this
1736 self
._setOORInfo
(self
)
1738 def Create(*args
, **kwargs
):
1740 Create(Window parent, int id, int value, int minValue, int maxValue,
1741 Point pos=DefaultPosition, Size size=DefaultSize,
1742 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1743 String name=SliderNameStr) -> bool
1745 return _controls
.Slider_Create(*args
, **kwargs
)
1747 def GetValue(*args
, **kwargs
):
1748 """GetValue() -> int"""
1749 return _controls
.Slider_GetValue(*args
, **kwargs
)
1751 def SetValue(*args
, **kwargs
):
1752 """SetValue(int value)"""
1753 return _controls
.Slider_SetValue(*args
, **kwargs
)
1755 def SetRange(*args
, **kwargs
):
1756 """SetRange(int minValue, int maxValue)"""
1757 return _controls
.Slider_SetRange(*args
, **kwargs
)
1759 def GetMin(*args
, **kwargs
):
1760 """GetMin() -> int"""
1761 return _controls
.Slider_GetMin(*args
, **kwargs
)
1763 def GetMax(*args
, **kwargs
):
1764 """GetMax() -> int"""
1765 return _controls
.Slider_GetMax(*args
, **kwargs
)
1767 def SetMin(*args
, **kwargs
):
1768 """SetMin(int minValue)"""
1769 return _controls
.Slider_SetMin(*args
, **kwargs
)
1771 def SetMax(*args
, **kwargs
):
1772 """SetMax(int maxValue)"""
1773 return _controls
.Slider_SetMax(*args
, **kwargs
)
1775 def SetLineSize(*args
, **kwargs
):
1776 """SetLineSize(int lineSize)"""
1777 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1779 def SetPageSize(*args
, **kwargs
):
1780 """SetPageSize(int pageSize)"""
1781 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1783 def GetLineSize(*args
, **kwargs
):
1784 """GetLineSize() -> int"""
1785 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1787 def GetPageSize(*args
, **kwargs
):
1788 """GetPageSize() -> int"""
1789 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1791 def SetThumbLength(*args
, **kwargs
):
1792 """SetThumbLength(int lenPixels)"""
1793 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1795 def GetThumbLength(*args
, **kwargs
):
1796 """GetThumbLength() -> int"""
1797 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1799 def SetTickFreq(*args
, **kwargs
):
1800 """SetTickFreq(int n, int pos=1)"""
1801 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1803 def GetTickFreq(*args
, **kwargs
):
1804 """GetTickFreq() -> int"""
1805 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1807 def ClearTicks(*args
, **kwargs
):
1809 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1811 def SetTick(*args
, **kwargs
):
1812 """SetTick(int tickPos)"""
1813 return _controls
.Slider_SetTick(*args
, **kwargs
)
1815 def ClearSel(*args
, **kwargs
):
1817 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1819 def GetSelEnd(*args
, **kwargs
):
1820 """GetSelEnd() -> int"""
1821 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1823 def GetSelStart(*args
, **kwargs
):
1824 """GetSelStart() -> int"""
1825 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1827 def SetSelection(*args
, **kwargs
):
1828 """SetSelection(int min, int max)"""
1829 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1832 class SliderPtr(Slider
):
1833 def __init__(self
, this
):
1835 if not hasattr(self
,"thisown"): self
.thisown
= 0
1836 self
.__class
__ = Slider
1837 _controls
.Slider_swigregister(SliderPtr
)
1838 SliderNameStr
= cvar
.SliderNameStr
1840 def PreSlider(*args
, **kwargs
):
1841 """PreSlider() -> Slider"""
1842 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1846 #---------------------------------------------------------------------------
1848 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1849 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1851 class ToggleButton(core
.Control
):
1853 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1854 def __init__(self
, *args
, **kwargs
):
1856 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1857 Size size=DefaultSize, long style=0,
1858 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
1860 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1861 self
.this
= newobj
.this
1864 self
._setOORInfo
(self
)
1867 class ToggleButtonPtr(ToggleButton
):
1868 def __init__(self
, this
):
1870 if not hasattr(self
,"thisown"): self
.thisown
= 0
1871 self
.__class
__ = ToggleButton
1872 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1873 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
1875 def PreToggleButton(*args
, **kwargs
):
1876 """PreToggleButton() -> ToggleButton"""
1877 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1881 #---------------------------------------------------------------------------
1883 class BookCtrl(core
.Control
):
1884 def __init__(self
): raise RuntimeError, "No constructor defined"
1886 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1887 def GetPageCount(*args
, **kwargs
):
1888 """GetPageCount() -> size_t"""
1889 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1891 def GetPage(*args
, **kwargs
):
1892 """GetPage(size_t n) -> Window"""
1893 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1895 def GetSelection(*args
, **kwargs
):
1896 """GetSelection() -> int"""
1897 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1899 def SetPageText(*args
, **kwargs
):
1900 """SetPageText(size_t n, String strText) -> bool"""
1901 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1903 def GetPageText(*args
, **kwargs
):
1904 """GetPageText(size_t n) -> String"""
1905 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1907 def SetImageList(*args
, **kwargs
):
1908 """SetImageList(ImageList imageList)"""
1909 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1911 def AssignImageList(*args
, **kwargs
):
1912 """AssignImageList(ImageList imageList)"""
1913 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1915 def GetImageList(*args
, **kwargs
):
1916 """GetImageList() -> ImageList"""
1917 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1919 def GetPageImage(*args
, **kwargs
):
1920 """GetPageImage(size_t n) -> int"""
1921 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1923 def SetPageImage(*args
, **kwargs
):
1924 """SetPageImage(size_t n, int imageId) -> bool"""
1925 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1927 def SetPageSize(*args
, **kwargs
):
1928 """SetPageSize(Size size)"""
1929 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1931 def CalcSizeFromPage(*args
, **kwargs
):
1932 """CalcSizeFromPage(Size sizePage) -> Size"""
1933 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1935 def DeletePage(*args
, **kwargs
):
1936 """DeletePage(size_t n) -> bool"""
1937 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1939 def RemovePage(*args
, **kwargs
):
1940 """RemovePage(size_t n) -> bool"""
1941 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1943 def DeleteAllPages(*args
, **kwargs
):
1944 """DeleteAllPages() -> bool"""
1945 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1947 def AddPage(*args
, **kwargs
):
1948 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
1949 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1951 def InsertPage(*args
, **kwargs
):
1953 InsertPage(size_t n, Window page, String text, bool select=False,
1954 int imageId=-1) -> bool
1956 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1958 def SetSelection(*args
, **kwargs
):
1959 """SetSelection(size_t n) -> int"""
1960 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1962 def AdvanceSelection(*args
, **kwargs
):
1963 """AdvanceSelection(bool forward=True)"""
1964 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1967 class BookCtrlPtr(BookCtrl
):
1968 def __init__(self
, this
):
1970 if not hasattr(self
,"thisown"): self
.thisown
= 0
1971 self
.__class
__ = BookCtrl
1972 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1973 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
1975 class BookCtrlEvent(core
.NotifyEvent
):
1977 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1978 def __init__(self
, *args
, **kwargs
):
1980 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1981 int nOldSel=-1) -> BookCtrlEvent
1983 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1984 self
.this
= newobj
.this
1987 def GetSelection(*args
, **kwargs
):
1988 """GetSelection() -> int"""
1989 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1991 def SetSelection(*args
, **kwargs
):
1992 """SetSelection(int nSel)"""
1993 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
1995 def GetOldSelection(*args
, **kwargs
):
1996 """GetOldSelection() -> int"""
1997 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
1999 def SetOldSelection(*args
, **kwargs
):
2000 """SetOldSelection(int nOldSel)"""
2001 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2004 class BookCtrlEventPtr(BookCtrlEvent
):
2005 def __init__(self
, this
):
2007 if not hasattr(self
,"thisown"): self
.thisown
= 0
2008 self
.__class
__ = BookCtrlEvent
2009 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2011 #---------------------------------------------------------------------------
2013 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2014 NB_TOP
= _controls
.NB_TOP
2015 NB_LEFT
= _controls
.NB_LEFT
2016 NB_RIGHT
= _controls
.NB_RIGHT
2017 NB_BOTTOM
= _controls
.NB_BOTTOM
2018 NB_MULTILINE
= _controls
.NB_MULTILINE
2019 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2020 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2021 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2022 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2023 class Notebook(BookCtrl
):
2025 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2026 def __init__(self
, *args
, **kwargs
):
2028 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2029 long style=0, String name=NOTEBOOK_NAME) -> Notebook
2031 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2032 self
.this
= newobj
.this
2035 self
._setOORInfo
(self
)
2037 def Create(*args
, **kwargs
):
2039 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2040 long style=0, String name=NOTEBOOK_NAME) -> bool
2042 return _controls
.Notebook_Create(*args
, **kwargs
)
2044 def GetRowCount(*args
, **kwargs
):
2045 """GetRowCount() -> int"""
2046 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2048 def SetPadding(*args
, **kwargs
):
2049 """SetPadding(Size padding)"""
2050 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2052 def SetTabSize(*args
, **kwargs
):
2053 """SetTabSize(Size sz)"""
2054 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2056 def HitTest(*args
, **kwargs
):
2058 HitTest(Point pt) -> (tab, where)
2060 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2062 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2064 def CalcSizeFromPage(*args
, **kwargs
):
2065 """CalcSizeFromPage(Size sizePage) -> Size"""
2066 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2069 class NotebookPtr(Notebook
):
2070 def __init__(self
, this
):
2072 if not hasattr(self
,"thisown"): self
.thisown
= 0
2073 self
.__class
__ = Notebook
2074 _controls
.Notebook_swigregister(NotebookPtr
)
2076 def PreNotebook(*args
, **kwargs
):
2077 """PreNotebook() -> Notebook"""
2078 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2082 class NotebookEvent(BookCtrlEvent
):
2084 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2085 def __init__(self
, *args
, **kwargs
):
2087 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2088 int nOldSel=-1) -> NotebookEvent
2090 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2091 self
.this
= newobj
.this
2095 class NotebookEventPtr(NotebookEvent
):
2096 def __init__(self
, this
):
2098 if not hasattr(self
,"thisown"): self
.thisown
= 0
2099 self
.__class
__ = NotebookEvent
2100 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2102 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2103 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2105 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2106 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2108 #----------------------------------------------------------------------------
2110 class NotebookPage(wx
.Panel
):
2112 There is an old (and apparently unsolvable) bug when placing a
2113 window with a nonstandard background colour in a wxNotebook on
2114 wxGTK, as the notbooks's background colour would always be used
2115 when the window is refreshed. The solution is to place a panel in
2116 the notbook and the coloured window on the panel, sized to cover
2117 the panel. This simple class does that for you, just put an
2118 instance of this in the notebook and make your regular window a
2119 child of this one and it will handle the resize for you.
2121 def __init__(self
, parent
, id=-1,
2122 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2123 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2124 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2126 EVT_SIZE(self
, self
.OnSize
)
2128 def OnSize(self
, evt
):
2129 if self
.child
is None:
2130 children
= self
.GetChildren()
2132 self
.child
= children
[0]
2134 self
.child
.SetPosition((0,0))
2135 self
.child
.SetSize(self
.GetSize())
2138 #---------------------------------------------------------------------------
2140 LB_DEFAULT
= _controls
.LB_DEFAULT
2141 LB_TOP
= _controls
.LB_TOP
2142 LB_BOTTOM
= _controls
.LB_BOTTOM
2143 LB_LEFT
= _controls
.LB_LEFT
2144 LB_RIGHT
= _controls
.LB_RIGHT
2145 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2146 class Listbook(BookCtrl
):
2148 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2149 def __init__(self
, *args
, **kwargs
):
2151 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2152 long style=0, String name=EmptyString) -> Listbook
2154 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2155 self
.this
= newobj
.this
2158 self
._setOORInfo
(self
)
2160 def Create(*args
, **kwargs
):
2162 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2163 long style=0, String name=EmptyString) -> bool
2165 return _controls
.Listbook_Create(*args
, **kwargs
)
2167 def IsVertical(*args
, **kwargs
):
2168 """IsVertical() -> bool"""
2169 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2172 class ListbookPtr(Listbook
):
2173 def __init__(self
, this
):
2175 if not hasattr(self
,"thisown"): self
.thisown
= 0
2176 self
.__class
__ = Listbook
2177 _controls
.Listbook_swigregister(ListbookPtr
)
2179 def PreListbook(*args
, **kwargs
):
2180 """PreListbook() -> Listbook"""
2181 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2185 class ListbookEvent(BookCtrlEvent
):
2187 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2188 def __init__(self
, *args
, **kwargs
):
2190 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2191 int nOldSel=-1) -> ListbookEvent
2193 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2194 self
.this
= newobj
.this
2198 class ListbookEventPtr(ListbookEvent
):
2199 def __init__(self
, this
):
2201 if not hasattr(self
,"thisown"): self
.thisown
= 0
2202 self
.__class
__ = ListbookEvent
2203 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2205 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2206 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2207 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2208 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2210 #---------------------------------------------------------------------------
2212 class BookCtrlSizer(core
.Sizer
):
2214 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2215 def __init__(self
, *args
, **kwargs
):
2216 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2217 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2218 self
.this
= newobj
.this
2221 self
._setOORInfo
(self
)
2223 def RecalcSizes(*args
, **kwargs
):
2225 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2227 def CalcMin(*args
, **kwargs
):
2228 """CalcMin() -> Size"""
2229 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2231 def GetControl(*args
, **kwargs
):
2232 """GetControl() -> BookCtrl"""
2233 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2236 class BookCtrlSizerPtr(BookCtrlSizer
):
2237 def __init__(self
, this
):
2239 if not hasattr(self
,"thisown"): self
.thisown
= 0
2240 self
.__class
__ = BookCtrlSizer
2241 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2243 class NotebookSizer(core
.Sizer
):
2245 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2246 def __init__(self
, *args
, **kwargs
):
2247 """__init__(Notebook nb) -> NotebookSizer"""
2248 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2249 self
.this
= newobj
.this
2252 self
._setOORInfo
(self
)
2254 def RecalcSizes(*args
, **kwargs
):
2256 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2258 def CalcMin(*args
, **kwargs
):
2259 """CalcMin() -> Size"""
2260 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2262 def GetNotebook(*args
, **kwargs
):
2263 """GetNotebook() -> Notebook"""
2264 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2267 class NotebookSizerPtr(NotebookSizer
):
2268 def __init__(self
, this
):
2270 if not hasattr(self
,"thisown"): self
.thisown
= 0
2271 self
.__class
__ = NotebookSizer
2272 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2274 #---------------------------------------------------------------------------
2276 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2277 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2278 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2279 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2280 TB_VERTICAL
= _controls
.TB_VERTICAL
2281 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2282 TB_FLAT
= _controls
.TB_FLAT
2283 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2284 TB_NOICONS
= _controls
.TB_NOICONS
2285 TB_TEXT
= _controls
.TB_TEXT
2286 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2287 TB_NOALIGN
= _controls
.TB_NOALIGN
2288 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2289 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2290 class ToolBarToolBase(core
.Object
):
2291 def __init__(self
): raise RuntimeError, "No constructor defined"
2293 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2294 def GetId(*args
, **kwargs
):
2295 """GetId() -> int"""
2296 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2298 def GetControl(*args
, **kwargs
):
2299 """GetControl() -> Control"""
2300 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2302 def GetToolBar(*args
, **kwargs
):
2303 """GetToolBar() -> ToolBarBase"""
2304 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2306 def IsButton(*args
, **kwargs
):
2307 """IsButton() -> int"""
2308 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2310 def IsControl(*args
, **kwargs
):
2311 """IsControl() -> int"""
2312 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2314 def IsSeparator(*args
, **kwargs
):
2315 """IsSeparator() -> int"""
2316 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2318 def GetStyle(*args
, **kwargs
):
2319 """GetStyle() -> int"""
2320 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2322 def GetKind(*args
, **kwargs
):
2323 """GetKind() -> int"""
2324 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2326 def IsEnabled(*args
, **kwargs
):
2327 """IsEnabled() -> bool"""
2328 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2330 def IsToggled(*args
, **kwargs
):
2331 """IsToggled() -> bool"""
2332 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2334 def CanBeToggled(*args
, **kwargs
):
2335 """CanBeToggled() -> bool"""
2336 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2338 def GetNormalBitmap(*args
, **kwargs
):
2339 """GetNormalBitmap() -> Bitmap"""
2340 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2342 def GetDisabledBitmap(*args
, **kwargs
):
2343 """GetDisabledBitmap() -> Bitmap"""
2344 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2346 def GetBitmap(*args
, **kwargs
):
2347 """GetBitmap() -> Bitmap"""
2348 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2350 def GetLabel(*args
, **kwargs
):
2351 """GetLabel() -> String"""
2352 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2354 def GetShortHelp(*args
, **kwargs
):
2355 """GetShortHelp() -> String"""
2356 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2358 def GetLongHelp(*args
, **kwargs
):
2359 """GetLongHelp() -> String"""
2360 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2362 def Enable(*args
, **kwargs
):
2363 """Enable(bool enable) -> bool"""
2364 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2366 def Toggle(*args
, **kwargs
):
2368 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2370 def SetToggle(*args
, **kwargs
):
2371 """SetToggle(bool toggle) -> bool"""
2372 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2374 def SetShortHelp(*args
, **kwargs
):
2375 """SetShortHelp(String help) -> bool"""
2376 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2378 def SetLongHelp(*args
, **kwargs
):
2379 """SetLongHelp(String help) -> bool"""
2380 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2382 def SetNormalBitmap(*args
, **kwargs
):
2383 """SetNormalBitmap(Bitmap bmp)"""
2384 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2386 def SetDisabledBitmap(*args
, **kwargs
):
2387 """SetDisabledBitmap(Bitmap bmp)"""
2388 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2390 def SetLabel(*args
, **kwargs
):
2391 """SetLabel(String label)"""
2392 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2394 def Detach(*args
, **kwargs
):
2396 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2398 def Attach(*args
, **kwargs
):
2399 """Attach(ToolBarBase tbar)"""
2400 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2402 def GetClientData(*args
, **kwargs
):
2403 """GetClientData() -> PyObject"""
2404 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2406 def SetClientData(*args
, **kwargs
):
2407 """SetClientData(PyObject clientData)"""
2408 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2410 GetBitmap1
= GetNormalBitmap
2411 GetBitmap2
= GetDisabledBitmap
2412 SetBitmap1
= SetNormalBitmap
2413 SetBitmap2
= SetDisabledBitmap
2416 class ToolBarToolBasePtr(ToolBarToolBase
):
2417 def __init__(self
, this
):
2419 if not hasattr(self
,"thisown"): self
.thisown
= 0
2420 self
.__class
__ = ToolBarToolBase
2421 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2423 class ToolBarBase(core
.Control
):
2424 def __init__(self
): raise RuntimeError, "No constructor defined"
2426 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2427 def DoAddTool(*args
, **kwargs
):
2429 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2430 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2431 String longHelp=EmptyString,
2432 PyObject clientData=None) -> ToolBarToolBase
2434 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2436 def DoInsertTool(*args
, **kwargs
):
2438 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2439 int kind=ITEM_NORMAL,
2440 String shortHelp=EmptyString, String longHelp=EmptyString,
2441 PyObject clientData=None) -> ToolBarToolBase
2443 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2445 # These match the original Add methods for this class, kept for
2446 # backwards compatibility with versions < 2.3.3.
2449 def AddTool(self
, id, bitmap
,
2450 pushedBitmap
= wx
.NullBitmap
,
2453 shortHelpString
= '',
2454 longHelpString
= '') :
2455 '''Old style method to add a tool to the toolbar.'''
2456 kind
= wx
.ITEM_NORMAL
2457 if isToggle
: kind
= wx
.ITEM_CHECK
2458 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2459 shortHelpString
, longHelpString
, clientData
)
2461 def AddSimpleTool(self
, id, bitmap
,
2462 shortHelpString
= '',
2463 longHelpString
= '',
2465 '''Old style method to add a tool to the toolbar.'''
2466 kind
= wx
.ITEM_NORMAL
2467 if isToggle
: kind
= wx
.ITEM_CHECK
2468 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2469 shortHelpString
, longHelpString
, None)
2471 def InsertTool(self
, pos
, id, bitmap
,
2472 pushedBitmap
= wx
.NullBitmap
,
2475 shortHelpString
= '',
2476 longHelpString
= ''):
2477 '''Old style method to insert a tool in the toolbar.'''
2478 kind
= wx
.ITEM_NORMAL
2479 if isToggle
: kind
= wx
.ITEM_CHECK
2480 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2481 shortHelpString
, longHelpString
, clientData
)
2483 def InsertSimpleTool(self
, pos
, id, bitmap
,
2484 shortHelpString
= '',
2485 longHelpString
= '',
2487 '''Old style method to insert a tool in the toolbar.'''
2488 kind
= wx
.ITEM_NORMAL
2489 if isToggle
: kind
= wx
.ITEM_CHECK
2490 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2491 shortHelpString
, longHelpString
, None)
2494 # The following are the new toolbar Add methods starting with
2495 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2496 # able to keep backwards compatibility with using the above
2497 # methods. Eventually these should migrate to be the methods used
2498 # primarily and lose the 'Label' in the name...
2500 def AddLabelTool(self
, id, label
, bitmap
,
2501 bmpDisabled
= wx
.NullBitmap
,
2502 kind
= wx
.ITEM_NORMAL
,
2503 shortHelp
= '', longHelp
= '',
2506 The full AddTool() function.
2508 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2509 is created and used as the disabled image.
2511 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2512 shortHelp
, longHelp
, clientData
)
2515 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2516 bmpDisabled
= wx
.NullBitmap
,
2517 kind
= wx
.ITEM_NORMAL
,
2518 shortHelp
= '', longHelp
= '',
2521 Insert the new tool at the given position, if pos == GetToolsCount(), it
2522 is equivalent to AddTool()
2524 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2525 shortHelp
, longHelp
, clientData
)
2527 def AddCheckLabelTool(self
, id, label
, bitmap
,
2528 bmpDisabled
= wx
.NullBitmap
,
2529 shortHelp
= '', longHelp
= '',
2531 '''Add a check tool, i.e. a tool which can be toggled'''
2532 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2533 shortHelp
, longHelp
, clientData
)
2535 def AddRadioLabelTool(self
, id, label
, bitmap
,
2536 bmpDisabled
= wx
.NullBitmap
,
2537 shortHelp
= '', longHelp
= '',
2540 Add a radio tool, i.e. a tool which can be toggled and releases any
2541 other toggled radio tools in the same group when it happens
2543 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2544 shortHelp
, longHelp
, clientData
)
2547 # For consistency with the backwards compatible methods above, here are
2548 # some non-'Label' versions of the Check and Radio methods
2549 def AddCheckTool(self
, id, bitmap
,
2550 bmpDisabled
= wx
.NullBitmap
,
2551 shortHelp
= '', longHelp
= '',
2553 '''Add a check tool, i.e. a tool which can be toggled'''
2554 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2555 shortHelp
, longHelp
, clientData
)
2557 def AddRadioTool(self
, id, bitmap
,
2558 bmpDisabled
= wx
.NullBitmap
,
2559 shortHelp
= '', longHelp
= '',
2562 Add a radio tool, i.e. a tool which can be toggled and releases any
2563 other toggled radio tools in the same group when it happens
2565 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2566 shortHelp
, longHelp
, clientData
)
2568 def AddToolItem(*args
, **kwargs
):
2569 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2570 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2572 def InsertToolItem(*args
, **kwargs
):
2573 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2574 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2576 def AddControl(*args
, **kwargs
):
2577 """AddControl(Control control) -> ToolBarToolBase"""
2578 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2580 def InsertControl(*args
, **kwargs
):
2581 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2582 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2584 def FindControl(*args
, **kwargs
):
2585 """FindControl(int id) -> Control"""
2586 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2588 def AddSeparator(*args
, **kwargs
):
2589 """AddSeparator() -> ToolBarToolBase"""
2590 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2592 def InsertSeparator(*args
, **kwargs
):
2593 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2594 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2596 def RemoveTool(*args
, **kwargs
):
2597 """RemoveTool(int id) -> ToolBarToolBase"""
2598 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2600 def DeleteToolByPos(*args
, **kwargs
):
2601 """DeleteToolByPos(size_t pos) -> bool"""
2602 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2604 def DeleteTool(*args
, **kwargs
):
2605 """DeleteTool(int id) -> bool"""
2606 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2608 def ClearTools(*args
, **kwargs
):
2610 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2612 def Realize(*args
, **kwargs
):
2613 """Realize() -> bool"""
2614 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2616 def EnableTool(*args
, **kwargs
):
2617 """EnableTool(int id, bool enable)"""
2618 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2620 def ToggleTool(*args
, **kwargs
):
2621 """ToggleTool(int id, bool toggle)"""
2622 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2624 def SetToggle(*args
, **kwargs
):
2625 """SetToggle(int id, bool toggle)"""
2626 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2628 def GetToolClientData(*args
, **kwargs
):
2629 """GetToolClientData(int id) -> PyObject"""
2630 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2632 def SetToolClientData(*args
, **kwargs
):
2633 """SetToolClientData(int id, PyObject clientData)"""
2634 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2636 def GetToolPos(*args
, **kwargs
):
2637 """GetToolPos(int id) -> int"""
2638 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2640 def GetToolState(*args
, **kwargs
):
2641 """GetToolState(int id) -> bool"""
2642 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2644 def GetToolEnabled(*args
, **kwargs
):
2645 """GetToolEnabled(int id) -> bool"""
2646 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2648 def SetToolShortHelp(*args
, **kwargs
):
2649 """SetToolShortHelp(int id, String helpString)"""
2650 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2652 def GetToolShortHelp(*args
, **kwargs
):
2653 """GetToolShortHelp(int id) -> String"""
2654 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2656 def SetToolLongHelp(*args
, **kwargs
):
2657 """SetToolLongHelp(int id, String helpString)"""
2658 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2660 def GetToolLongHelp(*args
, **kwargs
):
2661 """GetToolLongHelp(int id) -> String"""
2662 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2664 def SetMarginsXY(*args
, **kwargs
):
2665 """SetMarginsXY(int x, int y)"""
2666 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2668 def SetMargins(*args
, **kwargs
):
2669 """SetMargins(Size size)"""
2670 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2672 def SetToolPacking(*args
, **kwargs
):
2673 """SetToolPacking(int packing)"""
2674 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2676 def SetToolSeparation(*args
, **kwargs
):
2677 """SetToolSeparation(int separation)"""
2678 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2680 def GetToolMargins(*args
, **kwargs
):
2681 """GetToolMargins() -> Size"""
2682 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2684 def GetMargins(*args
, **kwargs
):
2685 """GetMargins() -> Size"""
2686 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2688 def GetToolPacking(*args
, **kwargs
):
2689 """GetToolPacking() -> int"""
2690 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2692 def GetToolSeparation(*args
, **kwargs
):
2693 """GetToolSeparation() -> int"""
2694 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2696 def SetRows(*args
, **kwargs
):
2697 """SetRows(int nRows)"""
2698 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2700 def SetMaxRowsCols(*args
, **kwargs
):
2701 """SetMaxRowsCols(int rows, int cols)"""
2702 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2704 def GetMaxRows(*args
, **kwargs
):
2705 """GetMaxRows() -> int"""
2706 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2708 def GetMaxCols(*args
, **kwargs
):
2709 """GetMaxCols() -> int"""
2710 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2712 def SetToolBitmapSize(*args
, **kwargs
):
2713 """SetToolBitmapSize(Size size)"""
2714 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2716 def GetToolBitmapSize(*args
, **kwargs
):
2717 """GetToolBitmapSize() -> Size"""
2718 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2720 def GetToolSize(*args
, **kwargs
):
2721 """GetToolSize() -> Size"""
2722 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2724 def FindToolForPosition(*args
, **kwargs
):
2725 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2726 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2728 def FindById(*args
, **kwargs
):
2729 """FindById(int toolid) -> ToolBarToolBase"""
2730 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2732 def IsVertical(*args
, **kwargs
):
2733 """IsVertical() -> bool"""
2734 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2737 class ToolBarBasePtr(ToolBarBase
):
2738 def __init__(self
, this
):
2740 if not hasattr(self
,"thisown"): self
.thisown
= 0
2741 self
.__class
__ = ToolBarBase
2742 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2744 class ToolBar(ToolBarBase
):
2746 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2747 def __init__(self
, *args
, **kwargs
):
2749 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2750 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2751 String name=wxPyToolBarNameStr) -> ToolBar
2753 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2754 self
.this
= newobj
.this
2757 self
._setOORInfo
(self
)
2759 def Create(*args
, **kwargs
):
2761 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2762 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2763 String name=wxPyToolBarNameStr) -> bool
2765 return _controls
.ToolBar_Create(*args
, **kwargs
)
2767 def FindToolForPosition(*args
, **kwargs
):
2768 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2769 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2772 class ToolBarPtr(ToolBar
):
2773 def __init__(self
, this
):
2775 if not hasattr(self
,"thisown"): self
.thisown
= 0
2776 self
.__class
__ = ToolBar
2777 _controls
.ToolBar_swigregister(ToolBarPtr
)
2779 def PreToolBar(*args
, **kwargs
):
2780 """PreToolBar() -> ToolBar"""
2781 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2785 #---------------------------------------------------------------------------
2787 LC_VRULES
= _controls
.LC_VRULES
2788 LC_HRULES
= _controls
.LC_HRULES
2789 LC_ICON
= _controls
.LC_ICON
2790 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2791 LC_LIST
= _controls
.LC_LIST
2792 LC_REPORT
= _controls
.LC_REPORT
2793 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2794 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2795 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2796 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2797 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2798 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2799 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2800 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2801 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2802 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2803 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2804 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2805 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2806 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2807 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2808 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2809 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2810 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2811 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2812 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2813 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2814 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2815 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2816 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2817 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2818 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2819 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2820 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2821 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2822 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2823 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2824 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2825 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2826 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2827 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2828 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2829 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2830 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2831 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2832 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2833 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2834 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2835 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2836 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2837 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2838 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2839 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2840 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2841 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2842 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2843 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2844 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2845 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2846 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2847 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2848 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2849 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2850 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2851 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2852 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2853 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2854 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2855 #---------------------------------------------------------------------------
2857 class ListItemAttr(object):
2859 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2860 def __init__(self
, *args
, **kwargs
):
2862 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
2863 Font font=wxNullFont) -> ListItemAttr
2865 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2866 self
.this
= newobj
.this
2869 def SetTextColour(*args
, **kwargs
):
2870 """SetTextColour(Colour colText)"""
2871 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2873 def SetBackgroundColour(*args
, **kwargs
):
2874 """SetBackgroundColour(Colour colBack)"""
2875 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2877 def SetFont(*args
, **kwargs
):
2878 """SetFont(Font font)"""
2879 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2881 def HasTextColour(*args
, **kwargs
):
2882 """HasTextColour() -> bool"""
2883 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2885 def HasBackgroundColour(*args
, **kwargs
):
2886 """HasBackgroundColour() -> bool"""
2887 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2889 def HasFont(*args
, **kwargs
):
2890 """HasFont() -> bool"""
2891 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2893 def GetTextColour(*args
, **kwargs
):
2894 """GetTextColour() -> Colour"""
2895 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2897 def GetBackgroundColour(*args
, **kwargs
):
2898 """GetBackgroundColour() -> Colour"""
2899 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2901 def GetFont(*args
, **kwargs
):
2902 """GetFont() -> Font"""
2903 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2905 def Destroy(*args
, **kwargs
):
2907 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2910 class ListItemAttrPtr(ListItemAttr
):
2911 def __init__(self
, this
):
2913 if not hasattr(self
,"thisown"): self
.thisown
= 0
2914 self
.__class
__ = ListItemAttr
2915 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2916 ListCtrlNameStr
= cvar
.ListCtrlNameStr
2918 #---------------------------------------------------------------------------
2920 class ListItem(core
.Object
):
2922 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2923 def __init__(self
, *args
, **kwargs
):
2924 """__init__() -> ListItem"""
2925 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2926 self
.this
= newobj
.this
2929 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2932 if self
.thisown
: destroy(self
)
2935 def Clear(*args
, **kwargs
):
2937 return _controls
.ListItem_Clear(*args
, **kwargs
)
2939 def ClearAttributes(*args
, **kwargs
):
2940 """ClearAttributes()"""
2941 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2943 def SetMask(*args
, **kwargs
):
2944 """SetMask(long mask)"""
2945 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2947 def SetId(*args
, **kwargs
):
2948 """SetId(long id)"""
2949 return _controls
.ListItem_SetId(*args
, **kwargs
)
2951 def SetColumn(*args
, **kwargs
):
2952 """SetColumn(int col)"""
2953 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2955 def SetState(*args
, **kwargs
):
2956 """SetState(long state)"""
2957 return _controls
.ListItem_SetState(*args
, **kwargs
)
2959 def SetStateMask(*args
, **kwargs
):
2960 """SetStateMask(long stateMask)"""
2961 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2963 def SetText(*args
, **kwargs
):
2964 """SetText(String text)"""
2965 return _controls
.ListItem_SetText(*args
, **kwargs
)
2967 def SetImage(*args
, **kwargs
):
2968 """SetImage(int image)"""
2969 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2971 def SetData(*args
, **kwargs
):
2972 """SetData(long data)"""
2973 return _controls
.ListItem_SetData(*args
, **kwargs
)
2975 def SetWidth(*args
, **kwargs
):
2976 """SetWidth(int width)"""
2977 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2979 def SetAlign(*args
, **kwargs
):
2980 """SetAlign(int align)"""
2981 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2983 def SetTextColour(*args
, **kwargs
):
2984 """SetTextColour(Colour colText)"""
2985 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2987 def SetBackgroundColour(*args
, **kwargs
):
2988 """SetBackgroundColour(Colour colBack)"""
2989 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
2991 def SetFont(*args
, **kwargs
):
2992 """SetFont(Font font)"""
2993 return _controls
.ListItem_SetFont(*args
, **kwargs
)
2995 def GetMask(*args
, **kwargs
):
2996 """GetMask() -> long"""
2997 return _controls
.ListItem_GetMask(*args
, **kwargs
)
2999 def GetId(*args
, **kwargs
):
3000 """GetId() -> long"""
3001 return _controls
.ListItem_GetId(*args
, **kwargs
)
3003 def GetColumn(*args
, **kwargs
):
3004 """GetColumn() -> int"""
3005 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3007 def GetState(*args
, **kwargs
):
3008 """GetState() -> long"""
3009 return _controls
.ListItem_GetState(*args
, **kwargs
)
3011 def GetText(*args
, **kwargs
):
3012 """GetText() -> String"""
3013 return _controls
.ListItem_GetText(*args
, **kwargs
)
3015 def GetImage(*args
, **kwargs
):
3016 """GetImage() -> int"""
3017 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3019 def GetData(*args
, **kwargs
):
3020 """GetData() -> long"""
3021 return _controls
.ListItem_GetData(*args
, **kwargs
)
3023 def GetWidth(*args
, **kwargs
):
3024 """GetWidth() -> int"""
3025 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3027 def GetAlign(*args
, **kwargs
):
3028 """GetAlign() -> int"""
3029 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3031 def GetAttributes(*args
, **kwargs
):
3032 """GetAttributes() -> ListItemAttr"""
3033 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3035 def HasAttributes(*args
, **kwargs
):
3036 """HasAttributes() -> bool"""
3037 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3039 def GetTextColour(*args
, **kwargs
):
3040 """GetTextColour() -> Colour"""
3041 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3043 def GetBackgroundColour(*args
, **kwargs
):
3044 """GetBackgroundColour() -> Colour"""
3045 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3047 def GetFont(*args
, **kwargs
):
3048 """GetFont() -> Font"""
3049 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3051 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3052 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3053 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3054 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3055 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3056 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3057 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3058 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3059 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3060 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3062 class ListItemPtr(ListItem
):
3063 def __init__(self
, this
):
3065 if not hasattr(self
,"thisown"): self
.thisown
= 0
3066 self
.__class
__ = ListItem
3067 _controls
.ListItem_swigregister(ListItemPtr
)
3069 #---------------------------------------------------------------------------
3071 class ListEvent(core
.NotifyEvent
):
3073 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3074 def __init__(self
, *args
, **kwargs
):
3075 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3076 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3077 self
.this
= newobj
.this
3080 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3081 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3082 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3083 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3084 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3085 m_item
= property(_controls
.ListEvent_m_item_get
)
3086 def GetKeyCode(*args
, **kwargs
):
3087 """GetKeyCode() -> int"""
3088 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3090 GetCode
= GetKeyCode
3091 def GetIndex(*args
, **kwargs
):
3092 """GetIndex() -> long"""
3093 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3095 def GetColumn(*args
, **kwargs
):
3096 """GetColumn() -> int"""
3097 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3099 def GetPoint(*args
, **kwargs
):
3100 """GetPoint() -> Point"""
3101 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3103 GetPosition
= GetPoint
3104 def GetLabel(*args
, **kwargs
):
3105 """GetLabel() -> String"""
3106 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3108 def GetText(*args
, **kwargs
):
3109 """GetText() -> String"""
3110 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3112 def GetImage(*args
, **kwargs
):
3113 """GetImage() -> int"""
3114 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3116 def GetData(*args
, **kwargs
):
3117 """GetData() -> long"""
3118 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3120 def GetMask(*args
, **kwargs
):
3121 """GetMask() -> long"""
3122 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3124 def GetItem(*args
, **kwargs
):
3125 """GetItem() -> ListItem"""
3126 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3128 def GetCacheFrom(*args
, **kwargs
):
3129 """GetCacheFrom() -> long"""
3130 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3132 def GetCacheTo(*args
, **kwargs
):
3133 """GetCacheTo() -> long"""
3134 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3136 def IsEditCancelled(*args
, **kwargs
):
3137 """IsEditCancelled() -> bool"""
3138 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3140 def SetEditCanceled(*args
, **kwargs
):
3141 """SetEditCanceled(bool editCancelled)"""
3142 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3145 class ListEventPtr(ListEvent
):
3146 def __init__(self
, this
):
3148 if not hasattr(self
,"thisown"): self
.thisown
= 0
3149 self
.__class
__ = ListEvent
3150 _controls
.ListEvent_swigregister(ListEventPtr
)
3152 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3153 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3154 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3155 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3156 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3157 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3158 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3159 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3160 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3161 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3162 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3163 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3164 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3165 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3166 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3167 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3168 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3169 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3170 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3171 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3172 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3173 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3174 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3175 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3176 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3177 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3178 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3179 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3180 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3181 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3182 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3183 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3184 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3185 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3186 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3187 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3188 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3189 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3190 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3191 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3192 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3193 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3194 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3195 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3197 #---------------------------------------------------------------------------
3199 class ListCtrl(core
.Control
):
3201 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3202 def __init__(self
, *args
, **kwargs
):
3204 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3205 Size size=DefaultSize, long style=LC_ICON,
3206 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3208 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3209 self
.this
= newobj
.this
3212 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3214 def Create(*args
, **kwargs
):
3216 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3217 Size size=DefaultSize, long style=LC_ICON,
3218 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3220 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3222 def _setCallbackInfo(*args
, **kwargs
):
3223 """_setCallbackInfo(PyObject self, PyObject _class)"""
3224 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3226 def SetForegroundColour(*args
, **kwargs
):
3227 """SetForegroundColour(Colour col) -> bool"""
3228 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3230 def SetBackgroundColour(*args
, **kwargs
):
3231 """SetBackgroundColour(Colour col) -> bool"""
3232 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3234 def GetColumn(*args
, **kwargs
):
3235 """GetColumn(int col) -> ListItem"""
3236 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3237 if val
is not None: val
.thisown
= 1
3240 def SetColumn(*args
, **kwargs
):
3241 """SetColumn(int col, ListItem item) -> bool"""
3242 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3244 def GetColumnWidth(*args
, **kwargs
):
3245 """GetColumnWidth(int col) -> int"""
3246 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3248 def SetColumnWidth(*args
, **kwargs
):
3249 """SetColumnWidth(int col, int width) -> bool"""
3250 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3252 def GetCountPerPage(*args
, **kwargs
):
3253 """GetCountPerPage() -> int"""
3254 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3256 def GetViewRect(*args
, **kwargs
):
3257 """GetViewRect() -> Rect"""
3258 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3260 def GetItem(*args
, **kwargs
):
3261 """GetItem(long itemId, int col=0) -> ListItem"""
3262 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3263 if val
is not None: val
.thisown
= 1
3266 def SetItem(*args
, **kwargs
):
3267 """SetItem(ListItem info) -> bool"""
3268 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3270 def SetStringItem(*args
, **kwargs
):
3271 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3272 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3274 def GetItemState(*args
, **kwargs
):
3275 """GetItemState(long item, long stateMask) -> int"""
3276 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3278 def SetItemState(*args
, **kwargs
):
3279 """SetItemState(long item, long state, long stateMask) -> bool"""
3280 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3282 def SetItemImage(*args
, **kwargs
):
3283 """SetItemImage(long item, int image, int selImage) -> bool"""
3284 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3286 def GetItemText(*args
, **kwargs
):
3287 """GetItemText(long item) -> String"""
3288 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3290 def SetItemText(*args
, **kwargs
):
3291 """SetItemText(long item, String str)"""
3292 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3294 def GetItemData(*args
, **kwargs
):
3295 """GetItemData(long item) -> long"""
3296 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3298 def SetItemData(*args
, **kwargs
):
3299 """SetItemData(long item, long data) -> bool"""
3300 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3302 def GetItemPosition(*args
, **kwargs
):
3303 """GetItemPosition(long item) -> Point"""
3304 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3306 def GetItemRect(*args
, **kwargs
):
3307 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3308 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3310 def SetItemPosition(*args
, **kwargs
):
3311 """SetItemPosition(long item, Point pos) -> bool"""
3312 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3314 def GetItemCount(*args
, **kwargs
):
3315 """GetItemCount() -> int"""
3316 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3318 def GetColumnCount(*args
, **kwargs
):
3319 """GetColumnCount() -> int"""
3320 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3322 def GetItemSpacing(*args
, **kwargs
):
3323 """GetItemSpacing() -> Size"""
3324 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3326 def SetItemSpacing(*args
, **kwargs
):
3327 """SetItemSpacing(int spacing, bool isSmall=False)"""
3328 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3330 def GetSelectedItemCount(*args
, **kwargs
):
3331 """GetSelectedItemCount() -> int"""
3332 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3334 def GetTextColour(*args
, **kwargs
):
3335 """GetTextColour() -> Colour"""
3336 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3338 def SetTextColour(*args
, **kwargs
):
3339 """SetTextColour(Colour col)"""
3340 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3342 def GetTopItem(*args
, **kwargs
):
3343 """GetTopItem() -> long"""
3344 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3346 def SetSingleStyle(*args
, **kwargs
):
3347 """SetSingleStyle(long style, bool add=True)"""
3348 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3350 def SetWindowStyleFlag(*args
, **kwargs
):
3351 """SetWindowStyleFlag(long style)"""
3352 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3354 def GetNextItem(*args
, **kwargs
):
3355 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3356 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3358 def GetImageList(*args
, **kwargs
):
3359 """GetImageList(int which) -> ImageList"""
3360 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3362 def SetImageList(*args
, **kwargs
):
3363 """SetImageList(ImageList imageList, int which)"""
3364 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3366 def AssignImageList(*args
, **kwargs
):
3367 """AssignImageList(ImageList imageList, int which)"""
3368 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3370 def IsVirtual(*args
, **kwargs
):
3371 """IsVirtual() -> bool"""
3372 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3374 def RefreshItem(*args
, **kwargs
):
3375 """RefreshItem(long item)"""
3376 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3378 def RefreshItems(*args
, **kwargs
):
3379 """RefreshItems(long itemFrom, long itemTo)"""
3380 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3382 def Arrange(*args
, **kwargs
):
3383 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3384 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3386 def DeleteItem(*args
, **kwargs
):
3387 """DeleteItem(long item) -> bool"""
3388 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3390 def DeleteAllItems(*args
, **kwargs
):
3391 """DeleteAllItems() -> bool"""
3392 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3394 def DeleteColumn(*args
, **kwargs
):
3395 """DeleteColumn(int col) -> bool"""
3396 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3398 def DeleteAllColumns(*args
, **kwargs
):
3399 """DeleteAllColumns() -> bool"""
3400 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3402 def ClearAll(*args
, **kwargs
):
3404 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3406 def EditLabel(*args
, **kwargs
):
3407 """EditLabel(long item)"""
3408 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3410 def EnsureVisible(*args
, **kwargs
):
3411 """EnsureVisible(long item) -> bool"""
3412 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3414 def FindItem(*args
, **kwargs
):
3415 """FindItem(long start, String str, bool partial=False) -> long"""
3416 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3418 def FindItemData(*args
, **kwargs
):
3419 """FindItemData(long start, long data) -> long"""
3420 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3422 def FindItemAtPos(*args
, **kwargs
):
3423 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3424 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3426 def HitTest(*args
, **kwargs
):
3428 HitTest(Point point) -> (item, where)
3430 Determines which item (if any) is at the specified point,
3431 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3433 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3435 def InsertItem(*args
, **kwargs
):
3436 """InsertItem(ListItem info) -> long"""
3437 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3439 def InsertStringItem(*args
, **kwargs
):
3440 """InsertStringItem(long index, String label) -> long"""
3441 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3443 def InsertImageItem(*args
, **kwargs
):
3444 """InsertImageItem(long index, int imageIndex) -> long"""
3445 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3447 def InsertImageStringItem(*args
, **kwargs
):
3448 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3449 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3451 def InsertColumnInfo(*args
, **kwargs
):
3452 """InsertColumnInfo(long col, ListItem info) -> long"""
3453 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3455 def InsertColumn(*args
, **kwargs
):
3457 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3458 int width=-1) -> long
3460 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3462 def SetItemCount(*args
, **kwargs
):
3463 """SetItemCount(long count)"""
3464 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3466 def ScrollList(*args
, **kwargs
):
3467 """ScrollList(int dx, int dy) -> bool"""
3468 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3470 def SetItemTextColour(*args
, **kwargs
):
3471 """SetItemTextColour(long item, Colour col)"""
3472 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3474 def GetItemTextColour(*args
, **kwargs
):
3475 """GetItemTextColour(long item) -> Colour"""
3476 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3478 def SetItemBackgroundColour(*args
, **kwargs
):
3479 """SetItemBackgroundColour(long item, Colour col)"""
3480 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3482 def GetItemBackgroundColour(*args
, **kwargs
):
3483 """GetItemBackgroundColour(long item) -> Colour"""
3484 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3488 def Select(self
, idx
, on
=1):
3489 '''[de]select an item'''
3490 if on
: state
= wx
.LIST_STATE_SELECTED
3492 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3494 def Focus(self
, idx
):
3495 '''Focus and show the given item'''
3496 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3497 self
.EnsureVisible(idx
)
3499 def GetFocusedItem(self
):
3500 '''get the currently focused item or -1 if none'''
3501 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3503 def GetFirstSelected(self
, *args
):
3504 '''return first selected item, or -1 when none'''
3505 return self
.GetNextSelected(-1)
3507 def GetNextSelected(self
, item
):
3508 '''return subsequent selected items, or -1 when no more'''
3509 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3511 def IsSelected(self
, idx
):
3512 '''return True if the item is selected'''
3513 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3515 def SetColumnImage(self
, col
, image
):
3516 item
= self
.GetColumn(col
)
3517 # preserve all other attributes too
3518 item
.SetMask( wx
.LIST_MASK_STATE |
3520 wx
.LIST_MASK_IMAGE |
3523 wx
.LIST_MASK_WIDTH |
3524 wx
.LIST_MASK_FORMAT
)
3525 item
.SetImage(image
)
3526 self
.SetColumn(col
, item
)
3528 def ClearColumnImage(self
, col
):
3529 self
.SetColumnImage(col
, -1)
3531 def Append(self
, entry
):
3532 '''Append an item to the list control. The entry parameter should be a
3533 sequence with an item for each column'''
3539 pos
= self
.GetItemCount()
3540 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3541 for i
in range(1, len(entry
)):
3542 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3545 def SortItems(*args
, **kwargs
):
3546 """SortItems(PyObject func) -> bool"""
3547 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3549 def GetMainWindow(*args
, **kwargs
):
3550 """GetMainWindow() -> Window"""
3551 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3554 class ListCtrlPtr(ListCtrl
):
3555 def __init__(self
, this
):
3557 if not hasattr(self
,"thisown"): self
.thisown
= 0
3558 self
.__class
__ = ListCtrl
3559 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3561 def PreListCtrl(*args
, **kwargs
):
3562 """PreListCtrl() -> ListCtrl"""
3563 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3567 #---------------------------------------------------------------------------
3569 class ListView(ListCtrl
):
3571 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3572 def __init__(self
, *args
, **kwargs
):
3574 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3575 Size size=DefaultSize, long style=LC_REPORT,
3576 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3578 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3579 self
.this
= newobj
.this
3582 self
._setOORInfo
(self
)
3584 def Create(*args
, **kwargs
):
3586 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3587 Size size=DefaultSize, long style=LC_REPORT,
3588 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3590 return _controls
.ListView_Create(*args
, **kwargs
)
3592 def Select(*args
, **kwargs
):
3593 """Select(long n, bool on=True)"""
3594 return _controls
.ListView_Select(*args
, **kwargs
)
3596 def Focus(*args
, **kwargs
):
3597 """Focus(long index)"""
3598 return _controls
.ListView_Focus(*args
, **kwargs
)
3600 def GetFocusedItem(*args
, **kwargs
):
3601 """GetFocusedItem() -> long"""
3602 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3604 def GetNextSelected(*args
, **kwargs
):
3605 """GetNextSelected(long item) -> long"""
3606 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3608 def GetFirstSelected(*args
, **kwargs
):
3609 """GetFirstSelected() -> long"""
3610 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3612 def IsSelected(*args
, **kwargs
):
3613 """IsSelected(long index) -> bool"""
3614 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3616 def SetColumnImage(*args
, **kwargs
):
3617 """SetColumnImage(int col, int image)"""
3618 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3620 def ClearColumnImage(*args
, **kwargs
):
3621 """ClearColumnImage(int col)"""
3622 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3625 class ListViewPtr(ListView
):
3626 def __init__(self
, this
):
3628 if not hasattr(self
,"thisown"): self
.thisown
= 0
3629 self
.__class
__ = ListView
3630 _controls
.ListView_swigregister(ListViewPtr
)
3632 def PreListView(*args
, **kwargs
):
3633 """PreListView() -> ListView"""
3634 val
= _controls
.new_PreListView(*args
, **kwargs
)
3638 #---------------------------------------------------------------------------
3640 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3641 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3642 TR_NO_LINES
= _controls
.TR_NO_LINES
3643 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3644 TR_SINGLE
= _controls
.TR_SINGLE
3645 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3646 TR_EXTENDED
= _controls
.TR_EXTENDED
3647 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3648 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3649 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3650 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3651 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3652 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3653 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3654 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3655 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3656 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3657 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3658 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3659 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3660 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3661 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3662 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3663 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3664 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3665 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3666 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3667 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3668 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3669 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3670 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3671 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3672 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3673 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3674 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3675 #---------------------------------------------------------------------------
3677 class TreeItemId(object):
3679 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3680 def __init__(self
, *args
, **kwargs
):
3681 """__init__() -> TreeItemId"""
3682 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3683 self
.this
= newobj
.this
3686 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3689 if self
.thisown
: destroy(self
)
3692 def IsOk(*args
, **kwargs
):
3693 """IsOk() -> bool"""
3694 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3696 def __eq__(*args
, **kwargs
):
3697 """__eq__(TreeItemId other) -> bool"""
3698 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3700 def __ne__(*args
, **kwargs
):
3701 """__ne__(TreeItemId other) -> bool"""
3702 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3704 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3706 def __nonzero__(self
): return self
.IsOk()
3708 class TreeItemIdPtr(TreeItemId
):
3709 def __init__(self
, this
):
3711 if not hasattr(self
,"thisown"): self
.thisown
= 0
3712 self
.__class
__ = TreeItemId
3713 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3714 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3716 class TreeItemData(object):
3718 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3719 def __init__(self
, *args
, **kwargs
):
3720 """__init__(PyObject obj=None) -> TreeItemData"""
3721 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3722 self
.this
= newobj
.this
3725 def GetData(*args
, **kwargs
):
3726 """GetData() -> PyObject"""
3727 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3729 def SetData(*args
, **kwargs
):
3730 """SetData(PyObject obj)"""
3731 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3733 def GetId(*args
, **kwargs
):
3734 """GetId() -> TreeItemId"""
3735 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3737 def SetId(*args
, **kwargs
):
3738 """SetId(TreeItemId id)"""
3739 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3741 def Destroy(*args
, **kwargs
):
3743 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3746 class TreeItemDataPtr(TreeItemData
):
3747 def __init__(self
, this
):
3749 if not hasattr(self
,"thisown"): self
.thisown
= 0
3750 self
.__class
__ = TreeItemData
3751 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3753 #---------------------------------------------------------------------------
3755 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3756 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3757 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3758 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3759 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3760 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3761 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3762 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3763 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3764 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3765 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3766 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3767 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3768 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3769 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3770 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3771 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3772 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3773 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3774 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3775 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3776 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3777 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3778 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3779 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3780 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3781 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3782 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3783 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3784 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3785 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3786 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3787 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3788 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3789 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3790 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3791 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3792 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3793 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3794 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3796 class TreeEvent(core
.NotifyEvent
):
3798 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3799 def __init__(self
, *args
, **kwargs
):
3800 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3801 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3802 self
.this
= newobj
.this
3805 def GetItem(*args
, **kwargs
):
3806 """GetItem() -> TreeItemId"""
3807 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3809 def SetItem(*args
, **kwargs
):
3810 """SetItem(TreeItemId item)"""
3811 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3813 def GetOldItem(*args
, **kwargs
):
3814 """GetOldItem() -> TreeItemId"""
3815 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3817 def SetOldItem(*args
, **kwargs
):
3818 """SetOldItem(TreeItemId item)"""
3819 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3821 def GetPoint(*args
, **kwargs
):
3822 """GetPoint() -> Point"""
3823 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3825 def SetPoint(*args
, **kwargs
):
3826 """SetPoint(Point pt)"""
3827 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3829 def GetKeyEvent(*args
, **kwargs
):
3830 """GetKeyEvent() -> KeyEvent"""
3831 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3833 def GetKeyCode(*args
, **kwargs
):
3834 """GetKeyCode() -> int"""
3835 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3837 def SetKeyEvent(*args
, **kwargs
):
3838 """SetKeyEvent(KeyEvent evt)"""
3839 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3841 def GetLabel(*args
, **kwargs
):
3842 """GetLabel() -> String"""
3843 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3845 def SetLabel(*args
, **kwargs
):
3846 """SetLabel(String label)"""
3847 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3849 def IsEditCancelled(*args
, **kwargs
):
3850 """IsEditCancelled() -> bool"""
3851 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3853 def SetEditCanceled(*args
, **kwargs
):
3854 """SetEditCanceled(bool editCancelled)"""
3855 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3857 def SetToolTip(*args
, **kwargs
):
3858 """SetToolTip(String toolTip)"""
3859 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
3862 class TreeEventPtr(TreeEvent
):
3863 def __init__(self
, this
):
3865 if not hasattr(self
,"thisown"): self
.thisown
= 0
3866 self
.__class
__ = TreeEvent
3867 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3869 #---------------------------------------------------------------------------
3871 class TreeCtrl(core
.Control
):
3873 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3874 def __init__(self
, *args
, **kwargs
):
3876 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3877 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3878 Validator validator=DefaultValidator,
3879 String name=TreeCtrlNameStr) -> TreeCtrl
3881 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3882 self
.this
= newobj
.this
3885 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3887 def Create(*args
, **kwargs
):
3889 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3890 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3891 Validator validator=DefaultValidator,
3892 String name=TreeCtrlNameStr) -> bool
3894 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3896 def _setCallbackInfo(*args
, **kwargs
):
3897 """_setCallbackInfo(PyObject self, PyObject _class)"""
3898 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3900 def GetCount(*args
, **kwargs
):
3901 """GetCount() -> size_t"""
3902 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3904 def GetIndent(*args
, **kwargs
):
3905 """GetIndent() -> unsigned int"""
3906 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3908 def SetIndent(*args
, **kwargs
):
3909 """SetIndent(unsigned int indent)"""
3910 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3912 def GetSpacing(*args
, **kwargs
):
3913 """GetSpacing() -> unsigned int"""
3914 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3916 def SetSpacing(*args
, **kwargs
):
3917 """SetSpacing(unsigned int spacing)"""
3918 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3920 def GetImageList(*args
, **kwargs
):
3921 """GetImageList() -> ImageList"""
3922 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3924 def GetStateImageList(*args
, **kwargs
):
3925 """GetStateImageList() -> ImageList"""
3926 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3928 def SetImageList(*args
, **kwargs
):
3929 """SetImageList(ImageList imageList)"""
3930 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3932 def SetStateImageList(*args
, **kwargs
):
3933 """SetStateImageList(ImageList imageList)"""
3934 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3936 def AssignImageList(*args
, **kwargs
):
3937 """AssignImageList(ImageList imageList)"""
3938 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3940 def AssignStateImageList(*args
, **kwargs
):
3941 """AssignStateImageList(ImageList imageList)"""
3942 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3944 def GetItemText(*args
, **kwargs
):
3945 """GetItemText(TreeItemId item) -> String"""
3946 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3948 def GetItemImage(*args
, **kwargs
):
3949 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
3950 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3952 def GetItemData(*args
, **kwargs
):
3953 """GetItemData(TreeItemId item) -> TreeItemData"""
3954 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3956 def GetItemPyData(*args
, **kwargs
):
3957 """GetItemPyData(TreeItemId item) -> PyObject"""
3958 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3960 GetPyData
= GetItemPyData
3961 def GetItemTextColour(*args
, **kwargs
):
3962 """GetItemTextColour(TreeItemId item) -> Colour"""
3963 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3965 def GetItemBackgroundColour(*args
, **kwargs
):
3966 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
3967 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3969 def GetItemFont(*args
, **kwargs
):
3970 """GetItemFont(TreeItemId item) -> Font"""
3971 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3973 def SetItemText(*args
, **kwargs
):
3974 """SetItemText(TreeItemId item, String text)"""
3975 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3977 def SetItemImage(*args
, **kwargs
):
3978 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
3979 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
3981 def SetItemData(*args
, **kwargs
):
3982 """SetItemData(TreeItemId item, TreeItemData data)"""
3983 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
3985 def SetItemPyData(*args
, **kwargs
):
3986 """SetItemPyData(TreeItemId item, PyObject obj)"""
3987 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
3989 SetPyData
= SetItemPyData
3990 def SetItemHasChildren(*args
, **kwargs
):
3991 """SetItemHasChildren(TreeItemId item, bool has=True)"""
3992 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
3994 def SetItemBold(*args
, **kwargs
):
3995 """SetItemBold(TreeItemId item, bool bold=True)"""
3996 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
3998 def SetItemTextColour(*args
, **kwargs
):
3999 """SetItemTextColour(TreeItemId item, Colour col)"""
4000 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4002 def SetItemBackgroundColour(*args
, **kwargs
):
4003 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4004 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4006 def SetItemFont(*args
, **kwargs
):
4007 """SetItemFont(TreeItemId item, Font font)"""
4008 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4010 def IsVisible(*args
, **kwargs
):
4011 """IsVisible(TreeItemId item) -> bool"""
4012 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4014 def ItemHasChildren(*args
, **kwargs
):
4015 """ItemHasChildren(TreeItemId item) -> bool"""
4016 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4018 def IsExpanded(*args
, **kwargs
):
4019 """IsExpanded(TreeItemId item) -> bool"""
4020 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4022 def IsSelected(*args
, **kwargs
):
4023 """IsSelected(TreeItemId item) -> bool"""
4024 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4026 def IsBold(*args
, **kwargs
):
4027 """IsBold(TreeItemId item) -> bool"""
4028 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4030 def GetChildrenCount(*args
, **kwargs
):
4031 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4032 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4034 def GetRootItem(*args
, **kwargs
):
4035 """GetRootItem() -> TreeItemId"""
4036 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4038 def GetSelection(*args
, **kwargs
):
4039 """GetSelection() -> TreeItemId"""
4040 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4042 def GetSelections(*args
, **kwargs
):
4043 """GetSelections() -> PyObject"""
4044 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4046 def GetItemParent(*args
, **kwargs
):
4047 """GetItemParent(TreeItemId item) -> TreeItemId"""
4048 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4050 def GetFirstChild(*args
, **kwargs
):
4051 """GetFirstChild(TreeItemId item) -> PyObject"""
4052 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4054 def GetNextChild(*args
, **kwargs
):
4055 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4056 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4058 def GetLastChild(*args
, **kwargs
):
4059 """GetLastChild(TreeItemId item) -> TreeItemId"""
4060 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4062 def GetNextSibling(*args
, **kwargs
):
4063 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4064 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4066 def GetPrevSibling(*args
, **kwargs
):
4067 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4068 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4070 def GetFirstVisibleItem(*args
, **kwargs
):
4071 """GetFirstVisibleItem() -> TreeItemId"""
4072 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4074 def GetNextVisible(*args
, **kwargs
):
4075 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4076 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4078 def GetPrevVisible(*args
, **kwargs
):
4079 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4080 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4082 def AddRoot(*args
, **kwargs
):
4083 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4084 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4086 def PrependItem(*args
, **kwargs
):
4088 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4089 TreeItemData data=None) -> TreeItemId
4091 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4093 def InsertItem(*args
, **kwargs
):
4095 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4096 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4098 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4100 def InsertItemBefore(*args
, **kwargs
):
4102 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4103 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4105 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4107 def AppendItem(*args
, **kwargs
):
4109 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4110 TreeItemData data=None) -> TreeItemId
4112 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4114 def Delete(*args
, **kwargs
):
4115 """Delete(TreeItemId item)"""
4116 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4118 def DeleteChildren(*args
, **kwargs
):
4119 """DeleteChildren(TreeItemId item)"""
4120 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4122 def DeleteAllItems(*args
, **kwargs
):
4123 """DeleteAllItems()"""
4124 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4126 def Expand(*args
, **kwargs
):
4127 """Expand(TreeItemId item)"""
4128 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4130 def Collapse(*args
, **kwargs
):
4131 """Collapse(TreeItemId item)"""
4132 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4134 def CollapseAndReset(*args
, **kwargs
):
4135 """CollapseAndReset(TreeItemId item)"""
4136 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4138 def Toggle(*args
, **kwargs
):
4139 """Toggle(TreeItemId item)"""
4140 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4142 def Unselect(*args
, **kwargs
):
4144 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4146 def UnselectAll(*args
, **kwargs
):
4148 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4150 def SelectItem(*args
, **kwargs
):
4151 """SelectItem(TreeItemId item)"""
4152 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4154 def EnsureVisible(*args
, **kwargs
):
4155 """EnsureVisible(TreeItemId item)"""
4156 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4158 def ScrollTo(*args
, **kwargs
):
4159 """ScrollTo(TreeItemId item)"""
4160 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4162 def EditLabel(*args
, **kwargs
):
4163 """EditLabel(TreeItemId item)"""
4164 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4166 def GetEditControl(*args
, **kwargs
):
4167 """GetEditControl() -> TextCtrl"""
4168 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4170 def SortChildren(*args
, **kwargs
):
4171 """SortChildren(TreeItemId item)"""
4172 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4174 def HitTest(*args
, **kwargs
):
4176 HitTest(Point point) -> (item, where)
4178 Determine which item (if any) belongs the given point. The
4179 coordinates specified are relative to the client area of tree ctrl
4180 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4184 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4186 def GetBoundingRect(*args
, **kwargs
):
4187 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4188 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4191 class TreeCtrlPtr(TreeCtrl
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = TreeCtrl
4196 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4198 def PreTreeCtrl(*args
, **kwargs
):
4199 """PreTreeCtrl() -> TreeCtrl"""
4200 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4204 #---------------------------------------------------------------------------
4206 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4207 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4208 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4209 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4210 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4211 class GenericDirCtrl(core
.Control
):
4213 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4214 def __init__(self
, *args
, **kwargs
):
4216 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4217 Point pos=DefaultPosition, Size size=DefaultSize,
4218 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4219 String filter=EmptyString,
4220 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4222 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4223 self
.this
= newobj
.this
4226 self
._setOORInfo
(self
)
4228 def Create(*args
, **kwargs
):
4230 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4231 Point pos=DefaultPosition, Size size=DefaultSize,
4232 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4233 String filter=EmptyString,
4234 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4236 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4238 def ExpandPath(*args
, **kwargs
):
4239 """ExpandPath(String path) -> bool"""
4240 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4242 def GetDefaultPath(*args
, **kwargs
):
4243 """GetDefaultPath() -> String"""
4244 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4246 def SetDefaultPath(*args
, **kwargs
):
4247 """SetDefaultPath(String path)"""
4248 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4250 def GetPath(*args
, **kwargs
):
4251 """GetPath() -> String"""
4252 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4254 def GetFilePath(*args
, **kwargs
):
4255 """GetFilePath() -> String"""
4256 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4258 def SetPath(*args
, **kwargs
):
4259 """SetPath(String path)"""
4260 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4262 def ShowHidden(*args
, **kwargs
):
4263 """ShowHidden(bool show)"""
4264 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4266 def GetShowHidden(*args
, **kwargs
):
4267 """GetShowHidden() -> bool"""
4268 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4270 def GetFilter(*args
, **kwargs
):
4271 """GetFilter() -> String"""
4272 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4274 def SetFilter(*args
, **kwargs
):
4275 """SetFilter(String filter)"""
4276 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4278 def GetFilterIndex(*args
, **kwargs
):
4279 """GetFilterIndex() -> int"""
4280 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4282 def SetFilterIndex(*args
, **kwargs
):
4283 """SetFilterIndex(int n)"""
4284 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4286 def GetRootId(*args
, **kwargs
):
4287 """GetRootId() -> TreeItemId"""
4288 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4290 def GetTreeCtrl(*args
, **kwargs
):
4291 """GetTreeCtrl() -> TreeCtrl"""
4292 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4294 def GetFilterListCtrl(*args
, **kwargs
):
4295 """GetFilterListCtrl() -> DirFilterListCtrl"""
4296 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4298 def FindChild(*args
, **kwargs
):
4300 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4302 Find the child that matches the first part of 'path'. E.g. if a child path is
4303 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4304 If the path string has been used (we're at the leaf), done is set to True
4307 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4309 def DoResize(*args
, **kwargs
):
4311 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4313 def ReCreateTree(*args
, **kwargs
):
4314 """ReCreateTree()"""
4315 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4318 class GenericDirCtrlPtr(GenericDirCtrl
):
4319 def __init__(self
, this
):
4321 if not hasattr(self
,"thisown"): self
.thisown
= 0
4322 self
.__class
__ = GenericDirCtrl
4323 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4324 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4326 def PreGenericDirCtrl(*args
, **kwargs
):
4327 """PreGenericDirCtrl() -> GenericDirCtrl"""
4328 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4332 class DirFilterListCtrl(Choice
):
4334 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4335 def __init__(self
, *args
, **kwargs
):
4337 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4338 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4340 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4341 self
.this
= newobj
.this
4344 self
._setOORInfo
(self
)
4346 def Create(*args
, **kwargs
):
4348 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4349 Size size=DefaultSize, long style=0) -> bool
4351 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4353 def FillFilterList(*args
, **kwargs
):
4354 """FillFilterList(String filter, int defaultFilter)"""
4355 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4358 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4359 def __init__(self
, this
):
4361 if not hasattr(self
,"thisown"): self
.thisown
= 0
4362 self
.__class
__ = DirFilterListCtrl
4363 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4365 def PreDirFilterListCtrl(*args
, **kwargs
):
4366 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4367 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4371 #---------------------------------------------------------------------------
4373 class PyControl(core
.Control
):
4375 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4376 def __init__(self
, *args
, **kwargs
):
4378 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4379 long style=0, Validator validator=DefaultValidator,
4380 String name=ControlNameStr) -> PyControl
4382 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4383 self
.this
= newobj
.this
4386 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4388 def _setCallbackInfo(*args
, **kwargs
):
4389 """_setCallbackInfo(PyObject self, PyObject _class)"""
4390 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4392 def base_DoMoveWindow(*args
, **kwargs
):
4393 """base_DoMoveWindow(int x, int y, int width, int height)"""
4394 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4396 def base_DoSetSize(*args
, **kwargs
):
4397 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4398 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4400 def base_DoSetClientSize(*args
, **kwargs
):
4401 """base_DoSetClientSize(int width, int height)"""
4402 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4404 def base_DoSetVirtualSize(*args
, **kwargs
):
4405 """base_DoSetVirtualSize(int x, int y)"""
4406 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4408 def base_DoGetSize(*args
, **kwargs
):
4409 """base_DoGetSize() -> (width, height)"""
4410 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4412 def base_DoGetClientSize(*args
, **kwargs
):
4413 """base_DoGetClientSize() -> (width, height)"""
4414 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4416 def base_DoGetPosition(*args
, **kwargs
):
4417 """base_DoGetPosition() -> (x,y)"""
4418 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4420 def base_DoGetVirtualSize(*args
, **kwargs
):
4421 """base_DoGetVirtualSize() -> Size"""
4422 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4424 def base_DoGetBestSize(*args
, **kwargs
):
4425 """base_DoGetBestSize() -> Size"""
4426 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4428 def base_InitDialog(*args
, **kwargs
):
4429 """base_InitDialog()"""
4430 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4432 def base_TransferDataToWindow(*args
, **kwargs
):
4433 """base_TransferDataToWindow() -> bool"""
4434 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4436 def base_TransferDataFromWindow(*args
, **kwargs
):
4437 """base_TransferDataFromWindow() -> bool"""
4438 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4440 def base_Validate(*args
, **kwargs
):
4441 """base_Validate() -> bool"""
4442 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4444 def base_AcceptsFocus(*args
, **kwargs
):
4445 """base_AcceptsFocus() -> bool"""
4446 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4448 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4449 """base_AcceptsFocusFromKeyboard() -> bool"""
4450 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4452 def base_GetMaxSize(*args
, **kwargs
):
4453 """base_GetMaxSize() -> Size"""
4454 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4456 def base_AddChild(*args
, **kwargs
):
4457 """base_AddChild(Window child)"""
4458 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4460 def base_RemoveChild(*args
, **kwargs
):
4461 """base_RemoveChild(Window child)"""
4462 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4465 class PyControlPtr(PyControl
):
4466 def __init__(self
, this
):
4468 if not hasattr(self
,"thisown"): self
.thisown
= 0
4469 self
.__class
__ = PyControl
4470 _controls
.PyControl_swigregister(PyControlPtr
)
4472 #---------------------------------------------------------------------------
4474 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4475 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4476 wxEVT_HELP
= _controls
.wxEVT_HELP
4477 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4478 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4479 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4480 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4481 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4483 class HelpEvent(core
.CommandEvent
):
4485 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4486 def __init__(self
, *args
, **kwargs
):
4487 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4488 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4489 self
.this
= newobj
.this
4492 def GetPosition(*args
, **kwargs
):
4493 """GetPosition() -> Point"""
4494 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4496 def SetPosition(*args
, **kwargs
):
4497 """SetPosition(Point pos)"""
4498 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4500 def GetLink(*args
, **kwargs
):
4501 """GetLink() -> String"""
4502 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4504 def SetLink(*args
, **kwargs
):
4505 """SetLink(String link)"""
4506 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4508 def GetTarget(*args
, **kwargs
):
4509 """GetTarget() -> String"""
4510 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4512 def SetTarget(*args
, **kwargs
):
4513 """SetTarget(String target)"""
4514 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4517 class HelpEventPtr(HelpEvent
):
4518 def __init__(self
, this
):
4520 if not hasattr(self
,"thisown"): self
.thisown
= 0
4521 self
.__class
__ = HelpEvent
4522 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4524 class ContextHelp(core
.Object
):
4526 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4527 def __init__(self
, *args
, **kwargs
):
4528 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4529 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4530 self
.this
= newobj
.this
4533 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4536 if self
.thisown
: destroy(self
)
4539 def BeginContextHelp(*args
, **kwargs
):
4540 """BeginContextHelp(Window window=None) -> bool"""
4541 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4543 def EndContextHelp(*args
, **kwargs
):
4544 """EndContextHelp() -> bool"""
4545 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4548 class ContextHelpPtr(ContextHelp
):
4549 def __init__(self
, this
):
4551 if not hasattr(self
,"thisown"): self
.thisown
= 0
4552 self
.__class
__ = ContextHelp
4553 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4555 class ContextHelpButton(BitmapButton
):
4557 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4558 def __init__(self
, *args
, **kwargs
):
4560 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4561 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4563 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4564 self
.this
= newobj
.this
4567 self
._setOORInfo
(self
)
4570 class ContextHelpButtonPtr(ContextHelpButton
):
4571 def __init__(self
, this
):
4573 if not hasattr(self
,"thisown"): self
.thisown
= 0
4574 self
.__class
__ = ContextHelpButton
4575 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4577 class HelpProvider(object):
4578 def __init__(self
): raise RuntimeError, "No constructor defined"
4580 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4581 def Set(*args
, **kwargs
):
4582 """Set(HelpProvider helpProvider) -> HelpProvider"""
4583 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4585 Set
= staticmethod(Set
)
4586 def Get(*args
, **kwargs
):
4587 """Get() -> HelpProvider"""
4588 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4590 Get
= staticmethod(Get
)
4591 def GetHelp(*args
, **kwargs
):
4592 """GetHelp(Window window) -> String"""
4593 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4595 def ShowHelp(*args
, **kwargs
):
4596 """ShowHelp(Window window) -> bool"""
4597 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4599 def AddHelp(*args
, **kwargs
):
4600 """AddHelp(Window window, String text)"""
4601 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4603 def AddHelpById(*args
, **kwargs
):
4604 """AddHelpById(int id, String text)"""
4605 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4607 def Destroy(*args
, **kwargs
):
4609 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4612 class HelpProviderPtr(HelpProvider
):
4613 def __init__(self
, this
):
4615 if not hasattr(self
,"thisown"): self
.thisown
= 0
4616 self
.__class
__ = HelpProvider
4617 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4619 def HelpProvider_Set(*args
, **kwargs
):
4620 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4621 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4623 def HelpProvider_Get(*args
, **kwargs
):
4624 """HelpProvider_Get() -> HelpProvider"""
4625 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4627 class SimpleHelpProvider(HelpProvider
):
4629 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4630 def __init__(self
, *args
, **kwargs
):
4631 """__init__() -> SimpleHelpProvider"""
4632 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4633 self
.this
= newobj
.this
4637 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4638 def __init__(self
, this
):
4640 if not hasattr(self
,"thisown"): self
.thisown
= 0
4641 self
.__class
__ = SimpleHelpProvider
4642 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4644 #---------------------------------------------------------------------------
4646 class DragImage(core
.Object
):
4648 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4649 def __init__(self
, *args
, **kwargs
):
4650 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4651 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4652 self
.this
= newobj
.this
4655 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4658 if self
.thisown
: destroy(self
)
4661 def SetBackingBitmap(*args
, **kwargs
):
4662 """SetBackingBitmap(Bitmap bitmap)"""
4663 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4665 def BeginDrag(*args
, **kwargs
):
4667 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4668 Rect rect=None) -> bool
4670 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4672 def BeginDragBounded(*args
, **kwargs
):
4673 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4674 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4676 def EndDrag(*args
, **kwargs
):
4677 """EndDrag() -> bool"""
4678 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4680 def Move(*args
, **kwargs
):
4681 """Move(Point pt) -> bool"""
4682 return _controls
.DragImage_Move(*args
, **kwargs
)
4684 def Show(*args
, **kwargs
):
4685 """Show() -> bool"""
4686 return _controls
.DragImage_Show(*args
, **kwargs
)
4688 def Hide(*args
, **kwargs
):
4689 """Hide() -> bool"""
4690 return _controls
.DragImage_Hide(*args
, **kwargs
)
4692 def GetImageRect(*args
, **kwargs
):
4693 """GetImageRect(Point pos) -> Rect"""
4694 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4696 def DoDrawImage(*args
, **kwargs
):
4697 """DoDrawImage(DC dc, Point pos) -> bool"""
4698 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4700 def UpdateBackingFromWindow(*args
, **kwargs
):
4701 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4702 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4704 def RedrawImage(*args
, **kwargs
):
4705 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4706 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4709 class DragImagePtr(DragImage
):
4710 def __init__(self
, this
):
4712 if not hasattr(self
,"thisown"): self
.thisown
= 0
4713 self
.__class
__ = DragImage
4714 _controls
.DragImage_swigregister(DragImagePtr
)
4716 def DragIcon(*args
, **kwargs
):
4717 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
4718 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4722 def DragString(*args
, **kwargs
):
4723 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4724 val
= _controls
.new_DragString(*args
, **kwargs
)
4728 def DragTreeItem(*args
, **kwargs
):
4729 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4730 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4734 def DragListItem(*args
, **kwargs
):
4735 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4736 val
= _controls
.new_DragListItem(*args
, **kwargs
)