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 GetItemHeight(*args
, **kwargs
):
848 """GetItemHeight() -> int"""
849 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
851 def HitTest(*args
, **kwargs
):
852 """HitTest(Point pt) -> int"""
853 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
855 def HitTestXY(*args
, **kwargs
):
856 """HitTestXY(int x, int y) -> int"""
857 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
860 class CheckListBoxPtr(CheckListBox
):
861 def __init__(self
, this
):
863 if not hasattr(self
,"thisown"): self
.thisown
= 0
864 self
.__class
__ = CheckListBox
865 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
867 def PreCheckListBox(*args
, **kwargs
):
868 """PreCheckListBox() -> CheckListBox"""
869 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
873 #---------------------------------------------------------------------------
875 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
876 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
877 TE_READONLY
= _controls
.TE_READONLY
878 TE_MULTILINE
= _controls
.TE_MULTILINE
879 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
880 TE_LEFT
= _controls
.TE_LEFT
881 TE_CENTER
= _controls
.TE_CENTER
882 TE_RIGHT
= _controls
.TE_RIGHT
883 TE_CENTRE
= _controls
.TE_CENTRE
884 TE_RICH
= _controls
.TE_RICH
885 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
886 TE_PASSWORD
= _controls
.TE_PASSWORD
887 TE_AUTO_URL
= _controls
.TE_AUTO_URL
888 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
889 TE_DONTWRAP
= _controls
.TE_DONTWRAP
890 TE_LINEWRAP
= _controls
.TE_LINEWRAP
891 TE_WORDWRAP
= _controls
.TE_WORDWRAP
892 TE_RICH2
= _controls
.TE_RICH2
893 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
894 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
895 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
896 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
897 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
898 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
899 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
900 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
901 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
902 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
903 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
904 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
905 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
906 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
907 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
908 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
909 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
910 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
911 class TextAttr(object):
913 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
914 def __init__(self
, *args
):
916 __init__() -> TextAttr
917 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
918 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
920 newobj
= _controls
.new_TextAttr(*args
)
921 self
.this
= newobj
.this
924 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
927 if self
.thisown
: destroy(self
)
930 def Init(*args
, **kwargs
):
932 return _controls
.TextAttr_Init(*args
, **kwargs
)
934 def SetTextColour(*args
, **kwargs
):
935 """SetTextColour(Colour colText)"""
936 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
938 def SetBackgroundColour(*args
, **kwargs
):
939 """SetBackgroundColour(Colour colBack)"""
940 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
942 def SetFont(*args
, **kwargs
):
943 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
944 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
946 def SetAlignment(*args
, **kwargs
):
947 """SetAlignment(int alignment)"""
948 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
950 def SetTabs(*args
, **kwargs
):
951 """SetTabs(wxArrayInt tabs)"""
952 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
954 def SetLeftIndent(*args
, **kwargs
):
955 """SetLeftIndent(int indent)"""
956 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
958 def SetRightIndent(*args
, **kwargs
):
959 """SetRightIndent(int indent)"""
960 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
962 def SetFlags(*args
, **kwargs
):
963 """SetFlags(long flags)"""
964 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
966 def HasTextColour(*args
, **kwargs
):
967 """HasTextColour() -> bool"""
968 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
970 def HasBackgroundColour(*args
, **kwargs
):
971 """HasBackgroundColour() -> bool"""
972 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
974 def HasFont(*args
, **kwargs
):
975 """HasFont() -> bool"""
976 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
978 def HasAlignment(*args
, **kwargs
):
979 """HasAlignment() -> bool"""
980 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
982 def HasTabs(*args
, **kwargs
):
983 """HasTabs() -> bool"""
984 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
986 def HasLeftIndent(*args
, **kwargs
):
987 """HasLeftIndent() -> bool"""
988 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
990 def HasRightIndent(*args
, **kwargs
):
991 """HasRightIndent() -> bool"""
992 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
994 def HasFlag(*args
, **kwargs
):
995 """HasFlag(long flag) -> bool"""
996 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
998 def GetTextColour(*args
, **kwargs
):
999 """GetTextColour() -> Colour"""
1000 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1002 def GetBackgroundColour(*args
, **kwargs
):
1003 """GetBackgroundColour() -> Colour"""
1004 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1006 def GetFont(*args
, **kwargs
):
1007 """GetFont() -> Font"""
1008 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1010 def GetAlignment(*args
, **kwargs
):
1011 """GetAlignment() -> int"""
1012 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1014 def GetTabs(*args
, **kwargs
):
1015 """GetTabs() -> wxArrayInt"""
1016 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1018 def GetLeftIndent(*args
, **kwargs
):
1019 """GetLeftIndent() -> long"""
1020 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1022 def GetRightIndent(*args
, **kwargs
):
1023 """GetRightIndent() -> long"""
1024 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1026 def GetFlags(*args
, **kwargs
):
1027 """GetFlags() -> long"""
1028 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1030 def IsDefault(*args
, **kwargs
):
1031 """IsDefault() -> bool"""
1032 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1034 def Combine(*args
, **kwargs
):
1035 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1036 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1038 Combine
= staticmethod(Combine
)
1040 class TextAttrPtr(TextAttr
):
1041 def __init__(self
, this
):
1043 if not hasattr(self
,"thisown"): self
.thisown
= 0
1044 self
.__class
__ = TextAttr
1045 _controls
.TextAttr_swigregister(TextAttrPtr
)
1046 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1048 def TextAttr_Combine(*args
, **kwargs
):
1049 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1050 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1052 class TextCtrl(core
.Control
):
1054 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1055 def __init__(self
, *args
, **kwargs
):
1057 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1058 Size size=DefaultSize,
1059 long style=0, Validator validator=DefaultValidator,
1060 String name=TextCtrlNameStr) -> TextCtrl
1062 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1063 self
.this
= newobj
.this
1066 self
._setOORInfo
(self
)
1068 def Create(*args
, **kwargs
):
1070 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1071 Size size=DefaultSize,
1072 long style=0, Validator validator=DefaultValidator,
1073 String name=TextCtrlNameStr) -> bool
1075 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1077 def GetValue(*args
, **kwargs
):
1078 """GetValue() -> String"""
1079 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1081 def SetValue(*args
, **kwargs
):
1082 """SetValue(String value)"""
1083 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1085 def GetRange(*args
, **kwargs
):
1086 """GetRange(long from, long to) -> String"""
1087 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1089 def GetLineLength(*args
, **kwargs
):
1090 """GetLineLength(long lineNo) -> int"""
1091 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1093 def GetLineText(*args
, **kwargs
):
1094 """GetLineText(long lineNo) -> String"""
1095 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1097 def GetNumberOfLines(*args
, **kwargs
):
1098 """GetNumberOfLines() -> int"""
1099 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1101 def IsModified(*args
, **kwargs
):
1102 """IsModified() -> bool"""
1103 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1105 def IsEditable(*args
, **kwargs
):
1106 """IsEditable() -> bool"""
1107 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1109 def IsSingleLine(*args
, **kwargs
):
1110 """IsSingleLine() -> bool"""
1111 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1113 def IsMultiLine(*args
, **kwargs
):
1114 """IsMultiLine() -> bool"""
1115 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1117 def GetSelection(*args
, **kwargs
):
1119 GetSelection() -> (from, to)
1121 If the return values from and to are the same, there is no selection.
1123 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1125 def GetStringSelection(*args
, **kwargs
):
1126 """GetStringSelection() -> String"""
1127 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1129 def Clear(*args
, **kwargs
):
1131 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1133 def Replace(*args
, **kwargs
):
1134 """Replace(long from, long to, String value)"""
1135 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1137 def Remove(*args
, **kwargs
):
1138 """Remove(long from, long to)"""
1139 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1141 def LoadFile(*args
, **kwargs
):
1142 """LoadFile(String file) -> bool"""
1143 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1145 def SaveFile(*args
, **kwargs
):
1146 """SaveFile(String file=EmptyString) -> bool"""
1147 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1149 def MarkDirty(*args
, **kwargs
):
1151 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1153 def DiscardEdits(*args
, **kwargs
):
1154 """DiscardEdits()"""
1155 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1157 def SetMaxLength(*args
, **kwargs
):
1158 """SetMaxLength(unsigned long len)"""
1159 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1161 def WriteText(*args
, **kwargs
):
1162 """WriteText(String text)"""
1163 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1165 def AppendText(*args
, **kwargs
):
1166 """AppendText(String text)"""
1167 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1169 def EmulateKeyPress(*args
, **kwargs
):
1170 """EmulateKeyPress(KeyEvent event) -> bool"""
1171 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1173 def SetStyle(*args
, **kwargs
):
1174 """SetStyle(long start, long end, TextAttr style) -> bool"""
1175 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1177 def GetStyle(*args
, **kwargs
):
1178 """GetStyle(long position, TextAttr style) -> bool"""
1179 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1181 def SetDefaultStyle(*args
, **kwargs
):
1182 """SetDefaultStyle(TextAttr style) -> bool"""
1183 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1185 def GetDefaultStyle(*args
, **kwargs
):
1186 """GetDefaultStyle() -> TextAttr"""
1187 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1189 def XYToPosition(*args
, **kwargs
):
1190 """XYToPosition(long x, long y) -> long"""
1191 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1193 def PositionToXY(*args
, **kwargs
):
1194 """PositionToXY(long pos) -> (x, y)"""
1195 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1197 def ShowPosition(*args
, **kwargs
):
1198 """ShowPosition(long pos)"""
1199 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1201 def Copy(*args
, **kwargs
):
1203 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1205 def Cut(*args
, **kwargs
):
1207 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1209 def Paste(*args
, **kwargs
):
1211 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1213 def CanCopy(*args
, **kwargs
):
1214 """CanCopy() -> bool"""
1215 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1217 def CanCut(*args
, **kwargs
):
1218 """CanCut() -> bool"""
1219 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1221 def CanPaste(*args
, **kwargs
):
1222 """CanPaste() -> bool"""
1223 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1225 def Undo(*args
, **kwargs
):
1227 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1229 def Redo(*args
, **kwargs
):
1231 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1233 def CanUndo(*args
, **kwargs
):
1234 """CanUndo() -> bool"""
1235 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1237 def CanRedo(*args
, **kwargs
):
1238 """CanRedo() -> bool"""
1239 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1241 def SetInsertionPoint(*args
, **kwargs
):
1242 """SetInsertionPoint(long pos)"""
1243 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1245 def SetInsertionPointEnd(*args
, **kwargs
):
1246 """SetInsertionPointEnd()"""
1247 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1249 def GetInsertionPoint(*args
, **kwargs
):
1250 """GetInsertionPoint() -> long"""
1251 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1253 def GetLastPosition(*args
, **kwargs
):
1254 """GetLastPosition() -> long"""
1255 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1257 def SetSelection(*args
, **kwargs
):
1258 """SetSelection(long from, long to)"""
1259 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1261 def SelectAll(*args
, **kwargs
):
1263 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1265 def SetEditable(*args
, **kwargs
):
1266 """SetEditable(bool editable)"""
1267 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1269 def write(*args
, **kwargs
):
1270 """write(String text)"""
1271 return _controls
.TextCtrl_write(*args
, **kwargs
)
1273 def GetString(*args
, **kwargs
):
1274 """GetString(long from, long to) -> String"""
1275 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1278 class TextCtrlPtr(TextCtrl
):
1279 def __init__(self
, this
):
1281 if not hasattr(self
,"thisown"): self
.thisown
= 0
1282 self
.__class
__ = TextCtrl
1283 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1285 def PreTextCtrl(*args
, **kwargs
):
1286 """PreTextCtrl() -> TextCtrl"""
1287 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1291 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1292 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1293 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1294 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1295 class TextUrlEvent(core
.CommandEvent
):
1297 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1298 def __init__(self
, *args
, **kwargs
):
1299 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1300 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1301 self
.this
= newobj
.this
1304 def GetMouseEvent(*args
, **kwargs
):
1305 """GetMouseEvent() -> MouseEvent"""
1306 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1308 def GetURLStart(*args
, **kwargs
):
1309 """GetURLStart() -> long"""
1310 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1312 def GetURLEnd(*args
, **kwargs
):
1313 """GetURLEnd() -> long"""
1314 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1317 class TextUrlEventPtr(TextUrlEvent
):
1318 def __init__(self
, this
):
1320 if not hasattr(self
,"thisown"): self
.thisown
= 0
1321 self
.__class
__ = TextUrlEvent
1322 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1324 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1325 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1326 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1327 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1329 #---------------------------------------------------------------------------
1331 class ScrollBar(core
.Control
):
1333 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1334 def __init__(self
, *args
, **kwargs
):
1336 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1337 Size size=DefaultSize, long style=SB_HORIZONTAL,
1338 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1340 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1341 self
.this
= newobj
.this
1344 self
._setOORInfo
(self
)
1346 def Create(*args
, **kwargs
):
1348 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1349 Size size=DefaultSize, long style=SB_HORIZONTAL,
1350 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1352 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1354 def GetThumbPosition(*args
, **kwargs
):
1355 """GetThumbPosition() -> int"""
1356 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1358 def GetThumbSize(*args
, **kwargs
):
1359 """GetThumbSize() -> int"""
1360 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1362 GetThumbLength
= GetThumbSize
1363 def GetPageSize(*args
, **kwargs
):
1364 """GetPageSize() -> int"""
1365 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1367 def GetRange(*args
, **kwargs
):
1368 """GetRange() -> int"""
1369 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1371 def IsVertical(*args
, **kwargs
):
1372 """IsVertical() -> bool"""
1373 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1375 def SetThumbPosition(*args
, **kwargs
):
1376 """SetThumbPosition(int viewStart)"""
1377 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1379 def SetScrollbar(*args
, **kwargs
):
1381 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1384 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1387 class ScrollBarPtr(ScrollBar
):
1388 def __init__(self
, this
):
1390 if not hasattr(self
,"thisown"): self
.thisown
= 0
1391 self
.__class
__ = ScrollBar
1392 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1393 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1395 def PreScrollBar(*args
, **kwargs
):
1396 """PreScrollBar() -> ScrollBar"""
1397 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1401 #---------------------------------------------------------------------------
1403 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1404 SP_VERTICAL
= _controls
.SP_VERTICAL
1405 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1406 SP_WRAP
= _controls
.SP_WRAP
1407 class SpinButton(core
.Control
):
1409 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1410 def __init__(self
, *args
, **kwargs
):
1412 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1413 Size size=DefaultSize, long style=SP_HORIZONTAL,
1414 String name=SPIN_BUTTON_NAME) -> SpinButton
1416 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1417 self
.this
= newobj
.this
1420 self
._setOORInfo
(self
)
1422 def Create(*args
, **kwargs
):
1424 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1425 Size size=DefaultSize, long style=SP_HORIZONTAL,
1426 String name=SPIN_BUTTON_NAME) -> bool
1428 return _controls
.SpinButton_Create(*args
, **kwargs
)
1430 def GetValue(*args
, **kwargs
):
1431 """GetValue() -> int"""
1432 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1434 def GetMin(*args
, **kwargs
):
1435 """GetMin() -> int"""
1436 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1438 def GetMax(*args
, **kwargs
):
1439 """GetMax() -> int"""
1440 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1442 def SetValue(*args
, **kwargs
):
1443 """SetValue(int val)"""
1444 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1446 def SetMin(*args
, **kwargs
):
1447 """SetMin(int minVal)"""
1448 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1450 def SetMax(*args
, **kwargs
):
1451 """SetMax(int maxVal)"""
1452 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1454 def SetRange(*args
, **kwargs
):
1455 """SetRange(int minVal, int maxVal)"""
1456 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1458 def IsVertical(*args
, **kwargs
):
1459 """IsVertical() -> bool"""
1460 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1463 class SpinButtonPtr(SpinButton
):
1464 def __init__(self
, this
):
1466 if not hasattr(self
,"thisown"): self
.thisown
= 0
1467 self
.__class
__ = SpinButton
1468 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1469 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1470 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1472 def PreSpinButton(*args
, **kwargs
):
1473 """PreSpinButton() -> SpinButton"""
1474 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1478 class SpinCtrl(core
.Control
):
1480 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1481 def __init__(self
, *args
, **kwargs
):
1483 __init__(Window parent, int id=-1, String value=EmptyString,
1484 Point pos=DefaultPosition, Size size=DefaultSize,
1485 long style=SP_ARROW_KEYS, int min=0, int max=100,
1486 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1488 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1489 self
.this
= newobj
.this
1492 self
._setOORInfo
(self
)
1494 def Create(*args
, **kwargs
):
1496 Create(Window parent, int id=-1, String value=EmptyString,
1497 Point pos=DefaultPosition, Size size=DefaultSize,
1498 long style=SP_ARROW_KEYS, int min=0, int max=100,
1499 int initial=0, String name=SpinCtrlNameStr) -> bool
1501 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1503 def GetValue(*args
, **kwargs
):
1504 """GetValue() -> int"""
1505 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1507 def SetValue(*args
, **kwargs
):
1508 """SetValue(int value)"""
1509 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1511 def SetValueString(*args
, **kwargs
):
1512 """SetValueString(String text)"""
1513 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1515 def SetRange(*args
, **kwargs
):
1516 """SetRange(int minVal, int maxVal)"""
1517 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1519 def GetMin(*args
, **kwargs
):
1520 """GetMin() -> int"""
1521 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1523 def GetMax(*args
, **kwargs
):
1524 """GetMax() -> int"""
1525 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1527 def SetSelection(*args
, **kwargs
):
1528 """SetSelection(long from, long to)"""
1529 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1532 class SpinCtrlPtr(SpinCtrl
):
1533 def __init__(self
, this
):
1535 if not hasattr(self
,"thisown"): self
.thisown
= 0
1536 self
.__class
__ = SpinCtrl
1537 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1539 def PreSpinCtrl(*args
, **kwargs
):
1540 """PreSpinCtrl() -> SpinCtrl"""
1541 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1545 class SpinEvent(core
.NotifyEvent
):
1547 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1548 def __init__(self
, *args
, **kwargs
):
1549 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1550 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1551 self
.this
= newobj
.this
1554 def GetPosition(*args
, **kwargs
):
1555 """GetPosition() -> int"""
1556 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1558 def SetPosition(*args
, **kwargs
):
1559 """SetPosition(int pos)"""
1560 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1563 class SpinEventPtr(SpinEvent
):
1564 def __init__(self
, this
):
1566 if not hasattr(self
,"thisown"): self
.thisown
= 0
1567 self
.__class
__ = SpinEvent
1568 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1570 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1571 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1572 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1573 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1574 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1576 #---------------------------------------------------------------------------
1578 class RadioBox(core
.Control
):
1580 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1581 def __init__(self
, *args
, **kwargs
):
1583 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1584 Size size=DefaultSize, int choices=0,
1585 String choices_array=None, int majorDimension=0,
1586 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1587 String name=RadioBoxNameStr) -> RadioBox
1589 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1590 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1591 self
.this
= newobj
.this
1594 self
._setOORInfo
(self
)
1596 def Create(*args
, **kwargs
):
1598 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1599 Size size=DefaultSize, int choices=0,
1600 String choices_array=None, int majorDimension=0,
1601 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1602 String name=RadioBoxNameStr) -> bool
1604 return _controls
.RadioBox_Create(*args
, **kwargs
)
1606 def SetSelection(*args
, **kwargs
):
1607 """SetSelection(int n)"""
1608 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1610 def GetSelection(*args
, **kwargs
):
1611 """GetSelection() -> int"""
1612 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1614 def GetStringSelection(*args
, **kwargs
):
1615 """GetStringSelection() -> String"""
1616 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1618 def SetStringSelection(*args
, **kwargs
):
1619 """SetStringSelection(String s) -> bool"""
1620 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1622 def GetCount(*args
, **kwargs
):
1623 """GetCount() -> int"""
1624 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1626 def FindString(*args
, **kwargs
):
1627 """FindString(String s) -> int"""
1628 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1630 def GetString(*args
, **kwargs
):
1631 """GetString(int n) -> String"""
1632 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1634 def SetString(*args
, **kwargs
):
1635 """SetString(int n, String label)"""
1636 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1638 GetItemLabel
= GetString
1639 SetItemLabel
= SetString
1640 def EnableItem(*args
, **kwargs
):
1641 """EnableItem(int n, bool enable=True)"""
1642 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1644 def ShowItem(*args
, **kwargs
):
1645 """ShowItem(int n, bool show=True)"""
1646 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1648 def GetColumnCount(*args
, **kwargs
):
1649 """GetColumnCount() -> int"""
1650 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1652 def GetRowCount(*args
, **kwargs
):
1653 """GetRowCount() -> int"""
1654 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1656 def GetNextItem(*args
, **kwargs
):
1657 """GetNextItem(int item, int dir, long style) -> int"""
1658 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1661 class RadioBoxPtr(RadioBox
):
1662 def __init__(self
, this
):
1664 if not hasattr(self
,"thisown"): self
.thisown
= 0
1665 self
.__class
__ = RadioBox
1666 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1667 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1668 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1670 def PreRadioBox(*args
, **kwargs
):
1671 """PreRadioBox() -> RadioBox"""
1672 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1676 #---------------------------------------------------------------------------
1678 class RadioButton(core
.Control
):
1680 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1681 def __init__(self
, *args
, **kwargs
):
1683 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1684 Size size=DefaultSize, long style=0,
1685 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1687 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1688 self
.this
= newobj
.this
1691 self
._setOORInfo
(self
)
1693 def Create(*args
, **kwargs
):
1695 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1696 Size size=DefaultSize, long style=0,
1697 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1699 return _controls
.RadioButton_Create(*args
, **kwargs
)
1701 def GetValue(*args
, **kwargs
):
1702 """GetValue() -> bool"""
1703 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1705 def SetValue(*args
, **kwargs
):
1706 """SetValue(bool value)"""
1707 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1710 class RadioButtonPtr(RadioButton
):
1711 def __init__(self
, this
):
1713 if not hasattr(self
,"thisown"): self
.thisown
= 0
1714 self
.__class
__ = RadioButton
1715 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1717 def PreRadioButton(*args
, **kwargs
):
1718 """PreRadioButton() -> RadioButton"""
1719 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1723 #---------------------------------------------------------------------------
1725 class Slider(core
.Control
):
1727 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1728 def __init__(self
, *args
, **kwargs
):
1730 __init__(Window parent, int id, int value, int minValue, int maxValue,
1731 Point pos=DefaultPosition, Size size=DefaultSize,
1732 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1733 String name=SliderNameStr) -> Slider
1735 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1736 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1737 self
.this
= newobj
.this
1740 self
._setOORInfo
(self
)
1742 def Create(*args
, **kwargs
):
1744 Create(Window parent, int id, int value, int minValue, int maxValue,
1745 Point pos=DefaultPosition, Size size=DefaultSize,
1746 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1747 String name=SliderNameStr) -> bool
1749 return _controls
.Slider_Create(*args
, **kwargs
)
1751 def GetValue(*args
, **kwargs
):
1752 """GetValue() -> int"""
1753 return _controls
.Slider_GetValue(*args
, **kwargs
)
1755 def SetValue(*args
, **kwargs
):
1756 """SetValue(int value)"""
1757 return _controls
.Slider_SetValue(*args
, **kwargs
)
1759 def SetRange(*args
, **kwargs
):
1760 """SetRange(int minValue, int maxValue)"""
1761 return _controls
.Slider_SetRange(*args
, **kwargs
)
1763 def GetMin(*args
, **kwargs
):
1764 """GetMin() -> int"""
1765 return _controls
.Slider_GetMin(*args
, **kwargs
)
1767 def GetMax(*args
, **kwargs
):
1768 """GetMax() -> int"""
1769 return _controls
.Slider_GetMax(*args
, **kwargs
)
1771 def SetMin(*args
, **kwargs
):
1772 """SetMin(int minValue)"""
1773 return _controls
.Slider_SetMin(*args
, **kwargs
)
1775 def SetMax(*args
, **kwargs
):
1776 """SetMax(int maxValue)"""
1777 return _controls
.Slider_SetMax(*args
, **kwargs
)
1779 def SetLineSize(*args
, **kwargs
):
1780 """SetLineSize(int lineSize)"""
1781 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1783 def SetPageSize(*args
, **kwargs
):
1784 """SetPageSize(int pageSize)"""
1785 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1787 def GetLineSize(*args
, **kwargs
):
1788 """GetLineSize() -> int"""
1789 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1791 def GetPageSize(*args
, **kwargs
):
1792 """GetPageSize() -> int"""
1793 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1795 def SetThumbLength(*args
, **kwargs
):
1796 """SetThumbLength(int lenPixels)"""
1797 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1799 def GetThumbLength(*args
, **kwargs
):
1800 """GetThumbLength() -> int"""
1801 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1803 def SetTickFreq(*args
, **kwargs
):
1804 """SetTickFreq(int n, int pos=1)"""
1805 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1807 def GetTickFreq(*args
, **kwargs
):
1808 """GetTickFreq() -> int"""
1809 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1811 def ClearTicks(*args
, **kwargs
):
1813 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1815 def SetTick(*args
, **kwargs
):
1816 """SetTick(int tickPos)"""
1817 return _controls
.Slider_SetTick(*args
, **kwargs
)
1819 def ClearSel(*args
, **kwargs
):
1821 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1823 def GetSelEnd(*args
, **kwargs
):
1824 """GetSelEnd() -> int"""
1825 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1827 def GetSelStart(*args
, **kwargs
):
1828 """GetSelStart() -> int"""
1829 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1831 def SetSelection(*args
, **kwargs
):
1832 """SetSelection(int min, int max)"""
1833 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1836 class SliderPtr(Slider
):
1837 def __init__(self
, this
):
1839 if not hasattr(self
,"thisown"): self
.thisown
= 0
1840 self
.__class
__ = Slider
1841 _controls
.Slider_swigregister(SliderPtr
)
1842 SliderNameStr
= cvar
.SliderNameStr
1844 def PreSlider(*args
, **kwargs
):
1845 """PreSlider() -> Slider"""
1846 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1850 #---------------------------------------------------------------------------
1852 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1853 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1855 class ToggleButton(core
.Control
):
1857 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1858 def __init__(self
, *args
, **kwargs
):
1860 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1861 Size size=DefaultSize, long style=0,
1862 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
1864 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1865 self
.this
= newobj
.this
1868 self
._setOORInfo
(self
)
1870 def Create(*args
, **kwargs
):
1872 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1873 Size size=DefaultSize, long style=0,
1874 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
1876 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1878 def SetValue(*args
, **kwargs
):
1879 """SetValue(bool value)"""
1880 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1882 def GetValue(*args
, **kwargs
):
1883 """GetValue() -> bool"""
1884 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1886 def SetLabel(*args
, **kwargs
):
1887 """SetLabel(String label)"""
1888 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1891 class ToggleButtonPtr(ToggleButton
):
1892 def __init__(self
, this
):
1894 if not hasattr(self
,"thisown"): self
.thisown
= 0
1895 self
.__class
__ = ToggleButton
1896 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1897 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
1899 def PreToggleButton(*args
, **kwargs
):
1900 """PreToggleButton() -> ToggleButton"""
1901 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1905 #---------------------------------------------------------------------------
1907 class BookCtrl(core
.Control
):
1908 def __init__(self
): raise RuntimeError, "No constructor defined"
1910 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1911 def GetPageCount(*args
, **kwargs
):
1912 """GetPageCount() -> size_t"""
1913 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1915 def GetPage(*args
, **kwargs
):
1916 """GetPage(size_t n) -> Window"""
1917 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1919 def GetSelection(*args
, **kwargs
):
1920 """GetSelection() -> int"""
1921 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1923 def SetPageText(*args
, **kwargs
):
1924 """SetPageText(size_t n, String strText) -> bool"""
1925 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1927 def GetPageText(*args
, **kwargs
):
1928 """GetPageText(size_t n) -> String"""
1929 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1931 def SetImageList(*args
, **kwargs
):
1932 """SetImageList(ImageList imageList)"""
1933 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1935 def AssignImageList(*args
, **kwargs
):
1936 """AssignImageList(ImageList imageList)"""
1937 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1939 def GetImageList(*args
, **kwargs
):
1940 """GetImageList() -> ImageList"""
1941 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1943 def GetPageImage(*args
, **kwargs
):
1944 """GetPageImage(size_t n) -> int"""
1945 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1947 def SetPageImage(*args
, **kwargs
):
1948 """SetPageImage(size_t n, int imageId) -> bool"""
1949 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1951 def SetPageSize(*args
, **kwargs
):
1952 """SetPageSize(Size size)"""
1953 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1955 def CalcSizeFromPage(*args
, **kwargs
):
1956 """CalcSizeFromPage(Size sizePage) -> Size"""
1957 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1959 def DeletePage(*args
, **kwargs
):
1960 """DeletePage(size_t n) -> bool"""
1961 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1963 def RemovePage(*args
, **kwargs
):
1964 """RemovePage(size_t n) -> bool"""
1965 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1967 def DeleteAllPages(*args
, **kwargs
):
1968 """DeleteAllPages() -> bool"""
1969 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1971 def AddPage(*args
, **kwargs
):
1972 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
1973 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1975 def InsertPage(*args
, **kwargs
):
1977 InsertPage(size_t n, Window page, String text, bool select=False,
1978 int imageId=-1) -> bool
1980 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1982 def SetSelection(*args
, **kwargs
):
1983 """SetSelection(size_t n) -> int"""
1984 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1986 def AdvanceSelection(*args
, **kwargs
):
1987 """AdvanceSelection(bool forward=True)"""
1988 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1991 class BookCtrlPtr(BookCtrl
):
1992 def __init__(self
, this
):
1994 if not hasattr(self
,"thisown"): self
.thisown
= 0
1995 self
.__class
__ = BookCtrl
1996 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1997 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
1999 class BookCtrlEvent(core
.NotifyEvent
):
2001 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2002 def __init__(self
, *args
, **kwargs
):
2004 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2005 int nOldSel=-1) -> BookCtrlEvent
2007 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2008 self
.this
= newobj
.this
2011 def GetSelection(*args
, **kwargs
):
2012 """GetSelection() -> int"""
2013 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2015 def SetSelection(*args
, **kwargs
):
2016 """SetSelection(int nSel)"""
2017 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2019 def GetOldSelection(*args
, **kwargs
):
2020 """GetOldSelection() -> int"""
2021 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2023 def SetOldSelection(*args
, **kwargs
):
2024 """SetOldSelection(int nOldSel)"""
2025 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2028 class BookCtrlEventPtr(BookCtrlEvent
):
2029 def __init__(self
, this
):
2031 if not hasattr(self
,"thisown"): self
.thisown
= 0
2032 self
.__class
__ = BookCtrlEvent
2033 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2035 #---------------------------------------------------------------------------
2037 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2038 NB_TOP
= _controls
.NB_TOP
2039 NB_LEFT
= _controls
.NB_LEFT
2040 NB_RIGHT
= _controls
.NB_RIGHT
2041 NB_BOTTOM
= _controls
.NB_BOTTOM
2042 NB_MULTILINE
= _controls
.NB_MULTILINE
2043 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2044 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2045 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2046 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2047 class Notebook(BookCtrl
):
2049 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2050 def __init__(self
, *args
, **kwargs
):
2052 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2053 long style=0, String name=NOTEBOOK_NAME) -> Notebook
2055 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2056 self
.this
= newobj
.this
2059 self
._setOORInfo
(self
)
2061 def Create(*args
, **kwargs
):
2063 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2064 long style=0, String name=NOTEBOOK_NAME) -> bool
2066 return _controls
.Notebook_Create(*args
, **kwargs
)
2068 def GetRowCount(*args
, **kwargs
):
2069 """GetRowCount() -> int"""
2070 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2072 def SetPadding(*args
, **kwargs
):
2073 """SetPadding(Size padding)"""
2074 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2076 def SetTabSize(*args
, **kwargs
):
2077 """SetTabSize(Size sz)"""
2078 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2080 def HitTest(*args
, **kwargs
):
2082 HitTest(Point pt) -> (tab, where)
2084 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2086 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2088 def CalcSizeFromPage(*args
, **kwargs
):
2089 """CalcSizeFromPage(Size sizePage) -> Size"""
2090 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2093 class NotebookPtr(Notebook
):
2094 def __init__(self
, this
):
2096 if not hasattr(self
,"thisown"): self
.thisown
= 0
2097 self
.__class
__ = Notebook
2098 _controls
.Notebook_swigregister(NotebookPtr
)
2100 def PreNotebook(*args
, **kwargs
):
2101 """PreNotebook() -> Notebook"""
2102 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2106 class NotebookEvent(BookCtrlEvent
):
2108 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2109 def __init__(self
, *args
, **kwargs
):
2111 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2112 int nOldSel=-1) -> NotebookEvent
2114 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2115 self
.this
= newobj
.this
2119 class NotebookEventPtr(NotebookEvent
):
2120 def __init__(self
, this
):
2122 if not hasattr(self
,"thisown"): self
.thisown
= 0
2123 self
.__class
__ = NotebookEvent
2124 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2126 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2127 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2129 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2130 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2132 #----------------------------------------------------------------------------
2134 class NotebookPage(wx
.Panel
):
2136 There is an old (and apparently unsolvable) bug when placing a
2137 window with a nonstandard background colour in a wxNotebook on
2138 wxGTK, as the notbooks's background colour would always be used
2139 when the window is refreshed. The solution is to place a panel in
2140 the notbook and the coloured window on the panel, sized to cover
2141 the panel. This simple class does that for you, just put an
2142 instance of this in the notebook and make your regular window a
2143 child of this one and it will handle the resize for you.
2145 def __init__(self
, parent
, id=-1,
2146 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2147 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2148 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2150 EVT_SIZE(self
, self
.OnSize
)
2152 def OnSize(self
, evt
):
2153 if self
.child
is None:
2154 children
= self
.GetChildren()
2156 self
.child
= children
[0]
2158 self
.child
.SetPosition((0,0))
2159 self
.child
.SetSize(self
.GetSize())
2162 #---------------------------------------------------------------------------
2164 LB_DEFAULT
= _controls
.LB_DEFAULT
2165 LB_TOP
= _controls
.LB_TOP
2166 LB_BOTTOM
= _controls
.LB_BOTTOM
2167 LB_LEFT
= _controls
.LB_LEFT
2168 LB_RIGHT
= _controls
.LB_RIGHT
2169 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2170 class Listbook(BookCtrl
):
2172 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2173 def __init__(self
, *args
, **kwargs
):
2175 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2176 long style=0, String name=EmptyString) -> Listbook
2178 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2179 self
.this
= newobj
.this
2182 self
._setOORInfo
(self
)
2184 def Create(*args
, **kwargs
):
2186 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2187 long style=0, String name=EmptyString) -> bool
2189 return _controls
.Listbook_Create(*args
, **kwargs
)
2191 def IsVertical(*args
, **kwargs
):
2192 """IsVertical() -> bool"""
2193 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2196 class ListbookPtr(Listbook
):
2197 def __init__(self
, this
):
2199 if not hasattr(self
,"thisown"): self
.thisown
= 0
2200 self
.__class
__ = Listbook
2201 _controls
.Listbook_swigregister(ListbookPtr
)
2203 def PreListbook(*args
, **kwargs
):
2204 """PreListbook() -> Listbook"""
2205 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2209 class ListbookEvent(BookCtrlEvent
):
2211 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2212 def __init__(self
, *args
, **kwargs
):
2214 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2215 int nOldSel=-1) -> ListbookEvent
2217 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2218 self
.this
= newobj
.this
2222 class ListbookEventPtr(ListbookEvent
):
2223 def __init__(self
, this
):
2225 if not hasattr(self
,"thisown"): self
.thisown
= 0
2226 self
.__class
__ = ListbookEvent
2227 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2229 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2230 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2231 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2232 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2234 #---------------------------------------------------------------------------
2236 class BookCtrlSizer(core
.Sizer
):
2238 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2239 def __init__(self
, *args
, **kwargs
):
2240 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2241 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2242 self
.this
= newobj
.this
2245 self
._setOORInfo
(self
)
2247 def RecalcSizes(*args
, **kwargs
):
2249 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2251 def CalcMin(*args
, **kwargs
):
2252 """CalcMin() -> Size"""
2253 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2255 def GetControl(*args
, **kwargs
):
2256 """GetControl() -> BookCtrl"""
2257 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2260 class BookCtrlSizerPtr(BookCtrlSizer
):
2261 def __init__(self
, this
):
2263 if not hasattr(self
,"thisown"): self
.thisown
= 0
2264 self
.__class
__ = BookCtrlSizer
2265 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2267 class NotebookSizer(core
.Sizer
):
2269 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2270 def __init__(self
, *args
, **kwargs
):
2271 """__init__(Notebook nb) -> NotebookSizer"""
2272 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2273 self
.this
= newobj
.this
2276 self
._setOORInfo
(self
)
2278 def RecalcSizes(*args
, **kwargs
):
2280 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2282 def CalcMin(*args
, **kwargs
):
2283 """CalcMin() -> Size"""
2284 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2286 def GetNotebook(*args
, **kwargs
):
2287 """GetNotebook() -> Notebook"""
2288 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2291 class NotebookSizerPtr(NotebookSizer
):
2292 def __init__(self
, this
):
2294 if not hasattr(self
,"thisown"): self
.thisown
= 0
2295 self
.__class
__ = NotebookSizer
2296 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2298 #---------------------------------------------------------------------------
2300 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2301 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2302 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2303 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2304 TB_VERTICAL
= _controls
.TB_VERTICAL
2305 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2306 TB_FLAT
= _controls
.TB_FLAT
2307 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2308 TB_NOICONS
= _controls
.TB_NOICONS
2309 TB_TEXT
= _controls
.TB_TEXT
2310 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2311 TB_NOALIGN
= _controls
.TB_NOALIGN
2312 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2313 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2314 class ToolBarToolBase(core
.Object
):
2315 def __init__(self
): raise RuntimeError, "No constructor defined"
2317 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2318 def GetId(*args
, **kwargs
):
2319 """GetId() -> int"""
2320 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2322 def GetControl(*args
, **kwargs
):
2323 """GetControl() -> Control"""
2324 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2326 def GetToolBar(*args
, **kwargs
):
2327 """GetToolBar() -> ToolBarBase"""
2328 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2330 def IsButton(*args
, **kwargs
):
2331 """IsButton() -> int"""
2332 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2334 def IsControl(*args
, **kwargs
):
2335 """IsControl() -> int"""
2336 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2338 def IsSeparator(*args
, **kwargs
):
2339 """IsSeparator() -> int"""
2340 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2342 def GetStyle(*args
, **kwargs
):
2343 """GetStyle() -> int"""
2344 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2346 def GetKind(*args
, **kwargs
):
2347 """GetKind() -> int"""
2348 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2350 def IsEnabled(*args
, **kwargs
):
2351 """IsEnabled() -> bool"""
2352 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2354 def IsToggled(*args
, **kwargs
):
2355 """IsToggled() -> bool"""
2356 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2358 def CanBeToggled(*args
, **kwargs
):
2359 """CanBeToggled() -> bool"""
2360 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2362 def GetNormalBitmap(*args
, **kwargs
):
2363 """GetNormalBitmap() -> Bitmap"""
2364 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2366 def GetDisabledBitmap(*args
, **kwargs
):
2367 """GetDisabledBitmap() -> Bitmap"""
2368 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2370 def GetBitmap(*args
, **kwargs
):
2371 """GetBitmap() -> Bitmap"""
2372 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2374 def GetLabel(*args
, **kwargs
):
2375 """GetLabel() -> String"""
2376 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2378 def GetShortHelp(*args
, **kwargs
):
2379 """GetShortHelp() -> String"""
2380 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2382 def GetLongHelp(*args
, **kwargs
):
2383 """GetLongHelp() -> String"""
2384 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2386 def Enable(*args
, **kwargs
):
2387 """Enable(bool enable) -> bool"""
2388 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2390 def Toggle(*args
, **kwargs
):
2392 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2394 def SetToggle(*args
, **kwargs
):
2395 """SetToggle(bool toggle) -> bool"""
2396 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2398 def SetShortHelp(*args
, **kwargs
):
2399 """SetShortHelp(String help) -> bool"""
2400 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2402 def SetLongHelp(*args
, **kwargs
):
2403 """SetLongHelp(String help) -> bool"""
2404 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2406 def SetNormalBitmap(*args
, **kwargs
):
2407 """SetNormalBitmap(Bitmap bmp)"""
2408 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2410 def SetDisabledBitmap(*args
, **kwargs
):
2411 """SetDisabledBitmap(Bitmap bmp)"""
2412 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2414 def SetLabel(*args
, **kwargs
):
2415 """SetLabel(String label)"""
2416 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2418 def Detach(*args
, **kwargs
):
2420 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2422 def Attach(*args
, **kwargs
):
2423 """Attach(ToolBarBase tbar)"""
2424 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2426 def GetClientData(*args
, **kwargs
):
2427 """GetClientData() -> PyObject"""
2428 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2430 def SetClientData(*args
, **kwargs
):
2431 """SetClientData(PyObject clientData)"""
2432 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2434 GetBitmap1
= GetNormalBitmap
2435 GetBitmap2
= GetDisabledBitmap
2436 SetBitmap1
= SetNormalBitmap
2437 SetBitmap2
= SetDisabledBitmap
2440 class ToolBarToolBasePtr(ToolBarToolBase
):
2441 def __init__(self
, this
):
2443 if not hasattr(self
,"thisown"): self
.thisown
= 0
2444 self
.__class
__ = ToolBarToolBase
2445 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2447 class ToolBarBase(core
.Control
):
2448 def __init__(self
): raise RuntimeError, "No constructor defined"
2450 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2451 def DoAddTool(*args
, **kwargs
):
2453 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2454 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2455 String longHelp=EmptyString,
2456 PyObject clientData=None) -> ToolBarToolBase
2458 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2460 def DoInsertTool(*args
, **kwargs
):
2462 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2463 int kind=ITEM_NORMAL,
2464 String shortHelp=EmptyString, String longHelp=EmptyString,
2465 PyObject clientData=None) -> ToolBarToolBase
2467 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2469 # These match the original Add methods for this class, kept for
2470 # backwards compatibility with versions < 2.3.3.
2473 def AddTool(self
, id, bitmap
,
2474 pushedBitmap
= wx
.NullBitmap
,
2477 shortHelpString
= '',
2478 longHelpString
= '') :
2479 '''Old style method to add a tool to the toolbar.'''
2480 kind
= wx
.ITEM_NORMAL
2481 if isToggle
: kind
= wx
.ITEM_CHECK
2482 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2483 shortHelpString
, longHelpString
, clientData
)
2485 def AddSimpleTool(self
, id, bitmap
,
2486 shortHelpString
= '',
2487 longHelpString
= '',
2489 '''Old style method to add a tool to the toolbar.'''
2490 kind
= wx
.ITEM_NORMAL
2491 if isToggle
: kind
= wx
.ITEM_CHECK
2492 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2493 shortHelpString
, longHelpString
, None)
2495 def InsertTool(self
, pos
, id, bitmap
,
2496 pushedBitmap
= wx
.NullBitmap
,
2499 shortHelpString
= '',
2500 longHelpString
= ''):
2501 '''Old style method to insert a tool in the toolbar.'''
2502 kind
= wx
.ITEM_NORMAL
2503 if isToggle
: kind
= wx
.ITEM_CHECK
2504 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2505 shortHelpString
, longHelpString
, clientData
)
2507 def InsertSimpleTool(self
, pos
, id, bitmap
,
2508 shortHelpString
= '',
2509 longHelpString
= '',
2511 '''Old style method to insert a tool in the toolbar.'''
2512 kind
= wx
.ITEM_NORMAL
2513 if isToggle
: kind
= wx
.ITEM_CHECK
2514 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2515 shortHelpString
, longHelpString
, None)
2518 # The following are the new toolbar Add methods starting with
2519 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2520 # able to keep backwards compatibility with using the above
2521 # methods. Eventually these should migrate to be the methods used
2522 # primarily and lose the 'Label' in the name...
2524 def AddLabelTool(self
, id, label
, bitmap
,
2525 bmpDisabled
= wx
.NullBitmap
,
2526 kind
= wx
.ITEM_NORMAL
,
2527 shortHelp
= '', longHelp
= '',
2530 The full AddTool() function.
2532 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2533 is created and used as the disabled image.
2535 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2536 shortHelp
, longHelp
, clientData
)
2539 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2540 bmpDisabled
= wx
.NullBitmap
,
2541 kind
= wx
.ITEM_NORMAL
,
2542 shortHelp
= '', longHelp
= '',
2545 Insert the new tool at the given position, if pos == GetToolsCount(), it
2546 is equivalent to AddTool()
2548 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2549 shortHelp
, longHelp
, clientData
)
2551 def AddCheckLabelTool(self
, id, label
, bitmap
,
2552 bmpDisabled
= wx
.NullBitmap
,
2553 shortHelp
= '', longHelp
= '',
2555 '''Add a check tool, i.e. a tool which can be toggled'''
2556 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2557 shortHelp
, longHelp
, clientData
)
2559 def AddRadioLabelTool(self
, id, label
, bitmap
,
2560 bmpDisabled
= wx
.NullBitmap
,
2561 shortHelp
= '', longHelp
= '',
2564 Add a radio tool, i.e. a tool which can be toggled and releases any
2565 other toggled radio tools in the same group when it happens
2567 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2568 shortHelp
, longHelp
, clientData
)
2571 # For consistency with the backwards compatible methods above, here are
2572 # some non-'Label' versions of the Check and Radio methods
2573 def AddCheckTool(self
, id, bitmap
,
2574 bmpDisabled
= wx
.NullBitmap
,
2575 shortHelp
= '', longHelp
= '',
2577 '''Add a check tool, i.e. a tool which can be toggled'''
2578 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2579 shortHelp
, longHelp
, clientData
)
2581 def AddRadioTool(self
, id, bitmap
,
2582 bmpDisabled
= wx
.NullBitmap
,
2583 shortHelp
= '', longHelp
= '',
2586 Add a radio tool, i.e. a tool which can be toggled and releases any
2587 other toggled radio tools in the same group when it happens
2589 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2590 shortHelp
, longHelp
, clientData
)
2592 def AddToolItem(*args
, **kwargs
):
2593 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2594 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2596 def InsertToolItem(*args
, **kwargs
):
2597 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2598 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2600 def AddControl(*args
, **kwargs
):
2601 """AddControl(Control control) -> ToolBarToolBase"""
2602 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2604 def InsertControl(*args
, **kwargs
):
2605 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2606 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2608 def FindControl(*args
, **kwargs
):
2609 """FindControl(int id) -> Control"""
2610 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2612 def AddSeparator(*args
, **kwargs
):
2613 """AddSeparator() -> ToolBarToolBase"""
2614 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2616 def InsertSeparator(*args
, **kwargs
):
2617 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2618 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2620 def RemoveTool(*args
, **kwargs
):
2621 """RemoveTool(int id) -> ToolBarToolBase"""
2622 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2624 def DeleteToolByPos(*args
, **kwargs
):
2625 """DeleteToolByPos(size_t pos) -> bool"""
2626 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2628 def DeleteTool(*args
, **kwargs
):
2629 """DeleteTool(int id) -> bool"""
2630 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2632 def ClearTools(*args
, **kwargs
):
2634 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2636 def Realize(*args
, **kwargs
):
2637 """Realize() -> bool"""
2638 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2640 def EnableTool(*args
, **kwargs
):
2641 """EnableTool(int id, bool enable)"""
2642 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2644 def ToggleTool(*args
, **kwargs
):
2645 """ToggleTool(int id, bool toggle)"""
2646 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2648 def SetToggle(*args
, **kwargs
):
2649 """SetToggle(int id, bool toggle)"""
2650 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2652 def GetToolClientData(*args
, **kwargs
):
2653 """GetToolClientData(int id) -> PyObject"""
2654 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2656 def SetToolClientData(*args
, **kwargs
):
2657 """SetToolClientData(int id, PyObject clientData)"""
2658 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2660 def GetToolPos(*args
, **kwargs
):
2661 """GetToolPos(int id) -> int"""
2662 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2664 def GetToolState(*args
, **kwargs
):
2665 """GetToolState(int id) -> bool"""
2666 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2668 def GetToolEnabled(*args
, **kwargs
):
2669 """GetToolEnabled(int id) -> bool"""
2670 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2672 def SetToolShortHelp(*args
, **kwargs
):
2673 """SetToolShortHelp(int id, String helpString)"""
2674 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2676 def GetToolShortHelp(*args
, **kwargs
):
2677 """GetToolShortHelp(int id) -> String"""
2678 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2680 def SetToolLongHelp(*args
, **kwargs
):
2681 """SetToolLongHelp(int id, String helpString)"""
2682 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2684 def GetToolLongHelp(*args
, **kwargs
):
2685 """GetToolLongHelp(int id) -> String"""
2686 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2688 def SetMarginsXY(*args
, **kwargs
):
2689 """SetMarginsXY(int x, int y)"""
2690 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2692 def SetMargins(*args
, **kwargs
):
2693 """SetMargins(Size size)"""
2694 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2696 def SetToolPacking(*args
, **kwargs
):
2697 """SetToolPacking(int packing)"""
2698 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2700 def SetToolSeparation(*args
, **kwargs
):
2701 """SetToolSeparation(int separation)"""
2702 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2704 def GetToolMargins(*args
, **kwargs
):
2705 """GetToolMargins() -> Size"""
2706 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2708 def GetMargins(*args
, **kwargs
):
2709 """GetMargins() -> Size"""
2710 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2712 def GetToolPacking(*args
, **kwargs
):
2713 """GetToolPacking() -> int"""
2714 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2716 def GetToolSeparation(*args
, **kwargs
):
2717 """GetToolSeparation() -> int"""
2718 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2720 def SetRows(*args
, **kwargs
):
2721 """SetRows(int nRows)"""
2722 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2724 def SetMaxRowsCols(*args
, **kwargs
):
2725 """SetMaxRowsCols(int rows, int cols)"""
2726 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2728 def GetMaxRows(*args
, **kwargs
):
2729 """GetMaxRows() -> int"""
2730 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2732 def GetMaxCols(*args
, **kwargs
):
2733 """GetMaxCols() -> int"""
2734 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2736 def SetToolBitmapSize(*args
, **kwargs
):
2737 """SetToolBitmapSize(Size size)"""
2738 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2740 def GetToolBitmapSize(*args
, **kwargs
):
2741 """GetToolBitmapSize() -> Size"""
2742 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2744 def GetToolSize(*args
, **kwargs
):
2745 """GetToolSize() -> Size"""
2746 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2748 def FindToolForPosition(*args
, **kwargs
):
2749 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2750 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2752 def FindById(*args
, **kwargs
):
2753 """FindById(int toolid) -> ToolBarToolBase"""
2754 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2756 def IsVertical(*args
, **kwargs
):
2757 """IsVertical() -> bool"""
2758 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2761 class ToolBarBasePtr(ToolBarBase
):
2762 def __init__(self
, this
):
2764 if not hasattr(self
,"thisown"): self
.thisown
= 0
2765 self
.__class
__ = ToolBarBase
2766 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2768 class ToolBar(ToolBarBase
):
2770 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2771 def __init__(self
, *args
, **kwargs
):
2773 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2774 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2775 String name=wxPyToolBarNameStr) -> ToolBar
2777 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2778 self
.this
= newobj
.this
2781 self
._setOORInfo
(self
)
2783 def Create(*args
, **kwargs
):
2785 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2786 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2787 String name=wxPyToolBarNameStr) -> bool
2789 return _controls
.ToolBar_Create(*args
, **kwargs
)
2791 def FindToolForPosition(*args
, **kwargs
):
2792 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2793 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2796 class ToolBarPtr(ToolBar
):
2797 def __init__(self
, this
):
2799 if not hasattr(self
,"thisown"): self
.thisown
= 0
2800 self
.__class
__ = ToolBar
2801 _controls
.ToolBar_swigregister(ToolBarPtr
)
2803 def PreToolBar(*args
, **kwargs
):
2804 """PreToolBar() -> ToolBar"""
2805 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2809 #---------------------------------------------------------------------------
2811 LC_VRULES
= _controls
.LC_VRULES
2812 LC_HRULES
= _controls
.LC_HRULES
2813 LC_ICON
= _controls
.LC_ICON
2814 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2815 LC_LIST
= _controls
.LC_LIST
2816 LC_REPORT
= _controls
.LC_REPORT
2817 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2818 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2819 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2820 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2821 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2822 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2823 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2824 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2825 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2826 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2827 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2828 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2829 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2830 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2831 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2832 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2833 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2834 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2835 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2836 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2837 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2838 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2839 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2840 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2841 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2842 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2843 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2844 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2845 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2846 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2847 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2848 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2849 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2850 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2851 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2852 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2853 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2854 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2855 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2856 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2857 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2858 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2859 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2860 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2861 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2862 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2863 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2864 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2865 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2866 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2867 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2868 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2869 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2870 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2871 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2872 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2873 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2874 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2875 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2876 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2877 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2878 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2879 #---------------------------------------------------------------------------
2881 class ListItemAttr(object):
2883 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2884 def __init__(self
, *args
, **kwargs
):
2886 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
2887 Font font=wxNullFont) -> ListItemAttr
2889 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2890 self
.this
= newobj
.this
2893 def SetTextColour(*args
, **kwargs
):
2894 """SetTextColour(Colour colText)"""
2895 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2897 def SetBackgroundColour(*args
, **kwargs
):
2898 """SetBackgroundColour(Colour colBack)"""
2899 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2901 def SetFont(*args
, **kwargs
):
2902 """SetFont(Font font)"""
2903 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2905 def HasTextColour(*args
, **kwargs
):
2906 """HasTextColour() -> bool"""
2907 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2909 def HasBackgroundColour(*args
, **kwargs
):
2910 """HasBackgroundColour() -> bool"""
2911 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2913 def HasFont(*args
, **kwargs
):
2914 """HasFont() -> bool"""
2915 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2917 def GetTextColour(*args
, **kwargs
):
2918 """GetTextColour() -> Colour"""
2919 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2921 def GetBackgroundColour(*args
, **kwargs
):
2922 """GetBackgroundColour() -> Colour"""
2923 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2925 def GetFont(*args
, **kwargs
):
2926 """GetFont() -> Font"""
2927 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2929 def Destroy(*args
, **kwargs
):
2931 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2934 class ListItemAttrPtr(ListItemAttr
):
2935 def __init__(self
, this
):
2937 if not hasattr(self
,"thisown"): self
.thisown
= 0
2938 self
.__class
__ = ListItemAttr
2939 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2940 ListCtrlNameStr
= cvar
.ListCtrlNameStr
2942 #---------------------------------------------------------------------------
2944 class ListItem(core
.Object
):
2946 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2947 def __init__(self
, *args
, **kwargs
):
2948 """__init__() -> ListItem"""
2949 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2950 self
.this
= newobj
.this
2953 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2956 if self
.thisown
: destroy(self
)
2959 def Clear(*args
, **kwargs
):
2961 return _controls
.ListItem_Clear(*args
, **kwargs
)
2963 def ClearAttributes(*args
, **kwargs
):
2964 """ClearAttributes()"""
2965 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2967 def SetMask(*args
, **kwargs
):
2968 """SetMask(long mask)"""
2969 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2971 def SetId(*args
, **kwargs
):
2972 """SetId(long id)"""
2973 return _controls
.ListItem_SetId(*args
, **kwargs
)
2975 def SetColumn(*args
, **kwargs
):
2976 """SetColumn(int col)"""
2977 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2979 def SetState(*args
, **kwargs
):
2980 """SetState(long state)"""
2981 return _controls
.ListItem_SetState(*args
, **kwargs
)
2983 def SetStateMask(*args
, **kwargs
):
2984 """SetStateMask(long stateMask)"""
2985 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2987 def SetText(*args
, **kwargs
):
2988 """SetText(String text)"""
2989 return _controls
.ListItem_SetText(*args
, **kwargs
)
2991 def SetImage(*args
, **kwargs
):
2992 """SetImage(int image)"""
2993 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2995 def SetData(*args
, **kwargs
):
2996 """SetData(long data)"""
2997 return _controls
.ListItem_SetData(*args
, **kwargs
)
2999 def SetWidth(*args
, **kwargs
):
3000 """SetWidth(int width)"""
3001 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3003 def SetAlign(*args
, **kwargs
):
3004 """SetAlign(int align)"""
3005 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3007 def SetTextColour(*args
, **kwargs
):
3008 """SetTextColour(Colour colText)"""
3009 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3011 def SetBackgroundColour(*args
, **kwargs
):
3012 """SetBackgroundColour(Colour colBack)"""
3013 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3015 def SetFont(*args
, **kwargs
):
3016 """SetFont(Font font)"""
3017 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3019 def GetMask(*args
, **kwargs
):
3020 """GetMask() -> long"""
3021 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3023 def GetId(*args
, **kwargs
):
3024 """GetId() -> long"""
3025 return _controls
.ListItem_GetId(*args
, **kwargs
)
3027 def GetColumn(*args
, **kwargs
):
3028 """GetColumn() -> int"""
3029 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3031 def GetState(*args
, **kwargs
):
3032 """GetState() -> long"""
3033 return _controls
.ListItem_GetState(*args
, **kwargs
)
3035 def GetText(*args
, **kwargs
):
3036 """GetText() -> String"""
3037 return _controls
.ListItem_GetText(*args
, **kwargs
)
3039 def GetImage(*args
, **kwargs
):
3040 """GetImage() -> int"""
3041 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3043 def GetData(*args
, **kwargs
):
3044 """GetData() -> long"""
3045 return _controls
.ListItem_GetData(*args
, **kwargs
)
3047 def GetWidth(*args
, **kwargs
):
3048 """GetWidth() -> int"""
3049 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3051 def GetAlign(*args
, **kwargs
):
3052 """GetAlign() -> int"""
3053 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3055 def GetAttributes(*args
, **kwargs
):
3056 """GetAttributes() -> ListItemAttr"""
3057 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3059 def HasAttributes(*args
, **kwargs
):
3060 """HasAttributes() -> bool"""
3061 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3063 def GetTextColour(*args
, **kwargs
):
3064 """GetTextColour() -> Colour"""
3065 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3067 def GetBackgroundColour(*args
, **kwargs
):
3068 """GetBackgroundColour() -> Colour"""
3069 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3071 def GetFont(*args
, **kwargs
):
3072 """GetFont() -> Font"""
3073 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3075 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3076 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3077 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3078 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3079 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3080 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3081 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3082 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3083 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3084 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3086 class ListItemPtr(ListItem
):
3087 def __init__(self
, this
):
3089 if not hasattr(self
,"thisown"): self
.thisown
= 0
3090 self
.__class
__ = ListItem
3091 _controls
.ListItem_swigregister(ListItemPtr
)
3093 #---------------------------------------------------------------------------
3095 class ListEvent(core
.NotifyEvent
):
3097 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3098 def __init__(self
, *args
, **kwargs
):
3099 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3100 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3101 self
.this
= newobj
.this
3104 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3105 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3106 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3107 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3108 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3109 m_item
= property(_controls
.ListEvent_m_item_get
)
3110 def GetKeyCode(*args
, **kwargs
):
3111 """GetKeyCode() -> int"""
3112 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3114 GetCode
= GetKeyCode
3115 def GetIndex(*args
, **kwargs
):
3116 """GetIndex() -> long"""
3117 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3119 def GetColumn(*args
, **kwargs
):
3120 """GetColumn() -> int"""
3121 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3123 def GetPoint(*args
, **kwargs
):
3124 """GetPoint() -> Point"""
3125 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3127 GetPosition
= GetPoint
3128 def GetLabel(*args
, **kwargs
):
3129 """GetLabel() -> String"""
3130 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3132 def GetText(*args
, **kwargs
):
3133 """GetText() -> String"""
3134 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3136 def GetImage(*args
, **kwargs
):
3137 """GetImage() -> int"""
3138 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3140 def GetData(*args
, **kwargs
):
3141 """GetData() -> long"""
3142 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3144 def GetMask(*args
, **kwargs
):
3145 """GetMask() -> long"""
3146 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3148 def GetItem(*args
, **kwargs
):
3149 """GetItem() -> ListItem"""
3150 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3152 def GetCacheFrom(*args
, **kwargs
):
3153 """GetCacheFrom() -> long"""
3154 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3156 def GetCacheTo(*args
, **kwargs
):
3157 """GetCacheTo() -> long"""
3158 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3160 def IsEditCancelled(*args
, **kwargs
):
3161 """IsEditCancelled() -> bool"""
3162 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3164 def SetEditCanceled(*args
, **kwargs
):
3165 """SetEditCanceled(bool editCancelled)"""
3166 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3169 class ListEventPtr(ListEvent
):
3170 def __init__(self
, this
):
3172 if not hasattr(self
,"thisown"): self
.thisown
= 0
3173 self
.__class
__ = ListEvent
3174 _controls
.ListEvent_swigregister(ListEventPtr
)
3176 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3177 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3178 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3179 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3180 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3181 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3182 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3183 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3184 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3185 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3186 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3187 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3188 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3189 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3190 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3191 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3192 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3193 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3194 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3195 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3196 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3197 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3198 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3199 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3200 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3201 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3202 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3203 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3204 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3205 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3206 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3207 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3208 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3209 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3210 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3211 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3212 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3213 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3214 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3215 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3216 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3217 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3218 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3219 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3221 #---------------------------------------------------------------------------
3223 class ListCtrl(core
.Control
):
3225 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3226 def __init__(self
, *args
, **kwargs
):
3228 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3229 Size size=DefaultSize, long style=LC_ICON,
3230 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3232 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3233 self
.this
= newobj
.this
3236 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3238 def Create(*args
, **kwargs
):
3240 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3241 Size size=DefaultSize, long style=LC_ICON,
3242 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3244 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3246 def _setCallbackInfo(*args
, **kwargs
):
3247 """_setCallbackInfo(PyObject self, PyObject _class)"""
3248 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3250 def SetForegroundColour(*args
, **kwargs
):
3251 """SetForegroundColour(Colour col) -> bool"""
3252 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3254 def SetBackgroundColour(*args
, **kwargs
):
3255 """SetBackgroundColour(Colour col) -> bool"""
3256 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3258 def GetColumn(*args
, **kwargs
):
3259 """GetColumn(int col) -> ListItem"""
3260 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3261 if val
is not None: val
.thisown
= 1
3264 def SetColumn(*args
, **kwargs
):
3265 """SetColumn(int col, ListItem item) -> bool"""
3266 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3268 def GetColumnWidth(*args
, **kwargs
):
3269 """GetColumnWidth(int col) -> int"""
3270 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3272 def SetColumnWidth(*args
, **kwargs
):
3273 """SetColumnWidth(int col, int width) -> bool"""
3274 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3276 def GetCountPerPage(*args
, **kwargs
):
3277 """GetCountPerPage() -> int"""
3278 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3280 def GetViewRect(*args
, **kwargs
):
3281 """GetViewRect() -> Rect"""
3282 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3284 def GetItem(*args
, **kwargs
):
3285 """GetItem(long itemId, int col=0) -> ListItem"""
3286 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3287 if val
is not None: val
.thisown
= 1
3290 def SetItem(*args
, **kwargs
):
3291 """SetItem(ListItem info) -> bool"""
3292 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3294 def SetStringItem(*args
, **kwargs
):
3295 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3296 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3298 def GetItemState(*args
, **kwargs
):
3299 """GetItemState(long item, long stateMask) -> int"""
3300 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3302 def SetItemState(*args
, **kwargs
):
3303 """SetItemState(long item, long state, long stateMask) -> bool"""
3304 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3306 def SetItemImage(*args
, **kwargs
):
3307 """SetItemImage(long item, int image, int selImage) -> bool"""
3308 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3310 def GetItemText(*args
, **kwargs
):
3311 """GetItemText(long item) -> String"""
3312 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3314 def SetItemText(*args
, **kwargs
):
3315 """SetItemText(long item, String str)"""
3316 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3318 def GetItemData(*args
, **kwargs
):
3319 """GetItemData(long item) -> long"""
3320 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3322 def SetItemData(*args
, **kwargs
):
3323 """SetItemData(long item, long data) -> bool"""
3324 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3326 def GetItemPosition(*args
, **kwargs
):
3327 """GetItemPosition(long item) -> Point"""
3328 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3330 def GetItemRect(*args
, **kwargs
):
3331 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3332 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3334 def SetItemPosition(*args
, **kwargs
):
3335 """SetItemPosition(long item, Point pos) -> bool"""
3336 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3338 def GetItemCount(*args
, **kwargs
):
3339 """GetItemCount() -> int"""
3340 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3342 def GetColumnCount(*args
, **kwargs
):
3343 """GetColumnCount() -> int"""
3344 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3346 def GetItemSpacing(*args
, **kwargs
):
3347 """GetItemSpacing() -> Size"""
3348 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3350 def SetItemSpacing(*args
, **kwargs
):
3351 """SetItemSpacing(int spacing, bool isSmall=False)"""
3352 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3354 def GetSelectedItemCount(*args
, **kwargs
):
3355 """GetSelectedItemCount() -> int"""
3356 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3358 def GetTextColour(*args
, **kwargs
):
3359 """GetTextColour() -> Colour"""
3360 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3362 def SetTextColour(*args
, **kwargs
):
3363 """SetTextColour(Colour col)"""
3364 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3366 def GetTopItem(*args
, **kwargs
):
3367 """GetTopItem() -> long"""
3368 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3370 def SetSingleStyle(*args
, **kwargs
):
3371 """SetSingleStyle(long style, bool add=True)"""
3372 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3374 def SetWindowStyleFlag(*args
, **kwargs
):
3375 """SetWindowStyleFlag(long style)"""
3376 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3378 def GetNextItem(*args
, **kwargs
):
3379 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3380 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3382 def GetImageList(*args
, **kwargs
):
3383 """GetImageList(int which) -> ImageList"""
3384 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3386 def SetImageList(*args
, **kwargs
):
3387 """SetImageList(ImageList imageList, int which)"""
3388 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3390 def AssignImageList(*args
, **kwargs
):
3391 """AssignImageList(ImageList imageList, int which)"""
3392 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3394 def IsVirtual(*args
, **kwargs
):
3395 """IsVirtual() -> bool"""
3396 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3398 def RefreshItem(*args
, **kwargs
):
3399 """RefreshItem(long item)"""
3400 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3402 def RefreshItems(*args
, **kwargs
):
3403 """RefreshItems(long itemFrom, long itemTo)"""
3404 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3406 def Arrange(*args
, **kwargs
):
3407 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3408 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3410 def DeleteItem(*args
, **kwargs
):
3411 """DeleteItem(long item) -> bool"""
3412 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3414 def DeleteAllItems(*args
, **kwargs
):
3415 """DeleteAllItems() -> bool"""
3416 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3418 def DeleteColumn(*args
, **kwargs
):
3419 """DeleteColumn(int col) -> bool"""
3420 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3422 def DeleteAllColumns(*args
, **kwargs
):
3423 """DeleteAllColumns() -> bool"""
3424 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3426 def ClearAll(*args
, **kwargs
):
3428 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3430 def EditLabel(*args
, **kwargs
):
3431 """EditLabel(long item)"""
3432 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3434 def EnsureVisible(*args
, **kwargs
):
3435 """EnsureVisible(long item) -> bool"""
3436 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3438 def FindItem(*args
, **kwargs
):
3439 """FindItem(long start, String str, bool partial=False) -> long"""
3440 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3442 def FindItemData(*args
, **kwargs
):
3443 """FindItemData(long start, long data) -> long"""
3444 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3446 def FindItemAtPos(*args
, **kwargs
):
3447 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3448 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3450 def HitTest(*args
, **kwargs
):
3452 HitTest(Point point) -> (item, where)
3454 Determines which item (if any) is at the specified point,
3455 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3457 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3459 def InsertItem(*args
, **kwargs
):
3460 """InsertItem(ListItem info) -> long"""
3461 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3463 def InsertStringItem(*args
, **kwargs
):
3464 """InsertStringItem(long index, String label) -> long"""
3465 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3467 def InsertImageItem(*args
, **kwargs
):
3468 """InsertImageItem(long index, int imageIndex) -> long"""
3469 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3471 def InsertImageStringItem(*args
, **kwargs
):
3472 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3473 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3475 def InsertColumnInfo(*args
, **kwargs
):
3476 """InsertColumnInfo(long col, ListItem info) -> long"""
3477 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3479 def InsertColumn(*args
, **kwargs
):
3481 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3482 int width=-1) -> long
3484 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3486 def SetItemCount(*args
, **kwargs
):
3487 """SetItemCount(long count)"""
3488 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3490 def ScrollList(*args
, **kwargs
):
3491 """ScrollList(int dx, int dy) -> bool"""
3492 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3494 def SetItemTextColour(*args
, **kwargs
):
3495 """SetItemTextColour(long item, Colour col)"""
3496 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3498 def GetItemTextColour(*args
, **kwargs
):
3499 """GetItemTextColour(long item) -> Colour"""
3500 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3502 def SetItemBackgroundColour(*args
, **kwargs
):
3503 """SetItemBackgroundColour(long item, Colour col)"""
3504 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3506 def GetItemBackgroundColour(*args
, **kwargs
):
3507 """GetItemBackgroundColour(long item) -> Colour"""
3508 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3512 def Select(self
, idx
, on
=1):
3513 '''[de]select an item'''
3514 if on
: state
= wx
.LIST_STATE_SELECTED
3516 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3518 def Focus(self
, idx
):
3519 '''Focus and show the given item'''
3520 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3521 self
.EnsureVisible(idx
)
3523 def GetFocusedItem(self
):
3524 '''get the currently focused item or -1 if none'''
3525 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3527 def GetFirstSelected(self
, *args
):
3528 '''return first selected item, or -1 when none'''
3529 return self
.GetNextSelected(-1)
3531 def GetNextSelected(self
, item
):
3532 '''return subsequent selected items, or -1 when no more'''
3533 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3535 def IsSelected(self
, idx
):
3536 '''return True if the item is selected'''
3537 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3539 def SetColumnImage(self
, col
, image
):
3540 item
= self
.GetColumn(col
)
3541 # preserve all other attributes too
3542 item
.SetMask( wx
.LIST_MASK_STATE |
3544 wx
.LIST_MASK_IMAGE |
3547 wx
.LIST_MASK_WIDTH |
3548 wx
.LIST_MASK_FORMAT
)
3549 item
.SetImage(image
)
3550 self
.SetColumn(col
, item
)
3552 def ClearColumnImage(self
, col
):
3553 self
.SetColumnImage(col
, -1)
3555 def Append(self
, entry
):
3556 '''Append an item to the list control. The entry parameter should be a
3557 sequence with an item for each column'''
3563 pos
= self
.GetItemCount()
3564 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3565 for i
in range(1, len(entry
)):
3566 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3569 def SortItems(*args
, **kwargs
):
3570 """SortItems(PyObject func) -> bool"""
3571 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3573 def GetMainWindow(*args
, **kwargs
):
3574 """GetMainWindow() -> Window"""
3575 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3578 class ListCtrlPtr(ListCtrl
):
3579 def __init__(self
, this
):
3581 if not hasattr(self
,"thisown"): self
.thisown
= 0
3582 self
.__class
__ = ListCtrl
3583 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3585 def PreListCtrl(*args
, **kwargs
):
3586 """PreListCtrl() -> ListCtrl"""
3587 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3591 #---------------------------------------------------------------------------
3593 class ListView(ListCtrl
):
3595 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3596 def __init__(self
, *args
, **kwargs
):
3598 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3599 Size size=DefaultSize, long style=LC_REPORT,
3600 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3602 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3603 self
.this
= newobj
.this
3606 self
._setOORInfo
(self
)
3608 def Create(*args
, **kwargs
):
3610 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3611 Size size=DefaultSize, long style=LC_REPORT,
3612 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3614 return _controls
.ListView_Create(*args
, **kwargs
)
3616 def Select(*args
, **kwargs
):
3617 """Select(long n, bool on=True)"""
3618 return _controls
.ListView_Select(*args
, **kwargs
)
3620 def Focus(*args
, **kwargs
):
3621 """Focus(long index)"""
3622 return _controls
.ListView_Focus(*args
, **kwargs
)
3624 def GetFocusedItem(*args
, **kwargs
):
3625 """GetFocusedItem() -> long"""
3626 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3628 def GetNextSelected(*args
, **kwargs
):
3629 """GetNextSelected(long item) -> long"""
3630 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3632 def GetFirstSelected(*args
, **kwargs
):
3633 """GetFirstSelected() -> long"""
3634 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3636 def IsSelected(*args
, **kwargs
):
3637 """IsSelected(long index) -> bool"""
3638 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3640 def SetColumnImage(*args
, **kwargs
):
3641 """SetColumnImage(int col, int image)"""
3642 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3644 def ClearColumnImage(*args
, **kwargs
):
3645 """ClearColumnImage(int col)"""
3646 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3649 class ListViewPtr(ListView
):
3650 def __init__(self
, this
):
3652 if not hasattr(self
,"thisown"): self
.thisown
= 0
3653 self
.__class
__ = ListView
3654 _controls
.ListView_swigregister(ListViewPtr
)
3656 def PreListView(*args
, **kwargs
):
3657 """PreListView() -> ListView"""
3658 val
= _controls
.new_PreListView(*args
, **kwargs
)
3662 #---------------------------------------------------------------------------
3664 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3665 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3666 TR_NO_LINES
= _controls
.TR_NO_LINES
3667 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3668 TR_SINGLE
= _controls
.TR_SINGLE
3669 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3670 TR_EXTENDED
= _controls
.TR_EXTENDED
3671 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3672 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3673 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3674 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3675 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3676 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3677 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3678 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3679 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3680 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3681 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3682 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3683 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3684 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3685 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3686 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3687 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3688 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3689 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3690 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3691 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3692 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3693 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3694 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3695 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3696 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3697 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3698 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3699 #---------------------------------------------------------------------------
3701 class TreeItemId(object):
3703 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3704 def __init__(self
, *args
, **kwargs
):
3705 """__init__() -> TreeItemId"""
3706 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3707 self
.this
= newobj
.this
3710 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3713 if self
.thisown
: destroy(self
)
3716 def IsOk(*args
, **kwargs
):
3717 """IsOk() -> bool"""
3718 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3720 def __eq__(*args
, **kwargs
):
3721 """__eq__(TreeItemId other) -> bool"""
3722 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3724 def __ne__(*args
, **kwargs
):
3725 """__ne__(TreeItemId other) -> bool"""
3726 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3728 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3730 def __nonzero__(self
): return self
.IsOk()
3732 class TreeItemIdPtr(TreeItemId
):
3733 def __init__(self
, this
):
3735 if not hasattr(self
,"thisown"): self
.thisown
= 0
3736 self
.__class
__ = TreeItemId
3737 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3738 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3740 class TreeItemData(object):
3742 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3743 def __init__(self
, *args
, **kwargs
):
3744 """__init__(PyObject obj=None) -> TreeItemData"""
3745 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3746 self
.this
= newobj
.this
3749 def GetData(*args
, **kwargs
):
3750 """GetData() -> PyObject"""
3751 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3753 def SetData(*args
, **kwargs
):
3754 """SetData(PyObject obj)"""
3755 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3757 def GetId(*args
, **kwargs
):
3758 """GetId() -> TreeItemId"""
3759 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3761 def SetId(*args
, **kwargs
):
3762 """SetId(TreeItemId id)"""
3763 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3765 def Destroy(*args
, **kwargs
):
3767 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3770 class TreeItemDataPtr(TreeItemData
):
3771 def __init__(self
, this
):
3773 if not hasattr(self
,"thisown"): self
.thisown
= 0
3774 self
.__class
__ = TreeItemData
3775 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3777 #---------------------------------------------------------------------------
3779 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3780 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3781 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3782 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3783 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3784 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3785 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3786 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3787 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3788 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3789 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3790 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3791 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3792 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3793 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3794 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3795 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3796 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3797 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3798 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3799 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3800 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3801 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3802 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3803 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3804 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3805 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3806 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3807 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3808 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3809 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3810 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3811 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3812 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3813 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3814 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3815 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3816 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3817 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3818 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3820 class TreeEvent(core
.NotifyEvent
):
3822 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3823 def __init__(self
, *args
, **kwargs
):
3824 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3825 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3826 self
.this
= newobj
.this
3829 def GetItem(*args
, **kwargs
):
3830 """GetItem() -> TreeItemId"""
3831 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3833 def SetItem(*args
, **kwargs
):
3834 """SetItem(TreeItemId item)"""
3835 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3837 def GetOldItem(*args
, **kwargs
):
3838 """GetOldItem() -> TreeItemId"""
3839 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3841 def SetOldItem(*args
, **kwargs
):
3842 """SetOldItem(TreeItemId item)"""
3843 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3845 def GetPoint(*args
, **kwargs
):
3846 """GetPoint() -> Point"""
3847 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3849 def SetPoint(*args
, **kwargs
):
3850 """SetPoint(Point pt)"""
3851 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3853 def GetKeyEvent(*args
, **kwargs
):
3854 """GetKeyEvent() -> KeyEvent"""
3855 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3857 def GetKeyCode(*args
, **kwargs
):
3858 """GetKeyCode() -> int"""
3859 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3861 def SetKeyEvent(*args
, **kwargs
):
3862 """SetKeyEvent(KeyEvent evt)"""
3863 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3865 def GetLabel(*args
, **kwargs
):
3866 """GetLabel() -> String"""
3867 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3869 def SetLabel(*args
, **kwargs
):
3870 """SetLabel(String label)"""
3871 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3873 def IsEditCancelled(*args
, **kwargs
):
3874 """IsEditCancelled() -> bool"""
3875 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3877 def SetEditCanceled(*args
, **kwargs
):
3878 """SetEditCanceled(bool editCancelled)"""
3879 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3881 def SetToolTip(*args
, **kwargs
):
3882 """SetToolTip(String toolTip)"""
3883 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
3886 class TreeEventPtr(TreeEvent
):
3887 def __init__(self
, this
):
3889 if not hasattr(self
,"thisown"): self
.thisown
= 0
3890 self
.__class
__ = TreeEvent
3891 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3893 #---------------------------------------------------------------------------
3895 class TreeCtrl(core
.Control
):
3897 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3898 def __init__(self
, *args
, **kwargs
):
3900 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3901 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3902 Validator validator=DefaultValidator,
3903 String name=TreeCtrlNameStr) -> TreeCtrl
3905 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3906 self
.this
= newobj
.this
3909 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3911 def Create(*args
, **kwargs
):
3913 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3914 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3915 Validator validator=DefaultValidator,
3916 String name=TreeCtrlNameStr) -> bool
3918 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3920 def _setCallbackInfo(*args
, **kwargs
):
3921 """_setCallbackInfo(PyObject self, PyObject _class)"""
3922 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3924 def GetCount(*args
, **kwargs
):
3925 """GetCount() -> size_t"""
3926 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3928 def GetIndent(*args
, **kwargs
):
3929 """GetIndent() -> unsigned int"""
3930 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3932 def SetIndent(*args
, **kwargs
):
3933 """SetIndent(unsigned int indent)"""
3934 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3936 def GetSpacing(*args
, **kwargs
):
3937 """GetSpacing() -> unsigned int"""
3938 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3940 def SetSpacing(*args
, **kwargs
):
3941 """SetSpacing(unsigned int spacing)"""
3942 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3944 def GetImageList(*args
, **kwargs
):
3945 """GetImageList() -> ImageList"""
3946 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3948 def GetStateImageList(*args
, **kwargs
):
3949 """GetStateImageList() -> ImageList"""
3950 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3952 def SetImageList(*args
, **kwargs
):
3953 """SetImageList(ImageList imageList)"""
3954 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3956 def SetStateImageList(*args
, **kwargs
):
3957 """SetStateImageList(ImageList imageList)"""
3958 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3960 def AssignImageList(*args
, **kwargs
):
3961 """AssignImageList(ImageList imageList)"""
3962 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3964 def AssignStateImageList(*args
, **kwargs
):
3965 """AssignStateImageList(ImageList imageList)"""
3966 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3968 def GetItemText(*args
, **kwargs
):
3969 """GetItemText(TreeItemId item) -> String"""
3970 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3972 def GetItemImage(*args
, **kwargs
):
3973 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
3974 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3976 def GetItemData(*args
, **kwargs
):
3977 """GetItemData(TreeItemId item) -> TreeItemData"""
3978 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3980 def GetItemPyData(*args
, **kwargs
):
3981 """GetItemPyData(TreeItemId item) -> PyObject"""
3982 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3984 GetPyData
= GetItemPyData
3985 def GetItemTextColour(*args
, **kwargs
):
3986 """GetItemTextColour(TreeItemId item) -> Colour"""
3987 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3989 def GetItemBackgroundColour(*args
, **kwargs
):
3990 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
3991 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3993 def GetItemFont(*args
, **kwargs
):
3994 """GetItemFont(TreeItemId item) -> Font"""
3995 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3997 def SetItemText(*args
, **kwargs
):
3998 """SetItemText(TreeItemId item, String text)"""
3999 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4001 def SetItemImage(*args
, **kwargs
):
4002 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4003 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4005 def SetItemData(*args
, **kwargs
):
4006 """SetItemData(TreeItemId item, TreeItemData data)"""
4007 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4009 def SetItemPyData(*args
, **kwargs
):
4010 """SetItemPyData(TreeItemId item, PyObject obj)"""
4011 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4013 SetPyData
= SetItemPyData
4014 def SetItemHasChildren(*args
, **kwargs
):
4015 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4016 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4018 def SetItemBold(*args
, **kwargs
):
4019 """SetItemBold(TreeItemId item, bool bold=True)"""
4020 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4022 def SetItemTextColour(*args
, **kwargs
):
4023 """SetItemTextColour(TreeItemId item, Colour col)"""
4024 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4026 def SetItemBackgroundColour(*args
, **kwargs
):
4027 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4028 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4030 def SetItemFont(*args
, **kwargs
):
4031 """SetItemFont(TreeItemId item, Font font)"""
4032 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4034 def IsVisible(*args
, **kwargs
):
4035 """IsVisible(TreeItemId item) -> bool"""
4036 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4038 def ItemHasChildren(*args
, **kwargs
):
4039 """ItemHasChildren(TreeItemId item) -> bool"""
4040 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4042 def IsExpanded(*args
, **kwargs
):
4043 """IsExpanded(TreeItemId item) -> bool"""
4044 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4046 def IsSelected(*args
, **kwargs
):
4047 """IsSelected(TreeItemId item) -> bool"""
4048 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4050 def IsBold(*args
, **kwargs
):
4051 """IsBold(TreeItemId item) -> bool"""
4052 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4054 def GetChildrenCount(*args
, **kwargs
):
4055 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4056 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4058 def GetRootItem(*args
, **kwargs
):
4059 """GetRootItem() -> TreeItemId"""
4060 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4062 def GetSelection(*args
, **kwargs
):
4063 """GetSelection() -> TreeItemId"""
4064 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4066 def GetSelections(*args
, **kwargs
):
4067 """GetSelections() -> PyObject"""
4068 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4070 def GetItemParent(*args
, **kwargs
):
4071 """GetItemParent(TreeItemId item) -> TreeItemId"""
4072 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4074 def GetFirstChild(*args
, **kwargs
):
4075 """GetFirstChild(TreeItemId item) -> PyObject"""
4076 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4078 def GetNextChild(*args
, **kwargs
):
4079 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4080 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4082 def GetLastChild(*args
, **kwargs
):
4083 """GetLastChild(TreeItemId item) -> TreeItemId"""
4084 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4086 def GetNextSibling(*args
, **kwargs
):
4087 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4088 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4090 def GetPrevSibling(*args
, **kwargs
):
4091 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4092 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4094 def GetFirstVisibleItem(*args
, **kwargs
):
4095 """GetFirstVisibleItem() -> TreeItemId"""
4096 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4098 def GetNextVisible(*args
, **kwargs
):
4099 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4100 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4102 def GetPrevVisible(*args
, **kwargs
):
4103 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4104 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4106 def AddRoot(*args
, **kwargs
):
4107 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4108 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4110 def PrependItem(*args
, **kwargs
):
4112 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4113 TreeItemData data=None) -> TreeItemId
4115 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4117 def InsertItem(*args
, **kwargs
):
4119 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4120 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4122 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4124 def InsertItemBefore(*args
, **kwargs
):
4126 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4127 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4129 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4131 def AppendItem(*args
, **kwargs
):
4133 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4134 TreeItemData data=None) -> TreeItemId
4136 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4138 def Delete(*args
, **kwargs
):
4139 """Delete(TreeItemId item)"""
4140 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4142 def DeleteChildren(*args
, **kwargs
):
4143 """DeleteChildren(TreeItemId item)"""
4144 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4146 def DeleteAllItems(*args
, **kwargs
):
4147 """DeleteAllItems()"""
4148 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4150 def Expand(*args
, **kwargs
):
4151 """Expand(TreeItemId item)"""
4152 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4154 def Collapse(*args
, **kwargs
):
4155 """Collapse(TreeItemId item)"""
4156 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4158 def CollapseAndReset(*args
, **kwargs
):
4159 """CollapseAndReset(TreeItemId item)"""
4160 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4162 def Toggle(*args
, **kwargs
):
4163 """Toggle(TreeItemId item)"""
4164 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4166 def Unselect(*args
, **kwargs
):
4168 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4170 def UnselectAll(*args
, **kwargs
):
4172 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4174 def SelectItem(*args
, **kwargs
):
4175 """SelectItem(TreeItemId item)"""
4176 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4178 def EnsureVisible(*args
, **kwargs
):
4179 """EnsureVisible(TreeItemId item)"""
4180 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4182 def ScrollTo(*args
, **kwargs
):
4183 """ScrollTo(TreeItemId item)"""
4184 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4186 def EditLabel(*args
, **kwargs
):
4187 """EditLabel(TreeItemId item)"""
4188 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4190 def GetEditControl(*args
, **kwargs
):
4191 """GetEditControl() -> TextCtrl"""
4192 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4194 def SortChildren(*args
, **kwargs
):
4195 """SortChildren(TreeItemId item)"""
4196 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4198 def HitTest(*args
, **kwargs
):
4200 HitTest(Point point) -> (item, where)
4202 Determine which item (if any) belongs the given point. The
4203 coordinates specified are relative to the client area of tree ctrl
4204 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4208 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4210 def GetBoundingRect(*args
, **kwargs
):
4211 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4212 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4215 class TreeCtrlPtr(TreeCtrl
):
4216 def __init__(self
, this
):
4218 if not hasattr(self
,"thisown"): self
.thisown
= 0
4219 self
.__class
__ = TreeCtrl
4220 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4222 def PreTreeCtrl(*args
, **kwargs
):
4223 """PreTreeCtrl() -> TreeCtrl"""
4224 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4228 #---------------------------------------------------------------------------
4230 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4231 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4232 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4233 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4234 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4235 class GenericDirCtrl(core
.Control
):
4237 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4238 def __init__(self
, *args
, **kwargs
):
4240 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4241 Point pos=DefaultPosition, Size size=DefaultSize,
4242 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4243 String filter=EmptyString,
4244 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4246 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4247 self
.this
= newobj
.this
4250 self
._setOORInfo
(self
)
4252 def Create(*args
, **kwargs
):
4254 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4255 Point pos=DefaultPosition, Size size=DefaultSize,
4256 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4257 String filter=EmptyString,
4258 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4260 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4262 def ExpandPath(*args
, **kwargs
):
4263 """ExpandPath(String path) -> bool"""
4264 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4266 def GetDefaultPath(*args
, **kwargs
):
4267 """GetDefaultPath() -> String"""
4268 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4270 def SetDefaultPath(*args
, **kwargs
):
4271 """SetDefaultPath(String path)"""
4272 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4274 def GetPath(*args
, **kwargs
):
4275 """GetPath() -> String"""
4276 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4278 def GetFilePath(*args
, **kwargs
):
4279 """GetFilePath() -> String"""
4280 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4282 def SetPath(*args
, **kwargs
):
4283 """SetPath(String path)"""
4284 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4286 def ShowHidden(*args
, **kwargs
):
4287 """ShowHidden(bool show)"""
4288 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4290 def GetShowHidden(*args
, **kwargs
):
4291 """GetShowHidden() -> bool"""
4292 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4294 def GetFilter(*args
, **kwargs
):
4295 """GetFilter() -> String"""
4296 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4298 def SetFilter(*args
, **kwargs
):
4299 """SetFilter(String filter)"""
4300 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4302 def GetFilterIndex(*args
, **kwargs
):
4303 """GetFilterIndex() -> int"""
4304 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4306 def SetFilterIndex(*args
, **kwargs
):
4307 """SetFilterIndex(int n)"""
4308 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4310 def GetRootId(*args
, **kwargs
):
4311 """GetRootId() -> TreeItemId"""
4312 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4314 def GetTreeCtrl(*args
, **kwargs
):
4315 """GetTreeCtrl() -> TreeCtrl"""
4316 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4318 def GetFilterListCtrl(*args
, **kwargs
):
4319 """GetFilterListCtrl() -> DirFilterListCtrl"""
4320 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4322 def FindChild(*args
, **kwargs
):
4324 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4326 Find the child that matches the first part of 'path'. E.g. if a child path is
4327 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4328 If the path string has been used (we're at the leaf), done is set to True
4331 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4333 def DoResize(*args
, **kwargs
):
4335 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4337 def ReCreateTree(*args
, **kwargs
):
4338 """ReCreateTree()"""
4339 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4342 class GenericDirCtrlPtr(GenericDirCtrl
):
4343 def __init__(self
, this
):
4345 if not hasattr(self
,"thisown"): self
.thisown
= 0
4346 self
.__class
__ = GenericDirCtrl
4347 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4348 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4350 def PreGenericDirCtrl(*args
, **kwargs
):
4351 """PreGenericDirCtrl() -> GenericDirCtrl"""
4352 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4356 class DirFilterListCtrl(Choice
):
4358 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4359 def __init__(self
, *args
, **kwargs
):
4361 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4362 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4364 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4365 self
.this
= newobj
.this
4368 self
._setOORInfo
(self
)
4370 def Create(*args
, **kwargs
):
4372 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4373 Size size=DefaultSize, long style=0) -> bool
4375 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4377 def FillFilterList(*args
, **kwargs
):
4378 """FillFilterList(String filter, int defaultFilter)"""
4379 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4382 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4383 def __init__(self
, this
):
4385 if not hasattr(self
,"thisown"): self
.thisown
= 0
4386 self
.__class
__ = DirFilterListCtrl
4387 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4389 def PreDirFilterListCtrl(*args
, **kwargs
):
4390 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4391 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4395 #---------------------------------------------------------------------------
4397 class PyControl(core
.Control
):
4399 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4400 def __init__(self
, *args
, **kwargs
):
4402 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4403 long style=0, Validator validator=DefaultValidator,
4404 String name=ControlNameStr) -> PyControl
4406 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4407 self
.this
= newobj
.this
4410 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4412 def _setCallbackInfo(*args
, **kwargs
):
4413 """_setCallbackInfo(PyObject self, PyObject _class)"""
4414 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4416 def base_DoMoveWindow(*args
, **kwargs
):
4417 """base_DoMoveWindow(int x, int y, int width, int height)"""
4418 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4420 def base_DoSetSize(*args
, **kwargs
):
4421 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4422 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4424 def base_DoSetClientSize(*args
, **kwargs
):
4425 """base_DoSetClientSize(int width, int height)"""
4426 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4428 def base_DoSetVirtualSize(*args
, **kwargs
):
4429 """base_DoSetVirtualSize(int x, int y)"""
4430 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4432 def base_DoGetSize(*args
, **kwargs
):
4433 """base_DoGetSize() -> (width, height)"""
4434 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4436 def base_DoGetClientSize(*args
, **kwargs
):
4437 """base_DoGetClientSize() -> (width, height)"""
4438 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4440 def base_DoGetPosition(*args
, **kwargs
):
4441 """base_DoGetPosition() -> (x,y)"""
4442 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4444 def base_DoGetVirtualSize(*args
, **kwargs
):
4445 """base_DoGetVirtualSize() -> Size"""
4446 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4448 def base_DoGetBestSize(*args
, **kwargs
):
4449 """base_DoGetBestSize() -> Size"""
4450 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4452 def base_InitDialog(*args
, **kwargs
):
4453 """base_InitDialog()"""
4454 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4456 def base_TransferDataToWindow(*args
, **kwargs
):
4457 """base_TransferDataToWindow() -> bool"""
4458 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4460 def base_TransferDataFromWindow(*args
, **kwargs
):
4461 """base_TransferDataFromWindow() -> bool"""
4462 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4464 def base_Validate(*args
, **kwargs
):
4465 """base_Validate() -> bool"""
4466 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4468 def base_AcceptsFocus(*args
, **kwargs
):
4469 """base_AcceptsFocus() -> bool"""
4470 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4472 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4473 """base_AcceptsFocusFromKeyboard() -> bool"""
4474 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4476 def base_GetMaxSize(*args
, **kwargs
):
4477 """base_GetMaxSize() -> Size"""
4478 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4480 def base_AddChild(*args
, **kwargs
):
4481 """base_AddChild(Window child)"""
4482 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4484 def base_RemoveChild(*args
, **kwargs
):
4485 """base_RemoveChild(Window child)"""
4486 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4489 class PyControlPtr(PyControl
):
4490 def __init__(self
, this
):
4492 if not hasattr(self
,"thisown"): self
.thisown
= 0
4493 self
.__class
__ = PyControl
4494 _controls
.PyControl_swigregister(PyControlPtr
)
4496 #---------------------------------------------------------------------------
4498 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4499 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4500 wxEVT_HELP
= _controls
.wxEVT_HELP
4501 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4502 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4503 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4504 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4505 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4507 class HelpEvent(core
.CommandEvent
):
4509 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4510 def __init__(self
, *args
, **kwargs
):
4511 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4512 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4513 self
.this
= newobj
.this
4516 def GetPosition(*args
, **kwargs
):
4517 """GetPosition() -> Point"""
4518 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4520 def SetPosition(*args
, **kwargs
):
4521 """SetPosition(Point pos)"""
4522 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4524 def GetLink(*args
, **kwargs
):
4525 """GetLink() -> String"""
4526 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4528 def SetLink(*args
, **kwargs
):
4529 """SetLink(String link)"""
4530 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4532 def GetTarget(*args
, **kwargs
):
4533 """GetTarget() -> String"""
4534 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4536 def SetTarget(*args
, **kwargs
):
4537 """SetTarget(String target)"""
4538 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4541 class HelpEventPtr(HelpEvent
):
4542 def __init__(self
, this
):
4544 if not hasattr(self
,"thisown"): self
.thisown
= 0
4545 self
.__class
__ = HelpEvent
4546 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4548 class ContextHelp(core
.Object
):
4550 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4551 def __init__(self
, *args
, **kwargs
):
4552 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4553 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4554 self
.this
= newobj
.this
4557 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4560 if self
.thisown
: destroy(self
)
4563 def BeginContextHelp(*args
, **kwargs
):
4564 """BeginContextHelp(Window window=None) -> bool"""
4565 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4567 def EndContextHelp(*args
, **kwargs
):
4568 """EndContextHelp() -> bool"""
4569 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4572 class ContextHelpPtr(ContextHelp
):
4573 def __init__(self
, this
):
4575 if not hasattr(self
,"thisown"): self
.thisown
= 0
4576 self
.__class
__ = ContextHelp
4577 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4579 class ContextHelpButton(BitmapButton
):
4581 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4582 def __init__(self
, *args
, **kwargs
):
4584 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4585 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4587 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4588 self
.this
= newobj
.this
4591 self
._setOORInfo
(self
)
4594 class ContextHelpButtonPtr(ContextHelpButton
):
4595 def __init__(self
, this
):
4597 if not hasattr(self
,"thisown"): self
.thisown
= 0
4598 self
.__class
__ = ContextHelpButton
4599 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4601 class HelpProvider(object):
4602 def __init__(self
): raise RuntimeError, "No constructor defined"
4604 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4605 def Set(*args
, **kwargs
):
4606 """Set(HelpProvider helpProvider) -> HelpProvider"""
4607 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4609 Set
= staticmethod(Set
)
4610 def Get(*args
, **kwargs
):
4611 """Get() -> HelpProvider"""
4612 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4614 Get
= staticmethod(Get
)
4615 def GetHelp(*args
, **kwargs
):
4616 """GetHelp(Window window) -> String"""
4617 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4619 def ShowHelp(*args
, **kwargs
):
4620 """ShowHelp(Window window) -> bool"""
4621 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4623 def AddHelp(*args
, **kwargs
):
4624 """AddHelp(Window window, String text)"""
4625 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4627 def AddHelpById(*args
, **kwargs
):
4628 """AddHelpById(int id, String text)"""
4629 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4631 def Destroy(*args
, **kwargs
):
4633 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4636 class HelpProviderPtr(HelpProvider
):
4637 def __init__(self
, this
):
4639 if not hasattr(self
,"thisown"): self
.thisown
= 0
4640 self
.__class
__ = HelpProvider
4641 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4643 def HelpProvider_Set(*args
, **kwargs
):
4644 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4645 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4647 def HelpProvider_Get(*args
, **kwargs
):
4648 """HelpProvider_Get() -> HelpProvider"""
4649 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4651 class SimpleHelpProvider(HelpProvider
):
4653 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4654 def __init__(self
, *args
, **kwargs
):
4655 """__init__() -> SimpleHelpProvider"""
4656 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4657 self
.this
= newobj
.this
4661 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4662 def __init__(self
, this
):
4664 if not hasattr(self
,"thisown"): self
.thisown
= 0
4665 self
.__class
__ = SimpleHelpProvider
4666 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4668 #---------------------------------------------------------------------------
4670 class DragImage(core
.Object
):
4672 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4673 def __init__(self
, *args
, **kwargs
):
4674 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4675 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4676 self
.this
= newobj
.this
4679 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4682 if self
.thisown
: destroy(self
)
4685 def SetBackingBitmap(*args
, **kwargs
):
4686 """SetBackingBitmap(Bitmap bitmap)"""
4687 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4689 def BeginDrag(*args
, **kwargs
):
4691 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4692 Rect rect=None) -> bool
4694 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4696 def BeginDragBounded(*args
, **kwargs
):
4697 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4698 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4700 def EndDrag(*args
, **kwargs
):
4701 """EndDrag() -> bool"""
4702 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4704 def Move(*args
, **kwargs
):
4705 """Move(Point pt) -> bool"""
4706 return _controls
.DragImage_Move(*args
, **kwargs
)
4708 def Show(*args
, **kwargs
):
4709 """Show() -> bool"""
4710 return _controls
.DragImage_Show(*args
, **kwargs
)
4712 def Hide(*args
, **kwargs
):
4713 """Hide() -> bool"""
4714 return _controls
.DragImage_Hide(*args
, **kwargs
)
4716 def GetImageRect(*args
, **kwargs
):
4717 """GetImageRect(Point pos) -> Rect"""
4718 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4720 def DoDrawImage(*args
, **kwargs
):
4721 """DoDrawImage(DC dc, Point pos) -> bool"""
4722 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4724 def UpdateBackingFromWindow(*args
, **kwargs
):
4725 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4726 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4728 def RedrawImage(*args
, **kwargs
):
4729 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4730 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4733 class DragImagePtr(DragImage
):
4734 def __init__(self
, this
):
4736 if not hasattr(self
,"thisown"): self
.thisown
= 0
4737 self
.__class
__ = DragImage
4738 _controls
.DragImage_swigregister(DragImagePtr
)
4740 def DragIcon(*args
, **kwargs
):
4741 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
4742 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4746 def DragString(*args
, **kwargs
):
4747 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4748 val
= _controls
.new_DragString(*args
, **kwargs
)
4752 def DragTreeItem(*args
, **kwargs
):
4753 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4754 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4758 def DragListItem(*args
, **kwargs
):
4759 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4760 val
= _controls
.new_DragListItem(*args
, **kwargs
)