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, wxString label, Point pos=DefaultPosition,
27 Size size=DefaultSize, long style=0,
28 Validator validator=DefaultValidator,
29 wxString name=wxPyButtonNameStr) -> Button
31 Create and show a button.
33 newobj
= _controls
.new_Button(*args
, **kwargs
)
34 self
.this
= newobj
.this
37 self
._setOORInfo
(self
)
39 def Create(*args
, **kwargs
):
41 Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
42 Size size=DefaultSize, long style=0,
43 Validator validator=DefaultValidator,
44 wxString name=wxPyButtonNameStr) -> bool
46 Acutally create the GUI Button for 2-phase creation.
48 return _controls
.Button_Create(*args
, **kwargs
)
50 def SetDefault(*args
, **kwargs
):
54 This sets the button to be the default item for the panel or dialog box.
56 return _controls
.Button_SetDefault(*args
, **kwargs
)
58 def SetImageLabel(*args
, **kwargs
):
59 """SetImageLabel(wxBitmap bitmap)"""
60 return _controls
.Button_SetImageLabel(*args
, **kwargs
)
62 def SetImageMargins(*args
, **kwargs
):
63 """SetImageMargins(int x, int y)"""
64 return _controls
.Button_SetImageMargins(*args
, **kwargs
)
66 def GetDefaultSize(*args
, **kwargs
):
67 """Button.GetDefaultSize() -> Size"""
68 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
70 GetDefaultSize
= staticmethod(GetDefaultSize
)
72 class ButtonPtr(Button
):
73 def __init__(self
, this
):
75 if not hasattr(self
,"thisown"): self
.thisown
= 0
76 self
.__class
__ = Button
77 _controls
.Button_swigregister(ButtonPtr
)
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, wxBitmap bitmap, Point pos=DefaultPosition,
100 Size size=DefaultSize, long style=BU_AUTODRAW,
101 Validator validator=DefaultValidator,
102 wxString name=wxPyButtonNameStr) -> 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, wxBitmap bitmap, Point pos=DefaultPosition,
115 Size size=DefaultSize, long style=BU_AUTODRAW,
116 Validator validator=DefaultValidator,
117 wxString name=wxPyButtonNameStr) -> 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() -> wxBitmap
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() -> wxBitmap
135 Returns the bitmap for the disabled state.
137 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
139 def GetBitmapFocus(*args
, **kwargs
):
141 GetBitmapFocus() -> wxBitmap
143 Returns the bitmap for the focused state.
145 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
147 def GetBitmapSelected(*args
, **kwargs
):
149 GetBitmapSelected() -> wxBitmap
151 Returns the bitmap for the selected state.
153 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
155 def SetBitmapDisabled(*args
, **kwargs
):
157 SetBitmapDisabled(wxBitmap bitmap)
159 Sets the bitmap for the disabled button appearance.
161 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
163 def SetBitmapFocus(*args
, **kwargs
):
165 SetBitmapFocus(wxBitmap 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(wxBitmap 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(wxBitmap 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, wxString label, Point pos=DefaultPosition,
232 Size size=DefaultSize, long style=0,
233 Validator validator=DefaultValidator,
234 wxString name=wxPyCheckBoxNameStr) -> CheckBox
236 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
237 self
.this
= newobj
.this
240 self
._setOORInfo
(self
)
242 def Create(*args
, **kwargs
):
244 Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
245 Size size=DefaultSize, long style=0,
246 Validator validator=DefaultValidator,
247 wxString name=wxPyCheckBoxNameStr) -> bool
249 return _controls
.CheckBox_Create(*args
, **kwargs
)
251 def GetValue(*args
, **kwargs
):
252 """GetValue() -> bool"""
253 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
255 def IsChecked(*args
, **kwargs
):
256 """IsChecked() -> bool"""
257 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
259 def SetValue(*args
, **kwargs
):
260 """SetValue(bool state)"""
261 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
263 def Get3StateValue(*args
, **kwargs
):
264 """Get3StateValue() -> wxCheckBoxState"""
265 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
267 def Set3StateValue(*args
, **kwargs
):
268 """Set3StateValue(wxCheckBoxState state)"""
269 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
271 def Is3State(*args
, **kwargs
):
272 """Is3State() -> bool"""
273 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
275 def Is3rdStateAllowedForUser(*args
, **kwargs
):
276 """Is3rdStateAllowedForUser() -> bool"""
277 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
280 class CheckBoxPtr(CheckBox
):
281 def __init__(self
, this
):
283 if not hasattr(self
,"thisown"): self
.thisown
= 0
284 self
.__class
__ = CheckBox
285 _controls
.CheckBox_swigregister(CheckBoxPtr
)
287 def PreCheckBox(*args
, **kwargs
):
288 """PreCheckBox() -> CheckBox"""
289 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
293 #---------------------------------------------------------------------------
295 class Choice(core
.ControlWithItems
):
297 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
298 def __init__(self
, *args
, **kwargs
):
300 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
301 int choices=0, wxString choices_array=None,
302 long style=0, Validator validator=DefaultValidator,
303 wxString name=wxPyChoiceNameStr) -> Choice
305 newobj
= _controls
.new_Choice(*args
, **kwargs
)
306 self
.this
= newobj
.this
309 self
._setOORInfo
(self
)
311 def Create(*args
, **kwargs
):
313 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
314 int choices=0, wxString choices_array=None,
315 long style=0, Validator validator=DefaultValidator,
316 wxString name=wxPyChoiceNameStr) -> bool
318 return _controls
.Choice_Create(*args
, **kwargs
)
320 def GetColumns(*args
, **kwargs
):
321 """GetColumns() -> int"""
322 return _controls
.Choice_GetColumns(*args
, **kwargs
)
324 def SetColumns(*args
, **kwargs
):
325 """SetColumns(int n=1)"""
326 return _controls
.Choice_SetColumns(*args
, **kwargs
)
328 def SetSelection(*args
, **kwargs
):
329 """SetSelection(int n)"""
330 return _controls
.Choice_SetSelection(*args
, **kwargs
)
332 def SetStringSelection(*args
, **kwargs
):
333 """SetStringSelection(wxString string)"""
334 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
336 def SetString(*args
, **kwargs
):
337 """SetString(int n, wxString s)"""
338 return _controls
.Choice_SetString(*args
, **kwargs
)
341 class ChoicePtr(Choice
):
342 def __init__(self
, this
):
344 if not hasattr(self
,"thisown"): self
.thisown
= 0
345 self
.__class
__ = Choice
346 _controls
.Choice_swigregister(ChoicePtr
)
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, wxString value=wxPyEmptyString,
362 Point pos=DefaultPosition, Size size=DefaultSize,
363 int choices=0, wxString choices_array=None,
364 long style=0, Validator validator=DefaultValidator,
365 wxString name=wxPyComboBoxNameStr) -> 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, wxString value=wxPyEmptyString,
376 Point pos=DefaultPosition, Size size=DefaultSize,
377 int choices=0, wxString choices_array=None,
378 long style=0, Validator validator=DefaultValidator,
379 wxString name=wxPyComboBoxNameStr) -> bool
381 return _controls
.ComboBox_Create(*args
, **kwargs
)
383 def GetValue(*args
, **kwargs
):
384 """GetValue() -> wxString"""
385 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
387 def SetValue(*args
, **kwargs
):
388 """SetValue(wxString 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, wxString 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
)
447 def PreComboBox(*args
, **kwargs
):
448 """PreComboBox() -> ComboBox"""
449 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
453 #---------------------------------------------------------------------------
455 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
456 GA_VERTICAL
= _controls
.GA_VERTICAL
457 GA_SMOOTH
= _controls
.GA_SMOOTH
458 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
459 class Gauge(core
.Control
):
461 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
462 def __init__(self
, *args
, **kwargs
):
464 __init__(Window parent, int id, int range, Point pos=DefaultPosition,
465 Size size=DefaultSize, long style=GA_HORIZONTAL,
466 Validator validator=DefaultValidator,
467 wxString name=wxPyGaugeNameStr) -> Gauge
469 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
470 self
.this
= newobj
.this
473 self
._setOORInfo
(self
)
475 def Create(*args
, **kwargs
):
477 Create(Window parent, int id, int range, Point pos=DefaultPosition,
478 Size size=DefaultSize, long style=GA_HORIZONTAL,
479 Validator validator=DefaultValidator,
480 wxString name=wxPyGaugeNameStr) -> bool
482 return _controls
.Gauge_Create(*args
, **kwargs
)
484 def SetRange(*args
, **kwargs
):
485 """SetRange(int range)"""
486 return _controls
.Gauge_SetRange(*args
, **kwargs
)
488 def GetRange(*args
, **kwargs
):
489 """GetRange() -> int"""
490 return _controls
.Gauge_GetRange(*args
, **kwargs
)
492 def SetValue(*args
, **kwargs
):
493 """SetValue(int pos)"""
494 return _controls
.Gauge_SetValue(*args
, **kwargs
)
496 def GetValue(*args
, **kwargs
):
497 """GetValue() -> int"""
498 return _controls
.Gauge_GetValue(*args
, **kwargs
)
500 def IsVertical(*args
, **kwargs
):
501 """IsVertical() -> bool"""
502 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
504 def SetShadowWidth(*args
, **kwargs
):
505 """SetShadowWidth(int w)"""
506 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
508 def GetShadowWidth(*args
, **kwargs
):
509 """GetShadowWidth() -> int"""
510 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
512 def SetBezelFace(*args
, **kwargs
):
513 """SetBezelFace(int w)"""
514 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
516 def GetBezelFace(*args
, **kwargs
):
517 """GetBezelFace() -> int"""
518 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
521 class GaugePtr(Gauge
):
522 def __init__(self
, this
):
524 if not hasattr(self
,"thisown"): self
.thisown
= 0
525 self
.__class
__ = Gauge
526 _controls
.Gauge_swigregister(GaugePtr
)
528 def PreGauge(*args
, **kwargs
):
529 """PreGauge() -> Gauge"""
530 val
= _controls
.new_PreGauge(*args
, **kwargs
)
534 #---------------------------------------------------------------------------
536 class StaticBox(core
.Control
):
538 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
539 def __init__(self
, *args
, **kwargs
):
541 __init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
542 Size size=DefaultSize, long style=0,
543 wxString name=wxPyStaticBoxNameStr) -> StaticBox
545 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
546 self
.this
= newobj
.this
549 self
._setOORInfo
(self
)
551 def Create(*args
, **kwargs
):
553 Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
554 Size size=DefaultSize, long style=0,
555 wxString name=wxPyStaticBoxNameStr) -> bool
557 return _controls
.StaticBox_Create(*args
, **kwargs
)
560 class StaticBoxPtr(StaticBox
):
561 def __init__(self
, this
):
563 if not hasattr(self
,"thisown"): self
.thisown
= 0
564 self
.__class
__ = StaticBox
565 _controls
.StaticBox_swigregister(StaticBoxPtr
)
567 def PreStaticBox(*args
, **kwargs
):
568 """PreStaticBox() -> StaticBox"""
569 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
573 #---------------------------------------------------------------------------
575 class StaticLine(core
.Control
):
577 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
578 def __init__(self
, *args
, **kwargs
):
580 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
581 long style=LI_HORIZONTAL,
582 wxString name=wxPyStaticTextNameStr) -> StaticLine
584 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
585 self
.this
= newobj
.this
588 self
._setOORInfo
(self
)
590 def Create(*args
, **kwargs
):
592 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
593 long style=LI_HORIZONTAL,
594 wxString name=wxPyStaticTextNameStr) -> bool
596 return _controls
.StaticLine_Create(*args
, **kwargs
)
598 def IsVertical(*args
, **kwargs
):
599 """IsVertical() -> bool"""
600 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
602 def GetDefaultSize(*args
, **kwargs
):
603 """StaticLine.GetDefaultSize() -> int"""
604 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
606 GetDefaultSize
= staticmethod(GetDefaultSize
)
608 class StaticLinePtr(StaticLine
):
609 def __init__(self
, this
):
611 if not hasattr(self
,"thisown"): self
.thisown
= 0
612 self
.__class
__ = StaticLine
613 _controls
.StaticLine_swigregister(StaticLinePtr
)
615 def PreStaticLine(*args
, **kwargs
):
616 """PreStaticLine() -> StaticLine"""
617 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
621 def StaticLine_GetDefaultSize(*args
, **kwargs
):
622 """StaticLine_GetDefaultSize() -> int"""
623 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
625 #---------------------------------------------------------------------------
627 class StaticText(core
.Control
):
629 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
630 def __init__(self
, *args
, **kwargs
):
632 __init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
633 Size size=DefaultSize, long style=0,
634 wxString name=wxPyStaticTextNameStr) -> StaticText
636 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
637 self
.this
= newobj
.this
640 self
._setOORInfo
(self
)
642 def Create(*args
, **kwargs
):
644 Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
645 Size size=DefaultSize, long style=0,
646 wxString name=wxPyStaticTextNameStr) -> bool
648 return _controls
.StaticText_Create(*args
, **kwargs
)
651 class StaticTextPtr(StaticText
):
652 def __init__(self
, this
):
654 if not hasattr(self
,"thisown"): self
.thisown
= 0
655 self
.__class
__ = StaticText
656 _controls
.StaticText_swigregister(StaticTextPtr
)
658 def PreStaticText(*args
, **kwargs
):
659 """PreStaticText() -> StaticText"""
660 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
664 #---------------------------------------------------------------------------
666 class StaticBitmap(core
.Control
):
668 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
669 def __init__(self
, *args
, **kwargs
):
671 __init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
672 Size size=DefaultSize, long style=0,
673 wxString name=wxPyStaticBitmapNameStr) -> StaticBitmap
675 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
676 self
.this
= newobj
.this
679 def Create(*args
, **kwargs
):
681 Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
682 Size size=DefaultSize, long style=0,
683 wxString name=wxPyStaticBitmapNameStr) -> bool
685 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
687 def GetBitmap(*args
, **kwargs
):
688 """GetBitmap() -> wxBitmap"""
689 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
691 def SetBitmap(*args
, **kwargs
):
692 """SetBitmap(wxBitmap bitmap)"""
693 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
695 def SetIcon(*args
, **kwargs
):
696 """SetIcon(wxIcon icon)"""
697 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
700 class StaticBitmapPtr(StaticBitmap
):
701 def __init__(self
, this
):
703 if not hasattr(self
,"thisown"): self
.thisown
= 0
704 self
.__class
__ = StaticBitmap
705 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
707 def PreStaticBitmap(*args
, **kwargs
):
708 """PreStaticBitmap() -> StaticBitmap"""
709 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
713 #---------------------------------------------------------------------------
715 class ListBox(core
.ControlWithItems
):
717 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
718 def __init__(self
, *args
, **kwargs
):
720 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
721 int choices=0, wxString choices_array=None,
722 long style=0, Validator validator=DefaultValidator,
723 wxString name=wxPyListBoxNameStr) -> ListBox
725 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
726 self
.this
= newobj
.this
729 self
._setOORInfo
(self
)
731 def Create(*args
, **kwargs
):
733 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
734 int choices=0, wxString choices_array=None,
735 long style=0, Validator validator=DefaultValidator,
736 wxString name=wxPyListBoxNameStr) -> bool
738 return _controls
.ListBox_Create(*args
, **kwargs
)
740 def Insert(*args
, **kwargs
):
741 """Insert(wxString item, int pos, PyObject clientData=None)"""
742 return _controls
.ListBox_Insert(*args
, **kwargs
)
744 def InsertItems(*args
, **kwargs
):
745 """InsertItems(wxArrayString items, int pos)"""
746 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
748 def Set(*args
, **kwargs
):
749 """Set(wxArrayString items)"""
750 return _controls
.ListBox_Set(*args
, **kwargs
)
752 def IsSelected(*args
, **kwargs
):
753 """IsSelected(int n) -> bool"""
754 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
756 def SetSelection(*args
, **kwargs
):
757 """SetSelection(int n, bool select=True)"""
758 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
760 def Select(*args
, **kwargs
):
762 return _controls
.ListBox_Select(*args
, **kwargs
)
764 def Deselect(*args
, **kwargs
):
765 """Deselect(int n)"""
766 return _controls
.ListBox_Deselect(*args
, **kwargs
)
768 def DeselectAll(*args
, **kwargs
):
769 """DeselectAll(int itemToLeaveSelected=-1)"""
770 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
772 def SetStringSelection(*args
, **kwargs
):
773 """SetStringSelection(wxString s, bool select=True) -> bool"""
774 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
776 def GetSelections(*args
, **kwargs
):
777 """GetSelections() -> PyObject"""
778 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
780 def SetFirstItem(*args
, **kwargs
):
781 """SetFirstItem(int n)"""
782 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
784 def SetFirstItemStr(*args
, **kwargs
):
785 """SetFirstItemStr(wxString s)"""
786 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
788 def EnsureVisible(*args
, **kwargs
):
789 """EnsureVisible(int n)"""
790 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
792 def AppendAndEnsureVisible(*args
, **kwargs
):
793 """AppendAndEnsureVisible(wxString s)"""
794 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
796 def IsSorted(*args
, **kwargs
):
797 """IsSorted() -> bool"""
798 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
801 class ListBoxPtr(ListBox
):
802 def __init__(self
, this
):
804 if not hasattr(self
,"thisown"): self
.thisown
= 0
805 self
.__class
__ = ListBox
806 _controls
.ListBox_swigregister(ListBoxPtr
)
808 def PreListBox(*args
, **kwargs
):
809 """PreListBox() -> ListBox"""
810 val
= _controls
.new_PreListBox(*args
, **kwargs
)
814 #---------------------------------------------------------------------------
816 class CheckListBox(ListBox
):
818 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
819 def __init__(self
, *args
, **kwargs
):
821 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
822 int choices=0, wxString choices_array=None,
823 long style=0, Validator validator=DefaultValidator,
824 wxString name=wxPyListBoxNameStr) -> CheckListBox
826 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
827 self
.this
= newobj
.this
830 def Create(*args
, **kwargs
):
832 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
833 int choices=0, wxString choices_array=None,
834 long style=0, Validator validator=DefaultValidator,
835 wxString name=wxPyListBoxNameStr) -> bool
837 return _controls
.CheckListBox_Create(*args
, **kwargs
)
839 def IsChecked(*args
, **kwargs
):
840 """IsChecked(int index) -> bool"""
841 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
843 def Check(*args
, **kwargs
):
844 """Check(int index, int check=True)"""
845 return _controls
.CheckListBox_Check(*args
, **kwargs
)
847 def GetItemHeight(*args
, **kwargs
):
848 """GetItemHeight() -> int"""
849 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
851 def HitTest(*args
, **kwargs
):
852 """HitTest(Point pt) -> int"""
853 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
855 def HitTestXY(*args
, **kwargs
):
856 """HitTestXY(int x, int y) -> int"""
857 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
860 class CheckListBoxPtr(CheckListBox
):
861 def __init__(self
, this
):
863 if not hasattr(self
,"thisown"): self
.thisown
= 0
864 self
.__class
__ = CheckListBox
865 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
867 def PreCheckListBox(*args
, **kwargs
):
868 """PreCheckListBox() -> CheckListBox"""
869 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
873 #---------------------------------------------------------------------------
875 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
876 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
877 TE_READONLY
= _controls
.TE_READONLY
878 TE_MULTILINE
= _controls
.TE_MULTILINE
879 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
880 TE_LEFT
= _controls
.TE_LEFT
881 TE_CENTER
= _controls
.TE_CENTER
882 TE_RIGHT
= _controls
.TE_RIGHT
883 TE_CENTRE
= _controls
.TE_CENTRE
884 TE_RICH
= _controls
.TE_RICH
885 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
886 TE_PASSWORD
= _controls
.TE_PASSWORD
887 TE_AUTO_URL
= _controls
.TE_AUTO_URL
888 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
889 TE_DONTWRAP
= _controls
.TE_DONTWRAP
890 TE_LINEWRAP
= _controls
.TE_LINEWRAP
891 TE_WORDWRAP
= _controls
.TE_WORDWRAP
892 TE_RICH2
= _controls
.TE_RICH2
893 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
894 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
895 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
896 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
897 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
898 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
899 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
900 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
901 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
902 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
903 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
904 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
905 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
906 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
907 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
908 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
909 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
910 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
911 class TextAttr(object):
913 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
914 def __init__(self
, *args
):
916 __init__() -> TextAttr
917 __init__(wxColour colText, wxColour colBack=wxNullColour, wxFont font=wxNullFont,
918 wxTextAttrAlignment alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
920 newobj
= _controls
.new_TextAttr(*args
)
921 self
.this
= newobj
.this
924 def Init(*args
, **kwargs
):
926 return _controls
.TextAttr_Init(*args
, **kwargs
)
928 def SetTextColour(*args
, **kwargs
):
929 """SetTextColour(wxColour colText)"""
930 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
932 def SetBackgroundColour(*args
, **kwargs
):
933 """SetBackgroundColour(wxColour colBack)"""
934 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
936 def SetFont(*args
, **kwargs
):
937 """SetFont(wxFont font, long flags=TEXT_ATTR_FONT)"""
938 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
940 def SetAlignment(*args
, **kwargs
):
941 """SetAlignment(wxTextAttrAlignment alignment)"""
942 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
944 def SetTabs(*args
, **kwargs
):
945 """SetTabs(wxArrayInt tabs)"""
946 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
948 def SetLeftIndent(*args
, **kwargs
):
949 """SetLeftIndent(int indent)"""
950 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
952 def SetRightIndent(*args
, **kwargs
):
953 """SetRightIndent(int indent)"""
954 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
956 def SetFlags(*args
, **kwargs
):
957 """SetFlags(long flags)"""
958 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
960 def HasTextColour(*args
, **kwargs
):
961 """HasTextColour() -> bool"""
962 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
964 def HasBackgroundColour(*args
, **kwargs
):
965 """HasBackgroundColour() -> bool"""
966 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
968 def HasFont(*args
, **kwargs
):
969 """HasFont() -> bool"""
970 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
972 def HasAlignment(*args
, **kwargs
):
973 """HasAlignment() -> bool"""
974 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
976 def HasTabs(*args
, **kwargs
):
977 """HasTabs() -> bool"""
978 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
980 def HasLeftIndent(*args
, **kwargs
):
981 """HasLeftIndent() -> bool"""
982 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
984 def HasRightIndent(*args
, **kwargs
):
985 """HasRightIndent() -> bool"""
986 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
988 def HasFlag(*args
, **kwargs
):
989 """HasFlag(long flag) -> bool"""
990 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
992 def GetTextColour(*args
, **kwargs
):
993 """GetTextColour() -> wxColour"""
994 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
996 def GetBackgroundColour(*args
, **kwargs
):
997 """GetBackgroundColour() -> wxColour"""
998 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1000 def GetFont(*args
, **kwargs
):
1001 """GetFont() -> wxFont"""
1002 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1004 def GetAlignment(*args
, **kwargs
):
1005 """GetAlignment() -> wxTextAttrAlignment"""
1006 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1008 def GetTabs(*args
, **kwargs
):
1009 """GetTabs() -> wxArrayInt"""
1010 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1012 def GetLeftIndent(*args
, **kwargs
):
1013 """GetLeftIndent() -> long"""
1014 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1016 def GetRightIndent(*args
, **kwargs
):
1017 """GetRightIndent() -> long"""
1018 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1020 def GetFlags(*args
, **kwargs
):
1021 """GetFlags() -> long"""
1022 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1024 def IsDefault(*args
, **kwargs
):
1025 """IsDefault() -> bool"""
1026 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1028 def Combine(*args
, **kwargs
):
1029 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1030 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1032 Combine
= staticmethod(Combine
)
1034 class TextAttrPtr(TextAttr
):
1035 def __init__(self
, this
):
1037 if not hasattr(self
,"thisown"): self
.thisown
= 0
1038 self
.__class
__ = TextAttr
1039 _controls
.TextAttr_swigregister(TextAttrPtr
)
1041 def TextAttr_Combine(*args
, **kwargs
):
1042 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1043 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1045 class TextCtrl(core
.Control
):
1047 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1048 def __init__(self
, *args
, **kwargs
):
1050 __init__(Window parent, int id, wxString value=wxPyEmptyString,
1051 Point pos=DefaultPosition, Size size=DefaultSize,
1052 long style=0, Validator validator=DefaultValidator,
1053 wxString name=wxPyTextCtrlNameStr) -> TextCtrl
1055 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1056 self
.this
= newobj
.this
1059 self
._setOORInfo
(self
)
1061 def Create(*args
, **kwargs
):
1063 Create(Window parent, int id, wxString value=wxPyEmptyString,
1064 Point pos=DefaultPosition, Size size=DefaultSize,
1065 long style=0, Validator validator=DefaultValidator,
1066 wxString name=wxPyTextCtrlNameStr) -> bool
1068 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1070 def GetValue(*args
, **kwargs
):
1071 """GetValue() -> wxString"""
1072 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1074 def SetValue(*args
, **kwargs
):
1075 """SetValue(wxString value)"""
1076 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1078 def GetRange(*args
, **kwargs
):
1079 """GetRange(long from, long to) -> wxString"""
1080 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1082 def GetLineLength(*args
, **kwargs
):
1083 """GetLineLength(long lineNo) -> int"""
1084 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1086 def GetLineText(*args
, **kwargs
):
1087 """GetLineText(long lineNo) -> wxString"""
1088 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1090 def GetNumberOfLines(*args
, **kwargs
):
1091 """GetNumberOfLines() -> int"""
1092 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1094 def IsModified(*args
, **kwargs
):
1095 """IsModified() -> bool"""
1096 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1098 def IsEditable(*args
, **kwargs
):
1099 """IsEditable() -> bool"""
1100 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1102 def IsSingleLine(*args
, **kwargs
):
1103 """IsSingleLine() -> bool"""
1104 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1106 def IsMultiLine(*args
, **kwargs
):
1107 """IsMultiLine() -> bool"""
1108 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1110 def GetSelection(*args
, **kwargs
):
1112 GetSelection() -> (from, to)
1114 If the return values from and to are the same, there is no selection.
1116 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1118 def GetStringSelection(*args
, **kwargs
):
1119 """GetStringSelection() -> wxString"""
1120 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1122 def Clear(*args
, **kwargs
):
1124 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1126 def Replace(*args
, **kwargs
):
1127 """Replace(long from, long to, wxString value)"""
1128 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1130 def Remove(*args
, **kwargs
):
1131 """Remove(long from, long to)"""
1132 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1134 def LoadFile(*args
, **kwargs
):
1135 """LoadFile(wxString file) -> bool"""
1136 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1138 def SaveFile(*args
, **kwargs
):
1139 """SaveFile(wxString file=wxPyEmptyString) -> bool"""
1140 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1142 def MarkDirty(*args
, **kwargs
):
1144 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1146 def DiscardEdits(*args
, **kwargs
):
1147 """DiscardEdits()"""
1148 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1150 def SetMaxLength(*args
, **kwargs
):
1151 """SetMaxLength(unsigned long len)"""
1152 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1154 def WriteText(*args
, **kwargs
):
1155 """WriteText(wxString text)"""
1156 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1158 def AppendText(*args
, **kwargs
):
1159 """AppendText(wxString text)"""
1160 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1162 def EmulateKeyPress(*args
, **kwargs
):
1163 """EmulateKeyPress(KeyEvent event) -> bool"""
1164 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1166 def SetStyle(*args
, **kwargs
):
1167 """SetStyle(long start, long end, TextAttr style) -> bool"""
1168 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1170 def GetStyle(*args
, **kwargs
):
1171 """GetStyle(long position, TextAttr style) -> bool"""
1172 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1174 def SetDefaultStyle(*args
, **kwargs
):
1175 """SetDefaultStyle(TextAttr style) -> bool"""
1176 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1178 def GetDefaultStyle(*args
, **kwargs
):
1179 """GetDefaultStyle() -> TextAttr"""
1180 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1182 def XYToPosition(*args
, **kwargs
):
1183 """XYToPosition(long x, long y) -> long"""
1184 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1186 def PositionToXY(*args
, **kwargs
):
1187 """PositionToXY(long pos) -> (x, y)"""
1188 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1190 def ShowPosition(*args
, **kwargs
):
1191 """ShowPosition(long pos)"""
1192 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1194 def Copy(*args
, **kwargs
):
1196 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1198 def Cut(*args
, **kwargs
):
1200 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1202 def Paste(*args
, **kwargs
):
1204 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1206 def CanCopy(*args
, **kwargs
):
1207 """CanCopy() -> bool"""
1208 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1210 def CanCut(*args
, **kwargs
):
1211 """CanCut() -> bool"""
1212 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1214 def CanPaste(*args
, **kwargs
):
1215 """CanPaste() -> bool"""
1216 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1218 def Undo(*args
, **kwargs
):
1220 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1222 def Redo(*args
, **kwargs
):
1224 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1226 def CanUndo(*args
, **kwargs
):
1227 """CanUndo() -> bool"""
1228 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1230 def CanRedo(*args
, **kwargs
):
1231 """CanRedo() -> bool"""
1232 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1234 def SetInsertionPoint(*args
, **kwargs
):
1235 """SetInsertionPoint(long pos)"""
1236 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1238 def SetInsertionPointEnd(*args
, **kwargs
):
1239 """SetInsertionPointEnd()"""
1240 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1242 def GetInsertionPoint(*args
, **kwargs
):
1243 """GetInsertionPoint() -> long"""
1244 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1246 def GetLastPosition(*args
, **kwargs
):
1247 """GetLastPosition() -> long"""
1248 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1250 def SetSelection(*args
, **kwargs
):
1251 """SetSelection(long from, long to)"""
1252 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1254 def SelectAll(*args
, **kwargs
):
1256 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1258 def SetEditable(*args
, **kwargs
):
1259 """SetEditable(bool editable)"""
1260 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1262 def ShowNativeCaret(*args
, **kwargs
):
1263 """ShowNativeCaret(bool show=True) -> bool"""
1264 return _controls
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1266 def HideNativeCaret(*args
, **kwargs
):
1267 """HideNativeCaret() -> bool"""
1268 return _controls
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1270 def write(*args
, **kwargs
):
1271 """write(wxString text)"""
1272 return _controls
.TextCtrl_write(*args
, **kwargs
)
1274 def GetString(*args
, **kwargs
):
1275 """GetString(long from, long to) -> wxString"""
1276 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1279 class TextCtrlPtr(TextCtrl
):
1280 def __init__(self
, this
):
1282 if not hasattr(self
,"thisown"): self
.thisown
= 0
1283 self
.__class
__ = TextCtrl
1284 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1286 def PreTextCtrl(*args
, **kwargs
):
1287 """PreTextCtrl() -> TextCtrl"""
1288 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1292 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1293 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1294 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1295 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1296 class TextUrlEvent(core
.CommandEvent
):
1298 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1299 def __init__(self
, *args
, **kwargs
):
1300 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1301 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1302 self
.this
= newobj
.this
1305 def GetMouseEvent(*args
, **kwargs
):
1306 """GetMouseEvent() -> MouseEvent"""
1307 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1309 def GetURLStart(*args
, **kwargs
):
1310 """GetURLStart() -> long"""
1311 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1313 def GetURLEnd(*args
, **kwargs
):
1314 """GetURLEnd() -> long"""
1315 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1318 class TextUrlEventPtr(TextUrlEvent
):
1319 def __init__(self
, this
):
1321 if not hasattr(self
,"thisown"): self
.thisown
= 0
1322 self
.__class
__ = TextUrlEvent
1323 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1325 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1326 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1327 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1328 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1330 #---------------------------------------------------------------------------
1332 class ScrollBar(core
.Control
):
1334 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1335 def __init__(self
, *args
, **kwargs
):
1337 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1338 Size size=DefaultSize, long style=SB_HORIZONTAL,
1339 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> ScrollBar
1341 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1342 self
.this
= newobj
.this
1345 self
._setOORInfo
(self
)
1347 def Create(*args
, **kwargs
):
1349 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1350 Size size=DefaultSize, long style=SB_HORIZONTAL,
1351 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> bool
1353 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1355 def GetThumbPosition(*args
, **kwargs
):
1356 """GetThumbPosition() -> int"""
1357 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1359 def GetThumbSize(*args
, **kwargs
):
1360 """GetThumbSize() -> int"""
1361 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1363 GetThumbLength
= GetThumbSize
1364 def GetPageSize(*args
, **kwargs
):
1365 """GetPageSize() -> int"""
1366 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1368 def GetRange(*args
, **kwargs
):
1369 """GetRange() -> int"""
1370 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1372 def IsVertical(*args
, **kwargs
):
1373 """IsVertical() -> bool"""
1374 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1376 def SetThumbPosition(*args
, **kwargs
):
1377 """SetThumbPosition(int viewStart)"""
1378 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1380 def SetScrollbar(*args
, **kwargs
):
1382 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1385 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1388 class ScrollBarPtr(ScrollBar
):
1389 def __init__(self
, this
):
1391 if not hasattr(self
,"thisown"): self
.thisown
= 0
1392 self
.__class
__ = ScrollBar
1393 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1395 def PreScrollBar(*args
, **kwargs
):
1396 """PreScrollBar() -> ScrollBar"""
1397 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1401 #---------------------------------------------------------------------------
1403 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1404 SP_VERTICAL
= _controls
.SP_VERTICAL
1405 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1406 SP_WRAP
= _controls
.SP_WRAP
1407 class SpinButton(core
.Control
):
1409 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1410 def __init__(self
, *args
, **kwargs
):
1412 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1413 Size size=DefaultSize, long style=SP_HORIZONTAL,
1414 wxString name=wxPySPIN_BUTTON_NAME) -> SpinButton
1416 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1417 self
.this
= newobj
.this
1420 self
._setOORInfo
(self
)
1422 def Create(*args
, **kwargs
):
1424 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1425 Size size=DefaultSize, long style=SP_HORIZONTAL,
1426 wxString name=wxPySPIN_BUTTON_NAME) -> bool
1428 return _controls
.SpinButton_Create(*args
, **kwargs
)
1430 def GetValue(*args
, **kwargs
):
1431 """GetValue() -> int"""
1432 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1434 def GetMin(*args
, **kwargs
):
1435 """GetMin() -> int"""
1436 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1438 def GetMax(*args
, **kwargs
):
1439 """GetMax() -> int"""
1440 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1442 def SetValue(*args
, **kwargs
):
1443 """SetValue(int val)"""
1444 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1446 def SetMin(*args
, **kwargs
):
1447 """SetMin(int minVal)"""
1448 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1450 def SetMax(*args
, **kwargs
):
1451 """SetMax(int maxVal)"""
1452 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1454 def SetRange(*args
, **kwargs
):
1455 """SetRange(int minVal, int maxVal)"""
1456 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1458 def IsVertical(*args
, **kwargs
):
1459 """IsVertical() -> bool"""
1460 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1463 class SpinButtonPtr(SpinButton
):
1464 def __init__(self
, this
):
1466 if not hasattr(self
,"thisown"): self
.thisown
= 0
1467 self
.__class
__ = SpinButton
1468 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1470 def PreSpinButton(*args
, **kwargs
):
1471 """PreSpinButton() -> SpinButton"""
1472 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1476 class SpinCtrl(core
.Control
):
1478 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1479 def __init__(self
, *args
, **kwargs
):
1481 __init__(Window parent, int id=-1, wxString value=wxPyEmptyString,
1482 Point pos=DefaultPosition, Size size=DefaultSize,
1483 long style=SP_ARROW_KEYS, int min=0,
1484 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> SpinCtrl
1486 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1487 self
.this
= newobj
.this
1490 self
._setOORInfo
(self
)
1492 def Create(*args
, **kwargs
):
1494 Create(Window parent, int id=-1, wxString value=wxPyEmptyString,
1495 Point pos=DefaultPosition, Size size=DefaultSize,
1496 long style=SP_ARROW_KEYS, int min=0,
1497 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> bool
1499 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1501 def GetValue(*args
, **kwargs
):
1502 """GetValue() -> int"""
1503 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1505 def SetValue(*args
, **kwargs
):
1506 """SetValue(int value)"""
1507 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1509 def SetValueString(*args
, **kwargs
):
1510 """SetValueString(wxString text)"""
1511 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1513 def SetRange(*args
, **kwargs
):
1514 """SetRange(int minVal, int maxVal)"""
1515 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1517 def GetMin(*args
, **kwargs
):
1518 """GetMin() -> int"""
1519 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1521 def GetMax(*args
, **kwargs
):
1522 """GetMax() -> int"""
1523 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1525 def SetSelection(*args
, **kwargs
):
1526 """SetSelection(long from, long to)"""
1527 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1530 class SpinCtrlPtr(SpinCtrl
):
1531 def __init__(self
, this
):
1533 if not hasattr(self
,"thisown"): self
.thisown
= 0
1534 self
.__class
__ = SpinCtrl
1535 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1537 def PreSpinCtrl(*args
, **kwargs
):
1538 """PreSpinCtrl() -> SpinCtrl"""
1539 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1543 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1544 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1546 #---------------------------------------------------------------------------
1548 class RadioBox(core
.Control
):
1550 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1551 def __init__(self
, *args
, **kwargs
):
1553 __init__(Window parent, int id, wxString label, Point point=DefaultPosition,
1554 Size size=DefaultSize, int choices=0,
1555 wxString choices_array=None, int majorDimension=0,
1556 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1557 wxString name=wxPyRadioBoxNameStr) -> RadioBox
1559 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1560 self
.this
= newobj
.this
1563 self
._setOORInfo
(self
)
1565 def Create(*args
, **kwargs
):
1567 Create(Window parent, int id, wxString label, Point point=DefaultPosition,
1568 Size size=DefaultSize, int choices=0,
1569 wxString choices_array=None, int majorDimension=0,
1570 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1571 wxString name=wxPyRadioBoxNameStr) -> bool
1573 return _controls
.RadioBox_Create(*args
, **kwargs
)
1575 def SetSelection(*args
, **kwargs
):
1576 """SetSelection(int n)"""
1577 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1579 def GetSelection(*args
, **kwargs
):
1580 """GetSelection() -> int"""
1581 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1583 def GetStringSelection(*args
, **kwargs
):
1584 """GetStringSelection() -> wxString"""
1585 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1587 def SetStringSelection(*args
, **kwargs
):
1588 """SetStringSelection(wxString s) -> bool"""
1589 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1591 def GetCount(*args
, **kwargs
):
1592 """GetCount() -> int"""
1593 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1595 def FindString(*args
, **kwargs
):
1596 """FindString(wxString s) -> int"""
1597 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1599 def GetString(*args
, **kwargs
):
1600 """GetString(int n) -> wxString"""
1601 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1603 def SetString(*args
, **kwargs
):
1604 """SetString(int n, wxString label)"""
1605 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1607 GetItemLabel
= GetString
1608 SetItemLabel
= SetString
1609 def EnableItem(*args
, **kwargs
):
1610 """EnableItem(int n, bool enable=True)"""
1611 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1613 def ShowItem(*args
, **kwargs
):
1614 """ShowItem(int n, bool show=True)"""
1615 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1617 def GetColumnCount(*args
, **kwargs
):
1618 """GetColumnCount() -> int"""
1619 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1621 def GetRowCount(*args
, **kwargs
):
1622 """GetRowCount() -> int"""
1623 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1625 def GetNextItem(*args
, **kwargs
):
1626 """GetNextItem(int item, wxDirection dir, long style) -> int"""
1627 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1630 class RadioBoxPtr(RadioBox
):
1631 def __init__(self
, this
):
1633 if not hasattr(self
,"thisown"): self
.thisown
= 0
1634 self
.__class
__ = RadioBox
1635 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1637 def PreRadioBox(*args
, **kwargs
):
1638 """PreRadioBox() -> RadioBox"""
1639 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1643 #---------------------------------------------------------------------------
1645 class RadioButton(core
.Control
):
1647 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1648 def __init__(self
, *args
, **kwargs
):
1650 __init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1651 Size size=DefaultSize, long style=0,
1652 Validator validator=DefaultValidator,
1653 wxString name=wxPyRadioButtonNameStr) -> RadioButton
1655 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1656 self
.this
= newobj
.this
1659 self
._setOORInfo
(self
)
1661 def Create(*args
, **kwargs
):
1663 Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1664 Size size=DefaultSize, long style=0,
1665 Validator validator=DefaultValidator,
1666 wxString name=wxPyRadioButtonNameStr) -> bool
1668 return _controls
.RadioButton_Create(*args
, **kwargs
)
1670 def GetValue(*args
, **kwargs
):
1671 """GetValue() -> bool"""
1672 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1674 def SetValue(*args
, **kwargs
):
1675 """SetValue(bool value)"""
1676 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1679 class RadioButtonPtr(RadioButton
):
1680 def __init__(self
, this
):
1682 if not hasattr(self
,"thisown"): self
.thisown
= 0
1683 self
.__class
__ = RadioButton
1684 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1686 def PreRadioButton(*args
, **kwargs
):
1687 """PreRadioButton() -> RadioButton"""
1688 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1692 #---------------------------------------------------------------------------
1694 class Slider(core
.Control
):
1696 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1697 def __init__(self
, *args
, **kwargs
):
1699 __init__(Window parent, int id, int value, int minValue, int maxValue,
1700 Point point=DefaultPosition, Size size=DefaultSize,
1701 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1702 wxString name=wxPySliderNameStr) -> Slider
1704 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1705 self
.this
= newobj
.this
1708 self
._setOORInfo
(self
)
1710 def Create(*args
, **kwargs
):
1712 Create(Window parent, int id, int value, int minValue, int maxValue,
1713 Point point=DefaultPosition, Size size=DefaultSize,
1714 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1715 wxString name=wxPySliderNameStr) -> bool
1717 return _controls
.Slider_Create(*args
, **kwargs
)
1719 def GetValue(*args
, **kwargs
):
1720 """GetValue() -> int"""
1721 return _controls
.Slider_GetValue(*args
, **kwargs
)
1723 def SetValue(*args
, **kwargs
):
1724 """SetValue(int value)"""
1725 return _controls
.Slider_SetValue(*args
, **kwargs
)
1727 def SetRange(*args
, **kwargs
):
1728 """SetRange(int minValue, int maxValue)"""
1729 return _controls
.Slider_SetRange(*args
, **kwargs
)
1731 def GetMin(*args
, **kwargs
):
1732 """GetMin() -> int"""
1733 return _controls
.Slider_GetMin(*args
, **kwargs
)
1735 def GetMax(*args
, **kwargs
):
1736 """GetMax() -> int"""
1737 return _controls
.Slider_GetMax(*args
, **kwargs
)
1739 def SetMin(*args
, **kwargs
):
1740 """SetMin(int minValue)"""
1741 return _controls
.Slider_SetMin(*args
, **kwargs
)
1743 def SetMax(*args
, **kwargs
):
1744 """SetMax(int maxValue)"""
1745 return _controls
.Slider_SetMax(*args
, **kwargs
)
1747 def SetLineSize(*args
, **kwargs
):
1748 """SetLineSize(int lineSize)"""
1749 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1751 def SetPageSize(*args
, **kwargs
):
1752 """SetPageSize(int pageSize)"""
1753 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1755 def GetLineSize(*args
, **kwargs
):
1756 """GetLineSize() -> int"""
1757 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1759 def GetPageSize(*args
, **kwargs
):
1760 """GetPageSize() -> int"""
1761 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1763 def SetThumbLength(*args
, **kwargs
):
1764 """SetThumbLength(int lenPixels)"""
1765 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1767 def GetThumbLength(*args
, **kwargs
):
1768 """GetThumbLength() -> int"""
1769 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1771 def SetTickFreq(*args
, **kwargs
):
1772 """SetTickFreq(int n, int pos)"""
1773 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1775 def GetTickFreq(*args
, **kwargs
):
1776 """GetTickFreq() -> int"""
1777 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1779 def ClearTicks(*args
, **kwargs
):
1781 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1783 def SetTick(*args
, **kwargs
):
1784 """SetTick(int tickPos)"""
1785 return _controls
.Slider_SetTick(*args
, **kwargs
)
1787 def ClearSel(*args
, **kwargs
):
1789 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1791 def GetSelEnd(*args
, **kwargs
):
1792 """GetSelEnd() -> int"""
1793 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1795 def GetSelStart(*args
, **kwargs
):
1796 """GetSelStart() -> int"""
1797 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1799 def SetSelection(*args
, **kwargs
):
1800 """SetSelection(int min, int max)"""
1801 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1804 class SliderPtr(Slider
):
1805 def __init__(self
, this
):
1807 if not hasattr(self
,"thisown"): self
.thisown
= 0
1808 self
.__class
__ = Slider
1809 _controls
.Slider_swigregister(SliderPtr
)
1811 def PreSlider(*args
, **kwargs
):
1812 """PreSlider() -> Slider"""
1813 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1817 #---------------------------------------------------------------------------
1819 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1820 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1822 class ToggleButton(core
.Control
):
1824 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1825 def __init__(self
, *args
, **kwargs
):
1827 __init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1828 Size size=DefaultSize, long style=0,
1829 Validator validator=DefaultValidator,
1830 wxString name=wxPyToggleButtonNameStr) -> ToggleButton
1832 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1833 self
.this
= newobj
.this
1836 self
._setOORInfo
(self
)
1838 def Create(*args
, **kwargs
):
1840 Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1841 Size size=DefaultSize, long style=0,
1842 Validator validator=DefaultValidator,
1843 wxString name=wxPyToggleButtonNameStr) -> bool
1845 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1847 def SetValue(*args
, **kwargs
):
1848 """SetValue(bool value)"""
1849 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1851 def GetValue(*args
, **kwargs
):
1852 """GetValue() -> bool"""
1853 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1855 def SetLabel(*args
, **kwargs
):
1856 """SetLabel(wxString label)"""
1857 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1860 class ToggleButtonPtr(ToggleButton
):
1861 def __init__(self
, this
):
1863 if not hasattr(self
,"thisown"): self
.thisown
= 0
1864 self
.__class
__ = ToggleButton
1865 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1867 def PreToggleButton(*args
, **kwargs
):
1868 """PreToggleButton() -> ToggleButton"""
1869 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1873 #---------------------------------------------------------------------------
1875 class BookCtrl(core
.Control
):
1876 def __init__(self
): raise RuntimeError, "No constructor defined"
1878 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1879 def GetPageCount(*args
, **kwargs
):
1880 """GetPageCount() -> size_t"""
1881 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1883 def GetPage(*args
, **kwargs
):
1884 """GetPage(size_t n) -> Window"""
1885 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1887 def GetSelection(*args
, **kwargs
):
1888 """GetSelection() -> int"""
1889 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1891 def SetPageText(*args
, **kwargs
):
1892 """SetPageText(size_t n, wxString strText) -> bool"""
1893 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1895 def GetPageText(*args
, **kwargs
):
1896 """GetPageText(size_t n) -> wxString"""
1897 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1899 def SetImageList(*args
, **kwargs
):
1900 """SetImageList(wxImageList imageList)"""
1901 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1903 def AssignImageList(*args
, **kwargs
):
1904 """AssignImageList(wxImageList imageList)"""
1905 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1909 def GetImageList(*args
, **kwargs
):
1910 """GetImageList() -> wxImageList"""
1911 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1913 def GetPageImage(*args
, **kwargs
):
1914 """GetPageImage(size_t n) -> int"""
1915 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1917 def SetPageImage(*args
, **kwargs
):
1918 """SetPageImage(size_t n, int imageId) -> bool"""
1919 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1921 def SetPageSize(*args
, **kwargs
):
1922 """SetPageSize(Size size)"""
1923 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1925 def CalcSizeFromPage(*args
, **kwargs
):
1926 """CalcSizeFromPage(Size sizePage) -> Size"""
1927 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1929 def DeletePage(*args
, **kwargs
):
1930 """DeletePage(size_t n) -> bool"""
1931 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1933 def RemovePage(*args
, **kwargs
):
1934 """RemovePage(size_t n) -> bool"""
1935 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1937 def DeleteAllPages(*args
, **kwargs
):
1938 """DeleteAllPages() -> bool"""
1939 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1941 def AddPage(*args
, **kwargs
):
1942 """AddPage(Window page, wxString text, bool select=False, int imageId=-1) -> bool"""
1943 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1945 def InsertPage(*args
, **kwargs
):
1947 InsertPage(size_t n, Window page, wxString text, bool select=False,
1948 int imageId=-1) -> bool
1950 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1952 def SetSelection(*args
, **kwargs
):
1953 """SetSelection(size_t n) -> int"""
1954 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1956 def AdvanceSelection(*args
, **kwargs
):
1957 """AdvanceSelection(bool forward=True)"""
1958 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1961 class BookCtrlPtr(BookCtrl
):
1962 def __init__(self
, this
):
1964 if not hasattr(self
,"thisown"): self
.thisown
= 0
1965 self
.__class
__ = BookCtrl
1966 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1968 class BookCtrlEvent(core
.NotifyEvent
):
1970 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1971 def __init__(self
, *args
, **kwargs
):
1973 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1974 int nOldSel=-1) -> BookCtrlEvent
1976 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1977 self
.this
= newobj
.this
1980 def GetSelection(*args
, **kwargs
):
1981 """GetSelection() -> int"""
1982 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1984 def SetSelection(*args
, **kwargs
):
1985 """SetSelection(int nSel)"""
1986 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
1988 def GetOldSelection(*args
, **kwargs
):
1989 """GetOldSelection() -> int"""
1990 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
1992 def SetOldSelection(*args
, **kwargs
):
1993 """SetOldSelection(int nOldSel)"""
1994 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
1997 class BookCtrlEventPtr(BookCtrlEvent
):
1998 def __init__(self
, this
):
2000 if not hasattr(self
,"thisown"): self
.thisown
= 0
2001 self
.__class
__ = BookCtrlEvent
2002 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2004 #---------------------------------------------------------------------------
2006 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2007 NB_TOP
= _controls
.NB_TOP
2008 NB_LEFT
= _controls
.NB_LEFT
2009 NB_RIGHT
= _controls
.NB_RIGHT
2010 NB_BOTTOM
= _controls
.NB_BOTTOM
2011 NB_MULTILINE
= _controls
.NB_MULTILINE
2012 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2013 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2014 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2015 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2016 class Notebook(BookCtrl
):
2018 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2019 def __init__(self
, *args
, **kwargs
):
2021 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2022 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> Notebook
2024 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2025 self
.this
= newobj
.this
2028 self
._setOORInfo
(self
)
2030 def Create(*args
, **kwargs
):
2032 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2033 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> bool
2035 return _controls
.Notebook_Create(*args
, **kwargs
)
2037 def GetRowCount(*args
, **kwargs
):
2038 """GetRowCount() -> int"""
2039 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2041 def SetPadding(*args
, **kwargs
):
2042 """SetPadding(Size padding)"""
2043 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2045 def SetTabSize(*args
, **kwargs
):
2046 """SetTabSize(Size sz)"""
2047 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2049 def HitTest(*args
, **kwargs
):
2051 HitTest(Point pt) -> (tab, where)
2053 Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.
2055 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2057 def CalcSizeFromPage(*args
, **kwargs
):
2058 """CalcSizeFromPage(Size sizePage) -> Size"""
2059 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2061 def ApplyThemeBackground(*args
, **kwargs
):
2062 """ApplyThemeBackground(Window window, wxColour colour)"""
2063 return _controls
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
2066 class NotebookPtr(Notebook
):
2067 def __init__(self
, this
):
2069 if not hasattr(self
,"thisown"): self
.thisown
= 0
2070 self
.__class
__ = Notebook
2071 _controls
.Notebook_swigregister(NotebookPtr
)
2073 def PreNotebook(*args
, **kwargs
):
2074 """PreNotebook() -> Notebook"""
2075 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2079 class NotebookEvent(BookCtrlEvent
):
2081 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2082 def __init__(self
, *args
, **kwargs
):
2084 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2085 int nOldSel=-1) -> NotebookEvent
2087 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2088 self
.this
= newobj
.this
2092 class NotebookEventPtr(NotebookEvent
):
2093 def __init__(self
, this
):
2095 if not hasattr(self
,"thisown"): self
.thisown
= 0
2096 self
.__class
__ = NotebookEvent
2097 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2099 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2100 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2102 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2103 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2105 #----------------------------------------------------------------------------
2107 class NotebookPage(wx
.Panel
):
2109 There is an old (and apparently unsolvable) bug when placing a
2110 window with a nonstandard background colour in a wxNotebook on
2111 wxGTK, as the notbooks's background colour would always be used
2112 when the window is refreshed. The solution is to place a panel in
2113 the notbook and the coloured window on the panel, sized to cover
2114 the panel. This simple class does that for you, just put an
2115 instance of this in the notebook and make your regular window a
2116 child of this one and it will handle the resize for you.
2118 def __init__(self
, parent
, id=-1,
2119 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2120 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2121 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2123 EVT_SIZE(self
, self
.OnSize
)
2125 def OnSize(self
, evt
):
2126 if self
.child
is None:
2127 children
= self
.GetChildren()
2129 self
.child
= children
[0]
2131 self
.child
.SetPosition((0,0))
2132 self
.child
.SetSize(self
.GetSize())
2135 #---------------------------------------------------------------------------
2137 LB_DEFAULT
= _controls
.LB_DEFAULT
2138 LB_TOP
= _controls
.LB_TOP
2139 LB_BOTTOM
= _controls
.LB_BOTTOM
2140 LB_LEFT
= _controls
.LB_LEFT
2141 LB_RIGHT
= _controls
.LB_RIGHT
2142 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2143 class Listbook(BookCtrl
):
2145 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2146 def __init__(self
, *args
, **kwargs
):
2148 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2149 long style=0, wxString name=wxPyEmptyString) -> Listbook
2151 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2152 self
.this
= newobj
.this
2155 self
._setOORInfo
(self
)
2157 def Create(*args
, **kwargs
):
2159 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2160 long style=0, wxString name=wxPyEmptyString) -> bool
2162 return _controls
.Listbook_Create(*args
, **kwargs
)
2164 def IsVertical(*args
, **kwargs
):
2165 """IsVertical() -> bool"""
2166 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2169 class ListbookPtr(Listbook
):
2170 def __init__(self
, this
):
2172 if not hasattr(self
,"thisown"): self
.thisown
= 0
2173 self
.__class
__ = Listbook
2174 _controls
.Listbook_swigregister(ListbookPtr
)
2176 def PreListbook(*args
, **kwargs
):
2177 """PreListbook() -> Listbook"""
2178 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2182 class ListbookEvent(BookCtrlEvent
):
2184 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2185 def __init__(self
, *args
, **kwargs
):
2187 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2188 int nOldSel=-1) -> ListbookEvent
2190 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2191 self
.this
= newobj
.this
2195 class ListbookEventPtr(ListbookEvent
):
2196 def __init__(self
, this
):
2198 if not hasattr(self
,"thisown"): self
.thisown
= 0
2199 self
.__class
__ = ListbookEvent
2200 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2202 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2203 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2204 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2205 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2207 #---------------------------------------------------------------------------
2209 class BookCtrlSizer(core
.Sizer
):
2211 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2212 def __init__(self
, *args
, **kwargs
):
2213 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2214 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2215 self
.this
= newobj
.this
2218 self
._setOORInfo
(self
)
2220 def RecalcSizes(*args
, **kwargs
):
2222 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2224 def CalcMin(*args
, **kwargs
):
2225 """CalcMin() -> Size"""
2226 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2228 def GetControl(*args
, **kwargs
):
2229 """GetControl() -> BookCtrl"""
2230 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2233 class BookCtrlSizerPtr(BookCtrlSizer
):
2234 def __init__(self
, this
):
2236 if not hasattr(self
,"thisown"): self
.thisown
= 0
2237 self
.__class
__ = BookCtrlSizer
2238 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2240 class NotebookSizer(core
.Sizer
):
2242 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2243 def __init__(self
, *args
, **kwargs
):
2244 """__init__(Notebook nb) -> NotebookSizer"""
2245 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2246 self
.this
= newobj
.this
2249 self
._setOORInfo
(self
)
2251 def RecalcSizes(*args
, **kwargs
):
2253 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2255 def CalcMin(*args
, **kwargs
):
2256 """CalcMin() -> Size"""
2257 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2259 def GetNotebook(*args
, **kwargs
):
2260 """GetNotebook() -> Notebook"""
2261 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2264 class NotebookSizerPtr(NotebookSizer
):
2265 def __init__(self
, this
):
2267 if not hasattr(self
,"thisown"): self
.thisown
= 0
2268 self
.__class
__ = NotebookSizer
2269 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2271 #---------------------------------------------------------------------------
2273 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2274 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2275 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2276 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2277 TB_VERTICAL
= _controls
.TB_VERTICAL
2278 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2279 TB_FLAT
= _controls
.TB_FLAT
2280 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2281 TB_NOICONS
= _controls
.TB_NOICONS
2282 TB_TEXT
= _controls
.TB_TEXT
2283 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2284 TB_NOALIGN
= _controls
.TB_NOALIGN
2285 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2286 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2287 class ToolBarToolBase(core
.Object
):
2288 def __init__(self
): raise RuntimeError, "No constructor defined"
2290 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2291 def GetId(*args
, **kwargs
):
2292 """GetId() -> int"""
2293 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2295 def GetControl(*args
, **kwargs
):
2296 """GetControl() -> Control"""
2297 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2299 def GetToolBar(*args
, **kwargs
):
2300 """GetToolBar() -> ToolBarBase"""
2301 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2303 def IsButton(*args
, **kwargs
):
2304 """IsButton() -> int"""
2305 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2307 def IsControl(*args
, **kwargs
):
2308 """IsControl() -> int"""
2309 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2311 def IsSeparator(*args
, **kwargs
):
2312 """IsSeparator() -> int"""
2313 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2315 def GetStyle(*args
, **kwargs
):
2316 """GetStyle() -> int"""
2317 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2319 def GetKind(*args
, **kwargs
):
2320 """GetKind() -> wxItemKind"""
2321 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2323 def IsEnabled(*args
, **kwargs
):
2324 """IsEnabled() -> bool"""
2325 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2327 def IsToggled(*args
, **kwargs
):
2328 """IsToggled() -> bool"""
2329 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2331 def CanBeToggled(*args
, **kwargs
):
2332 """CanBeToggled() -> bool"""
2333 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2335 def GetNormalBitmap(*args
, **kwargs
):
2336 """GetNormalBitmap() -> wxBitmap"""
2337 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2339 def GetDisabledBitmap(*args
, **kwargs
):
2340 """GetDisabledBitmap() -> wxBitmap"""
2341 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2343 def GetBitmap(*args
, **kwargs
):
2344 """GetBitmap() -> wxBitmap"""
2345 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2347 def GetLabel(*args
, **kwargs
):
2348 """GetLabel() -> wxString"""
2349 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2351 def GetShortHelp(*args
, **kwargs
):
2352 """GetShortHelp() -> wxString"""
2353 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2355 def GetLongHelp(*args
, **kwargs
):
2356 """GetLongHelp() -> wxString"""
2357 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2359 def Enable(*args
, **kwargs
):
2360 """Enable(bool enable) -> bool"""
2361 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2363 def Toggle(*args
, **kwargs
):
2365 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2367 def SetToggle(*args
, **kwargs
):
2368 """SetToggle(bool toggle) -> bool"""
2369 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2371 def SetShortHelp(*args
, **kwargs
):
2372 """SetShortHelp(wxString help) -> bool"""
2373 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2375 def SetLongHelp(*args
, **kwargs
):
2376 """SetLongHelp(wxString help) -> bool"""
2377 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2379 def SetNormalBitmap(*args
, **kwargs
):
2380 """SetNormalBitmap(wxBitmap bmp)"""
2381 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2383 def SetDisabledBitmap(*args
, **kwargs
):
2384 """SetDisabledBitmap(wxBitmap bmp)"""
2385 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2387 def SetLabel(*args
, **kwargs
):
2388 """SetLabel(wxString label)"""
2389 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2391 def Detach(*args
, **kwargs
):
2393 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2395 def Attach(*args
, **kwargs
):
2396 """Attach(ToolBarBase tbar)"""
2397 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2399 def GetClientData(*args
, **kwargs
):
2400 """GetClientData() -> PyObject"""
2401 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2403 def SetClientData(*args
, **kwargs
):
2404 """SetClientData(PyObject clientData)"""
2405 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2407 GetBitmap1
= GetNormalBitmap
2408 GetBitmap2
= GetDisabledBitmap
2409 SetBitmap1
= SetNormalBitmap
2410 SetBitmap2
= SetDisabledBitmap
2413 class ToolBarToolBasePtr(ToolBarToolBase
):
2414 def __init__(self
, this
):
2416 if not hasattr(self
,"thisown"): self
.thisown
= 0
2417 self
.__class
__ = ToolBarToolBase
2418 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2420 class ToolBarBase(core
.Control
):
2421 def __init__(self
): raise RuntimeError, "No constructor defined"
2423 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2424 def DoAddTool(*args
, **kwargs
):
2426 DoAddTool(int id, wxString label, wxBitmap bitmap, wxBitmap bmpDisabled=wxNullBitmap,
2427 wxItemKind kind=ITEM_NORMAL,
2428 wxString shortHelp=wxPyEmptyString,
2429 wxString longHelp=wxPyEmptyString, PyObject clientData=None) -> ToolBarToolBase
2431 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2433 def DoInsertTool(*args
, **kwargs
):
2435 DoInsertTool(size_t pos, int id, wxString label, wxBitmap bitmap,
2436 wxBitmap bmpDisabled=wxNullBitmap, wxItemKind kind=ITEM_NORMAL,
2437 wxString shortHelp=wxPyEmptyString,
2438 wxString longHelp=wxPyEmptyString,
2439 PyObject clientData=None) -> ToolBarToolBase
2441 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2443 # These match the original Add methods for this class, kept for
2444 # backwards compatibility with versions < 2.3.3.
2447 def AddTool(self
, id, bitmap
,
2448 pushedBitmap
= wx
.NullBitmap
,
2451 shortHelpString
= '',
2452 longHelpString
= '') :
2453 '''Old style method to add a tool to the toolbar.'''
2454 kind
= wx
.ITEM_NORMAL
2455 if isToggle
: kind
= wx
.ITEM_CHECK
2456 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2457 shortHelpString
, longHelpString
, clientData
)
2459 def AddSimpleTool(self
, id, bitmap
,
2460 shortHelpString
= '',
2461 longHelpString
= '',
2463 '''Old style method to add a tool to the toolbar.'''
2464 kind
= wx
.ITEM_NORMAL
2465 if isToggle
: kind
= wx
.ITEM_CHECK
2466 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2467 shortHelpString
, longHelpString
, None)
2469 def InsertTool(self
, pos
, id, bitmap
,
2470 pushedBitmap
= wx
.NullBitmap
,
2473 shortHelpString
= '',
2474 longHelpString
= ''):
2475 '''Old style method to insert a tool in the toolbar.'''
2476 kind
= wx
.ITEM_NORMAL
2477 if isToggle
: kind
= wx
.ITEM_CHECK
2478 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2479 shortHelpString
, longHelpString
, clientData
)
2481 def InsertSimpleTool(self
, pos
, id, bitmap
,
2482 shortHelpString
= '',
2483 longHelpString
= '',
2485 '''Old style method to insert a tool in the toolbar.'''
2486 kind
= wx
.ITEM_NORMAL
2487 if isToggle
: kind
= wx
.ITEM_CHECK
2488 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2489 shortHelpString
, longHelpString
, None)
2492 # The following are the new toolbar Add methods starting with
2493 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2494 # able to keep backwards compatibility with using the above
2495 # methods. Eventually these should migrate to be the methods used
2496 # primarily and lose the 'Label' in the name...
2498 def AddLabelTool(self
, id, label
, bitmap
,
2499 bmpDisabled
= wx
.NullBitmap
,
2500 kind
= wx
.ITEM_NORMAL
,
2501 shortHelp
= '', longHelp
= '',
2504 The full AddTool() function.
2506 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2507 is created and used as the disabled image.
2509 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2510 shortHelp
, longHelp
, clientData
)
2513 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2514 bmpDisabled
= wx
.NullBitmap
,
2515 kind
= wx
.ITEM_NORMAL
,
2516 shortHelp
= '', longHelp
= '',
2519 Insert the new tool at the given position, if pos == GetToolsCount(), it
2520 is equivalent to AddTool()
2522 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2523 shortHelp
, longHelp
, clientData
)
2525 def AddCheckLabelTool(self
, id, label
, bitmap
,
2526 bmpDisabled
= wx
.NullBitmap
,
2527 shortHelp
= '', longHelp
= '',
2529 '''Add a check tool, i.e. a tool which can be toggled'''
2530 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2531 shortHelp
, longHelp
, clientData
)
2533 def AddRadioLabelTool(self
, id, label
, bitmap
,
2534 bmpDisabled
= wx
.NullBitmap
,
2535 shortHelp
= '', longHelp
= '',
2538 Add a radio tool, i.e. a tool which can be toggled and releases any
2539 other toggled radio tools in the same group when it happens
2541 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2542 shortHelp
, longHelp
, clientData
)
2545 # For consistency with the backwards compatible methods above, here are
2546 # some non-'Label' versions of the Check and Radio methods
2547 def AddCheckTool(self
, id, bitmap
,
2548 bmpDisabled
= wx
.NullBitmap
,
2549 shortHelp
= '', longHelp
= '',
2551 '''Add a check tool, i.e. a tool which can be toggled'''
2552 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2553 shortHelp
, longHelp
, clientData
)
2555 def AddRadioTool(self
, id, bitmap
,
2556 bmpDisabled
= wx
.NullBitmap
,
2557 shortHelp
= '', longHelp
= '',
2560 Add a radio tool, i.e. a tool which can be toggled and releases any
2561 other toggled radio tools in the same group when it happens
2563 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2564 shortHelp
, longHelp
, clientData
)
2566 def AddControl(*args
, **kwargs
):
2567 """AddControl(Control control) -> ToolBarToolBase"""
2568 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2570 def InsertControl(*args
, **kwargs
):
2571 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2572 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2574 def FindControl(*args
, **kwargs
):
2575 """FindControl(int id) -> Control"""
2576 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2578 def AddSeparator(*args
, **kwargs
):
2579 """AddSeparator() -> ToolBarToolBase"""
2580 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2582 def InsertSeparator(*args
, **kwargs
):
2583 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2584 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2586 def RemoveTool(*args
, **kwargs
):
2587 """RemoveTool(int id) -> ToolBarToolBase"""
2588 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2590 def DeleteToolByPos(*args
, **kwargs
):
2591 """DeleteToolByPos(size_t pos) -> bool"""
2592 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2594 def DeleteTool(*args
, **kwargs
):
2595 """DeleteTool(int id) -> bool"""
2596 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2598 def ClearTools(*args
, **kwargs
):
2600 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2602 def Realize(*args
, **kwargs
):
2603 """Realize() -> bool"""
2604 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2606 def EnableTool(*args
, **kwargs
):
2607 """EnableTool(int id, bool enable)"""
2608 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2610 def ToggleTool(*args
, **kwargs
):
2611 """ToggleTool(int id, bool toggle)"""
2612 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2614 def SetToggle(*args
, **kwargs
):
2615 """SetToggle(int id, bool toggle)"""
2616 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2618 def GetToolClientData(*args
, **kwargs
):
2619 """GetToolClientData(int id) -> PyObject"""
2620 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2622 def SetToolClientData(*args
, **kwargs
):
2623 """SetToolClientData(int id, PyObject clientData)"""
2624 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2626 def GetToolPos(*args
, **kwargs
):
2627 """GetToolPos(int id) -> int"""
2628 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2630 def GetToolState(*args
, **kwargs
):
2631 """GetToolState(int id) -> bool"""
2632 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2634 def GetToolEnabled(*args
, **kwargs
):
2635 """GetToolEnabled(int id) -> bool"""
2636 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2638 def SetToolShortHelp(*args
, **kwargs
):
2639 """SetToolShortHelp(int id, wxString helpString)"""
2640 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2642 def GetToolShortHelp(*args
, **kwargs
):
2643 """GetToolShortHelp(int id) -> wxString"""
2644 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2646 def SetToolLongHelp(*args
, **kwargs
):
2647 """SetToolLongHelp(int id, wxString helpString)"""
2648 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2650 def GetToolLongHelp(*args
, **kwargs
):
2651 """GetToolLongHelp(int id) -> wxString"""
2652 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2654 def SetMarginsXY(*args
, **kwargs
):
2655 """SetMarginsXY(int x, int y)"""
2656 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2658 def SetMargins(*args
, **kwargs
):
2659 """SetMargins(Size size)"""
2660 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2662 def SetToolPacking(*args
, **kwargs
):
2663 """SetToolPacking(int packing)"""
2664 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2666 def SetToolSeparation(*args
, **kwargs
):
2667 """SetToolSeparation(int separation)"""
2668 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2670 def GetToolMargins(*args
, **kwargs
):
2671 """GetToolMargins() -> Size"""
2672 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2674 def GetMargins(*args
, **kwargs
):
2675 """GetMargins() -> Size"""
2676 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2678 def GetToolPacking(*args
, **kwargs
):
2679 """GetToolPacking() -> int"""
2680 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2682 def GetToolSeparation(*args
, **kwargs
):
2683 """GetToolSeparation() -> int"""
2684 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2686 def SetRows(*args
, **kwargs
):
2687 """SetRows(int nRows)"""
2688 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2690 def SetMaxRowsCols(*args
, **kwargs
):
2691 """SetMaxRowsCols(int rows, int cols)"""
2692 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2694 def GetMaxRows(*args
, **kwargs
):
2695 """GetMaxRows() -> int"""
2696 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2698 def GetMaxCols(*args
, **kwargs
):
2699 """GetMaxCols() -> int"""
2700 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2702 def SetToolBitmapSize(*args
, **kwargs
):
2703 """SetToolBitmapSize(Size size)"""
2704 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2706 def GetToolBitmapSize(*args
, **kwargs
):
2707 """GetToolBitmapSize() -> Size"""
2708 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2710 def GetToolSize(*args
, **kwargs
):
2711 """GetToolSize() -> Size"""
2712 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2714 def FindToolForPosition(*args
, **kwargs
):
2715 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2716 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2718 def IsVertical(*args
, **kwargs
):
2719 """IsVertical() -> bool"""
2720 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2723 class ToolBarBasePtr(ToolBarBase
):
2724 def __init__(self
, this
):
2726 if not hasattr(self
,"thisown"): self
.thisown
= 0
2727 self
.__class
__ = ToolBarBase
2728 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2730 class ToolBar(ToolBarBase
):
2732 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2733 def __init__(self
, *args
, **kwargs
):
2735 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2736 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2737 wxString name=wxPyToolBarNameStr) -> ToolBar
2739 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2740 self
.this
= newobj
.this
2743 self
._setOORInfo
(self
)
2745 def Create(*args
, **kwargs
):
2747 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2748 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2749 wxString name=wxPyToolBarNameStr) -> bool
2751 return _controls
.ToolBar_Create(*args
, **kwargs
)
2753 def FindToolForPosition(*args
, **kwargs
):
2754 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2755 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2758 class ToolBarPtr(ToolBar
):
2759 def __init__(self
, this
):
2761 if not hasattr(self
,"thisown"): self
.thisown
= 0
2762 self
.__class
__ = ToolBar
2763 _controls
.ToolBar_swigregister(ToolBarPtr
)
2765 def PreToolBar(*args
, **kwargs
):
2766 """PreToolBar() -> ToolBar"""
2767 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2771 #---------------------------------------------------------------------------
2773 LC_VRULES
= _controls
.LC_VRULES
2774 LC_HRULES
= _controls
.LC_HRULES
2775 LC_ICON
= _controls
.LC_ICON
2776 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2777 LC_LIST
= _controls
.LC_LIST
2778 LC_REPORT
= _controls
.LC_REPORT
2779 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2780 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2781 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2782 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2783 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2784 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2785 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2786 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2787 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2788 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2789 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2790 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2791 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2792 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2793 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2794 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2795 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2796 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2797 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2798 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2799 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2800 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2801 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2802 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2803 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2804 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2805 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2806 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2807 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2808 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2809 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2810 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2811 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2812 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2813 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2814 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2815 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2816 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2817 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2818 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2819 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2820 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2821 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2822 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2823 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2824 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2825 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2826 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2827 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2828 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2829 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2830 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2831 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2832 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2833 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2834 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2835 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2836 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2837 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2838 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2839 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2840 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2841 #---------------------------------------------------------------------------
2843 class ListItemAttr(object):
2845 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2846 def __init__(self
, *args
, **kwargs
):
2848 __init__(wxColour colText=wxNullColour, wxColour colBack=wxNullColour,
2849 wxFont font=wxNullFont) -> ListItemAttr
2851 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2852 self
.this
= newobj
.this
2855 def SetTextColour(*args
, **kwargs
):
2856 """SetTextColour(wxColour colText)"""
2857 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2859 def SetBackgroundColour(*args
, **kwargs
):
2860 """SetBackgroundColour(wxColour colBack)"""
2861 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2863 def SetFont(*args
, **kwargs
):
2864 """SetFont(wxFont font)"""
2865 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2867 def HasTextColour(*args
, **kwargs
):
2868 """HasTextColour() -> bool"""
2869 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2871 def HasBackgroundColour(*args
, **kwargs
):
2872 """HasBackgroundColour() -> bool"""
2873 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2875 def HasFont(*args
, **kwargs
):
2876 """HasFont() -> bool"""
2877 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2879 def GetTextColour(*args
, **kwargs
):
2880 """GetTextColour() -> wxColour"""
2881 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2883 def GetBackgroundColour(*args
, **kwargs
):
2884 """GetBackgroundColour() -> wxColour"""
2885 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2887 def GetFont(*args
, **kwargs
):
2888 """GetFont() -> wxFont"""
2889 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2891 def Destroy(*args
, **kwargs
):
2893 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2896 class ListItemAttrPtr(ListItemAttr
):
2897 def __init__(self
, this
):
2899 if not hasattr(self
,"thisown"): self
.thisown
= 0
2900 self
.__class
__ = ListItemAttr
2901 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2903 #---------------------------------------------------------------------------
2905 class ListItem(core
.Object
):
2907 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2908 def __init__(self
, *args
, **kwargs
):
2909 """__init__() -> ListItem"""
2910 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2911 self
.this
= newobj
.this
2914 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2917 if self
.thisown
: destroy(self
)
2920 def Clear(*args
, **kwargs
):
2922 return _controls
.ListItem_Clear(*args
, **kwargs
)
2924 def ClearAttributes(*args
, **kwargs
):
2925 """ClearAttributes()"""
2926 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2928 def SetMask(*args
, **kwargs
):
2929 """SetMask(long mask)"""
2930 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2932 def SetId(*args
, **kwargs
):
2933 """SetId(long id)"""
2934 return _controls
.ListItem_SetId(*args
, **kwargs
)
2936 def SetColumn(*args
, **kwargs
):
2937 """SetColumn(int col)"""
2938 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2940 def SetState(*args
, **kwargs
):
2941 """SetState(long state)"""
2942 return _controls
.ListItem_SetState(*args
, **kwargs
)
2944 def SetStateMask(*args
, **kwargs
):
2945 """SetStateMask(long stateMask)"""
2946 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2948 def SetText(*args
, **kwargs
):
2949 """SetText(wxString text)"""
2950 return _controls
.ListItem_SetText(*args
, **kwargs
)
2952 def SetImage(*args
, **kwargs
):
2953 """SetImage(int image)"""
2954 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2956 def SetData(*args
, **kwargs
):
2957 """SetData(long data)"""
2958 return _controls
.ListItem_SetData(*args
, **kwargs
)
2960 def SetWidth(*args
, **kwargs
):
2961 """SetWidth(int width)"""
2962 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2964 def SetAlign(*args
, **kwargs
):
2965 """SetAlign(wxListColumnFormat align)"""
2966 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2968 def SetTextColour(*args
, **kwargs
):
2969 """SetTextColour(wxColour colText)"""
2970 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2972 def SetBackgroundColour(*args
, **kwargs
):
2973 """SetBackgroundColour(wxColour colBack)"""
2974 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
2976 def SetFont(*args
, **kwargs
):
2977 """SetFont(wxFont font)"""
2978 return _controls
.ListItem_SetFont(*args
, **kwargs
)
2980 def GetMask(*args
, **kwargs
):
2981 """GetMask() -> long"""
2982 return _controls
.ListItem_GetMask(*args
, **kwargs
)
2984 def GetId(*args
, **kwargs
):
2985 """GetId() -> long"""
2986 return _controls
.ListItem_GetId(*args
, **kwargs
)
2988 def GetColumn(*args
, **kwargs
):
2989 """GetColumn() -> int"""
2990 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
2992 def GetState(*args
, **kwargs
):
2993 """GetState() -> long"""
2994 return _controls
.ListItem_GetState(*args
, **kwargs
)
2996 def GetText(*args
, **kwargs
):
2997 """GetText() -> wxString"""
2998 return _controls
.ListItem_GetText(*args
, **kwargs
)
3000 def GetImage(*args
, **kwargs
):
3001 """GetImage() -> int"""
3002 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3004 def GetData(*args
, **kwargs
):
3005 """GetData() -> long"""
3006 return _controls
.ListItem_GetData(*args
, **kwargs
)
3008 def GetWidth(*args
, **kwargs
):
3009 """GetWidth() -> int"""
3010 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3012 def GetAlign(*args
, **kwargs
):
3013 """GetAlign() -> wxListColumnFormat"""
3014 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3016 def GetAttributes(*args
, **kwargs
):
3017 """GetAttributes() -> ListItemAttr"""
3018 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3020 def HasAttributes(*args
, **kwargs
):
3021 """HasAttributes() -> bool"""
3022 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3024 def GetTextColour(*args
, **kwargs
):
3025 """GetTextColour() -> wxColour"""
3026 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3028 def GetBackgroundColour(*args
, **kwargs
):
3029 """GetBackgroundColour() -> wxColour"""
3030 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3032 def GetFont(*args
, **kwargs
):
3033 """GetFont() -> wxFont"""
3034 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3036 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3037 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3038 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3039 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3040 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3041 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3042 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3043 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3044 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3045 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3047 class ListItemPtr(ListItem
):
3048 def __init__(self
, this
):
3050 if not hasattr(self
,"thisown"): self
.thisown
= 0
3051 self
.__class
__ = ListItem
3052 _controls
.ListItem_swigregister(ListItemPtr
)
3054 #---------------------------------------------------------------------------
3056 class ListEvent(core
.NotifyEvent
):
3058 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3059 def __init__(self
, *args
, **kwargs
):
3060 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3061 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3062 self
.this
= newobj
.this
3065 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3066 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3067 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3068 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3069 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3070 m_item
= property(_controls
.ListEvent_m_item_get
)
3071 def GetKeyCode(*args
, **kwargs
):
3072 """GetKeyCode() -> int"""
3073 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3075 GetCode
= GetKeyCode
3076 def GetIndex(*args
, **kwargs
):
3077 """GetIndex() -> long"""
3078 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3080 def GetColumn(*args
, **kwargs
):
3081 """GetColumn() -> int"""
3082 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3084 def GetPoint(*args
, **kwargs
):
3085 """GetPoint() -> Point"""
3086 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3088 GetPostiion
= GetPoint
3089 def GetLabel(*args
, **kwargs
):
3090 """GetLabel() -> wxString"""
3091 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3093 def GetText(*args
, **kwargs
):
3094 """GetText() -> wxString"""
3095 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3097 def GetImage(*args
, **kwargs
):
3098 """GetImage() -> int"""
3099 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3101 def GetData(*args
, **kwargs
):
3102 """GetData() -> long"""
3103 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3105 def GetMask(*args
, **kwargs
):
3106 """GetMask() -> long"""
3107 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3109 def GetItem(*args
, **kwargs
):
3110 """GetItem() -> ListItem"""
3111 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3113 def GetCacheFrom(*args
, **kwargs
):
3114 """GetCacheFrom() -> long"""
3115 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3117 def GetCacheTo(*args
, **kwargs
):
3118 """GetCacheTo() -> long"""
3119 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3121 def IsEditCancelled(*args
, **kwargs
):
3122 """IsEditCancelled() -> bool"""
3123 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3125 def SetEditCanceled(*args
, **kwargs
):
3126 """SetEditCanceled(bool editCancelled)"""
3127 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3130 class ListEventPtr(ListEvent
):
3131 def __init__(self
, this
):
3133 if not hasattr(self
,"thisown"): self
.thisown
= 0
3134 self
.__class
__ = ListEvent
3135 _controls
.ListEvent_swigregister(ListEventPtr
)
3137 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3138 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3139 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3140 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3141 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3142 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3143 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3144 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3145 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3146 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3147 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3148 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3149 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3150 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3151 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3152 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3153 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3154 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3155 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3156 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3157 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3158 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3159 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3160 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3161 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3162 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3163 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3164 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3165 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3166 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3167 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3168 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3169 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3170 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3171 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3172 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3173 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3174 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3175 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3176 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3177 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3178 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3179 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3180 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3182 #---------------------------------------------------------------------------
3184 class ListCtrl(core
.Control
):
3186 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3187 def __init__(self
, *args
, **kwargs
):
3189 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3190 Size size=DefaultSize, long style=LC_ICON,
3191 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListCtrl
3193 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3194 self
.this
= newobj
.this
3197 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3199 def Create(*args
, **kwargs
):
3201 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3202 Size size=DefaultSize, long style=LC_ICON,
3203 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool
3205 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3207 def _setCallbackInfo(*args
, **kwargs
):
3208 """_setCallbackInfo(PyObject self, PyObject _class)"""
3209 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3211 def SetForegroundColour(*args
, **kwargs
):
3212 """SetForegroundColour(wxColour col) -> bool"""
3213 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3215 def SetBackgroundColour(*args
, **kwargs
):
3216 """SetBackgroundColour(wxColour col) -> bool"""
3217 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3219 def GetColumn(*args
, **kwargs
):
3220 """GetColumn(int col) -> ListItem"""
3221 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3222 if val
is not None: val
.thisown
= 1
3225 def SetColumn(*args
, **kwargs
):
3226 """SetColumn(int col, ListItem item) -> bool"""
3227 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3229 def GetColumnWidth(*args
, **kwargs
):
3230 """GetColumnWidth(int col) -> int"""
3231 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3233 def SetColumnWidth(*args
, **kwargs
):
3234 """SetColumnWidth(int col, int width) -> bool"""
3235 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3237 def GetCountPerPage(*args
, **kwargs
):
3238 """GetCountPerPage() -> int"""
3239 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3241 def GetViewRect(*args
, **kwargs
):
3242 """GetViewRect() -> Rect"""
3243 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3245 def GetEditControl(*args
, **kwargs
):
3246 """GetEditControl() -> TextCtrl"""
3247 return _controls
.ListCtrl_GetEditControl(*args
, **kwargs
)
3249 def GetItem(*args
, **kwargs
):
3250 """GetItem(long itemId, int col=0) -> ListItem"""
3251 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3252 if val
is not None: val
.thisown
= 1
3255 def SetItem(*args
, **kwargs
):
3256 """SetItem(ListItem info) -> bool"""
3257 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3259 def SetStringItem(*args
, **kwargs
):
3260 """SetStringItem(long index, int col, wxString label, int imageId=-1) -> long"""
3261 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3263 def GetItemState(*args
, **kwargs
):
3264 """GetItemState(long item, long stateMask) -> int"""
3265 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3267 def SetItemState(*args
, **kwargs
):
3268 """SetItemState(long item, long state, long stateMask) -> bool"""
3269 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3271 def SetItemImage(*args
, **kwargs
):
3272 """SetItemImage(long item, int image, int selImage) -> bool"""
3273 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3275 def GetItemText(*args
, **kwargs
):
3276 """GetItemText(long item) -> wxString"""
3277 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3279 def SetItemText(*args
, **kwargs
):
3280 """SetItemText(long item, wxString str)"""
3281 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3283 def GetItemData(*args
, **kwargs
):
3284 """GetItemData(long item) -> long"""
3285 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3287 def SetItemData(*args
, **kwargs
):
3288 """SetItemData(long item, long data) -> bool"""
3289 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3291 def GetItemPosition(*args
, **kwargs
):
3292 """GetItemPosition(long item) -> Point"""
3293 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3295 def GetItemRect(*args
, **kwargs
):
3296 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3297 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3299 def SetItemPosition(*args
, **kwargs
):
3300 """SetItemPosition(long item, Point pos) -> bool"""
3301 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3303 def GetItemCount(*args
, **kwargs
):
3304 """GetItemCount() -> int"""
3305 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3307 def GetColumnCount(*args
, **kwargs
):
3308 """GetColumnCount() -> int"""
3309 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3311 def GetItemSpacing(*args
, **kwargs
):
3312 """GetItemSpacing() -> Size"""
3313 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3315 def GetSelectedItemCount(*args
, **kwargs
):
3316 """GetSelectedItemCount() -> int"""
3317 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3319 def GetTextColour(*args
, **kwargs
):
3320 """GetTextColour() -> wxColour"""
3321 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3323 def SetTextColour(*args
, **kwargs
):
3324 """SetTextColour(wxColour col)"""
3325 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3327 def GetTopItem(*args
, **kwargs
):
3328 """GetTopItem() -> long"""
3329 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3331 def SetSingleStyle(*args
, **kwargs
):
3332 """SetSingleStyle(long style, bool add=True)"""
3333 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3335 def SetWindowStyleFlag(*args
, **kwargs
):
3336 """SetWindowStyleFlag(long style)"""
3337 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3339 def GetNextItem(*args
, **kwargs
):
3340 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3341 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3343 def GetImageList(*args
, **kwargs
):
3344 """GetImageList(int which) -> wxImageList"""
3345 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3347 def SetImageList(*args
, **kwargs
):
3348 """SetImageList(wxImageList imageList, int which)"""
3349 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3351 def AssignImageList(*args
, **kwargs
):
3352 """AssignImageList(wxImageList imageList, int which)"""
3353 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3357 def IsVirtual(*args
, **kwargs
):
3358 """IsVirtual() -> bool"""
3359 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3361 def RefreshItem(*args
, **kwargs
):
3362 """RefreshItem(long item)"""
3363 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3365 def RefreshItems(*args
, **kwargs
):
3366 """RefreshItems(long itemFrom, long itemTo)"""
3367 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3369 def Arrange(*args
, **kwargs
):
3370 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3371 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3373 def DeleteItem(*args
, **kwargs
):
3374 """DeleteItem(long item) -> bool"""
3375 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3377 def DeleteAllItems(*args
, **kwargs
):
3378 """DeleteAllItems() -> bool"""
3379 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3381 def DeleteColumn(*args
, **kwargs
):
3382 """DeleteColumn(int col) -> bool"""
3383 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3385 def DeleteAllColumns(*args
, **kwargs
):
3386 """DeleteAllColumns() -> bool"""
3387 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3389 def ClearAll(*args
, **kwargs
):
3391 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3393 def EditLabel(*args
, **kwargs
):
3394 """EditLabel(long item) -> TextCtrl"""
3395 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3397 def EndEditLabel(*args
, **kwargs
):
3398 """EndEditLabel(bool cancel) -> bool"""
3399 return _controls
.ListCtrl_EndEditLabel(*args
, **kwargs
)
3401 def EnsureVisible(*args
, **kwargs
):
3402 """EnsureVisible(long item) -> bool"""
3403 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3405 def FindItem(*args
, **kwargs
):
3406 """FindItem(long start, wxString str, bool partial=False) -> long"""
3407 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3409 def FindItemData(*args
, **kwargs
):
3410 """FindItemData(long start, long data) -> long"""
3411 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3413 def FindItemAtPos(*args
, **kwargs
):
3414 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3415 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3417 def HitTest(*args
, **kwargs
):
3419 HitTest(Point point) -> (item, where)
3421 Determines which item (if any) is at the specified point,
3422 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3424 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3426 def InsertItem(*args
, **kwargs
):
3427 """InsertItem(ListItem info) -> long"""
3428 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3430 def InsertStringItem(*args
, **kwargs
):
3431 """InsertStringItem(long index, wxString label) -> long"""
3432 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3434 def InsertImageItem(*args
, **kwargs
):
3435 """InsertImageItem(long index, int imageIndex) -> long"""
3436 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3438 def InsertImageStringItem(*args
, **kwargs
):
3439 """InsertImageStringItem(long index, wxString label, int imageIndex) -> long"""
3440 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3442 def InsertColumnInfo(*args
, **kwargs
):
3443 """InsertColumnInfo(long col, ListItem info) -> long"""
3444 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3446 def InsertColumn(*args
, **kwargs
):
3448 InsertColumn(long col, wxString heading, int format=LIST_FORMAT_LEFT,
3449 int width=-1) -> long
3451 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3453 def SetItemCount(*args
, **kwargs
):
3454 """SetItemCount(long count)"""
3455 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3457 def ScrollList(*args
, **kwargs
):
3458 """ScrollList(int dx, int dy) -> bool"""
3459 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3461 def SetItemTextColour(*args
, **kwargs
):
3462 """SetItemTextColour(long item, wxColour col)"""
3463 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3465 def GetItemTextColour(*args
, **kwargs
):
3466 """GetItemTextColour(long item) -> wxColour"""
3467 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3469 def SetItemBackgroundColour(*args
, **kwargs
):
3470 """SetItemBackgroundColour(long item, wxColour col)"""
3471 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3473 def GetItemBackgroundColour(*args
, **kwargs
):
3474 """GetItemBackgroundColour(long item) -> wxColour"""
3475 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3479 def Select(self
, idx
, on
=1):
3480 '''[de]select an item'''
3481 if on
: state
= wx
.LIST_STATE_SELECTED
3483 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3485 def Focus(self
, idx
):
3486 '''Focus and show the given item'''
3487 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3488 self
.EnsureVisible(idx
)
3490 def GetFocusedItem(self
):
3491 '''get the currently focused item or -1 if none'''
3492 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3494 def GetFirstSelected(self
, *args
):
3495 '''return first selected item, or -1 when none'''
3496 return self
.GetNextSelected(-1)
3498 def GetNextSelected(self
, item
):
3499 '''return subsequent selected items, or -1 when no more'''
3500 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3502 def IsSelected(self
, idx
):
3503 '''return True if the item is selected'''
3504 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3506 def SetColumnImage(self
, col
, image
):
3507 item
= self
.GetColumn(col
)
3508 # preserve all other attributes too
3509 item
.SetMask( wx
.LIST_MASK_STATE |
3511 wx
.LIST_MASK_IMAGE |
3514 wx
.LIST_MASK_WIDTH |
3515 wx
.LIST_MASK_FORMAT
)
3516 item
.SetImage(image
)
3517 self
.SetColumn(col
, item
)
3519 def ClearColumnImage(self
, col
):
3520 self
.SetColumnImage(col
, -1)
3522 def Append(self
, entry
):
3523 '''Append an item to the list control. The entry parameter should be a
3524 sequence with an item for each column'''
3530 pos
= self
.GetItemCount()
3531 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3532 for i
in range(1, len(entry
)):
3533 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3536 def SortItems(*args
, **kwargs
):
3537 """SortItems(PyObject func) -> bool"""
3538 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3540 def GetMainWindow(*args
, **kwargs
):
3541 """GetMainWindow() -> Window"""
3542 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3545 class ListCtrlPtr(ListCtrl
):
3546 def __init__(self
, this
):
3548 if not hasattr(self
,"thisown"): self
.thisown
= 0
3549 self
.__class
__ = ListCtrl
3550 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3552 def PreListCtrl(*args
, **kwargs
):
3553 """PreListCtrl() -> ListCtrl"""
3554 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3558 #---------------------------------------------------------------------------
3560 class ListView(ListCtrl
):
3562 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3563 def __init__(self
, *args
, **kwargs
):
3565 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3566 Size size=DefaultSize, long style=LC_REPORT,
3567 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListView
3569 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3570 self
.this
= newobj
.this
3573 self
._setOORInfo
(self
)
3575 def Create(*args
, **kwargs
):
3577 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3578 Size size=DefaultSize, long style=LC_REPORT,
3579 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool
3581 return _controls
.ListView_Create(*args
, **kwargs
)
3583 def Select(*args
, **kwargs
):
3584 """Select(long n, bool on=True)"""
3585 return _controls
.ListView_Select(*args
, **kwargs
)
3587 def Focus(*args
, **kwargs
):
3588 """Focus(long index)"""
3589 return _controls
.ListView_Focus(*args
, **kwargs
)
3591 def GetFocusedItem(*args
, **kwargs
):
3592 """GetFocusedItem() -> long"""
3593 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3595 def GetNextSelected(*args
, **kwargs
):
3596 """GetNextSelected(long item) -> long"""
3597 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3599 def GetFirstSelected(*args
, **kwargs
):
3600 """GetFirstSelected() -> long"""
3601 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3603 def IsSelected(*args
, **kwargs
):
3604 """IsSelected(long index) -> bool"""
3605 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3607 def SetColumnImage(*args
, **kwargs
):
3608 """SetColumnImage(int col, int image)"""
3609 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3611 def ClearColumnImage(*args
, **kwargs
):
3612 """ClearColumnImage(int col)"""
3613 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3616 class ListViewPtr(ListView
):
3617 def __init__(self
, this
):
3619 if not hasattr(self
,"thisown"): self
.thisown
= 0
3620 self
.__class
__ = ListView
3621 _controls
.ListView_swigregister(ListViewPtr
)
3623 def PreListView(*args
, **kwargs
):
3624 """PreListView() -> ListView"""
3625 val
= _controls
.new_PreListView(*args
, **kwargs
)
3629 #---------------------------------------------------------------------------
3631 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3632 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3633 TR_NO_LINES
= _controls
.TR_NO_LINES
3634 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3635 TR_SINGLE
= _controls
.TR_SINGLE
3636 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3637 TR_EXTENDED
= _controls
.TR_EXTENDED
3638 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3639 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3640 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3641 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3642 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3643 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3644 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3645 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3646 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3647 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3648 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3649 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3650 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3651 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3652 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3653 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3654 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3655 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3656 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3657 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3658 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3659 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3660 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3661 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3662 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3663 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3664 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3665 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3666 #---------------------------------------------------------------------------
3668 class TreeItemId(object):
3670 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3671 def __init__(self
, *args
, **kwargs
):
3672 """__init__() -> TreeItemId"""
3673 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3674 self
.this
= newobj
.this
3677 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3680 if self
.thisown
: destroy(self
)
3683 def IsOk(*args
, **kwargs
):
3684 """IsOk() -> bool"""
3685 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3687 def __eq__(*args
, **kwargs
):
3688 """__eq__(TreeItemId other) -> bool"""
3689 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3691 def __ne__(*args
, **kwargs
):
3692 """__ne__(TreeItemId other) -> bool"""
3693 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3695 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3697 def __nonzero__(self
): return self
.IsOk()
3699 class TreeItemIdPtr(TreeItemId
):
3700 def __init__(self
, this
):
3702 if not hasattr(self
,"thisown"): self
.thisown
= 0
3703 self
.__class
__ = TreeItemId
3704 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3706 class TreeItemData(object):
3708 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3709 def __init__(self
, *args
, **kwargs
):
3710 """__init__(PyObject obj=None) -> TreeItemData"""
3711 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3712 self
.this
= newobj
.this
3715 def GetData(*args
, **kwargs
):
3716 """GetData() -> PyObject"""
3717 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3719 def SetData(*args
, **kwargs
):
3720 """SetData(PyObject obj)"""
3721 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3723 def GetId(*args
, **kwargs
):
3724 """GetId() -> TreeItemId"""
3725 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3727 def SetId(*args
, **kwargs
):
3728 """SetId(TreeItemId id)"""
3729 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3731 def Destroy(*args
, **kwargs
):
3733 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3736 class TreeItemDataPtr(TreeItemData
):
3737 def __init__(self
, this
):
3739 if not hasattr(self
,"thisown"): self
.thisown
= 0
3740 self
.__class
__ = TreeItemData
3741 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3743 #---------------------------------------------------------------------------
3745 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3746 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3747 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3748 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3749 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3750 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3751 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3752 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3753 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3754 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3755 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3756 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3757 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3758 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3759 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3760 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3761 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3762 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3763 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3764 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3765 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3766 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3767 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3768 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3769 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3770 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3771 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3772 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3773 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3774 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3775 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3776 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3777 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3778 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3779 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3780 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3781 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3782 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3785 class TreeEvent(core
.NotifyEvent
):
3787 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3788 def __init__(self
, *args
, **kwargs
):
3789 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3790 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3791 self
.this
= newobj
.this
3794 def GetItem(*args
, **kwargs
):
3795 """GetItem() -> TreeItemId"""
3796 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3798 def SetItem(*args
, **kwargs
):
3799 """SetItem(TreeItemId item)"""
3800 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3802 def GetOldItem(*args
, **kwargs
):
3803 """GetOldItem() -> TreeItemId"""
3804 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3806 def SetOldItem(*args
, **kwargs
):
3807 """SetOldItem(TreeItemId item)"""
3808 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3810 def GetPoint(*args
, **kwargs
):
3811 """GetPoint() -> Point"""
3812 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3814 def SetPoint(*args
, **kwargs
):
3815 """SetPoint(Point pt)"""
3816 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3818 def GetKeyEvent(*args
, **kwargs
):
3819 """GetKeyEvent() -> KeyEvent"""
3820 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3822 def GetKeyCode(*args
, **kwargs
):
3823 """GetKeyCode() -> int"""
3824 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3826 def SetKeyEvent(*args
, **kwargs
):
3827 """SetKeyEvent(KeyEvent evt)"""
3828 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3830 def GetLabel(*args
, **kwargs
):
3831 """GetLabel() -> wxString"""
3832 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3834 def SetLabel(*args
, **kwargs
):
3835 """SetLabel(wxString label)"""
3836 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3838 def IsEditCancelled(*args
, **kwargs
):
3839 """IsEditCancelled() -> bool"""
3840 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3842 def SetEditCanceled(*args
, **kwargs
):
3843 """SetEditCanceled(bool editCancelled)"""
3844 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3847 class TreeEventPtr(TreeEvent
):
3848 def __init__(self
, this
):
3850 if not hasattr(self
,"thisown"): self
.thisown
= 0
3851 self
.__class
__ = TreeEvent
3852 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3854 #---------------------------------------------------------------------------
3856 class TreeCtrl(core
.Control
):
3858 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3859 def __init__(self
, *args
, **kwargs
):
3861 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3862 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3863 Validator validator=DefaultValidator,
3864 wxString name=wxPy_TreeCtrlNameStr) -> TreeCtrl
3866 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3867 self
.this
= newobj
.this
3870 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3872 def Create(*args
, **kwargs
):
3874 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3875 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3876 Validator validator=DefaultValidator,
3877 wxString name=wxPy_TreeCtrlNameStr) -> bool
3879 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3881 def _setCallbackInfo(*args
, **kwargs
):
3882 """_setCallbackInfo(PyObject self, PyObject _class)"""
3883 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3885 def GetCount(*args
, **kwargs
):
3886 """GetCount() -> size_t"""
3887 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3889 def GetIndent(*args
, **kwargs
):
3890 """GetIndent() -> unsigned int"""
3891 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3893 def SetIndent(*args
, **kwargs
):
3894 """SetIndent(unsigned int indent)"""
3895 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3897 def GetSpacing(*args
, **kwargs
):
3898 """GetSpacing() -> unsigned int"""
3899 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3901 def SetSpacing(*args
, **kwargs
):
3902 """SetSpacing(unsigned int spacing)"""
3903 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3905 def GetImageList(*args
, **kwargs
):
3906 """GetImageList() -> wxImageList"""
3907 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3909 def GetStateImageList(*args
, **kwargs
):
3910 """GetStateImageList() -> wxImageList"""
3911 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3913 def SetImageList(*args
, **kwargs
):
3914 """SetImageList(wxImageList imageList)"""
3915 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3917 def SetStateImageList(*args
, **kwargs
):
3918 """SetStateImageList(wxImageList imageList)"""
3919 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3921 def AssignImageList(*args
, **kwargs
):
3922 """AssignImageList(wxImageList imageList)"""
3923 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3927 def AssignStateImageList(*args
, **kwargs
):
3928 """AssignStateImageList(wxImageList imageList)"""
3929 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3933 def GetItemText(*args
, **kwargs
):
3934 """GetItemText(TreeItemId item) -> wxString"""
3935 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3937 def GetItemImage(*args
, **kwargs
):
3938 """GetItemImage(TreeItemId item, wxTreeItemIcon which=TreeItemIcon_Normal) -> int"""
3939 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3941 def GetItemData(*args
, **kwargs
):
3942 """GetItemData(TreeItemId item) -> TreeItemData"""
3943 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3945 def GetItemPyData(*args
, **kwargs
):
3946 """GetItemPyData(TreeItemId item) -> PyObject"""
3947 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3949 GetPyData
= GetItemPyData
3950 def GetItemTextColour(*args
, **kwargs
):
3951 """GetItemTextColour(TreeItemId item) -> wxColour"""
3952 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3954 def GetItemBackgroundColour(*args
, **kwargs
):
3955 """GetItemBackgroundColour(TreeItemId item) -> wxColour"""
3956 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3958 def GetItemFont(*args
, **kwargs
):
3959 """GetItemFont(TreeItemId item) -> wxFont"""
3960 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3962 def SetItemText(*args
, **kwargs
):
3963 """SetItemText(TreeItemId item, wxString text)"""
3964 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3966 def SetItemImage(*args
, **kwargs
):
3967 """SetItemImage(TreeItemId item, int image, wxTreeItemIcon which=TreeItemIcon_Normal)"""
3968 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
3970 def SetItemData(*args
, **kwargs
):
3971 """SetItemData(TreeItemId item, TreeItemData data)"""
3972 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
3974 def SetItemPyData(*args
, **kwargs
):
3975 """SetItemPyData(TreeItemId item, PyObject obj)"""
3976 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
3978 SetPyData
= SetItemPyData
3979 def SetItemHasChildren(*args
, **kwargs
):
3980 """SetItemHasChildren(TreeItemId item, bool has=True)"""
3981 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
3983 def SetItemBold(*args
, **kwargs
):
3984 """SetItemBold(TreeItemId item, bool bold=True)"""
3985 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
3987 def SetItemDropHighlight(*args
, **kwargs
):
3988 """SetItemDropHighlight(TreeItemId item, bool highlight=True)"""
3989 return _controls
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
3991 def SetItemTextColour(*args
, **kwargs
):
3992 """SetItemTextColour(TreeItemId item, wxColour col)"""
3993 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
3995 def SetItemBackgroundColour(*args
, **kwargs
):
3996 """SetItemBackgroundColour(TreeItemId item, wxColour col)"""
3997 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3999 def SetItemFont(*args
, **kwargs
):
4000 """SetItemFont(TreeItemId item, wxFont font)"""
4001 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4003 def IsVisible(*args
, **kwargs
):
4004 """IsVisible(TreeItemId item) -> bool"""
4005 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4007 def ItemHasChildren(*args
, **kwargs
):
4008 """ItemHasChildren(TreeItemId item) -> bool"""
4009 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4011 def IsExpanded(*args
, **kwargs
):
4012 """IsExpanded(TreeItemId item) -> bool"""
4013 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4015 def IsSelected(*args
, **kwargs
):
4016 """IsSelected(TreeItemId item) -> bool"""
4017 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4019 def IsBold(*args
, **kwargs
):
4020 """IsBold(TreeItemId item) -> bool"""
4021 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4023 def GetChildrenCount(*args
, **kwargs
):
4024 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4025 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4027 def GetRootItem(*args
, **kwargs
):
4028 """GetRootItem() -> TreeItemId"""
4029 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4031 def GetSelection(*args
, **kwargs
):
4032 """GetSelection() -> TreeItemId"""
4033 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4035 def GetSelections(*args
, **kwargs
):
4036 """GetSelections() -> PyObject"""
4037 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4039 def GetItemParent(*args
, **kwargs
):
4040 """GetItemParent(TreeItemId item) -> TreeItemId"""
4041 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4043 def GetFirstChild(*args
, **kwargs
):
4044 """GetFirstChild(TreeItemId item) -> PyObject"""
4045 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4047 def GetNextChild(*args
, **kwargs
):
4048 """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
4049 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4051 def GetLastChild(*args
, **kwargs
):
4052 """GetLastChild(TreeItemId item) -> TreeItemId"""
4053 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4055 def GetNextSibling(*args
, **kwargs
):
4056 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4057 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4059 def GetPrevSibling(*args
, **kwargs
):
4060 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4061 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4063 def GetFirstVisibleItem(*args
, **kwargs
):
4064 """GetFirstVisibleItem() -> TreeItemId"""
4065 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4067 def GetNextVisible(*args
, **kwargs
):
4068 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4069 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4071 def GetPrevVisible(*args
, **kwargs
):
4072 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4073 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4075 def AddRoot(*args
, **kwargs
):
4077 AddRoot(wxString text, int image=-1, int selectedImage=-1,
4078 TreeItemData data=None) -> TreeItemId
4080 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4082 def PrependItem(*args
, **kwargs
):
4084 PrependItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
4085 TreeItemData data=None) -> TreeItemId
4087 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4089 def InsertItem(*args
, **kwargs
):
4091 InsertItem(TreeItemId parent, TreeItemId idPrevious, wxString text,
4092 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4094 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4096 def InsertItemBefore(*args
, **kwargs
):
4098 InsertItemBefore(TreeItemId parent, size_t index, wxString text, int image=-1,
4099 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4101 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4103 def AppendItem(*args
, **kwargs
):
4105 AppendItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
4106 TreeItemData data=None) -> TreeItemId
4108 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4110 def Delete(*args
, **kwargs
):
4111 """Delete(TreeItemId item)"""
4112 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4114 def DeleteChildren(*args
, **kwargs
):
4115 """DeleteChildren(TreeItemId item)"""
4116 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4118 def DeleteAllItems(*args
, **kwargs
):
4119 """DeleteAllItems()"""
4120 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4122 def Expand(*args
, **kwargs
):
4123 """Expand(TreeItemId item)"""
4124 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4126 def Collapse(*args
, **kwargs
):
4127 """Collapse(TreeItemId item)"""
4128 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4130 def CollapseAndReset(*args
, **kwargs
):
4131 """CollapseAndReset(TreeItemId item)"""
4132 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4134 def Toggle(*args
, **kwargs
):
4135 """Toggle(TreeItemId item)"""
4136 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4138 def Unselect(*args
, **kwargs
):
4140 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4142 def UnselectAll(*args
, **kwargs
):
4144 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4146 def SelectItem(*args
, **kwargs
):
4147 """SelectItem(TreeItemId item)"""
4148 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4150 def EnsureVisible(*args
, **kwargs
):
4151 """EnsureVisible(TreeItemId item)"""
4152 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4154 def ScrollTo(*args
, **kwargs
):
4155 """ScrollTo(TreeItemId item)"""
4156 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4158 def EditLabel(*args
, **kwargs
):
4159 """EditLabel(TreeItemId item)"""
4160 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4162 def GetEditControl(*args
, **kwargs
):
4163 """GetEditControl() -> TextCtrl"""
4164 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4166 def EndEditLabel(*args
, **kwargs
):
4167 """EndEditLabel(TreeItemId item, bool discardChanges=False)"""
4168 return _controls
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
4170 def SortChildren(*args
, **kwargs
):
4171 """SortChildren(TreeItemId item)"""
4172 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4174 def HitTest(*args
, **kwargs
):
4176 HitTest(Point point) -> (item, where)
4178 Determine which item (if any) belongs the given point. The
4179 coordinates specified are relative to the client area of tree ctrl
4180 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4184 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4186 def GetBoundingRect(*args
, **kwargs
):
4187 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4188 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4191 class TreeCtrlPtr(TreeCtrl
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = TreeCtrl
4196 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4198 def PreTreeCtrl(*args
, **kwargs
):
4199 """PreTreeCtrl() -> TreeCtrl"""
4200 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4204 #---------------------------------------------------------------------------
4206 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4207 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4208 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4209 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4210 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4211 class GenericDirCtrl(core
.Control
):
4213 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4214 def __init__(self
, *args
, **kwargs
):
4216 __init__(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4217 Point pos=DefaultPosition,
4218 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4219 wxString filter=wxPyEmptyString,
4220 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> GenericDirCtrl
4222 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4223 self
.this
= newobj
.this
4226 self
._setOORInfo
(self
)
4228 def Create(*args
, **kwargs
):
4230 Create(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4231 Point pos=DefaultPosition,
4232 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4233 wxString filter=wxPyEmptyString,
4234 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> bool
4236 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4238 def ExpandPath(*args
, **kwargs
):
4239 """ExpandPath(wxString path) -> bool"""
4240 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4242 def GetDefaultPath(*args
, **kwargs
):
4243 """GetDefaultPath() -> wxString"""
4244 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4246 def SetDefaultPath(*args
, **kwargs
):
4247 """SetDefaultPath(wxString path)"""
4248 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4250 def GetPath(*args
, **kwargs
):
4251 """GetPath() -> wxString"""
4252 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4254 def GetFilePath(*args
, **kwargs
):
4255 """GetFilePath() -> wxString"""
4256 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4258 def SetPath(*args
, **kwargs
):
4259 """SetPath(wxString path)"""
4260 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4262 def ShowHidden(*args
, **kwargs
):
4263 """ShowHidden(bool show)"""
4264 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4266 def GetShowHidden(*args
, **kwargs
):
4267 """GetShowHidden() -> bool"""
4268 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4270 def GetFilter(*args
, **kwargs
):
4271 """GetFilter() -> wxString"""
4272 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4274 def SetFilter(*args
, **kwargs
):
4275 """SetFilter(wxString filter)"""
4276 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4278 def GetFilterIndex(*args
, **kwargs
):
4279 """GetFilterIndex() -> int"""
4280 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4282 def SetFilterIndex(*args
, **kwargs
):
4283 """SetFilterIndex(int n)"""
4284 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4286 def GetRootId(*args
, **kwargs
):
4287 """GetRootId() -> TreeItemId"""
4288 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4290 def GetTreeCtrl(*args
, **kwargs
):
4291 """GetTreeCtrl() -> wxTreeCtrl"""
4292 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4294 def GetFilterListCtrl(*args
, **kwargs
):
4295 """GetFilterListCtrl() -> DirFilterListCtrl"""
4296 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4298 def FindChild(*args
, **kwargs
):
4300 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4302 Find the child that matches the first part of 'path'. E.g. if a child path is
4303 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4304 If the path string has been used (we're at the leaf), done is set to True
4307 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4309 def DoResize(*args
, **kwargs
):
4311 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4313 def ReCreateTree(*args
, **kwargs
):
4314 """ReCreateTree()"""
4315 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4318 class GenericDirCtrlPtr(GenericDirCtrl
):
4319 def __init__(self
, this
):
4321 if not hasattr(self
,"thisown"): self
.thisown
= 0
4322 self
.__class
__ = GenericDirCtrl
4323 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4325 def PreGenericDirCtrl(*args
, **kwargs
):
4326 """PreGenericDirCtrl() -> GenericDirCtrl"""
4327 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4331 class DirFilterListCtrl(Choice
):
4333 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4334 def __init__(self
, *args
, **kwargs
):
4336 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4337 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4339 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4340 self
.this
= newobj
.this
4343 self
._setOORInfo
(self
)
4345 def Create(*args
, **kwargs
):
4347 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4348 Size size=DefaultSize, long style=0) -> bool
4350 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4352 def FillFilterList(*args
, **kwargs
):
4353 """FillFilterList(wxString filter, int defaultFilter)"""
4354 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4357 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4358 def __init__(self
, this
):
4360 if not hasattr(self
,"thisown"): self
.thisown
= 0
4361 self
.__class
__ = DirFilterListCtrl
4362 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4364 def PreDirFilterListCtrl(*args
, **kwargs
):
4365 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4366 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4370 #---------------------------------------------------------------------------
4372 class PyControl(core
.Control
):
4374 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4375 def __init__(self
, *args
, **kwargs
):
4377 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4378 long style=0, Validator validator=DefaultValidator,
4379 wxString name=wxPyControlNameStr) -> PyControl
4381 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4382 self
.this
= newobj
.this
4385 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4387 def _setCallbackInfo(*args
, **kwargs
):
4388 """_setCallbackInfo(PyObject self, PyObject _class)"""
4389 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4391 def base_DoMoveWindow(*args
, **kwargs
):
4392 """base_DoMoveWindow(int x, int y, int width, int height)"""
4393 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4395 def base_DoSetSize(*args
, **kwargs
):
4396 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4397 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4399 def base_DoSetClientSize(*args
, **kwargs
):
4400 """base_DoSetClientSize(int width, int height)"""
4401 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4403 def base_DoSetVirtualSize(*args
, **kwargs
):
4404 """base_DoSetVirtualSize(int x, int y)"""
4405 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4407 def base_DoGetSize(*args
, **kwargs
):
4408 """base_DoGetSize() -> (width, height)"""
4409 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4411 def base_DoGetClientSize(*args
, **kwargs
):
4412 """base_DoGetClientSize() -> (width, height)"""
4413 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4415 def base_DoGetPosition(*args
, **kwargs
):
4416 """base_DoGetPosition() -> (x,y)"""
4417 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4419 def base_DoGetVirtualSize(*args
, **kwargs
):
4420 """base_DoGetVirtualSize() -> Size"""
4421 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4423 def base_DoGetBestSize(*args
, **kwargs
):
4424 """base_DoGetBestSize() -> Size"""
4425 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4427 def base_InitDialog(*args
, **kwargs
):
4428 """base_InitDialog()"""
4429 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4431 def base_TransferDataToWindow(*args
, **kwargs
):
4432 """base_TransferDataToWindow() -> bool"""
4433 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4435 def base_TransferDataFromWindow(*args
, **kwargs
):
4436 """base_TransferDataFromWindow() -> bool"""
4437 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4439 def base_Validate(*args
, **kwargs
):
4440 """base_Validate() -> bool"""
4441 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4443 def base_AcceptsFocus(*args
, **kwargs
):
4444 """base_AcceptsFocus() -> bool"""
4445 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4447 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4448 """base_AcceptsFocusFromKeyboard() -> bool"""
4449 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4451 def base_GetMaxSize(*args
, **kwargs
):
4452 """base_GetMaxSize() -> Size"""
4453 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4455 def base_AddChild(*args
, **kwargs
):
4456 """base_AddChild(Window child)"""
4457 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4459 def base_RemoveChild(*args
, **kwargs
):
4460 """base_RemoveChild(Window child)"""
4461 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4464 class PyControlPtr(PyControl
):
4465 def __init__(self
, this
):
4467 if not hasattr(self
,"thisown"): self
.thisown
= 0
4468 self
.__class
__ = PyControl
4469 _controls
.PyControl_swigregister(PyControlPtr
)
4471 #---------------------------------------------------------------------------
4473 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4474 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4475 wxEVT_HELP
= _controls
.wxEVT_HELP
4476 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4477 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4478 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4479 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4480 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4482 class HelpEvent(core
.CommandEvent
):
4484 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4485 def __init__(self
, *args
, **kwargs
):
4486 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4487 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4488 self
.this
= newobj
.this
4491 def GetPosition(*args
, **kwargs
):
4492 """GetPosition() -> Point"""
4493 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4495 def SetPosition(*args
, **kwargs
):
4496 """SetPosition(Point pos)"""
4497 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4499 def GetLink(*args
, **kwargs
):
4500 """GetLink() -> wxString"""
4501 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4503 def SetLink(*args
, **kwargs
):
4504 """SetLink(wxString link)"""
4505 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4507 def GetTarget(*args
, **kwargs
):
4508 """GetTarget() -> wxString"""
4509 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4511 def SetTarget(*args
, **kwargs
):
4512 """SetTarget(wxString target)"""
4513 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4516 class HelpEventPtr(HelpEvent
):
4517 def __init__(self
, this
):
4519 if not hasattr(self
,"thisown"): self
.thisown
= 0
4520 self
.__class
__ = HelpEvent
4521 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4523 class ContextHelp(core
.Object
):
4525 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4526 def __init__(self
, *args
, **kwargs
):
4527 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4528 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4529 self
.this
= newobj
.this
4532 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4535 if self
.thisown
: destroy(self
)
4538 def BeginContextHelp(*args
, **kwargs
):
4539 """BeginContextHelp(Window window=None) -> bool"""
4540 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4542 def EndContextHelp(*args
, **kwargs
):
4543 """EndContextHelp() -> bool"""
4544 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4547 class ContextHelpPtr(ContextHelp
):
4548 def __init__(self
, this
):
4550 if not hasattr(self
,"thisown"): self
.thisown
= 0
4551 self
.__class
__ = ContextHelp
4552 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4554 class ContextHelpButton(BitmapButton
):
4556 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4557 def __init__(self
, *args
, **kwargs
):
4559 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4560 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4562 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4563 self
.this
= newobj
.this
4566 self
._setOORInfo
(self
)
4569 class ContextHelpButtonPtr(ContextHelpButton
):
4570 def __init__(self
, this
):
4572 if not hasattr(self
,"thisown"): self
.thisown
= 0
4573 self
.__class
__ = ContextHelpButton
4574 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4576 class HelpProvider(object):
4577 def __init__(self
): raise RuntimeError, "No constructor defined"
4579 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4580 def Set(*args
, **kwargs
):
4581 """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
4582 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4584 Set
= staticmethod(Set
)
4585 def Get(*args
, **kwargs
):
4586 """HelpProvider.Get() -> HelpProvider"""
4587 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4589 Get
= staticmethod(Get
)
4590 def GetHelp(*args
, **kwargs
):
4591 """GetHelp(Window window) -> wxString"""
4592 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4594 def ShowHelp(*args
, **kwargs
):
4595 """ShowHelp(Window window) -> bool"""
4596 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4598 def AddHelp(*args
, **kwargs
):
4599 """AddHelp(Window window, wxString text)"""
4600 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4602 def AddHelpById(*args
, **kwargs
):
4603 """AddHelpById(int id, wxString text)"""
4604 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4606 def Destroy(*args
, **kwargs
):
4608 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4611 class HelpProviderPtr(HelpProvider
):
4612 def __init__(self
, this
):
4614 if not hasattr(self
,"thisown"): self
.thisown
= 0
4615 self
.__class
__ = HelpProvider
4616 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4618 def HelpProvider_Set(*args
, **kwargs
):
4619 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4620 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4622 def HelpProvider_Get(*args
, **kwargs
):
4623 """HelpProvider_Get() -> HelpProvider"""
4624 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4626 class SimpleHelpProvider(HelpProvider
):
4628 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4629 def __init__(self
, *args
, **kwargs
):
4630 """__init__() -> SimpleHelpProvider"""
4631 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4632 self
.this
= newobj
.this
4636 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4637 def __init__(self
, this
):
4639 if not hasattr(self
,"thisown"): self
.thisown
= 0
4640 self
.__class
__ = SimpleHelpProvider
4641 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4643 #---------------------------------------------------------------------------
4645 class DragImage(core
.Object
):
4647 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4648 def __init__(self
, *args
, **kwargs
):
4649 """__init__(wxBitmap image, wxCursor cursor=wxNullCursor) -> DragImage"""
4650 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4651 self
.this
= newobj
.this
4654 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4657 if self
.thisown
: destroy(self
)
4660 def SetBackingBitmap(*args
, **kwargs
):
4661 """SetBackingBitmap(wxBitmap bitmap)"""
4662 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4664 def BeginDrag(*args
, **kwargs
):
4666 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4667 Rect rect=None) -> bool
4669 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4671 def BeginDragBounded(*args
, **kwargs
):
4672 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4673 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4675 def EndDrag(*args
, **kwargs
):
4676 """EndDrag() -> bool"""
4677 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4679 def Move(*args
, **kwargs
):
4680 """Move(Point pt) -> bool"""
4681 return _controls
.DragImage_Move(*args
, **kwargs
)
4683 def Show(*args
, **kwargs
):
4684 """Show() -> bool"""
4685 return _controls
.DragImage_Show(*args
, **kwargs
)
4687 def Hide(*args
, **kwargs
):
4688 """Hide() -> bool"""
4689 return _controls
.DragImage_Hide(*args
, **kwargs
)
4691 def GetImageRect(*args
, **kwargs
):
4692 """GetImageRect(Point pos) -> Rect"""
4693 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4695 def DoDrawImage(*args
, **kwargs
):
4696 """DoDrawImage(wxDC dc, Point pos) -> bool"""
4697 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4699 def UpdateBackingFromWindow(*args
, **kwargs
):
4701 UpdateBackingFromWindow(wxDC windowDC, wxMemoryDC destDC, Rect sourceRect,
4702 Rect destRect) -> bool
4704 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4706 def RedrawImage(*args
, **kwargs
):
4707 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4708 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4711 class DragImagePtr(DragImage
):
4712 def __init__(self
, this
):
4714 if not hasattr(self
,"thisown"): self
.thisown
= 0
4715 self
.__class
__ = DragImage
4716 _controls
.DragImage_swigregister(DragImagePtr
)
4718 def DragIcon(*args
, **kwargs
):
4719 """DragIcon(wxIcon image, wxCursor cursor=wxNullCursor) -> DragImage"""
4720 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4724 def DragString(*args
, **kwargs
):
4725 """DragString(wxString str, wxCursor cursor=wxNullCursor) -> DragImage"""
4726 val
= _controls
.new_DragString(*args
, **kwargs
)
4730 def DragTreeItem(*args
, **kwargs
):
4731 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4732 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4736 def DragListItem(*args
, **kwargs
):
4737 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4738 val
= _controls
.new_DragListItem(*args
, **kwargs
)