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
):
87 A Button that contains a bitmap. A bitmap button can be supplied with a
88 single bitmap, and wxWindows will draw all button states using this bitmap. If
89 the application needs more control, additional bitmaps for the selected state,
90 unpressed focused state, and greyed-out state may be supplied.
94 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
95 def __init__(self
, *args
, **kwargs
):
97 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
98 Size size=DefaultSize, long style=BU_AUTODRAW,
99 Validator validator=DefaultValidator,
100 String name=ButtonNameStr) -> BitmapButton
102 Create and show a button with a bitmap for the label.
104 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
105 self
.this
= newobj
.this
108 self
._setOORInfo
(self
)
110 def Create(*args
, **kwargs
):
112 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=BU_AUTODRAW,
114 Validator validator=DefaultValidator,
115 String name=ButtonNameStr) -> bool
117 Acutally create the GUI BitmapButton for 2-phase creation.
119 return _controls
.BitmapButton_Create(*args
, **kwargs
)
121 def GetBitmapLabel(*args
, **kwargs
):
123 GetBitmapLabel() -> Bitmap
125 Returns the label bitmap (the one passed to the constructor).
127 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
129 def GetBitmapDisabled(*args
, **kwargs
):
131 GetBitmapDisabled() -> Bitmap
133 Returns the bitmap for the disabled state.
135 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
137 def GetBitmapFocus(*args
, **kwargs
):
139 GetBitmapFocus() -> Bitmap
141 Returns the bitmap for the focused state.
143 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
145 def GetBitmapSelected(*args
, **kwargs
):
147 GetBitmapSelected() -> Bitmap
149 Returns the bitmap for the selected state.
151 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
153 def SetBitmapDisabled(*args
, **kwargs
):
155 SetBitmapDisabled(Bitmap bitmap)
157 Sets the bitmap for the disabled button appearance.
159 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
161 def SetBitmapFocus(*args
, **kwargs
):
163 SetBitmapFocus(Bitmap bitmap)
165 Sets the bitmap for the button appearance when it has the keyboard focus.
167 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
169 def SetBitmapSelected(*args
, **kwargs
):
171 SetBitmapSelected(Bitmap bitmap)
173 Sets the bitmap for the selected (depressed) button appearance.
175 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
177 def SetBitmapLabel(*args
, **kwargs
):
179 SetBitmapLabel(Bitmap bitmap)
181 Sets the bitmap label for the button. This is the bitmap used for the
182 unselected state, and for all other states if no other bitmaps are provided.
184 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
186 def SetMargins(*args
, **kwargs
):
187 """SetMargins(int x, int y)"""
188 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
190 def GetMarginX(*args
, **kwargs
):
191 """GetMarginX() -> int"""
192 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
194 def GetMarginY(*args
, **kwargs
):
195 """GetMarginY() -> int"""
196 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
199 class BitmapButtonPtr(BitmapButton
):
200 def __init__(self
, this
):
202 if not hasattr(self
,"thisown"): self
.thisown
= 0
203 self
.__class
__ = BitmapButton
204 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
206 def PreBitmapButton(*args
, **kwargs
):
208 PreBitmapButton() -> BitmapButton
210 Precreate a BitmapButton for 2-phase creation.
212 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
216 #---------------------------------------------------------------------------
218 CHK_2STATE
= _controls
.CHK_2STATE
219 CHK_3STATE
= _controls
.CHK_3STATE
220 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
221 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
222 CHK_CHECKED
= _controls
.CHK_CHECKED
223 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
224 class CheckBox(core
.Control
):
226 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
227 def __init__(self
, *args
, **kwargs
):
229 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
230 Size size=DefaultSize, long style=0,
231 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
233 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
234 self
.this
= newobj
.this
237 self
._setOORInfo
(self
)
239 def Create(*args
, **kwargs
):
241 Create(Window parent, int id, String label, Point pos=DefaultPosition,
242 Size size=DefaultSize, long style=0,
243 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
245 return _controls
.CheckBox_Create(*args
, **kwargs
)
247 def GetValue(*args
, **kwargs
):
248 """GetValue() -> bool"""
249 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
251 def IsChecked(*args
, **kwargs
):
252 """IsChecked() -> bool"""
253 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
255 def SetValue(*args
, **kwargs
):
256 """SetValue(bool state)"""
257 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
259 def Get3StateValue(*args
, **kwargs
):
260 """Get3StateValue() -> int"""
261 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
263 def Set3StateValue(*args
, **kwargs
):
264 """Set3StateValue(int state)"""
265 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
267 def Is3State(*args
, **kwargs
):
268 """Is3State() -> bool"""
269 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
271 def Is3rdStateAllowedForUser(*args
, **kwargs
):
272 """Is3rdStateAllowedForUser() -> bool"""
273 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
276 class CheckBoxPtr(CheckBox
):
277 def __init__(self
, this
):
279 if not hasattr(self
,"thisown"): self
.thisown
= 0
280 self
.__class
__ = CheckBox
281 _controls
.CheckBox_swigregister(CheckBoxPtr
)
282 CheckBoxNameStr
= cvar
.CheckBoxNameStr
284 def PreCheckBox(*args
, **kwargs
):
285 """PreCheckBox() -> CheckBox"""
286 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
290 #---------------------------------------------------------------------------
292 class Choice(core
.ControlWithItems
):
294 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
295 def __init__(self
, *args
, **kwargs
):
297 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
298 wxArrayString choices=wxPyEmptyStringArray,
299 long style=0, Validator validator=DefaultValidator,
300 String name=ChoiceNameStr) -> Choice
302 newobj
= _controls
.new_Choice(*args
, **kwargs
)
303 self
.this
= newobj
.this
306 self
._setOORInfo
(self
)
308 def Create(*args
, **kwargs
):
310 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
311 wxArrayString choices=wxPyEmptyStringArray,
312 long style=0, Validator validator=DefaultValidator,
313 String name=ChoiceNameStr) -> bool
315 return _controls
.Choice_Create(*args
, **kwargs
)
317 def GetColumns(*args
, **kwargs
):
318 """GetColumns() -> int"""
319 return _controls
.Choice_GetColumns(*args
, **kwargs
)
321 def SetColumns(*args
, **kwargs
):
322 """SetColumns(int n=1)"""
323 return _controls
.Choice_SetColumns(*args
, **kwargs
)
325 def SetSelection(*args
, **kwargs
):
326 """SetSelection(int n)"""
327 return _controls
.Choice_SetSelection(*args
, **kwargs
)
329 def SetStringSelection(*args
, **kwargs
):
330 """SetStringSelection(String string)"""
331 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
333 def SetString(*args
, **kwargs
):
334 """SetString(int n, String s)"""
335 return _controls
.Choice_SetString(*args
, **kwargs
)
338 class ChoicePtr(Choice
):
339 def __init__(self
, this
):
341 if not hasattr(self
,"thisown"): self
.thisown
= 0
342 self
.__class
__ = Choice
343 _controls
.Choice_swigregister(ChoicePtr
)
344 ChoiceNameStr
= cvar
.ChoiceNameStr
346 def PreChoice(*args
, **kwargs
):
347 """PreChoice() -> Choice"""
348 val
= _controls
.new_PreChoice(*args
, **kwargs
)
352 #---------------------------------------------------------------------------
354 class ComboBox(core
.Control
,core
.ItemContainer
):
356 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
357 def __init__(self
, *args
, **kwargs
):
359 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
360 Size size=DefaultSize,
361 wxArrayString choices=wxPyEmptyStringArray,
362 long style=0, Validator validator=DefaultValidator,
363 String name=ComboBoxNameStr) -> ComboBox
365 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
366 self
.this
= newobj
.this
369 self
._setOORInfo
(self
)
371 def Create(*args
, **kwargs
):
373 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
374 Size size=DefaultSize,
375 wxArrayString choices=wxPyEmptyStringArray,
376 long style=0, Validator validator=DefaultValidator,
377 String name=ComboBoxNameStr) -> bool
379 return _controls
.ComboBox_Create(*args
, **kwargs
)
381 def GetValue(*args
, **kwargs
):
382 """GetValue() -> String"""
383 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
385 def SetValue(*args
, **kwargs
):
386 """SetValue(String value)"""
387 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
389 def Copy(*args
, **kwargs
):
391 return _controls
.ComboBox_Copy(*args
, **kwargs
)
393 def Cut(*args
, **kwargs
):
395 return _controls
.ComboBox_Cut(*args
, **kwargs
)
397 def Paste(*args
, **kwargs
):
399 return _controls
.ComboBox_Paste(*args
, **kwargs
)
401 def SetInsertionPoint(*args
, **kwargs
):
402 """SetInsertionPoint(long pos)"""
403 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
405 def GetInsertionPoint(*args
, **kwargs
):
406 """GetInsertionPoint() -> long"""
407 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
409 def GetLastPosition(*args
, **kwargs
):
410 """GetLastPosition() -> long"""
411 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
413 def Replace(*args
, **kwargs
):
414 """Replace(long from, long to, String value)"""
415 return _controls
.ComboBox_Replace(*args
, **kwargs
)
417 def SetSelection(*args
, **kwargs
):
418 """SetSelection(int n)"""
419 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
421 def SetMark(*args
, **kwargs
):
422 """SetMark(long from, long to)"""
423 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
425 def SetEditable(*args
, **kwargs
):
426 """SetEditable(bool editable)"""
427 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
429 def SetInsertionPointEnd(*args
, **kwargs
):
430 """SetInsertionPointEnd()"""
431 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
433 def Remove(*args
, **kwargs
):
434 """Remove(long from, long to)"""
435 return _controls
.ComboBox_Remove(*args
, **kwargs
)
438 class ComboBoxPtr(ComboBox
):
439 def __init__(self
, this
):
441 if not hasattr(self
,"thisown"): self
.thisown
= 0
442 self
.__class
__ = ComboBox
443 _controls
.ComboBox_swigregister(ComboBoxPtr
)
444 ComboBoxNameStr
= cvar
.ComboBoxNameStr
446 def PreComboBox(*args
, **kwargs
):
447 """PreComboBox() -> ComboBox"""
448 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
452 #---------------------------------------------------------------------------
454 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
455 GA_VERTICAL
= _controls
.GA_VERTICAL
456 GA_SMOOTH
= _controls
.GA_SMOOTH
457 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
458 class Gauge(core
.Control
):
460 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
461 def __init__(self
, *args
, **kwargs
):
463 __init__(Window parent, int id, int range, Point pos=DefaultPosition,
464 Size size=DefaultSize, long style=GA_HORIZONTAL,
465 Validator validator=DefaultValidator,
466 String name=GaugeNameStr) -> Gauge
468 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
469 self
.this
= newobj
.this
472 self
._setOORInfo
(self
)
474 def Create(*args
, **kwargs
):
476 Create(Window parent, int id, int range, Point pos=DefaultPosition,
477 Size size=DefaultSize, long style=GA_HORIZONTAL,
478 Validator validator=DefaultValidator,
479 String name=GaugeNameStr) -> bool
481 return _controls
.Gauge_Create(*args
, **kwargs
)
483 def SetRange(*args
, **kwargs
):
484 """SetRange(int range)"""
485 return _controls
.Gauge_SetRange(*args
, **kwargs
)
487 def GetRange(*args
, **kwargs
):
488 """GetRange() -> int"""
489 return _controls
.Gauge_GetRange(*args
, **kwargs
)
491 def SetValue(*args
, **kwargs
):
492 """SetValue(int pos)"""
493 return _controls
.Gauge_SetValue(*args
, **kwargs
)
495 def GetValue(*args
, **kwargs
):
496 """GetValue() -> int"""
497 return _controls
.Gauge_GetValue(*args
, **kwargs
)
499 def IsVertical(*args
, **kwargs
):
500 """IsVertical() -> bool"""
501 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
503 def SetShadowWidth(*args
, **kwargs
):
504 """SetShadowWidth(int w)"""
505 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
507 def GetShadowWidth(*args
, **kwargs
):
508 """GetShadowWidth() -> int"""
509 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
511 def SetBezelFace(*args
, **kwargs
):
512 """SetBezelFace(int w)"""
513 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
515 def GetBezelFace(*args
, **kwargs
):
516 """GetBezelFace() -> int"""
517 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
520 class GaugePtr(Gauge
):
521 def __init__(self
, this
):
523 if not hasattr(self
,"thisown"): self
.thisown
= 0
524 self
.__class
__ = Gauge
525 _controls
.Gauge_swigregister(GaugePtr
)
526 GaugeNameStr
= cvar
.GaugeNameStr
528 def PreGauge(*args
, **kwargs
):
529 """PreGauge() -> Gauge"""
530 val
= _controls
.new_PreGauge(*args
, **kwargs
)
534 #---------------------------------------------------------------------------
536 class StaticBox(core
.Control
):
538 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
539 def __init__(self
, *args
, **kwargs
):
541 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
542 Size size=DefaultSize, long style=0,
543 String name=StaticBoxNameStr) -> StaticBox
545 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
546 self
.this
= newobj
.this
549 self
._setOORInfo
(self
)
551 def Create(*args
, **kwargs
):
553 Create(Window parent, int id, String label, Point pos=DefaultPosition,
554 Size size=DefaultSize, long style=0,
555 String name=StaticBoxNameStr) -> bool
557 return _controls
.StaticBox_Create(*args
, **kwargs
)
560 class StaticBoxPtr(StaticBox
):
561 def __init__(self
, this
):
563 if not hasattr(self
,"thisown"): self
.thisown
= 0
564 self
.__class
__ = StaticBox
565 _controls
.StaticBox_swigregister(StaticBoxPtr
)
566 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
567 StaticBoxNameStr
= cvar
.StaticBoxNameStr
568 StaticTextNameStr
= cvar
.StaticTextNameStr
570 def PreStaticBox(*args
, **kwargs
):
571 """PreStaticBox() -> StaticBox"""
572 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
576 #---------------------------------------------------------------------------
578 class StaticLine(core
.Control
):
580 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
581 def __init__(self
, *args
, **kwargs
):
583 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
584 long style=LI_HORIZONTAL,
585 String name=StaticTextNameStr) -> StaticLine
587 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
588 self
.this
= newobj
.this
591 self
._setOORInfo
(self
)
593 def Create(*args
, **kwargs
):
595 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
596 long style=LI_HORIZONTAL,
597 String name=StaticTextNameStr) -> bool
599 return _controls
.StaticLine_Create(*args
, **kwargs
)
601 def IsVertical(*args
, **kwargs
):
602 """IsVertical() -> bool"""
603 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
605 def GetDefaultSize(*args
, **kwargs
):
606 """GetDefaultSize() -> int"""
607 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
609 GetDefaultSize
= staticmethod(GetDefaultSize
)
611 class StaticLinePtr(StaticLine
):
612 def __init__(self
, this
):
614 if not hasattr(self
,"thisown"): self
.thisown
= 0
615 self
.__class
__ = StaticLine
616 _controls
.StaticLine_swigregister(StaticLinePtr
)
618 def PreStaticLine(*args
, **kwargs
):
619 """PreStaticLine() -> StaticLine"""
620 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
624 def StaticLine_GetDefaultSize(*args
, **kwargs
):
625 """StaticLine_GetDefaultSize() -> int"""
626 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
628 #---------------------------------------------------------------------------
630 class StaticText(core
.Control
):
632 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
633 def __init__(self
, *args
, **kwargs
):
635 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
636 Size size=DefaultSize, long style=0,
637 String name=StaticTextNameStr) -> StaticText
639 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
640 self
.this
= newobj
.this
643 self
._setOORInfo
(self
)
645 def Create(*args
, **kwargs
):
647 Create(Window parent, int id, String label, Point pos=DefaultPosition,
648 Size size=DefaultSize, long style=0,
649 String name=StaticTextNameStr) -> bool
651 return _controls
.StaticText_Create(*args
, **kwargs
)
654 class StaticTextPtr(StaticText
):
655 def __init__(self
, this
):
657 if not hasattr(self
,"thisown"): self
.thisown
= 0
658 self
.__class
__ = StaticText
659 _controls
.StaticText_swigregister(StaticTextPtr
)
661 def PreStaticText(*args
, **kwargs
):
662 """PreStaticText() -> StaticText"""
663 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
667 #---------------------------------------------------------------------------
669 class StaticBitmap(core
.Control
):
671 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
672 def __init__(self
, *args
, **kwargs
):
674 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
675 Size size=DefaultSize, long style=0,
676 String name=StaticBitmapNameStr) -> StaticBitmap
678 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
679 self
.this
= newobj
.this
682 def Create(*args
, **kwargs
):
684 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
685 Size size=DefaultSize, long style=0,
686 String name=StaticBitmapNameStr) -> bool
688 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
690 def GetBitmap(*args
, **kwargs
):
691 """GetBitmap() -> Bitmap"""
692 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
694 def SetBitmap(*args
, **kwargs
):
695 """SetBitmap(Bitmap bitmap)"""
696 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
698 def SetIcon(*args
, **kwargs
):
699 """SetIcon(Icon icon)"""
700 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
703 class StaticBitmapPtr(StaticBitmap
):
704 def __init__(self
, this
):
706 if not hasattr(self
,"thisown"): self
.thisown
= 0
707 self
.__class
__ = StaticBitmap
708 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
710 def PreStaticBitmap(*args
, **kwargs
):
711 """PreStaticBitmap() -> StaticBitmap"""
712 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
716 #---------------------------------------------------------------------------
718 class ListBox(core
.ControlWithItems
):
720 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
721 def __init__(self
, *args
, **kwargs
):
723 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
724 wxArrayString choices=wxPyEmptyStringArray,
725 long style=0, Validator validator=DefaultValidator,
726 String name=ListBoxNameStr) -> ListBox
728 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
729 self
.this
= newobj
.this
732 self
._setOORInfo
(self
)
734 def Create(*args
, **kwargs
):
736 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
737 wxArrayString choices=wxPyEmptyStringArray,
738 long style=0, Validator validator=DefaultValidator,
739 String name=ListBoxNameStr) -> bool
741 return _controls
.ListBox_Create(*args
, **kwargs
)
743 def Insert(*args
, **kwargs
):
744 """Insert(String item, int pos, PyObject clientData=None)"""
745 return _controls
.ListBox_Insert(*args
, **kwargs
)
747 def InsertItems(*args
, **kwargs
):
748 """InsertItems(wxArrayString items, int pos)"""
749 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
751 def Set(*args
, **kwargs
):
752 """Set(wxArrayString items)"""
753 return _controls
.ListBox_Set(*args
, **kwargs
)
755 def IsSelected(*args
, **kwargs
):
756 """IsSelected(int n) -> bool"""
757 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
759 def SetSelection(*args
, **kwargs
):
760 """SetSelection(int n, bool select=True)"""
761 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
763 def Select(*args
, **kwargs
):
765 return _controls
.ListBox_Select(*args
, **kwargs
)
767 def Deselect(*args
, **kwargs
):
768 """Deselect(int n)"""
769 return _controls
.ListBox_Deselect(*args
, **kwargs
)
771 def DeselectAll(*args
, **kwargs
):
772 """DeselectAll(int itemToLeaveSelected=-1)"""
773 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
775 def SetStringSelection(*args
, **kwargs
):
776 """SetStringSelection(String s, bool select=True) -> bool"""
777 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
779 def GetSelections(*args
, **kwargs
):
780 """GetSelections() -> PyObject"""
781 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
783 def SetFirstItem(*args
, **kwargs
):
784 """SetFirstItem(int n)"""
785 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
787 def SetFirstItemStr(*args
, **kwargs
):
788 """SetFirstItemStr(String s)"""
789 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
791 def EnsureVisible(*args
, **kwargs
):
792 """EnsureVisible(int n)"""
793 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
795 def AppendAndEnsureVisible(*args
, **kwargs
):
796 """AppendAndEnsureVisible(String s)"""
797 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
799 def IsSorted(*args
, **kwargs
):
800 """IsSorted() -> bool"""
801 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
803 def SetItemForegroundColour(*args
, **kwargs
):
804 """SetItemForegroundColour(int item, Colour c)"""
805 return _controls
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
807 def SetItemBackgroundColour(*args
, **kwargs
):
808 """SetItemBackgroundColour(int item, Colour c)"""
809 return _controls
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
811 def SetItemFont(*args
, **kwargs
):
812 """SetItemFont(int item, Font f)"""
813 return _controls
.ListBox_SetItemFont(*args
, **kwargs
)
816 class ListBoxPtr(ListBox
):
817 def __init__(self
, this
):
819 if not hasattr(self
,"thisown"): self
.thisown
= 0
820 self
.__class
__ = ListBox
821 _controls
.ListBox_swigregister(ListBoxPtr
)
822 ListBoxNameStr
= cvar
.ListBoxNameStr
824 def PreListBox(*args
, **kwargs
):
825 """PreListBox() -> ListBox"""
826 val
= _controls
.new_PreListBox(*args
, **kwargs
)
830 #---------------------------------------------------------------------------
832 class CheckListBox(ListBox
):
834 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
835 def __init__(self
, *args
, **kwargs
):
837 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
838 wxArrayString choices=wxPyEmptyStringArray,
839 long style=0, Validator validator=DefaultValidator,
840 String name=ListBoxNameStr) -> CheckListBox
842 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
843 self
.this
= newobj
.this
846 self
._setOORInfo
(self
)
848 def Create(*args
, **kwargs
):
850 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
851 wxArrayString choices=wxPyEmptyStringArray,
852 long style=0, Validator validator=DefaultValidator,
853 String name=ListBoxNameStr) -> bool
855 return _controls
.CheckListBox_Create(*args
, **kwargs
)
857 def IsChecked(*args
, **kwargs
):
858 """IsChecked(int index) -> bool"""
859 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
861 def Check(*args
, **kwargs
):
862 """Check(int index, int check=True)"""
863 return _controls
.CheckListBox_Check(*args
, **kwargs
)
865 def GetItemHeight(*args
, **kwargs
):
866 """GetItemHeight() -> int"""
867 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
869 def HitTest(*args
, **kwargs
):
870 """HitTest(Point pt) -> int"""
871 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
873 def HitTestXY(*args
, **kwargs
):
874 """HitTestXY(int x, int y) -> int"""
875 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
878 class CheckListBoxPtr(CheckListBox
):
879 def __init__(self
, this
):
881 if not hasattr(self
,"thisown"): self
.thisown
= 0
882 self
.__class
__ = CheckListBox
883 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
885 def PreCheckListBox(*args
, **kwargs
):
886 """PreCheckListBox() -> CheckListBox"""
887 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
891 #---------------------------------------------------------------------------
893 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
894 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
895 TE_READONLY
= _controls
.TE_READONLY
896 TE_MULTILINE
= _controls
.TE_MULTILINE
897 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
898 TE_LEFT
= _controls
.TE_LEFT
899 TE_CENTER
= _controls
.TE_CENTER
900 TE_RIGHT
= _controls
.TE_RIGHT
901 TE_CENTRE
= _controls
.TE_CENTRE
902 TE_RICH
= _controls
.TE_RICH
903 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
904 TE_PASSWORD
= _controls
.TE_PASSWORD
905 TE_AUTO_URL
= _controls
.TE_AUTO_URL
906 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
907 TE_DONTWRAP
= _controls
.TE_DONTWRAP
908 TE_LINEWRAP
= _controls
.TE_LINEWRAP
909 TE_WORDWRAP
= _controls
.TE_WORDWRAP
910 TE_RICH2
= _controls
.TE_RICH2
911 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
912 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
913 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
914 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
915 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
916 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
917 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
918 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
919 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
920 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
921 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
922 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
923 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
924 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
925 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
926 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
927 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
928 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
929 TE_HT_UNKNOWN
= _controls
.TE_HT_UNKNOWN
930 TE_HT_BEFORE
= _controls
.TE_HT_BEFORE
931 TE_HT_ON_TEXT
= _controls
.TE_HT_ON_TEXT
932 TE_HT_BELOW
= _controls
.TE_HT_BELOW
933 TE_HT_BEYOND
= _controls
.TE_HT_BEYOND
934 class TextAttr(object):
936 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
937 def __init__(self
, *args
):
939 __init__() -> TextAttr
940 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
941 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
943 newobj
= _controls
.new_TextAttr(*args
)
944 self
.this
= newobj
.this
947 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
950 if self
.thisown
: destroy(self
)
953 def Init(*args
, **kwargs
):
955 return _controls
.TextAttr_Init(*args
, **kwargs
)
957 def SetTextColour(*args
, **kwargs
):
958 """SetTextColour(Colour colText)"""
959 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
961 def SetBackgroundColour(*args
, **kwargs
):
962 """SetBackgroundColour(Colour colBack)"""
963 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
965 def SetFont(*args
, **kwargs
):
966 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
967 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
969 def SetAlignment(*args
, **kwargs
):
970 """SetAlignment(int alignment)"""
971 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
973 def SetTabs(*args
, **kwargs
):
974 """SetTabs(wxArrayInt tabs)"""
975 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
977 def SetLeftIndent(*args
, **kwargs
):
978 """SetLeftIndent(int indent)"""
979 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
981 def SetRightIndent(*args
, **kwargs
):
982 """SetRightIndent(int indent)"""
983 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
985 def SetFlags(*args
, **kwargs
):
986 """SetFlags(long flags)"""
987 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
989 def HasTextColour(*args
, **kwargs
):
990 """HasTextColour() -> bool"""
991 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
993 def HasBackgroundColour(*args
, **kwargs
):
994 """HasBackgroundColour() -> bool"""
995 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
997 def HasFont(*args
, **kwargs
):
998 """HasFont() -> bool"""
999 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
1001 def HasAlignment(*args
, **kwargs
):
1002 """HasAlignment() -> bool"""
1003 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
1005 def HasTabs(*args
, **kwargs
):
1006 """HasTabs() -> bool"""
1007 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
1009 def HasLeftIndent(*args
, **kwargs
):
1010 """HasLeftIndent() -> bool"""
1011 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1013 def HasRightIndent(*args
, **kwargs
):
1014 """HasRightIndent() -> bool"""
1015 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
1017 def HasFlag(*args
, **kwargs
):
1018 """HasFlag(long flag) -> bool"""
1019 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1021 def GetTextColour(*args
, **kwargs
):
1022 """GetTextColour() -> Colour"""
1023 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1025 def GetBackgroundColour(*args
, **kwargs
):
1026 """GetBackgroundColour() -> Colour"""
1027 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1029 def GetFont(*args
, **kwargs
):
1030 """GetFont() -> Font"""
1031 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1033 def GetAlignment(*args
, **kwargs
):
1034 """GetAlignment() -> int"""
1035 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1037 def GetTabs(*args
, **kwargs
):
1038 """GetTabs() -> wxArrayInt"""
1039 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1041 def GetLeftIndent(*args
, **kwargs
):
1042 """GetLeftIndent() -> long"""
1043 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1045 def GetRightIndent(*args
, **kwargs
):
1046 """GetRightIndent() -> long"""
1047 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1049 def GetFlags(*args
, **kwargs
):
1050 """GetFlags() -> long"""
1051 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1053 def IsDefault(*args
, **kwargs
):
1054 """IsDefault() -> bool"""
1055 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1057 def Combine(*args
, **kwargs
):
1058 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1059 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1061 Combine
= staticmethod(Combine
)
1063 class TextAttrPtr(TextAttr
):
1064 def __init__(self
, this
):
1066 if not hasattr(self
,"thisown"): self
.thisown
= 0
1067 self
.__class
__ = TextAttr
1068 _controls
.TextAttr_swigregister(TextAttrPtr
)
1069 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1071 def TextAttr_Combine(*args
, **kwargs
):
1072 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1073 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1075 class TextCtrl(core
.Control
):
1077 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1078 def __init__(self
, *args
, **kwargs
):
1080 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1081 Size size=DefaultSize,
1082 long style=0, Validator validator=DefaultValidator,
1083 String name=TextCtrlNameStr) -> TextCtrl
1085 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1086 self
.this
= newobj
.this
1089 self
._setOORInfo
(self
)
1091 def Create(*args
, **kwargs
):
1093 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1094 Size size=DefaultSize,
1095 long style=0, Validator validator=DefaultValidator,
1096 String name=TextCtrlNameStr) -> bool
1098 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1100 def GetValue(*args
, **kwargs
):
1101 """GetValue() -> String"""
1102 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1104 def SetValue(*args
, **kwargs
):
1105 """SetValue(String value)"""
1106 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1108 def GetRange(*args
, **kwargs
):
1109 """GetRange(long from, long to) -> String"""
1110 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1112 def GetLineLength(*args
, **kwargs
):
1113 """GetLineLength(long lineNo) -> int"""
1114 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1116 def GetLineText(*args
, **kwargs
):
1117 """GetLineText(long lineNo) -> String"""
1118 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1120 def GetNumberOfLines(*args
, **kwargs
):
1121 """GetNumberOfLines() -> int"""
1122 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1124 def IsModified(*args
, **kwargs
):
1125 """IsModified() -> bool"""
1126 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1128 def IsEditable(*args
, **kwargs
):
1129 """IsEditable() -> bool"""
1130 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1132 def IsSingleLine(*args
, **kwargs
):
1133 """IsSingleLine() -> bool"""
1134 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1136 def IsMultiLine(*args
, **kwargs
):
1137 """IsMultiLine() -> bool"""
1138 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1140 def GetSelection(*args
, **kwargs
):
1142 GetSelection() -> (from, to)
1144 If the return values from and to are the same, there is no selection.
1146 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1148 def GetStringSelection(*args
, **kwargs
):
1149 """GetStringSelection() -> String"""
1150 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1152 def Clear(*args
, **kwargs
):
1154 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1156 def Replace(*args
, **kwargs
):
1157 """Replace(long from, long to, String value)"""
1158 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1160 def Remove(*args
, **kwargs
):
1161 """Remove(long from, long to)"""
1162 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1164 def LoadFile(*args
, **kwargs
):
1165 """LoadFile(String file) -> bool"""
1166 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1168 def SaveFile(*args
, **kwargs
):
1169 """SaveFile(String file=EmptyString) -> bool"""
1170 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1172 def MarkDirty(*args
, **kwargs
):
1174 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1176 def DiscardEdits(*args
, **kwargs
):
1177 """DiscardEdits()"""
1178 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1180 def SetMaxLength(*args
, **kwargs
):
1181 """SetMaxLength(unsigned long len)"""
1182 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1184 def WriteText(*args
, **kwargs
):
1185 """WriteText(String text)"""
1186 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1188 def AppendText(*args
, **kwargs
):
1189 """AppendText(String text)"""
1190 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1192 def EmulateKeyPress(*args
, **kwargs
):
1193 """EmulateKeyPress(KeyEvent event) -> bool"""
1194 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1196 def SetStyle(*args
, **kwargs
):
1197 """SetStyle(long start, long end, TextAttr style) -> bool"""
1198 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1200 def GetStyle(*args
, **kwargs
):
1201 """GetStyle(long position, TextAttr style) -> bool"""
1202 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1204 def SetDefaultStyle(*args
, **kwargs
):
1205 """SetDefaultStyle(TextAttr style) -> bool"""
1206 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1208 def GetDefaultStyle(*args
, **kwargs
):
1209 """GetDefaultStyle() -> TextAttr"""
1210 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1212 def XYToPosition(*args
, **kwargs
):
1213 """XYToPosition(long x, long y) -> long"""
1214 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1216 def PositionToXY(*args
, **kwargs
):
1217 """PositionToXY(long pos) -> (x, y)"""
1218 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1220 def ShowPosition(*args
, **kwargs
):
1221 """ShowPosition(long pos)"""
1222 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1224 def HitTest(*args
, **kwargs
):
1226 HitTest(Point pt) -> (result, row, col)
1228 Find the character at position given in pixels.
1229 NB: pt is in device coords (not adjusted for the client area
1230 origin nor scrolling)
1232 return _controls
.TextCtrl_HitTest(*args
, **kwargs
)
1234 def Copy(*args
, **kwargs
):
1236 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1238 def Cut(*args
, **kwargs
):
1240 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1242 def Paste(*args
, **kwargs
):
1244 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1246 def CanCopy(*args
, **kwargs
):
1247 """CanCopy() -> bool"""
1248 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1250 def CanCut(*args
, **kwargs
):
1251 """CanCut() -> bool"""
1252 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1254 def CanPaste(*args
, **kwargs
):
1255 """CanPaste() -> bool"""
1256 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1258 def Undo(*args
, **kwargs
):
1260 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1262 def Redo(*args
, **kwargs
):
1264 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1266 def CanUndo(*args
, **kwargs
):
1267 """CanUndo() -> bool"""
1268 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1270 def CanRedo(*args
, **kwargs
):
1271 """CanRedo() -> bool"""
1272 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1274 def SetInsertionPoint(*args
, **kwargs
):
1275 """SetInsertionPoint(long pos)"""
1276 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1278 def SetInsertionPointEnd(*args
, **kwargs
):
1279 """SetInsertionPointEnd()"""
1280 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1282 def GetInsertionPoint(*args
, **kwargs
):
1283 """GetInsertionPoint() -> long"""
1284 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1286 def GetLastPosition(*args
, **kwargs
):
1287 """GetLastPosition() -> long"""
1288 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1290 def SetSelection(*args
, **kwargs
):
1291 """SetSelection(long from, long to)"""
1292 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1294 def SelectAll(*args
, **kwargs
):
1296 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1298 def SetEditable(*args
, **kwargs
):
1299 """SetEditable(bool editable)"""
1300 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1302 def write(*args
, **kwargs
):
1303 """write(String text)"""
1304 return _controls
.TextCtrl_write(*args
, **kwargs
)
1306 def GetString(*args
, **kwargs
):
1307 """GetString(long from, long to) -> String"""
1308 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1311 class TextCtrlPtr(TextCtrl
):
1312 def __init__(self
, this
):
1314 if not hasattr(self
,"thisown"): self
.thisown
= 0
1315 self
.__class
__ = TextCtrl
1316 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1318 def PreTextCtrl(*args
, **kwargs
):
1319 """PreTextCtrl() -> TextCtrl"""
1320 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1324 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1325 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1326 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1327 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1328 class TextUrlEvent(core
.CommandEvent
):
1330 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1331 def __init__(self
, *args
, **kwargs
):
1332 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1333 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1334 self
.this
= newobj
.this
1337 def GetMouseEvent(*args
, **kwargs
):
1338 """GetMouseEvent() -> MouseEvent"""
1339 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1341 def GetURLStart(*args
, **kwargs
):
1342 """GetURLStart() -> long"""
1343 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1345 def GetURLEnd(*args
, **kwargs
):
1346 """GetURLEnd() -> long"""
1347 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1350 class TextUrlEventPtr(TextUrlEvent
):
1351 def __init__(self
, this
):
1353 if not hasattr(self
,"thisown"): self
.thisown
= 0
1354 self
.__class
__ = TextUrlEvent
1355 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1357 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1358 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1359 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1360 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1362 #---------------------------------------------------------------------------
1364 class ScrollBar(core
.Control
):
1366 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1367 def __init__(self
, *args
, **kwargs
):
1369 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1370 Size size=DefaultSize, long style=SB_HORIZONTAL,
1371 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1373 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1374 self
.this
= newobj
.this
1377 self
._setOORInfo
(self
)
1379 def Create(*args
, **kwargs
):
1381 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1382 Size size=DefaultSize, long style=SB_HORIZONTAL,
1383 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1385 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1387 def GetThumbPosition(*args
, **kwargs
):
1388 """GetThumbPosition() -> int"""
1389 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1391 def GetThumbSize(*args
, **kwargs
):
1392 """GetThumbSize() -> int"""
1393 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1395 GetThumbLength
= GetThumbSize
1396 def GetPageSize(*args
, **kwargs
):
1397 """GetPageSize() -> int"""
1398 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1400 def GetRange(*args
, **kwargs
):
1401 """GetRange() -> int"""
1402 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1404 def IsVertical(*args
, **kwargs
):
1405 """IsVertical() -> bool"""
1406 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1408 def SetThumbPosition(*args
, **kwargs
):
1409 """SetThumbPosition(int viewStart)"""
1410 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1412 def SetScrollbar(*args
, **kwargs
):
1414 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1417 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1420 class ScrollBarPtr(ScrollBar
):
1421 def __init__(self
, this
):
1423 if not hasattr(self
,"thisown"): self
.thisown
= 0
1424 self
.__class
__ = ScrollBar
1425 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1426 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1428 def PreScrollBar(*args
, **kwargs
):
1429 """PreScrollBar() -> ScrollBar"""
1430 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1434 #---------------------------------------------------------------------------
1436 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1437 SP_VERTICAL
= _controls
.SP_VERTICAL
1438 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1439 SP_WRAP
= _controls
.SP_WRAP
1440 class SpinButton(core
.Control
):
1442 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1443 def __init__(self
, *args
, **kwargs
):
1445 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1446 Size size=DefaultSize, long style=SP_HORIZONTAL,
1447 String name=SPIN_BUTTON_NAME) -> SpinButton
1449 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1450 self
.this
= newobj
.this
1453 self
._setOORInfo
(self
)
1455 def Create(*args
, **kwargs
):
1457 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1458 Size size=DefaultSize, long style=SP_HORIZONTAL,
1459 String name=SPIN_BUTTON_NAME) -> bool
1461 return _controls
.SpinButton_Create(*args
, **kwargs
)
1463 def GetValue(*args
, **kwargs
):
1464 """GetValue() -> int"""
1465 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1467 def GetMin(*args
, **kwargs
):
1468 """GetMin() -> int"""
1469 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1471 def GetMax(*args
, **kwargs
):
1472 """GetMax() -> int"""
1473 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1475 def SetValue(*args
, **kwargs
):
1476 """SetValue(int val)"""
1477 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1479 def SetMin(*args
, **kwargs
):
1480 """SetMin(int minVal)"""
1481 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1483 def SetMax(*args
, **kwargs
):
1484 """SetMax(int maxVal)"""
1485 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1487 def SetRange(*args
, **kwargs
):
1488 """SetRange(int minVal, int maxVal)"""
1489 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1491 def IsVertical(*args
, **kwargs
):
1492 """IsVertical() -> bool"""
1493 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1496 class SpinButtonPtr(SpinButton
):
1497 def __init__(self
, this
):
1499 if not hasattr(self
,"thisown"): self
.thisown
= 0
1500 self
.__class
__ = SpinButton
1501 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1502 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1503 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1505 def PreSpinButton(*args
, **kwargs
):
1506 """PreSpinButton() -> SpinButton"""
1507 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1511 class SpinCtrl(core
.Control
):
1513 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1514 def __init__(self
, *args
, **kwargs
):
1516 __init__(Window parent, int id=-1, String value=EmptyString,
1517 Point pos=DefaultPosition, Size size=DefaultSize,
1518 long style=SP_ARROW_KEYS, int min=0, int max=100,
1519 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1521 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1522 self
.this
= newobj
.this
1525 self
._setOORInfo
(self
)
1527 def Create(*args
, **kwargs
):
1529 Create(Window parent, int id=-1, String value=EmptyString,
1530 Point pos=DefaultPosition, Size size=DefaultSize,
1531 long style=SP_ARROW_KEYS, int min=0, int max=100,
1532 int initial=0, String name=SpinCtrlNameStr) -> bool
1534 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1536 def GetValue(*args
, **kwargs
):
1537 """GetValue() -> int"""
1538 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1540 def SetValue(*args
, **kwargs
):
1541 """SetValue(int value)"""
1542 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1544 def SetValueString(*args
, **kwargs
):
1545 """SetValueString(String text)"""
1546 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1548 def SetRange(*args
, **kwargs
):
1549 """SetRange(int minVal, int maxVal)"""
1550 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1552 def GetMin(*args
, **kwargs
):
1553 """GetMin() -> int"""
1554 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1556 def GetMax(*args
, **kwargs
):
1557 """GetMax() -> int"""
1558 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1560 def SetSelection(*args
, **kwargs
):
1561 """SetSelection(long from, long to)"""
1562 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1565 class SpinCtrlPtr(SpinCtrl
):
1566 def __init__(self
, this
):
1568 if not hasattr(self
,"thisown"): self
.thisown
= 0
1569 self
.__class
__ = SpinCtrl
1570 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1572 def PreSpinCtrl(*args
, **kwargs
):
1573 """PreSpinCtrl() -> SpinCtrl"""
1574 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1578 class SpinEvent(core
.NotifyEvent
):
1580 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1581 def __init__(self
, *args
, **kwargs
):
1582 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1583 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1584 self
.this
= newobj
.this
1587 def GetPosition(*args
, **kwargs
):
1588 """GetPosition() -> int"""
1589 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1591 def SetPosition(*args
, **kwargs
):
1592 """SetPosition(int pos)"""
1593 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1596 class SpinEventPtr(SpinEvent
):
1597 def __init__(self
, this
):
1599 if not hasattr(self
,"thisown"): self
.thisown
= 0
1600 self
.__class
__ = SpinEvent
1601 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1603 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1604 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1605 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1606 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1607 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1609 #---------------------------------------------------------------------------
1611 class RadioBox(core
.Control
):
1613 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1614 def __init__(self
, *args
, **kwargs
):
1616 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1617 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1618 int majorDimension=0,
1619 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1620 String name=RadioBoxNameStr) -> RadioBox
1622 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1623 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1624 self
.this
= newobj
.this
1627 self
._setOORInfo
(self
)
1629 def Create(*args
, **kwargs
):
1631 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1632 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1633 int majorDimension=0,
1634 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1635 String name=RadioBoxNameStr) -> bool
1637 return _controls
.RadioBox_Create(*args
, **kwargs
)
1639 def SetSelection(*args
, **kwargs
):
1640 """SetSelection(int n)"""
1641 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1643 def GetSelection(*args
, **kwargs
):
1644 """GetSelection() -> int"""
1645 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1647 def GetStringSelection(*args
, **kwargs
):
1648 """GetStringSelection() -> String"""
1649 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1651 def SetStringSelection(*args
, **kwargs
):
1652 """SetStringSelection(String s) -> bool"""
1653 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1655 def GetCount(*args
, **kwargs
):
1656 """GetCount() -> int"""
1657 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1659 def FindString(*args
, **kwargs
):
1660 """FindString(String s) -> int"""
1661 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1663 def GetString(*args
, **kwargs
):
1664 """GetString(int n) -> String"""
1665 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1667 def SetString(*args
, **kwargs
):
1668 """SetString(int n, String label)"""
1669 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1671 GetItemLabel
= GetString
1672 SetItemLabel
= SetString
1673 def EnableItem(*args
, **kwargs
):
1674 """EnableItem(int n, bool enable=True)"""
1675 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1677 def ShowItem(*args
, **kwargs
):
1678 """ShowItem(int n, bool show=True)"""
1679 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1681 def GetColumnCount(*args
, **kwargs
):
1682 """GetColumnCount() -> int"""
1683 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1685 def GetRowCount(*args
, **kwargs
):
1686 """GetRowCount() -> int"""
1687 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1689 def GetNextItem(*args
, **kwargs
):
1690 """GetNextItem(int item, int dir, long style) -> int"""
1691 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1694 class RadioBoxPtr(RadioBox
):
1695 def __init__(self
, this
):
1697 if not hasattr(self
,"thisown"): self
.thisown
= 0
1698 self
.__class
__ = RadioBox
1699 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1700 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1701 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1703 def PreRadioBox(*args
, **kwargs
):
1704 """PreRadioBox() -> RadioBox"""
1705 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1709 #---------------------------------------------------------------------------
1711 class RadioButton(core
.Control
):
1713 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1714 def __init__(self
, *args
, **kwargs
):
1716 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1717 Size size=DefaultSize, long style=0,
1718 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1720 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1721 self
.this
= newobj
.this
1724 self
._setOORInfo
(self
)
1726 def Create(*args
, **kwargs
):
1728 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1729 Size size=DefaultSize, long style=0,
1730 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1732 return _controls
.RadioButton_Create(*args
, **kwargs
)
1734 def GetValue(*args
, **kwargs
):
1735 """GetValue() -> bool"""
1736 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1738 def SetValue(*args
, **kwargs
):
1739 """SetValue(bool value)"""
1740 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1743 class RadioButtonPtr(RadioButton
):
1744 def __init__(self
, this
):
1746 if not hasattr(self
,"thisown"): self
.thisown
= 0
1747 self
.__class
__ = RadioButton
1748 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1750 def PreRadioButton(*args
, **kwargs
):
1751 """PreRadioButton() -> RadioButton"""
1752 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1756 #---------------------------------------------------------------------------
1758 class Slider(core
.Control
):
1760 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1761 def __init__(self
, *args
, **kwargs
):
1763 __init__(Window parent, int id, int value, int minValue, int maxValue,
1764 Point pos=DefaultPosition, Size size=DefaultSize,
1765 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1766 String name=SliderNameStr) -> Slider
1768 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1769 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1770 self
.this
= newobj
.this
1773 self
._setOORInfo
(self
)
1775 def Create(*args
, **kwargs
):
1777 Create(Window parent, int id, int value, int minValue, int maxValue,
1778 Point pos=DefaultPosition, Size size=DefaultSize,
1779 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1780 String name=SliderNameStr) -> bool
1782 return _controls
.Slider_Create(*args
, **kwargs
)
1784 def GetValue(*args
, **kwargs
):
1785 """GetValue() -> int"""
1786 return _controls
.Slider_GetValue(*args
, **kwargs
)
1788 def SetValue(*args
, **kwargs
):
1789 """SetValue(int value)"""
1790 return _controls
.Slider_SetValue(*args
, **kwargs
)
1792 def SetRange(*args
, **kwargs
):
1793 """SetRange(int minValue, int maxValue)"""
1794 return _controls
.Slider_SetRange(*args
, **kwargs
)
1796 def GetMin(*args
, **kwargs
):
1797 """GetMin() -> int"""
1798 return _controls
.Slider_GetMin(*args
, **kwargs
)
1800 def GetMax(*args
, **kwargs
):
1801 """GetMax() -> int"""
1802 return _controls
.Slider_GetMax(*args
, **kwargs
)
1804 def SetMin(*args
, **kwargs
):
1805 """SetMin(int minValue)"""
1806 return _controls
.Slider_SetMin(*args
, **kwargs
)
1808 def SetMax(*args
, **kwargs
):
1809 """SetMax(int maxValue)"""
1810 return _controls
.Slider_SetMax(*args
, **kwargs
)
1812 def SetLineSize(*args
, **kwargs
):
1813 """SetLineSize(int lineSize)"""
1814 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1816 def SetPageSize(*args
, **kwargs
):
1817 """SetPageSize(int pageSize)"""
1818 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1820 def GetLineSize(*args
, **kwargs
):
1821 """GetLineSize() -> int"""
1822 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1824 def GetPageSize(*args
, **kwargs
):
1825 """GetPageSize() -> int"""
1826 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1828 def SetThumbLength(*args
, **kwargs
):
1829 """SetThumbLength(int lenPixels)"""
1830 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1832 def GetThumbLength(*args
, **kwargs
):
1833 """GetThumbLength() -> int"""
1834 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1836 def SetTickFreq(*args
, **kwargs
):
1837 """SetTickFreq(int n, int pos=1)"""
1838 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1840 def GetTickFreq(*args
, **kwargs
):
1841 """GetTickFreq() -> int"""
1842 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1844 def ClearTicks(*args
, **kwargs
):
1846 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1848 def SetTick(*args
, **kwargs
):
1849 """SetTick(int tickPos)"""
1850 return _controls
.Slider_SetTick(*args
, **kwargs
)
1852 def ClearSel(*args
, **kwargs
):
1854 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1856 def GetSelEnd(*args
, **kwargs
):
1857 """GetSelEnd() -> int"""
1858 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1860 def GetSelStart(*args
, **kwargs
):
1861 """GetSelStart() -> int"""
1862 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1864 def SetSelection(*args
, **kwargs
):
1865 """SetSelection(int min, int max)"""
1866 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1869 class SliderPtr(Slider
):
1870 def __init__(self
, this
):
1872 if not hasattr(self
,"thisown"): self
.thisown
= 0
1873 self
.__class
__ = Slider
1874 _controls
.Slider_swigregister(SliderPtr
)
1875 SliderNameStr
= cvar
.SliderNameStr
1877 def PreSlider(*args
, **kwargs
):
1878 """PreSlider() -> Slider"""
1879 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1883 #---------------------------------------------------------------------------
1885 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1886 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1888 class ToggleButton(core
.Control
):
1890 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1891 def __init__(self
, *args
, **kwargs
):
1893 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1894 Size size=DefaultSize, long style=0,
1895 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
1897 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1898 self
.this
= newobj
.this
1901 self
._setOORInfo
(self
)
1903 def Create(*args
, **kwargs
):
1905 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1906 Size size=DefaultSize, long style=0,
1907 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
1909 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1911 def SetValue(*args
, **kwargs
):
1912 """SetValue(bool value)"""
1913 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1915 def GetValue(*args
, **kwargs
):
1916 """GetValue() -> bool"""
1917 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1919 def SetLabel(*args
, **kwargs
):
1920 """SetLabel(String label)"""
1921 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1924 class ToggleButtonPtr(ToggleButton
):
1925 def __init__(self
, this
):
1927 if not hasattr(self
,"thisown"): self
.thisown
= 0
1928 self
.__class
__ = ToggleButton
1929 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1930 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
1932 def PreToggleButton(*args
, **kwargs
):
1933 """PreToggleButton() -> ToggleButton"""
1934 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1938 #---------------------------------------------------------------------------
1940 class BookCtrl(core
.Control
):
1941 def __init__(self
): raise RuntimeError, "No constructor defined"
1943 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1944 def GetPageCount(*args
, **kwargs
):
1945 """GetPageCount() -> size_t"""
1946 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1948 def GetPage(*args
, **kwargs
):
1949 """GetPage(size_t n) -> Window"""
1950 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1952 def GetSelection(*args
, **kwargs
):
1953 """GetSelection() -> int"""
1954 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1956 def SetPageText(*args
, **kwargs
):
1957 """SetPageText(size_t n, String strText) -> bool"""
1958 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1960 def GetPageText(*args
, **kwargs
):
1961 """GetPageText(size_t n) -> String"""
1962 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1964 def SetImageList(*args
, **kwargs
):
1965 """SetImageList(ImageList imageList)"""
1966 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1968 def AssignImageList(*args
, **kwargs
):
1969 """AssignImageList(ImageList imageList)"""
1970 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1972 def GetImageList(*args
, **kwargs
):
1973 """GetImageList() -> ImageList"""
1974 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1976 def GetPageImage(*args
, **kwargs
):
1977 """GetPageImage(size_t n) -> int"""
1978 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1980 def SetPageImage(*args
, **kwargs
):
1981 """SetPageImage(size_t n, int imageId) -> bool"""
1982 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1984 def SetPageSize(*args
, **kwargs
):
1985 """SetPageSize(Size size)"""
1986 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1988 def CalcSizeFromPage(*args
, **kwargs
):
1989 """CalcSizeFromPage(Size sizePage) -> Size"""
1990 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1992 def DeletePage(*args
, **kwargs
):
1993 """DeletePage(size_t n) -> bool"""
1994 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1996 def RemovePage(*args
, **kwargs
):
1997 """RemovePage(size_t n) -> bool"""
1998 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
2000 def DeleteAllPages(*args
, **kwargs
):
2001 """DeleteAllPages() -> bool"""
2002 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2004 def AddPage(*args
, **kwargs
):
2005 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
2006 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
2008 def InsertPage(*args
, **kwargs
):
2010 InsertPage(size_t n, Window page, String text, bool select=False,
2011 int imageId=-1) -> bool
2013 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
2015 def SetSelection(*args
, **kwargs
):
2016 """SetSelection(size_t n) -> int"""
2017 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
2019 def AdvanceSelection(*args
, **kwargs
):
2020 """AdvanceSelection(bool forward=True)"""
2021 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2024 class BookCtrlPtr(BookCtrl
):
2025 def __init__(self
, this
):
2027 if not hasattr(self
,"thisown"): self
.thisown
= 0
2028 self
.__class
__ = BookCtrl
2029 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
2030 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2032 class BookCtrlEvent(core
.NotifyEvent
):
2034 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2035 def __init__(self
, *args
, **kwargs
):
2037 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2038 int nOldSel=-1) -> BookCtrlEvent
2040 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2041 self
.this
= newobj
.this
2044 def GetSelection(*args
, **kwargs
):
2045 """GetSelection() -> int"""
2046 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2048 def SetSelection(*args
, **kwargs
):
2049 """SetSelection(int nSel)"""
2050 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2052 def GetOldSelection(*args
, **kwargs
):
2053 """GetOldSelection() -> int"""
2054 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2056 def SetOldSelection(*args
, **kwargs
):
2057 """SetOldSelection(int nOldSel)"""
2058 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2061 class BookCtrlEventPtr(BookCtrlEvent
):
2062 def __init__(self
, this
):
2064 if not hasattr(self
,"thisown"): self
.thisown
= 0
2065 self
.__class
__ = BookCtrlEvent
2066 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2068 #---------------------------------------------------------------------------
2070 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2071 NB_TOP
= _controls
.NB_TOP
2072 NB_LEFT
= _controls
.NB_LEFT
2073 NB_RIGHT
= _controls
.NB_RIGHT
2074 NB_BOTTOM
= _controls
.NB_BOTTOM
2075 NB_MULTILINE
= _controls
.NB_MULTILINE
2076 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2077 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2078 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2079 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2080 class Notebook(BookCtrl
):
2082 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2083 def __init__(self
, *args
, **kwargs
):
2085 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2086 long style=0, String name=NOTEBOOK_NAME) -> Notebook
2088 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2089 self
.this
= newobj
.this
2092 self
._setOORInfo
(self
)
2094 def Create(*args
, **kwargs
):
2096 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2097 long style=0, String name=NOTEBOOK_NAME) -> bool
2099 return _controls
.Notebook_Create(*args
, **kwargs
)
2101 def GetRowCount(*args
, **kwargs
):
2102 """GetRowCount() -> int"""
2103 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2105 def SetPadding(*args
, **kwargs
):
2106 """SetPadding(Size padding)"""
2107 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2109 def SetTabSize(*args
, **kwargs
):
2110 """SetTabSize(Size sz)"""
2111 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2113 def HitTest(*args
, **kwargs
):
2115 HitTest(Point pt) -> (tab, where)
2117 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2119 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2121 def CalcSizeFromPage(*args
, **kwargs
):
2122 """CalcSizeFromPage(Size sizePage) -> Size"""
2123 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2126 class NotebookPtr(Notebook
):
2127 def __init__(self
, this
):
2129 if not hasattr(self
,"thisown"): self
.thisown
= 0
2130 self
.__class
__ = Notebook
2131 _controls
.Notebook_swigregister(NotebookPtr
)
2133 def PreNotebook(*args
, **kwargs
):
2134 """PreNotebook() -> Notebook"""
2135 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2139 class NotebookEvent(BookCtrlEvent
):
2141 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2142 def __init__(self
, *args
, **kwargs
):
2144 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2145 int nOldSel=-1) -> NotebookEvent
2147 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2148 self
.this
= newobj
.this
2152 class NotebookEventPtr(NotebookEvent
):
2153 def __init__(self
, this
):
2155 if not hasattr(self
,"thisown"): self
.thisown
= 0
2156 self
.__class
__ = NotebookEvent
2157 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2159 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2160 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2162 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2163 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2165 #----------------------------------------------------------------------------
2167 class NotebookPage(wx
.Panel
):
2169 There is an old (and apparently unsolvable) bug when placing a
2170 window with a nonstandard background colour in a wxNotebook on
2171 wxGTK, as the notbooks's background colour would always be used
2172 when the window is refreshed. The solution is to place a panel in
2173 the notbook and the coloured window on the panel, sized to cover
2174 the panel. This simple class does that for you, just put an
2175 instance of this in the notebook and make your regular window a
2176 child of this one and it will handle the resize for you.
2178 def __init__(self
, parent
, id=-1,
2179 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2180 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2181 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2183 EVT_SIZE(self
, self
.OnSize
)
2185 def OnSize(self
, evt
):
2186 if self
.child
is None:
2187 children
= self
.GetChildren()
2189 self
.child
= children
[0]
2191 self
.child
.SetPosition((0,0))
2192 self
.child
.SetSize(self
.GetSize())
2195 #---------------------------------------------------------------------------
2197 LB_DEFAULT
= _controls
.LB_DEFAULT
2198 LB_TOP
= _controls
.LB_TOP
2199 LB_BOTTOM
= _controls
.LB_BOTTOM
2200 LB_LEFT
= _controls
.LB_LEFT
2201 LB_RIGHT
= _controls
.LB_RIGHT
2202 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2203 class Listbook(BookCtrl
):
2205 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2206 def __init__(self
, *args
, **kwargs
):
2208 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2209 long style=0, String name=EmptyString) -> Listbook
2211 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2212 self
.this
= newobj
.this
2215 self
._setOORInfo
(self
)
2217 def Create(*args
, **kwargs
):
2219 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2220 long style=0, String name=EmptyString) -> bool
2222 return _controls
.Listbook_Create(*args
, **kwargs
)
2224 def IsVertical(*args
, **kwargs
):
2225 """IsVertical() -> bool"""
2226 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2229 class ListbookPtr(Listbook
):
2230 def __init__(self
, this
):
2232 if not hasattr(self
,"thisown"): self
.thisown
= 0
2233 self
.__class
__ = Listbook
2234 _controls
.Listbook_swigregister(ListbookPtr
)
2236 def PreListbook(*args
, **kwargs
):
2237 """PreListbook() -> Listbook"""
2238 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2242 class ListbookEvent(BookCtrlEvent
):
2244 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2245 def __init__(self
, *args
, **kwargs
):
2247 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2248 int nOldSel=-1) -> ListbookEvent
2250 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2251 self
.this
= newobj
.this
2255 class ListbookEventPtr(ListbookEvent
):
2256 def __init__(self
, this
):
2258 if not hasattr(self
,"thisown"): self
.thisown
= 0
2259 self
.__class
__ = ListbookEvent
2260 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2262 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2263 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2264 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2265 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2267 #---------------------------------------------------------------------------
2269 class BookCtrlSizer(core
.Sizer
):
2271 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2272 def __init__(self
, *args
, **kwargs
):
2273 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2274 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2275 self
.this
= newobj
.this
2278 self
._setOORInfo
(self
)
2280 def RecalcSizes(*args
, **kwargs
):
2282 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2284 def CalcMin(*args
, **kwargs
):
2285 """CalcMin() -> Size"""
2286 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2288 def GetControl(*args
, **kwargs
):
2289 """GetControl() -> BookCtrl"""
2290 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2293 class BookCtrlSizerPtr(BookCtrlSizer
):
2294 def __init__(self
, this
):
2296 if not hasattr(self
,"thisown"): self
.thisown
= 0
2297 self
.__class
__ = BookCtrlSizer
2298 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2300 class NotebookSizer(core
.Sizer
):
2302 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2303 def __init__(self
, *args
, **kwargs
):
2304 """__init__(Notebook nb) -> NotebookSizer"""
2305 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2306 self
.this
= newobj
.this
2309 self
._setOORInfo
(self
)
2311 def RecalcSizes(*args
, **kwargs
):
2313 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2315 def CalcMin(*args
, **kwargs
):
2316 """CalcMin() -> Size"""
2317 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2319 def GetNotebook(*args
, **kwargs
):
2320 """GetNotebook() -> Notebook"""
2321 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2324 class NotebookSizerPtr(NotebookSizer
):
2325 def __init__(self
, this
):
2327 if not hasattr(self
,"thisown"): self
.thisown
= 0
2328 self
.__class
__ = NotebookSizer
2329 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2331 #---------------------------------------------------------------------------
2333 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2334 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2335 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2336 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2337 TB_VERTICAL
= _controls
.TB_VERTICAL
2338 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2339 TB_FLAT
= _controls
.TB_FLAT
2340 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2341 TB_NOICONS
= _controls
.TB_NOICONS
2342 TB_TEXT
= _controls
.TB_TEXT
2343 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2344 TB_NOALIGN
= _controls
.TB_NOALIGN
2345 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2346 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2347 class ToolBarToolBase(core
.Object
):
2348 def __init__(self
): raise RuntimeError, "No constructor defined"
2350 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2351 def GetId(*args
, **kwargs
):
2352 """GetId() -> int"""
2353 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2355 def GetControl(*args
, **kwargs
):
2356 """GetControl() -> Control"""
2357 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2359 def GetToolBar(*args
, **kwargs
):
2360 """GetToolBar() -> ToolBarBase"""
2361 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2363 def IsButton(*args
, **kwargs
):
2364 """IsButton() -> int"""
2365 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2367 def IsControl(*args
, **kwargs
):
2368 """IsControl() -> int"""
2369 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2371 def IsSeparator(*args
, **kwargs
):
2372 """IsSeparator() -> int"""
2373 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2375 def GetStyle(*args
, **kwargs
):
2376 """GetStyle() -> int"""
2377 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2379 def GetKind(*args
, **kwargs
):
2380 """GetKind() -> int"""
2381 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2383 def IsEnabled(*args
, **kwargs
):
2384 """IsEnabled() -> bool"""
2385 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2387 def IsToggled(*args
, **kwargs
):
2388 """IsToggled() -> bool"""
2389 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2391 def CanBeToggled(*args
, **kwargs
):
2392 """CanBeToggled() -> bool"""
2393 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2395 def GetNormalBitmap(*args
, **kwargs
):
2396 """GetNormalBitmap() -> Bitmap"""
2397 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2399 def GetDisabledBitmap(*args
, **kwargs
):
2400 """GetDisabledBitmap() -> Bitmap"""
2401 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2403 def GetBitmap(*args
, **kwargs
):
2404 """GetBitmap() -> Bitmap"""
2405 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2407 def GetLabel(*args
, **kwargs
):
2408 """GetLabel() -> String"""
2409 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2411 def GetShortHelp(*args
, **kwargs
):
2412 """GetShortHelp() -> String"""
2413 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2415 def GetLongHelp(*args
, **kwargs
):
2416 """GetLongHelp() -> String"""
2417 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2419 def Enable(*args
, **kwargs
):
2420 """Enable(bool enable) -> bool"""
2421 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2423 def Toggle(*args
, **kwargs
):
2425 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2427 def SetToggle(*args
, **kwargs
):
2428 """SetToggle(bool toggle) -> bool"""
2429 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2431 def SetShortHelp(*args
, **kwargs
):
2432 """SetShortHelp(String help) -> bool"""
2433 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2435 def SetLongHelp(*args
, **kwargs
):
2436 """SetLongHelp(String help) -> bool"""
2437 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2439 def SetNormalBitmap(*args
, **kwargs
):
2440 """SetNormalBitmap(Bitmap bmp)"""
2441 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2443 def SetDisabledBitmap(*args
, **kwargs
):
2444 """SetDisabledBitmap(Bitmap bmp)"""
2445 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2447 def SetLabel(*args
, **kwargs
):
2448 """SetLabel(String label)"""
2449 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2451 def Detach(*args
, **kwargs
):
2453 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2455 def Attach(*args
, **kwargs
):
2456 """Attach(ToolBarBase tbar)"""
2457 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2459 def GetClientData(*args
, **kwargs
):
2460 """GetClientData() -> PyObject"""
2461 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2463 def SetClientData(*args
, **kwargs
):
2464 """SetClientData(PyObject clientData)"""
2465 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2467 GetBitmap1
= GetNormalBitmap
2468 GetBitmap2
= GetDisabledBitmap
2469 SetBitmap1
= SetNormalBitmap
2470 SetBitmap2
= SetDisabledBitmap
2473 class ToolBarToolBasePtr(ToolBarToolBase
):
2474 def __init__(self
, this
):
2476 if not hasattr(self
,"thisown"): self
.thisown
= 0
2477 self
.__class
__ = ToolBarToolBase
2478 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2480 class ToolBarBase(core
.Control
):
2481 def __init__(self
): raise RuntimeError, "No constructor defined"
2483 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2484 def DoAddTool(*args
, **kwargs
):
2486 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2487 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2488 String longHelp=EmptyString,
2489 PyObject clientData=None) -> ToolBarToolBase
2491 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2493 def DoInsertTool(*args
, **kwargs
):
2495 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2496 int kind=ITEM_NORMAL,
2497 String shortHelp=EmptyString, String longHelp=EmptyString,
2498 PyObject clientData=None) -> ToolBarToolBase
2500 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2502 # These match the original Add methods for this class, kept for
2503 # backwards compatibility with versions < 2.3.3.
2506 def AddTool(self
, id, bitmap
,
2507 pushedBitmap
= wx
.NullBitmap
,
2510 shortHelpString
= '',
2511 longHelpString
= '') :
2512 '''Old style method to add a tool to the toolbar.'''
2513 kind
= wx
.ITEM_NORMAL
2514 if isToggle
: kind
= wx
.ITEM_CHECK
2515 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2516 shortHelpString
, longHelpString
, clientData
)
2518 def AddSimpleTool(self
, id, bitmap
,
2519 shortHelpString
= '',
2520 longHelpString
= '',
2522 '''Old style method to add a tool to the toolbar.'''
2523 kind
= wx
.ITEM_NORMAL
2524 if isToggle
: kind
= wx
.ITEM_CHECK
2525 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2526 shortHelpString
, longHelpString
, None)
2528 def InsertTool(self
, pos
, id, bitmap
,
2529 pushedBitmap
= wx
.NullBitmap
,
2532 shortHelpString
= '',
2533 longHelpString
= ''):
2534 '''Old style method to insert a tool in the toolbar.'''
2535 kind
= wx
.ITEM_NORMAL
2536 if isToggle
: kind
= wx
.ITEM_CHECK
2537 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2538 shortHelpString
, longHelpString
, clientData
)
2540 def InsertSimpleTool(self
, pos
, id, bitmap
,
2541 shortHelpString
= '',
2542 longHelpString
= '',
2544 '''Old style method to insert a tool in the toolbar.'''
2545 kind
= wx
.ITEM_NORMAL
2546 if isToggle
: kind
= wx
.ITEM_CHECK
2547 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2548 shortHelpString
, longHelpString
, None)
2551 # The following are the new toolbar Add methods starting with
2552 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2553 # able to keep backwards compatibility with using the above
2554 # methods. Eventually these should migrate to be the methods used
2555 # primarily and lose the 'Label' in the name...
2557 def AddLabelTool(self
, id, label
, bitmap
,
2558 bmpDisabled
= wx
.NullBitmap
,
2559 kind
= wx
.ITEM_NORMAL
,
2560 shortHelp
= '', longHelp
= '',
2563 The full AddTool() function.
2565 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2566 is created and used as the disabled image.
2568 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2569 shortHelp
, longHelp
, clientData
)
2572 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2573 bmpDisabled
= wx
.NullBitmap
,
2574 kind
= wx
.ITEM_NORMAL
,
2575 shortHelp
= '', longHelp
= '',
2578 Insert the new tool at the given position, if pos == GetToolsCount(), it
2579 is equivalent to AddTool()
2581 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2582 shortHelp
, longHelp
, clientData
)
2584 def AddCheckLabelTool(self
, id, label
, bitmap
,
2585 bmpDisabled
= wx
.NullBitmap
,
2586 shortHelp
= '', longHelp
= '',
2588 '''Add a check tool, i.e. a tool which can be toggled'''
2589 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2590 shortHelp
, longHelp
, clientData
)
2592 def AddRadioLabelTool(self
, id, label
, bitmap
,
2593 bmpDisabled
= wx
.NullBitmap
,
2594 shortHelp
= '', longHelp
= '',
2597 Add a radio tool, i.e. a tool which can be toggled and releases any
2598 other toggled radio tools in the same group when it happens
2600 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2601 shortHelp
, longHelp
, clientData
)
2604 # For consistency with the backwards compatible methods above, here are
2605 # some non-'Label' versions of the Check and Radio methods
2606 def AddCheckTool(self
, id, bitmap
,
2607 bmpDisabled
= wx
.NullBitmap
,
2608 shortHelp
= '', longHelp
= '',
2610 '''Add a check tool, i.e. a tool which can be toggled'''
2611 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2612 shortHelp
, longHelp
, clientData
)
2614 def AddRadioTool(self
, id, bitmap
,
2615 bmpDisabled
= wx
.NullBitmap
,
2616 shortHelp
= '', longHelp
= '',
2619 Add a radio tool, i.e. a tool which can be toggled and releases any
2620 other toggled radio tools in the same group when it happens
2622 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2623 shortHelp
, longHelp
, clientData
)
2625 def AddToolItem(*args
, **kwargs
):
2626 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2627 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2629 def InsertToolItem(*args
, **kwargs
):
2630 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2631 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2633 def AddControl(*args
, **kwargs
):
2634 """AddControl(Control control) -> ToolBarToolBase"""
2635 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2637 def InsertControl(*args
, **kwargs
):
2638 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2639 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2641 def FindControl(*args
, **kwargs
):
2642 """FindControl(int id) -> Control"""
2643 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2645 def AddSeparator(*args
, **kwargs
):
2646 """AddSeparator() -> ToolBarToolBase"""
2647 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2649 def InsertSeparator(*args
, **kwargs
):
2650 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2651 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2653 def RemoveTool(*args
, **kwargs
):
2654 """RemoveTool(int id) -> ToolBarToolBase"""
2655 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2657 def DeleteToolByPos(*args
, **kwargs
):
2658 """DeleteToolByPos(size_t pos) -> bool"""
2659 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2661 def DeleteTool(*args
, **kwargs
):
2662 """DeleteTool(int id) -> bool"""
2663 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2665 def ClearTools(*args
, **kwargs
):
2667 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2669 def Realize(*args
, **kwargs
):
2670 """Realize() -> bool"""
2671 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2673 def EnableTool(*args
, **kwargs
):
2674 """EnableTool(int id, bool enable)"""
2675 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2677 def ToggleTool(*args
, **kwargs
):
2678 """ToggleTool(int id, bool toggle)"""
2679 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2681 def SetToggle(*args
, **kwargs
):
2682 """SetToggle(int id, bool toggle)"""
2683 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2685 def GetToolClientData(*args
, **kwargs
):
2686 """GetToolClientData(int id) -> PyObject"""
2687 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2689 def SetToolClientData(*args
, **kwargs
):
2690 """SetToolClientData(int id, PyObject clientData)"""
2691 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2693 def GetToolPos(*args
, **kwargs
):
2694 """GetToolPos(int id) -> int"""
2695 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2697 def GetToolState(*args
, **kwargs
):
2698 """GetToolState(int id) -> bool"""
2699 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2701 def GetToolEnabled(*args
, **kwargs
):
2702 """GetToolEnabled(int id) -> bool"""
2703 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2705 def SetToolShortHelp(*args
, **kwargs
):
2706 """SetToolShortHelp(int id, String helpString)"""
2707 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2709 def GetToolShortHelp(*args
, **kwargs
):
2710 """GetToolShortHelp(int id) -> String"""
2711 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2713 def SetToolLongHelp(*args
, **kwargs
):
2714 """SetToolLongHelp(int id, String helpString)"""
2715 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2717 def GetToolLongHelp(*args
, **kwargs
):
2718 """GetToolLongHelp(int id) -> String"""
2719 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2721 def SetMarginsXY(*args
, **kwargs
):
2722 """SetMarginsXY(int x, int y)"""
2723 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2725 def SetMargins(*args
, **kwargs
):
2726 """SetMargins(Size size)"""
2727 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2729 def SetToolPacking(*args
, **kwargs
):
2730 """SetToolPacking(int packing)"""
2731 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2733 def SetToolSeparation(*args
, **kwargs
):
2734 """SetToolSeparation(int separation)"""
2735 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2737 def GetToolMargins(*args
, **kwargs
):
2738 """GetToolMargins() -> Size"""
2739 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2741 def GetMargins(*args
, **kwargs
):
2742 """GetMargins() -> Size"""
2743 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2745 def GetToolPacking(*args
, **kwargs
):
2746 """GetToolPacking() -> int"""
2747 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2749 def GetToolSeparation(*args
, **kwargs
):
2750 """GetToolSeparation() -> int"""
2751 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2753 def SetRows(*args
, **kwargs
):
2754 """SetRows(int nRows)"""
2755 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2757 def SetMaxRowsCols(*args
, **kwargs
):
2758 """SetMaxRowsCols(int rows, int cols)"""
2759 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2761 def GetMaxRows(*args
, **kwargs
):
2762 """GetMaxRows() -> int"""
2763 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2765 def GetMaxCols(*args
, **kwargs
):
2766 """GetMaxCols() -> int"""
2767 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2769 def SetToolBitmapSize(*args
, **kwargs
):
2770 """SetToolBitmapSize(Size size)"""
2771 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2773 def GetToolBitmapSize(*args
, **kwargs
):
2774 """GetToolBitmapSize() -> Size"""
2775 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2777 def GetToolSize(*args
, **kwargs
):
2778 """GetToolSize() -> Size"""
2779 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2781 def FindToolForPosition(*args
, **kwargs
):
2782 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2783 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2785 def FindById(*args
, **kwargs
):
2786 """FindById(int toolid) -> ToolBarToolBase"""
2787 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2789 def IsVertical(*args
, **kwargs
):
2790 """IsVertical() -> bool"""
2791 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2794 class ToolBarBasePtr(ToolBarBase
):
2795 def __init__(self
, this
):
2797 if not hasattr(self
,"thisown"): self
.thisown
= 0
2798 self
.__class
__ = ToolBarBase
2799 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2801 class ToolBar(ToolBarBase
):
2803 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2804 def __init__(self
, *args
, **kwargs
):
2806 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2807 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2808 String name=wxPyToolBarNameStr) -> ToolBar
2810 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2811 self
.this
= newobj
.this
2814 self
._setOORInfo
(self
)
2816 def Create(*args
, **kwargs
):
2818 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2819 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2820 String name=wxPyToolBarNameStr) -> bool
2822 return _controls
.ToolBar_Create(*args
, **kwargs
)
2824 def FindToolForPosition(*args
, **kwargs
):
2825 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2826 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2829 class ToolBarPtr(ToolBar
):
2830 def __init__(self
, this
):
2832 if not hasattr(self
,"thisown"): self
.thisown
= 0
2833 self
.__class
__ = ToolBar
2834 _controls
.ToolBar_swigregister(ToolBarPtr
)
2836 def PreToolBar(*args
, **kwargs
):
2837 """PreToolBar() -> ToolBar"""
2838 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2842 #---------------------------------------------------------------------------
2844 LC_VRULES
= _controls
.LC_VRULES
2845 LC_HRULES
= _controls
.LC_HRULES
2846 LC_ICON
= _controls
.LC_ICON
2847 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2848 LC_LIST
= _controls
.LC_LIST
2849 LC_REPORT
= _controls
.LC_REPORT
2850 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2851 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2852 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2853 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2854 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2855 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2856 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2857 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2858 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2859 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2860 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2861 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2862 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2863 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2864 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2865 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2866 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2867 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2868 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2869 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2870 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2871 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2872 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2873 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2874 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2875 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2876 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2877 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2878 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2879 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2880 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2881 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2882 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2883 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2884 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2885 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2886 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2887 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2888 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2889 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2890 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2891 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2892 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2893 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2894 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2895 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2896 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2897 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2898 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2899 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2900 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2901 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2902 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2903 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2904 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2905 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2906 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2907 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2908 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2909 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2910 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2911 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2912 #---------------------------------------------------------------------------
2914 class ListItemAttr(object):
2916 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2917 def __init__(self
, *args
, **kwargs
):
2919 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
2920 Font font=wxNullFont) -> ListItemAttr
2922 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2923 self
.this
= newobj
.this
2926 def SetTextColour(*args
, **kwargs
):
2927 """SetTextColour(Colour colText)"""
2928 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2930 def SetBackgroundColour(*args
, **kwargs
):
2931 """SetBackgroundColour(Colour colBack)"""
2932 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2934 def SetFont(*args
, **kwargs
):
2935 """SetFont(Font font)"""
2936 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2938 def HasTextColour(*args
, **kwargs
):
2939 """HasTextColour() -> bool"""
2940 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2942 def HasBackgroundColour(*args
, **kwargs
):
2943 """HasBackgroundColour() -> bool"""
2944 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2946 def HasFont(*args
, **kwargs
):
2947 """HasFont() -> bool"""
2948 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2950 def GetTextColour(*args
, **kwargs
):
2951 """GetTextColour() -> Colour"""
2952 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2954 def GetBackgroundColour(*args
, **kwargs
):
2955 """GetBackgroundColour() -> Colour"""
2956 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2958 def GetFont(*args
, **kwargs
):
2959 """GetFont() -> Font"""
2960 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2962 def Destroy(*args
, **kwargs
):
2964 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2967 class ListItemAttrPtr(ListItemAttr
):
2968 def __init__(self
, this
):
2970 if not hasattr(self
,"thisown"): self
.thisown
= 0
2971 self
.__class
__ = ListItemAttr
2972 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2973 ListCtrlNameStr
= cvar
.ListCtrlNameStr
2975 #---------------------------------------------------------------------------
2977 class ListItem(core
.Object
):
2979 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2980 def __init__(self
, *args
, **kwargs
):
2981 """__init__() -> ListItem"""
2982 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2983 self
.this
= newobj
.this
2986 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2989 if self
.thisown
: destroy(self
)
2992 def Clear(*args
, **kwargs
):
2994 return _controls
.ListItem_Clear(*args
, **kwargs
)
2996 def ClearAttributes(*args
, **kwargs
):
2997 """ClearAttributes()"""
2998 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
3000 def SetMask(*args
, **kwargs
):
3001 """SetMask(long mask)"""
3002 return _controls
.ListItem_SetMask(*args
, **kwargs
)
3004 def SetId(*args
, **kwargs
):
3005 """SetId(long id)"""
3006 return _controls
.ListItem_SetId(*args
, **kwargs
)
3008 def SetColumn(*args
, **kwargs
):
3009 """SetColumn(int col)"""
3010 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
3012 def SetState(*args
, **kwargs
):
3013 """SetState(long state)"""
3014 return _controls
.ListItem_SetState(*args
, **kwargs
)
3016 def SetStateMask(*args
, **kwargs
):
3017 """SetStateMask(long stateMask)"""
3018 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
3020 def SetText(*args
, **kwargs
):
3021 """SetText(String text)"""
3022 return _controls
.ListItem_SetText(*args
, **kwargs
)
3024 def SetImage(*args
, **kwargs
):
3025 """SetImage(int image)"""
3026 return _controls
.ListItem_SetImage(*args
, **kwargs
)
3028 def SetData(*args
, **kwargs
):
3029 """SetData(long data)"""
3030 return _controls
.ListItem_SetData(*args
, **kwargs
)
3032 def SetWidth(*args
, **kwargs
):
3033 """SetWidth(int width)"""
3034 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3036 def SetAlign(*args
, **kwargs
):
3037 """SetAlign(int align)"""
3038 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3040 def SetTextColour(*args
, **kwargs
):
3041 """SetTextColour(Colour colText)"""
3042 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3044 def SetBackgroundColour(*args
, **kwargs
):
3045 """SetBackgroundColour(Colour colBack)"""
3046 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3048 def SetFont(*args
, **kwargs
):
3049 """SetFont(Font font)"""
3050 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3052 def GetMask(*args
, **kwargs
):
3053 """GetMask() -> long"""
3054 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3056 def GetId(*args
, **kwargs
):
3057 """GetId() -> long"""
3058 return _controls
.ListItem_GetId(*args
, **kwargs
)
3060 def GetColumn(*args
, **kwargs
):
3061 """GetColumn() -> int"""
3062 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3064 def GetState(*args
, **kwargs
):
3065 """GetState() -> long"""
3066 return _controls
.ListItem_GetState(*args
, **kwargs
)
3068 def GetText(*args
, **kwargs
):
3069 """GetText() -> String"""
3070 return _controls
.ListItem_GetText(*args
, **kwargs
)
3072 def GetImage(*args
, **kwargs
):
3073 """GetImage() -> int"""
3074 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3076 def GetData(*args
, **kwargs
):
3077 """GetData() -> long"""
3078 return _controls
.ListItem_GetData(*args
, **kwargs
)
3080 def GetWidth(*args
, **kwargs
):
3081 """GetWidth() -> int"""
3082 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3084 def GetAlign(*args
, **kwargs
):
3085 """GetAlign() -> int"""
3086 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3088 def GetAttributes(*args
, **kwargs
):
3089 """GetAttributes() -> ListItemAttr"""
3090 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3092 def HasAttributes(*args
, **kwargs
):
3093 """HasAttributes() -> bool"""
3094 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3096 def GetTextColour(*args
, **kwargs
):
3097 """GetTextColour() -> Colour"""
3098 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3100 def GetBackgroundColour(*args
, **kwargs
):
3101 """GetBackgroundColour() -> Colour"""
3102 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3104 def GetFont(*args
, **kwargs
):
3105 """GetFont() -> Font"""
3106 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3108 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3109 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3110 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3111 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3112 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3113 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3114 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3115 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3116 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3117 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3119 class ListItemPtr(ListItem
):
3120 def __init__(self
, this
):
3122 if not hasattr(self
,"thisown"): self
.thisown
= 0
3123 self
.__class
__ = ListItem
3124 _controls
.ListItem_swigregister(ListItemPtr
)
3126 #---------------------------------------------------------------------------
3128 class ListEvent(core
.NotifyEvent
):
3130 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3131 def __init__(self
, *args
, **kwargs
):
3132 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3133 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3134 self
.this
= newobj
.this
3137 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3138 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3139 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3140 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3141 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3142 m_item
= property(_controls
.ListEvent_m_item_get
)
3143 def GetKeyCode(*args
, **kwargs
):
3144 """GetKeyCode() -> int"""
3145 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3147 GetCode
= GetKeyCode
3148 def GetIndex(*args
, **kwargs
):
3149 """GetIndex() -> long"""
3150 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3152 def GetColumn(*args
, **kwargs
):
3153 """GetColumn() -> int"""
3154 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3156 def GetPoint(*args
, **kwargs
):
3157 """GetPoint() -> Point"""
3158 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3160 GetPosition
= GetPoint
3161 def GetLabel(*args
, **kwargs
):
3162 """GetLabel() -> String"""
3163 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3165 def GetText(*args
, **kwargs
):
3166 """GetText() -> String"""
3167 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3169 def GetImage(*args
, **kwargs
):
3170 """GetImage() -> int"""
3171 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3173 def GetData(*args
, **kwargs
):
3174 """GetData() -> long"""
3175 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3177 def GetMask(*args
, **kwargs
):
3178 """GetMask() -> long"""
3179 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3181 def GetItem(*args
, **kwargs
):
3182 """GetItem() -> ListItem"""
3183 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3185 def GetCacheFrom(*args
, **kwargs
):
3186 """GetCacheFrom() -> long"""
3187 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3189 def GetCacheTo(*args
, **kwargs
):
3190 """GetCacheTo() -> long"""
3191 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3193 def IsEditCancelled(*args
, **kwargs
):
3194 """IsEditCancelled() -> bool"""
3195 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3197 def SetEditCanceled(*args
, **kwargs
):
3198 """SetEditCanceled(bool editCancelled)"""
3199 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3202 class ListEventPtr(ListEvent
):
3203 def __init__(self
, this
):
3205 if not hasattr(self
,"thisown"): self
.thisown
= 0
3206 self
.__class
__ = ListEvent
3207 _controls
.ListEvent_swigregister(ListEventPtr
)
3209 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3210 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3211 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3212 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3213 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3214 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3215 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3216 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3217 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3218 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3219 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3220 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3221 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3222 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3223 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3224 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3225 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3226 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3227 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3228 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3229 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3230 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3231 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3232 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3233 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3234 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3235 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3236 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3237 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3238 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3239 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3240 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3241 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3242 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3243 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3244 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3245 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3246 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3247 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3248 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3249 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3250 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3251 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3252 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3254 #---------------------------------------------------------------------------
3256 class ListCtrl(core
.Control
):
3258 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3259 def __init__(self
, *args
, **kwargs
):
3261 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3262 Size size=DefaultSize, long style=LC_ICON,
3263 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3265 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3266 self
.this
= newobj
.this
3269 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3271 def Create(*args
, **kwargs
):
3273 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3274 Size size=DefaultSize, long style=LC_ICON,
3275 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3277 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3279 def _setCallbackInfo(*args
, **kwargs
):
3280 """_setCallbackInfo(PyObject self, PyObject _class)"""
3281 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3283 def SetForegroundColour(*args
, **kwargs
):
3284 """SetForegroundColour(Colour col) -> bool"""
3285 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3287 def SetBackgroundColour(*args
, **kwargs
):
3288 """SetBackgroundColour(Colour col) -> bool"""
3289 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3291 def GetColumn(*args
, **kwargs
):
3292 """GetColumn(int col) -> ListItem"""
3293 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3294 if val
is not None: val
.thisown
= 1
3297 def SetColumn(*args
, **kwargs
):
3298 """SetColumn(int col, ListItem item) -> bool"""
3299 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3301 def GetColumnWidth(*args
, **kwargs
):
3302 """GetColumnWidth(int col) -> int"""
3303 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3305 def SetColumnWidth(*args
, **kwargs
):
3306 """SetColumnWidth(int col, int width) -> bool"""
3307 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3309 def GetCountPerPage(*args
, **kwargs
):
3310 """GetCountPerPage() -> int"""
3311 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3313 def GetViewRect(*args
, **kwargs
):
3314 """GetViewRect() -> Rect"""
3315 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3317 def GetItem(*args
, **kwargs
):
3318 """GetItem(long itemId, int col=0) -> ListItem"""
3319 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3320 if val
is not None: val
.thisown
= 1
3323 def SetItem(*args
, **kwargs
):
3324 """SetItem(ListItem info) -> bool"""
3325 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3327 def SetStringItem(*args
, **kwargs
):
3328 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3329 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3331 def GetItemState(*args
, **kwargs
):
3332 """GetItemState(long item, long stateMask) -> int"""
3333 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3335 def SetItemState(*args
, **kwargs
):
3336 """SetItemState(long item, long state, long stateMask) -> bool"""
3337 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3339 def SetItemImage(*args
, **kwargs
):
3340 """SetItemImage(long item, int image, int selImage) -> bool"""
3341 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3343 def GetItemText(*args
, **kwargs
):
3344 """GetItemText(long item) -> String"""
3345 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3347 def SetItemText(*args
, **kwargs
):
3348 """SetItemText(long item, String str)"""
3349 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3351 def GetItemData(*args
, **kwargs
):
3352 """GetItemData(long item) -> long"""
3353 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3355 def SetItemData(*args
, **kwargs
):
3356 """SetItemData(long item, long data) -> bool"""
3357 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3359 def GetItemPosition(*args
, **kwargs
):
3360 """GetItemPosition(long item) -> Point"""
3361 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3363 def GetItemRect(*args
, **kwargs
):
3364 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3365 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3367 def SetItemPosition(*args
, **kwargs
):
3368 """SetItemPosition(long item, Point pos) -> bool"""
3369 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3371 def GetItemCount(*args
, **kwargs
):
3372 """GetItemCount() -> int"""
3373 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3375 def GetColumnCount(*args
, **kwargs
):
3376 """GetColumnCount() -> int"""
3377 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3379 def GetItemSpacing(*args
, **kwargs
):
3380 """GetItemSpacing() -> Size"""
3381 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3383 def SetItemSpacing(*args
, **kwargs
):
3384 """SetItemSpacing(int spacing, bool isSmall=False)"""
3385 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3387 def GetSelectedItemCount(*args
, **kwargs
):
3388 """GetSelectedItemCount() -> int"""
3389 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3391 def GetTextColour(*args
, **kwargs
):
3392 """GetTextColour() -> Colour"""
3393 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3395 def SetTextColour(*args
, **kwargs
):
3396 """SetTextColour(Colour col)"""
3397 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3399 def GetTopItem(*args
, **kwargs
):
3400 """GetTopItem() -> long"""
3401 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3403 def SetSingleStyle(*args
, **kwargs
):
3404 """SetSingleStyle(long style, bool add=True)"""
3405 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3407 def SetWindowStyleFlag(*args
, **kwargs
):
3408 """SetWindowStyleFlag(long style)"""
3409 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3411 def GetNextItem(*args
, **kwargs
):
3412 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3413 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3415 def GetImageList(*args
, **kwargs
):
3416 """GetImageList(int which) -> ImageList"""
3417 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3419 def SetImageList(*args
, **kwargs
):
3420 """SetImageList(ImageList imageList, int which)"""
3421 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3423 def AssignImageList(*args
, **kwargs
):
3424 """AssignImageList(ImageList imageList, int which)"""
3425 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3427 def IsVirtual(*args
, **kwargs
):
3428 """IsVirtual() -> bool"""
3429 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3431 def RefreshItem(*args
, **kwargs
):
3432 """RefreshItem(long item)"""
3433 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3435 def RefreshItems(*args
, **kwargs
):
3436 """RefreshItems(long itemFrom, long itemTo)"""
3437 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3439 def Arrange(*args
, **kwargs
):
3440 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3441 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3443 def DeleteItem(*args
, **kwargs
):
3444 """DeleteItem(long item) -> bool"""
3445 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3447 def DeleteAllItems(*args
, **kwargs
):
3448 """DeleteAllItems() -> bool"""
3449 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3451 def DeleteColumn(*args
, **kwargs
):
3452 """DeleteColumn(int col) -> bool"""
3453 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3455 def DeleteAllColumns(*args
, **kwargs
):
3456 """DeleteAllColumns() -> bool"""
3457 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3459 def ClearAll(*args
, **kwargs
):
3461 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3463 def EditLabel(*args
, **kwargs
):
3464 """EditLabel(long item)"""
3465 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3467 def EnsureVisible(*args
, **kwargs
):
3468 """EnsureVisible(long item) -> bool"""
3469 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3471 def FindItem(*args
, **kwargs
):
3472 """FindItem(long start, String str, bool partial=False) -> long"""
3473 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3475 def FindItemData(*args
, **kwargs
):
3476 """FindItemData(long start, long data) -> long"""
3477 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3479 def FindItemAtPos(*args
, **kwargs
):
3480 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3481 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3483 def HitTest(*args
, **kwargs
):
3485 HitTest(Point point) -> (item, where)
3487 Determines which item (if any) is at the specified point,
3488 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3490 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3492 def InsertItem(*args
, **kwargs
):
3493 """InsertItem(ListItem info) -> long"""
3494 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3496 def InsertStringItem(*args
, **kwargs
):
3497 """InsertStringItem(long index, String label) -> long"""
3498 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3500 def InsertImageItem(*args
, **kwargs
):
3501 """InsertImageItem(long index, int imageIndex) -> long"""
3502 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3504 def InsertImageStringItem(*args
, **kwargs
):
3505 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3506 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3508 def InsertColumnInfo(*args
, **kwargs
):
3509 """InsertColumnInfo(long col, ListItem info) -> long"""
3510 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3512 def InsertColumn(*args
, **kwargs
):
3514 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3515 int width=-1) -> long
3517 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3519 def SetItemCount(*args
, **kwargs
):
3520 """SetItemCount(long count)"""
3521 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3523 def ScrollList(*args
, **kwargs
):
3524 """ScrollList(int dx, int dy) -> bool"""
3525 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3527 def SetItemTextColour(*args
, **kwargs
):
3528 """SetItemTextColour(long item, Colour col)"""
3529 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3531 def GetItemTextColour(*args
, **kwargs
):
3532 """GetItemTextColour(long item) -> Colour"""
3533 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3535 def SetItemBackgroundColour(*args
, **kwargs
):
3536 """SetItemBackgroundColour(long item, Colour col)"""
3537 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3539 def GetItemBackgroundColour(*args
, **kwargs
):
3540 """GetItemBackgroundColour(long item) -> Colour"""
3541 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3545 def Select(self
, idx
, on
=1):
3546 '''[de]select an item'''
3547 if on
: state
= wx
.LIST_STATE_SELECTED
3549 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3551 def Focus(self
, idx
):
3552 '''Focus and show the given item'''
3553 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3554 self
.EnsureVisible(idx
)
3556 def GetFocusedItem(self
):
3557 '''get the currently focused item or -1 if none'''
3558 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3560 def GetFirstSelected(self
, *args
):
3561 '''return first selected item, or -1 when none'''
3562 return self
.GetNextSelected(-1)
3564 def GetNextSelected(self
, item
):
3565 '''return subsequent selected items, or -1 when no more'''
3566 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3568 def IsSelected(self
, idx
):
3569 '''return True if the item is selected'''
3570 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3572 def SetColumnImage(self
, col
, image
):
3573 item
= self
.GetColumn(col
)
3574 # preserve all other attributes too
3575 item
.SetMask( wx
.LIST_MASK_STATE |
3577 wx
.LIST_MASK_IMAGE |
3580 wx
.LIST_MASK_WIDTH |
3581 wx
.LIST_MASK_FORMAT
)
3582 item
.SetImage(image
)
3583 self
.SetColumn(col
, item
)
3585 def ClearColumnImage(self
, col
):
3586 self
.SetColumnImage(col
, -1)
3588 def Append(self
, entry
):
3589 '''Append an item to the list control. The entry parameter should be a
3590 sequence with an item for each column'''
3596 pos
= self
.GetItemCount()
3597 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3598 for i
in range(1, len(entry
)):
3599 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3602 def SortItems(*args
, **kwargs
):
3603 """SortItems(PyObject func) -> bool"""
3604 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3606 def GetMainWindow(*args
, **kwargs
):
3607 """GetMainWindow() -> Window"""
3608 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3611 class ListCtrlPtr(ListCtrl
):
3612 def __init__(self
, this
):
3614 if not hasattr(self
,"thisown"): self
.thisown
= 0
3615 self
.__class
__ = ListCtrl
3616 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3618 def PreListCtrl(*args
, **kwargs
):
3619 """PreListCtrl() -> ListCtrl"""
3620 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3624 #---------------------------------------------------------------------------
3626 class ListView(ListCtrl
):
3628 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3629 def __init__(self
, *args
, **kwargs
):
3631 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3632 Size size=DefaultSize, long style=LC_REPORT,
3633 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3635 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3636 self
.this
= newobj
.this
3639 self
._setOORInfo
(self
)
3641 def Create(*args
, **kwargs
):
3643 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3644 Size size=DefaultSize, long style=LC_REPORT,
3645 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3647 return _controls
.ListView_Create(*args
, **kwargs
)
3649 def Select(*args
, **kwargs
):
3650 """Select(long n, bool on=True)"""
3651 return _controls
.ListView_Select(*args
, **kwargs
)
3653 def Focus(*args
, **kwargs
):
3654 """Focus(long index)"""
3655 return _controls
.ListView_Focus(*args
, **kwargs
)
3657 def GetFocusedItem(*args
, **kwargs
):
3658 """GetFocusedItem() -> long"""
3659 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3661 def GetNextSelected(*args
, **kwargs
):
3662 """GetNextSelected(long item) -> long"""
3663 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3665 def GetFirstSelected(*args
, **kwargs
):
3666 """GetFirstSelected() -> long"""
3667 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3669 def IsSelected(*args
, **kwargs
):
3670 """IsSelected(long index) -> bool"""
3671 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3673 def SetColumnImage(*args
, **kwargs
):
3674 """SetColumnImage(int col, int image)"""
3675 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3677 def ClearColumnImage(*args
, **kwargs
):
3678 """ClearColumnImage(int col)"""
3679 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3682 class ListViewPtr(ListView
):
3683 def __init__(self
, this
):
3685 if not hasattr(self
,"thisown"): self
.thisown
= 0
3686 self
.__class
__ = ListView
3687 _controls
.ListView_swigregister(ListViewPtr
)
3689 def PreListView(*args
, **kwargs
):
3690 """PreListView() -> ListView"""
3691 val
= _controls
.new_PreListView(*args
, **kwargs
)
3695 #---------------------------------------------------------------------------
3697 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3698 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3699 TR_NO_LINES
= _controls
.TR_NO_LINES
3700 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3701 TR_SINGLE
= _controls
.TR_SINGLE
3702 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3703 TR_EXTENDED
= _controls
.TR_EXTENDED
3704 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3705 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3706 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3707 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3708 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3709 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3710 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3711 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3712 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3713 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3714 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3715 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3716 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3717 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3718 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3719 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3720 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3721 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3722 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3723 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3724 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3725 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3726 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3727 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3728 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3729 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3730 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3731 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3732 #---------------------------------------------------------------------------
3734 class TreeItemId(object):
3736 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3737 def __init__(self
, *args
, **kwargs
):
3738 """__init__() -> TreeItemId"""
3739 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3740 self
.this
= newobj
.this
3743 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3746 if self
.thisown
: destroy(self
)
3749 def IsOk(*args
, **kwargs
):
3750 """IsOk() -> bool"""
3751 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3753 def __eq__(*args
, **kwargs
):
3754 """__eq__(TreeItemId other) -> bool"""
3755 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3757 def __ne__(*args
, **kwargs
):
3758 """__ne__(TreeItemId other) -> bool"""
3759 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3761 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3763 def __nonzero__(self
): return self
.IsOk()
3765 class TreeItemIdPtr(TreeItemId
):
3766 def __init__(self
, this
):
3768 if not hasattr(self
,"thisown"): self
.thisown
= 0
3769 self
.__class
__ = TreeItemId
3770 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3771 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3773 class TreeItemData(object):
3775 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3776 def __init__(self
, *args
, **kwargs
):
3777 """__init__(PyObject obj=None) -> TreeItemData"""
3778 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3779 self
.this
= newobj
.this
3782 def GetData(*args
, **kwargs
):
3783 """GetData() -> PyObject"""
3784 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3786 def SetData(*args
, **kwargs
):
3787 """SetData(PyObject obj)"""
3788 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3790 def GetId(*args
, **kwargs
):
3791 """GetId() -> TreeItemId"""
3792 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3794 def SetId(*args
, **kwargs
):
3795 """SetId(TreeItemId id)"""
3796 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3798 def Destroy(*args
, **kwargs
):
3800 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3803 class TreeItemDataPtr(TreeItemData
):
3804 def __init__(self
, this
):
3806 if not hasattr(self
,"thisown"): self
.thisown
= 0
3807 self
.__class
__ = TreeItemData
3808 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3810 #---------------------------------------------------------------------------
3812 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3813 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3814 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3815 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3816 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3817 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3818 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3819 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3820 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3821 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3822 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3823 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3824 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3825 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3826 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3827 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3828 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3829 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3830 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3831 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3832 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3833 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3834 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3835 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3836 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3837 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3838 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3839 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3840 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3841 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3842 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3843 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3844 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3845 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3846 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3847 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3848 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3849 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3850 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3851 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3853 class TreeEvent(core
.NotifyEvent
):
3855 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3856 def __init__(self
, *args
, **kwargs
):
3857 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3858 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3859 self
.this
= newobj
.this
3862 def GetItem(*args
, **kwargs
):
3863 """GetItem() -> TreeItemId"""
3864 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3866 def SetItem(*args
, **kwargs
):
3867 """SetItem(TreeItemId item)"""
3868 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3870 def GetOldItem(*args
, **kwargs
):
3871 """GetOldItem() -> TreeItemId"""
3872 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3874 def SetOldItem(*args
, **kwargs
):
3875 """SetOldItem(TreeItemId item)"""
3876 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3878 def GetPoint(*args
, **kwargs
):
3879 """GetPoint() -> Point"""
3880 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3882 def SetPoint(*args
, **kwargs
):
3883 """SetPoint(Point pt)"""
3884 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3886 def GetKeyEvent(*args
, **kwargs
):
3887 """GetKeyEvent() -> KeyEvent"""
3888 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3890 def GetKeyCode(*args
, **kwargs
):
3891 """GetKeyCode() -> int"""
3892 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3894 def SetKeyEvent(*args
, **kwargs
):
3895 """SetKeyEvent(KeyEvent evt)"""
3896 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3898 def GetLabel(*args
, **kwargs
):
3899 """GetLabel() -> String"""
3900 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3902 def SetLabel(*args
, **kwargs
):
3903 """SetLabel(String label)"""
3904 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3906 def IsEditCancelled(*args
, **kwargs
):
3907 """IsEditCancelled() -> bool"""
3908 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3910 def SetEditCanceled(*args
, **kwargs
):
3911 """SetEditCanceled(bool editCancelled)"""
3912 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3914 def SetToolTip(*args
, **kwargs
):
3915 """SetToolTip(String toolTip)"""
3916 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
3919 class TreeEventPtr(TreeEvent
):
3920 def __init__(self
, this
):
3922 if not hasattr(self
,"thisown"): self
.thisown
= 0
3923 self
.__class
__ = TreeEvent
3924 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3926 #---------------------------------------------------------------------------
3928 class TreeCtrl(core
.Control
):
3930 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3931 def __init__(self
, *args
, **kwargs
):
3933 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3934 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3935 Validator validator=DefaultValidator,
3936 String name=TreeCtrlNameStr) -> TreeCtrl
3938 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3939 self
.this
= newobj
.this
3942 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3944 def Create(*args
, **kwargs
):
3946 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3947 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3948 Validator validator=DefaultValidator,
3949 String name=TreeCtrlNameStr) -> bool
3951 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3953 def _setCallbackInfo(*args
, **kwargs
):
3954 """_setCallbackInfo(PyObject self, PyObject _class)"""
3955 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3957 def GetCount(*args
, **kwargs
):
3958 """GetCount() -> size_t"""
3959 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3961 def GetIndent(*args
, **kwargs
):
3962 """GetIndent() -> unsigned int"""
3963 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3965 def SetIndent(*args
, **kwargs
):
3966 """SetIndent(unsigned int indent)"""
3967 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3969 def GetSpacing(*args
, **kwargs
):
3970 """GetSpacing() -> unsigned int"""
3971 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3973 def SetSpacing(*args
, **kwargs
):
3974 """SetSpacing(unsigned int spacing)"""
3975 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3977 def GetImageList(*args
, **kwargs
):
3978 """GetImageList() -> ImageList"""
3979 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3981 def GetStateImageList(*args
, **kwargs
):
3982 """GetStateImageList() -> ImageList"""
3983 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3985 def SetImageList(*args
, **kwargs
):
3986 """SetImageList(ImageList imageList)"""
3987 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3989 def SetStateImageList(*args
, **kwargs
):
3990 """SetStateImageList(ImageList imageList)"""
3991 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3993 def AssignImageList(*args
, **kwargs
):
3994 """AssignImageList(ImageList imageList)"""
3995 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3997 def AssignStateImageList(*args
, **kwargs
):
3998 """AssignStateImageList(ImageList imageList)"""
3999 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4001 def GetItemText(*args
, **kwargs
):
4002 """GetItemText(TreeItemId item) -> String"""
4003 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
4005 def GetItemImage(*args
, **kwargs
):
4006 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4007 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4009 def GetItemData(*args
, **kwargs
):
4010 """GetItemData(TreeItemId item) -> TreeItemData"""
4011 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
4013 def GetItemPyData(*args
, **kwargs
):
4014 """GetItemPyData(TreeItemId item) -> PyObject"""
4015 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4017 GetPyData
= GetItemPyData
4018 def GetItemTextColour(*args
, **kwargs
):
4019 """GetItemTextColour(TreeItemId item) -> Colour"""
4020 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4022 def GetItemBackgroundColour(*args
, **kwargs
):
4023 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
4024 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4026 def GetItemFont(*args
, **kwargs
):
4027 """GetItemFont(TreeItemId item) -> Font"""
4028 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4030 def SetItemText(*args
, **kwargs
):
4031 """SetItemText(TreeItemId item, String text)"""
4032 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4034 def SetItemImage(*args
, **kwargs
):
4035 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4036 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4038 def SetItemData(*args
, **kwargs
):
4039 """SetItemData(TreeItemId item, TreeItemData data)"""
4040 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4042 def SetItemPyData(*args
, **kwargs
):
4043 """SetItemPyData(TreeItemId item, PyObject obj)"""
4044 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4046 SetPyData
= SetItemPyData
4047 def SetItemHasChildren(*args
, **kwargs
):
4048 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4049 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4051 def SetItemBold(*args
, **kwargs
):
4052 """SetItemBold(TreeItemId item, bool bold=True)"""
4053 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4055 def SetItemTextColour(*args
, **kwargs
):
4056 """SetItemTextColour(TreeItemId item, Colour col)"""
4057 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4059 def SetItemBackgroundColour(*args
, **kwargs
):
4060 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4061 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4063 def SetItemFont(*args
, **kwargs
):
4064 """SetItemFont(TreeItemId item, Font font)"""
4065 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4067 def IsVisible(*args
, **kwargs
):
4068 """IsVisible(TreeItemId item) -> bool"""
4069 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4071 def ItemHasChildren(*args
, **kwargs
):
4072 """ItemHasChildren(TreeItemId item) -> bool"""
4073 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4075 def IsExpanded(*args
, **kwargs
):
4076 """IsExpanded(TreeItemId item) -> bool"""
4077 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4079 def IsSelected(*args
, **kwargs
):
4080 """IsSelected(TreeItemId item) -> bool"""
4081 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4083 def IsBold(*args
, **kwargs
):
4084 """IsBold(TreeItemId item) -> bool"""
4085 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4087 def GetChildrenCount(*args
, **kwargs
):
4088 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4089 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4091 def GetRootItem(*args
, **kwargs
):
4092 """GetRootItem() -> TreeItemId"""
4093 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4095 def GetSelection(*args
, **kwargs
):
4096 """GetSelection() -> TreeItemId"""
4097 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4099 def GetSelections(*args
, **kwargs
):
4100 """GetSelections() -> PyObject"""
4101 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4103 def GetItemParent(*args
, **kwargs
):
4104 """GetItemParent(TreeItemId item) -> TreeItemId"""
4105 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4107 def GetFirstChild(*args
, **kwargs
):
4108 """GetFirstChild(TreeItemId item) -> PyObject"""
4109 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4111 def GetNextChild(*args
, **kwargs
):
4112 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4113 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4115 def GetLastChild(*args
, **kwargs
):
4116 """GetLastChild(TreeItemId item) -> TreeItemId"""
4117 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4119 def GetNextSibling(*args
, **kwargs
):
4120 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4121 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4123 def GetPrevSibling(*args
, **kwargs
):
4124 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4125 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4127 def GetFirstVisibleItem(*args
, **kwargs
):
4128 """GetFirstVisibleItem() -> TreeItemId"""
4129 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4131 def GetNextVisible(*args
, **kwargs
):
4132 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4133 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4135 def GetPrevVisible(*args
, **kwargs
):
4136 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4137 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4139 def AddRoot(*args
, **kwargs
):
4140 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4141 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4143 def PrependItem(*args
, **kwargs
):
4145 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4146 TreeItemData data=None) -> TreeItemId
4148 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4150 def InsertItem(*args
, **kwargs
):
4152 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4153 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4155 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4157 def InsertItemBefore(*args
, **kwargs
):
4159 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4160 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4162 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4164 def AppendItem(*args
, **kwargs
):
4166 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4167 TreeItemData data=None) -> TreeItemId
4169 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4171 def Delete(*args
, **kwargs
):
4172 """Delete(TreeItemId item)"""
4173 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4175 def DeleteChildren(*args
, **kwargs
):
4176 """DeleteChildren(TreeItemId item)"""
4177 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4179 def DeleteAllItems(*args
, **kwargs
):
4180 """DeleteAllItems()"""
4181 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4183 def Expand(*args
, **kwargs
):
4184 """Expand(TreeItemId item)"""
4185 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4187 def Collapse(*args
, **kwargs
):
4188 """Collapse(TreeItemId item)"""
4189 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4191 def CollapseAndReset(*args
, **kwargs
):
4192 """CollapseAndReset(TreeItemId item)"""
4193 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4195 def Toggle(*args
, **kwargs
):
4196 """Toggle(TreeItemId item)"""
4197 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4199 def Unselect(*args
, **kwargs
):
4201 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4203 def UnselectItem(*args
, **kwargs
):
4204 """UnselectItem(TreeItemId item)"""
4205 return _controls
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4207 def UnselectAll(*args
, **kwargs
):
4209 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4211 def SelectItem(*args
, **kwargs
):
4212 """SelectItem(TreeItemId item, bool select=True)"""
4213 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4215 def ToggleItemSelection(*args
, **kwargs
):
4216 """ToggleItemSelection(TreeItemId item)"""
4217 return _controls
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4219 def EnsureVisible(*args
, **kwargs
):
4220 """EnsureVisible(TreeItemId item)"""
4221 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4223 def ScrollTo(*args
, **kwargs
):
4224 """ScrollTo(TreeItemId item)"""
4225 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4227 def EditLabel(*args
, **kwargs
):
4228 """EditLabel(TreeItemId item)"""
4229 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4231 def GetEditControl(*args
, **kwargs
):
4232 """GetEditControl() -> TextCtrl"""
4233 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4235 def SortChildren(*args
, **kwargs
):
4236 """SortChildren(TreeItemId item)"""
4237 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4239 def HitTest(*args
, **kwargs
):
4241 HitTest(Point point) -> (item, where)
4243 Determine which item (if any) belongs the given point. The
4244 coordinates specified are relative to the client area of tree ctrl
4245 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4249 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4251 def GetBoundingRect(*args
, **kwargs
):
4252 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4253 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4256 class TreeCtrlPtr(TreeCtrl
):
4257 def __init__(self
, this
):
4259 if not hasattr(self
,"thisown"): self
.thisown
= 0
4260 self
.__class
__ = TreeCtrl
4261 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4263 def PreTreeCtrl(*args
, **kwargs
):
4264 """PreTreeCtrl() -> TreeCtrl"""
4265 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4269 #---------------------------------------------------------------------------
4271 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4272 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4273 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4274 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4275 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4276 class GenericDirCtrl(core
.Control
):
4278 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4279 def __init__(self
, *args
, **kwargs
):
4281 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4282 Point pos=DefaultPosition, Size size=DefaultSize,
4283 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4284 String filter=EmptyString,
4285 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4287 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4288 self
.this
= newobj
.this
4291 self
._setOORInfo
(self
)
4293 def Create(*args
, **kwargs
):
4295 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4296 Point pos=DefaultPosition, Size size=DefaultSize,
4297 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4298 String filter=EmptyString,
4299 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4301 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4303 def ExpandPath(*args
, **kwargs
):
4304 """ExpandPath(String path) -> bool"""
4305 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4307 def GetDefaultPath(*args
, **kwargs
):
4308 """GetDefaultPath() -> String"""
4309 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4311 def SetDefaultPath(*args
, **kwargs
):
4312 """SetDefaultPath(String path)"""
4313 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4315 def GetPath(*args
, **kwargs
):
4316 """GetPath() -> String"""
4317 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4319 def GetFilePath(*args
, **kwargs
):
4320 """GetFilePath() -> String"""
4321 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4323 def SetPath(*args
, **kwargs
):
4324 """SetPath(String path)"""
4325 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4327 def ShowHidden(*args
, **kwargs
):
4328 """ShowHidden(bool show)"""
4329 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4331 def GetShowHidden(*args
, **kwargs
):
4332 """GetShowHidden() -> bool"""
4333 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4335 def GetFilter(*args
, **kwargs
):
4336 """GetFilter() -> String"""
4337 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4339 def SetFilter(*args
, **kwargs
):
4340 """SetFilter(String filter)"""
4341 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4343 def GetFilterIndex(*args
, **kwargs
):
4344 """GetFilterIndex() -> int"""
4345 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4347 def SetFilterIndex(*args
, **kwargs
):
4348 """SetFilterIndex(int n)"""
4349 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4351 def GetRootId(*args
, **kwargs
):
4352 """GetRootId() -> TreeItemId"""
4353 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4355 def GetTreeCtrl(*args
, **kwargs
):
4356 """GetTreeCtrl() -> TreeCtrl"""
4357 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4359 def GetFilterListCtrl(*args
, **kwargs
):
4360 """GetFilterListCtrl() -> DirFilterListCtrl"""
4361 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4363 def FindChild(*args
, **kwargs
):
4365 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4367 Find the child that matches the first part of 'path'. E.g. if a child path is
4368 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4369 If the path string has been used (we're at the leaf), done is set to True
4372 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4374 def DoResize(*args
, **kwargs
):
4376 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4378 def ReCreateTree(*args
, **kwargs
):
4379 """ReCreateTree()"""
4380 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4383 class GenericDirCtrlPtr(GenericDirCtrl
):
4384 def __init__(self
, this
):
4386 if not hasattr(self
,"thisown"): self
.thisown
= 0
4387 self
.__class
__ = GenericDirCtrl
4388 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4389 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4391 def PreGenericDirCtrl(*args
, **kwargs
):
4392 """PreGenericDirCtrl() -> GenericDirCtrl"""
4393 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4397 class DirFilterListCtrl(Choice
):
4399 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4400 def __init__(self
, *args
, **kwargs
):
4402 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4403 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4405 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4406 self
.this
= newobj
.this
4409 self
._setOORInfo
(self
)
4411 def Create(*args
, **kwargs
):
4413 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4414 Size size=DefaultSize, long style=0) -> bool
4416 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4418 def FillFilterList(*args
, **kwargs
):
4419 """FillFilterList(String filter, int defaultFilter)"""
4420 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4423 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4424 def __init__(self
, this
):
4426 if not hasattr(self
,"thisown"): self
.thisown
= 0
4427 self
.__class
__ = DirFilterListCtrl
4428 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4430 def PreDirFilterListCtrl(*args
, **kwargs
):
4431 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4432 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4436 #---------------------------------------------------------------------------
4438 class PyControl(core
.Control
):
4440 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4441 def __init__(self
, *args
, **kwargs
):
4443 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4444 long style=0, Validator validator=DefaultValidator,
4445 String name=ControlNameStr) -> PyControl
4447 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4448 self
.this
= newobj
.this
4451 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4453 def _setCallbackInfo(*args
, **kwargs
):
4454 """_setCallbackInfo(PyObject self, PyObject _class)"""
4455 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4457 def base_DoMoveWindow(*args
, **kwargs
):
4458 """base_DoMoveWindow(int x, int y, int width, int height)"""
4459 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4461 def base_DoSetSize(*args
, **kwargs
):
4462 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4463 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4465 def base_DoSetClientSize(*args
, **kwargs
):
4466 """base_DoSetClientSize(int width, int height)"""
4467 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4469 def base_DoSetVirtualSize(*args
, **kwargs
):
4470 """base_DoSetVirtualSize(int x, int y)"""
4471 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4473 def base_DoGetSize(*args
, **kwargs
):
4474 """base_DoGetSize() -> (width, height)"""
4475 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4477 def base_DoGetClientSize(*args
, **kwargs
):
4478 """base_DoGetClientSize() -> (width, height)"""
4479 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4481 def base_DoGetPosition(*args
, **kwargs
):
4482 """base_DoGetPosition() -> (x,y)"""
4483 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4485 def base_DoGetVirtualSize(*args
, **kwargs
):
4486 """base_DoGetVirtualSize() -> Size"""
4487 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4489 def base_DoGetBestSize(*args
, **kwargs
):
4490 """base_DoGetBestSize() -> Size"""
4491 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4493 def base_InitDialog(*args
, **kwargs
):
4494 """base_InitDialog()"""
4495 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4497 def base_TransferDataToWindow(*args
, **kwargs
):
4498 """base_TransferDataToWindow() -> bool"""
4499 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4501 def base_TransferDataFromWindow(*args
, **kwargs
):
4502 """base_TransferDataFromWindow() -> bool"""
4503 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4505 def base_Validate(*args
, **kwargs
):
4506 """base_Validate() -> bool"""
4507 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4509 def base_AcceptsFocus(*args
, **kwargs
):
4510 """base_AcceptsFocus() -> bool"""
4511 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4513 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4514 """base_AcceptsFocusFromKeyboard() -> bool"""
4515 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4517 def base_GetMaxSize(*args
, **kwargs
):
4518 """base_GetMaxSize() -> Size"""
4519 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4521 def base_AddChild(*args
, **kwargs
):
4522 """base_AddChild(Window child)"""
4523 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4525 def base_RemoveChild(*args
, **kwargs
):
4526 """base_RemoveChild(Window child)"""
4527 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4530 class PyControlPtr(PyControl
):
4531 def __init__(self
, this
):
4533 if not hasattr(self
,"thisown"): self
.thisown
= 0
4534 self
.__class
__ = PyControl
4535 _controls
.PyControl_swigregister(PyControlPtr
)
4537 #---------------------------------------------------------------------------
4539 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4540 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4541 wxEVT_HELP
= _controls
.wxEVT_HELP
4542 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4543 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4544 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4545 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4546 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4548 class HelpEvent(core
.CommandEvent
):
4550 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4551 def __init__(self
, *args
, **kwargs
):
4552 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4553 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4554 self
.this
= newobj
.this
4557 def GetPosition(*args
, **kwargs
):
4558 """GetPosition() -> Point"""
4559 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4561 def SetPosition(*args
, **kwargs
):
4562 """SetPosition(Point pos)"""
4563 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4565 def GetLink(*args
, **kwargs
):
4566 """GetLink() -> String"""
4567 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4569 def SetLink(*args
, **kwargs
):
4570 """SetLink(String link)"""
4571 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4573 def GetTarget(*args
, **kwargs
):
4574 """GetTarget() -> String"""
4575 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4577 def SetTarget(*args
, **kwargs
):
4578 """SetTarget(String target)"""
4579 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4582 class HelpEventPtr(HelpEvent
):
4583 def __init__(self
, this
):
4585 if not hasattr(self
,"thisown"): self
.thisown
= 0
4586 self
.__class
__ = HelpEvent
4587 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4589 class ContextHelp(core
.Object
):
4591 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4592 def __init__(self
, *args
, **kwargs
):
4593 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4594 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4595 self
.this
= newobj
.this
4598 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4601 if self
.thisown
: destroy(self
)
4604 def BeginContextHelp(*args
, **kwargs
):
4605 """BeginContextHelp(Window window=None) -> bool"""
4606 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4608 def EndContextHelp(*args
, **kwargs
):
4609 """EndContextHelp() -> bool"""
4610 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4613 class ContextHelpPtr(ContextHelp
):
4614 def __init__(self
, this
):
4616 if not hasattr(self
,"thisown"): self
.thisown
= 0
4617 self
.__class
__ = ContextHelp
4618 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4620 class ContextHelpButton(BitmapButton
):
4622 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4623 def __init__(self
, *args
, **kwargs
):
4625 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4626 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4628 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4629 self
.this
= newobj
.this
4632 self
._setOORInfo
(self
)
4635 class ContextHelpButtonPtr(ContextHelpButton
):
4636 def __init__(self
, this
):
4638 if not hasattr(self
,"thisown"): self
.thisown
= 0
4639 self
.__class
__ = ContextHelpButton
4640 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4642 class HelpProvider(object):
4643 def __init__(self
): raise RuntimeError, "No constructor defined"
4645 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4646 def Set(*args
, **kwargs
):
4647 """Set(HelpProvider helpProvider) -> HelpProvider"""
4648 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4650 Set
= staticmethod(Set
)
4651 def Get(*args
, **kwargs
):
4652 """Get() -> HelpProvider"""
4653 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4655 Get
= staticmethod(Get
)
4656 def GetHelp(*args
, **kwargs
):
4657 """GetHelp(Window window) -> String"""
4658 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4660 def ShowHelp(*args
, **kwargs
):
4661 """ShowHelp(Window window) -> bool"""
4662 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4664 def AddHelp(*args
, **kwargs
):
4665 """AddHelp(Window window, String text)"""
4666 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4668 def AddHelpById(*args
, **kwargs
):
4669 """AddHelpById(int id, String text)"""
4670 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4672 def Destroy(*args
, **kwargs
):
4674 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4677 class HelpProviderPtr(HelpProvider
):
4678 def __init__(self
, this
):
4680 if not hasattr(self
,"thisown"): self
.thisown
= 0
4681 self
.__class
__ = HelpProvider
4682 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4684 def HelpProvider_Set(*args
, **kwargs
):
4685 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4686 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4688 def HelpProvider_Get(*args
, **kwargs
):
4689 """HelpProvider_Get() -> HelpProvider"""
4690 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4692 class SimpleHelpProvider(HelpProvider
):
4694 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4695 def __init__(self
, *args
, **kwargs
):
4696 """__init__() -> SimpleHelpProvider"""
4697 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4698 self
.this
= newobj
.this
4702 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4703 def __init__(self
, this
):
4705 if not hasattr(self
,"thisown"): self
.thisown
= 0
4706 self
.__class
__ = SimpleHelpProvider
4707 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4709 #---------------------------------------------------------------------------
4711 class DragImage(core
.Object
):
4713 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4714 def __init__(self
, *args
, **kwargs
):
4715 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4716 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4717 self
.this
= newobj
.this
4720 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4723 if self
.thisown
: destroy(self
)
4726 def SetBackingBitmap(*args
, **kwargs
):
4727 """SetBackingBitmap(Bitmap bitmap)"""
4728 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4730 def BeginDrag(*args
, **kwargs
):
4732 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4733 Rect rect=None) -> bool
4735 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4737 def BeginDragBounded(*args
, **kwargs
):
4738 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4739 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4741 def EndDrag(*args
, **kwargs
):
4742 """EndDrag() -> bool"""
4743 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4745 def Move(*args
, **kwargs
):
4746 """Move(Point pt) -> bool"""
4747 return _controls
.DragImage_Move(*args
, **kwargs
)
4749 def Show(*args
, **kwargs
):
4750 """Show() -> bool"""
4751 return _controls
.DragImage_Show(*args
, **kwargs
)
4753 def Hide(*args
, **kwargs
):
4754 """Hide() -> bool"""
4755 return _controls
.DragImage_Hide(*args
, **kwargs
)
4757 def GetImageRect(*args
, **kwargs
):
4758 """GetImageRect(Point pos) -> Rect"""
4759 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4761 def DoDrawImage(*args
, **kwargs
):
4762 """DoDrawImage(DC dc, Point pos) -> bool"""
4763 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4765 def UpdateBackingFromWindow(*args
, **kwargs
):
4766 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4767 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4769 def RedrawImage(*args
, **kwargs
):
4770 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4771 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4774 class DragImagePtr(DragImage
):
4775 def __init__(self
, this
):
4777 if not hasattr(self
,"thisown"): self
.thisown
= 0
4778 self
.__class
__ = DragImage
4779 _controls
.DragImage_swigregister(DragImagePtr
)
4781 def DragIcon(*args
, **kwargs
):
4782 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
4783 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4787 def DragString(*args
, **kwargs
):
4788 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4789 val
= _controls
.new_DragString(*args
, **kwargs
)
4793 def DragTreeItem(*args
, **kwargs
):
4794 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4795 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4799 def DragListItem(*args
, **kwargs
):
4800 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4801 val
= _controls
.new_DragListItem(*args
, **kwargs
)