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 SetImageLabel(*args
, **kwargs
):
57 """SetImageLabel(Bitmap bitmap)"""
58 return _controls
.Button_SetImageLabel(*args
, **kwargs
)
60 def SetImageMargins(*args
, **kwargs
):
61 """SetImageMargins(int x, int y)"""
62 return _controls
.Button_SetImageMargins(*args
, **kwargs
)
64 def GetDefaultSize(*args
, **kwargs
):
65 """Button.GetDefaultSize() -> Size"""
66 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
68 GetDefaultSize
= staticmethod(GetDefaultSize
)
70 class ButtonPtr(Button
):
71 def __init__(self
, this
):
73 if not hasattr(self
,"thisown"): self
.thisown
= 0
74 self
.__class
__ = Button
75 _controls
.Button_swigregister(ButtonPtr
)
77 ButtonNameStr
= cvar
.ButtonNameStr
79 def PreButton(*args
, **kwargs
):
83 Precreate a Button for 2-phase creation.
85 val
= _controls
.new_PreButton(*args
, **kwargs
)
89 def Button_GetDefaultSize(*args
, **kwargs
):
90 """Button_GetDefaultSize() -> Size"""
91 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
93 class BitmapButton(Button
):
94 """A Buttont that contains a bitmap."""
96 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
97 def __init__(self
, *args
, **kwargs
):
99 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
100 Size size=DefaultSize, long style=BU_AUTODRAW,
101 Validator validator=DefaultValidator,
102 String name=ButtonNameStr) -> BitmapButton
104 Create and show a button.
106 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
107 self
.this
= newobj
.this
110 self
._setOORInfo
(self
)
112 def Create(*args
, **kwargs
):
114 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
115 Size size=DefaultSize, long style=BU_AUTODRAW,
116 Validator validator=DefaultValidator,
117 String name=ButtonNameStr) -> bool
119 Acutally create the GUI BitmapButton for 2-phase creation.
121 return _controls
.BitmapButton_Create(*args
, **kwargs
)
123 def GetBitmapLabel(*args
, **kwargs
):
125 GetBitmapLabel() -> Bitmap
127 Returns the label bitmap (the one passed to the constructor).
129 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
131 def GetBitmapDisabled(*args
, **kwargs
):
133 GetBitmapDisabled() -> Bitmap
135 Returns the bitmap for the disabled state.
137 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
139 def GetBitmapFocus(*args
, **kwargs
):
141 GetBitmapFocus() -> Bitmap
143 Returns the bitmap for the focused state.
145 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
147 def GetBitmapSelected(*args
, **kwargs
):
149 GetBitmapSelected() -> Bitmap
151 Returns the bitmap for the selected state.
153 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
155 def SetBitmapDisabled(*args
, **kwargs
):
157 SetBitmapDisabled(Bitmap bitmap)
159 Sets the bitmap for the disabled button appearance.
161 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
163 def SetBitmapFocus(*args
, **kwargs
):
165 SetBitmapFocus(Bitmap bitmap)
167 Sets the bitmap for the button appearance when it has the keyboard focus.
169 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
171 def SetBitmapSelected(*args
, **kwargs
):
173 SetBitmapSelected(Bitmap bitmap)
175 Sets the bitmap for the selected (depressed) button appearance.
177 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
179 def SetBitmapLabel(*args
, **kwargs
):
181 SetBitmapLabel(Bitmap bitmap)
183 Sets the bitmap label for the button. This is the bitmap used for the
184 unselected state, and for all other states if no other bitmaps are provided.
186 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
188 def SetMargins(*args
, **kwargs
):
189 """SetMargins(int x, int y)"""
190 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
192 def GetMarginX(*args
, **kwargs
):
193 """GetMarginX() -> int"""
194 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
196 def GetMarginY(*args
, **kwargs
):
197 """GetMarginY() -> int"""
198 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
201 class BitmapButtonPtr(BitmapButton
):
202 def __init__(self
, this
):
204 if not hasattr(self
,"thisown"): self
.thisown
= 0
205 self
.__class
__ = BitmapButton
206 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
208 def PreBitmapButton(*args
, **kwargs
):
210 PreBitmapButton() -> BitmapButton
212 Precreate a BitmapButton for 2-phase creation.
214 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
218 #---------------------------------------------------------------------------
220 CHK_2STATE
= _controls
.CHK_2STATE
221 CHK_3STATE
= _controls
.CHK_3STATE
222 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
223 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
224 CHK_CHECKED
= _controls
.CHK_CHECKED
225 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
226 class CheckBox(core
.Control
):
228 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
229 def __init__(self
, *args
, **kwargs
):
231 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
232 Size size=DefaultSize, long style=0,
233 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
235 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
236 self
.this
= newobj
.this
239 self
._setOORInfo
(self
)
241 def Create(*args
, **kwargs
):
243 Create(Window parent, int id, String label, Point pos=DefaultPosition,
244 Size size=DefaultSize, long style=0,
245 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
247 return _controls
.CheckBox_Create(*args
, **kwargs
)
249 def GetValue(*args
, **kwargs
):
250 """GetValue() -> bool"""
251 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
253 def IsChecked(*args
, **kwargs
):
254 """IsChecked() -> bool"""
255 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
257 def SetValue(*args
, **kwargs
):
258 """SetValue(bool state)"""
259 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
261 def Get3StateValue(*args
, **kwargs
):
262 """Get3StateValue() -> int"""
263 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
265 def Set3StateValue(*args
, **kwargs
):
266 """Set3StateValue(int state)"""
267 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
269 def Is3State(*args
, **kwargs
):
270 """Is3State() -> bool"""
271 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
273 def Is3rdStateAllowedForUser(*args
, **kwargs
):
274 """Is3rdStateAllowedForUser() -> bool"""
275 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
278 class CheckBoxPtr(CheckBox
):
279 def __init__(self
, this
):
281 if not hasattr(self
,"thisown"): self
.thisown
= 0
282 self
.__class
__ = CheckBox
283 _controls
.CheckBox_swigregister(CheckBoxPtr
)
284 CheckBoxNameStr
= cvar
.CheckBoxNameStr
286 def PreCheckBox(*args
, **kwargs
):
287 """PreCheckBox() -> CheckBox"""
288 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
292 #---------------------------------------------------------------------------
294 class Choice(core
.ControlWithItems
):
296 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
297 def __init__(self
, *args
, **kwargs
):
299 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
300 int choices=0, String choices_array=None,
301 long style=0, Validator validator=DefaultValidator,
302 String name=ChoiceNameStr) -> Choice
304 newobj
= _controls
.new_Choice(*args
, **kwargs
)
305 self
.this
= newobj
.this
308 self
._setOORInfo
(self
)
310 def Create(*args
, **kwargs
):
312 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
313 int choices=0, String choices_array=None,
314 long style=0, Validator validator=DefaultValidator,
315 String name=ChoiceNameStr) -> bool
317 return _controls
.Choice_Create(*args
, **kwargs
)
319 def GetColumns(*args
, **kwargs
):
320 """GetColumns() -> int"""
321 return _controls
.Choice_GetColumns(*args
, **kwargs
)
323 def SetColumns(*args
, **kwargs
):
324 """SetColumns(int n=1)"""
325 return _controls
.Choice_SetColumns(*args
, **kwargs
)
327 def SetSelection(*args
, **kwargs
):
328 """SetSelection(int n)"""
329 return _controls
.Choice_SetSelection(*args
, **kwargs
)
331 def SetStringSelection(*args
, **kwargs
):
332 """SetStringSelection(String string)"""
333 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
335 def SetString(*args
, **kwargs
):
336 """SetString(int n, String s)"""
337 return _controls
.Choice_SetString(*args
, **kwargs
)
340 class ChoicePtr(Choice
):
341 def __init__(self
, this
):
343 if not hasattr(self
,"thisown"): self
.thisown
= 0
344 self
.__class
__ = Choice
345 _controls
.Choice_swigregister(ChoicePtr
)
346 ChoiceNameStr
= cvar
.ChoiceNameStr
348 def PreChoice(*args
, **kwargs
):
349 """PreChoice() -> Choice"""
350 val
= _controls
.new_PreChoice(*args
, **kwargs
)
354 #---------------------------------------------------------------------------
356 class ComboBox(Choice
):
358 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
359 def __init__(self
, *args
, **kwargs
):
361 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
362 Size size=DefaultSize,
363 int choices=0, String choices_array=None,
364 long style=0, Validator validator=DefaultValidator,
365 String name=ComboBoxNameStr) -> ComboBox
367 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
368 self
.this
= newobj
.this
371 self
._setOORInfo
(self
)
373 def Create(*args
, **kwargs
):
375 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
376 Size size=DefaultSize,
377 int choices=0, String choices_array=None,
378 long style=0, Validator validator=DefaultValidator,
379 String name=ComboBoxNameStr) -> bool
381 return _controls
.ComboBox_Create(*args
, **kwargs
)
383 def GetValue(*args
, **kwargs
):
384 """GetValue() -> String"""
385 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
387 def SetValue(*args
, **kwargs
):
388 """SetValue(String value)"""
389 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
391 def Copy(*args
, **kwargs
):
393 return _controls
.ComboBox_Copy(*args
, **kwargs
)
395 def Cut(*args
, **kwargs
):
397 return _controls
.ComboBox_Cut(*args
, **kwargs
)
399 def Paste(*args
, **kwargs
):
401 return _controls
.ComboBox_Paste(*args
, **kwargs
)
403 def SetInsertionPoint(*args
, **kwargs
):
404 """SetInsertionPoint(long pos)"""
405 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
407 def GetInsertionPoint(*args
, **kwargs
):
408 """GetInsertionPoint() -> long"""
409 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
411 def GetLastPosition(*args
, **kwargs
):
412 """GetLastPosition() -> long"""
413 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
415 def Replace(*args
, **kwargs
):
416 """Replace(long from, long to, String value)"""
417 return _controls
.ComboBox_Replace(*args
, **kwargs
)
419 def SetSelection(*args
, **kwargs
):
420 """SetSelection(int n)"""
421 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
423 def SetMark(*args
, **kwargs
):
424 """SetMark(long from, long to)"""
425 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
427 def SetEditable(*args
, **kwargs
):
428 """SetEditable(bool editable)"""
429 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
431 def SetInsertionPointEnd(*args
, **kwargs
):
432 """SetInsertionPointEnd()"""
433 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
435 def Remove(*args
, **kwargs
):
436 """Remove(long from, long to)"""
437 return _controls
.ComboBox_Remove(*args
, **kwargs
)
440 class ComboBoxPtr(ComboBox
):
441 def __init__(self
, this
):
443 if not hasattr(self
,"thisown"): self
.thisown
= 0
444 self
.__class
__ = ComboBox
445 _controls
.ComboBox_swigregister(ComboBoxPtr
)
446 ComboBoxNameStr
= cvar
.ComboBoxNameStr
448 def PreComboBox(*args
, **kwargs
):
449 """PreComboBox() -> ComboBox"""
450 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
454 #---------------------------------------------------------------------------
456 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
457 GA_VERTICAL
= _controls
.GA_VERTICAL
458 GA_SMOOTH
= _controls
.GA_SMOOTH
459 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
460 class Gauge(core
.Control
):
462 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
463 def __init__(self
, *args
, **kwargs
):
465 __init__(Window parent, int id, int range, Point pos=DefaultPosition,
466 Size size=DefaultSize, long style=GA_HORIZONTAL,
467 Validator validator=DefaultValidator,
468 String name=GaugeNameStr) -> Gauge
470 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
471 self
.this
= newobj
.this
474 self
._setOORInfo
(self
)
476 def Create(*args
, **kwargs
):
478 Create(Window parent, int id, int range, Point pos=DefaultPosition,
479 Size size=DefaultSize, long style=GA_HORIZONTAL,
480 Validator validator=DefaultValidator,
481 String name=GaugeNameStr) -> bool
483 return _controls
.Gauge_Create(*args
, **kwargs
)
485 def SetRange(*args
, **kwargs
):
486 """SetRange(int range)"""
487 return _controls
.Gauge_SetRange(*args
, **kwargs
)
489 def GetRange(*args
, **kwargs
):
490 """GetRange() -> int"""
491 return _controls
.Gauge_GetRange(*args
, **kwargs
)
493 def SetValue(*args
, **kwargs
):
494 """SetValue(int pos)"""
495 return _controls
.Gauge_SetValue(*args
, **kwargs
)
497 def GetValue(*args
, **kwargs
):
498 """GetValue() -> int"""
499 return _controls
.Gauge_GetValue(*args
, **kwargs
)
501 def IsVertical(*args
, **kwargs
):
502 """IsVertical() -> bool"""
503 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
505 def SetShadowWidth(*args
, **kwargs
):
506 """SetShadowWidth(int w)"""
507 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
509 def GetShadowWidth(*args
, **kwargs
):
510 """GetShadowWidth() -> int"""
511 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
513 def SetBezelFace(*args
, **kwargs
):
514 """SetBezelFace(int w)"""
515 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
517 def GetBezelFace(*args
, **kwargs
):
518 """GetBezelFace() -> int"""
519 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
522 class GaugePtr(Gauge
):
523 def __init__(self
, this
):
525 if not hasattr(self
,"thisown"): self
.thisown
= 0
526 self
.__class
__ = Gauge
527 _controls
.Gauge_swigregister(GaugePtr
)
528 GaugeNameStr
= cvar
.GaugeNameStr
530 def PreGauge(*args
, **kwargs
):
531 """PreGauge() -> Gauge"""
532 val
= _controls
.new_PreGauge(*args
, **kwargs
)
536 #---------------------------------------------------------------------------
538 class StaticBox(core
.Control
):
540 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
541 def __init__(self
, *args
, **kwargs
):
543 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
544 Size size=DefaultSize, long style=0,
545 String name=StaticBoxNameStr) -> StaticBox
547 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
548 self
.this
= newobj
.this
551 self
._setOORInfo
(self
)
553 def Create(*args
, **kwargs
):
555 Create(Window parent, int id, String label, Point pos=DefaultPosition,
556 Size size=DefaultSize, long style=0,
557 String name=StaticBoxNameStr) -> bool
559 return _controls
.StaticBox_Create(*args
, **kwargs
)
562 class StaticBoxPtr(StaticBox
):
563 def __init__(self
, this
):
565 if not hasattr(self
,"thisown"): self
.thisown
= 0
566 self
.__class
__ = StaticBox
567 _controls
.StaticBox_swigregister(StaticBoxPtr
)
568 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
569 StaticBoxNameStr
= cvar
.StaticBoxNameStr
570 StaticTextNameStr
= cvar
.StaticTextNameStr
572 def PreStaticBox(*args
, **kwargs
):
573 """PreStaticBox() -> StaticBox"""
574 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
578 #---------------------------------------------------------------------------
580 class StaticLine(core
.Control
):
582 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
583 def __init__(self
, *args
, **kwargs
):
585 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
586 long style=LI_HORIZONTAL,
587 String name=StaticTextNameStr) -> StaticLine
589 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
590 self
.this
= newobj
.this
593 self
._setOORInfo
(self
)
595 def Create(*args
, **kwargs
):
597 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
598 long style=LI_HORIZONTAL,
599 String name=StaticTextNameStr) -> bool
601 return _controls
.StaticLine_Create(*args
, **kwargs
)
603 def IsVertical(*args
, **kwargs
):
604 """IsVertical() -> bool"""
605 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
607 def GetDefaultSize(*args
, **kwargs
):
608 """StaticLine.GetDefaultSize() -> int"""
609 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
611 GetDefaultSize
= staticmethod(GetDefaultSize
)
613 class StaticLinePtr(StaticLine
):
614 def __init__(self
, this
):
616 if not hasattr(self
,"thisown"): self
.thisown
= 0
617 self
.__class
__ = StaticLine
618 _controls
.StaticLine_swigregister(StaticLinePtr
)
620 def PreStaticLine(*args
, **kwargs
):
621 """PreStaticLine() -> StaticLine"""
622 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
626 def StaticLine_GetDefaultSize(*args
, **kwargs
):
627 """StaticLine_GetDefaultSize() -> int"""
628 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
630 #---------------------------------------------------------------------------
632 class StaticText(core
.Control
):
634 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
635 def __init__(self
, *args
, **kwargs
):
637 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
638 Size size=DefaultSize, long style=0,
639 String name=StaticTextNameStr) -> StaticText
641 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
642 self
.this
= newobj
.this
645 self
._setOORInfo
(self
)
647 def Create(*args
, **kwargs
):
649 Create(Window parent, int id, String label, Point pos=DefaultPosition,
650 Size size=DefaultSize, long style=0,
651 String name=StaticTextNameStr) -> bool
653 return _controls
.StaticText_Create(*args
, **kwargs
)
656 class StaticTextPtr(StaticText
):
657 def __init__(self
, this
):
659 if not hasattr(self
,"thisown"): self
.thisown
= 0
660 self
.__class
__ = StaticText
661 _controls
.StaticText_swigregister(StaticTextPtr
)
663 def PreStaticText(*args
, **kwargs
):
664 """PreStaticText() -> StaticText"""
665 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
669 #---------------------------------------------------------------------------
671 class StaticBitmap(core
.Control
):
673 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
674 def __init__(self
, *args
, **kwargs
):
676 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
677 Size size=DefaultSize, long style=0,
678 String name=StaticBitmapNameStr) -> StaticBitmap
680 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
681 self
.this
= newobj
.this
684 def Create(*args
, **kwargs
):
686 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
687 Size size=DefaultSize, long style=0,
688 String name=StaticBitmapNameStr) -> bool
690 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
692 def GetBitmap(*args
, **kwargs
):
693 """GetBitmap() -> Bitmap"""
694 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
696 def SetBitmap(*args
, **kwargs
):
697 """SetBitmap(Bitmap bitmap)"""
698 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
700 def SetIcon(*args
, **kwargs
):
701 """SetIcon(Icon icon)"""
702 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
705 class StaticBitmapPtr(StaticBitmap
):
706 def __init__(self
, this
):
708 if not hasattr(self
,"thisown"): self
.thisown
= 0
709 self
.__class
__ = StaticBitmap
710 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
712 def PreStaticBitmap(*args
, **kwargs
):
713 """PreStaticBitmap() -> StaticBitmap"""
714 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
718 #---------------------------------------------------------------------------
720 class ListBox(core
.ControlWithItems
):
722 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
723 def __init__(self
, *args
, **kwargs
):
725 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
726 int choices=0, String choices_array=None,
727 long style=0, Validator validator=DefaultValidator,
728 String name=ListBoxNameStr) -> ListBox
730 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
731 self
.this
= newobj
.this
734 self
._setOORInfo
(self
)
736 def Create(*args
, **kwargs
):
738 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
739 int choices=0, String choices_array=None,
740 long style=0, Validator validator=DefaultValidator,
741 String name=ListBoxNameStr) -> bool
743 return _controls
.ListBox_Create(*args
, **kwargs
)
745 def Insert(*args
, **kwargs
):
746 """Insert(String item, int pos, PyObject clientData=None)"""
747 return _controls
.ListBox_Insert(*args
, **kwargs
)
749 def InsertItems(*args
, **kwargs
):
750 """InsertItems(wxArrayString items, int pos)"""
751 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
753 def Set(*args
, **kwargs
):
754 """Set(wxArrayString items)"""
755 return _controls
.ListBox_Set(*args
, **kwargs
)
757 def IsSelected(*args
, **kwargs
):
758 """IsSelected(int n) -> bool"""
759 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
761 def SetSelection(*args
, **kwargs
):
762 """SetSelection(int n, bool select=True)"""
763 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
765 def Select(*args
, **kwargs
):
767 return _controls
.ListBox_Select(*args
, **kwargs
)
769 def Deselect(*args
, **kwargs
):
770 """Deselect(int n)"""
771 return _controls
.ListBox_Deselect(*args
, **kwargs
)
773 def DeselectAll(*args
, **kwargs
):
774 """DeselectAll(int itemToLeaveSelected=-1)"""
775 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
777 def SetStringSelection(*args
, **kwargs
):
778 """SetStringSelection(String s, bool select=True) -> bool"""
779 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
781 def GetSelections(*args
, **kwargs
):
782 """GetSelections() -> PyObject"""
783 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
785 def SetFirstItem(*args
, **kwargs
):
786 """SetFirstItem(int n)"""
787 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
789 def SetFirstItemStr(*args
, **kwargs
):
790 """SetFirstItemStr(String s)"""
791 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
793 def EnsureVisible(*args
, **kwargs
):
794 """EnsureVisible(int n)"""
795 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
797 def AppendAndEnsureVisible(*args
, **kwargs
):
798 """AppendAndEnsureVisible(String s)"""
799 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
801 def IsSorted(*args
, **kwargs
):
802 """IsSorted() -> bool"""
803 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
806 class ListBoxPtr(ListBox
):
807 def __init__(self
, this
):
809 if not hasattr(self
,"thisown"): self
.thisown
= 0
810 self
.__class
__ = ListBox
811 _controls
.ListBox_swigregister(ListBoxPtr
)
812 ListBoxNameStr
= cvar
.ListBoxNameStr
814 def PreListBox(*args
, **kwargs
):
815 """PreListBox() -> ListBox"""
816 val
= _controls
.new_PreListBox(*args
, **kwargs
)
820 #---------------------------------------------------------------------------
822 class CheckListBox(ListBox
):
824 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
825 def __init__(self
, *args
, **kwargs
):
827 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
828 int choices=0, String choices_array=None,
829 long style=0, Validator validator=DefaultValidator,
830 String name=ListBoxNameStr) -> CheckListBox
832 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
833 self
.this
= newobj
.this
836 self
._setOORInfo
(self
)
838 def Create(*args
, **kwargs
):
840 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
841 int choices=0, String choices_array=None,
842 long style=0, Validator validator=DefaultValidator,
843 String name=ListBoxNameStr) -> bool
845 return _controls
.CheckListBox_Create(*args
, **kwargs
)
847 def IsChecked(*args
, **kwargs
):
848 """IsChecked(int index) -> bool"""
849 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
851 def Check(*args
, **kwargs
):
852 """Check(int index, int check=True)"""
853 return _controls
.CheckListBox_Check(*args
, **kwargs
)
855 def GetItemHeight(*args
, **kwargs
):
856 """GetItemHeight() -> int"""
857 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
859 def HitTest(*args
, **kwargs
):
860 """HitTest(Point pt) -> int"""
861 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
863 def HitTestXY(*args
, **kwargs
):
864 """HitTestXY(int x, int y) -> int"""
865 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
868 class CheckListBoxPtr(CheckListBox
):
869 def __init__(self
, this
):
871 if not hasattr(self
,"thisown"): self
.thisown
= 0
872 self
.__class
__ = CheckListBox
873 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
875 def PreCheckListBox(*args
, **kwargs
):
876 """PreCheckListBox() -> CheckListBox"""
877 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
881 #---------------------------------------------------------------------------
883 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
884 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
885 TE_READONLY
= _controls
.TE_READONLY
886 TE_MULTILINE
= _controls
.TE_MULTILINE
887 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
888 TE_LEFT
= _controls
.TE_LEFT
889 TE_CENTER
= _controls
.TE_CENTER
890 TE_RIGHT
= _controls
.TE_RIGHT
891 TE_CENTRE
= _controls
.TE_CENTRE
892 TE_RICH
= _controls
.TE_RICH
893 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
894 TE_PASSWORD
= _controls
.TE_PASSWORD
895 TE_AUTO_URL
= _controls
.TE_AUTO_URL
896 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
897 TE_DONTWRAP
= _controls
.TE_DONTWRAP
898 TE_LINEWRAP
= _controls
.TE_LINEWRAP
899 TE_WORDWRAP
= _controls
.TE_WORDWRAP
900 TE_RICH2
= _controls
.TE_RICH2
901 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
902 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
903 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
904 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
905 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
906 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
907 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
908 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
909 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
910 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
911 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
912 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
913 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
914 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
915 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
916 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
917 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
918 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
919 class TextAttr(object):
921 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
922 def __init__(self
, *args
):
924 __init__() -> TextAttr
925 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
926 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
928 newobj
= _controls
.new_TextAttr(*args
)
929 self
.this
= newobj
.this
932 def Init(*args
, **kwargs
):
934 return _controls
.TextAttr_Init(*args
, **kwargs
)
936 def SetTextColour(*args
, **kwargs
):
937 """SetTextColour(Colour colText)"""
938 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
940 def SetBackgroundColour(*args
, **kwargs
):
941 """SetBackgroundColour(Colour colBack)"""
942 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
944 def SetFont(*args
, **kwargs
):
945 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
946 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
948 def SetAlignment(*args
, **kwargs
):
949 """SetAlignment(int alignment)"""
950 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
952 def SetTabs(*args
, **kwargs
):
953 """SetTabs(wxArrayInt tabs)"""
954 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
956 def SetLeftIndent(*args
, **kwargs
):
957 """SetLeftIndent(int indent)"""
958 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
960 def SetRightIndent(*args
, **kwargs
):
961 """SetRightIndent(int indent)"""
962 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
964 def SetFlags(*args
, **kwargs
):
965 """SetFlags(long flags)"""
966 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
968 def HasTextColour(*args
, **kwargs
):
969 """HasTextColour() -> bool"""
970 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
972 def HasBackgroundColour(*args
, **kwargs
):
973 """HasBackgroundColour() -> bool"""
974 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
976 def HasFont(*args
, **kwargs
):
977 """HasFont() -> bool"""
978 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
980 def HasAlignment(*args
, **kwargs
):
981 """HasAlignment() -> bool"""
982 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
984 def HasTabs(*args
, **kwargs
):
985 """HasTabs() -> bool"""
986 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
988 def HasLeftIndent(*args
, **kwargs
):
989 """HasLeftIndent() -> bool"""
990 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
992 def HasRightIndent(*args
, **kwargs
):
993 """HasRightIndent() -> bool"""
994 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
996 def HasFlag(*args
, **kwargs
):
997 """HasFlag(long flag) -> bool"""
998 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1000 def GetTextColour(*args
, **kwargs
):
1001 """GetTextColour() -> Colour"""
1002 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1004 def GetBackgroundColour(*args
, **kwargs
):
1005 """GetBackgroundColour() -> Colour"""
1006 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1008 def GetFont(*args
, **kwargs
):
1009 """GetFont() -> Font"""
1010 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1012 def GetAlignment(*args
, **kwargs
):
1013 """GetAlignment() -> int"""
1014 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1016 def GetTabs(*args
, **kwargs
):
1017 """GetTabs() -> wxArrayInt"""
1018 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1020 def GetLeftIndent(*args
, **kwargs
):
1021 """GetLeftIndent() -> long"""
1022 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1024 def GetRightIndent(*args
, **kwargs
):
1025 """GetRightIndent() -> long"""
1026 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1028 def GetFlags(*args
, **kwargs
):
1029 """GetFlags() -> long"""
1030 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1032 def IsDefault(*args
, **kwargs
):
1033 """IsDefault() -> bool"""
1034 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1036 def Combine(*args
, **kwargs
):
1037 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1038 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1040 Combine
= staticmethod(Combine
)
1042 class TextAttrPtr(TextAttr
):
1043 def __init__(self
, this
):
1045 if not hasattr(self
,"thisown"): self
.thisown
= 0
1046 self
.__class
__ = TextAttr
1047 _controls
.TextAttr_swigregister(TextAttrPtr
)
1048 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1050 def TextAttr_Combine(*args
, **kwargs
):
1051 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1052 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1054 class TextCtrl(core
.Control
):
1056 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1057 def __init__(self
, *args
, **kwargs
):
1059 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1060 Size size=DefaultSize,
1061 long style=0, Validator validator=DefaultValidator,
1062 String name=TextCtrlNameStr) -> TextCtrl
1064 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1065 self
.this
= newobj
.this
1068 self
._setOORInfo
(self
)
1070 def Create(*args
, **kwargs
):
1072 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1073 Size size=DefaultSize,
1074 long style=0, Validator validator=DefaultValidator,
1075 String name=TextCtrlNameStr) -> bool
1077 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1079 def GetValue(*args
, **kwargs
):
1080 """GetValue() -> String"""
1081 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1083 def SetValue(*args
, **kwargs
):
1084 """SetValue(String value)"""
1085 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1087 def GetRange(*args
, **kwargs
):
1088 """GetRange(long from, long to) -> String"""
1089 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1091 def GetLineLength(*args
, **kwargs
):
1092 """GetLineLength(long lineNo) -> int"""
1093 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1095 def GetLineText(*args
, **kwargs
):
1096 """GetLineText(long lineNo) -> String"""
1097 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1099 def GetNumberOfLines(*args
, **kwargs
):
1100 """GetNumberOfLines() -> int"""
1101 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1103 def IsModified(*args
, **kwargs
):
1104 """IsModified() -> bool"""
1105 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1107 def IsEditable(*args
, **kwargs
):
1108 """IsEditable() -> bool"""
1109 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1111 def IsSingleLine(*args
, **kwargs
):
1112 """IsSingleLine() -> bool"""
1113 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1115 def IsMultiLine(*args
, **kwargs
):
1116 """IsMultiLine() -> bool"""
1117 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1119 def GetSelection(*args
, **kwargs
):
1121 GetSelection() -> (from, to)
1123 If the return values from and to are the same, there is no selection.
1125 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1127 def GetStringSelection(*args
, **kwargs
):
1128 """GetStringSelection() -> String"""
1129 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1131 def Clear(*args
, **kwargs
):
1133 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1135 def Replace(*args
, **kwargs
):
1136 """Replace(long from, long to, String value)"""
1137 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1139 def Remove(*args
, **kwargs
):
1140 """Remove(long from, long to)"""
1141 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1143 def LoadFile(*args
, **kwargs
):
1144 """LoadFile(String file) -> bool"""
1145 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1147 def SaveFile(*args
, **kwargs
):
1148 """SaveFile(String file=EmptyString) -> bool"""
1149 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1151 def MarkDirty(*args
, **kwargs
):
1153 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1155 def DiscardEdits(*args
, **kwargs
):
1156 """DiscardEdits()"""
1157 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1159 def SetMaxLength(*args
, **kwargs
):
1160 """SetMaxLength(unsigned long len)"""
1161 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1163 def WriteText(*args
, **kwargs
):
1164 """WriteText(String text)"""
1165 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1167 def AppendText(*args
, **kwargs
):
1168 """AppendText(String text)"""
1169 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1171 def EmulateKeyPress(*args
, **kwargs
):
1172 """EmulateKeyPress(KeyEvent event) -> bool"""
1173 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1175 def SetStyle(*args
, **kwargs
):
1176 """SetStyle(long start, long end, TextAttr style) -> bool"""
1177 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1179 def GetStyle(*args
, **kwargs
):
1180 """GetStyle(long position, TextAttr style) -> bool"""
1181 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1183 def SetDefaultStyle(*args
, **kwargs
):
1184 """SetDefaultStyle(TextAttr style) -> bool"""
1185 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1187 def GetDefaultStyle(*args
, **kwargs
):
1188 """GetDefaultStyle() -> TextAttr"""
1189 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1191 def XYToPosition(*args
, **kwargs
):
1192 """XYToPosition(long x, long y) -> long"""
1193 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1195 def PositionToXY(*args
, **kwargs
):
1196 """PositionToXY(long pos) -> (x, y)"""
1197 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1199 def ShowPosition(*args
, **kwargs
):
1200 """ShowPosition(long pos)"""
1201 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1203 def Copy(*args
, **kwargs
):
1205 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1207 def Cut(*args
, **kwargs
):
1209 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1211 def Paste(*args
, **kwargs
):
1213 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1215 def CanCopy(*args
, **kwargs
):
1216 """CanCopy() -> bool"""
1217 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1219 def CanCut(*args
, **kwargs
):
1220 """CanCut() -> bool"""
1221 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1223 def CanPaste(*args
, **kwargs
):
1224 """CanPaste() -> bool"""
1225 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1227 def Undo(*args
, **kwargs
):
1229 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1231 def Redo(*args
, **kwargs
):
1233 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1235 def CanUndo(*args
, **kwargs
):
1236 """CanUndo() -> bool"""
1237 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1239 def CanRedo(*args
, **kwargs
):
1240 """CanRedo() -> bool"""
1241 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1243 def SetInsertionPoint(*args
, **kwargs
):
1244 """SetInsertionPoint(long pos)"""
1245 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1247 def SetInsertionPointEnd(*args
, **kwargs
):
1248 """SetInsertionPointEnd()"""
1249 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1251 def GetInsertionPoint(*args
, **kwargs
):
1252 """GetInsertionPoint() -> long"""
1253 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1255 def GetLastPosition(*args
, **kwargs
):
1256 """GetLastPosition() -> long"""
1257 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1259 def SetSelection(*args
, **kwargs
):
1260 """SetSelection(long from, long to)"""
1261 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1263 def SelectAll(*args
, **kwargs
):
1265 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1267 def SetEditable(*args
, **kwargs
):
1268 """SetEditable(bool editable)"""
1269 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1271 def ShowNativeCaret(*args
, **kwargs
):
1272 """ShowNativeCaret(bool show=True) -> bool"""
1273 return _controls
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1275 def HideNativeCaret(*args
, **kwargs
):
1276 """HideNativeCaret() -> bool"""
1277 return _controls
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1279 def write(*args
, **kwargs
):
1280 """write(String text)"""
1281 return _controls
.TextCtrl_write(*args
, **kwargs
)
1283 def GetString(*args
, **kwargs
):
1284 """GetString(long from, long to) -> String"""
1285 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1288 class TextCtrlPtr(TextCtrl
):
1289 def __init__(self
, this
):
1291 if not hasattr(self
,"thisown"): self
.thisown
= 0
1292 self
.__class
__ = TextCtrl
1293 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1295 def PreTextCtrl(*args
, **kwargs
):
1296 """PreTextCtrl() -> TextCtrl"""
1297 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1301 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1302 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1303 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1304 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1305 class TextUrlEvent(core
.CommandEvent
):
1307 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1308 def __init__(self
, *args
, **kwargs
):
1309 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1310 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1311 self
.this
= newobj
.this
1314 def GetMouseEvent(*args
, **kwargs
):
1315 """GetMouseEvent() -> MouseEvent"""
1316 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1318 def GetURLStart(*args
, **kwargs
):
1319 """GetURLStart() -> long"""
1320 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1322 def GetURLEnd(*args
, **kwargs
):
1323 """GetURLEnd() -> long"""
1324 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1327 class TextUrlEventPtr(TextUrlEvent
):
1328 def __init__(self
, this
):
1330 if not hasattr(self
,"thisown"): self
.thisown
= 0
1331 self
.__class
__ = TextUrlEvent
1332 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1334 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1335 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1336 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1337 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1339 #---------------------------------------------------------------------------
1341 class ScrollBar(core
.Control
):
1343 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1344 def __init__(self
, *args
, **kwargs
):
1346 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1347 Size size=DefaultSize, long style=SB_HORIZONTAL,
1348 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1350 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1351 self
.this
= newobj
.this
1354 self
._setOORInfo
(self
)
1356 def Create(*args
, **kwargs
):
1358 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1359 Size size=DefaultSize, long style=SB_HORIZONTAL,
1360 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1362 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1364 def GetThumbPosition(*args
, **kwargs
):
1365 """GetThumbPosition() -> int"""
1366 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1368 def GetThumbSize(*args
, **kwargs
):
1369 """GetThumbSize() -> int"""
1370 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1372 GetThumbLength
= GetThumbSize
1373 def GetPageSize(*args
, **kwargs
):
1374 """GetPageSize() -> int"""
1375 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1377 def GetRange(*args
, **kwargs
):
1378 """GetRange() -> int"""
1379 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1381 def IsVertical(*args
, **kwargs
):
1382 """IsVertical() -> bool"""
1383 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1385 def SetThumbPosition(*args
, **kwargs
):
1386 """SetThumbPosition(int viewStart)"""
1387 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1389 def SetScrollbar(*args
, **kwargs
):
1391 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1394 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1397 class ScrollBarPtr(ScrollBar
):
1398 def __init__(self
, this
):
1400 if not hasattr(self
,"thisown"): self
.thisown
= 0
1401 self
.__class
__ = ScrollBar
1402 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1403 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1405 def PreScrollBar(*args
, **kwargs
):
1406 """PreScrollBar() -> ScrollBar"""
1407 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1411 #---------------------------------------------------------------------------
1413 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1414 SP_VERTICAL
= _controls
.SP_VERTICAL
1415 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1416 SP_WRAP
= _controls
.SP_WRAP
1417 class SpinButton(core
.Control
):
1419 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1420 def __init__(self
, *args
, **kwargs
):
1422 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1423 Size size=DefaultSize, long style=SP_HORIZONTAL,
1424 String name=SPIN_BUTTON_NAME) -> SpinButton
1426 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1427 self
.this
= newobj
.this
1430 self
._setOORInfo
(self
)
1432 def Create(*args
, **kwargs
):
1434 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1435 Size size=DefaultSize, long style=SP_HORIZONTAL,
1436 String name=SPIN_BUTTON_NAME) -> bool
1438 return _controls
.SpinButton_Create(*args
, **kwargs
)
1440 def GetValue(*args
, **kwargs
):
1441 """GetValue() -> int"""
1442 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1444 def GetMin(*args
, **kwargs
):
1445 """GetMin() -> int"""
1446 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1448 def GetMax(*args
, **kwargs
):
1449 """GetMax() -> int"""
1450 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1452 def SetValue(*args
, **kwargs
):
1453 """SetValue(int val)"""
1454 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1456 def SetMin(*args
, **kwargs
):
1457 """SetMin(int minVal)"""
1458 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1460 def SetMax(*args
, **kwargs
):
1461 """SetMax(int maxVal)"""
1462 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1464 def SetRange(*args
, **kwargs
):
1465 """SetRange(int minVal, int maxVal)"""
1466 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1468 def IsVertical(*args
, **kwargs
):
1469 """IsVertical() -> bool"""
1470 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1473 class SpinButtonPtr(SpinButton
):
1474 def __init__(self
, this
):
1476 if not hasattr(self
,"thisown"): self
.thisown
= 0
1477 self
.__class
__ = SpinButton
1478 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1479 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1480 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1482 def PreSpinButton(*args
, **kwargs
):
1483 """PreSpinButton() -> SpinButton"""
1484 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1488 class SpinCtrl(core
.Control
):
1490 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1491 def __init__(self
, *args
, **kwargs
):
1493 __init__(Window parent, int id=-1, String value=EmptyString,
1494 Point pos=DefaultPosition, Size size=DefaultSize,
1495 long style=SP_ARROW_KEYS, int min=0, int max=100,
1496 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1498 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1499 self
.this
= newobj
.this
1502 self
._setOORInfo
(self
)
1504 def Create(*args
, **kwargs
):
1506 Create(Window parent, int id=-1, String value=EmptyString,
1507 Point pos=DefaultPosition, Size size=DefaultSize,
1508 long style=SP_ARROW_KEYS, int min=0, int max=100,
1509 int initial=0, String name=SpinCtrlNameStr) -> bool
1511 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1513 def GetValue(*args
, **kwargs
):
1514 """GetValue() -> int"""
1515 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1517 def SetValue(*args
, **kwargs
):
1518 """SetValue(int value)"""
1519 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1521 def SetValueString(*args
, **kwargs
):
1522 """SetValueString(String text)"""
1523 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1525 def SetRange(*args
, **kwargs
):
1526 """SetRange(int minVal, int maxVal)"""
1527 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1529 def GetMin(*args
, **kwargs
):
1530 """GetMin() -> int"""
1531 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1533 def GetMax(*args
, **kwargs
):
1534 """GetMax() -> int"""
1535 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1537 def SetSelection(*args
, **kwargs
):
1538 """SetSelection(long from, long to)"""
1539 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1542 class SpinCtrlPtr(SpinCtrl
):
1543 def __init__(self
, this
):
1545 if not hasattr(self
,"thisown"): self
.thisown
= 0
1546 self
.__class
__ = SpinCtrl
1547 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1549 def PreSpinCtrl(*args
, **kwargs
):
1550 """PreSpinCtrl() -> SpinCtrl"""
1551 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1555 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1556 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1558 #---------------------------------------------------------------------------
1560 class RadioBox(core
.Control
):
1562 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1563 def __init__(self
, *args
, **kwargs
):
1565 __init__(Window parent, int id, String label, Point point=DefaultPosition,
1566 Size size=DefaultSize, int choices=0,
1567 String choices_array=None, int majorDimension=0,
1568 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1569 String name=RadioBoxNameStr) -> RadioBox
1571 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1572 self
.this
= newobj
.this
1575 self
._setOORInfo
(self
)
1577 def Create(*args
, **kwargs
):
1579 Create(Window parent, int id, String label, Point point=DefaultPosition,
1580 Size size=DefaultSize, int choices=0,
1581 String choices_array=None, int majorDimension=0,
1582 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1583 String name=RadioBoxNameStr) -> bool
1585 return _controls
.RadioBox_Create(*args
, **kwargs
)
1587 def SetSelection(*args
, **kwargs
):
1588 """SetSelection(int n)"""
1589 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1591 def GetSelection(*args
, **kwargs
):
1592 """GetSelection() -> int"""
1593 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1595 def GetStringSelection(*args
, **kwargs
):
1596 """GetStringSelection() -> String"""
1597 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1599 def SetStringSelection(*args
, **kwargs
):
1600 """SetStringSelection(String s) -> bool"""
1601 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1603 def GetCount(*args
, **kwargs
):
1604 """GetCount() -> int"""
1605 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1607 def FindString(*args
, **kwargs
):
1608 """FindString(String s) -> int"""
1609 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1611 def GetString(*args
, **kwargs
):
1612 """GetString(int n) -> String"""
1613 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1615 def SetString(*args
, **kwargs
):
1616 """SetString(int n, String label)"""
1617 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1619 GetItemLabel
= GetString
1620 SetItemLabel
= SetString
1621 def EnableItem(*args
, **kwargs
):
1622 """EnableItem(int n, bool enable=True)"""
1623 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1625 def ShowItem(*args
, **kwargs
):
1626 """ShowItem(int n, bool show=True)"""
1627 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1629 def GetColumnCount(*args
, **kwargs
):
1630 """GetColumnCount() -> int"""
1631 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1633 def GetRowCount(*args
, **kwargs
):
1634 """GetRowCount() -> int"""
1635 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1637 def GetNextItem(*args
, **kwargs
):
1638 """GetNextItem(int item, int dir, long style) -> int"""
1639 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1642 class RadioBoxPtr(RadioBox
):
1643 def __init__(self
, this
):
1645 if not hasattr(self
,"thisown"): self
.thisown
= 0
1646 self
.__class
__ = RadioBox
1647 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1648 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1649 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1651 def PreRadioBox(*args
, **kwargs
):
1652 """PreRadioBox() -> RadioBox"""
1653 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1657 #---------------------------------------------------------------------------
1659 class RadioButton(core
.Control
):
1661 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1662 def __init__(self
, *args
, **kwargs
):
1664 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1665 Size size=DefaultSize, long style=0,
1666 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1668 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1669 self
.this
= newobj
.this
1672 self
._setOORInfo
(self
)
1674 def Create(*args
, **kwargs
):
1676 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1677 Size size=DefaultSize, long style=0,
1678 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1680 return _controls
.RadioButton_Create(*args
, **kwargs
)
1682 def GetValue(*args
, **kwargs
):
1683 """GetValue() -> bool"""
1684 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1686 def SetValue(*args
, **kwargs
):
1687 """SetValue(bool value)"""
1688 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1691 class RadioButtonPtr(RadioButton
):
1692 def __init__(self
, this
):
1694 if not hasattr(self
,"thisown"): self
.thisown
= 0
1695 self
.__class
__ = RadioButton
1696 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1698 def PreRadioButton(*args
, **kwargs
):
1699 """PreRadioButton() -> RadioButton"""
1700 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1704 #---------------------------------------------------------------------------
1706 class Slider(core
.Control
):
1708 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1709 def __init__(self
, *args
, **kwargs
):
1711 __init__(Window parent, int id, int value, int minValue, int maxValue,
1712 Point point=DefaultPosition, Size size=DefaultSize,
1713 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1714 String name=SliderNameStr) -> Slider
1716 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1717 self
.this
= newobj
.this
1720 self
._setOORInfo
(self
)
1722 def Create(*args
, **kwargs
):
1724 Create(Window parent, int id, int value, int minValue, int maxValue,
1725 Point point=DefaultPosition, Size size=DefaultSize,
1726 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1727 String name=SliderNameStr) -> bool
1729 return _controls
.Slider_Create(*args
, **kwargs
)
1731 def GetValue(*args
, **kwargs
):
1732 """GetValue() -> int"""
1733 return _controls
.Slider_GetValue(*args
, **kwargs
)
1735 def SetValue(*args
, **kwargs
):
1736 """SetValue(int value)"""
1737 return _controls
.Slider_SetValue(*args
, **kwargs
)
1739 def SetRange(*args
, **kwargs
):
1740 """SetRange(int minValue, int maxValue)"""
1741 return _controls
.Slider_SetRange(*args
, **kwargs
)
1743 def GetMin(*args
, **kwargs
):
1744 """GetMin() -> int"""
1745 return _controls
.Slider_GetMin(*args
, **kwargs
)
1747 def GetMax(*args
, **kwargs
):
1748 """GetMax() -> int"""
1749 return _controls
.Slider_GetMax(*args
, **kwargs
)
1751 def SetMin(*args
, **kwargs
):
1752 """SetMin(int minValue)"""
1753 return _controls
.Slider_SetMin(*args
, **kwargs
)
1755 def SetMax(*args
, **kwargs
):
1756 """SetMax(int maxValue)"""
1757 return _controls
.Slider_SetMax(*args
, **kwargs
)
1759 def SetLineSize(*args
, **kwargs
):
1760 """SetLineSize(int lineSize)"""
1761 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1763 def SetPageSize(*args
, **kwargs
):
1764 """SetPageSize(int pageSize)"""
1765 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1767 def GetLineSize(*args
, **kwargs
):
1768 """GetLineSize() -> int"""
1769 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1771 def GetPageSize(*args
, **kwargs
):
1772 """GetPageSize() -> int"""
1773 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1775 def SetThumbLength(*args
, **kwargs
):
1776 """SetThumbLength(int lenPixels)"""
1777 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1779 def GetThumbLength(*args
, **kwargs
):
1780 """GetThumbLength() -> int"""
1781 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1783 def SetTickFreq(*args
, **kwargs
):
1784 """SetTickFreq(int n, int pos)"""
1785 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1787 def GetTickFreq(*args
, **kwargs
):
1788 """GetTickFreq() -> int"""
1789 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1791 def ClearTicks(*args
, **kwargs
):
1793 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1795 def SetTick(*args
, **kwargs
):
1796 """SetTick(int tickPos)"""
1797 return _controls
.Slider_SetTick(*args
, **kwargs
)
1799 def ClearSel(*args
, **kwargs
):
1801 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1803 def GetSelEnd(*args
, **kwargs
):
1804 """GetSelEnd() -> int"""
1805 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1807 def GetSelStart(*args
, **kwargs
):
1808 """GetSelStart() -> int"""
1809 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1811 def SetSelection(*args
, **kwargs
):
1812 """SetSelection(int min, int max)"""
1813 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1816 class SliderPtr(Slider
):
1817 def __init__(self
, this
):
1819 if not hasattr(self
,"thisown"): self
.thisown
= 0
1820 self
.__class
__ = Slider
1821 _controls
.Slider_swigregister(SliderPtr
)
1822 SliderNameStr
= cvar
.SliderNameStr
1824 def PreSlider(*args
, **kwargs
):
1825 """PreSlider() -> Slider"""
1826 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1830 #---------------------------------------------------------------------------
1832 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1833 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1835 class ToggleButton(core
.Control
):
1837 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1838 def __init__(self
, *args
, **kwargs
):
1840 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1841 Size size=DefaultSize, long style=0,
1842 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
1844 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1845 self
.this
= newobj
.this
1848 self
._setOORInfo
(self
)
1850 def Create(*args
, **kwargs
):
1852 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1853 Size size=DefaultSize, long style=0,
1854 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
1856 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1858 def SetValue(*args
, **kwargs
):
1859 """SetValue(bool value)"""
1860 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1862 def GetValue(*args
, **kwargs
):
1863 """GetValue() -> bool"""
1864 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1866 def SetLabel(*args
, **kwargs
):
1867 """SetLabel(String label)"""
1868 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1871 class ToggleButtonPtr(ToggleButton
):
1872 def __init__(self
, this
):
1874 if not hasattr(self
,"thisown"): self
.thisown
= 0
1875 self
.__class
__ = ToggleButton
1876 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1877 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
1879 def PreToggleButton(*args
, **kwargs
):
1880 """PreToggleButton() -> ToggleButton"""
1881 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1885 #---------------------------------------------------------------------------
1887 class BookCtrl(core
.Control
):
1888 def __init__(self
): raise RuntimeError, "No constructor defined"
1890 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1891 def GetPageCount(*args
, **kwargs
):
1892 """GetPageCount() -> size_t"""
1893 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1895 def GetPage(*args
, **kwargs
):
1896 """GetPage(size_t n) -> Window"""
1897 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1899 def GetSelection(*args
, **kwargs
):
1900 """GetSelection() -> int"""
1901 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1903 def SetPageText(*args
, **kwargs
):
1904 """SetPageText(size_t n, String strText) -> bool"""
1905 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1907 def GetPageText(*args
, **kwargs
):
1908 """GetPageText(size_t n) -> String"""
1909 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1911 def SetImageList(*args
, **kwargs
):
1912 """SetImageList(ImageList imageList)"""
1913 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1915 def AssignImageList(*args
, **kwargs
):
1916 """AssignImageList(ImageList imageList)"""
1917 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1921 def GetImageList(*args
, **kwargs
):
1922 """GetImageList() -> ImageList"""
1923 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1925 def GetPageImage(*args
, **kwargs
):
1926 """GetPageImage(size_t n) -> int"""
1927 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1929 def SetPageImage(*args
, **kwargs
):
1930 """SetPageImage(size_t n, int imageId) -> bool"""
1931 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1933 def SetPageSize(*args
, **kwargs
):
1934 """SetPageSize(Size size)"""
1935 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1937 def CalcSizeFromPage(*args
, **kwargs
):
1938 """CalcSizeFromPage(Size sizePage) -> Size"""
1939 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1941 def DeletePage(*args
, **kwargs
):
1942 """DeletePage(size_t n) -> bool"""
1943 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1945 def RemovePage(*args
, **kwargs
):
1946 """RemovePage(size_t n) -> bool"""
1947 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1949 def DeleteAllPages(*args
, **kwargs
):
1950 """DeleteAllPages() -> bool"""
1951 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1953 def AddPage(*args
, **kwargs
):
1954 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
1955 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1957 def InsertPage(*args
, **kwargs
):
1959 InsertPage(size_t n, Window page, String text, bool select=False,
1960 int imageId=-1) -> bool
1962 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1964 def SetSelection(*args
, **kwargs
):
1965 """SetSelection(size_t n) -> int"""
1966 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1968 def AdvanceSelection(*args
, **kwargs
):
1969 """AdvanceSelection(bool forward=True)"""
1970 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1973 class BookCtrlPtr(BookCtrl
):
1974 def __init__(self
, this
):
1976 if not hasattr(self
,"thisown"): self
.thisown
= 0
1977 self
.__class
__ = BookCtrl
1978 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1979 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
1981 class BookCtrlEvent(core
.NotifyEvent
):
1983 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1984 def __init__(self
, *args
, **kwargs
):
1986 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1987 int nOldSel=-1) -> BookCtrlEvent
1989 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1990 self
.this
= newobj
.this
1993 def GetSelection(*args
, **kwargs
):
1994 """GetSelection() -> int"""
1995 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1997 def SetSelection(*args
, **kwargs
):
1998 """SetSelection(int nSel)"""
1999 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2001 def GetOldSelection(*args
, **kwargs
):
2002 """GetOldSelection() -> int"""
2003 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2005 def SetOldSelection(*args
, **kwargs
):
2006 """SetOldSelection(int nOldSel)"""
2007 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2010 class BookCtrlEventPtr(BookCtrlEvent
):
2011 def __init__(self
, this
):
2013 if not hasattr(self
,"thisown"): self
.thisown
= 0
2014 self
.__class
__ = BookCtrlEvent
2015 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2017 #---------------------------------------------------------------------------
2019 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2020 NB_TOP
= _controls
.NB_TOP
2021 NB_LEFT
= _controls
.NB_LEFT
2022 NB_RIGHT
= _controls
.NB_RIGHT
2023 NB_BOTTOM
= _controls
.NB_BOTTOM
2024 NB_MULTILINE
= _controls
.NB_MULTILINE
2025 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2026 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2027 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2028 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2029 class Notebook(BookCtrl
):
2031 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2032 def __init__(self
, *args
, **kwargs
):
2034 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2035 long style=0, String name=NOTEBOOK_NAME) -> Notebook
2037 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2038 self
.this
= newobj
.this
2041 self
._setOORInfo
(self
)
2043 def Create(*args
, **kwargs
):
2045 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2046 long style=0, String name=NOTEBOOK_NAME) -> bool
2048 return _controls
.Notebook_Create(*args
, **kwargs
)
2050 def GetRowCount(*args
, **kwargs
):
2051 """GetRowCount() -> int"""
2052 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2054 def SetPadding(*args
, **kwargs
):
2055 """SetPadding(Size padding)"""
2056 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2058 def SetTabSize(*args
, **kwargs
):
2059 """SetTabSize(Size sz)"""
2060 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2062 def HitTest(*args
, **kwargs
):
2064 HitTest(Point pt) -> (tab, where)
2066 Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.
2068 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2070 def CalcSizeFromPage(*args
, **kwargs
):
2071 """CalcSizeFromPage(Size sizePage) -> Size"""
2072 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2074 def ApplyThemeBackground(*args
, **kwargs
):
2075 """ApplyThemeBackground(Window window, Colour colour)"""
2076 return _controls
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
2079 class NotebookPtr(Notebook
):
2080 def __init__(self
, this
):
2082 if not hasattr(self
,"thisown"): self
.thisown
= 0
2083 self
.__class
__ = Notebook
2084 _controls
.Notebook_swigregister(NotebookPtr
)
2086 def PreNotebook(*args
, **kwargs
):
2087 """PreNotebook() -> Notebook"""
2088 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2092 class NotebookEvent(BookCtrlEvent
):
2094 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2095 def __init__(self
, *args
, **kwargs
):
2097 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2098 int nOldSel=-1) -> NotebookEvent
2100 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2101 self
.this
= newobj
.this
2105 class NotebookEventPtr(NotebookEvent
):
2106 def __init__(self
, this
):
2108 if not hasattr(self
,"thisown"): self
.thisown
= 0
2109 self
.__class
__ = NotebookEvent
2110 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2112 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2113 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2115 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2116 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2118 #----------------------------------------------------------------------------
2120 class NotebookPage(wx
.Panel
):
2122 There is an old (and apparently unsolvable) bug when placing a
2123 window with a nonstandard background colour in a wxNotebook on
2124 wxGTK, as the notbooks's background colour would always be used
2125 when the window is refreshed. The solution is to place a panel in
2126 the notbook and the coloured window on the panel, sized to cover
2127 the panel. This simple class does that for you, just put an
2128 instance of this in the notebook and make your regular window a
2129 child of this one and it will handle the resize for you.
2131 def __init__(self
, parent
, id=-1,
2132 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2133 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2134 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2136 EVT_SIZE(self
, self
.OnSize
)
2138 def OnSize(self
, evt
):
2139 if self
.child
is None:
2140 children
= self
.GetChildren()
2142 self
.child
= children
[0]
2144 self
.child
.SetPosition((0,0))
2145 self
.child
.SetSize(self
.GetSize())
2148 #---------------------------------------------------------------------------
2150 LB_DEFAULT
= _controls
.LB_DEFAULT
2151 LB_TOP
= _controls
.LB_TOP
2152 LB_BOTTOM
= _controls
.LB_BOTTOM
2153 LB_LEFT
= _controls
.LB_LEFT
2154 LB_RIGHT
= _controls
.LB_RIGHT
2155 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2156 class Listbook(BookCtrl
):
2158 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2159 def __init__(self
, *args
, **kwargs
):
2161 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2162 long style=0, String name=EmptyString) -> Listbook
2164 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2165 self
.this
= newobj
.this
2168 self
._setOORInfo
(self
)
2170 def Create(*args
, **kwargs
):
2172 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2173 long style=0, String name=EmptyString) -> bool
2175 return _controls
.Listbook_Create(*args
, **kwargs
)
2177 def IsVertical(*args
, **kwargs
):
2178 """IsVertical() -> bool"""
2179 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2182 class ListbookPtr(Listbook
):
2183 def __init__(self
, this
):
2185 if not hasattr(self
,"thisown"): self
.thisown
= 0
2186 self
.__class
__ = Listbook
2187 _controls
.Listbook_swigregister(ListbookPtr
)
2189 def PreListbook(*args
, **kwargs
):
2190 """PreListbook() -> Listbook"""
2191 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2195 class ListbookEvent(BookCtrlEvent
):
2197 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2198 def __init__(self
, *args
, **kwargs
):
2200 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2201 int nOldSel=-1) -> ListbookEvent
2203 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2204 self
.this
= newobj
.this
2208 class ListbookEventPtr(ListbookEvent
):
2209 def __init__(self
, this
):
2211 if not hasattr(self
,"thisown"): self
.thisown
= 0
2212 self
.__class
__ = ListbookEvent
2213 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2215 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2216 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2217 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2218 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2220 #---------------------------------------------------------------------------
2222 class BookCtrlSizer(core
.Sizer
):
2224 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2225 def __init__(self
, *args
, **kwargs
):
2226 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2227 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2228 self
.this
= newobj
.this
2231 self
._setOORInfo
(self
)
2233 def RecalcSizes(*args
, **kwargs
):
2235 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2237 def CalcMin(*args
, **kwargs
):
2238 """CalcMin() -> Size"""
2239 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2241 def GetControl(*args
, **kwargs
):
2242 """GetControl() -> BookCtrl"""
2243 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2246 class BookCtrlSizerPtr(BookCtrlSizer
):
2247 def __init__(self
, this
):
2249 if not hasattr(self
,"thisown"): self
.thisown
= 0
2250 self
.__class
__ = BookCtrlSizer
2251 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2253 class NotebookSizer(core
.Sizer
):
2255 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2256 def __init__(self
, *args
, **kwargs
):
2257 """__init__(Notebook nb) -> NotebookSizer"""
2258 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2259 self
.this
= newobj
.this
2262 self
._setOORInfo
(self
)
2264 def RecalcSizes(*args
, **kwargs
):
2266 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2268 def CalcMin(*args
, **kwargs
):
2269 """CalcMin() -> Size"""
2270 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2272 def GetNotebook(*args
, **kwargs
):
2273 """GetNotebook() -> Notebook"""
2274 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2277 class NotebookSizerPtr(NotebookSizer
):
2278 def __init__(self
, this
):
2280 if not hasattr(self
,"thisown"): self
.thisown
= 0
2281 self
.__class
__ = NotebookSizer
2282 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2284 #---------------------------------------------------------------------------
2286 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2287 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2288 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2289 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2290 TB_VERTICAL
= _controls
.TB_VERTICAL
2291 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2292 TB_FLAT
= _controls
.TB_FLAT
2293 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2294 TB_NOICONS
= _controls
.TB_NOICONS
2295 TB_TEXT
= _controls
.TB_TEXT
2296 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2297 TB_NOALIGN
= _controls
.TB_NOALIGN
2298 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2299 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2300 class ToolBarToolBase(core
.Object
):
2301 def __init__(self
): raise RuntimeError, "No constructor defined"
2303 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2304 def GetId(*args
, **kwargs
):
2305 """GetId() -> int"""
2306 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2308 def GetControl(*args
, **kwargs
):
2309 """GetControl() -> Control"""
2310 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2312 def GetToolBar(*args
, **kwargs
):
2313 """GetToolBar() -> ToolBarBase"""
2314 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2316 def IsButton(*args
, **kwargs
):
2317 """IsButton() -> int"""
2318 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2320 def IsControl(*args
, **kwargs
):
2321 """IsControl() -> int"""
2322 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2324 def IsSeparator(*args
, **kwargs
):
2325 """IsSeparator() -> int"""
2326 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2328 def GetStyle(*args
, **kwargs
):
2329 """GetStyle() -> int"""
2330 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2332 def GetKind(*args
, **kwargs
):
2333 """GetKind() -> int"""
2334 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2336 def IsEnabled(*args
, **kwargs
):
2337 """IsEnabled() -> bool"""
2338 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2340 def IsToggled(*args
, **kwargs
):
2341 """IsToggled() -> bool"""
2342 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2344 def CanBeToggled(*args
, **kwargs
):
2345 """CanBeToggled() -> bool"""
2346 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2348 def GetNormalBitmap(*args
, **kwargs
):
2349 """GetNormalBitmap() -> Bitmap"""
2350 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2352 def GetDisabledBitmap(*args
, **kwargs
):
2353 """GetDisabledBitmap() -> Bitmap"""
2354 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2356 def GetBitmap(*args
, **kwargs
):
2357 """GetBitmap() -> Bitmap"""
2358 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2360 def GetLabel(*args
, **kwargs
):
2361 """GetLabel() -> String"""
2362 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2364 def GetShortHelp(*args
, **kwargs
):
2365 """GetShortHelp() -> String"""
2366 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2368 def GetLongHelp(*args
, **kwargs
):
2369 """GetLongHelp() -> String"""
2370 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2372 def Enable(*args
, **kwargs
):
2373 """Enable(bool enable) -> bool"""
2374 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2376 def Toggle(*args
, **kwargs
):
2378 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2380 def SetToggle(*args
, **kwargs
):
2381 """SetToggle(bool toggle) -> bool"""
2382 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2384 def SetShortHelp(*args
, **kwargs
):
2385 """SetShortHelp(String help) -> bool"""
2386 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2388 def SetLongHelp(*args
, **kwargs
):
2389 """SetLongHelp(String help) -> bool"""
2390 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2392 def SetNormalBitmap(*args
, **kwargs
):
2393 """SetNormalBitmap(Bitmap bmp)"""
2394 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2396 def SetDisabledBitmap(*args
, **kwargs
):
2397 """SetDisabledBitmap(Bitmap bmp)"""
2398 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2400 def SetLabel(*args
, **kwargs
):
2401 """SetLabel(String label)"""
2402 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2404 def Detach(*args
, **kwargs
):
2406 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2408 def Attach(*args
, **kwargs
):
2409 """Attach(ToolBarBase tbar)"""
2410 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2412 def GetClientData(*args
, **kwargs
):
2413 """GetClientData() -> PyObject"""
2414 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2416 def SetClientData(*args
, **kwargs
):
2417 """SetClientData(PyObject clientData)"""
2418 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2420 GetBitmap1
= GetNormalBitmap
2421 GetBitmap2
= GetDisabledBitmap
2422 SetBitmap1
= SetNormalBitmap
2423 SetBitmap2
= SetDisabledBitmap
2426 class ToolBarToolBasePtr(ToolBarToolBase
):
2427 def __init__(self
, this
):
2429 if not hasattr(self
,"thisown"): self
.thisown
= 0
2430 self
.__class
__ = ToolBarToolBase
2431 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2433 class ToolBarBase(core
.Control
):
2434 def __init__(self
): raise RuntimeError, "No constructor defined"
2436 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2437 def DoAddTool(*args
, **kwargs
):
2439 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2440 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2441 String longHelp=EmptyString,
2442 PyObject clientData=None) -> ToolBarToolBase
2444 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2446 def DoInsertTool(*args
, **kwargs
):
2448 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2449 int kind=ITEM_NORMAL,
2450 String shortHelp=EmptyString, String longHelp=EmptyString,
2451 PyObject clientData=None) -> ToolBarToolBase
2453 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2455 # These match the original Add methods for this class, kept for
2456 # backwards compatibility with versions < 2.3.3.
2459 def AddTool(self
, id, bitmap
,
2460 pushedBitmap
= wx
.NullBitmap
,
2463 shortHelpString
= '',
2464 longHelpString
= '') :
2465 '''Old style method to add a tool to the toolbar.'''
2466 kind
= wx
.ITEM_NORMAL
2467 if isToggle
: kind
= wx
.ITEM_CHECK
2468 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2469 shortHelpString
, longHelpString
, clientData
)
2471 def AddSimpleTool(self
, id, bitmap
,
2472 shortHelpString
= '',
2473 longHelpString
= '',
2475 '''Old style method to add a tool to the toolbar.'''
2476 kind
= wx
.ITEM_NORMAL
2477 if isToggle
: kind
= wx
.ITEM_CHECK
2478 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2479 shortHelpString
, longHelpString
, None)
2481 def InsertTool(self
, pos
, id, bitmap
,
2482 pushedBitmap
= wx
.NullBitmap
,
2485 shortHelpString
= '',
2486 longHelpString
= ''):
2487 '''Old style method to insert a tool in the toolbar.'''
2488 kind
= wx
.ITEM_NORMAL
2489 if isToggle
: kind
= wx
.ITEM_CHECK
2490 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2491 shortHelpString
, longHelpString
, clientData
)
2493 def InsertSimpleTool(self
, pos
, id, bitmap
,
2494 shortHelpString
= '',
2495 longHelpString
= '',
2497 '''Old style method to insert a tool in the toolbar.'''
2498 kind
= wx
.ITEM_NORMAL
2499 if isToggle
: kind
= wx
.ITEM_CHECK
2500 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2501 shortHelpString
, longHelpString
, None)
2504 # The following are the new toolbar Add methods starting with
2505 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2506 # able to keep backwards compatibility with using the above
2507 # methods. Eventually these should migrate to be the methods used
2508 # primarily and lose the 'Label' in the name...
2510 def AddLabelTool(self
, id, label
, bitmap
,
2511 bmpDisabled
= wx
.NullBitmap
,
2512 kind
= wx
.ITEM_NORMAL
,
2513 shortHelp
= '', longHelp
= '',
2516 The full AddTool() function.
2518 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2519 is created and used as the disabled image.
2521 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2522 shortHelp
, longHelp
, clientData
)
2525 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2526 bmpDisabled
= wx
.NullBitmap
,
2527 kind
= wx
.ITEM_NORMAL
,
2528 shortHelp
= '', longHelp
= '',
2531 Insert the new tool at the given position, if pos == GetToolsCount(), it
2532 is equivalent to AddTool()
2534 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2535 shortHelp
, longHelp
, clientData
)
2537 def AddCheckLabelTool(self
, id, label
, bitmap
,
2538 bmpDisabled
= wx
.NullBitmap
,
2539 shortHelp
= '', longHelp
= '',
2541 '''Add a check tool, i.e. a tool which can be toggled'''
2542 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2543 shortHelp
, longHelp
, clientData
)
2545 def AddRadioLabelTool(self
, id, label
, bitmap
,
2546 bmpDisabled
= wx
.NullBitmap
,
2547 shortHelp
= '', longHelp
= '',
2550 Add a radio tool, i.e. a tool which can be toggled and releases any
2551 other toggled radio tools in the same group when it happens
2553 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2554 shortHelp
, longHelp
, clientData
)
2557 # For consistency with the backwards compatible methods above, here are
2558 # some non-'Label' versions of the Check and Radio methods
2559 def AddCheckTool(self
, id, bitmap
,
2560 bmpDisabled
= wx
.NullBitmap
,
2561 shortHelp
= '', longHelp
= '',
2563 '''Add a check tool, i.e. a tool which can be toggled'''
2564 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2565 shortHelp
, longHelp
, clientData
)
2567 def AddRadioTool(self
, id, bitmap
,
2568 bmpDisabled
= wx
.NullBitmap
,
2569 shortHelp
= '', longHelp
= '',
2572 Add a radio tool, i.e. a tool which can be toggled and releases any
2573 other toggled radio tools in the same group when it happens
2575 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2576 shortHelp
, longHelp
, clientData
)
2578 def AddToolItem(*args
, **kwargs
):
2579 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2580 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2582 def InsertToolItem(*args
, **kwargs
):
2583 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2584 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2586 def AddControl(*args
, **kwargs
):
2587 """AddControl(Control control) -> ToolBarToolBase"""
2588 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2590 def InsertControl(*args
, **kwargs
):
2591 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2592 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2594 def FindControl(*args
, **kwargs
):
2595 """FindControl(int id) -> Control"""
2596 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2598 def AddSeparator(*args
, **kwargs
):
2599 """AddSeparator() -> ToolBarToolBase"""
2600 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2602 def InsertSeparator(*args
, **kwargs
):
2603 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2604 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2606 def RemoveTool(*args
, **kwargs
):
2607 """RemoveTool(int id) -> ToolBarToolBase"""
2608 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2610 def DeleteToolByPos(*args
, **kwargs
):
2611 """DeleteToolByPos(size_t pos) -> bool"""
2612 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2614 def DeleteTool(*args
, **kwargs
):
2615 """DeleteTool(int id) -> bool"""
2616 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2618 def ClearTools(*args
, **kwargs
):
2620 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2622 def Realize(*args
, **kwargs
):
2623 """Realize() -> bool"""
2624 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2626 def EnableTool(*args
, **kwargs
):
2627 """EnableTool(int id, bool enable)"""
2628 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2630 def ToggleTool(*args
, **kwargs
):
2631 """ToggleTool(int id, bool toggle)"""
2632 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2634 def SetToggle(*args
, **kwargs
):
2635 """SetToggle(int id, bool toggle)"""
2636 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2638 def GetToolClientData(*args
, **kwargs
):
2639 """GetToolClientData(int id) -> PyObject"""
2640 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2642 def SetToolClientData(*args
, **kwargs
):
2643 """SetToolClientData(int id, PyObject clientData)"""
2644 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2646 def GetToolPos(*args
, **kwargs
):
2647 """GetToolPos(int id) -> int"""
2648 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2650 def GetToolState(*args
, **kwargs
):
2651 """GetToolState(int id) -> bool"""
2652 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2654 def GetToolEnabled(*args
, **kwargs
):
2655 """GetToolEnabled(int id) -> bool"""
2656 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2658 def SetToolShortHelp(*args
, **kwargs
):
2659 """SetToolShortHelp(int id, String helpString)"""
2660 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2662 def GetToolShortHelp(*args
, **kwargs
):
2663 """GetToolShortHelp(int id) -> String"""
2664 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2666 def SetToolLongHelp(*args
, **kwargs
):
2667 """SetToolLongHelp(int id, String helpString)"""
2668 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2670 def GetToolLongHelp(*args
, **kwargs
):
2671 """GetToolLongHelp(int id) -> String"""
2672 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2674 def SetMarginsXY(*args
, **kwargs
):
2675 """SetMarginsXY(int x, int y)"""
2676 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2678 def SetMargins(*args
, **kwargs
):
2679 """SetMargins(Size size)"""
2680 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2682 def SetToolPacking(*args
, **kwargs
):
2683 """SetToolPacking(int packing)"""
2684 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2686 def SetToolSeparation(*args
, **kwargs
):
2687 """SetToolSeparation(int separation)"""
2688 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2690 def GetToolMargins(*args
, **kwargs
):
2691 """GetToolMargins() -> Size"""
2692 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2694 def GetMargins(*args
, **kwargs
):
2695 """GetMargins() -> Size"""
2696 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2698 def GetToolPacking(*args
, **kwargs
):
2699 """GetToolPacking() -> int"""
2700 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2702 def GetToolSeparation(*args
, **kwargs
):
2703 """GetToolSeparation() -> int"""
2704 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2706 def SetRows(*args
, **kwargs
):
2707 """SetRows(int nRows)"""
2708 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2710 def SetMaxRowsCols(*args
, **kwargs
):
2711 """SetMaxRowsCols(int rows, int cols)"""
2712 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2714 def GetMaxRows(*args
, **kwargs
):
2715 """GetMaxRows() -> int"""
2716 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2718 def GetMaxCols(*args
, **kwargs
):
2719 """GetMaxCols() -> int"""
2720 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2722 def SetToolBitmapSize(*args
, **kwargs
):
2723 """SetToolBitmapSize(Size size)"""
2724 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2726 def GetToolBitmapSize(*args
, **kwargs
):
2727 """GetToolBitmapSize() -> Size"""
2728 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2730 def GetToolSize(*args
, **kwargs
):
2731 """GetToolSize() -> Size"""
2732 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2734 def FindToolForPosition(*args
, **kwargs
):
2735 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2736 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2738 def FindById(*args
, **kwargs
):
2739 """FindById(int toolid) -> ToolBarToolBase"""
2740 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2742 def IsVertical(*args
, **kwargs
):
2743 """IsVertical() -> bool"""
2744 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2747 class ToolBarBasePtr(ToolBarBase
):
2748 def __init__(self
, this
):
2750 if not hasattr(self
,"thisown"): self
.thisown
= 0
2751 self
.__class
__ = ToolBarBase
2752 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2754 class ToolBar(ToolBarBase
):
2756 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2757 def __init__(self
, *args
, **kwargs
):
2759 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2760 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2761 String name=wxPyToolBarNameStr) -> ToolBar
2763 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2764 self
.this
= newobj
.this
2767 self
._setOORInfo
(self
)
2769 def Create(*args
, **kwargs
):
2771 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2772 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2773 String name=wxPyToolBarNameStr) -> bool
2775 return _controls
.ToolBar_Create(*args
, **kwargs
)
2777 def FindToolForPosition(*args
, **kwargs
):
2778 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2779 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2782 class ToolBarPtr(ToolBar
):
2783 def __init__(self
, this
):
2785 if not hasattr(self
,"thisown"): self
.thisown
= 0
2786 self
.__class
__ = ToolBar
2787 _controls
.ToolBar_swigregister(ToolBarPtr
)
2789 def PreToolBar(*args
, **kwargs
):
2790 """PreToolBar() -> ToolBar"""
2791 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2795 #---------------------------------------------------------------------------
2797 LC_VRULES
= _controls
.LC_VRULES
2798 LC_HRULES
= _controls
.LC_HRULES
2799 LC_ICON
= _controls
.LC_ICON
2800 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2801 LC_LIST
= _controls
.LC_LIST
2802 LC_REPORT
= _controls
.LC_REPORT
2803 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2804 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2805 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2806 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2807 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2808 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2809 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2810 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2811 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2812 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2813 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2814 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2815 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2816 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2817 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2818 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2819 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2820 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2821 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2822 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2823 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2824 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2825 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2826 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2827 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2828 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2829 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2830 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2831 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2832 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2833 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2834 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2835 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2836 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2837 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2838 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2839 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2840 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2841 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2842 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2843 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2844 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2845 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2846 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2847 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2848 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2849 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2850 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2851 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2852 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2853 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2854 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2855 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2856 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2857 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2858 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2859 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2860 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2861 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2862 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2863 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2864 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2865 #---------------------------------------------------------------------------
2867 class ListItemAttr(object):
2869 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2870 def __init__(self
, *args
, **kwargs
):
2872 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
2873 Font font=wxNullFont) -> ListItemAttr
2875 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2876 self
.this
= newobj
.this
2879 def SetTextColour(*args
, **kwargs
):
2880 """SetTextColour(Colour colText)"""
2881 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2883 def SetBackgroundColour(*args
, **kwargs
):
2884 """SetBackgroundColour(Colour colBack)"""
2885 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2887 def SetFont(*args
, **kwargs
):
2888 """SetFont(Font font)"""
2889 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2891 def HasTextColour(*args
, **kwargs
):
2892 """HasTextColour() -> bool"""
2893 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2895 def HasBackgroundColour(*args
, **kwargs
):
2896 """HasBackgroundColour() -> bool"""
2897 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2899 def HasFont(*args
, **kwargs
):
2900 """HasFont() -> bool"""
2901 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2903 def GetTextColour(*args
, **kwargs
):
2904 """GetTextColour() -> Colour"""
2905 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2907 def GetBackgroundColour(*args
, **kwargs
):
2908 """GetBackgroundColour() -> Colour"""
2909 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2911 def GetFont(*args
, **kwargs
):
2912 """GetFont() -> Font"""
2913 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2915 def Destroy(*args
, **kwargs
):
2917 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2920 class ListItemAttrPtr(ListItemAttr
):
2921 def __init__(self
, this
):
2923 if not hasattr(self
,"thisown"): self
.thisown
= 0
2924 self
.__class
__ = ListItemAttr
2925 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2926 ListCtrlNameStr
= cvar
.ListCtrlNameStr
2928 #---------------------------------------------------------------------------
2930 class ListItem(core
.Object
):
2932 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2933 def __init__(self
, *args
, **kwargs
):
2934 """__init__() -> ListItem"""
2935 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2936 self
.this
= newobj
.this
2939 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2942 if self
.thisown
: destroy(self
)
2945 def Clear(*args
, **kwargs
):
2947 return _controls
.ListItem_Clear(*args
, **kwargs
)
2949 def ClearAttributes(*args
, **kwargs
):
2950 """ClearAttributes()"""
2951 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2953 def SetMask(*args
, **kwargs
):
2954 """SetMask(long mask)"""
2955 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2957 def SetId(*args
, **kwargs
):
2958 """SetId(long id)"""
2959 return _controls
.ListItem_SetId(*args
, **kwargs
)
2961 def SetColumn(*args
, **kwargs
):
2962 """SetColumn(int col)"""
2963 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2965 def SetState(*args
, **kwargs
):
2966 """SetState(long state)"""
2967 return _controls
.ListItem_SetState(*args
, **kwargs
)
2969 def SetStateMask(*args
, **kwargs
):
2970 """SetStateMask(long stateMask)"""
2971 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2973 def SetText(*args
, **kwargs
):
2974 """SetText(String text)"""
2975 return _controls
.ListItem_SetText(*args
, **kwargs
)
2977 def SetImage(*args
, **kwargs
):
2978 """SetImage(int image)"""
2979 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2981 def SetData(*args
, **kwargs
):
2982 """SetData(long data)"""
2983 return _controls
.ListItem_SetData(*args
, **kwargs
)
2985 def SetWidth(*args
, **kwargs
):
2986 """SetWidth(int width)"""
2987 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2989 def SetAlign(*args
, **kwargs
):
2990 """SetAlign(int align)"""
2991 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2993 def SetTextColour(*args
, **kwargs
):
2994 """SetTextColour(Colour colText)"""
2995 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2997 def SetBackgroundColour(*args
, **kwargs
):
2998 """SetBackgroundColour(Colour colBack)"""
2999 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3001 def SetFont(*args
, **kwargs
):
3002 """SetFont(Font font)"""
3003 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3005 def GetMask(*args
, **kwargs
):
3006 """GetMask() -> long"""
3007 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3009 def GetId(*args
, **kwargs
):
3010 """GetId() -> long"""
3011 return _controls
.ListItem_GetId(*args
, **kwargs
)
3013 def GetColumn(*args
, **kwargs
):
3014 """GetColumn() -> int"""
3015 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3017 def GetState(*args
, **kwargs
):
3018 """GetState() -> long"""
3019 return _controls
.ListItem_GetState(*args
, **kwargs
)
3021 def GetText(*args
, **kwargs
):
3022 """GetText() -> String"""
3023 return _controls
.ListItem_GetText(*args
, **kwargs
)
3025 def GetImage(*args
, **kwargs
):
3026 """GetImage() -> int"""
3027 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3029 def GetData(*args
, **kwargs
):
3030 """GetData() -> long"""
3031 return _controls
.ListItem_GetData(*args
, **kwargs
)
3033 def GetWidth(*args
, **kwargs
):
3034 """GetWidth() -> int"""
3035 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3037 def GetAlign(*args
, **kwargs
):
3038 """GetAlign() -> int"""
3039 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3041 def GetAttributes(*args
, **kwargs
):
3042 """GetAttributes() -> ListItemAttr"""
3043 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3045 def HasAttributes(*args
, **kwargs
):
3046 """HasAttributes() -> bool"""
3047 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3049 def GetTextColour(*args
, **kwargs
):
3050 """GetTextColour() -> Colour"""
3051 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3053 def GetBackgroundColour(*args
, **kwargs
):
3054 """GetBackgroundColour() -> Colour"""
3055 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3057 def GetFont(*args
, **kwargs
):
3058 """GetFont() -> Font"""
3059 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3061 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3062 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3063 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3064 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3065 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3066 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3067 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3068 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3069 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3070 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3072 class ListItemPtr(ListItem
):
3073 def __init__(self
, this
):
3075 if not hasattr(self
,"thisown"): self
.thisown
= 0
3076 self
.__class
__ = ListItem
3077 _controls
.ListItem_swigregister(ListItemPtr
)
3079 #---------------------------------------------------------------------------
3081 class ListEvent(core
.NotifyEvent
):
3083 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3084 def __init__(self
, *args
, **kwargs
):
3085 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3086 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3087 self
.this
= newobj
.this
3090 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3091 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3092 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3093 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3094 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3095 m_item
= property(_controls
.ListEvent_m_item_get
)
3096 def GetKeyCode(*args
, **kwargs
):
3097 """GetKeyCode() -> int"""
3098 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3100 GetCode
= GetKeyCode
3101 def GetIndex(*args
, **kwargs
):
3102 """GetIndex() -> long"""
3103 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3105 def GetColumn(*args
, **kwargs
):
3106 """GetColumn() -> int"""
3107 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3109 def GetPoint(*args
, **kwargs
):
3110 """GetPoint() -> Point"""
3111 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3113 GetPosition
= GetPoint
3114 def GetLabel(*args
, **kwargs
):
3115 """GetLabel() -> String"""
3116 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3118 def GetText(*args
, **kwargs
):
3119 """GetText() -> String"""
3120 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3122 def GetImage(*args
, **kwargs
):
3123 """GetImage() -> int"""
3124 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3126 def GetData(*args
, **kwargs
):
3127 """GetData() -> long"""
3128 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3130 def GetMask(*args
, **kwargs
):
3131 """GetMask() -> long"""
3132 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3134 def GetItem(*args
, **kwargs
):
3135 """GetItem() -> ListItem"""
3136 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3138 def GetCacheFrom(*args
, **kwargs
):
3139 """GetCacheFrom() -> long"""
3140 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3142 def GetCacheTo(*args
, **kwargs
):
3143 """GetCacheTo() -> long"""
3144 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3146 def IsEditCancelled(*args
, **kwargs
):
3147 """IsEditCancelled() -> bool"""
3148 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3150 def SetEditCanceled(*args
, **kwargs
):
3151 """SetEditCanceled(bool editCancelled)"""
3152 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3155 class ListEventPtr(ListEvent
):
3156 def __init__(self
, this
):
3158 if not hasattr(self
,"thisown"): self
.thisown
= 0
3159 self
.__class
__ = ListEvent
3160 _controls
.ListEvent_swigregister(ListEventPtr
)
3162 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3163 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3164 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3165 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3166 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3167 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3168 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3169 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3170 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3171 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3172 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3173 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3174 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3175 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3176 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3177 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3178 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3179 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3180 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3181 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3182 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3183 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3184 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3185 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3186 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3187 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3188 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3189 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3190 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3191 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3192 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3193 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3194 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3195 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3196 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3197 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3198 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3199 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3200 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3201 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3202 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3203 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3204 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3205 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3207 #---------------------------------------------------------------------------
3209 class ListCtrl(core
.Control
):
3211 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3212 def __init__(self
, *args
, **kwargs
):
3214 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3215 Size size=DefaultSize, long style=LC_ICON,
3216 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3218 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3219 self
.this
= newobj
.this
3222 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3224 def Create(*args
, **kwargs
):
3226 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3227 Size size=DefaultSize, long style=LC_ICON,
3228 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3230 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3232 def _setCallbackInfo(*args
, **kwargs
):
3233 """_setCallbackInfo(PyObject self, PyObject _class)"""
3234 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3236 def SetForegroundColour(*args
, **kwargs
):
3237 """SetForegroundColour(Colour col) -> bool"""
3238 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3240 def SetBackgroundColour(*args
, **kwargs
):
3241 """SetBackgroundColour(Colour col) -> bool"""
3242 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3244 def GetColumn(*args
, **kwargs
):
3245 """GetColumn(int col) -> ListItem"""
3246 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3247 if val
is not None: val
.thisown
= 1
3250 def SetColumn(*args
, **kwargs
):
3251 """SetColumn(int col, ListItem item) -> bool"""
3252 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3254 def GetColumnWidth(*args
, **kwargs
):
3255 """GetColumnWidth(int col) -> int"""
3256 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3258 def SetColumnWidth(*args
, **kwargs
):
3259 """SetColumnWidth(int col, int width) -> bool"""
3260 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3262 def GetCountPerPage(*args
, **kwargs
):
3263 """GetCountPerPage() -> int"""
3264 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3266 def GetViewRect(*args
, **kwargs
):
3267 """GetViewRect() -> Rect"""
3268 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3270 def GetEditControl(*args
, **kwargs
):
3271 """GetEditControl() -> TextCtrl"""
3272 return _controls
.ListCtrl_GetEditControl(*args
, **kwargs
)
3274 def GetItem(*args
, **kwargs
):
3275 """GetItem(long itemId, int col=0) -> ListItem"""
3276 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3277 if val
is not None: val
.thisown
= 1
3280 def SetItem(*args
, **kwargs
):
3281 """SetItem(ListItem info) -> bool"""
3282 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3284 def SetStringItem(*args
, **kwargs
):
3285 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3286 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3288 def GetItemState(*args
, **kwargs
):
3289 """GetItemState(long item, long stateMask) -> int"""
3290 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3292 def SetItemState(*args
, **kwargs
):
3293 """SetItemState(long item, long state, long stateMask) -> bool"""
3294 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3296 def SetItemImage(*args
, **kwargs
):
3297 """SetItemImage(long item, int image, int selImage) -> bool"""
3298 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3300 def GetItemText(*args
, **kwargs
):
3301 """GetItemText(long item) -> String"""
3302 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3304 def SetItemText(*args
, **kwargs
):
3305 """SetItemText(long item, String str)"""
3306 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3308 def GetItemData(*args
, **kwargs
):
3309 """GetItemData(long item) -> long"""
3310 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3312 def SetItemData(*args
, **kwargs
):
3313 """SetItemData(long item, long data) -> bool"""
3314 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3316 def GetItemPosition(*args
, **kwargs
):
3317 """GetItemPosition(long item) -> Point"""
3318 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3320 def GetItemRect(*args
, **kwargs
):
3321 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3322 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3324 def SetItemPosition(*args
, **kwargs
):
3325 """SetItemPosition(long item, Point pos) -> bool"""
3326 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3328 def GetItemCount(*args
, **kwargs
):
3329 """GetItemCount() -> int"""
3330 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3332 def GetColumnCount(*args
, **kwargs
):
3333 """GetColumnCount() -> int"""
3334 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3336 def GetItemSpacing(*args
, **kwargs
):
3337 """GetItemSpacing() -> Size"""
3338 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3340 def GetSelectedItemCount(*args
, **kwargs
):
3341 """GetSelectedItemCount() -> int"""
3342 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3344 def GetTextColour(*args
, **kwargs
):
3345 """GetTextColour() -> Colour"""
3346 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3348 def SetTextColour(*args
, **kwargs
):
3349 """SetTextColour(Colour col)"""
3350 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3352 def GetTopItem(*args
, **kwargs
):
3353 """GetTopItem() -> long"""
3354 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3356 def SetSingleStyle(*args
, **kwargs
):
3357 """SetSingleStyle(long style, bool add=True)"""
3358 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3360 def SetWindowStyleFlag(*args
, **kwargs
):
3361 """SetWindowStyleFlag(long style)"""
3362 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3364 def GetNextItem(*args
, **kwargs
):
3365 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3366 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3368 def GetImageList(*args
, **kwargs
):
3369 """GetImageList(int which) -> ImageList"""
3370 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3372 def SetImageList(*args
, **kwargs
):
3373 """SetImageList(ImageList imageList, int which)"""
3374 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3376 def AssignImageList(*args
, **kwargs
):
3377 """AssignImageList(ImageList imageList, int which)"""
3378 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3382 def IsVirtual(*args
, **kwargs
):
3383 """IsVirtual() -> bool"""
3384 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3386 def RefreshItem(*args
, **kwargs
):
3387 """RefreshItem(long item)"""
3388 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3390 def RefreshItems(*args
, **kwargs
):
3391 """RefreshItems(long itemFrom, long itemTo)"""
3392 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3394 def Arrange(*args
, **kwargs
):
3395 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3396 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3398 def DeleteItem(*args
, **kwargs
):
3399 """DeleteItem(long item) -> bool"""
3400 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3402 def DeleteAllItems(*args
, **kwargs
):
3403 """DeleteAllItems() -> bool"""
3404 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3406 def DeleteColumn(*args
, **kwargs
):
3407 """DeleteColumn(int col) -> bool"""
3408 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3410 def DeleteAllColumns(*args
, **kwargs
):
3411 """DeleteAllColumns() -> bool"""
3412 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3414 def ClearAll(*args
, **kwargs
):
3416 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3418 def EditLabel(*args
, **kwargs
):
3419 """EditLabel(long item) -> TextCtrl"""
3420 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3422 def EndEditLabel(*args
, **kwargs
):
3423 """EndEditLabel(bool cancel) -> bool"""
3424 return _controls
.ListCtrl_EndEditLabel(*args
, **kwargs
)
3426 def EnsureVisible(*args
, **kwargs
):
3427 """EnsureVisible(long item) -> bool"""
3428 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3430 def FindItem(*args
, **kwargs
):
3431 """FindItem(long start, String str, bool partial=False) -> long"""
3432 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3434 def FindItemData(*args
, **kwargs
):
3435 """FindItemData(long start, long data) -> long"""
3436 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3438 def FindItemAtPos(*args
, **kwargs
):
3439 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3440 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3442 def HitTest(*args
, **kwargs
):
3444 HitTest(Point point) -> (item, where)
3446 Determines which item (if any) is at the specified point,
3447 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3449 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3451 def InsertItem(*args
, **kwargs
):
3452 """InsertItem(ListItem info) -> long"""
3453 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3455 def InsertStringItem(*args
, **kwargs
):
3456 """InsertStringItem(long index, String label) -> long"""
3457 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3459 def InsertImageItem(*args
, **kwargs
):
3460 """InsertImageItem(long index, int imageIndex) -> long"""
3461 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3463 def InsertImageStringItem(*args
, **kwargs
):
3464 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3465 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3467 def InsertColumnInfo(*args
, **kwargs
):
3468 """InsertColumnInfo(long col, ListItem info) -> long"""
3469 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3471 def InsertColumn(*args
, **kwargs
):
3473 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3474 int width=-1) -> long
3476 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3478 def SetItemCount(*args
, **kwargs
):
3479 """SetItemCount(long count)"""
3480 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3482 def ScrollList(*args
, **kwargs
):
3483 """ScrollList(int dx, int dy) -> bool"""
3484 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3486 def SetItemTextColour(*args
, **kwargs
):
3487 """SetItemTextColour(long item, Colour col)"""
3488 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3490 def GetItemTextColour(*args
, **kwargs
):
3491 """GetItemTextColour(long item) -> Colour"""
3492 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3494 def SetItemBackgroundColour(*args
, **kwargs
):
3495 """SetItemBackgroundColour(long item, Colour col)"""
3496 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3498 def GetItemBackgroundColour(*args
, **kwargs
):
3499 """GetItemBackgroundColour(long item) -> Colour"""
3500 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3504 def Select(self
, idx
, on
=1):
3505 '''[de]select an item'''
3506 if on
: state
= wx
.LIST_STATE_SELECTED
3508 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3510 def Focus(self
, idx
):
3511 '''Focus and show the given item'''
3512 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3513 self
.EnsureVisible(idx
)
3515 def GetFocusedItem(self
):
3516 '''get the currently focused item or -1 if none'''
3517 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3519 def GetFirstSelected(self
, *args
):
3520 '''return first selected item, or -1 when none'''
3521 return self
.GetNextSelected(-1)
3523 def GetNextSelected(self
, item
):
3524 '''return subsequent selected items, or -1 when no more'''
3525 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3527 def IsSelected(self
, idx
):
3528 '''return True if the item is selected'''
3529 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3531 def SetColumnImage(self
, col
, image
):
3532 item
= self
.GetColumn(col
)
3533 # preserve all other attributes too
3534 item
.SetMask( wx
.LIST_MASK_STATE |
3536 wx
.LIST_MASK_IMAGE |
3539 wx
.LIST_MASK_WIDTH |
3540 wx
.LIST_MASK_FORMAT
)
3541 item
.SetImage(image
)
3542 self
.SetColumn(col
, item
)
3544 def ClearColumnImage(self
, col
):
3545 self
.SetColumnImage(col
, -1)
3547 def Append(self
, entry
):
3548 '''Append an item to the list control. The entry parameter should be a
3549 sequence with an item for each column'''
3555 pos
= self
.GetItemCount()
3556 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3557 for i
in range(1, len(entry
)):
3558 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3561 def SortItems(*args
, **kwargs
):
3562 """SortItems(PyObject func) -> bool"""
3563 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3565 def GetMainWindow(*args
, **kwargs
):
3566 """GetMainWindow() -> Window"""
3567 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3570 class ListCtrlPtr(ListCtrl
):
3571 def __init__(self
, this
):
3573 if not hasattr(self
,"thisown"): self
.thisown
= 0
3574 self
.__class
__ = ListCtrl
3575 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3577 def PreListCtrl(*args
, **kwargs
):
3578 """PreListCtrl() -> ListCtrl"""
3579 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3583 #---------------------------------------------------------------------------
3585 class ListView(ListCtrl
):
3587 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3588 def __init__(self
, *args
, **kwargs
):
3590 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3591 Size size=DefaultSize, long style=LC_REPORT,
3592 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3594 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3595 self
.this
= newobj
.this
3598 self
._setOORInfo
(self
)
3600 def Create(*args
, **kwargs
):
3602 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3603 Size size=DefaultSize, long style=LC_REPORT,
3604 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3606 return _controls
.ListView_Create(*args
, **kwargs
)
3608 def Select(*args
, **kwargs
):
3609 """Select(long n, bool on=True)"""
3610 return _controls
.ListView_Select(*args
, **kwargs
)
3612 def Focus(*args
, **kwargs
):
3613 """Focus(long index)"""
3614 return _controls
.ListView_Focus(*args
, **kwargs
)
3616 def GetFocusedItem(*args
, **kwargs
):
3617 """GetFocusedItem() -> long"""
3618 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3620 def GetNextSelected(*args
, **kwargs
):
3621 """GetNextSelected(long item) -> long"""
3622 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3624 def GetFirstSelected(*args
, **kwargs
):
3625 """GetFirstSelected() -> long"""
3626 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3628 def IsSelected(*args
, **kwargs
):
3629 """IsSelected(long index) -> bool"""
3630 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3632 def SetColumnImage(*args
, **kwargs
):
3633 """SetColumnImage(int col, int image)"""
3634 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3636 def ClearColumnImage(*args
, **kwargs
):
3637 """ClearColumnImage(int col)"""
3638 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3641 class ListViewPtr(ListView
):
3642 def __init__(self
, this
):
3644 if not hasattr(self
,"thisown"): self
.thisown
= 0
3645 self
.__class
__ = ListView
3646 _controls
.ListView_swigregister(ListViewPtr
)
3648 def PreListView(*args
, **kwargs
):
3649 """PreListView() -> ListView"""
3650 val
= _controls
.new_PreListView(*args
, **kwargs
)
3654 #---------------------------------------------------------------------------
3656 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3657 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3658 TR_NO_LINES
= _controls
.TR_NO_LINES
3659 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3660 TR_SINGLE
= _controls
.TR_SINGLE
3661 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3662 TR_EXTENDED
= _controls
.TR_EXTENDED
3663 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3664 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3665 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3666 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3667 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3668 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3669 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3670 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3671 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3672 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3673 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3674 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3675 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3676 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3677 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3678 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3679 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3680 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3681 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3682 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3683 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3684 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3685 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3686 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3687 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3688 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3689 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3690 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3691 #---------------------------------------------------------------------------
3693 class TreeItemId(object):
3695 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3696 def __init__(self
, *args
, **kwargs
):
3697 """__init__() -> TreeItemId"""
3698 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3699 self
.this
= newobj
.this
3702 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3705 if self
.thisown
: destroy(self
)
3708 def IsOk(*args
, **kwargs
):
3709 """IsOk() -> bool"""
3710 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3712 def __eq__(*args
, **kwargs
):
3713 """__eq__(TreeItemId other) -> bool"""
3714 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3716 def __ne__(*args
, **kwargs
):
3717 """__ne__(TreeItemId other) -> bool"""
3718 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3720 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3722 def __nonzero__(self
): return self
.IsOk()
3724 class TreeItemIdPtr(TreeItemId
):
3725 def __init__(self
, this
):
3727 if not hasattr(self
,"thisown"): self
.thisown
= 0
3728 self
.__class
__ = TreeItemId
3729 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3730 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3732 class TreeItemData(object):
3734 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3735 def __init__(self
, *args
, **kwargs
):
3736 """__init__(PyObject obj=None) -> TreeItemData"""
3737 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3738 self
.this
= newobj
.this
3741 def GetData(*args
, **kwargs
):
3742 """GetData() -> PyObject"""
3743 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3745 def SetData(*args
, **kwargs
):
3746 """SetData(PyObject obj)"""
3747 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3749 def GetId(*args
, **kwargs
):
3750 """GetId() -> TreeItemId"""
3751 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3753 def SetId(*args
, **kwargs
):
3754 """SetId(TreeItemId id)"""
3755 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3757 def Destroy(*args
, **kwargs
):
3759 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3762 class TreeItemDataPtr(TreeItemData
):
3763 def __init__(self
, this
):
3765 if not hasattr(self
,"thisown"): self
.thisown
= 0
3766 self
.__class
__ = TreeItemData
3767 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3769 #---------------------------------------------------------------------------
3771 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3772 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3773 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3774 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3775 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3776 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3777 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3778 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3779 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3780 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3781 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3782 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3783 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3784 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3785 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3786 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3787 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3788 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3789 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3790 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3791 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3792 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3793 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3794 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3795 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3796 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3797 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3798 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3799 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3800 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3801 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3802 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3803 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3804 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3805 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3806 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3807 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3808 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3809 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3810 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3812 class TreeEvent(core
.NotifyEvent
):
3814 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3815 def __init__(self
, *args
, **kwargs
):
3816 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3817 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3818 self
.this
= newobj
.this
3821 def GetItem(*args
, **kwargs
):
3822 """GetItem() -> TreeItemId"""
3823 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3825 def SetItem(*args
, **kwargs
):
3826 """SetItem(TreeItemId item)"""
3827 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3829 def GetOldItem(*args
, **kwargs
):
3830 """GetOldItem() -> TreeItemId"""
3831 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3833 def SetOldItem(*args
, **kwargs
):
3834 """SetOldItem(TreeItemId item)"""
3835 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3837 def GetPoint(*args
, **kwargs
):
3838 """GetPoint() -> Point"""
3839 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3841 def SetPoint(*args
, **kwargs
):
3842 """SetPoint(Point pt)"""
3843 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3845 def GetKeyEvent(*args
, **kwargs
):
3846 """GetKeyEvent() -> KeyEvent"""
3847 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3849 def GetKeyCode(*args
, **kwargs
):
3850 """GetKeyCode() -> int"""
3851 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3853 def SetKeyEvent(*args
, **kwargs
):
3854 """SetKeyEvent(KeyEvent evt)"""
3855 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3857 def GetLabel(*args
, **kwargs
):
3858 """GetLabel() -> String"""
3859 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3861 def SetLabel(*args
, **kwargs
):
3862 """SetLabel(String label)"""
3863 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3865 def IsEditCancelled(*args
, **kwargs
):
3866 """IsEditCancelled() -> bool"""
3867 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3869 def SetEditCanceled(*args
, **kwargs
):
3870 """SetEditCanceled(bool editCancelled)"""
3871 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3873 def SetToolTip(*args
, **kwargs
):
3874 """SetToolTip(String toolTip)"""
3875 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
3878 class TreeEventPtr(TreeEvent
):
3879 def __init__(self
, this
):
3881 if not hasattr(self
,"thisown"): self
.thisown
= 0
3882 self
.__class
__ = TreeEvent
3883 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3885 #---------------------------------------------------------------------------
3887 class TreeCtrl(core
.Control
):
3889 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3890 def __init__(self
, *args
, **kwargs
):
3892 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3893 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3894 Validator validator=DefaultValidator,
3895 String name=TreeCtrlNameStr) -> TreeCtrl
3897 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3898 self
.this
= newobj
.this
3901 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3903 def Create(*args
, **kwargs
):
3905 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3906 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3907 Validator validator=DefaultValidator,
3908 String name=TreeCtrlNameStr) -> bool
3910 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3912 def _setCallbackInfo(*args
, **kwargs
):
3913 """_setCallbackInfo(PyObject self, PyObject _class)"""
3914 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3916 def GetCount(*args
, **kwargs
):
3917 """GetCount() -> size_t"""
3918 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3920 def GetIndent(*args
, **kwargs
):
3921 """GetIndent() -> unsigned int"""
3922 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3924 def SetIndent(*args
, **kwargs
):
3925 """SetIndent(unsigned int indent)"""
3926 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3928 def GetSpacing(*args
, **kwargs
):
3929 """GetSpacing() -> unsigned int"""
3930 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3932 def SetSpacing(*args
, **kwargs
):
3933 """SetSpacing(unsigned int spacing)"""
3934 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3936 def GetImageList(*args
, **kwargs
):
3937 """GetImageList() -> ImageList"""
3938 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3940 def GetStateImageList(*args
, **kwargs
):
3941 """GetStateImageList() -> ImageList"""
3942 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3944 def SetImageList(*args
, **kwargs
):
3945 """SetImageList(ImageList imageList)"""
3946 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3948 def SetStateImageList(*args
, **kwargs
):
3949 """SetStateImageList(ImageList imageList)"""
3950 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3952 def AssignImageList(*args
, **kwargs
):
3953 """AssignImageList(ImageList imageList)"""
3954 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3958 def AssignStateImageList(*args
, **kwargs
):
3959 """AssignStateImageList(ImageList imageList)"""
3960 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3964 def GetItemText(*args
, **kwargs
):
3965 """GetItemText(TreeItemId item) -> String"""
3966 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3968 def GetItemImage(*args
, **kwargs
):
3969 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
3970 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3972 def GetItemData(*args
, **kwargs
):
3973 """GetItemData(TreeItemId item) -> TreeItemData"""
3974 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3976 def GetItemPyData(*args
, **kwargs
):
3977 """GetItemPyData(TreeItemId item) -> PyObject"""
3978 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3980 GetPyData
= GetItemPyData
3981 def GetItemTextColour(*args
, **kwargs
):
3982 """GetItemTextColour(TreeItemId item) -> Colour"""
3983 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3985 def GetItemBackgroundColour(*args
, **kwargs
):
3986 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
3987 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3989 def GetItemFont(*args
, **kwargs
):
3990 """GetItemFont(TreeItemId item) -> Font"""
3991 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3993 def SetItemText(*args
, **kwargs
):
3994 """SetItemText(TreeItemId item, String text)"""
3995 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3997 def SetItemImage(*args
, **kwargs
):
3998 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
3999 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4001 def SetItemData(*args
, **kwargs
):
4002 """SetItemData(TreeItemId item, TreeItemData data)"""
4003 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4005 def SetItemPyData(*args
, **kwargs
):
4006 """SetItemPyData(TreeItemId item, PyObject obj)"""
4007 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4009 SetPyData
= SetItemPyData
4010 def SetItemHasChildren(*args
, **kwargs
):
4011 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4012 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4014 def SetItemBold(*args
, **kwargs
):
4015 """SetItemBold(TreeItemId item, bool bold=True)"""
4016 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4018 def SetItemDropHighlight(*args
, **kwargs
):
4019 """SetItemDropHighlight(TreeItemId item, bool highlight=True)"""
4020 return _controls
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
4022 def SetItemTextColour(*args
, **kwargs
):
4023 """SetItemTextColour(TreeItemId item, Colour col)"""
4024 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4026 def SetItemBackgroundColour(*args
, **kwargs
):
4027 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4028 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4030 def SetItemFont(*args
, **kwargs
):
4031 """SetItemFont(TreeItemId item, Font font)"""
4032 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4034 def IsVisible(*args
, **kwargs
):
4035 """IsVisible(TreeItemId item) -> bool"""
4036 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4038 def ItemHasChildren(*args
, **kwargs
):
4039 """ItemHasChildren(TreeItemId item) -> bool"""
4040 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4042 def IsExpanded(*args
, **kwargs
):
4043 """IsExpanded(TreeItemId item) -> bool"""
4044 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4046 def IsSelected(*args
, **kwargs
):
4047 """IsSelected(TreeItemId item) -> bool"""
4048 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4050 def IsBold(*args
, **kwargs
):
4051 """IsBold(TreeItemId item) -> bool"""
4052 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4054 def GetChildrenCount(*args
, **kwargs
):
4055 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4056 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4058 def GetRootItem(*args
, **kwargs
):
4059 """GetRootItem() -> TreeItemId"""
4060 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4062 def GetSelection(*args
, **kwargs
):
4063 """GetSelection() -> TreeItemId"""
4064 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4066 def GetSelections(*args
, **kwargs
):
4067 """GetSelections() -> PyObject"""
4068 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4070 def GetItemParent(*args
, **kwargs
):
4071 """GetItemParent(TreeItemId item) -> TreeItemId"""
4072 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4074 def GetFirstChild(*args
, **kwargs
):
4075 """GetFirstChild(TreeItemId item) -> PyObject"""
4076 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4078 def GetNextChild(*args
, **kwargs
):
4079 """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
4080 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4082 def GetLastChild(*args
, **kwargs
):
4083 """GetLastChild(TreeItemId item) -> TreeItemId"""
4084 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4086 def GetNextSibling(*args
, **kwargs
):
4087 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4088 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4090 def GetPrevSibling(*args
, **kwargs
):
4091 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4092 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4094 def GetFirstVisibleItem(*args
, **kwargs
):
4095 """GetFirstVisibleItem() -> TreeItemId"""
4096 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4098 def GetNextVisible(*args
, **kwargs
):
4099 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4100 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4102 def GetPrevVisible(*args
, **kwargs
):
4103 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4104 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4106 def AddRoot(*args
, **kwargs
):
4107 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4108 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4110 def PrependItem(*args
, **kwargs
):
4112 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4113 TreeItemData data=None) -> TreeItemId
4115 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4117 def InsertItem(*args
, **kwargs
):
4119 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4120 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4122 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4124 def InsertItemBefore(*args
, **kwargs
):
4126 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4127 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4129 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4131 def AppendItem(*args
, **kwargs
):
4133 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4134 TreeItemData data=None) -> TreeItemId
4136 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4138 def Delete(*args
, **kwargs
):
4139 """Delete(TreeItemId item)"""
4140 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4142 def DeleteChildren(*args
, **kwargs
):
4143 """DeleteChildren(TreeItemId item)"""
4144 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4146 def DeleteAllItems(*args
, **kwargs
):
4147 """DeleteAllItems()"""
4148 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4150 def Expand(*args
, **kwargs
):
4151 """Expand(TreeItemId item)"""
4152 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4154 def Collapse(*args
, **kwargs
):
4155 """Collapse(TreeItemId item)"""
4156 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4158 def CollapseAndReset(*args
, **kwargs
):
4159 """CollapseAndReset(TreeItemId item)"""
4160 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4162 def Toggle(*args
, **kwargs
):
4163 """Toggle(TreeItemId item)"""
4164 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4166 def Unselect(*args
, **kwargs
):
4168 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4170 def UnselectAll(*args
, **kwargs
):
4172 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4174 def SelectItem(*args
, **kwargs
):
4175 """SelectItem(TreeItemId item)"""
4176 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4178 def EnsureVisible(*args
, **kwargs
):
4179 """EnsureVisible(TreeItemId item)"""
4180 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4182 def ScrollTo(*args
, **kwargs
):
4183 """ScrollTo(TreeItemId item)"""
4184 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4186 def EditLabel(*args
, **kwargs
):
4187 """EditLabel(TreeItemId item)"""
4188 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4190 def GetEditControl(*args
, **kwargs
):
4191 """GetEditControl() -> TextCtrl"""
4192 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4194 def EndEditLabel(*args
, **kwargs
):
4195 """EndEditLabel(TreeItemId item, bool discardChanges=False)"""
4196 return _controls
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
4198 def SortChildren(*args
, **kwargs
):
4199 """SortChildren(TreeItemId item)"""
4200 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4202 def HitTest(*args
, **kwargs
):
4204 HitTest(Point point) -> (item, where)
4206 Determine which item (if any) belongs the given point. The
4207 coordinates specified are relative to the client area of tree ctrl
4208 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4212 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4214 def GetBoundingRect(*args
, **kwargs
):
4215 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4216 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4219 class TreeCtrlPtr(TreeCtrl
):
4220 def __init__(self
, this
):
4222 if not hasattr(self
,"thisown"): self
.thisown
= 0
4223 self
.__class
__ = TreeCtrl
4224 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4226 def PreTreeCtrl(*args
, **kwargs
):
4227 """PreTreeCtrl() -> TreeCtrl"""
4228 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4232 #---------------------------------------------------------------------------
4234 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4235 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4236 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4237 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4238 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4239 class GenericDirCtrl(core
.Control
):
4241 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4242 def __init__(self
, *args
, **kwargs
):
4244 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4245 Point pos=DefaultPosition, Size size=DefaultSize,
4246 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4247 String filter=EmptyString,
4248 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4250 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4251 self
.this
= newobj
.this
4254 self
._setOORInfo
(self
)
4256 def Create(*args
, **kwargs
):
4258 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4259 Point pos=DefaultPosition, Size size=DefaultSize,
4260 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4261 String filter=EmptyString,
4262 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4264 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4266 def ExpandPath(*args
, **kwargs
):
4267 """ExpandPath(String path) -> bool"""
4268 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4270 def GetDefaultPath(*args
, **kwargs
):
4271 """GetDefaultPath() -> String"""
4272 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4274 def SetDefaultPath(*args
, **kwargs
):
4275 """SetDefaultPath(String path)"""
4276 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4278 def GetPath(*args
, **kwargs
):
4279 """GetPath() -> String"""
4280 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4282 def GetFilePath(*args
, **kwargs
):
4283 """GetFilePath() -> String"""
4284 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4286 def SetPath(*args
, **kwargs
):
4287 """SetPath(String path)"""
4288 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4290 def ShowHidden(*args
, **kwargs
):
4291 """ShowHidden(bool show)"""
4292 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4294 def GetShowHidden(*args
, **kwargs
):
4295 """GetShowHidden() -> bool"""
4296 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4298 def GetFilter(*args
, **kwargs
):
4299 """GetFilter() -> String"""
4300 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4302 def SetFilter(*args
, **kwargs
):
4303 """SetFilter(String filter)"""
4304 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4306 def GetFilterIndex(*args
, **kwargs
):
4307 """GetFilterIndex() -> int"""
4308 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4310 def SetFilterIndex(*args
, **kwargs
):
4311 """SetFilterIndex(int n)"""
4312 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4314 def GetRootId(*args
, **kwargs
):
4315 """GetRootId() -> TreeItemId"""
4316 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4318 def GetTreeCtrl(*args
, **kwargs
):
4319 """GetTreeCtrl() -> TreeCtrl"""
4320 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4322 def GetFilterListCtrl(*args
, **kwargs
):
4323 """GetFilterListCtrl() -> DirFilterListCtrl"""
4324 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4326 def FindChild(*args
, **kwargs
):
4328 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4330 Find the child that matches the first part of 'path'. E.g. if a child path is
4331 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4332 If the path string has been used (we're at the leaf), done is set to True
4335 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4337 def DoResize(*args
, **kwargs
):
4339 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4341 def ReCreateTree(*args
, **kwargs
):
4342 """ReCreateTree()"""
4343 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4346 class GenericDirCtrlPtr(GenericDirCtrl
):
4347 def __init__(self
, this
):
4349 if not hasattr(self
,"thisown"): self
.thisown
= 0
4350 self
.__class
__ = GenericDirCtrl
4351 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4352 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4354 def PreGenericDirCtrl(*args
, **kwargs
):
4355 """PreGenericDirCtrl() -> GenericDirCtrl"""
4356 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4360 class DirFilterListCtrl(Choice
):
4362 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4363 def __init__(self
, *args
, **kwargs
):
4365 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4366 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4368 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4369 self
.this
= newobj
.this
4372 self
._setOORInfo
(self
)
4374 def Create(*args
, **kwargs
):
4376 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4377 Size size=DefaultSize, long style=0) -> bool
4379 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4381 def FillFilterList(*args
, **kwargs
):
4382 """FillFilterList(String filter, int defaultFilter)"""
4383 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4386 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4387 def __init__(self
, this
):
4389 if not hasattr(self
,"thisown"): self
.thisown
= 0
4390 self
.__class
__ = DirFilterListCtrl
4391 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4393 def PreDirFilterListCtrl(*args
, **kwargs
):
4394 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4395 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4399 #---------------------------------------------------------------------------
4401 class PyControl(core
.Control
):
4403 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4404 def __init__(self
, *args
, **kwargs
):
4406 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4407 long style=0, Validator validator=DefaultValidator,
4408 String name=ControlNameStr) -> PyControl
4410 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4411 self
.this
= newobj
.this
4414 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4416 def _setCallbackInfo(*args
, **kwargs
):
4417 """_setCallbackInfo(PyObject self, PyObject _class)"""
4418 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4420 def base_DoMoveWindow(*args
, **kwargs
):
4421 """base_DoMoveWindow(int x, int y, int width, int height)"""
4422 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4424 def base_DoSetSize(*args
, **kwargs
):
4425 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4426 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4428 def base_DoSetClientSize(*args
, **kwargs
):
4429 """base_DoSetClientSize(int width, int height)"""
4430 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4432 def base_DoSetVirtualSize(*args
, **kwargs
):
4433 """base_DoSetVirtualSize(int x, int y)"""
4434 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4436 def base_DoGetSize(*args
, **kwargs
):
4437 """base_DoGetSize() -> (width, height)"""
4438 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4440 def base_DoGetClientSize(*args
, **kwargs
):
4441 """base_DoGetClientSize() -> (width, height)"""
4442 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4444 def base_DoGetPosition(*args
, **kwargs
):
4445 """base_DoGetPosition() -> (x,y)"""
4446 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4448 def base_DoGetVirtualSize(*args
, **kwargs
):
4449 """base_DoGetVirtualSize() -> Size"""
4450 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4452 def base_DoGetBestSize(*args
, **kwargs
):
4453 """base_DoGetBestSize() -> Size"""
4454 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4456 def base_InitDialog(*args
, **kwargs
):
4457 """base_InitDialog()"""
4458 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4460 def base_TransferDataToWindow(*args
, **kwargs
):
4461 """base_TransferDataToWindow() -> bool"""
4462 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4464 def base_TransferDataFromWindow(*args
, **kwargs
):
4465 """base_TransferDataFromWindow() -> bool"""
4466 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4468 def base_Validate(*args
, **kwargs
):
4469 """base_Validate() -> bool"""
4470 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4472 def base_AcceptsFocus(*args
, **kwargs
):
4473 """base_AcceptsFocus() -> bool"""
4474 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4476 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4477 """base_AcceptsFocusFromKeyboard() -> bool"""
4478 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4480 def base_GetMaxSize(*args
, **kwargs
):
4481 """base_GetMaxSize() -> Size"""
4482 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4484 def base_AddChild(*args
, **kwargs
):
4485 """base_AddChild(Window child)"""
4486 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4488 def base_RemoveChild(*args
, **kwargs
):
4489 """base_RemoveChild(Window child)"""
4490 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4493 class PyControlPtr(PyControl
):
4494 def __init__(self
, this
):
4496 if not hasattr(self
,"thisown"): self
.thisown
= 0
4497 self
.__class
__ = PyControl
4498 _controls
.PyControl_swigregister(PyControlPtr
)
4500 #---------------------------------------------------------------------------
4502 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4503 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4504 wxEVT_HELP
= _controls
.wxEVT_HELP
4505 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4506 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4507 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4508 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4509 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4511 class HelpEvent(core
.CommandEvent
):
4513 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4514 def __init__(self
, *args
, **kwargs
):
4515 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4516 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4517 self
.this
= newobj
.this
4520 def GetPosition(*args
, **kwargs
):
4521 """GetPosition() -> Point"""
4522 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4524 def SetPosition(*args
, **kwargs
):
4525 """SetPosition(Point pos)"""
4526 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4528 def GetLink(*args
, **kwargs
):
4529 """GetLink() -> String"""
4530 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4532 def SetLink(*args
, **kwargs
):
4533 """SetLink(String link)"""
4534 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4536 def GetTarget(*args
, **kwargs
):
4537 """GetTarget() -> String"""
4538 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4540 def SetTarget(*args
, **kwargs
):
4541 """SetTarget(String target)"""
4542 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4545 class HelpEventPtr(HelpEvent
):
4546 def __init__(self
, this
):
4548 if not hasattr(self
,"thisown"): self
.thisown
= 0
4549 self
.__class
__ = HelpEvent
4550 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4552 class ContextHelp(core
.Object
):
4554 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4555 def __init__(self
, *args
, **kwargs
):
4556 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4557 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4558 self
.this
= newobj
.this
4561 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4564 if self
.thisown
: destroy(self
)
4567 def BeginContextHelp(*args
, **kwargs
):
4568 """BeginContextHelp(Window window=None) -> bool"""
4569 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4571 def EndContextHelp(*args
, **kwargs
):
4572 """EndContextHelp() -> bool"""
4573 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4576 class ContextHelpPtr(ContextHelp
):
4577 def __init__(self
, this
):
4579 if not hasattr(self
,"thisown"): self
.thisown
= 0
4580 self
.__class
__ = ContextHelp
4581 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4583 class ContextHelpButton(BitmapButton
):
4585 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4586 def __init__(self
, *args
, **kwargs
):
4588 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4589 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4591 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4592 self
.this
= newobj
.this
4595 self
._setOORInfo
(self
)
4598 class ContextHelpButtonPtr(ContextHelpButton
):
4599 def __init__(self
, this
):
4601 if not hasattr(self
,"thisown"): self
.thisown
= 0
4602 self
.__class
__ = ContextHelpButton
4603 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4605 class HelpProvider(object):
4606 def __init__(self
): raise RuntimeError, "No constructor defined"
4608 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4609 def Set(*args
, **kwargs
):
4610 """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
4611 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4613 Set
= staticmethod(Set
)
4614 def Get(*args
, **kwargs
):
4615 """HelpProvider.Get() -> HelpProvider"""
4616 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4618 Get
= staticmethod(Get
)
4619 def GetHelp(*args
, **kwargs
):
4620 """GetHelp(Window window) -> String"""
4621 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4623 def ShowHelp(*args
, **kwargs
):
4624 """ShowHelp(Window window) -> bool"""
4625 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4627 def AddHelp(*args
, **kwargs
):
4628 """AddHelp(Window window, String text)"""
4629 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4631 def AddHelpById(*args
, **kwargs
):
4632 """AddHelpById(int id, String text)"""
4633 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4635 def Destroy(*args
, **kwargs
):
4637 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4640 class HelpProviderPtr(HelpProvider
):
4641 def __init__(self
, this
):
4643 if not hasattr(self
,"thisown"): self
.thisown
= 0
4644 self
.__class
__ = HelpProvider
4645 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4647 def HelpProvider_Set(*args
, **kwargs
):
4648 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4649 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4651 def HelpProvider_Get(*args
, **kwargs
):
4652 """HelpProvider_Get() -> HelpProvider"""
4653 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4655 class SimpleHelpProvider(HelpProvider
):
4657 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4658 def __init__(self
, *args
, **kwargs
):
4659 """__init__() -> SimpleHelpProvider"""
4660 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4661 self
.this
= newobj
.this
4665 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4666 def __init__(self
, this
):
4668 if not hasattr(self
,"thisown"): self
.thisown
= 0
4669 self
.__class
__ = SimpleHelpProvider
4670 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4672 #---------------------------------------------------------------------------
4674 class DragImage(core
.Object
):
4676 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4677 def __init__(self
, *args
, **kwargs
):
4678 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4679 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4680 self
.this
= newobj
.this
4683 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4686 if self
.thisown
: destroy(self
)
4689 def SetBackingBitmap(*args
, **kwargs
):
4690 """SetBackingBitmap(Bitmap bitmap)"""
4691 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4693 def BeginDrag(*args
, **kwargs
):
4695 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4696 Rect rect=None) -> bool
4698 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4700 def BeginDragBounded(*args
, **kwargs
):
4701 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4702 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4704 def EndDrag(*args
, **kwargs
):
4705 """EndDrag() -> bool"""
4706 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4708 def Move(*args
, **kwargs
):
4709 """Move(Point pt) -> bool"""
4710 return _controls
.DragImage_Move(*args
, **kwargs
)
4712 def Show(*args
, **kwargs
):
4713 """Show() -> bool"""
4714 return _controls
.DragImage_Show(*args
, **kwargs
)
4716 def Hide(*args
, **kwargs
):
4717 """Hide() -> bool"""
4718 return _controls
.DragImage_Hide(*args
, **kwargs
)
4720 def GetImageRect(*args
, **kwargs
):
4721 """GetImageRect(Point pos) -> Rect"""
4722 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4724 def DoDrawImage(*args
, **kwargs
):
4725 """DoDrawImage(DC dc, Point pos) -> bool"""
4726 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4728 def UpdateBackingFromWindow(*args
, **kwargs
):
4729 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4730 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4732 def RedrawImage(*args
, **kwargs
):
4733 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4734 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4737 class DragImagePtr(DragImage
):
4738 def __init__(self
, this
):
4740 if not hasattr(self
,"thisown"): self
.thisown
= 0
4741 self
.__class
__ = DragImage
4742 _controls
.DragImage_swigregister(DragImagePtr
)
4744 def DragIcon(*args
, **kwargs
):
4745 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
4746 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4750 def DragString(*args
, **kwargs
):
4751 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4752 val
= _controls
.new_DragString(*args
, **kwargs
)
4756 def DragTreeItem(*args
, **kwargs
):
4757 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4758 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4762 def DragListItem(*args
, **kwargs
):
4763 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4764 val
= _controls
.new_DragListItem(*args
, **kwargs
)