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 wxArrayString choices=wxPyEmptyStringArray,
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 wxArrayString choices=wxPyEmptyStringArray,
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 wxArrayString choices=wxPyEmptyStringArray,
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 wxArrayString choices=wxPyEmptyStringArray,
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 wxArrayString choices=wxPyEmptyStringArray,
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 wxArrayString choices=wxPyEmptyStringArray,
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
)
797 def SetItemForegroundColour(*args
, **kwargs
):
798 """SetItemForegroundColour(int item, Colour c)"""
799 return _controls
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
801 def SetItemBackgroundColour(*args
, **kwargs
):
802 """SetItemBackgroundColour(int item, Colour c)"""
803 return _controls
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
805 def SetItemFont(*args
, **kwargs
):
806 """SetItemFont(int item, Font f)"""
807 return _controls
.ListBox_SetItemFont(*args
, **kwargs
)
810 class ListBoxPtr(ListBox
):
811 def __init__(self
, this
):
813 if not hasattr(self
,"thisown"): self
.thisown
= 0
814 self
.__class
__ = ListBox
815 _controls
.ListBox_swigregister(ListBoxPtr
)
816 ListBoxNameStr
= cvar
.ListBoxNameStr
818 def PreListBox(*args
, **kwargs
):
819 """PreListBox() -> ListBox"""
820 val
= _controls
.new_PreListBox(*args
, **kwargs
)
824 #---------------------------------------------------------------------------
826 class CheckListBox(ListBox
):
828 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
829 def __init__(self
, *args
, **kwargs
):
831 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
832 wxArrayString choices=wxPyEmptyStringArray,
833 long style=0, Validator validator=DefaultValidator,
834 String name=ListBoxNameStr) -> CheckListBox
836 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
837 self
.this
= newobj
.this
840 self
._setOORInfo
(self
)
842 def Create(*args
, **kwargs
):
844 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
845 wxArrayString choices=wxPyEmptyStringArray,
846 long style=0, Validator validator=DefaultValidator,
847 String name=ListBoxNameStr) -> bool
849 return _controls
.CheckListBox_Create(*args
, **kwargs
)
851 def IsChecked(*args
, **kwargs
):
852 """IsChecked(int index) -> bool"""
853 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
855 def Check(*args
, **kwargs
):
856 """Check(int index, int check=True)"""
857 return _controls
.CheckListBox_Check(*args
, **kwargs
)
859 def GetItemHeight(*args
, **kwargs
):
860 """GetItemHeight() -> int"""
861 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
863 def HitTest(*args
, **kwargs
):
864 """HitTest(Point pt) -> int"""
865 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
867 def HitTestXY(*args
, **kwargs
):
868 """HitTestXY(int x, int y) -> int"""
869 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
872 class CheckListBoxPtr(CheckListBox
):
873 def __init__(self
, this
):
875 if not hasattr(self
,"thisown"): self
.thisown
= 0
876 self
.__class
__ = CheckListBox
877 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
879 def PreCheckListBox(*args
, **kwargs
):
880 """PreCheckListBox() -> CheckListBox"""
881 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
885 #---------------------------------------------------------------------------
887 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
888 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
889 TE_READONLY
= _controls
.TE_READONLY
890 TE_MULTILINE
= _controls
.TE_MULTILINE
891 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
892 TE_LEFT
= _controls
.TE_LEFT
893 TE_CENTER
= _controls
.TE_CENTER
894 TE_RIGHT
= _controls
.TE_RIGHT
895 TE_CENTRE
= _controls
.TE_CENTRE
896 TE_RICH
= _controls
.TE_RICH
897 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
898 TE_PASSWORD
= _controls
.TE_PASSWORD
899 TE_AUTO_URL
= _controls
.TE_AUTO_URL
900 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
901 TE_DONTWRAP
= _controls
.TE_DONTWRAP
902 TE_LINEWRAP
= _controls
.TE_LINEWRAP
903 TE_WORDWRAP
= _controls
.TE_WORDWRAP
904 TE_RICH2
= _controls
.TE_RICH2
905 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
906 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
907 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
908 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
909 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
910 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
911 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
912 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
913 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
914 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
915 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
916 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
917 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
918 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
919 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
920 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
921 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
922 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
923 TE_HT_UNKNOWN
= _controls
.TE_HT_UNKNOWN
924 TE_HT_BEFORE
= _controls
.TE_HT_BEFORE
925 TE_HT_ON_TEXT
= _controls
.TE_HT_ON_TEXT
926 TE_HT_BELOW
= _controls
.TE_HT_BELOW
927 TE_HT_BEYOND
= _controls
.TE_HT_BEYOND
928 class TextAttr(object):
930 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
931 def __init__(self
, *args
):
933 __init__() -> TextAttr
934 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
935 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
937 newobj
= _controls
.new_TextAttr(*args
)
938 self
.this
= newobj
.this
941 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
944 if self
.thisown
: destroy(self
)
947 def Init(*args
, **kwargs
):
949 return _controls
.TextAttr_Init(*args
, **kwargs
)
951 def SetTextColour(*args
, **kwargs
):
952 """SetTextColour(Colour colText)"""
953 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
955 def SetBackgroundColour(*args
, **kwargs
):
956 """SetBackgroundColour(Colour colBack)"""
957 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
959 def SetFont(*args
, **kwargs
):
960 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
961 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
963 def SetAlignment(*args
, **kwargs
):
964 """SetAlignment(int alignment)"""
965 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
967 def SetTabs(*args
, **kwargs
):
968 """SetTabs(wxArrayInt tabs)"""
969 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
971 def SetLeftIndent(*args
, **kwargs
):
972 """SetLeftIndent(int indent)"""
973 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
975 def SetRightIndent(*args
, **kwargs
):
976 """SetRightIndent(int indent)"""
977 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
979 def SetFlags(*args
, **kwargs
):
980 """SetFlags(long flags)"""
981 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
983 def HasTextColour(*args
, **kwargs
):
984 """HasTextColour() -> bool"""
985 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
987 def HasBackgroundColour(*args
, **kwargs
):
988 """HasBackgroundColour() -> bool"""
989 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
991 def HasFont(*args
, **kwargs
):
992 """HasFont() -> bool"""
993 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
995 def HasAlignment(*args
, **kwargs
):
996 """HasAlignment() -> bool"""
997 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
999 def HasTabs(*args
, **kwargs
):
1000 """HasTabs() -> bool"""
1001 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
1003 def HasLeftIndent(*args
, **kwargs
):
1004 """HasLeftIndent() -> bool"""
1005 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1007 def HasRightIndent(*args
, **kwargs
):
1008 """HasRightIndent() -> bool"""
1009 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
1011 def HasFlag(*args
, **kwargs
):
1012 """HasFlag(long flag) -> bool"""
1013 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1015 def GetTextColour(*args
, **kwargs
):
1016 """GetTextColour() -> Colour"""
1017 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1019 def GetBackgroundColour(*args
, **kwargs
):
1020 """GetBackgroundColour() -> Colour"""
1021 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1023 def GetFont(*args
, **kwargs
):
1024 """GetFont() -> Font"""
1025 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1027 def GetAlignment(*args
, **kwargs
):
1028 """GetAlignment() -> int"""
1029 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1031 def GetTabs(*args
, **kwargs
):
1032 """GetTabs() -> wxArrayInt"""
1033 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1035 def GetLeftIndent(*args
, **kwargs
):
1036 """GetLeftIndent() -> long"""
1037 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1039 def GetRightIndent(*args
, **kwargs
):
1040 """GetRightIndent() -> long"""
1041 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1043 def GetFlags(*args
, **kwargs
):
1044 """GetFlags() -> long"""
1045 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1047 def IsDefault(*args
, **kwargs
):
1048 """IsDefault() -> bool"""
1049 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1051 def Combine(*args
, **kwargs
):
1052 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1053 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1055 Combine
= staticmethod(Combine
)
1057 class TextAttrPtr(TextAttr
):
1058 def __init__(self
, this
):
1060 if not hasattr(self
,"thisown"): self
.thisown
= 0
1061 self
.__class
__ = TextAttr
1062 _controls
.TextAttr_swigregister(TextAttrPtr
)
1063 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1065 def TextAttr_Combine(*args
, **kwargs
):
1066 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1067 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1069 class TextCtrl(core
.Control
):
1071 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1072 def __init__(self
, *args
, **kwargs
):
1074 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1075 Size size=DefaultSize,
1076 long style=0, Validator validator=DefaultValidator,
1077 String name=TextCtrlNameStr) -> TextCtrl
1079 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1080 self
.this
= newobj
.this
1083 self
._setOORInfo
(self
)
1085 def Create(*args
, **kwargs
):
1087 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1088 Size size=DefaultSize,
1089 long style=0, Validator validator=DefaultValidator,
1090 String name=TextCtrlNameStr) -> bool
1092 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1094 def GetValue(*args
, **kwargs
):
1095 """GetValue() -> String"""
1096 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1098 def SetValue(*args
, **kwargs
):
1099 """SetValue(String value)"""
1100 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1102 def GetRange(*args
, **kwargs
):
1103 """GetRange(long from, long to) -> String"""
1104 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1106 def GetLineLength(*args
, **kwargs
):
1107 """GetLineLength(long lineNo) -> int"""
1108 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1110 def GetLineText(*args
, **kwargs
):
1111 """GetLineText(long lineNo) -> String"""
1112 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1114 def GetNumberOfLines(*args
, **kwargs
):
1115 """GetNumberOfLines() -> int"""
1116 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1118 def IsModified(*args
, **kwargs
):
1119 """IsModified() -> bool"""
1120 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1122 def IsEditable(*args
, **kwargs
):
1123 """IsEditable() -> bool"""
1124 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1126 def IsSingleLine(*args
, **kwargs
):
1127 """IsSingleLine() -> bool"""
1128 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1130 def IsMultiLine(*args
, **kwargs
):
1131 """IsMultiLine() -> bool"""
1132 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1134 def GetSelection(*args
, **kwargs
):
1136 GetSelection() -> (from, to)
1138 If the return values from and to are the same, there is no selection.
1140 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1142 def GetStringSelection(*args
, **kwargs
):
1143 """GetStringSelection() -> String"""
1144 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1146 def Clear(*args
, **kwargs
):
1148 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1150 def Replace(*args
, **kwargs
):
1151 """Replace(long from, long to, String value)"""
1152 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1154 def Remove(*args
, **kwargs
):
1155 """Remove(long from, long to)"""
1156 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1158 def LoadFile(*args
, **kwargs
):
1159 """LoadFile(String file) -> bool"""
1160 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1162 def SaveFile(*args
, **kwargs
):
1163 """SaveFile(String file=EmptyString) -> bool"""
1164 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1166 def MarkDirty(*args
, **kwargs
):
1168 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1170 def DiscardEdits(*args
, **kwargs
):
1171 """DiscardEdits()"""
1172 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1174 def SetMaxLength(*args
, **kwargs
):
1175 """SetMaxLength(unsigned long len)"""
1176 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1178 def WriteText(*args
, **kwargs
):
1179 """WriteText(String text)"""
1180 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1182 def AppendText(*args
, **kwargs
):
1183 """AppendText(String text)"""
1184 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1186 def EmulateKeyPress(*args
, **kwargs
):
1187 """EmulateKeyPress(KeyEvent event) -> bool"""
1188 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1190 def SetStyle(*args
, **kwargs
):
1191 """SetStyle(long start, long end, TextAttr style) -> bool"""
1192 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1194 def GetStyle(*args
, **kwargs
):
1195 """GetStyle(long position, TextAttr style) -> bool"""
1196 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1198 def SetDefaultStyle(*args
, **kwargs
):
1199 """SetDefaultStyle(TextAttr style) -> bool"""
1200 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1202 def GetDefaultStyle(*args
, **kwargs
):
1203 """GetDefaultStyle() -> TextAttr"""
1204 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1206 def XYToPosition(*args
, **kwargs
):
1207 """XYToPosition(long x, long y) -> long"""
1208 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1210 def PositionToXY(*args
, **kwargs
):
1211 """PositionToXY(long pos) -> (x, y)"""
1212 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1214 def ShowPosition(*args
, **kwargs
):
1215 """ShowPosition(long pos)"""
1216 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1218 def HitTest(*args
, **kwargs
):
1220 HitTest(Point pt) -> (result, row, col)
1222 Find the character at position given in pixels.
1223 NB: pt is in device coords (not adjusted for the client area
1224 origin nor scrolling)
1226 return _controls
.TextCtrl_HitTest(*args
, **kwargs
)
1228 def Copy(*args
, **kwargs
):
1230 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1232 def Cut(*args
, **kwargs
):
1234 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1236 def Paste(*args
, **kwargs
):
1238 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1240 def CanCopy(*args
, **kwargs
):
1241 """CanCopy() -> bool"""
1242 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1244 def CanCut(*args
, **kwargs
):
1245 """CanCut() -> bool"""
1246 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1248 def CanPaste(*args
, **kwargs
):
1249 """CanPaste() -> bool"""
1250 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1252 def Undo(*args
, **kwargs
):
1254 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1256 def Redo(*args
, **kwargs
):
1258 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1260 def CanUndo(*args
, **kwargs
):
1261 """CanUndo() -> bool"""
1262 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1264 def CanRedo(*args
, **kwargs
):
1265 """CanRedo() -> bool"""
1266 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1268 def SetInsertionPoint(*args
, **kwargs
):
1269 """SetInsertionPoint(long pos)"""
1270 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1272 def SetInsertionPointEnd(*args
, **kwargs
):
1273 """SetInsertionPointEnd()"""
1274 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1276 def GetInsertionPoint(*args
, **kwargs
):
1277 """GetInsertionPoint() -> long"""
1278 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1280 def GetLastPosition(*args
, **kwargs
):
1281 """GetLastPosition() -> long"""
1282 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1284 def SetSelection(*args
, **kwargs
):
1285 """SetSelection(long from, long to)"""
1286 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1288 def SelectAll(*args
, **kwargs
):
1290 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1292 def SetEditable(*args
, **kwargs
):
1293 """SetEditable(bool editable)"""
1294 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1296 def write(*args
, **kwargs
):
1297 """write(String text)"""
1298 return _controls
.TextCtrl_write(*args
, **kwargs
)
1300 def GetString(*args
, **kwargs
):
1301 """GetString(long from, long to) -> String"""
1302 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1305 class TextCtrlPtr(TextCtrl
):
1306 def __init__(self
, this
):
1308 if not hasattr(self
,"thisown"): self
.thisown
= 0
1309 self
.__class
__ = TextCtrl
1310 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1312 def PreTextCtrl(*args
, **kwargs
):
1313 """PreTextCtrl() -> TextCtrl"""
1314 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1318 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1319 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1320 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1321 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1322 class TextUrlEvent(core
.CommandEvent
):
1324 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1325 def __init__(self
, *args
, **kwargs
):
1326 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1327 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1328 self
.this
= newobj
.this
1331 def GetMouseEvent(*args
, **kwargs
):
1332 """GetMouseEvent() -> MouseEvent"""
1333 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1335 def GetURLStart(*args
, **kwargs
):
1336 """GetURLStart() -> long"""
1337 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1339 def GetURLEnd(*args
, **kwargs
):
1340 """GetURLEnd() -> long"""
1341 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1344 class TextUrlEventPtr(TextUrlEvent
):
1345 def __init__(self
, this
):
1347 if not hasattr(self
,"thisown"): self
.thisown
= 0
1348 self
.__class
__ = TextUrlEvent
1349 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1351 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1352 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1353 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1354 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1356 #---------------------------------------------------------------------------
1358 class ScrollBar(core
.Control
):
1360 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1361 def __init__(self
, *args
, **kwargs
):
1363 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1364 Size size=DefaultSize, long style=SB_HORIZONTAL,
1365 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1367 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1368 self
.this
= newobj
.this
1371 self
._setOORInfo
(self
)
1373 def Create(*args
, **kwargs
):
1375 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1376 Size size=DefaultSize, long style=SB_HORIZONTAL,
1377 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1379 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1381 def GetThumbPosition(*args
, **kwargs
):
1382 """GetThumbPosition() -> int"""
1383 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1385 def GetThumbSize(*args
, **kwargs
):
1386 """GetThumbSize() -> int"""
1387 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1389 GetThumbLength
= GetThumbSize
1390 def GetPageSize(*args
, **kwargs
):
1391 """GetPageSize() -> int"""
1392 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1394 def GetRange(*args
, **kwargs
):
1395 """GetRange() -> int"""
1396 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1398 def IsVertical(*args
, **kwargs
):
1399 """IsVertical() -> bool"""
1400 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1402 def SetThumbPosition(*args
, **kwargs
):
1403 """SetThumbPosition(int viewStart)"""
1404 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1406 def SetScrollbar(*args
, **kwargs
):
1408 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1411 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1414 class ScrollBarPtr(ScrollBar
):
1415 def __init__(self
, this
):
1417 if not hasattr(self
,"thisown"): self
.thisown
= 0
1418 self
.__class
__ = ScrollBar
1419 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1420 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1422 def PreScrollBar(*args
, **kwargs
):
1423 """PreScrollBar() -> ScrollBar"""
1424 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1428 #---------------------------------------------------------------------------
1430 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1431 SP_VERTICAL
= _controls
.SP_VERTICAL
1432 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1433 SP_WRAP
= _controls
.SP_WRAP
1434 class SpinButton(core
.Control
):
1436 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1437 def __init__(self
, *args
, **kwargs
):
1439 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1440 Size size=DefaultSize, long style=SP_HORIZONTAL,
1441 String name=SPIN_BUTTON_NAME) -> SpinButton
1443 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1444 self
.this
= newobj
.this
1447 self
._setOORInfo
(self
)
1449 def Create(*args
, **kwargs
):
1451 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1452 Size size=DefaultSize, long style=SP_HORIZONTAL,
1453 String name=SPIN_BUTTON_NAME) -> bool
1455 return _controls
.SpinButton_Create(*args
, **kwargs
)
1457 def GetValue(*args
, **kwargs
):
1458 """GetValue() -> int"""
1459 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1461 def GetMin(*args
, **kwargs
):
1462 """GetMin() -> int"""
1463 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1465 def GetMax(*args
, **kwargs
):
1466 """GetMax() -> int"""
1467 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1469 def SetValue(*args
, **kwargs
):
1470 """SetValue(int val)"""
1471 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1473 def SetMin(*args
, **kwargs
):
1474 """SetMin(int minVal)"""
1475 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1477 def SetMax(*args
, **kwargs
):
1478 """SetMax(int maxVal)"""
1479 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1481 def SetRange(*args
, **kwargs
):
1482 """SetRange(int minVal, int maxVal)"""
1483 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1485 def IsVertical(*args
, **kwargs
):
1486 """IsVertical() -> bool"""
1487 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1490 class SpinButtonPtr(SpinButton
):
1491 def __init__(self
, this
):
1493 if not hasattr(self
,"thisown"): self
.thisown
= 0
1494 self
.__class
__ = SpinButton
1495 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1496 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1497 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1499 def PreSpinButton(*args
, **kwargs
):
1500 """PreSpinButton() -> SpinButton"""
1501 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1505 class SpinCtrl(core
.Control
):
1507 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1508 def __init__(self
, *args
, **kwargs
):
1510 __init__(Window parent, int id=-1, String value=EmptyString,
1511 Point pos=DefaultPosition, Size size=DefaultSize,
1512 long style=SP_ARROW_KEYS, int min=0, int max=100,
1513 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1515 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1516 self
.this
= newobj
.this
1519 self
._setOORInfo
(self
)
1521 def Create(*args
, **kwargs
):
1523 Create(Window parent, int id=-1, String value=EmptyString,
1524 Point pos=DefaultPosition, Size size=DefaultSize,
1525 long style=SP_ARROW_KEYS, int min=0, int max=100,
1526 int initial=0, String name=SpinCtrlNameStr) -> bool
1528 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1530 def GetValue(*args
, **kwargs
):
1531 """GetValue() -> int"""
1532 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1534 def SetValue(*args
, **kwargs
):
1535 """SetValue(int value)"""
1536 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1538 def SetValueString(*args
, **kwargs
):
1539 """SetValueString(String text)"""
1540 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1542 def SetRange(*args
, **kwargs
):
1543 """SetRange(int minVal, int maxVal)"""
1544 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1546 def GetMin(*args
, **kwargs
):
1547 """GetMin() -> int"""
1548 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1550 def GetMax(*args
, **kwargs
):
1551 """GetMax() -> int"""
1552 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1554 def SetSelection(*args
, **kwargs
):
1555 """SetSelection(long from, long to)"""
1556 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1559 class SpinCtrlPtr(SpinCtrl
):
1560 def __init__(self
, this
):
1562 if not hasattr(self
,"thisown"): self
.thisown
= 0
1563 self
.__class
__ = SpinCtrl
1564 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1566 def PreSpinCtrl(*args
, **kwargs
):
1567 """PreSpinCtrl() -> SpinCtrl"""
1568 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1572 class SpinEvent(core
.NotifyEvent
):
1574 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1575 def __init__(self
, *args
, **kwargs
):
1576 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1577 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1578 self
.this
= newobj
.this
1581 def GetPosition(*args
, **kwargs
):
1582 """GetPosition() -> int"""
1583 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1585 def SetPosition(*args
, **kwargs
):
1586 """SetPosition(int pos)"""
1587 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1590 class SpinEventPtr(SpinEvent
):
1591 def __init__(self
, this
):
1593 if not hasattr(self
,"thisown"): self
.thisown
= 0
1594 self
.__class
__ = SpinEvent
1595 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1597 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1598 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1599 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1600 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1601 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1603 #---------------------------------------------------------------------------
1605 class RadioBox(core
.Control
):
1607 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1608 def __init__(self
, *args
, **kwargs
):
1610 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1611 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1612 int majorDimension=0,
1613 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1614 String name=RadioBoxNameStr) -> RadioBox
1616 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1617 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1618 self
.this
= newobj
.this
1621 self
._setOORInfo
(self
)
1623 def Create(*args
, **kwargs
):
1625 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1626 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1627 int majorDimension=0,
1628 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1629 String name=RadioBoxNameStr) -> bool
1631 return _controls
.RadioBox_Create(*args
, **kwargs
)
1633 def SetSelection(*args
, **kwargs
):
1634 """SetSelection(int n)"""
1635 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1637 def GetSelection(*args
, **kwargs
):
1638 """GetSelection() -> int"""
1639 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1641 def GetStringSelection(*args
, **kwargs
):
1642 """GetStringSelection() -> String"""
1643 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1645 def SetStringSelection(*args
, **kwargs
):
1646 """SetStringSelection(String s) -> bool"""
1647 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1649 def GetCount(*args
, **kwargs
):
1650 """GetCount() -> int"""
1651 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1653 def FindString(*args
, **kwargs
):
1654 """FindString(String s) -> int"""
1655 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1657 def GetString(*args
, **kwargs
):
1658 """GetString(int n) -> String"""
1659 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1661 def SetString(*args
, **kwargs
):
1662 """SetString(int n, String label)"""
1663 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1665 GetItemLabel
= GetString
1666 SetItemLabel
= SetString
1667 def EnableItem(*args
, **kwargs
):
1668 """EnableItem(int n, bool enable=True)"""
1669 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1671 def ShowItem(*args
, **kwargs
):
1672 """ShowItem(int n, bool show=True)"""
1673 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1675 def GetColumnCount(*args
, **kwargs
):
1676 """GetColumnCount() -> int"""
1677 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1679 def GetRowCount(*args
, **kwargs
):
1680 """GetRowCount() -> int"""
1681 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1683 def GetNextItem(*args
, **kwargs
):
1684 """GetNextItem(int item, int dir, long style) -> int"""
1685 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1688 class RadioBoxPtr(RadioBox
):
1689 def __init__(self
, this
):
1691 if not hasattr(self
,"thisown"): self
.thisown
= 0
1692 self
.__class
__ = RadioBox
1693 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1694 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1695 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1697 def PreRadioBox(*args
, **kwargs
):
1698 """PreRadioBox() -> RadioBox"""
1699 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1703 #---------------------------------------------------------------------------
1705 class RadioButton(core
.Control
):
1707 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1708 def __init__(self
, *args
, **kwargs
):
1710 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1711 Size size=DefaultSize, long style=0,
1712 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1714 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1715 self
.this
= newobj
.this
1718 self
._setOORInfo
(self
)
1720 def Create(*args
, **kwargs
):
1722 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1723 Size size=DefaultSize, long style=0,
1724 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1726 return _controls
.RadioButton_Create(*args
, **kwargs
)
1728 def GetValue(*args
, **kwargs
):
1729 """GetValue() -> bool"""
1730 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1732 def SetValue(*args
, **kwargs
):
1733 """SetValue(bool value)"""
1734 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1737 class RadioButtonPtr(RadioButton
):
1738 def __init__(self
, this
):
1740 if not hasattr(self
,"thisown"): self
.thisown
= 0
1741 self
.__class
__ = RadioButton
1742 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1744 def PreRadioButton(*args
, **kwargs
):
1745 """PreRadioButton() -> RadioButton"""
1746 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1750 #---------------------------------------------------------------------------
1752 class Slider(core
.Control
):
1754 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1755 def __init__(self
, *args
, **kwargs
):
1757 __init__(Window parent, int id, int value, int minValue, int maxValue,
1758 Point pos=DefaultPosition, Size size=DefaultSize,
1759 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1760 String name=SliderNameStr) -> Slider
1762 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1763 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1764 self
.this
= newobj
.this
1767 self
._setOORInfo
(self
)
1769 def Create(*args
, **kwargs
):
1771 Create(Window parent, int id, int value, int minValue, int maxValue,
1772 Point pos=DefaultPosition, Size size=DefaultSize,
1773 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1774 String name=SliderNameStr) -> bool
1776 return _controls
.Slider_Create(*args
, **kwargs
)
1778 def GetValue(*args
, **kwargs
):
1779 """GetValue() -> int"""
1780 return _controls
.Slider_GetValue(*args
, **kwargs
)
1782 def SetValue(*args
, **kwargs
):
1783 """SetValue(int value)"""
1784 return _controls
.Slider_SetValue(*args
, **kwargs
)
1786 def SetRange(*args
, **kwargs
):
1787 """SetRange(int minValue, int maxValue)"""
1788 return _controls
.Slider_SetRange(*args
, **kwargs
)
1790 def GetMin(*args
, **kwargs
):
1791 """GetMin() -> int"""
1792 return _controls
.Slider_GetMin(*args
, **kwargs
)
1794 def GetMax(*args
, **kwargs
):
1795 """GetMax() -> int"""
1796 return _controls
.Slider_GetMax(*args
, **kwargs
)
1798 def SetMin(*args
, **kwargs
):
1799 """SetMin(int minValue)"""
1800 return _controls
.Slider_SetMin(*args
, **kwargs
)
1802 def SetMax(*args
, **kwargs
):
1803 """SetMax(int maxValue)"""
1804 return _controls
.Slider_SetMax(*args
, **kwargs
)
1806 def SetLineSize(*args
, **kwargs
):
1807 """SetLineSize(int lineSize)"""
1808 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1810 def SetPageSize(*args
, **kwargs
):
1811 """SetPageSize(int pageSize)"""
1812 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1814 def GetLineSize(*args
, **kwargs
):
1815 """GetLineSize() -> int"""
1816 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1818 def GetPageSize(*args
, **kwargs
):
1819 """GetPageSize() -> int"""
1820 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1822 def SetThumbLength(*args
, **kwargs
):
1823 """SetThumbLength(int lenPixels)"""
1824 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1826 def GetThumbLength(*args
, **kwargs
):
1827 """GetThumbLength() -> int"""
1828 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1830 def SetTickFreq(*args
, **kwargs
):
1831 """SetTickFreq(int n, int pos=1)"""
1832 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1834 def GetTickFreq(*args
, **kwargs
):
1835 """GetTickFreq() -> int"""
1836 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1838 def ClearTicks(*args
, **kwargs
):
1840 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1842 def SetTick(*args
, **kwargs
):
1843 """SetTick(int tickPos)"""
1844 return _controls
.Slider_SetTick(*args
, **kwargs
)
1846 def ClearSel(*args
, **kwargs
):
1848 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1850 def GetSelEnd(*args
, **kwargs
):
1851 """GetSelEnd() -> int"""
1852 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1854 def GetSelStart(*args
, **kwargs
):
1855 """GetSelStart() -> int"""
1856 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1858 def SetSelection(*args
, **kwargs
):
1859 """SetSelection(int min, int max)"""
1860 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1863 class SliderPtr(Slider
):
1864 def __init__(self
, this
):
1866 if not hasattr(self
,"thisown"): self
.thisown
= 0
1867 self
.__class
__ = Slider
1868 _controls
.Slider_swigregister(SliderPtr
)
1869 SliderNameStr
= cvar
.SliderNameStr
1871 def PreSlider(*args
, **kwargs
):
1872 """PreSlider() -> Slider"""
1873 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1877 #---------------------------------------------------------------------------
1879 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1880 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1882 class ToggleButton(core
.Control
):
1884 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1885 def __init__(self
, *args
, **kwargs
):
1887 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1888 Size size=DefaultSize, long style=0,
1889 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
1891 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1892 self
.this
= newobj
.this
1895 self
._setOORInfo
(self
)
1897 def Create(*args
, **kwargs
):
1899 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1900 Size size=DefaultSize, long style=0,
1901 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
1903 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1905 def SetValue(*args
, **kwargs
):
1906 """SetValue(bool value)"""
1907 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1909 def GetValue(*args
, **kwargs
):
1910 """GetValue() -> bool"""
1911 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1913 def SetLabel(*args
, **kwargs
):
1914 """SetLabel(String label)"""
1915 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1918 class ToggleButtonPtr(ToggleButton
):
1919 def __init__(self
, this
):
1921 if not hasattr(self
,"thisown"): self
.thisown
= 0
1922 self
.__class
__ = ToggleButton
1923 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1924 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
1926 def PreToggleButton(*args
, **kwargs
):
1927 """PreToggleButton() -> ToggleButton"""
1928 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1932 #---------------------------------------------------------------------------
1934 class BookCtrl(core
.Control
):
1935 def __init__(self
): raise RuntimeError, "No constructor defined"
1937 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1938 def GetPageCount(*args
, **kwargs
):
1939 """GetPageCount() -> size_t"""
1940 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1942 def GetPage(*args
, **kwargs
):
1943 """GetPage(size_t n) -> Window"""
1944 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1946 def GetSelection(*args
, **kwargs
):
1947 """GetSelection() -> int"""
1948 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1950 def SetPageText(*args
, **kwargs
):
1951 """SetPageText(size_t n, String strText) -> bool"""
1952 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1954 def GetPageText(*args
, **kwargs
):
1955 """GetPageText(size_t n) -> String"""
1956 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1958 def SetImageList(*args
, **kwargs
):
1959 """SetImageList(ImageList imageList)"""
1960 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1962 def AssignImageList(*args
, **kwargs
):
1963 """AssignImageList(ImageList imageList)"""
1964 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1966 def GetImageList(*args
, **kwargs
):
1967 """GetImageList() -> ImageList"""
1968 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1970 def GetPageImage(*args
, **kwargs
):
1971 """GetPageImage(size_t n) -> int"""
1972 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1974 def SetPageImage(*args
, **kwargs
):
1975 """SetPageImage(size_t n, int imageId) -> bool"""
1976 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1978 def SetPageSize(*args
, **kwargs
):
1979 """SetPageSize(Size size)"""
1980 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1982 def CalcSizeFromPage(*args
, **kwargs
):
1983 """CalcSizeFromPage(Size sizePage) -> Size"""
1984 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1986 def DeletePage(*args
, **kwargs
):
1987 """DeletePage(size_t n) -> bool"""
1988 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1990 def RemovePage(*args
, **kwargs
):
1991 """RemovePage(size_t n) -> bool"""
1992 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1994 def DeleteAllPages(*args
, **kwargs
):
1995 """DeleteAllPages() -> bool"""
1996 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1998 def AddPage(*args
, **kwargs
):
1999 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
2000 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
2002 def InsertPage(*args
, **kwargs
):
2004 InsertPage(size_t n, Window page, String text, bool select=False,
2005 int imageId=-1) -> bool
2007 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
2009 def SetSelection(*args
, **kwargs
):
2010 """SetSelection(size_t n) -> int"""
2011 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
2013 def AdvanceSelection(*args
, **kwargs
):
2014 """AdvanceSelection(bool forward=True)"""
2015 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2018 class BookCtrlPtr(BookCtrl
):
2019 def __init__(self
, this
):
2021 if not hasattr(self
,"thisown"): self
.thisown
= 0
2022 self
.__class
__ = BookCtrl
2023 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
2024 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2026 class BookCtrlEvent(core
.NotifyEvent
):
2028 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2029 def __init__(self
, *args
, **kwargs
):
2031 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2032 int nOldSel=-1) -> BookCtrlEvent
2034 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2035 self
.this
= newobj
.this
2038 def GetSelection(*args
, **kwargs
):
2039 """GetSelection() -> int"""
2040 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2042 def SetSelection(*args
, **kwargs
):
2043 """SetSelection(int nSel)"""
2044 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2046 def GetOldSelection(*args
, **kwargs
):
2047 """GetOldSelection() -> int"""
2048 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2050 def SetOldSelection(*args
, **kwargs
):
2051 """SetOldSelection(int nOldSel)"""
2052 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2055 class BookCtrlEventPtr(BookCtrlEvent
):
2056 def __init__(self
, this
):
2058 if not hasattr(self
,"thisown"): self
.thisown
= 0
2059 self
.__class
__ = BookCtrlEvent
2060 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2062 #---------------------------------------------------------------------------
2064 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2065 NB_TOP
= _controls
.NB_TOP
2066 NB_LEFT
= _controls
.NB_LEFT
2067 NB_RIGHT
= _controls
.NB_RIGHT
2068 NB_BOTTOM
= _controls
.NB_BOTTOM
2069 NB_MULTILINE
= _controls
.NB_MULTILINE
2070 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2071 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2072 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2073 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2074 class Notebook(BookCtrl
):
2076 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2077 def __init__(self
, *args
, **kwargs
):
2079 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2080 long style=0, String name=NOTEBOOK_NAME) -> Notebook
2082 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2083 self
.this
= newobj
.this
2086 self
._setOORInfo
(self
)
2088 def Create(*args
, **kwargs
):
2090 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2091 long style=0, String name=NOTEBOOK_NAME) -> bool
2093 return _controls
.Notebook_Create(*args
, **kwargs
)
2095 def GetRowCount(*args
, **kwargs
):
2096 """GetRowCount() -> int"""
2097 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2099 def SetPadding(*args
, **kwargs
):
2100 """SetPadding(Size padding)"""
2101 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2103 def SetTabSize(*args
, **kwargs
):
2104 """SetTabSize(Size sz)"""
2105 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2107 def HitTest(*args
, **kwargs
):
2109 HitTest(Point pt) -> (tab, where)
2111 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2113 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2115 def CalcSizeFromPage(*args
, **kwargs
):
2116 """CalcSizeFromPage(Size sizePage) -> Size"""
2117 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2120 class NotebookPtr(Notebook
):
2121 def __init__(self
, this
):
2123 if not hasattr(self
,"thisown"): self
.thisown
= 0
2124 self
.__class
__ = Notebook
2125 _controls
.Notebook_swigregister(NotebookPtr
)
2127 def PreNotebook(*args
, **kwargs
):
2128 """PreNotebook() -> Notebook"""
2129 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2133 class NotebookEvent(BookCtrlEvent
):
2135 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2136 def __init__(self
, *args
, **kwargs
):
2138 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2139 int nOldSel=-1) -> NotebookEvent
2141 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2142 self
.this
= newobj
.this
2146 class NotebookEventPtr(NotebookEvent
):
2147 def __init__(self
, this
):
2149 if not hasattr(self
,"thisown"): self
.thisown
= 0
2150 self
.__class
__ = NotebookEvent
2151 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2153 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2154 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2156 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2157 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2159 #----------------------------------------------------------------------------
2161 class NotebookPage(wx
.Panel
):
2163 There is an old (and apparently unsolvable) bug when placing a
2164 window with a nonstandard background colour in a wxNotebook on
2165 wxGTK, as the notbooks's background colour would always be used
2166 when the window is refreshed. The solution is to place a panel in
2167 the notbook and the coloured window on the panel, sized to cover
2168 the panel. This simple class does that for you, just put an
2169 instance of this in the notebook and make your regular window a
2170 child of this one and it will handle the resize for you.
2172 def __init__(self
, parent
, id=-1,
2173 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2174 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2175 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2177 EVT_SIZE(self
, self
.OnSize
)
2179 def OnSize(self
, evt
):
2180 if self
.child
is None:
2181 children
= self
.GetChildren()
2183 self
.child
= children
[0]
2185 self
.child
.SetPosition((0,0))
2186 self
.child
.SetSize(self
.GetSize())
2189 #---------------------------------------------------------------------------
2191 LB_DEFAULT
= _controls
.LB_DEFAULT
2192 LB_TOP
= _controls
.LB_TOP
2193 LB_BOTTOM
= _controls
.LB_BOTTOM
2194 LB_LEFT
= _controls
.LB_LEFT
2195 LB_RIGHT
= _controls
.LB_RIGHT
2196 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2197 class Listbook(BookCtrl
):
2199 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2200 def __init__(self
, *args
, **kwargs
):
2202 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2203 long style=0, String name=EmptyString) -> Listbook
2205 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2206 self
.this
= newobj
.this
2209 self
._setOORInfo
(self
)
2211 def Create(*args
, **kwargs
):
2213 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2214 long style=0, String name=EmptyString) -> bool
2216 return _controls
.Listbook_Create(*args
, **kwargs
)
2218 def IsVertical(*args
, **kwargs
):
2219 """IsVertical() -> bool"""
2220 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2223 class ListbookPtr(Listbook
):
2224 def __init__(self
, this
):
2226 if not hasattr(self
,"thisown"): self
.thisown
= 0
2227 self
.__class
__ = Listbook
2228 _controls
.Listbook_swigregister(ListbookPtr
)
2230 def PreListbook(*args
, **kwargs
):
2231 """PreListbook() -> Listbook"""
2232 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2236 class ListbookEvent(BookCtrlEvent
):
2238 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2239 def __init__(self
, *args
, **kwargs
):
2241 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2242 int nOldSel=-1) -> ListbookEvent
2244 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2245 self
.this
= newobj
.this
2249 class ListbookEventPtr(ListbookEvent
):
2250 def __init__(self
, this
):
2252 if not hasattr(self
,"thisown"): self
.thisown
= 0
2253 self
.__class
__ = ListbookEvent
2254 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2256 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2257 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2258 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2259 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2261 #---------------------------------------------------------------------------
2263 class BookCtrlSizer(core
.Sizer
):
2265 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2266 def __init__(self
, *args
, **kwargs
):
2267 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2268 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2269 self
.this
= newobj
.this
2272 self
._setOORInfo
(self
)
2274 def RecalcSizes(*args
, **kwargs
):
2276 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2278 def CalcMin(*args
, **kwargs
):
2279 """CalcMin() -> Size"""
2280 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2282 def GetControl(*args
, **kwargs
):
2283 """GetControl() -> BookCtrl"""
2284 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2287 class BookCtrlSizerPtr(BookCtrlSizer
):
2288 def __init__(self
, this
):
2290 if not hasattr(self
,"thisown"): self
.thisown
= 0
2291 self
.__class
__ = BookCtrlSizer
2292 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2294 class NotebookSizer(core
.Sizer
):
2296 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2297 def __init__(self
, *args
, **kwargs
):
2298 """__init__(Notebook nb) -> NotebookSizer"""
2299 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2300 self
.this
= newobj
.this
2303 self
._setOORInfo
(self
)
2305 def RecalcSizes(*args
, **kwargs
):
2307 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2309 def CalcMin(*args
, **kwargs
):
2310 """CalcMin() -> Size"""
2311 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2313 def GetNotebook(*args
, **kwargs
):
2314 """GetNotebook() -> Notebook"""
2315 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2318 class NotebookSizerPtr(NotebookSizer
):
2319 def __init__(self
, this
):
2321 if not hasattr(self
,"thisown"): self
.thisown
= 0
2322 self
.__class
__ = NotebookSizer
2323 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2325 #---------------------------------------------------------------------------
2327 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2328 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2329 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2330 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2331 TB_VERTICAL
= _controls
.TB_VERTICAL
2332 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2333 TB_FLAT
= _controls
.TB_FLAT
2334 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2335 TB_NOICONS
= _controls
.TB_NOICONS
2336 TB_TEXT
= _controls
.TB_TEXT
2337 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2338 TB_NOALIGN
= _controls
.TB_NOALIGN
2339 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2340 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2341 class ToolBarToolBase(core
.Object
):
2342 def __init__(self
): raise RuntimeError, "No constructor defined"
2344 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2345 def GetId(*args
, **kwargs
):
2346 """GetId() -> int"""
2347 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2349 def GetControl(*args
, **kwargs
):
2350 """GetControl() -> Control"""
2351 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2353 def GetToolBar(*args
, **kwargs
):
2354 """GetToolBar() -> ToolBarBase"""
2355 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2357 def IsButton(*args
, **kwargs
):
2358 """IsButton() -> int"""
2359 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2361 def IsControl(*args
, **kwargs
):
2362 """IsControl() -> int"""
2363 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2365 def IsSeparator(*args
, **kwargs
):
2366 """IsSeparator() -> int"""
2367 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2369 def GetStyle(*args
, **kwargs
):
2370 """GetStyle() -> int"""
2371 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2373 def GetKind(*args
, **kwargs
):
2374 """GetKind() -> int"""
2375 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2377 def IsEnabled(*args
, **kwargs
):
2378 """IsEnabled() -> bool"""
2379 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2381 def IsToggled(*args
, **kwargs
):
2382 """IsToggled() -> bool"""
2383 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2385 def CanBeToggled(*args
, **kwargs
):
2386 """CanBeToggled() -> bool"""
2387 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2389 def GetNormalBitmap(*args
, **kwargs
):
2390 """GetNormalBitmap() -> Bitmap"""
2391 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2393 def GetDisabledBitmap(*args
, **kwargs
):
2394 """GetDisabledBitmap() -> Bitmap"""
2395 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2397 def GetBitmap(*args
, **kwargs
):
2398 """GetBitmap() -> Bitmap"""
2399 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2401 def GetLabel(*args
, **kwargs
):
2402 """GetLabel() -> String"""
2403 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2405 def GetShortHelp(*args
, **kwargs
):
2406 """GetShortHelp() -> String"""
2407 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2409 def GetLongHelp(*args
, **kwargs
):
2410 """GetLongHelp() -> String"""
2411 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2413 def Enable(*args
, **kwargs
):
2414 """Enable(bool enable) -> bool"""
2415 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2417 def Toggle(*args
, **kwargs
):
2419 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2421 def SetToggle(*args
, **kwargs
):
2422 """SetToggle(bool toggle) -> bool"""
2423 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2425 def SetShortHelp(*args
, **kwargs
):
2426 """SetShortHelp(String help) -> bool"""
2427 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2429 def SetLongHelp(*args
, **kwargs
):
2430 """SetLongHelp(String help) -> bool"""
2431 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2433 def SetNormalBitmap(*args
, **kwargs
):
2434 """SetNormalBitmap(Bitmap bmp)"""
2435 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2437 def SetDisabledBitmap(*args
, **kwargs
):
2438 """SetDisabledBitmap(Bitmap bmp)"""
2439 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2441 def SetLabel(*args
, **kwargs
):
2442 """SetLabel(String label)"""
2443 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2445 def Detach(*args
, **kwargs
):
2447 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2449 def Attach(*args
, **kwargs
):
2450 """Attach(ToolBarBase tbar)"""
2451 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2453 def GetClientData(*args
, **kwargs
):
2454 """GetClientData() -> PyObject"""
2455 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2457 def SetClientData(*args
, **kwargs
):
2458 """SetClientData(PyObject clientData)"""
2459 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2461 GetBitmap1
= GetNormalBitmap
2462 GetBitmap2
= GetDisabledBitmap
2463 SetBitmap1
= SetNormalBitmap
2464 SetBitmap2
= SetDisabledBitmap
2467 class ToolBarToolBasePtr(ToolBarToolBase
):
2468 def __init__(self
, this
):
2470 if not hasattr(self
,"thisown"): self
.thisown
= 0
2471 self
.__class
__ = ToolBarToolBase
2472 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2474 class ToolBarBase(core
.Control
):
2475 def __init__(self
): raise RuntimeError, "No constructor defined"
2477 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2478 def DoAddTool(*args
, **kwargs
):
2480 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2481 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2482 String longHelp=EmptyString,
2483 PyObject clientData=None) -> ToolBarToolBase
2485 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2487 def DoInsertTool(*args
, **kwargs
):
2489 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2490 int kind=ITEM_NORMAL,
2491 String shortHelp=EmptyString, String longHelp=EmptyString,
2492 PyObject clientData=None) -> ToolBarToolBase
2494 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2496 # These match the original Add methods for this class, kept for
2497 # backwards compatibility with versions < 2.3.3.
2500 def AddTool(self
, id, bitmap
,
2501 pushedBitmap
= wx
.NullBitmap
,
2504 shortHelpString
= '',
2505 longHelpString
= '') :
2506 '''Old style method to add a tool to the toolbar.'''
2507 kind
= wx
.ITEM_NORMAL
2508 if isToggle
: kind
= wx
.ITEM_CHECK
2509 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2510 shortHelpString
, longHelpString
, clientData
)
2512 def AddSimpleTool(self
, id, bitmap
,
2513 shortHelpString
= '',
2514 longHelpString
= '',
2516 '''Old style method to add a tool to the toolbar.'''
2517 kind
= wx
.ITEM_NORMAL
2518 if isToggle
: kind
= wx
.ITEM_CHECK
2519 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2520 shortHelpString
, longHelpString
, None)
2522 def InsertTool(self
, pos
, id, bitmap
,
2523 pushedBitmap
= wx
.NullBitmap
,
2526 shortHelpString
= '',
2527 longHelpString
= ''):
2528 '''Old style method to insert a tool in the toolbar.'''
2529 kind
= wx
.ITEM_NORMAL
2530 if isToggle
: kind
= wx
.ITEM_CHECK
2531 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2532 shortHelpString
, longHelpString
, clientData
)
2534 def InsertSimpleTool(self
, pos
, id, bitmap
,
2535 shortHelpString
= '',
2536 longHelpString
= '',
2538 '''Old style method to insert a tool in the toolbar.'''
2539 kind
= wx
.ITEM_NORMAL
2540 if isToggle
: kind
= wx
.ITEM_CHECK
2541 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2542 shortHelpString
, longHelpString
, None)
2545 # The following are the new toolbar Add methods starting with
2546 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2547 # able to keep backwards compatibility with using the above
2548 # methods. Eventually these should migrate to be the methods used
2549 # primarily and lose the 'Label' in the name...
2551 def AddLabelTool(self
, id, label
, bitmap
,
2552 bmpDisabled
= wx
.NullBitmap
,
2553 kind
= wx
.ITEM_NORMAL
,
2554 shortHelp
= '', longHelp
= '',
2557 The full AddTool() function.
2559 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2560 is created and used as the disabled image.
2562 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2563 shortHelp
, longHelp
, clientData
)
2566 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2567 bmpDisabled
= wx
.NullBitmap
,
2568 kind
= wx
.ITEM_NORMAL
,
2569 shortHelp
= '', longHelp
= '',
2572 Insert the new tool at the given position, if pos == GetToolsCount(), it
2573 is equivalent to AddTool()
2575 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2576 shortHelp
, longHelp
, clientData
)
2578 def AddCheckLabelTool(self
, id, label
, bitmap
,
2579 bmpDisabled
= wx
.NullBitmap
,
2580 shortHelp
= '', longHelp
= '',
2582 '''Add a check tool, i.e. a tool which can be toggled'''
2583 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2584 shortHelp
, longHelp
, clientData
)
2586 def AddRadioLabelTool(self
, id, label
, bitmap
,
2587 bmpDisabled
= wx
.NullBitmap
,
2588 shortHelp
= '', longHelp
= '',
2591 Add a radio tool, i.e. a tool which can be toggled and releases any
2592 other toggled radio tools in the same group when it happens
2594 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2595 shortHelp
, longHelp
, clientData
)
2598 # For consistency with the backwards compatible methods above, here are
2599 # some non-'Label' versions of the Check and Radio methods
2600 def AddCheckTool(self
, id, bitmap
,
2601 bmpDisabled
= wx
.NullBitmap
,
2602 shortHelp
= '', longHelp
= '',
2604 '''Add a check tool, i.e. a tool which can be toggled'''
2605 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2606 shortHelp
, longHelp
, clientData
)
2608 def AddRadioTool(self
, id, bitmap
,
2609 bmpDisabled
= wx
.NullBitmap
,
2610 shortHelp
= '', longHelp
= '',
2613 Add a radio tool, i.e. a tool which can be toggled and releases any
2614 other toggled radio tools in the same group when it happens
2616 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2617 shortHelp
, longHelp
, clientData
)
2619 def AddToolItem(*args
, **kwargs
):
2620 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2621 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2623 def InsertToolItem(*args
, **kwargs
):
2624 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2625 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2627 def AddControl(*args
, **kwargs
):
2628 """AddControl(Control control) -> ToolBarToolBase"""
2629 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2631 def InsertControl(*args
, **kwargs
):
2632 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2633 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2635 def FindControl(*args
, **kwargs
):
2636 """FindControl(int id) -> Control"""
2637 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2639 def AddSeparator(*args
, **kwargs
):
2640 """AddSeparator() -> ToolBarToolBase"""
2641 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2643 def InsertSeparator(*args
, **kwargs
):
2644 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2645 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2647 def RemoveTool(*args
, **kwargs
):
2648 """RemoveTool(int id) -> ToolBarToolBase"""
2649 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2651 def DeleteToolByPos(*args
, **kwargs
):
2652 """DeleteToolByPos(size_t pos) -> bool"""
2653 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2655 def DeleteTool(*args
, **kwargs
):
2656 """DeleteTool(int id) -> bool"""
2657 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2659 def ClearTools(*args
, **kwargs
):
2661 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2663 def Realize(*args
, **kwargs
):
2664 """Realize() -> bool"""
2665 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2667 def EnableTool(*args
, **kwargs
):
2668 """EnableTool(int id, bool enable)"""
2669 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2671 def ToggleTool(*args
, **kwargs
):
2672 """ToggleTool(int id, bool toggle)"""
2673 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2675 def SetToggle(*args
, **kwargs
):
2676 """SetToggle(int id, bool toggle)"""
2677 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2679 def GetToolClientData(*args
, **kwargs
):
2680 """GetToolClientData(int id) -> PyObject"""
2681 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2683 def SetToolClientData(*args
, **kwargs
):
2684 """SetToolClientData(int id, PyObject clientData)"""
2685 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2687 def GetToolPos(*args
, **kwargs
):
2688 """GetToolPos(int id) -> int"""
2689 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2691 def GetToolState(*args
, **kwargs
):
2692 """GetToolState(int id) -> bool"""
2693 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2695 def GetToolEnabled(*args
, **kwargs
):
2696 """GetToolEnabled(int id) -> bool"""
2697 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2699 def SetToolShortHelp(*args
, **kwargs
):
2700 """SetToolShortHelp(int id, String helpString)"""
2701 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2703 def GetToolShortHelp(*args
, **kwargs
):
2704 """GetToolShortHelp(int id) -> String"""
2705 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2707 def SetToolLongHelp(*args
, **kwargs
):
2708 """SetToolLongHelp(int id, String helpString)"""
2709 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2711 def GetToolLongHelp(*args
, **kwargs
):
2712 """GetToolLongHelp(int id) -> String"""
2713 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2715 def SetMarginsXY(*args
, **kwargs
):
2716 """SetMarginsXY(int x, int y)"""
2717 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2719 def SetMargins(*args
, **kwargs
):
2720 """SetMargins(Size size)"""
2721 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2723 def SetToolPacking(*args
, **kwargs
):
2724 """SetToolPacking(int packing)"""
2725 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2727 def SetToolSeparation(*args
, **kwargs
):
2728 """SetToolSeparation(int separation)"""
2729 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2731 def GetToolMargins(*args
, **kwargs
):
2732 """GetToolMargins() -> Size"""
2733 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2735 def GetMargins(*args
, **kwargs
):
2736 """GetMargins() -> Size"""
2737 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2739 def GetToolPacking(*args
, **kwargs
):
2740 """GetToolPacking() -> int"""
2741 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2743 def GetToolSeparation(*args
, **kwargs
):
2744 """GetToolSeparation() -> int"""
2745 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2747 def SetRows(*args
, **kwargs
):
2748 """SetRows(int nRows)"""
2749 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2751 def SetMaxRowsCols(*args
, **kwargs
):
2752 """SetMaxRowsCols(int rows, int cols)"""
2753 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2755 def GetMaxRows(*args
, **kwargs
):
2756 """GetMaxRows() -> int"""
2757 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2759 def GetMaxCols(*args
, **kwargs
):
2760 """GetMaxCols() -> int"""
2761 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2763 def SetToolBitmapSize(*args
, **kwargs
):
2764 """SetToolBitmapSize(Size size)"""
2765 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2767 def GetToolBitmapSize(*args
, **kwargs
):
2768 """GetToolBitmapSize() -> Size"""
2769 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2771 def GetToolSize(*args
, **kwargs
):
2772 """GetToolSize() -> Size"""
2773 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2775 def FindToolForPosition(*args
, **kwargs
):
2776 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2777 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2779 def FindById(*args
, **kwargs
):
2780 """FindById(int toolid) -> ToolBarToolBase"""
2781 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2783 def IsVertical(*args
, **kwargs
):
2784 """IsVertical() -> bool"""
2785 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2788 class ToolBarBasePtr(ToolBarBase
):
2789 def __init__(self
, this
):
2791 if not hasattr(self
,"thisown"): self
.thisown
= 0
2792 self
.__class
__ = ToolBarBase
2793 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2795 class ToolBar(ToolBarBase
):
2797 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2798 def __init__(self
, *args
, **kwargs
):
2800 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2801 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2802 String name=wxPyToolBarNameStr) -> ToolBar
2804 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2805 self
.this
= newobj
.this
2808 self
._setOORInfo
(self
)
2810 def Create(*args
, **kwargs
):
2812 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2813 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2814 String name=wxPyToolBarNameStr) -> bool
2816 return _controls
.ToolBar_Create(*args
, **kwargs
)
2818 def FindToolForPosition(*args
, **kwargs
):
2819 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2820 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2823 class ToolBarPtr(ToolBar
):
2824 def __init__(self
, this
):
2826 if not hasattr(self
,"thisown"): self
.thisown
= 0
2827 self
.__class
__ = ToolBar
2828 _controls
.ToolBar_swigregister(ToolBarPtr
)
2830 def PreToolBar(*args
, **kwargs
):
2831 """PreToolBar() -> ToolBar"""
2832 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2836 #---------------------------------------------------------------------------
2838 LC_VRULES
= _controls
.LC_VRULES
2839 LC_HRULES
= _controls
.LC_HRULES
2840 LC_ICON
= _controls
.LC_ICON
2841 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2842 LC_LIST
= _controls
.LC_LIST
2843 LC_REPORT
= _controls
.LC_REPORT
2844 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2845 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2846 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2847 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2848 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2849 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2850 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2851 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2852 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2853 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2854 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2855 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2856 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2857 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2858 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2859 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2860 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2861 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2862 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2863 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2864 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2865 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2866 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2867 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2868 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2869 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2870 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2871 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2872 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2873 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2874 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2875 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2876 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2877 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2878 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2879 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2880 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2881 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2882 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2883 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2884 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2885 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2886 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2887 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2888 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2889 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2890 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2891 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2892 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2893 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2894 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2895 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2896 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2897 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2898 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2899 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2900 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2901 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2902 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2903 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2904 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2905 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2906 #---------------------------------------------------------------------------
2908 class ListItemAttr(object):
2910 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2911 def __init__(self
, *args
, **kwargs
):
2913 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
2914 Font font=wxNullFont) -> ListItemAttr
2916 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2917 self
.this
= newobj
.this
2920 def SetTextColour(*args
, **kwargs
):
2921 """SetTextColour(Colour colText)"""
2922 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2924 def SetBackgroundColour(*args
, **kwargs
):
2925 """SetBackgroundColour(Colour colBack)"""
2926 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2928 def SetFont(*args
, **kwargs
):
2929 """SetFont(Font font)"""
2930 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2932 def HasTextColour(*args
, **kwargs
):
2933 """HasTextColour() -> bool"""
2934 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2936 def HasBackgroundColour(*args
, **kwargs
):
2937 """HasBackgroundColour() -> bool"""
2938 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2940 def HasFont(*args
, **kwargs
):
2941 """HasFont() -> bool"""
2942 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2944 def GetTextColour(*args
, **kwargs
):
2945 """GetTextColour() -> Colour"""
2946 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2948 def GetBackgroundColour(*args
, **kwargs
):
2949 """GetBackgroundColour() -> Colour"""
2950 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2952 def GetFont(*args
, **kwargs
):
2953 """GetFont() -> Font"""
2954 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2956 def Destroy(*args
, **kwargs
):
2958 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2961 class ListItemAttrPtr(ListItemAttr
):
2962 def __init__(self
, this
):
2964 if not hasattr(self
,"thisown"): self
.thisown
= 0
2965 self
.__class
__ = ListItemAttr
2966 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2967 ListCtrlNameStr
= cvar
.ListCtrlNameStr
2969 #---------------------------------------------------------------------------
2971 class ListItem(core
.Object
):
2973 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2974 def __init__(self
, *args
, **kwargs
):
2975 """__init__() -> ListItem"""
2976 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2977 self
.this
= newobj
.this
2980 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2983 if self
.thisown
: destroy(self
)
2986 def Clear(*args
, **kwargs
):
2988 return _controls
.ListItem_Clear(*args
, **kwargs
)
2990 def ClearAttributes(*args
, **kwargs
):
2991 """ClearAttributes()"""
2992 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2994 def SetMask(*args
, **kwargs
):
2995 """SetMask(long mask)"""
2996 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2998 def SetId(*args
, **kwargs
):
2999 """SetId(long id)"""
3000 return _controls
.ListItem_SetId(*args
, **kwargs
)
3002 def SetColumn(*args
, **kwargs
):
3003 """SetColumn(int col)"""
3004 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
3006 def SetState(*args
, **kwargs
):
3007 """SetState(long state)"""
3008 return _controls
.ListItem_SetState(*args
, **kwargs
)
3010 def SetStateMask(*args
, **kwargs
):
3011 """SetStateMask(long stateMask)"""
3012 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
3014 def SetText(*args
, **kwargs
):
3015 """SetText(String text)"""
3016 return _controls
.ListItem_SetText(*args
, **kwargs
)
3018 def SetImage(*args
, **kwargs
):
3019 """SetImage(int image)"""
3020 return _controls
.ListItem_SetImage(*args
, **kwargs
)
3022 def SetData(*args
, **kwargs
):
3023 """SetData(long data)"""
3024 return _controls
.ListItem_SetData(*args
, **kwargs
)
3026 def SetWidth(*args
, **kwargs
):
3027 """SetWidth(int width)"""
3028 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3030 def SetAlign(*args
, **kwargs
):
3031 """SetAlign(int align)"""
3032 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3034 def SetTextColour(*args
, **kwargs
):
3035 """SetTextColour(Colour colText)"""
3036 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3038 def SetBackgroundColour(*args
, **kwargs
):
3039 """SetBackgroundColour(Colour colBack)"""
3040 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3042 def SetFont(*args
, **kwargs
):
3043 """SetFont(Font font)"""
3044 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3046 def GetMask(*args
, **kwargs
):
3047 """GetMask() -> long"""
3048 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3050 def GetId(*args
, **kwargs
):
3051 """GetId() -> long"""
3052 return _controls
.ListItem_GetId(*args
, **kwargs
)
3054 def GetColumn(*args
, **kwargs
):
3055 """GetColumn() -> int"""
3056 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3058 def GetState(*args
, **kwargs
):
3059 """GetState() -> long"""
3060 return _controls
.ListItem_GetState(*args
, **kwargs
)
3062 def GetText(*args
, **kwargs
):
3063 """GetText() -> String"""
3064 return _controls
.ListItem_GetText(*args
, **kwargs
)
3066 def GetImage(*args
, **kwargs
):
3067 """GetImage() -> int"""
3068 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3070 def GetData(*args
, **kwargs
):
3071 """GetData() -> long"""
3072 return _controls
.ListItem_GetData(*args
, **kwargs
)
3074 def GetWidth(*args
, **kwargs
):
3075 """GetWidth() -> int"""
3076 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3078 def GetAlign(*args
, **kwargs
):
3079 """GetAlign() -> int"""
3080 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3082 def GetAttributes(*args
, **kwargs
):
3083 """GetAttributes() -> ListItemAttr"""
3084 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3086 def HasAttributes(*args
, **kwargs
):
3087 """HasAttributes() -> bool"""
3088 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3090 def GetTextColour(*args
, **kwargs
):
3091 """GetTextColour() -> Colour"""
3092 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3094 def GetBackgroundColour(*args
, **kwargs
):
3095 """GetBackgroundColour() -> Colour"""
3096 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3098 def GetFont(*args
, **kwargs
):
3099 """GetFont() -> Font"""
3100 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3102 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3103 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3104 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3105 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3106 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3107 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3108 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3109 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3110 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3111 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3113 class ListItemPtr(ListItem
):
3114 def __init__(self
, this
):
3116 if not hasattr(self
,"thisown"): self
.thisown
= 0
3117 self
.__class
__ = ListItem
3118 _controls
.ListItem_swigregister(ListItemPtr
)
3120 #---------------------------------------------------------------------------
3122 class ListEvent(core
.NotifyEvent
):
3124 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3125 def __init__(self
, *args
, **kwargs
):
3126 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3127 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3128 self
.this
= newobj
.this
3131 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3132 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3133 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3134 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3135 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3136 m_item
= property(_controls
.ListEvent_m_item_get
)
3137 def GetKeyCode(*args
, **kwargs
):
3138 """GetKeyCode() -> int"""
3139 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3141 GetCode
= GetKeyCode
3142 def GetIndex(*args
, **kwargs
):
3143 """GetIndex() -> long"""
3144 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3146 def GetColumn(*args
, **kwargs
):
3147 """GetColumn() -> int"""
3148 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3150 def GetPoint(*args
, **kwargs
):
3151 """GetPoint() -> Point"""
3152 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3154 GetPosition
= GetPoint
3155 def GetLabel(*args
, **kwargs
):
3156 """GetLabel() -> String"""
3157 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3159 def GetText(*args
, **kwargs
):
3160 """GetText() -> String"""
3161 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3163 def GetImage(*args
, **kwargs
):
3164 """GetImage() -> int"""
3165 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3167 def GetData(*args
, **kwargs
):
3168 """GetData() -> long"""
3169 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3171 def GetMask(*args
, **kwargs
):
3172 """GetMask() -> long"""
3173 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3175 def GetItem(*args
, **kwargs
):
3176 """GetItem() -> ListItem"""
3177 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3179 def GetCacheFrom(*args
, **kwargs
):
3180 """GetCacheFrom() -> long"""
3181 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3183 def GetCacheTo(*args
, **kwargs
):
3184 """GetCacheTo() -> long"""
3185 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3187 def IsEditCancelled(*args
, **kwargs
):
3188 """IsEditCancelled() -> bool"""
3189 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3191 def SetEditCanceled(*args
, **kwargs
):
3192 """SetEditCanceled(bool editCancelled)"""
3193 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3196 class ListEventPtr(ListEvent
):
3197 def __init__(self
, this
):
3199 if not hasattr(self
,"thisown"): self
.thisown
= 0
3200 self
.__class
__ = ListEvent
3201 _controls
.ListEvent_swigregister(ListEventPtr
)
3203 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3204 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3205 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3206 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3207 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3208 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3209 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3210 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3211 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3212 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3213 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3214 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3215 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3216 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3217 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3218 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3219 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3220 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3221 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3222 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3223 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3224 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3225 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3226 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3227 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3228 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3229 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3230 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3231 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3232 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3233 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3234 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3235 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3236 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3237 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3238 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3239 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3240 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3241 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3242 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3243 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3244 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3245 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3246 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3248 #---------------------------------------------------------------------------
3250 class ListCtrl(core
.Control
):
3252 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3253 def __init__(self
, *args
, **kwargs
):
3255 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3256 Size size=DefaultSize, long style=LC_ICON,
3257 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3259 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3260 self
.this
= newobj
.this
3263 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3265 def Create(*args
, **kwargs
):
3267 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3268 Size size=DefaultSize, long style=LC_ICON,
3269 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3271 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3273 def _setCallbackInfo(*args
, **kwargs
):
3274 """_setCallbackInfo(PyObject self, PyObject _class)"""
3275 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3277 def SetForegroundColour(*args
, **kwargs
):
3278 """SetForegroundColour(Colour col) -> bool"""
3279 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3281 def SetBackgroundColour(*args
, **kwargs
):
3282 """SetBackgroundColour(Colour col) -> bool"""
3283 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3285 def GetColumn(*args
, **kwargs
):
3286 """GetColumn(int col) -> ListItem"""
3287 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3288 if val
is not None: val
.thisown
= 1
3291 def SetColumn(*args
, **kwargs
):
3292 """SetColumn(int col, ListItem item) -> bool"""
3293 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3295 def GetColumnWidth(*args
, **kwargs
):
3296 """GetColumnWidth(int col) -> int"""
3297 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3299 def SetColumnWidth(*args
, **kwargs
):
3300 """SetColumnWidth(int col, int width) -> bool"""
3301 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3303 def GetCountPerPage(*args
, **kwargs
):
3304 """GetCountPerPage() -> int"""
3305 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3307 def GetViewRect(*args
, **kwargs
):
3308 """GetViewRect() -> Rect"""
3309 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3311 def GetItem(*args
, **kwargs
):
3312 """GetItem(long itemId, int col=0) -> ListItem"""
3313 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3314 if val
is not None: val
.thisown
= 1
3317 def SetItem(*args
, **kwargs
):
3318 """SetItem(ListItem info) -> bool"""
3319 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3321 def SetStringItem(*args
, **kwargs
):
3322 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3323 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3325 def GetItemState(*args
, **kwargs
):
3326 """GetItemState(long item, long stateMask) -> int"""
3327 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3329 def SetItemState(*args
, **kwargs
):
3330 """SetItemState(long item, long state, long stateMask) -> bool"""
3331 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3333 def SetItemImage(*args
, **kwargs
):
3334 """SetItemImage(long item, int image, int selImage) -> bool"""
3335 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3337 def GetItemText(*args
, **kwargs
):
3338 """GetItemText(long item) -> String"""
3339 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3341 def SetItemText(*args
, **kwargs
):
3342 """SetItemText(long item, String str)"""
3343 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3345 def GetItemData(*args
, **kwargs
):
3346 """GetItemData(long item) -> long"""
3347 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3349 def SetItemData(*args
, **kwargs
):
3350 """SetItemData(long item, long data) -> bool"""
3351 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3353 def GetItemPosition(*args
, **kwargs
):
3354 """GetItemPosition(long item) -> Point"""
3355 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3357 def GetItemRect(*args
, **kwargs
):
3358 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3359 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3361 def SetItemPosition(*args
, **kwargs
):
3362 """SetItemPosition(long item, Point pos) -> bool"""
3363 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3365 def GetItemCount(*args
, **kwargs
):
3366 """GetItemCount() -> int"""
3367 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3369 def GetColumnCount(*args
, **kwargs
):
3370 """GetColumnCount() -> int"""
3371 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3373 def GetItemSpacing(*args
, **kwargs
):
3374 """GetItemSpacing() -> Size"""
3375 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3377 def SetItemSpacing(*args
, **kwargs
):
3378 """SetItemSpacing(int spacing, bool isSmall=False)"""
3379 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3381 def GetSelectedItemCount(*args
, **kwargs
):
3382 """GetSelectedItemCount() -> int"""
3383 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3385 def GetTextColour(*args
, **kwargs
):
3386 """GetTextColour() -> Colour"""
3387 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3389 def SetTextColour(*args
, **kwargs
):
3390 """SetTextColour(Colour col)"""
3391 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3393 def GetTopItem(*args
, **kwargs
):
3394 """GetTopItem() -> long"""
3395 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3397 def SetSingleStyle(*args
, **kwargs
):
3398 """SetSingleStyle(long style, bool add=True)"""
3399 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3401 def SetWindowStyleFlag(*args
, **kwargs
):
3402 """SetWindowStyleFlag(long style)"""
3403 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3405 def GetNextItem(*args
, **kwargs
):
3406 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3407 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3409 def GetImageList(*args
, **kwargs
):
3410 """GetImageList(int which) -> ImageList"""
3411 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3413 def SetImageList(*args
, **kwargs
):
3414 """SetImageList(ImageList imageList, int which)"""
3415 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3417 def AssignImageList(*args
, **kwargs
):
3418 """AssignImageList(ImageList imageList, int which)"""
3419 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3421 def IsVirtual(*args
, **kwargs
):
3422 """IsVirtual() -> bool"""
3423 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3425 def RefreshItem(*args
, **kwargs
):
3426 """RefreshItem(long item)"""
3427 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3429 def RefreshItems(*args
, **kwargs
):
3430 """RefreshItems(long itemFrom, long itemTo)"""
3431 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3433 def Arrange(*args
, **kwargs
):
3434 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3435 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3437 def DeleteItem(*args
, **kwargs
):
3438 """DeleteItem(long item) -> bool"""
3439 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3441 def DeleteAllItems(*args
, **kwargs
):
3442 """DeleteAllItems() -> bool"""
3443 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3445 def DeleteColumn(*args
, **kwargs
):
3446 """DeleteColumn(int col) -> bool"""
3447 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3449 def DeleteAllColumns(*args
, **kwargs
):
3450 """DeleteAllColumns() -> bool"""
3451 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3453 def ClearAll(*args
, **kwargs
):
3455 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3457 def EditLabel(*args
, **kwargs
):
3458 """EditLabel(long item)"""
3459 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3461 def EnsureVisible(*args
, **kwargs
):
3462 """EnsureVisible(long item) -> bool"""
3463 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3465 def FindItem(*args
, **kwargs
):
3466 """FindItem(long start, String str, bool partial=False) -> long"""
3467 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3469 def FindItemData(*args
, **kwargs
):
3470 """FindItemData(long start, long data) -> long"""
3471 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3473 def FindItemAtPos(*args
, **kwargs
):
3474 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3475 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3477 def HitTest(*args
, **kwargs
):
3479 HitTest(Point point) -> (item, where)
3481 Determines which item (if any) is at the specified point,
3482 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3484 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3486 def InsertItem(*args
, **kwargs
):
3487 """InsertItem(ListItem info) -> long"""
3488 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3490 def InsertStringItem(*args
, **kwargs
):
3491 """InsertStringItem(long index, String label) -> long"""
3492 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3494 def InsertImageItem(*args
, **kwargs
):
3495 """InsertImageItem(long index, int imageIndex) -> long"""
3496 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3498 def InsertImageStringItem(*args
, **kwargs
):
3499 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3500 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3502 def InsertColumnInfo(*args
, **kwargs
):
3503 """InsertColumnInfo(long col, ListItem info) -> long"""
3504 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3506 def InsertColumn(*args
, **kwargs
):
3508 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3509 int width=-1) -> long
3511 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3513 def SetItemCount(*args
, **kwargs
):
3514 """SetItemCount(long count)"""
3515 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3517 def ScrollList(*args
, **kwargs
):
3518 """ScrollList(int dx, int dy) -> bool"""
3519 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3521 def SetItemTextColour(*args
, **kwargs
):
3522 """SetItemTextColour(long item, Colour col)"""
3523 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3525 def GetItemTextColour(*args
, **kwargs
):
3526 """GetItemTextColour(long item) -> Colour"""
3527 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3529 def SetItemBackgroundColour(*args
, **kwargs
):
3530 """SetItemBackgroundColour(long item, Colour col)"""
3531 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3533 def GetItemBackgroundColour(*args
, **kwargs
):
3534 """GetItemBackgroundColour(long item) -> Colour"""
3535 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3539 def Select(self
, idx
, on
=1):
3540 '''[de]select an item'''
3541 if on
: state
= wx
.LIST_STATE_SELECTED
3543 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3545 def Focus(self
, idx
):
3546 '''Focus and show the given item'''
3547 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3548 self
.EnsureVisible(idx
)
3550 def GetFocusedItem(self
):
3551 '''get the currently focused item or -1 if none'''
3552 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3554 def GetFirstSelected(self
, *args
):
3555 '''return first selected item, or -1 when none'''
3556 return self
.GetNextSelected(-1)
3558 def GetNextSelected(self
, item
):
3559 '''return subsequent selected items, or -1 when no more'''
3560 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3562 def IsSelected(self
, idx
):
3563 '''return True if the item is selected'''
3564 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3566 def SetColumnImage(self
, col
, image
):
3567 item
= self
.GetColumn(col
)
3568 # preserve all other attributes too
3569 item
.SetMask( wx
.LIST_MASK_STATE |
3571 wx
.LIST_MASK_IMAGE |
3574 wx
.LIST_MASK_WIDTH |
3575 wx
.LIST_MASK_FORMAT
)
3576 item
.SetImage(image
)
3577 self
.SetColumn(col
, item
)
3579 def ClearColumnImage(self
, col
):
3580 self
.SetColumnImage(col
, -1)
3582 def Append(self
, entry
):
3583 '''Append an item to the list control. The entry parameter should be a
3584 sequence with an item for each column'''
3590 pos
= self
.GetItemCount()
3591 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3592 for i
in range(1, len(entry
)):
3593 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3596 def SortItems(*args
, **kwargs
):
3597 """SortItems(PyObject func) -> bool"""
3598 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3600 def GetMainWindow(*args
, **kwargs
):
3601 """GetMainWindow() -> Window"""
3602 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3605 class ListCtrlPtr(ListCtrl
):
3606 def __init__(self
, this
):
3608 if not hasattr(self
,"thisown"): self
.thisown
= 0
3609 self
.__class
__ = ListCtrl
3610 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3612 def PreListCtrl(*args
, **kwargs
):
3613 """PreListCtrl() -> ListCtrl"""
3614 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3618 #---------------------------------------------------------------------------
3620 class ListView(ListCtrl
):
3622 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3623 def __init__(self
, *args
, **kwargs
):
3625 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3626 Size size=DefaultSize, long style=LC_REPORT,
3627 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3629 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3630 self
.this
= newobj
.this
3633 self
._setOORInfo
(self
)
3635 def Create(*args
, **kwargs
):
3637 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3638 Size size=DefaultSize, long style=LC_REPORT,
3639 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3641 return _controls
.ListView_Create(*args
, **kwargs
)
3643 def Select(*args
, **kwargs
):
3644 """Select(long n, bool on=True)"""
3645 return _controls
.ListView_Select(*args
, **kwargs
)
3647 def Focus(*args
, **kwargs
):
3648 """Focus(long index)"""
3649 return _controls
.ListView_Focus(*args
, **kwargs
)
3651 def GetFocusedItem(*args
, **kwargs
):
3652 """GetFocusedItem() -> long"""
3653 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3655 def GetNextSelected(*args
, **kwargs
):
3656 """GetNextSelected(long item) -> long"""
3657 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3659 def GetFirstSelected(*args
, **kwargs
):
3660 """GetFirstSelected() -> long"""
3661 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3663 def IsSelected(*args
, **kwargs
):
3664 """IsSelected(long index) -> bool"""
3665 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3667 def SetColumnImage(*args
, **kwargs
):
3668 """SetColumnImage(int col, int image)"""
3669 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3671 def ClearColumnImage(*args
, **kwargs
):
3672 """ClearColumnImage(int col)"""
3673 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3676 class ListViewPtr(ListView
):
3677 def __init__(self
, this
):
3679 if not hasattr(self
,"thisown"): self
.thisown
= 0
3680 self
.__class
__ = ListView
3681 _controls
.ListView_swigregister(ListViewPtr
)
3683 def PreListView(*args
, **kwargs
):
3684 """PreListView() -> ListView"""
3685 val
= _controls
.new_PreListView(*args
, **kwargs
)
3689 #---------------------------------------------------------------------------
3691 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3692 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3693 TR_NO_LINES
= _controls
.TR_NO_LINES
3694 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3695 TR_SINGLE
= _controls
.TR_SINGLE
3696 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3697 TR_EXTENDED
= _controls
.TR_EXTENDED
3698 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3699 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3700 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3701 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3702 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3703 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3704 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3705 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3706 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3707 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3708 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3709 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3710 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3711 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3712 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3713 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3714 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3715 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3716 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3717 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3718 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3719 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3720 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3721 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3722 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3723 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3724 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3725 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3726 #---------------------------------------------------------------------------
3728 class TreeItemId(object):
3730 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3731 def __init__(self
, *args
, **kwargs
):
3732 """__init__() -> TreeItemId"""
3733 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3734 self
.this
= newobj
.this
3737 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3740 if self
.thisown
: destroy(self
)
3743 def IsOk(*args
, **kwargs
):
3744 """IsOk() -> bool"""
3745 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3747 def __eq__(*args
, **kwargs
):
3748 """__eq__(TreeItemId other) -> bool"""
3749 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3751 def __ne__(*args
, **kwargs
):
3752 """__ne__(TreeItemId other) -> bool"""
3753 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3755 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3757 def __nonzero__(self
): return self
.IsOk()
3759 class TreeItemIdPtr(TreeItemId
):
3760 def __init__(self
, this
):
3762 if not hasattr(self
,"thisown"): self
.thisown
= 0
3763 self
.__class
__ = TreeItemId
3764 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3765 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3767 class TreeItemData(object):
3769 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3770 def __init__(self
, *args
, **kwargs
):
3771 """__init__(PyObject obj=None) -> TreeItemData"""
3772 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3773 self
.this
= newobj
.this
3776 def GetData(*args
, **kwargs
):
3777 """GetData() -> PyObject"""
3778 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3780 def SetData(*args
, **kwargs
):
3781 """SetData(PyObject obj)"""
3782 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3784 def GetId(*args
, **kwargs
):
3785 """GetId() -> TreeItemId"""
3786 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3788 def SetId(*args
, **kwargs
):
3789 """SetId(TreeItemId id)"""
3790 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3792 def Destroy(*args
, **kwargs
):
3794 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3797 class TreeItemDataPtr(TreeItemData
):
3798 def __init__(self
, this
):
3800 if not hasattr(self
,"thisown"): self
.thisown
= 0
3801 self
.__class
__ = TreeItemData
3802 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3804 #---------------------------------------------------------------------------
3806 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3807 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3808 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3809 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3810 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3811 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3812 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3813 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3814 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3815 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3816 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3817 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3818 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3819 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3820 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3821 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3822 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3823 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3824 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3825 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3826 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3827 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3828 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3829 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3830 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3831 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3832 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3833 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3834 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3835 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3836 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3837 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3838 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3839 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3840 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3841 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3842 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3843 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3844 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3845 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3847 class TreeEvent(core
.NotifyEvent
):
3849 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3850 def __init__(self
, *args
, **kwargs
):
3851 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3852 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3853 self
.this
= newobj
.this
3856 def GetItem(*args
, **kwargs
):
3857 """GetItem() -> TreeItemId"""
3858 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3860 def SetItem(*args
, **kwargs
):
3861 """SetItem(TreeItemId item)"""
3862 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3864 def GetOldItem(*args
, **kwargs
):
3865 """GetOldItem() -> TreeItemId"""
3866 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3868 def SetOldItem(*args
, **kwargs
):
3869 """SetOldItem(TreeItemId item)"""
3870 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3872 def GetPoint(*args
, **kwargs
):
3873 """GetPoint() -> Point"""
3874 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3876 def SetPoint(*args
, **kwargs
):
3877 """SetPoint(Point pt)"""
3878 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3880 def GetKeyEvent(*args
, **kwargs
):
3881 """GetKeyEvent() -> KeyEvent"""
3882 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3884 def GetKeyCode(*args
, **kwargs
):
3885 """GetKeyCode() -> int"""
3886 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3888 def SetKeyEvent(*args
, **kwargs
):
3889 """SetKeyEvent(KeyEvent evt)"""
3890 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3892 def GetLabel(*args
, **kwargs
):
3893 """GetLabel() -> String"""
3894 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3896 def SetLabel(*args
, **kwargs
):
3897 """SetLabel(String label)"""
3898 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3900 def IsEditCancelled(*args
, **kwargs
):
3901 """IsEditCancelled() -> bool"""
3902 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3904 def SetEditCanceled(*args
, **kwargs
):
3905 """SetEditCanceled(bool editCancelled)"""
3906 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3908 def SetToolTip(*args
, **kwargs
):
3909 """SetToolTip(String toolTip)"""
3910 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
3913 class TreeEventPtr(TreeEvent
):
3914 def __init__(self
, this
):
3916 if not hasattr(self
,"thisown"): self
.thisown
= 0
3917 self
.__class
__ = TreeEvent
3918 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3920 #---------------------------------------------------------------------------
3922 class TreeCtrl(core
.Control
):
3924 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3925 def __init__(self
, *args
, **kwargs
):
3927 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3928 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3929 Validator validator=DefaultValidator,
3930 String name=TreeCtrlNameStr) -> TreeCtrl
3932 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3933 self
.this
= newobj
.this
3936 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3938 def Create(*args
, **kwargs
):
3940 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3941 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3942 Validator validator=DefaultValidator,
3943 String name=TreeCtrlNameStr) -> bool
3945 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3947 def _setCallbackInfo(*args
, **kwargs
):
3948 """_setCallbackInfo(PyObject self, PyObject _class)"""
3949 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3951 def GetCount(*args
, **kwargs
):
3952 """GetCount() -> size_t"""
3953 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3955 def GetIndent(*args
, **kwargs
):
3956 """GetIndent() -> unsigned int"""
3957 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3959 def SetIndent(*args
, **kwargs
):
3960 """SetIndent(unsigned int indent)"""
3961 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3963 def GetSpacing(*args
, **kwargs
):
3964 """GetSpacing() -> unsigned int"""
3965 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3967 def SetSpacing(*args
, **kwargs
):
3968 """SetSpacing(unsigned int spacing)"""
3969 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3971 def GetImageList(*args
, **kwargs
):
3972 """GetImageList() -> ImageList"""
3973 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3975 def GetStateImageList(*args
, **kwargs
):
3976 """GetStateImageList() -> ImageList"""
3977 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3979 def SetImageList(*args
, **kwargs
):
3980 """SetImageList(ImageList imageList)"""
3981 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3983 def SetStateImageList(*args
, **kwargs
):
3984 """SetStateImageList(ImageList imageList)"""
3985 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3987 def AssignImageList(*args
, **kwargs
):
3988 """AssignImageList(ImageList imageList)"""
3989 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3991 def AssignStateImageList(*args
, **kwargs
):
3992 """AssignStateImageList(ImageList imageList)"""
3993 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3995 def GetItemText(*args
, **kwargs
):
3996 """GetItemText(TreeItemId item) -> String"""
3997 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3999 def GetItemImage(*args
, **kwargs
):
4000 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4001 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4003 def GetItemData(*args
, **kwargs
):
4004 """GetItemData(TreeItemId item) -> TreeItemData"""
4005 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
4007 def GetItemPyData(*args
, **kwargs
):
4008 """GetItemPyData(TreeItemId item) -> PyObject"""
4009 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4011 GetPyData
= GetItemPyData
4012 def GetItemTextColour(*args
, **kwargs
):
4013 """GetItemTextColour(TreeItemId item) -> Colour"""
4014 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4016 def GetItemBackgroundColour(*args
, **kwargs
):
4017 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
4018 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4020 def GetItemFont(*args
, **kwargs
):
4021 """GetItemFont(TreeItemId item) -> Font"""
4022 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4024 def SetItemText(*args
, **kwargs
):
4025 """SetItemText(TreeItemId item, String text)"""
4026 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4028 def SetItemImage(*args
, **kwargs
):
4029 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4030 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4032 def SetItemData(*args
, **kwargs
):
4033 """SetItemData(TreeItemId item, TreeItemData data)"""
4034 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4036 def SetItemPyData(*args
, **kwargs
):
4037 """SetItemPyData(TreeItemId item, PyObject obj)"""
4038 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4040 SetPyData
= SetItemPyData
4041 def SetItemHasChildren(*args
, **kwargs
):
4042 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4043 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4045 def SetItemBold(*args
, **kwargs
):
4046 """SetItemBold(TreeItemId item, bool bold=True)"""
4047 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4049 def SetItemTextColour(*args
, **kwargs
):
4050 """SetItemTextColour(TreeItemId item, Colour col)"""
4051 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4053 def SetItemBackgroundColour(*args
, **kwargs
):
4054 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4055 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4057 def SetItemFont(*args
, **kwargs
):
4058 """SetItemFont(TreeItemId item, Font font)"""
4059 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4061 def IsVisible(*args
, **kwargs
):
4062 """IsVisible(TreeItemId item) -> bool"""
4063 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4065 def ItemHasChildren(*args
, **kwargs
):
4066 """ItemHasChildren(TreeItemId item) -> bool"""
4067 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4069 def IsExpanded(*args
, **kwargs
):
4070 """IsExpanded(TreeItemId item) -> bool"""
4071 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4073 def IsSelected(*args
, **kwargs
):
4074 """IsSelected(TreeItemId item) -> bool"""
4075 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4077 def IsBold(*args
, **kwargs
):
4078 """IsBold(TreeItemId item) -> bool"""
4079 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4081 def GetChildrenCount(*args
, **kwargs
):
4082 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4083 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4085 def GetRootItem(*args
, **kwargs
):
4086 """GetRootItem() -> TreeItemId"""
4087 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4089 def GetSelection(*args
, **kwargs
):
4090 """GetSelection() -> TreeItemId"""
4091 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4093 def GetSelections(*args
, **kwargs
):
4094 """GetSelections() -> PyObject"""
4095 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4097 def GetItemParent(*args
, **kwargs
):
4098 """GetItemParent(TreeItemId item) -> TreeItemId"""
4099 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4101 def GetFirstChild(*args
, **kwargs
):
4102 """GetFirstChild(TreeItemId item) -> PyObject"""
4103 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4105 def GetNextChild(*args
, **kwargs
):
4106 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4107 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4109 def GetLastChild(*args
, **kwargs
):
4110 """GetLastChild(TreeItemId item) -> TreeItemId"""
4111 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4113 def GetNextSibling(*args
, **kwargs
):
4114 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4115 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4117 def GetPrevSibling(*args
, **kwargs
):
4118 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4119 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4121 def GetFirstVisibleItem(*args
, **kwargs
):
4122 """GetFirstVisibleItem() -> TreeItemId"""
4123 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4125 def GetNextVisible(*args
, **kwargs
):
4126 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4127 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4129 def GetPrevVisible(*args
, **kwargs
):
4130 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4131 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4133 def AddRoot(*args
, **kwargs
):
4134 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4135 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4137 def PrependItem(*args
, **kwargs
):
4139 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4140 TreeItemData data=None) -> TreeItemId
4142 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4144 def InsertItem(*args
, **kwargs
):
4146 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4147 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4149 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4151 def InsertItemBefore(*args
, **kwargs
):
4153 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4154 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4156 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4158 def AppendItem(*args
, **kwargs
):
4160 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4161 TreeItemData data=None) -> TreeItemId
4163 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4165 def Delete(*args
, **kwargs
):
4166 """Delete(TreeItemId item)"""
4167 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4169 def DeleteChildren(*args
, **kwargs
):
4170 """DeleteChildren(TreeItemId item)"""
4171 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4173 def DeleteAllItems(*args
, **kwargs
):
4174 """DeleteAllItems()"""
4175 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4177 def Expand(*args
, **kwargs
):
4178 """Expand(TreeItemId item)"""
4179 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4181 def Collapse(*args
, **kwargs
):
4182 """Collapse(TreeItemId item)"""
4183 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4185 def CollapseAndReset(*args
, **kwargs
):
4186 """CollapseAndReset(TreeItemId item)"""
4187 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4189 def Toggle(*args
, **kwargs
):
4190 """Toggle(TreeItemId item)"""
4191 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4193 def Unselect(*args
, **kwargs
):
4195 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4197 def UnselectItem(*args
, **kwargs
):
4198 """UnselectItem(TreeItemId item)"""
4199 return _controls
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4201 def UnselectAll(*args
, **kwargs
):
4203 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4205 def SelectItem(*args
, **kwargs
):
4206 """SelectItem(TreeItemId item, bool select=True)"""
4207 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4209 def ToggleItemSelection(*args
, **kwargs
):
4210 """ToggleItemSelection(TreeItemId item)"""
4211 return _controls
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4213 def EnsureVisible(*args
, **kwargs
):
4214 """EnsureVisible(TreeItemId item)"""
4215 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4217 def ScrollTo(*args
, **kwargs
):
4218 """ScrollTo(TreeItemId item)"""
4219 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4221 def EditLabel(*args
, **kwargs
):
4222 """EditLabel(TreeItemId item)"""
4223 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4225 def GetEditControl(*args
, **kwargs
):
4226 """GetEditControl() -> TextCtrl"""
4227 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4229 def SortChildren(*args
, **kwargs
):
4230 """SortChildren(TreeItemId item)"""
4231 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4233 def HitTest(*args
, **kwargs
):
4235 HitTest(Point point) -> (item, where)
4237 Determine which item (if any) belongs the given point. The
4238 coordinates specified are relative to the client area of tree ctrl
4239 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4243 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4245 def GetBoundingRect(*args
, **kwargs
):
4246 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4247 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4250 class TreeCtrlPtr(TreeCtrl
):
4251 def __init__(self
, this
):
4253 if not hasattr(self
,"thisown"): self
.thisown
= 0
4254 self
.__class
__ = TreeCtrl
4255 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4257 def PreTreeCtrl(*args
, **kwargs
):
4258 """PreTreeCtrl() -> TreeCtrl"""
4259 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4263 #---------------------------------------------------------------------------
4265 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4266 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4267 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4268 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4269 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4270 class GenericDirCtrl(core
.Control
):
4272 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4273 def __init__(self
, *args
, **kwargs
):
4275 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4276 Point pos=DefaultPosition, Size size=DefaultSize,
4277 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4278 String filter=EmptyString,
4279 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4281 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4282 self
.this
= newobj
.this
4285 self
._setOORInfo
(self
)
4287 def Create(*args
, **kwargs
):
4289 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4290 Point pos=DefaultPosition, Size size=DefaultSize,
4291 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4292 String filter=EmptyString,
4293 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4295 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4297 def ExpandPath(*args
, **kwargs
):
4298 """ExpandPath(String path) -> bool"""
4299 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4301 def GetDefaultPath(*args
, **kwargs
):
4302 """GetDefaultPath() -> String"""
4303 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4305 def SetDefaultPath(*args
, **kwargs
):
4306 """SetDefaultPath(String path)"""
4307 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4309 def GetPath(*args
, **kwargs
):
4310 """GetPath() -> String"""
4311 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4313 def GetFilePath(*args
, **kwargs
):
4314 """GetFilePath() -> String"""
4315 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4317 def SetPath(*args
, **kwargs
):
4318 """SetPath(String path)"""
4319 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4321 def ShowHidden(*args
, **kwargs
):
4322 """ShowHidden(bool show)"""
4323 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4325 def GetShowHidden(*args
, **kwargs
):
4326 """GetShowHidden() -> bool"""
4327 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4329 def GetFilter(*args
, **kwargs
):
4330 """GetFilter() -> String"""
4331 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4333 def SetFilter(*args
, **kwargs
):
4334 """SetFilter(String filter)"""
4335 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4337 def GetFilterIndex(*args
, **kwargs
):
4338 """GetFilterIndex() -> int"""
4339 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4341 def SetFilterIndex(*args
, **kwargs
):
4342 """SetFilterIndex(int n)"""
4343 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4345 def GetRootId(*args
, **kwargs
):
4346 """GetRootId() -> TreeItemId"""
4347 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4349 def GetTreeCtrl(*args
, **kwargs
):
4350 """GetTreeCtrl() -> TreeCtrl"""
4351 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4353 def GetFilterListCtrl(*args
, **kwargs
):
4354 """GetFilterListCtrl() -> DirFilterListCtrl"""
4355 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4357 def FindChild(*args
, **kwargs
):
4359 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4361 Find the child that matches the first part of 'path'. E.g. if a child path is
4362 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4363 If the path string has been used (we're at the leaf), done is set to True
4366 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4368 def DoResize(*args
, **kwargs
):
4370 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4372 def ReCreateTree(*args
, **kwargs
):
4373 """ReCreateTree()"""
4374 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4377 class GenericDirCtrlPtr(GenericDirCtrl
):
4378 def __init__(self
, this
):
4380 if not hasattr(self
,"thisown"): self
.thisown
= 0
4381 self
.__class
__ = GenericDirCtrl
4382 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4383 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4385 def PreGenericDirCtrl(*args
, **kwargs
):
4386 """PreGenericDirCtrl() -> GenericDirCtrl"""
4387 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4391 class DirFilterListCtrl(Choice
):
4393 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4394 def __init__(self
, *args
, **kwargs
):
4396 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4397 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4399 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4400 self
.this
= newobj
.this
4403 self
._setOORInfo
(self
)
4405 def Create(*args
, **kwargs
):
4407 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4408 Size size=DefaultSize, long style=0) -> bool
4410 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4412 def FillFilterList(*args
, **kwargs
):
4413 """FillFilterList(String filter, int defaultFilter)"""
4414 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4417 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4418 def __init__(self
, this
):
4420 if not hasattr(self
,"thisown"): self
.thisown
= 0
4421 self
.__class
__ = DirFilterListCtrl
4422 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4424 def PreDirFilterListCtrl(*args
, **kwargs
):
4425 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4426 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4430 #---------------------------------------------------------------------------
4432 class PyControl(core
.Control
):
4434 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4435 def __init__(self
, *args
, **kwargs
):
4437 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4438 long style=0, Validator validator=DefaultValidator,
4439 String name=ControlNameStr) -> PyControl
4441 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4442 self
.this
= newobj
.this
4445 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4447 def _setCallbackInfo(*args
, **kwargs
):
4448 """_setCallbackInfo(PyObject self, PyObject _class)"""
4449 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4451 def base_DoMoveWindow(*args
, **kwargs
):
4452 """base_DoMoveWindow(int x, int y, int width, int height)"""
4453 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4455 def base_DoSetSize(*args
, **kwargs
):
4456 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4457 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4459 def base_DoSetClientSize(*args
, **kwargs
):
4460 """base_DoSetClientSize(int width, int height)"""
4461 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4463 def base_DoSetVirtualSize(*args
, **kwargs
):
4464 """base_DoSetVirtualSize(int x, int y)"""
4465 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4467 def base_DoGetSize(*args
, **kwargs
):
4468 """base_DoGetSize() -> (width, height)"""
4469 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4471 def base_DoGetClientSize(*args
, **kwargs
):
4472 """base_DoGetClientSize() -> (width, height)"""
4473 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4475 def base_DoGetPosition(*args
, **kwargs
):
4476 """base_DoGetPosition() -> (x,y)"""
4477 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4479 def base_DoGetVirtualSize(*args
, **kwargs
):
4480 """base_DoGetVirtualSize() -> Size"""
4481 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4483 def base_DoGetBestSize(*args
, **kwargs
):
4484 """base_DoGetBestSize() -> Size"""
4485 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4487 def base_InitDialog(*args
, **kwargs
):
4488 """base_InitDialog()"""
4489 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4491 def base_TransferDataToWindow(*args
, **kwargs
):
4492 """base_TransferDataToWindow() -> bool"""
4493 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4495 def base_TransferDataFromWindow(*args
, **kwargs
):
4496 """base_TransferDataFromWindow() -> bool"""
4497 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4499 def base_Validate(*args
, **kwargs
):
4500 """base_Validate() -> bool"""
4501 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4503 def base_AcceptsFocus(*args
, **kwargs
):
4504 """base_AcceptsFocus() -> bool"""
4505 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4507 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4508 """base_AcceptsFocusFromKeyboard() -> bool"""
4509 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4511 def base_GetMaxSize(*args
, **kwargs
):
4512 """base_GetMaxSize() -> Size"""
4513 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4515 def base_AddChild(*args
, **kwargs
):
4516 """base_AddChild(Window child)"""
4517 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4519 def base_RemoveChild(*args
, **kwargs
):
4520 """base_RemoveChild(Window child)"""
4521 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4524 class PyControlPtr(PyControl
):
4525 def __init__(self
, this
):
4527 if not hasattr(self
,"thisown"): self
.thisown
= 0
4528 self
.__class
__ = PyControl
4529 _controls
.PyControl_swigregister(PyControlPtr
)
4531 #---------------------------------------------------------------------------
4533 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4534 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4535 wxEVT_HELP
= _controls
.wxEVT_HELP
4536 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4537 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4538 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4539 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4540 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4542 class HelpEvent(core
.CommandEvent
):
4544 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4545 def __init__(self
, *args
, **kwargs
):
4546 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4547 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4548 self
.this
= newobj
.this
4551 def GetPosition(*args
, **kwargs
):
4552 """GetPosition() -> Point"""
4553 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4555 def SetPosition(*args
, **kwargs
):
4556 """SetPosition(Point pos)"""
4557 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4559 def GetLink(*args
, **kwargs
):
4560 """GetLink() -> String"""
4561 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4563 def SetLink(*args
, **kwargs
):
4564 """SetLink(String link)"""
4565 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4567 def GetTarget(*args
, **kwargs
):
4568 """GetTarget() -> String"""
4569 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4571 def SetTarget(*args
, **kwargs
):
4572 """SetTarget(String target)"""
4573 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4576 class HelpEventPtr(HelpEvent
):
4577 def __init__(self
, this
):
4579 if not hasattr(self
,"thisown"): self
.thisown
= 0
4580 self
.__class
__ = HelpEvent
4581 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4583 class ContextHelp(core
.Object
):
4585 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4586 def __init__(self
, *args
, **kwargs
):
4587 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4588 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4589 self
.this
= newobj
.this
4592 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4595 if self
.thisown
: destroy(self
)
4598 def BeginContextHelp(*args
, **kwargs
):
4599 """BeginContextHelp(Window window=None) -> bool"""
4600 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4602 def EndContextHelp(*args
, **kwargs
):
4603 """EndContextHelp() -> bool"""
4604 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4607 class ContextHelpPtr(ContextHelp
):
4608 def __init__(self
, this
):
4610 if not hasattr(self
,"thisown"): self
.thisown
= 0
4611 self
.__class
__ = ContextHelp
4612 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4614 class ContextHelpButton(BitmapButton
):
4616 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4617 def __init__(self
, *args
, **kwargs
):
4619 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4620 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4622 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4623 self
.this
= newobj
.this
4626 self
._setOORInfo
(self
)
4629 class ContextHelpButtonPtr(ContextHelpButton
):
4630 def __init__(self
, this
):
4632 if not hasattr(self
,"thisown"): self
.thisown
= 0
4633 self
.__class
__ = ContextHelpButton
4634 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4636 class HelpProvider(object):
4637 def __init__(self
): raise RuntimeError, "No constructor defined"
4639 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4640 def Set(*args
, **kwargs
):
4641 """Set(HelpProvider helpProvider) -> HelpProvider"""
4642 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4644 Set
= staticmethod(Set
)
4645 def Get(*args
, **kwargs
):
4646 """Get() -> HelpProvider"""
4647 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4649 Get
= staticmethod(Get
)
4650 def GetHelp(*args
, **kwargs
):
4651 """GetHelp(Window window) -> String"""
4652 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4654 def ShowHelp(*args
, **kwargs
):
4655 """ShowHelp(Window window) -> bool"""
4656 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4658 def AddHelp(*args
, **kwargs
):
4659 """AddHelp(Window window, String text)"""
4660 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4662 def AddHelpById(*args
, **kwargs
):
4663 """AddHelpById(int id, String text)"""
4664 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4666 def Destroy(*args
, **kwargs
):
4668 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4671 class HelpProviderPtr(HelpProvider
):
4672 def __init__(self
, this
):
4674 if not hasattr(self
,"thisown"): self
.thisown
= 0
4675 self
.__class
__ = HelpProvider
4676 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4678 def HelpProvider_Set(*args
, **kwargs
):
4679 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4680 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4682 def HelpProvider_Get(*args
, **kwargs
):
4683 """HelpProvider_Get() -> HelpProvider"""
4684 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4686 class SimpleHelpProvider(HelpProvider
):
4688 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4689 def __init__(self
, *args
, **kwargs
):
4690 """__init__() -> SimpleHelpProvider"""
4691 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4692 self
.this
= newobj
.this
4696 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4697 def __init__(self
, this
):
4699 if not hasattr(self
,"thisown"): self
.thisown
= 0
4700 self
.__class
__ = SimpleHelpProvider
4701 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4703 #---------------------------------------------------------------------------
4705 class DragImage(core
.Object
):
4707 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4708 def __init__(self
, *args
, **kwargs
):
4709 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4710 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4711 self
.this
= newobj
.this
4714 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4717 if self
.thisown
: destroy(self
)
4720 def SetBackingBitmap(*args
, **kwargs
):
4721 """SetBackingBitmap(Bitmap bitmap)"""
4722 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4724 def BeginDrag(*args
, **kwargs
):
4726 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4727 Rect rect=None) -> bool
4729 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4731 def BeginDragBounded(*args
, **kwargs
):
4732 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4733 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4735 def EndDrag(*args
, **kwargs
):
4736 """EndDrag() -> bool"""
4737 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4739 def Move(*args
, **kwargs
):
4740 """Move(Point pt) -> bool"""
4741 return _controls
.DragImage_Move(*args
, **kwargs
)
4743 def Show(*args
, **kwargs
):
4744 """Show() -> bool"""
4745 return _controls
.DragImage_Show(*args
, **kwargs
)
4747 def Hide(*args
, **kwargs
):
4748 """Hide() -> bool"""
4749 return _controls
.DragImage_Hide(*args
, **kwargs
)
4751 def GetImageRect(*args
, **kwargs
):
4752 """GetImageRect(Point pos) -> Rect"""
4753 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4755 def DoDrawImage(*args
, **kwargs
):
4756 """DoDrawImage(DC dc, Point pos) -> bool"""
4757 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4759 def UpdateBackingFromWindow(*args
, **kwargs
):
4760 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4761 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4763 def RedrawImage(*args
, **kwargs
):
4764 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4765 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4768 class DragImagePtr(DragImage
):
4769 def __init__(self
, this
):
4771 if not hasattr(self
,"thisown"): self
.thisown
= 0
4772 self
.__class
__ = DragImage
4773 _controls
.DragImage_swigregister(DragImagePtr
)
4775 def DragIcon(*args
, **kwargs
):
4776 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
4777 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4781 def DragString(*args
, **kwargs
):
4782 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4783 val
= _controls
.new_DragString(*args
, **kwargs
)
4787 def DragTreeItem(*args
, **kwargs
):
4788 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4789 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4793 def DragListItem(*args
, **kwargs
):
4794 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4795 val
= _controls
.new_DragListItem(*args
, **kwargs
)