1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 BU_LEFT
= _controls
.BU_LEFT
11 BU_TOP
= _controls
.BU_TOP
12 BU_RIGHT
= _controls
.BU_RIGHT
13 BU_BOTTOM
= _controls
.BU_BOTTOM
14 BU_EXACTFIT
= _controls
.BU_EXACTFIT
15 BU_AUTODRAW
= _controls
.BU_AUTODRAW
16 class Button(core
.Control
):
18 A button is a control that contains a text string, and is one of the most
19 common elements of a GUI. It may be placed on a dialog box or panel, or
20 indeed almost any other window.
23 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
24 def __init__(self
, *args
, **kwargs
):
26 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
27 Size size=DefaultSize, long style=0,
28 Validator validator=DefaultValidator, String name=wxPyButtonNameStr) -> Button
30 Create and show a button.
32 newobj
= _controls
.new_Button(*args
, **kwargs
)
33 self
.this
= newobj
.this
36 self
._setOORInfo
(self
)
38 def Create(*args
, **kwargs
):
40 Create(Window parent, int id, String label, Point pos=DefaultPosition,
41 Size size=DefaultSize, long style=0,
42 Validator validator=DefaultValidator, String name=wxPyButtonNameStr) -> bool
44 Acutally create the GUI Button for 2-phase creation.
46 return _controls
.Button_Create(*args
, **kwargs
)
48 def SetDefault(*args
, **kwargs
):
52 This sets the button to be the default item for the panel or dialog box.
54 return _controls
.Button_SetDefault(*args
, **kwargs
)
56 def GetDefaultSize(*args
, **kwargs
):
57 """Button.GetDefaultSize() -> Size"""
58 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
60 GetDefaultSize
= staticmethod(GetDefaultSize
)
62 class ButtonPtr(Button
):
63 def __init__(self
, this
):
65 if not hasattr(self
,"thisown"): self
.thisown
= 0
66 self
.__class
__ = Button
67 _controls
.Button_swigregister(ButtonPtr
)
69 def PreButton(*args
, **kwargs
):
73 Precreate a Button for 2-phase creation.
75 val
= _controls
.new_PreButton(*args
, **kwargs
)
79 def Button_GetDefaultSize(*args
, **kwargs
):
80 """Button_GetDefaultSize() -> Size"""
81 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
83 class BitmapButton(Button
):
84 """A Buttont that contains a bitmap."""
86 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
87 def __init__(self
, *args
, **kwargs
):
89 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
90 Size size=DefaultSize, long style=BU_AUTODRAW,
91 Validator validator=DefaultValidator,
92 String name=wxPyButtonNameStr) -> BitmapButton
94 Create and show a button.
96 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
97 self
.this
= newobj
.this
100 self
._setOORInfo
(self
)
102 def Create(*args
, **kwargs
):
104 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
105 Size size=DefaultSize, long style=BU_AUTODRAW,
106 Validator validator=DefaultValidator,
107 String name=wxPyButtonNameStr) -> bool
109 Acutally create the GUI BitmapButton for 2-phase creation.
111 return _controls
.BitmapButton_Create(*args
, **kwargs
)
113 def GetBitmapLabel(*args
, **kwargs
):
115 GetBitmapLabel() -> Bitmap
117 Returns the label bitmap (the one passed to the constructor).
119 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
121 def GetBitmapDisabled(*args
, **kwargs
):
123 GetBitmapDisabled() -> Bitmap
125 Returns the bitmap for the disabled state.
127 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
129 def GetBitmapFocus(*args
, **kwargs
):
131 GetBitmapFocus() -> Bitmap
133 Returns the bitmap for the focused state.
135 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
137 def GetBitmapSelected(*args
, **kwargs
):
139 GetBitmapSelected() -> Bitmap
141 Returns the bitmap for the selected state.
143 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
145 def SetBitmapDisabled(*args
, **kwargs
):
147 SetBitmapDisabled(Bitmap bitmap)
149 Sets the bitmap for the disabled button appearance.
151 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
153 def SetBitmapFocus(*args
, **kwargs
):
155 SetBitmapFocus(Bitmap bitmap)
157 Sets the bitmap for the button appearance when it has the keyboard focus.
159 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
161 def SetBitmapSelected(*args
, **kwargs
):
163 SetBitmapSelected(Bitmap bitmap)
165 Sets the bitmap for the selected (depressed) button appearance.
167 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
169 def SetBitmapLabel(*args
, **kwargs
):
171 SetBitmapLabel(Bitmap bitmap)
173 Sets the bitmap label for the button. This is the bitmap used for the
174 unselected state, and for all other states if no other bitmaps are provided.
176 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
178 def SetMargins(*args
, **kwargs
):
179 """SetMargins(int x, int y)"""
180 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
182 def GetMarginX(*args
, **kwargs
):
183 """GetMarginX() -> int"""
184 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
186 def GetMarginY(*args
, **kwargs
):
187 """GetMarginY() -> int"""
188 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
191 class BitmapButtonPtr(BitmapButton
):
192 def __init__(self
, this
):
194 if not hasattr(self
,"thisown"): self
.thisown
= 0
195 self
.__class
__ = BitmapButton
196 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
198 def PreBitmapButton(*args
, **kwargs
):
200 PreBitmapButton() -> BitmapButton
202 Precreate a BitmapButton for 2-phase creation.
204 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
208 #---------------------------------------------------------------------------
210 CHK_2STATE
= _controls
.CHK_2STATE
211 CHK_3STATE
= _controls
.CHK_3STATE
212 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
213 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
214 CHK_CHECKED
= _controls
.CHK_CHECKED
215 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
216 class CheckBox(core
.Control
):
218 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
219 def __init__(self
, *args
, **kwargs
):
221 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
222 Size size=DefaultSize, long style=0,
223 Validator validator=DefaultValidator, String name=wxPyCheckBoxNameStr) -> CheckBox
225 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
226 self
.this
= newobj
.this
229 self
._setOORInfo
(self
)
231 def Create(*args
, **kwargs
):
233 Create(Window parent, int id, String label, Point pos=DefaultPosition,
234 Size size=DefaultSize, long style=0,
235 Validator validator=DefaultValidator, String name=wxPyCheckBoxNameStr) -> bool
237 return _controls
.CheckBox_Create(*args
, **kwargs
)
239 def GetValue(*args
, **kwargs
):
240 """GetValue() -> bool"""
241 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
243 def IsChecked(*args
, **kwargs
):
244 """IsChecked() -> bool"""
245 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
247 def SetValue(*args
, **kwargs
):
248 """SetValue(bool state)"""
249 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
251 def Get3StateValue(*args
, **kwargs
):
252 """Get3StateValue() -> int"""
253 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
255 def Set3StateValue(*args
, **kwargs
):
256 """Set3StateValue(int state)"""
257 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
259 def Is3State(*args
, **kwargs
):
260 """Is3State() -> bool"""
261 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
263 def Is3rdStateAllowedForUser(*args
, **kwargs
):
264 """Is3rdStateAllowedForUser() -> bool"""
265 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
268 class CheckBoxPtr(CheckBox
):
269 def __init__(self
, this
):
271 if not hasattr(self
,"thisown"): self
.thisown
= 0
272 self
.__class
__ = CheckBox
273 _controls
.CheckBox_swigregister(CheckBoxPtr
)
275 def PreCheckBox(*args
, **kwargs
):
276 """PreCheckBox() -> CheckBox"""
277 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
281 #---------------------------------------------------------------------------
283 class Choice(core
.ControlWithItems
):
285 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
286 def __init__(self
, *args
, **kwargs
):
288 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
289 int choices=0, String choices_array=None,
290 long style=0, Validator validator=DefaultValidator,
291 String name=wxPyChoiceNameStr) -> Choice
293 newobj
= _controls
.new_Choice(*args
, **kwargs
)
294 self
.this
= newobj
.this
297 self
._setOORInfo
(self
)
299 def Create(*args
, **kwargs
):
301 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
302 int choices=0, String choices_array=None,
303 long style=0, Validator validator=DefaultValidator,
304 String name=wxPyChoiceNameStr) -> bool
306 return _controls
.Choice_Create(*args
, **kwargs
)
308 def GetColumns(*args
, **kwargs
):
309 """GetColumns() -> int"""
310 return _controls
.Choice_GetColumns(*args
, **kwargs
)
312 def SetColumns(*args
, **kwargs
):
313 """SetColumns(int n=1)"""
314 return _controls
.Choice_SetColumns(*args
, **kwargs
)
316 def SetSelection(*args
, **kwargs
):
317 """SetSelection(int n)"""
318 return _controls
.Choice_SetSelection(*args
, **kwargs
)
320 def SetStringSelection(*args
, **kwargs
):
321 """SetStringSelection(String string)"""
322 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
324 def SetString(*args
, **kwargs
):
325 """SetString(int n, String s)"""
326 return _controls
.Choice_SetString(*args
, **kwargs
)
329 class ChoicePtr(Choice
):
330 def __init__(self
, this
):
332 if not hasattr(self
,"thisown"): self
.thisown
= 0
333 self
.__class
__ = Choice
334 _controls
.Choice_swigregister(ChoicePtr
)
336 def PreChoice(*args
, **kwargs
):
337 """PreChoice() -> Choice"""
338 val
= _controls
.new_PreChoice(*args
, **kwargs
)
342 #---------------------------------------------------------------------------
344 class ComboBox(core
.Control
,core
.ItemContainer
):
346 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
347 def __init__(self
, *args
, **kwargs
):
349 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
350 Size size=DefaultSize,
351 int choices=0, String choices_array=None,
352 long style=0, Validator validator=DefaultValidator,
353 String name=wxPyComboBoxNameStr) -> ComboBox
355 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
356 self
.this
= newobj
.this
359 self
._setOORInfo
(self
)
361 def Create(*args
, **kwargs
):
363 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
364 Size size=DefaultSize,
365 int choices=0, String choices_array=None,
366 long style=0, Validator validator=DefaultValidator,
367 String name=wxPyComboBoxNameStr) -> bool
369 return _controls
.ComboBox_Create(*args
, **kwargs
)
371 def GetValue(*args
, **kwargs
):
372 """GetValue() -> String"""
373 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
375 def SetValue(*args
, **kwargs
):
376 """SetValue(String value)"""
377 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
379 def Copy(*args
, **kwargs
):
381 return _controls
.ComboBox_Copy(*args
, **kwargs
)
383 def Cut(*args
, **kwargs
):
385 return _controls
.ComboBox_Cut(*args
, **kwargs
)
387 def Paste(*args
, **kwargs
):
389 return _controls
.ComboBox_Paste(*args
, **kwargs
)
391 def SetInsertionPoint(*args
, **kwargs
):
392 """SetInsertionPoint(long pos)"""
393 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
395 def GetInsertionPoint(*args
, **kwargs
):
396 """GetInsertionPoint() -> long"""
397 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
399 def GetLastPosition(*args
, **kwargs
):
400 """GetLastPosition() -> long"""
401 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
403 def Replace(*args
, **kwargs
):
404 """Replace(long from, long to, String value)"""
405 return _controls
.ComboBox_Replace(*args
, **kwargs
)
407 def SetSelection(*args
, **kwargs
):
408 """SetSelection(int n)"""
409 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
411 def SetMark(*args
, **kwargs
):
412 """SetMark(long from, long to)"""
413 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
415 def SetEditable(*args
, **kwargs
):
416 """SetEditable(bool editable)"""
417 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
419 def SetInsertionPointEnd(*args
, **kwargs
):
420 """SetInsertionPointEnd()"""
421 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
423 def Remove(*args
, **kwargs
):
424 """Remove(long from, long to)"""
425 return _controls
.ComboBox_Remove(*args
, **kwargs
)
428 class ComboBoxPtr(ComboBox
):
429 def __init__(self
, this
):
431 if not hasattr(self
,"thisown"): self
.thisown
= 0
432 self
.__class
__ = ComboBox
433 _controls
.ComboBox_swigregister(ComboBoxPtr
)
435 def PreComboBox(*args
, **kwargs
):
436 """PreComboBox() -> ComboBox"""
437 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
441 #---------------------------------------------------------------------------
443 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
444 GA_VERTICAL
= _controls
.GA_VERTICAL
445 GA_SMOOTH
= _controls
.GA_SMOOTH
446 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
447 class Gauge(core
.Control
):
449 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
450 def __init__(self
, *args
, **kwargs
):
452 __init__(Window parent, int id, int range, Point pos=DefaultPosition,
453 Size size=DefaultSize, long style=GA_HORIZONTAL,
454 Validator validator=DefaultValidator,
455 String name=wxPyGaugeNameStr) -> Gauge
457 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
458 self
.this
= newobj
.this
461 self
._setOORInfo
(self
)
463 def Create(*args
, **kwargs
):
465 Create(Window parent, int id, int range, Point pos=DefaultPosition,
466 Size size=DefaultSize, long style=GA_HORIZONTAL,
467 Validator validator=DefaultValidator,
468 String name=wxPyGaugeNameStr) -> bool
470 return _controls
.Gauge_Create(*args
, **kwargs
)
472 def SetRange(*args
, **kwargs
):
473 """SetRange(int range)"""
474 return _controls
.Gauge_SetRange(*args
, **kwargs
)
476 def GetRange(*args
, **kwargs
):
477 """GetRange() -> int"""
478 return _controls
.Gauge_GetRange(*args
, **kwargs
)
480 def SetValue(*args
, **kwargs
):
481 """SetValue(int pos)"""
482 return _controls
.Gauge_SetValue(*args
, **kwargs
)
484 def GetValue(*args
, **kwargs
):
485 """GetValue() -> int"""
486 return _controls
.Gauge_GetValue(*args
, **kwargs
)
488 def IsVertical(*args
, **kwargs
):
489 """IsVertical() -> bool"""
490 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
492 def SetShadowWidth(*args
, **kwargs
):
493 """SetShadowWidth(int w)"""
494 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
496 def GetShadowWidth(*args
, **kwargs
):
497 """GetShadowWidth() -> int"""
498 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
500 def SetBezelFace(*args
, **kwargs
):
501 """SetBezelFace(int w)"""
502 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
504 def GetBezelFace(*args
, **kwargs
):
505 """GetBezelFace() -> int"""
506 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
509 class GaugePtr(Gauge
):
510 def __init__(self
, this
):
512 if not hasattr(self
,"thisown"): self
.thisown
= 0
513 self
.__class
__ = Gauge
514 _controls
.Gauge_swigregister(GaugePtr
)
516 def PreGauge(*args
, **kwargs
):
517 """PreGauge() -> Gauge"""
518 val
= _controls
.new_PreGauge(*args
, **kwargs
)
522 #---------------------------------------------------------------------------
524 class StaticBox(core
.Control
):
526 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
527 def __init__(self
, *args
, **kwargs
):
529 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
530 Size size=DefaultSize, long style=0,
531 String name=wxPyStaticBoxNameStr) -> StaticBox
533 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
534 self
.this
= newobj
.this
537 self
._setOORInfo
(self
)
539 def Create(*args
, **kwargs
):
541 Create(Window parent, int id, String label, Point pos=DefaultPosition,
542 Size size=DefaultSize, long style=0,
543 String name=wxPyStaticBoxNameStr) -> bool
545 return _controls
.StaticBox_Create(*args
, **kwargs
)
548 class StaticBoxPtr(StaticBox
):
549 def __init__(self
, this
):
551 if not hasattr(self
,"thisown"): self
.thisown
= 0
552 self
.__class
__ = StaticBox
553 _controls
.StaticBox_swigregister(StaticBoxPtr
)
555 def PreStaticBox(*args
, **kwargs
):
556 """PreStaticBox() -> StaticBox"""
557 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
561 #---------------------------------------------------------------------------
563 class StaticLine(core
.Control
):
565 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
566 def __init__(self
, *args
, **kwargs
):
568 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
569 long style=LI_HORIZONTAL,
570 String name=wxPyStaticTextNameStr) -> StaticLine
572 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
573 self
.this
= newobj
.this
576 self
._setOORInfo
(self
)
578 def Create(*args
, **kwargs
):
580 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
581 long style=LI_HORIZONTAL,
582 String name=wxPyStaticTextNameStr) -> bool
584 return _controls
.StaticLine_Create(*args
, **kwargs
)
586 def IsVertical(*args
, **kwargs
):
587 """IsVertical() -> bool"""
588 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
590 def GetDefaultSize(*args
, **kwargs
):
591 """StaticLine.GetDefaultSize() -> int"""
592 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
594 GetDefaultSize
= staticmethod(GetDefaultSize
)
596 class StaticLinePtr(StaticLine
):
597 def __init__(self
, this
):
599 if not hasattr(self
,"thisown"): self
.thisown
= 0
600 self
.__class
__ = StaticLine
601 _controls
.StaticLine_swigregister(StaticLinePtr
)
603 def PreStaticLine(*args
, **kwargs
):
604 """PreStaticLine() -> StaticLine"""
605 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
609 def StaticLine_GetDefaultSize(*args
, **kwargs
):
610 """StaticLine_GetDefaultSize() -> int"""
611 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
613 #---------------------------------------------------------------------------
615 class StaticText(core
.Control
):
617 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
618 def __init__(self
, *args
, **kwargs
):
620 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
621 Size size=DefaultSize, long style=0,
622 String name=wxPyStaticTextNameStr) -> StaticText
624 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
625 self
.this
= newobj
.this
628 self
._setOORInfo
(self
)
630 def Create(*args
, **kwargs
):
632 Create(Window parent, int id, String label, Point pos=DefaultPosition,
633 Size size=DefaultSize, long style=0,
634 String name=wxPyStaticTextNameStr) -> bool
636 return _controls
.StaticText_Create(*args
, **kwargs
)
639 class StaticTextPtr(StaticText
):
640 def __init__(self
, this
):
642 if not hasattr(self
,"thisown"): self
.thisown
= 0
643 self
.__class
__ = StaticText
644 _controls
.StaticText_swigregister(StaticTextPtr
)
646 def PreStaticText(*args
, **kwargs
):
647 """PreStaticText() -> StaticText"""
648 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
652 #---------------------------------------------------------------------------
654 class StaticBitmap(core
.Control
):
656 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
657 def __init__(self
, *args
, **kwargs
):
659 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
660 Size size=DefaultSize, long style=0,
661 String name=wxPyStaticBitmapNameStr) -> StaticBitmap
663 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
664 self
.this
= newobj
.this
667 def Create(*args
, **kwargs
):
669 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
670 Size size=DefaultSize, long style=0,
671 String name=wxPyStaticBitmapNameStr) -> bool
673 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
675 def GetBitmap(*args
, **kwargs
):
676 """GetBitmap() -> Bitmap"""
677 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
679 def SetBitmap(*args
, **kwargs
):
680 """SetBitmap(Bitmap bitmap)"""
681 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
683 def SetIcon(*args
, **kwargs
):
684 """SetIcon(wxIcon icon)"""
685 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
688 class StaticBitmapPtr(StaticBitmap
):
689 def __init__(self
, this
):
691 if not hasattr(self
,"thisown"): self
.thisown
= 0
692 self
.__class
__ = StaticBitmap
693 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
695 def PreStaticBitmap(*args
, **kwargs
):
696 """PreStaticBitmap() -> StaticBitmap"""
697 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
701 #---------------------------------------------------------------------------
703 class ListBox(core
.ControlWithItems
):
705 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
706 def __init__(self
, *args
, **kwargs
):
708 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
709 int choices=0, String choices_array=None,
710 long style=0, Validator validator=DefaultValidator,
711 String name=wxPyListBoxNameStr) -> ListBox
713 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
714 self
.this
= newobj
.this
717 self
._setOORInfo
(self
)
719 def Create(*args
, **kwargs
):
721 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
722 int choices=0, String choices_array=None,
723 long style=0, Validator validator=DefaultValidator,
724 String name=wxPyListBoxNameStr) -> bool
726 return _controls
.ListBox_Create(*args
, **kwargs
)
728 def Insert(*args
, **kwargs
):
729 """Insert(String item, int pos, PyObject clientData=None)"""
730 return _controls
.ListBox_Insert(*args
, **kwargs
)
732 def InsertItems(*args
, **kwargs
):
733 """InsertItems(wxArrayString items, int pos)"""
734 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
736 def Set(*args
, **kwargs
):
737 """Set(wxArrayString items)"""
738 return _controls
.ListBox_Set(*args
, **kwargs
)
740 def IsSelected(*args
, **kwargs
):
741 """IsSelected(int n) -> bool"""
742 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
744 def SetSelection(*args
, **kwargs
):
745 """SetSelection(int n, bool select=True)"""
746 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
748 def Select(*args
, **kwargs
):
750 return _controls
.ListBox_Select(*args
, **kwargs
)
752 def Deselect(*args
, **kwargs
):
753 """Deselect(int n)"""
754 return _controls
.ListBox_Deselect(*args
, **kwargs
)
756 def DeselectAll(*args
, **kwargs
):
757 """DeselectAll(int itemToLeaveSelected=-1)"""
758 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
760 def SetStringSelection(*args
, **kwargs
):
761 """SetStringSelection(String s, bool select=True) -> bool"""
762 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
764 def GetSelections(*args
, **kwargs
):
765 """GetSelections() -> PyObject"""
766 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
768 def SetFirstItem(*args
, **kwargs
):
769 """SetFirstItem(int n)"""
770 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
772 def SetFirstItemStr(*args
, **kwargs
):
773 """SetFirstItemStr(String s)"""
774 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
776 def EnsureVisible(*args
, **kwargs
):
777 """EnsureVisible(int n)"""
778 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
780 def AppendAndEnsureVisible(*args
, **kwargs
):
781 """AppendAndEnsureVisible(String s)"""
782 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
784 def IsSorted(*args
, **kwargs
):
785 """IsSorted() -> bool"""
786 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
789 class ListBoxPtr(ListBox
):
790 def __init__(self
, this
):
792 if not hasattr(self
,"thisown"): self
.thisown
= 0
793 self
.__class
__ = ListBox
794 _controls
.ListBox_swigregister(ListBoxPtr
)
796 def PreListBox(*args
, **kwargs
):
797 """PreListBox() -> ListBox"""
798 val
= _controls
.new_PreListBox(*args
, **kwargs
)
802 #---------------------------------------------------------------------------
804 class CheckListBox(ListBox
):
806 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
807 def __init__(self
, *args
, **kwargs
):
809 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
810 int choices=0, String choices_array=None,
811 long style=0, Validator validator=DefaultValidator,
812 String name=wxPyListBoxNameStr) -> CheckListBox
814 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
815 self
.this
= newobj
.this
818 def Create(*args
, **kwargs
):
820 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
821 int choices=0, String choices_array=None,
822 long style=0, Validator validator=DefaultValidator,
823 String name=wxPyListBoxNameStr) -> bool
825 return _controls
.CheckListBox_Create(*args
, **kwargs
)
827 def IsChecked(*args
, **kwargs
):
828 """IsChecked(int index) -> bool"""
829 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
831 def Check(*args
, **kwargs
):
832 """Check(int index, int check=True)"""
833 return _controls
.CheckListBox_Check(*args
, **kwargs
)
835 def GetItemHeight(*args
, **kwargs
):
836 """GetItemHeight() -> int"""
837 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
839 def HitTest(*args
, **kwargs
):
840 """HitTest(Point pt) -> int"""
841 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
843 def HitTestXY(*args
, **kwargs
):
844 """HitTestXY(int x, int y) -> int"""
845 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
848 class CheckListBoxPtr(CheckListBox
):
849 def __init__(self
, this
):
851 if not hasattr(self
,"thisown"): self
.thisown
= 0
852 self
.__class
__ = CheckListBox
853 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
855 def PreCheckListBox(*args
, **kwargs
):
856 """PreCheckListBox() -> CheckListBox"""
857 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
861 #---------------------------------------------------------------------------
863 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
864 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
865 TE_READONLY
= _controls
.TE_READONLY
866 TE_MULTILINE
= _controls
.TE_MULTILINE
867 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
868 TE_LEFT
= _controls
.TE_LEFT
869 TE_CENTER
= _controls
.TE_CENTER
870 TE_RIGHT
= _controls
.TE_RIGHT
871 TE_CENTRE
= _controls
.TE_CENTRE
872 TE_RICH
= _controls
.TE_RICH
873 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
874 TE_PASSWORD
= _controls
.TE_PASSWORD
875 TE_AUTO_URL
= _controls
.TE_AUTO_URL
876 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
877 TE_DONTWRAP
= _controls
.TE_DONTWRAP
878 TE_LINEWRAP
= _controls
.TE_LINEWRAP
879 TE_WORDWRAP
= _controls
.TE_WORDWRAP
880 TE_RICH2
= _controls
.TE_RICH2
881 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
882 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
883 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
884 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
885 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
886 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
887 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
888 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
889 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
890 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
891 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
892 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
893 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
894 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
895 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
896 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
897 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
898 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
899 class TextAttr(object):
901 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
902 def __init__(self
, *args
):
904 __init__() -> TextAttr
905 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
906 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
908 newobj
= _controls
.new_TextAttr(*args
)
909 self
.this
= newobj
.this
912 def Init(*args
, **kwargs
):
914 return _controls
.TextAttr_Init(*args
, **kwargs
)
916 def SetTextColour(*args
, **kwargs
):
917 """SetTextColour(Colour colText)"""
918 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
920 def SetBackgroundColour(*args
, **kwargs
):
921 """SetBackgroundColour(Colour colBack)"""
922 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
924 def SetFont(*args
, **kwargs
):
925 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
926 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
928 def SetAlignment(*args
, **kwargs
):
929 """SetAlignment(int alignment)"""
930 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
932 def SetTabs(*args
, **kwargs
):
933 """SetTabs(wxArrayInt tabs)"""
934 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
936 def SetLeftIndent(*args
, **kwargs
):
937 """SetLeftIndent(int indent)"""
938 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
940 def SetRightIndent(*args
, **kwargs
):
941 """SetRightIndent(int indent)"""
942 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
944 def SetFlags(*args
, **kwargs
):
945 """SetFlags(long flags)"""
946 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
948 def HasTextColour(*args
, **kwargs
):
949 """HasTextColour() -> bool"""
950 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
952 def HasBackgroundColour(*args
, **kwargs
):
953 """HasBackgroundColour() -> bool"""
954 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
956 def HasFont(*args
, **kwargs
):
957 """HasFont() -> bool"""
958 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
960 def HasAlignment(*args
, **kwargs
):
961 """HasAlignment() -> bool"""
962 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
964 def HasTabs(*args
, **kwargs
):
965 """HasTabs() -> bool"""
966 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
968 def HasLeftIndent(*args
, **kwargs
):
969 """HasLeftIndent() -> bool"""
970 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
972 def HasRightIndent(*args
, **kwargs
):
973 """HasRightIndent() -> bool"""
974 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
976 def HasFlag(*args
, **kwargs
):
977 """HasFlag(long flag) -> bool"""
978 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
980 def GetTextColour(*args
, **kwargs
):
981 """GetTextColour() -> Colour"""
982 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
984 def GetBackgroundColour(*args
, **kwargs
):
985 """GetBackgroundColour() -> Colour"""
986 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
988 def GetFont(*args
, **kwargs
):
989 """GetFont() -> Font"""
990 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
992 def GetAlignment(*args
, **kwargs
):
993 """GetAlignment() -> int"""
994 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
996 def GetTabs(*args
, **kwargs
):
997 """GetTabs() -> wxArrayInt"""
998 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1000 def GetLeftIndent(*args
, **kwargs
):
1001 """GetLeftIndent() -> long"""
1002 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1004 def GetRightIndent(*args
, **kwargs
):
1005 """GetRightIndent() -> long"""
1006 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1008 def GetFlags(*args
, **kwargs
):
1009 """GetFlags() -> long"""
1010 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1012 def IsDefault(*args
, **kwargs
):
1013 """IsDefault() -> bool"""
1014 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1016 def Combine(*args
, **kwargs
):
1017 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1018 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1020 Combine
= staticmethod(Combine
)
1022 class TextAttrPtr(TextAttr
):
1023 def __init__(self
, this
):
1025 if not hasattr(self
,"thisown"): self
.thisown
= 0
1026 self
.__class
__ = TextAttr
1027 _controls
.TextAttr_swigregister(TextAttrPtr
)
1029 def TextAttr_Combine(*args
, **kwargs
):
1030 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1031 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1033 class TextCtrl(core
.Control
):
1035 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1036 def __init__(self
, *args
, **kwargs
):
1038 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1039 Size size=DefaultSize,
1040 long style=0, Validator validator=DefaultValidator,
1041 String name=wxPyTextCtrlNameStr) -> TextCtrl
1043 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1044 self
.this
= newobj
.this
1047 self
._setOORInfo
(self
)
1049 def Create(*args
, **kwargs
):
1051 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1052 Size size=DefaultSize,
1053 long style=0, Validator validator=DefaultValidator,
1054 String name=wxPyTextCtrlNameStr) -> bool
1056 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1058 def GetValue(*args
, **kwargs
):
1059 """GetValue() -> String"""
1060 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1062 def SetValue(*args
, **kwargs
):
1063 """SetValue(String value)"""
1064 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1066 def GetRange(*args
, **kwargs
):
1067 """GetRange(long from, long to) -> String"""
1068 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1070 def GetLineLength(*args
, **kwargs
):
1071 """GetLineLength(long lineNo) -> int"""
1072 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1074 def GetLineText(*args
, **kwargs
):
1075 """GetLineText(long lineNo) -> String"""
1076 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1078 def GetNumberOfLines(*args
, **kwargs
):
1079 """GetNumberOfLines() -> int"""
1080 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1082 def IsModified(*args
, **kwargs
):
1083 """IsModified() -> bool"""
1084 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1086 def IsEditable(*args
, **kwargs
):
1087 """IsEditable() -> bool"""
1088 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1090 def IsSingleLine(*args
, **kwargs
):
1091 """IsSingleLine() -> bool"""
1092 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1094 def IsMultiLine(*args
, **kwargs
):
1095 """IsMultiLine() -> bool"""
1096 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1098 def GetSelection(*args
, **kwargs
):
1100 GetSelection() -> (from, to)
1102 If the return values from and to are the same, there is no selection.
1104 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1106 def GetStringSelection(*args
, **kwargs
):
1107 """GetStringSelection() -> String"""
1108 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1110 def Clear(*args
, **kwargs
):
1112 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1114 def Replace(*args
, **kwargs
):
1115 """Replace(long from, long to, String value)"""
1116 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1118 def Remove(*args
, **kwargs
):
1119 """Remove(long from, long to)"""
1120 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1122 def LoadFile(*args
, **kwargs
):
1123 """LoadFile(String file) -> bool"""
1124 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1126 def SaveFile(*args
, **kwargs
):
1127 """SaveFile(String file=EmptyString) -> bool"""
1128 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1130 def MarkDirty(*args
, **kwargs
):
1132 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1134 def DiscardEdits(*args
, **kwargs
):
1135 """DiscardEdits()"""
1136 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1138 def SetMaxLength(*args
, **kwargs
):
1139 """SetMaxLength(unsigned long len)"""
1140 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1142 def WriteText(*args
, **kwargs
):
1143 """WriteText(String text)"""
1144 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1146 def AppendText(*args
, **kwargs
):
1147 """AppendText(String text)"""
1148 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1150 def EmulateKeyPress(*args
, **kwargs
):
1151 """EmulateKeyPress(KeyEvent event) -> bool"""
1152 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1154 def SetStyle(*args
, **kwargs
):
1155 """SetStyle(long start, long end, TextAttr style) -> bool"""
1156 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1158 def GetStyle(*args
, **kwargs
):
1159 """GetStyle(long position, TextAttr style) -> bool"""
1160 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1162 def SetDefaultStyle(*args
, **kwargs
):
1163 """SetDefaultStyle(TextAttr style) -> bool"""
1164 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1166 def GetDefaultStyle(*args
, **kwargs
):
1167 """GetDefaultStyle() -> TextAttr"""
1168 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1170 def XYToPosition(*args
, **kwargs
):
1171 """XYToPosition(long x, long y) -> long"""
1172 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1174 def PositionToXY(*args
, **kwargs
):
1175 """PositionToXY(long pos) -> (x, y)"""
1176 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1178 def ShowPosition(*args
, **kwargs
):
1179 """ShowPosition(long pos)"""
1180 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1182 def Copy(*args
, **kwargs
):
1184 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1186 def Cut(*args
, **kwargs
):
1188 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1190 def Paste(*args
, **kwargs
):
1192 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1194 def CanCopy(*args
, **kwargs
):
1195 """CanCopy() -> bool"""
1196 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1198 def CanCut(*args
, **kwargs
):
1199 """CanCut() -> bool"""
1200 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1202 def CanPaste(*args
, **kwargs
):
1203 """CanPaste() -> bool"""
1204 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1206 def Undo(*args
, **kwargs
):
1208 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1210 def Redo(*args
, **kwargs
):
1212 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1214 def CanUndo(*args
, **kwargs
):
1215 """CanUndo() -> bool"""
1216 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1218 def CanRedo(*args
, **kwargs
):
1219 """CanRedo() -> bool"""
1220 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1222 def SetInsertionPoint(*args
, **kwargs
):
1223 """SetInsertionPoint(long pos)"""
1224 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1226 def SetInsertionPointEnd(*args
, **kwargs
):
1227 """SetInsertionPointEnd()"""
1228 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1230 def GetInsertionPoint(*args
, **kwargs
):
1231 """GetInsertionPoint() -> long"""
1232 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1234 def GetLastPosition(*args
, **kwargs
):
1235 """GetLastPosition() -> long"""
1236 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1238 def SetSelection(*args
, **kwargs
):
1239 """SetSelection(long from, long to)"""
1240 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1242 def SelectAll(*args
, **kwargs
):
1244 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1246 def SetEditable(*args
, **kwargs
):
1247 """SetEditable(bool editable)"""
1248 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1250 def write(*args
, **kwargs
):
1251 """write(String text)"""
1252 return _controls
.TextCtrl_write(*args
, **kwargs
)
1254 def GetString(*args
, **kwargs
):
1255 """GetString(long from, long to) -> String"""
1256 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1259 class TextCtrlPtr(TextCtrl
):
1260 def __init__(self
, this
):
1262 if not hasattr(self
,"thisown"): self
.thisown
= 0
1263 self
.__class
__ = TextCtrl
1264 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1266 def PreTextCtrl(*args
, **kwargs
):
1267 """PreTextCtrl() -> TextCtrl"""
1268 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1272 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1273 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1274 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1275 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1276 class TextUrlEvent(core
.CommandEvent
):
1278 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1279 def __init__(self
, *args
, **kwargs
):
1280 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1281 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1282 self
.this
= newobj
.this
1285 def GetMouseEvent(*args
, **kwargs
):
1286 """GetMouseEvent() -> MouseEvent"""
1287 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1289 def GetURLStart(*args
, **kwargs
):
1290 """GetURLStart() -> long"""
1291 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1293 def GetURLEnd(*args
, **kwargs
):
1294 """GetURLEnd() -> long"""
1295 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1298 class TextUrlEventPtr(TextUrlEvent
):
1299 def __init__(self
, this
):
1301 if not hasattr(self
,"thisown"): self
.thisown
= 0
1302 self
.__class
__ = TextUrlEvent
1303 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1305 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1306 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1307 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1308 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1310 #---------------------------------------------------------------------------
1312 class ScrollBar(core
.Control
):
1314 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1315 def __init__(self
, *args
, **kwargs
):
1317 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1318 Size size=DefaultSize, long style=SB_HORIZONTAL,
1319 Validator validator=DefaultValidator, String name=wxPyScrollBarNameStr) -> ScrollBar
1321 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1322 self
.this
= newobj
.this
1325 self
._setOORInfo
(self
)
1327 def Create(*args
, **kwargs
):
1329 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1330 Size size=DefaultSize, long style=SB_HORIZONTAL,
1331 Validator validator=DefaultValidator, String name=wxPyScrollBarNameStr) -> bool
1333 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1335 def GetThumbPosition(*args
, **kwargs
):
1336 """GetThumbPosition() -> int"""
1337 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1339 def GetThumbSize(*args
, **kwargs
):
1340 """GetThumbSize() -> int"""
1341 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1343 GetThumbLength
= GetThumbSize
1344 def GetPageSize(*args
, **kwargs
):
1345 """GetPageSize() -> int"""
1346 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1348 def GetRange(*args
, **kwargs
):
1349 """GetRange() -> int"""
1350 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1352 def IsVertical(*args
, **kwargs
):
1353 """IsVertical() -> bool"""
1354 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1356 def SetThumbPosition(*args
, **kwargs
):
1357 """SetThumbPosition(int viewStart)"""
1358 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1360 def SetScrollbar(*args
, **kwargs
):
1362 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1365 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1368 class ScrollBarPtr(ScrollBar
):
1369 def __init__(self
, this
):
1371 if not hasattr(self
,"thisown"): self
.thisown
= 0
1372 self
.__class
__ = ScrollBar
1373 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1375 def PreScrollBar(*args
, **kwargs
):
1376 """PreScrollBar() -> ScrollBar"""
1377 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1381 #---------------------------------------------------------------------------
1383 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1384 SP_VERTICAL
= _controls
.SP_VERTICAL
1385 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1386 SP_WRAP
= _controls
.SP_WRAP
1387 class SpinButton(core
.Control
):
1389 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1390 def __init__(self
, *args
, **kwargs
):
1392 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1393 Size size=DefaultSize, long style=SP_HORIZONTAL,
1394 String name=wxPySPIN_BUTTON_NAME) -> SpinButton
1396 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1397 self
.this
= newobj
.this
1400 self
._setOORInfo
(self
)
1402 def Create(*args
, **kwargs
):
1404 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1405 Size size=DefaultSize, long style=SP_HORIZONTAL,
1406 String name=wxPySPIN_BUTTON_NAME) -> bool
1408 return _controls
.SpinButton_Create(*args
, **kwargs
)
1410 def GetValue(*args
, **kwargs
):
1411 """GetValue() -> int"""
1412 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1414 def GetMin(*args
, **kwargs
):
1415 """GetMin() -> int"""
1416 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1418 def GetMax(*args
, **kwargs
):
1419 """GetMax() -> int"""
1420 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1422 def SetValue(*args
, **kwargs
):
1423 """SetValue(int val)"""
1424 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1426 def SetMin(*args
, **kwargs
):
1427 """SetMin(int minVal)"""
1428 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1430 def SetMax(*args
, **kwargs
):
1431 """SetMax(int maxVal)"""
1432 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1434 def SetRange(*args
, **kwargs
):
1435 """SetRange(int minVal, int maxVal)"""
1436 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1438 def IsVertical(*args
, **kwargs
):
1439 """IsVertical() -> bool"""
1440 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1443 class SpinButtonPtr(SpinButton
):
1444 def __init__(self
, this
):
1446 if not hasattr(self
,"thisown"): self
.thisown
= 0
1447 self
.__class
__ = SpinButton
1448 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1450 def PreSpinButton(*args
, **kwargs
):
1451 """PreSpinButton() -> SpinButton"""
1452 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1456 class SpinCtrl(core
.Control
):
1458 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1459 def __init__(self
, *args
, **kwargs
):
1461 __init__(Window parent, int id=-1, String value=EmptyString,
1462 Point pos=DefaultPosition, Size size=DefaultSize,
1463 long style=SP_ARROW_KEYS, int min=0, int max=100,
1464 int initial=0, String name=wxPySpinCtrlNameStr) -> SpinCtrl
1466 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1467 self
.this
= newobj
.this
1470 self
._setOORInfo
(self
)
1472 def Create(*args
, **kwargs
):
1474 Create(Window parent, int id=-1, String value=EmptyString,
1475 Point pos=DefaultPosition, Size size=DefaultSize,
1476 long style=SP_ARROW_KEYS, int min=0, int max=100,
1477 int initial=0, String name=wxPySpinCtrlNameStr) -> bool
1479 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1481 def GetValue(*args
, **kwargs
):
1482 """GetValue() -> int"""
1483 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1485 def SetValue(*args
, **kwargs
):
1486 """SetValue(int value)"""
1487 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1489 def SetValueString(*args
, **kwargs
):
1490 """SetValueString(String text)"""
1491 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1493 def SetRange(*args
, **kwargs
):
1494 """SetRange(int minVal, int maxVal)"""
1495 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1497 def GetMin(*args
, **kwargs
):
1498 """GetMin() -> int"""
1499 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1501 def GetMax(*args
, **kwargs
):
1502 """GetMax() -> int"""
1503 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1505 def SetSelection(*args
, **kwargs
):
1506 """SetSelection(long from, long to)"""
1507 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1510 class SpinCtrlPtr(SpinCtrl
):
1511 def __init__(self
, this
):
1513 if not hasattr(self
,"thisown"): self
.thisown
= 0
1514 self
.__class
__ = SpinCtrl
1515 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1517 def PreSpinCtrl(*args
, **kwargs
):
1518 """PreSpinCtrl() -> SpinCtrl"""
1519 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1523 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1524 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1526 #---------------------------------------------------------------------------
1528 class RadioBox(core
.Control
):
1530 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1531 def __init__(self
, *args
, **kwargs
):
1533 __init__(Window parent, int id, String label, Point point=DefaultPosition,
1534 Size size=DefaultSize, int choices=0,
1535 String choices_array=None, int majorDimension=0,
1536 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1537 String name=wxPyRadioBoxNameStr) -> RadioBox
1539 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1540 self
.this
= newobj
.this
1543 self
._setOORInfo
(self
)
1545 def Create(*args
, **kwargs
):
1547 Create(Window parent, int id, String label, Point point=DefaultPosition,
1548 Size size=DefaultSize, int choices=0,
1549 String choices_array=None, int majorDimension=0,
1550 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1551 String name=wxPyRadioBoxNameStr) -> bool
1553 return _controls
.RadioBox_Create(*args
, **kwargs
)
1555 def SetSelection(*args
, **kwargs
):
1556 """SetSelection(int n)"""
1557 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1559 def GetSelection(*args
, **kwargs
):
1560 """GetSelection() -> int"""
1561 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1563 def GetStringSelection(*args
, **kwargs
):
1564 """GetStringSelection() -> String"""
1565 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1567 def SetStringSelection(*args
, **kwargs
):
1568 """SetStringSelection(String s) -> bool"""
1569 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1571 def GetCount(*args
, **kwargs
):
1572 """GetCount() -> int"""
1573 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1575 def FindString(*args
, **kwargs
):
1576 """FindString(String s) -> int"""
1577 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1579 def GetString(*args
, **kwargs
):
1580 """GetString(int n) -> String"""
1581 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1583 def SetString(*args
, **kwargs
):
1584 """SetString(int n, String label)"""
1585 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1587 GetItemLabel
= GetString
1588 SetItemLabel
= SetString
1589 def EnableItem(*args
, **kwargs
):
1590 """EnableItem(int n, bool enable=True)"""
1591 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1593 def ShowItem(*args
, **kwargs
):
1594 """ShowItem(int n, bool show=True)"""
1595 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1597 def GetColumnCount(*args
, **kwargs
):
1598 """GetColumnCount() -> int"""
1599 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1601 def GetRowCount(*args
, **kwargs
):
1602 """GetRowCount() -> int"""
1603 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1605 def GetNextItem(*args
, **kwargs
):
1606 """GetNextItem(int item, int dir, long style) -> int"""
1607 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1610 class RadioBoxPtr(RadioBox
):
1611 def __init__(self
, this
):
1613 if not hasattr(self
,"thisown"): self
.thisown
= 0
1614 self
.__class
__ = RadioBox
1615 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1617 def PreRadioBox(*args
, **kwargs
):
1618 """PreRadioBox() -> RadioBox"""
1619 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1623 #---------------------------------------------------------------------------
1625 class RadioButton(core
.Control
):
1627 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1628 def __init__(self
, *args
, **kwargs
):
1630 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1631 Size size=DefaultSize, long style=0,
1632 Validator validator=DefaultValidator, String name=wxPyRadioButtonNameStr) -> RadioButton
1634 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1635 self
.this
= newobj
.this
1638 self
._setOORInfo
(self
)
1640 def Create(*args
, **kwargs
):
1642 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1643 Size size=DefaultSize, long style=0,
1644 Validator validator=DefaultValidator, String name=wxPyRadioButtonNameStr) -> bool
1646 return _controls
.RadioButton_Create(*args
, **kwargs
)
1648 def GetValue(*args
, **kwargs
):
1649 """GetValue() -> bool"""
1650 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1652 def SetValue(*args
, **kwargs
):
1653 """SetValue(bool value)"""
1654 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1657 class RadioButtonPtr(RadioButton
):
1658 def __init__(self
, this
):
1660 if not hasattr(self
,"thisown"): self
.thisown
= 0
1661 self
.__class
__ = RadioButton
1662 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1664 def PreRadioButton(*args
, **kwargs
):
1665 """PreRadioButton() -> RadioButton"""
1666 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1670 #---------------------------------------------------------------------------
1672 class Slider(core
.Control
):
1674 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1675 def __init__(self
, *args
, **kwargs
):
1677 __init__(Window parent, int id, int value, int minValue, int maxValue,
1678 Point point=DefaultPosition, Size size=DefaultSize,
1679 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1680 String name=wxPySliderNameStr) -> Slider
1682 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1683 self
.this
= newobj
.this
1686 self
._setOORInfo
(self
)
1688 def Create(*args
, **kwargs
):
1690 Create(Window parent, int id, int value, int minValue, int maxValue,
1691 Point point=DefaultPosition, Size size=DefaultSize,
1692 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1693 String name=wxPySliderNameStr) -> bool
1695 return _controls
.Slider_Create(*args
, **kwargs
)
1697 def GetValue(*args
, **kwargs
):
1698 """GetValue() -> int"""
1699 return _controls
.Slider_GetValue(*args
, **kwargs
)
1701 def SetValue(*args
, **kwargs
):
1702 """SetValue(int value)"""
1703 return _controls
.Slider_SetValue(*args
, **kwargs
)
1705 def SetRange(*args
, **kwargs
):
1706 """SetRange(int minValue, int maxValue)"""
1707 return _controls
.Slider_SetRange(*args
, **kwargs
)
1709 def GetMin(*args
, **kwargs
):
1710 """GetMin() -> int"""
1711 return _controls
.Slider_GetMin(*args
, **kwargs
)
1713 def GetMax(*args
, **kwargs
):
1714 """GetMax() -> int"""
1715 return _controls
.Slider_GetMax(*args
, **kwargs
)
1717 def SetMin(*args
, **kwargs
):
1718 """SetMin(int minValue)"""
1719 return _controls
.Slider_SetMin(*args
, **kwargs
)
1721 def SetMax(*args
, **kwargs
):
1722 """SetMax(int maxValue)"""
1723 return _controls
.Slider_SetMax(*args
, **kwargs
)
1725 def SetLineSize(*args
, **kwargs
):
1726 """SetLineSize(int lineSize)"""
1727 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1729 def SetPageSize(*args
, **kwargs
):
1730 """SetPageSize(int pageSize)"""
1731 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1733 def GetLineSize(*args
, **kwargs
):
1734 """GetLineSize() -> int"""
1735 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1737 def GetPageSize(*args
, **kwargs
):
1738 """GetPageSize() -> int"""
1739 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1741 def SetThumbLength(*args
, **kwargs
):
1742 """SetThumbLength(int lenPixels)"""
1743 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1745 def GetThumbLength(*args
, **kwargs
):
1746 """GetThumbLength() -> int"""
1747 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1749 def SetTickFreq(*args
, **kwargs
):
1750 """SetTickFreq(int n, int pos)"""
1751 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1753 def GetTickFreq(*args
, **kwargs
):
1754 """GetTickFreq() -> int"""
1755 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1757 def ClearTicks(*args
, **kwargs
):
1759 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1761 def SetTick(*args
, **kwargs
):
1762 """SetTick(int tickPos)"""
1763 return _controls
.Slider_SetTick(*args
, **kwargs
)
1765 def ClearSel(*args
, **kwargs
):
1767 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1769 def GetSelEnd(*args
, **kwargs
):
1770 """GetSelEnd() -> int"""
1771 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1773 def GetSelStart(*args
, **kwargs
):
1774 """GetSelStart() -> int"""
1775 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1777 def SetSelection(*args
, **kwargs
):
1778 """SetSelection(int min, int max)"""
1779 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1782 class SliderPtr(Slider
):
1783 def __init__(self
, this
):
1785 if not hasattr(self
,"thisown"): self
.thisown
= 0
1786 self
.__class
__ = Slider
1787 _controls
.Slider_swigregister(SliderPtr
)
1789 def PreSlider(*args
, **kwargs
):
1790 """PreSlider() -> Slider"""
1791 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1795 #---------------------------------------------------------------------------
1797 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1798 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1800 class ToggleButton(core
.Control
):
1802 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1803 def __init__(self
, *args
, **kwargs
):
1805 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1806 Size size=DefaultSize, long style=0,
1807 Validator validator=DefaultValidator, String name=wxPyToggleButtonNameStr) -> ToggleButton
1809 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1810 self
.this
= newobj
.this
1813 self
._setOORInfo
(self
)
1815 def Create(*args
, **kwargs
):
1817 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1818 Size size=DefaultSize, long style=0,
1819 Validator validator=DefaultValidator, String name=wxPyToggleButtonNameStr) -> bool
1821 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1823 def SetValue(*args
, **kwargs
):
1824 """SetValue(bool value)"""
1825 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1827 def GetValue(*args
, **kwargs
):
1828 """GetValue() -> bool"""
1829 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1831 def SetLabel(*args
, **kwargs
):
1832 """SetLabel(String label)"""
1833 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1836 class ToggleButtonPtr(ToggleButton
):
1837 def __init__(self
, this
):
1839 if not hasattr(self
,"thisown"): self
.thisown
= 0
1840 self
.__class
__ = ToggleButton
1841 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1843 def PreToggleButton(*args
, **kwargs
):
1844 """PreToggleButton() -> ToggleButton"""
1845 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1849 #---------------------------------------------------------------------------
1851 class BookCtrl(core
.Control
):
1852 def __init__(self
): raise RuntimeError, "No constructor defined"
1854 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1855 def GetPageCount(*args
, **kwargs
):
1856 """GetPageCount() -> size_t"""
1857 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1859 def GetPage(*args
, **kwargs
):
1860 """GetPage(size_t n) -> Window"""
1861 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1863 def GetSelection(*args
, **kwargs
):
1864 """GetSelection() -> int"""
1865 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1867 def SetPageText(*args
, **kwargs
):
1868 """SetPageText(size_t n, String strText) -> bool"""
1869 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1871 def GetPageText(*args
, **kwargs
):
1872 """GetPageText(size_t n) -> String"""
1873 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1875 def SetImageList(*args
, **kwargs
):
1876 """SetImageList(wxImageList imageList)"""
1877 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1879 def AssignImageList(*args
, **kwargs
):
1880 """AssignImageList(wxImageList imageList)"""
1881 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1885 def GetImageList(*args
, **kwargs
):
1886 """GetImageList() -> wxImageList"""
1887 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1889 def GetPageImage(*args
, **kwargs
):
1890 """GetPageImage(size_t n) -> int"""
1891 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1893 def SetPageImage(*args
, **kwargs
):
1894 """SetPageImage(size_t n, int imageId) -> bool"""
1895 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1897 def SetPageSize(*args
, **kwargs
):
1898 """SetPageSize(Size size)"""
1899 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1901 def CalcSizeFromPage(*args
, **kwargs
):
1902 """CalcSizeFromPage(Size sizePage) -> Size"""
1903 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1905 def DeletePage(*args
, **kwargs
):
1906 """DeletePage(size_t n) -> bool"""
1907 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1909 def RemovePage(*args
, **kwargs
):
1910 """RemovePage(size_t n) -> bool"""
1911 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1913 def DeleteAllPages(*args
, **kwargs
):
1914 """DeleteAllPages() -> bool"""
1915 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1917 def AddPage(*args
, **kwargs
):
1918 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
1919 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1921 def InsertPage(*args
, **kwargs
):
1923 InsertPage(size_t n, Window page, String text, bool select=False,
1924 int imageId=-1) -> bool
1926 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1928 def SetSelection(*args
, **kwargs
):
1929 """SetSelection(size_t n) -> int"""
1930 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1932 def AdvanceSelection(*args
, **kwargs
):
1933 """AdvanceSelection(bool forward=True)"""
1934 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1937 class BookCtrlPtr(BookCtrl
):
1938 def __init__(self
, this
):
1940 if not hasattr(self
,"thisown"): self
.thisown
= 0
1941 self
.__class
__ = BookCtrl
1942 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1944 class BookCtrlEvent(core
.NotifyEvent
):
1946 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1947 def __init__(self
, *args
, **kwargs
):
1949 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1950 int nOldSel=-1) -> BookCtrlEvent
1952 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1953 self
.this
= newobj
.this
1956 def GetSelection(*args
, **kwargs
):
1957 """GetSelection() -> int"""
1958 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1960 def SetSelection(*args
, **kwargs
):
1961 """SetSelection(int nSel)"""
1962 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
1964 def GetOldSelection(*args
, **kwargs
):
1965 """GetOldSelection() -> int"""
1966 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
1968 def SetOldSelection(*args
, **kwargs
):
1969 """SetOldSelection(int nOldSel)"""
1970 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
1973 class BookCtrlEventPtr(BookCtrlEvent
):
1974 def __init__(self
, this
):
1976 if not hasattr(self
,"thisown"): self
.thisown
= 0
1977 self
.__class
__ = BookCtrlEvent
1978 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
1980 #---------------------------------------------------------------------------
1982 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
1983 NB_TOP
= _controls
.NB_TOP
1984 NB_LEFT
= _controls
.NB_LEFT
1985 NB_RIGHT
= _controls
.NB_RIGHT
1986 NB_BOTTOM
= _controls
.NB_BOTTOM
1987 NB_MULTILINE
= _controls
.NB_MULTILINE
1988 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
1989 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
1990 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
1991 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
1992 class Notebook(BookCtrl
):
1994 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1995 def __init__(self
, *args
, **kwargs
):
1997 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1998 long style=0, String name=wxPyNOTEBOOK_NAME) -> Notebook
2000 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2001 self
.this
= newobj
.this
2004 self
._setOORInfo
(self
)
2006 def Create(*args
, **kwargs
):
2008 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2009 long style=0, String name=wxPyNOTEBOOK_NAME) -> bool
2011 return _controls
.Notebook_Create(*args
, **kwargs
)
2013 def GetRowCount(*args
, **kwargs
):
2014 """GetRowCount() -> int"""
2015 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2017 def SetPadding(*args
, **kwargs
):
2018 """SetPadding(Size padding)"""
2019 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2021 def SetTabSize(*args
, **kwargs
):
2022 """SetTabSize(Size sz)"""
2023 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2025 def HitTest(*args
, **kwargs
):
2027 HitTest(Point pt) -> (tab, where)
2029 Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.
2031 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2033 def CalcSizeFromPage(*args
, **kwargs
):
2034 """CalcSizeFromPage(Size sizePage) -> Size"""
2035 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2038 class NotebookPtr(Notebook
):
2039 def __init__(self
, this
):
2041 if not hasattr(self
,"thisown"): self
.thisown
= 0
2042 self
.__class
__ = Notebook
2043 _controls
.Notebook_swigregister(NotebookPtr
)
2045 def PreNotebook(*args
, **kwargs
):
2046 """PreNotebook() -> Notebook"""
2047 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2051 class NotebookEvent(BookCtrlEvent
):
2053 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2054 def __init__(self
, *args
, **kwargs
):
2056 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2057 int nOldSel=-1) -> NotebookEvent
2059 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2060 self
.this
= newobj
.this
2064 class NotebookEventPtr(NotebookEvent
):
2065 def __init__(self
, this
):
2067 if not hasattr(self
,"thisown"): self
.thisown
= 0
2068 self
.__class
__ = NotebookEvent
2069 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2071 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2072 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2074 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2075 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2077 #----------------------------------------------------------------------------
2079 class NotebookPage(wx
.Panel
):
2081 There is an old (and apparently unsolvable) bug when placing a
2082 window with a nonstandard background colour in a wxNotebook on
2083 wxGTK, as the notbooks's background colour would always be used
2084 when the window is refreshed. The solution is to place a panel in
2085 the notbook and the coloured window on the panel, sized to cover
2086 the panel. This simple class does that for you, just put an
2087 instance of this in the notebook and make your regular window a
2088 child of this one and it will handle the resize for you.
2090 def __init__(self
, parent
, id=-1,
2091 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2092 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2093 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2095 EVT_SIZE(self
, self
.OnSize
)
2097 def OnSize(self
, evt
):
2098 if self
.child
is None:
2099 children
= self
.GetChildren()
2101 self
.child
= children
[0]
2103 self
.child
.SetPosition((0,0))
2104 self
.child
.SetSize(self
.GetSize())
2107 #---------------------------------------------------------------------------
2109 LB_DEFAULT
= _controls
.LB_DEFAULT
2110 LB_TOP
= _controls
.LB_TOP
2111 LB_BOTTOM
= _controls
.LB_BOTTOM
2112 LB_LEFT
= _controls
.LB_LEFT
2113 LB_RIGHT
= _controls
.LB_RIGHT
2114 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2115 class Listbook(BookCtrl
):
2117 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2118 def __init__(self
, *args
, **kwargs
):
2120 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2121 long style=0, String name=EmptyString) -> Listbook
2123 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2124 self
.this
= newobj
.this
2127 self
._setOORInfo
(self
)
2129 def Create(*args
, **kwargs
):
2131 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2132 long style=0, String name=EmptyString) -> bool
2134 return _controls
.Listbook_Create(*args
, **kwargs
)
2136 def IsVertical(*args
, **kwargs
):
2137 """IsVertical() -> bool"""
2138 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2141 class ListbookPtr(Listbook
):
2142 def __init__(self
, this
):
2144 if not hasattr(self
,"thisown"): self
.thisown
= 0
2145 self
.__class
__ = Listbook
2146 _controls
.Listbook_swigregister(ListbookPtr
)
2148 def PreListbook(*args
, **kwargs
):
2149 """PreListbook() -> Listbook"""
2150 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2154 class ListbookEvent(BookCtrlEvent
):
2156 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2157 def __init__(self
, *args
, **kwargs
):
2159 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2160 int nOldSel=-1) -> ListbookEvent
2162 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2163 self
.this
= newobj
.this
2167 class ListbookEventPtr(ListbookEvent
):
2168 def __init__(self
, this
):
2170 if not hasattr(self
,"thisown"): self
.thisown
= 0
2171 self
.__class
__ = ListbookEvent
2172 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2174 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2175 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2176 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2177 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2179 #---------------------------------------------------------------------------
2181 class BookCtrlSizer(core
.Sizer
):
2183 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2184 def __init__(self
, *args
, **kwargs
):
2185 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2186 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2187 self
.this
= newobj
.this
2190 self
._setOORInfo
(self
)
2192 def RecalcSizes(*args
, **kwargs
):
2194 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2196 def CalcMin(*args
, **kwargs
):
2197 """CalcMin() -> Size"""
2198 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2200 def GetControl(*args
, **kwargs
):
2201 """GetControl() -> BookCtrl"""
2202 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2205 class BookCtrlSizerPtr(BookCtrlSizer
):
2206 def __init__(self
, this
):
2208 if not hasattr(self
,"thisown"): self
.thisown
= 0
2209 self
.__class
__ = BookCtrlSizer
2210 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2212 class NotebookSizer(core
.Sizer
):
2214 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2215 def __init__(self
, *args
, **kwargs
):
2216 """__init__(Notebook nb) -> NotebookSizer"""
2217 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2218 self
.this
= newobj
.this
2221 self
._setOORInfo
(self
)
2223 def RecalcSizes(*args
, **kwargs
):
2225 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2227 def CalcMin(*args
, **kwargs
):
2228 """CalcMin() -> Size"""
2229 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2231 def GetNotebook(*args
, **kwargs
):
2232 """GetNotebook() -> Notebook"""
2233 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2236 class NotebookSizerPtr(NotebookSizer
):
2237 def __init__(self
, this
):
2239 if not hasattr(self
,"thisown"): self
.thisown
= 0
2240 self
.__class
__ = NotebookSizer
2241 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2243 #---------------------------------------------------------------------------
2245 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2246 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2247 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2248 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2249 TB_VERTICAL
= _controls
.TB_VERTICAL
2250 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2251 TB_FLAT
= _controls
.TB_FLAT
2252 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2253 TB_NOICONS
= _controls
.TB_NOICONS
2254 TB_TEXT
= _controls
.TB_TEXT
2255 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2256 TB_NOALIGN
= _controls
.TB_NOALIGN
2257 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2258 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2259 class ToolBarToolBase(core
.Object
):
2260 def __init__(self
): raise RuntimeError, "No constructor defined"
2262 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2263 def GetId(*args
, **kwargs
):
2264 """GetId() -> int"""
2265 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2267 def GetControl(*args
, **kwargs
):
2268 """GetControl() -> Control"""
2269 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2271 def GetToolBar(*args
, **kwargs
):
2272 """GetToolBar() -> ToolBarBase"""
2273 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2275 def IsButton(*args
, **kwargs
):
2276 """IsButton() -> int"""
2277 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2279 def IsControl(*args
, **kwargs
):
2280 """IsControl() -> int"""
2281 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2283 def IsSeparator(*args
, **kwargs
):
2284 """IsSeparator() -> int"""
2285 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2287 def GetStyle(*args
, **kwargs
):
2288 """GetStyle() -> int"""
2289 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2291 def GetKind(*args
, **kwargs
):
2292 """GetKind() -> int"""
2293 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2295 def IsEnabled(*args
, **kwargs
):
2296 """IsEnabled() -> bool"""
2297 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2299 def IsToggled(*args
, **kwargs
):
2300 """IsToggled() -> bool"""
2301 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2303 def CanBeToggled(*args
, **kwargs
):
2304 """CanBeToggled() -> bool"""
2305 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2307 def GetNormalBitmap(*args
, **kwargs
):
2308 """GetNormalBitmap() -> Bitmap"""
2309 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2311 def GetDisabledBitmap(*args
, **kwargs
):
2312 """GetDisabledBitmap() -> Bitmap"""
2313 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2315 def GetBitmap(*args
, **kwargs
):
2316 """GetBitmap() -> Bitmap"""
2317 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2319 def GetLabel(*args
, **kwargs
):
2320 """GetLabel() -> String"""
2321 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2323 def GetShortHelp(*args
, **kwargs
):
2324 """GetShortHelp() -> String"""
2325 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2327 def GetLongHelp(*args
, **kwargs
):
2328 """GetLongHelp() -> String"""
2329 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2331 def Enable(*args
, **kwargs
):
2332 """Enable(bool enable) -> bool"""
2333 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2335 def Toggle(*args
, **kwargs
):
2337 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2339 def SetToggle(*args
, **kwargs
):
2340 """SetToggle(bool toggle) -> bool"""
2341 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2343 def SetShortHelp(*args
, **kwargs
):
2344 """SetShortHelp(String help) -> bool"""
2345 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2347 def SetLongHelp(*args
, **kwargs
):
2348 """SetLongHelp(String help) -> bool"""
2349 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2351 def SetNormalBitmap(*args
, **kwargs
):
2352 """SetNormalBitmap(Bitmap bmp)"""
2353 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2355 def SetDisabledBitmap(*args
, **kwargs
):
2356 """SetDisabledBitmap(Bitmap bmp)"""
2357 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2359 def SetLabel(*args
, **kwargs
):
2360 """SetLabel(String label)"""
2361 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2363 def Detach(*args
, **kwargs
):
2365 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2367 def Attach(*args
, **kwargs
):
2368 """Attach(ToolBarBase tbar)"""
2369 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2371 def GetClientData(*args
, **kwargs
):
2372 """GetClientData() -> PyObject"""
2373 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2375 def SetClientData(*args
, **kwargs
):
2376 """SetClientData(PyObject clientData)"""
2377 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2379 GetBitmap1
= GetNormalBitmap
2380 GetBitmap2
= GetDisabledBitmap
2381 SetBitmap1
= SetNormalBitmap
2382 SetBitmap2
= SetDisabledBitmap
2385 class ToolBarToolBasePtr(ToolBarToolBase
):
2386 def __init__(self
, this
):
2388 if not hasattr(self
,"thisown"): self
.thisown
= 0
2389 self
.__class
__ = ToolBarToolBase
2390 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2392 class ToolBarBase(core
.Control
):
2393 def __init__(self
): raise RuntimeError, "No constructor defined"
2395 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2396 def DoAddTool(*args
, **kwargs
):
2398 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2399 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2400 String longHelp=EmptyString,
2401 PyObject clientData=None) -> ToolBarToolBase
2403 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2405 def DoInsertTool(*args
, **kwargs
):
2407 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2408 int kind=ITEM_NORMAL,
2409 String shortHelp=EmptyString, String longHelp=EmptyString,
2410 PyObject clientData=None) -> ToolBarToolBase
2412 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2414 # These match the original Add methods for this class, kept for
2415 # backwards compatibility with versions < 2.3.3.
2418 def AddTool(self
, id, bitmap
,
2419 pushedBitmap
= wx
.NullBitmap
,
2422 shortHelpString
= '',
2423 longHelpString
= '') :
2424 '''Old style method to add a tool to the toolbar.'''
2425 kind
= wx
.ITEM_NORMAL
2426 if isToggle
: kind
= wx
.ITEM_CHECK
2427 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2428 shortHelpString
, longHelpString
, clientData
)
2430 def AddSimpleTool(self
, id, bitmap
,
2431 shortHelpString
= '',
2432 longHelpString
= '',
2434 '''Old style method to add a tool to the toolbar.'''
2435 kind
= wx
.ITEM_NORMAL
2436 if isToggle
: kind
= wx
.ITEM_CHECK
2437 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2438 shortHelpString
, longHelpString
, None)
2440 def InsertTool(self
, pos
, id, bitmap
,
2441 pushedBitmap
= wx
.NullBitmap
,
2444 shortHelpString
= '',
2445 longHelpString
= ''):
2446 '''Old style method to insert a tool in the toolbar.'''
2447 kind
= wx
.ITEM_NORMAL
2448 if isToggle
: kind
= wx
.ITEM_CHECK
2449 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2450 shortHelpString
, longHelpString
, clientData
)
2452 def InsertSimpleTool(self
, pos
, id, bitmap
,
2453 shortHelpString
= '',
2454 longHelpString
= '',
2456 '''Old style method to insert a tool in the toolbar.'''
2457 kind
= wx
.ITEM_NORMAL
2458 if isToggle
: kind
= wx
.ITEM_CHECK
2459 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2460 shortHelpString
, longHelpString
, None)
2463 # The following are the new toolbar Add methods starting with
2464 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2465 # able to keep backwards compatibility with using the above
2466 # methods. Eventually these should migrate to be the methods used
2467 # primarily and lose the 'Label' in the name...
2469 def AddLabelTool(self
, id, label
, bitmap
,
2470 bmpDisabled
= wx
.NullBitmap
,
2471 kind
= wx
.ITEM_NORMAL
,
2472 shortHelp
= '', longHelp
= '',
2475 The full AddTool() function.
2477 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2478 is created and used as the disabled image.
2480 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2481 shortHelp
, longHelp
, clientData
)
2484 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2485 bmpDisabled
= wx
.NullBitmap
,
2486 kind
= wx
.ITEM_NORMAL
,
2487 shortHelp
= '', longHelp
= '',
2490 Insert the new tool at the given position, if pos == GetToolsCount(), it
2491 is equivalent to AddTool()
2493 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2494 shortHelp
, longHelp
, clientData
)
2496 def AddCheckLabelTool(self
, id, label
, bitmap
,
2497 bmpDisabled
= wx
.NullBitmap
,
2498 shortHelp
= '', longHelp
= '',
2500 '''Add a check tool, i.e. a tool which can be toggled'''
2501 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2502 shortHelp
, longHelp
, clientData
)
2504 def AddRadioLabelTool(self
, id, label
, bitmap
,
2505 bmpDisabled
= wx
.NullBitmap
,
2506 shortHelp
= '', longHelp
= '',
2509 Add a radio tool, i.e. a tool which can be toggled and releases any
2510 other toggled radio tools in the same group when it happens
2512 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2513 shortHelp
, longHelp
, clientData
)
2516 # For consistency with the backwards compatible methods above, here are
2517 # some non-'Label' versions of the Check and Radio methods
2518 def AddCheckTool(self
, id, bitmap
,
2519 bmpDisabled
= wx
.NullBitmap
,
2520 shortHelp
= '', longHelp
= '',
2522 '''Add a check tool, i.e. a tool which can be toggled'''
2523 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2524 shortHelp
, longHelp
, clientData
)
2526 def AddRadioTool(self
, id, bitmap
,
2527 bmpDisabled
= wx
.NullBitmap
,
2528 shortHelp
= '', longHelp
= '',
2531 Add a radio tool, i.e. a tool which can be toggled and releases any
2532 other toggled radio tools in the same group when it happens
2534 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2535 shortHelp
, longHelp
, clientData
)
2537 def AddToolItem(*args
, **kwargs
):
2538 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2539 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2541 def InsertToolItem(*args
, **kwargs
):
2542 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2543 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2545 def AddControl(*args
, **kwargs
):
2546 """AddControl(Control control) -> ToolBarToolBase"""
2547 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2549 def InsertControl(*args
, **kwargs
):
2550 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2551 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2553 def FindControl(*args
, **kwargs
):
2554 """FindControl(int id) -> Control"""
2555 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2557 def AddSeparator(*args
, **kwargs
):
2558 """AddSeparator() -> ToolBarToolBase"""
2559 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2561 def InsertSeparator(*args
, **kwargs
):
2562 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2563 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2565 def RemoveTool(*args
, **kwargs
):
2566 """RemoveTool(int id) -> ToolBarToolBase"""
2567 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2569 def DeleteToolByPos(*args
, **kwargs
):
2570 """DeleteToolByPos(size_t pos) -> bool"""
2571 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2573 def DeleteTool(*args
, **kwargs
):
2574 """DeleteTool(int id) -> bool"""
2575 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2577 def ClearTools(*args
, **kwargs
):
2579 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2581 def Realize(*args
, **kwargs
):
2582 """Realize() -> bool"""
2583 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2585 def EnableTool(*args
, **kwargs
):
2586 """EnableTool(int id, bool enable)"""
2587 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2589 def ToggleTool(*args
, **kwargs
):
2590 """ToggleTool(int id, bool toggle)"""
2591 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2593 def SetToggle(*args
, **kwargs
):
2594 """SetToggle(int id, bool toggle)"""
2595 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2597 def GetToolClientData(*args
, **kwargs
):
2598 """GetToolClientData(int id) -> PyObject"""
2599 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2601 def SetToolClientData(*args
, **kwargs
):
2602 """SetToolClientData(int id, PyObject clientData)"""
2603 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2605 def GetToolPos(*args
, **kwargs
):
2606 """GetToolPos(int id) -> int"""
2607 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2609 def GetToolState(*args
, **kwargs
):
2610 """GetToolState(int id) -> bool"""
2611 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2613 def GetToolEnabled(*args
, **kwargs
):
2614 """GetToolEnabled(int id) -> bool"""
2615 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2617 def SetToolShortHelp(*args
, **kwargs
):
2618 """SetToolShortHelp(int id, String helpString)"""
2619 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2621 def GetToolShortHelp(*args
, **kwargs
):
2622 """GetToolShortHelp(int id) -> String"""
2623 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2625 def SetToolLongHelp(*args
, **kwargs
):
2626 """SetToolLongHelp(int id, String helpString)"""
2627 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2629 def GetToolLongHelp(*args
, **kwargs
):
2630 """GetToolLongHelp(int id) -> String"""
2631 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2633 def SetMarginsXY(*args
, **kwargs
):
2634 """SetMarginsXY(int x, int y)"""
2635 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2637 def SetMargins(*args
, **kwargs
):
2638 """SetMargins(Size size)"""
2639 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2641 def SetToolPacking(*args
, **kwargs
):
2642 """SetToolPacking(int packing)"""
2643 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2645 def SetToolSeparation(*args
, **kwargs
):
2646 """SetToolSeparation(int separation)"""
2647 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2649 def GetToolMargins(*args
, **kwargs
):
2650 """GetToolMargins() -> Size"""
2651 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2653 def GetMargins(*args
, **kwargs
):
2654 """GetMargins() -> Size"""
2655 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2657 def GetToolPacking(*args
, **kwargs
):
2658 """GetToolPacking() -> int"""
2659 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2661 def GetToolSeparation(*args
, **kwargs
):
2662 """GetToolSeparation() -> int"""
2663 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2665 def SetRows(*args
, **kwargs
):
2666 """SetRows(int nRows)"""
2667 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2669 def SetMaxRowsCols(*args
, **kwargs
):
2670 """SetMaxRowsCols(int rows, int cols)"""
2671 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2673 def GetMaxRows(*args
, **kwargs
):
2674 """GetMaxRows() -> int"""
2675 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2677 def GetMaxCols(*args
, **kwargs
):
2678 """GetMaxCols() -> int"""
2679 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2681 def SetToolBitmapSize(*args
, **kwargs
):
2682 """SetToolBitmapSize(Size size)"""
2683 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2685 def GetToolBitmapSize(*args
, **kwargs
):
2686 """GetToolBitmapSize() -> Size"""
2687 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2689 def GetToolSize(*args
, **kwargs
):
2690 """GetToolSize() -> Size"""
2691 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2693 def FindToolForPosition(*args
, **kwargs
):
2694 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2695 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2697 def FindById(*args
, **kwargs
):
2698 """FindById(int toolid) -> ToolBarToolBase"""
2699 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2701 def IsVertical(*args
, **kwargs
):
2702 """IsVertical() -> bool"""
2703 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2706 class ToolBarBasePtr(ToolBarBase
):
2707 def __init__(self
, this
):
2709 if not hasattr(self
,"thisown"): self
.thisown
= 0
2710 self
.__class
__ = ToolBarBase
2711 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2713 class ToolBar(ToolBarBase
):
2715 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2716 def __init__(self
, *args
, **kwargs
):
2718 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2719 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2720 String name=wxPyToolBarNameStr) -> ToolBar
2722 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2723 self
.this
= newobj
.this
2726 self
._setOORInfo
(self
)
2728 def Create(*args
, **kwargs
):
2730 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2731 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2732 String name=wxPyToolBarNameStr) -> bool
2734 return _controls
.ToolBar_Create(*args
, **kwargs
)
2736 def FindToolForPosition(*args
, **kwargs
):
2737 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2738 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2741 class ToolBarPtr(ToolBar
):
2742 def __init__(self
, this
):
2744 if not hasattr(self
,"thisown"): self
.thisown
= 0
2745 self
.__class
__ = ToolBar
2746 _controls
.ToolBar_swigregister(ToolBarPtr
)
2748 def PreToolBar(*args
, **kwargs
):
2749 """PreToolBar() -> ToolBar"""
2750 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2754 #---------------------------------------------------------------------------
2756 LC_VRULES
= _controls
.LC_VRULES
2757 LC_HRULES
= _controls
.LC_HRULES
2758 LC_ICON
= _controls
.LC_ICON
2759 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2760 LC_LIST
= _controls
.LC_LIST
2761 LC_REPORT
= _controls
.LC_REPORT
2762 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2763 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2764 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2765 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2766 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2767 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2768 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2769 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2770 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2771 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2772 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2773 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2774 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2775 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2776 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2777 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2778 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2779 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2780 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2781 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2782 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2783 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2784 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2785 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2786 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2787 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2788 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2789 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2790 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2791 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2792 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2793 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2794 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2795 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2796 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2797 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2798 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2799 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2800 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2801 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2802 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2803 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2804 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2805 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2806 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2807 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2808 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2809 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2810 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2811 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2812 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2813 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2814 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2815 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2816 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2817 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2818 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2819 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2820 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2821 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2822 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2823 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2824 #---------------------------------------------------------------------------
2826 class ListItemAttr(object):
2828 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2829 def __init__(self
, *args
, **kwargs
):
2831 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
2832 Font font=wxNullFont) -> ListItemAttr
2834 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2835 self
.this
= newobj
.this
2838 def SetTextColour(*args
, **kwargs
):
2839 """SetTextColour(Colour colText)"""
2840 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2842 def SetBackgroundColour(*args
, **kwargs
):
2843 """SetBackgroundColour(Colour colBack)"""
2844 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2846 def SetFont(*args
, **kwargs
):
2847 """SetFont(Font font)"""
2848 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2850 def HasTextColour(*args
, **kwargs
):
2851 """HasTextColour() -> bool"""
2852 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2854 def HasBackgroundColour(*args
, **kwargs
):
2855 """HasBackgroundColour() -> bool"""
2856 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2858 def HasFont(*args
, **kwargs
):
2859 """HasFont() -> bool"""
2860 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2862 def GetTextColour(*args
, **kwargs
):
2863 """GetTextColour() -> Colour"""
2864 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2866 def GetBackgroundColour(*args
, **kwargs
):
2867 """GetBackgroundColour() -> Colour"""
2868 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2870 def GetFont(*args
, **kwargs
):
2871 """GetFont() -> Font"""
2872 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2874 def Destroy(*args
, **kwargs
):
2876 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2879 class ListItemAttrPtr(ListItemAttr
):
2880 def __init__(self
, this
):
2882 if not hasattr(self
,"thisown"): self
.thisown
= 0
2883 self
.__class
__ = ListItemAttr
2884 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2886 #---------------------------------------------------------------------------
2888 class ListItem(core
.Object
):
2890 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2891 def __init__(self
, *args
, **kwargs
):
2892 """__init__() -> ListItem"""
2893 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2894 self
.this
= newobj
.this
2897 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2900 if self
.thisown
: destroy(self
)
2903 def Clear(*args
, **kwargs
):
2905 return _controls
.ListItem_Clear(*args
, **kwargs
)
2907 def ClearAttributes(*args
, **kwargs
):
2908 """ClearAttributes()"""
2909 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2911 def SetMask(*args
, **kwargs
):
2912 """SetMask(long mask)"""
2913 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2915 def SetId(*args
, **kwargs
):
2916 """SetId(long id)"""
2917 return _controls
.ListItem_SetId(*args
, **kwargs
)
2919 def SetColumn(*args
, **kwargs
):
2920 """SetColumn(int col)"""
2921 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2923 def SetState(*args
, **kwargs
):
2924 """SetState(long state)"""
2925 return _controls
.ListItem_SetState(*args
, **kwargs
)
2927 def SetStateMask(*args
, **kwargs
):
2928 """SetStateMask(long stateMask)"""
2929 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2931 def SetText(*args
, **kwargs
):
2932 """SetText(String text)"""
2933 return _controls
.ListItem_SetText(*args
, **kwargs
)
2935 def SetImage(*args
, **kwargs
):
2936 """SetImage(int image)"""
2937 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2939 def SetData(*args
, **kwargs
):
2940 """SetData(long data)"""
2941 return _controls
.ListItem_SetData(*args
, **kwargs
)
2943 def SetWidth(*args
, **kwargs
):
2944 """SetWidth(int width)"""
2945 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2947 def SetAlign(*args
, **kwargs
):
2948 """SetAlign(int align)"""
2949 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2951 def SetTextColour(*args
, **kwargs
):
2952 """SetTextColour(Colour colText)"""
2953 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2955 def SetBackgroundColour(*args
, **kwargs
):
2956 """SetBackgroundColour(Colour colBack)"""
2957 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
2959 def SetFont(*args
, **kwargs
):
2960 """SetFont(Font font)"""
2961 return _controls
.ListItem_SetFont(*args
, **kwargs
)
2963 def GetMask(*args
, **kwargs
):
2964 """GetMask() -> long"""
2965 return _controls
.ListItem_GetMask(*args
, **kwargs
)
2967 def GetId(*args
, **kwargs
):
2968 """GetId() -> long"""
2969 return _controls
.ListItem_GetId(*args
, **kwargs
)
2971 def GetColumn(*args
, **kwargs
):
2972 """GetColumn() -> int"""
2973 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
2975 def GetState(*args
, **kwargs
):
2976 """GetState() -> long"""
2977 return _controls
.ListItem_GetState(*args
, **kwargs
)
2979 def GetText(*args
, **kwargs
):
2980 """GetText() -> String"""
2981 return _controls
.ListItem_GetText(*args
, **kwargs
)
2983 def GetImage(*args
, **kwargs
):
2984 """GetImage() -> int"""
2985 return _controls
.ListItem_GetImage(*args
, **kwargs
)
2987 def GetData(*args
, **kwargs
):
2988 """GetData() -> long"""
2989 return _controls
.ListItem_GetData(*args
, **kwargs
)
2991 def GetWidth(*args
, **kwargs
):
2992 """GetWidth() -> int"""
2993 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
2995 def GetAlign(*args
, **kwargs
):
2996 """GetAlign() -> int"""
2997 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
2999 def GetAttributes(*args
, **kwargs
):
3000 """GetAttributes() -> ListItemAttr"""
3001 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3003 def HasAttributes(*args
, **kwargs
):
3004 """HasAttributes() -> bool"""
3005 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3007 def GetTextColour(*args
, **kwargs
):
3008 """GetTextColour() -> Colour"""
3009 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3011 def GetBackgroundColour(*args
, **kwargs
):
3012 """GetBackgroundColour() -> Colour"""
3013 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3015 def GetFont(*args
, **kwargs
):
3016 """GetFont() -> Font"""
3017 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3019 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3020 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3021 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3022 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3023 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3024 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3025 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3026 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3027 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3028 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3030 class ListItemPtr(ListItem
):
3031 def __init__(self
, this
):
3033 if not hasattr(self
,"thisown"): self
.thisown
= 0
3034 self
.__class
__ = ListItem
3035 _controls
.ListItem_swigregister(ListItemPtr
)
3037 #---------------------------------------------------------------------------
3039 class ListEvent(core
.NotifyEvent
):
3041 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3042 def __init__(self
, *args
, **kwargs
):
3043 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3044 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3045 self
.this
= newobj
.this
3048 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3049 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3050 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3051 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3052 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3053 m_item
= property(_controls
.ListEvent_m_item_get
)
3054 def GetKeyCode(*args
, **kwargs
):
3055 """GetKeyCode() -> int"""
3056 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3058 GetCode
= GetKeyCode
3059 def GetIndex(*args
, **kwargs
):
3060 """GetIndex() -> long"""
3061 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3063 def GetColumn(*args
, **kwargs
):
3064 """GetColumn() -> int"""
3065 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3067 def GetPoint(*args
, **kwargs
):
3068 """GetPoint() -> Point"""
3069 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3071 GetPosition
= GetPoint
3072 def GetLabel(*args
, **kwargs
):
3073 """GetLabel() -> String"""
3074 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3076 def GetText(*args
, **kwargs
):
3077 """GetText() -> String"""
3078 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3080 def GetImage(*args
, **kwargs
):
3081 """GetImage() -> int"""
3082 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3084 def GetData(*args
, **kwargs
):
3085 """GetData() -> long"""
3086 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3088 def GetMask(*args
, **kwargs
):
3089 """GetMask() -> long"""
3090 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3092 def GetItem(*args
, **kwargs
):
3093 """GetItem() -> ListItem"""
3094 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3096 def GetCacheFrom(*args
, **kwargs
):
3097 """GetCacheFrom() -> long"""
3098 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3100 def GetCacheTo(*args
, **kwargs
):
3101 """GetCacheTo() -> long"""
3102 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3104 def IsEditCancelled(*args
, **kwargs
):
3105 """IsEditCancelled() -> bool"""
3106 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3108 def SetEditCanceled(*args
, **kwargs
):
3109 """SetEditCanceled(bool editCancelled)"""
3110 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3113 class ListEventPtr(ListEvent
):
3114 def __init__(self
, this
):
3116 if not hasattr(self
,"thisown"): self
.thisown
= 0
3117 self
.__class
__ = ListEvent
3118 _controls
.ListEvent_swigregister(ListEventPtr
)
3120 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3121 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3122 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3123 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3124 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3125 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3126 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3127 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3128 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3129 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3130 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3131 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3132 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3133 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3134 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3135 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3136 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3137 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3138 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3139 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3140 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3141 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3142 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3143 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3144 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3145 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3146 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3147 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3148 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3149 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3150 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3151 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3152 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3153 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3154 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3155 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3156 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3157 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3158 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3159 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3160 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3161 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3162 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3163 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3165 #---------------------------------------------------------------------------
3167 class ListCtrl(core
.Control
):
3169 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3170 def __init__(self
, *args
, **kwargs
):
3172 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3173 Size size=DefaultSize, long style=LC_ICON,
3174 Validator validator=DefaultValidator, String name=wxPyListCtrlNameStr) -> ListCtrl
3176 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3177 self
.this
= newobj
.this
3180 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3182 def Create(*args
, **kwargs
):
3184 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3185 Size size=DefaultSize, long style=LC_ICON,
3186 Validator validator=DefaultValidator, String name=wxPyListCtrlNameStr) -> bool
3188 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3190 def _setCallbackInfo(*args
, **kwargs
):
3191 """_setCallbackInfo(PyObject self, PyObject _class)"""
3192 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3194 def SetForegroundColour(*args
, **kwargs
):
3195 """SetForegroundColour(Colour col) -> bool"""
3196 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3198 def SetBackgroundColour(*args
, **kwargs
):
3199 """SetBackgroundColour(Colour col) -> bool"""
3200 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3202 def GetColumn(*args
, **kwargs
):
3203 """GetColumn(int col) -> ListItem"""
3204 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3205 if val
is not None: val
.thisown
= 1
3208 def SetColumn(*args
, **kwargs
):
3209 """SetColumn(int col, ListItem item) -> bool"""
3210 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3212 def GetColumnWidth(*args
, **kwargs
):
3213 """GetColumnWidth(int col) -> int"""
3214 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3216 def SetColumnWidth(*args
, **kwargs
):
3217 """SetColumnWidth(int col, int width) -> bool"""
3218 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3220 def GetCountPerPage(*args
, **kwargs
):
3221 """GetCountPerPage() -> int"""
3222 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3224 def GetViewRect(*args
, **kwargs
):
3225 """GetViewRect() -> Rect"""
3226 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3228 def GetItem(*args
, **kwargs
):
3229 """GetItem(long itemId, int col=0) -> ListItem"""
3230 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3231 if val
is not None: val
.thisown
= 1
3234 def SetItem(*args
, **kwargs
):
3235 """SetItem(ListItem info) -> bool"""
3236 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3238 def SetStringItem(*args
, **kwargs
):
3239 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3240 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3242 def GetItemState(*args
, **kwargs
):
3243 """GetItemState(long item, long stateMask) -> int"""
3244 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3246 def SetItemState(*args
, **kwargs
):
3247 """SetItemState(long item, long state, long stateMask) -> bool"""
3248 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3250 def SetItemImage(*args
, **kwargs
):
3251 """SetItemImage(long item, int image, int selImage) -> bool"""
3252 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3254 def GetItemText(*args
, **kwargs
):
3255 """GetItemText(long item) -> String"""
3256 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3258 def SetItemText(*args
, **kwargs
):
3259 """SetItemText(long item, String str)"""
3260 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3262 def GetItemData(*args
, **kwargs
):
3263 """GetItemData(long item) -> long"""
3264 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3266 def SetItemData(*args
, **kwargs
):
3267 """SetItemData(long item, long data) -> bool"""
3268 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3270 def GetItemPosition(*args
, **kwargs
):
3271 """GetItemPosition(long item) -> Point"""
3272 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3274 def GetItemRect(*args
, **kwargs
):
3275 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3276 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3278 def SetItemPosition(*args
, **kwargs
):
3279 """SetItemPosition(long item, Point pos) -> bool"""
3280 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3282 def GetItemCount(*args
, **kwargs
):
3283 """GetItemCount() -> int"""
3284 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3286 def GetColumnCount(*args
, **kwargs
):
3287 """GetColumnCount() -> int"""
3288 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3290 def GetItemSpacing(*args
, **kwargs
):
3291 """GetItemSpacing() -> Size"""
3292 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3294 def SetItemSpacing(*args
, **kwargs
):
3295 """SetItemSpacing(int spacing, bool isSmall=False)"""
3296 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3298 def GetSelectedItemCount(*args
, **kwargs
):
3299 """GetSelectedItemCount() -> int"""
3300 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3302 def GetTextColour(*args
, **kwargs
):
3303 """GetTextColour() -> Colour"""
3304 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3306 def SetTextColour(*args
, **kwargs
):
3307 """SetTextColour(Colour col)"""
3308 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3310 def GetTopItem(*args
, **kwargs
):
3311 """GetTopItem() -> long"""
3312 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3314 def SetSingleStyle(*args
, **kwargs
):
3315 """SetSingleStyle(long style, bool add=True)"""
3316 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3318 def SetWindowStyleFlag(*args
, **kwargs
):
3319 """SetWindowStyleFlag(long style)"""
3320 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3322 def GetNextItem(*args
, **kwargs
):
3323 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3324 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3326 def GetImageList(*args
, **kwargs
):
3327 """GetImageList(int which) -> wxImageList"""
3328 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3330 def SetImageList(*args
, **kwargs
):
3331 """SetImageList(wxImageList imageList, int which)"""
3332 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3334 def AssignImageList(*args
, **kwargs
):
3335 """AssignImageList(wxImageList imageList, int which)"""
3336 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3340 def IsVirtual(*args
, **kwargs
):
3341 """IsVirtual() -> bool"""
3342 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3344 def RefreshItem(*args
, **kwargs
):
3345 """RefreshItem(long item)"""
3346 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3348 def RefreshItems(*args
, **kwargs
):
3349 """RefreshItems(long itemFrom, long itemTo)"""
3350 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3352 def Arrange(*args
, **kwargs
):
3353 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3354 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3356 def DeleteItem(*args
, **kwargs
):
3357 """DeleteItem(long item) -> bool"""
3358 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3360 def DeleteAllItems(*args
, **kwargs
):
3361 """DeleteAllItems() -> bool"""
3362 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3364 def DeleteColumn(*args
, **kwargs
):
3365 """DeleteColumn(int col) -> bool"""
3366 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3368 def DeleteAllColumns(*args
, **kwargs
):
3369 """DeleteAllColumns() -> bool"""
3370 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3372 def ClearAll(*args
, **kwargs
):
3374 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3376 def EditLabel(*args
, **kwargs
):
3377 """EditLabel(long item)"""
3378 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3380 def EnsureVisible(*args
, **kwargs
):
3381 """EnsureVisible(long item) -> bool"""
3382 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3384 def FindItem(*args
, **kwargs
):
3385 """FindItem(long start, String str, bool partial=False) -> long"""
3386 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3388 def FindItemData(*args
, **kwargs
):
3389 """FindItemData(long start, long data) -> long"""
3390 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3392 def FindItemAtPos(*args
, **kwargs
):
3393 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3394 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3396 def HitTest(*args
, **kwargs
):
3398 HitTest(Point point) -> (item, where)
3400 Determines which item (if any) is at the specified point,
3401 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3403 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3405 def InsertItem(*args
, **kwargs
):
3406 """InsertItem(ListItem info) -> long"""
3407 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3409 def InsertStringItem(*args
, **kwargs
):
3410 """InsertStringItem(long index, String label) -> long"""
3411 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3413 def InsertImageItem(*args
, **kwargs
):
3414 """InsertImageItem(long index, int imageIndex) -> long"""
3415 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3417 def InsertImageStringItem(*args
, **kwargs
):
3418 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3419 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3421 def InsertColumnInfo(*args
, **kwargs
):
3422 """InsertColumnInfo(long col, ListItem info) -> long"""
3423 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3425 def InsertColumn(*args
, **kwargs
):
3427 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3428 int width=-1) -> long
3430 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3432 def SetItemCount(*args
, **kwargs
):
3433 """SetItemCount(long count)"""
3434 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3436 def ScrollList(*args
, **kwargs
):
3437 """ScrollList(int dx, int dy) -> bool"""
3438 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3440 def SetItemTextColour(*args
, **kwargs
):
3441 """SetItemTextColour(long item, Colour col)"""
3442 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3444 def GetItemTextColour(*args
, **kwargs
):
3445 """GetItemTextColour(long item) -> Colour"""
3446 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3448 def SetItemBackgroundColour(*args
, **kwargs
):
3449 """SetItemBackgroundColour(long item, Colour col)"""
3450 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3452 def GetItemBackgroundColour(*args
, **kwargs
):
3453 """GetItemBackgroundColour(long item) -> Colour"""
3454 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3458 def Select(self
, idx
, on
=1):
3459 '''[de]select an item'''
3460 if on
: state
= wx
.LIST_STATE_SELECTED
3462 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3464 def Focus(self
, idx
):
3465 '''Focus and show the given item'''
3466 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3467 self
.EnsureVisible(idx
)
3469 def GetFocusedItem(self
):
3470 '''get the currently focused item or -1 if none'''
3471 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3473 def GetFirstSelected(self
, *args
):
3474 '''return first selected item, or -1 when none'''
3475 return self
.GetNextSelected(-1)
3477 def GetNextSelected(self
, item
):
3478 '''return subsequent selected items, or -1 when no more'''
3479 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3481 def IsSelected(self
, idx
):
3482 '''return True if the item is selected'''
3483 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3485 def SetColumnImage(self
, col
, image
):
3486 item
= self
.GetColumn(col
)
3487 # preserve all other attributes too
3488 item
.SetMask( wx
.LIST_MASK_STATE |
3490 wx
.LIST_MASK_IMAGE |
3493 wx
.LIST_MASK_WIDTH |
3494 wx
.LIST_MASK_FORMAT
)
3495 item
.SetImage(image
)
3496 self
.SetColumn(col
, item
)
3498 def ClearColumnImage(self
, col
):
3499 self
.SetColumnImage(col
, -1)
3501 def Append(self
, entry
):
3502 '''Append an item to the list control. The entry parameter should be a
3503 sequence with an item for each column'''
3509 pos
= self
.GetItemCount()
3510 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3511 for i
in range(1, len(entry
)):
3512 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3515 def SortItems(*args
, **kwargs
):
3516 """SortItems(PyObject func) -> bool"""
3517 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3519 def GetMainWindow(*args
, **kwargs
):
3520 """GetMainWindow() -> Window"""
3521 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3524 class ListCtrlPtr(ListCtrl
):
3525 def __init__(self
, this
):
3527 if not hasattr(self
,"thisown"): self
.thisown
= 0
3528 self
.__class
__ = ListCtrl
3529 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3531 def PreListCtrl(*args
, **kwargs
):
3532 """PreListCtrl() -> ListCtrl"""
3533 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3537 #---------------------------------------------------------------------------
3539 class ListView(ListCtrl
):
3541 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3542 def __init__(self
, *args
, **kwargs
):
3544 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3545 Size size=DefaultSize, long style=LC_REPORT,
3546 Validator validator=DefaultValidator, String name=wxPyListCtrlNameStr) -> ListView
3548 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3549 self
.this
= newobj
.this
3552 self
._setOORInfo
(self
)
3554 def Create(*args
, **kwargs
):
3556 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3557 Size size=DefaultSize, long style=LC_REPORT,
3558 Validator validator=DefaultValidator, String name=wxPyListCtrlNameStr) -> bool
3560 return _controls
.ListView_Create(*args
, **kwargs
)
3562 def Select(*args
, **kwargs
):
3563 """Select(long n, bool on=True)"""
3564 return _controls
.ListView_Select(*args
, **kwargs
)
3566 def Focus(*args
, **kwargs
):
3567 """Focus(long index)"""
3568 return _controls
.ListView_Focus(*args
, **kwargs
)
3570 def GetFocusedItem(*args
, **kwargs
):
3571 """GetFocusedItem() -> long"""
3572 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3574 def GetNextSelected(*args
, **kwargs
):
3575 """GetNextSelected(long item) -> long"""
3576 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3578 def GetFirstSelected(*args
, **kwargs
):
3579 """GetFirstSelected() -> long"""
3580 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3582 def IsSelected(*args
, **kwargs
):
3583 """IsSelected(long index) -> bool"""
3584 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3586 def SetColumnImage(*args
, **kwargs
):
3587 """SetColumnImage(int col, int image)"""
3588 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3590 def ClearColumnImage(*args
, **kwargs
):
3591 """ClearColumnImage(int col)"""
3592 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3595 class ListViewPtr(ListView
):
3596 def __init__(self
, this
):
3598 if not hasattr(self
,"thisown"): self
.thisown
= 0
3599 self
.__class
__ = ListView
3600 _controls
.ListView_swigregister(ListViewPtr
)
3602 def PreListView(*args
, **kwargs
):
3603 """PreListView() -> ListView"""
3604 val
= _controls
.new_PreListView(*args
, **kwargs
)
3608 #---------------------------------------------------------------------------
3610 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3611 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3612 TR_NO_LINES
= _controls
.TR_NO_LINES
3613 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3614 TR_SINGLE
= _controls
.TR_SINGLE
3615 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3616 TR_EXTENDED
= _controls
.TR_EXTENDED
3617 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3618 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3619 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3620 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3621 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3622 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3623 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3624 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3625 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3626 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3627 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3628 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3629 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3630 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3631 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3632 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3633 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3634 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3635 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3636 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3637 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3638 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3639 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3640 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3641 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3642 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3643 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3644 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3645 #---------------------------------------------------------------------------
3647 class TreeItemId(object):
3649 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3650 def __init__(self
, *args
, **kwargs
):
3651 """__init__() -> TreeItemId"""
3652 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3653 self
.this
= newobj
.this
3656 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3659 if self
.thisown
: destroy(self
)
3662 def IsOk(*args
, **kwargs
):
3663 """IsOk() -> bool"""
3664 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3666 def __eq__(*args
, **kwargs
):
3667 """__eq__(TreeItemId other) -> bool"""
3668 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3670 def __ne__(*args
, **kwargs
):
3671 """__ne__(TreeItemId other) -> bool"""
3672 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3674 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3676 def __nonzero__(self
): return self
.IsOk()
3678 class TreeItemIdPtr(TreeItemId
):
3679 def __init__(self
, this
):
3681 if not hasattr(self
,"thisown"): self
.thisown
= 0
3682 self
.__class
__ = TreeItemId
3683 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3685 class TreeItemData(object):
3687 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3688 def __init__(self
, *args
, **kwargs
):
3689 """__init__(PyObject obj=None) -> TreeItemData"""
3690 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3691 self
.this
= newobj
.this
3694 def GetData(*args
, **kwargs
):
3695 """GetData() -> PyObject"""
3696 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3698 def SetData(*args
, **kwargs
):
3699 """SetData(PyObject obj)"""
3700 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3702 def GetId(*args
, **kwargs
):
3703 """GetId() -> TreeItemId"""
3704 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3706 def SetId(*args
, **kwargs
):
3707 """SetId(TreeItemId id)"""
3708 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3710 def Destroy(*args
, **kwargs
):
3712 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3715 class TreeItemDataPtr(TreeItemData
):
3716 def __init__(self
, this
):
3718 if not hasattr(self
,"thisown"): self
.thisown
= 0
3719 self
.__class
__ = TreeItemData
3720 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3722 #---------------------------------------------------------------------------
3724 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3725 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3726 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3727 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3728 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3729 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3730 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3731 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3732 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3733 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3734 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3735 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3736 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3737 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3738 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3739 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3740 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3741 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3742 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3743 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3744 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3745 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3746 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3747 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3748 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3749 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3750 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3751 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3752 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3753 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3754 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3755 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3756 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3757 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3758 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3759 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3760 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3761 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3762 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3763 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3765 class TreeEvent(core
.NotifyEvent
):
3767 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3768 def __init__(self
, *args
, **kwargs
):
3769 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3770 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3771 self
.this
= newobj
.this
3774 def GetItem(*args
, **kwargs
):
3775 """GetItem() -> TreeItemId"""
3776 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3778 def SetItem(*args
, **kwargs
):
3779 """SetItem(TreeItemId item)"""
3780 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3782 def GetOldItem(*args
, **kwargs
):
3783 """GetOldItem() -> TreeItemId"""
3784 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3786 def SetOldItem(*args
, **kwargs
):
3787 """SetOldItem(TreeItemId item)"""
3788 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3790 def GetPoint(*args
, **kwargs
):
3791 """GetPoint() -> Point"""
3792 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3794 def SetPoint(*args
, **kwargs
):
3795 """SetPoint(Point pt)"""
3796 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3798 def GetKeyEvent(*args
, **kwargs
):
3799 """GetKeyEvent() -> KeyEvent"""
3800 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3802 def GetKeyCode(*args
, **kwargs
):
3803 """GetKeyCode() -> int"""
3804 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3806 def SetKeyEvent(*args
, **kwargs
):
3807 """SetKeyEvent(KeyEvent evt)"""
3808 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3810 def GetLabel(*args
, **kwargs
):
3811 """GetLabel() -> String"""
3812 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3814 def SetLabel(*args
, **kwargs
):
3815 """SetLabel(String label)"""
3816 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3818 def IsEditCancelled(*args
, **kwargs
):
3819 """IsEditCancelled() -> bool"""
3820 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3822 def SetEditCanceled(*args
, **kwargs
):
3823 """SetEditCanceled(bool editCancelled)"""
3824 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3826 def SetToolTip(*args
, **kwargs
):
3827 """SetToolTip(String toolTip)"""
3828 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
3831 class TreeEventPtr(TreeEvent
):
3832 def __init__(self
, this
):
3834 if not hasattr(self
,"thisown"): self
.thisown
= 0
3835 self
.__class
__ = TreeEvent
3836 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3838 #---------------------------------------------------------------------------
3840 class TreeCtrl(core
.Control
):
3842 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3843 def __init__(self
, *args
, **kwargs
):
3845 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3846 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3847 Validator validator=DefaultValidator,
3848 String name=wxPy_TreeCtrlNameStr) -> TreeCtrl
3850 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3851 self
.this
= newobj
.this
3854 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3856 def Create(*args
, **kwargs
):
3858 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3859 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3860 Validator validator=DefaultValidator,
3861 String name=wxPy_TreeCtrlNameStr) -> bool
3863 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3865 def _setCallbackInfo(*args
, **kwargs
):
3866 """_setCallbackInfo(PyObject self, PyObject _class)"""
3867 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3869 def GetCount(*args
, **kwargs
):
3870 """GetCount() -> size_t"""
3871 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3873 def GetIndent(*args
, **kwargs
):
3874 """GetIndent() -> unsigned int"""
3875 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3877 def SetIndent(*args
, **kwargs
):
3878 """SetIndent(unsigned int indent)"""
3879 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3881 def GetSpacing(*args
, **kwargs
):
3882 """GetSpacing() -> unsigned int"""
3883 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3885 def SetSpacing(*args
, **kwargs
):
3886 """SetSpacing(unsigned int spacing)"""
3887 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3889 def GetImageList(*args
, **kwargs
):
3890 """GetImageList() -> wxImageList"""
3891 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3893 def GetStateImageList(*args
, **kwargs
):
3894 """GetStateImageList() -> wxImageList"""
3895 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3897 def SetImageList(*args
, **kwargs
):
3898 """SetImageList(wxImageList imageList)"""
3899 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3901 def SetStateImageList(*args
, **kwargs
):
3902 """SetStateImageList(wxImageList imageList)"""
3903 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3905 def AssignImageList(*args
, **kwargs
):
3906 """AssignImageList(wxImageList imageList)"""
3907 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3911 def AssignStateImageList(*args
, **kwargs
):
3912 """AssignStateImageList(wxImageList imageList)"""
3913 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3917 def GetItemText(*args
, **kwargs
):
3918 """GetItemText(TreeItemId item) -> String"""
3919 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3921 def GetItemImage(*args
, **kwargs
):
3922 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
3923 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3925 def GetItemData(*args
, **kwargs
):
3926 """GetItemData(TreeItemId item) -> TreeItemData"""
3927 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3929 def GetItemPyData(*args
, **kwargs
):
3930 """GetItemPyData(TreeItemId item) -> PyObject"""
3931 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3933 GetPyData
= GetItemPyData
3934 def GetItemTextColour(*args
, **kwargs
):
3935 """GetItemTextColour(TreeItemId item) -> Colour"""
3936 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3938 def GetItemBackgroundColour(*args
, **kwargs
):
3939 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
3940 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3942 def GetItemFont(*args
, **kwargs
):
3943 """GetItemFont(TreeItemId item) -> Font"""
3944 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3946 def SetItemText(*args
, **kwargs
):
3947 """SetItemText(TreeItemId item, String text)"""
3948 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3950 def SetItemImage(*args
, **kwargs
):
3951 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
3952 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
3954 def SetItemData(*args
, **kwargs
):
3955 """SetItemData(TreeItemId item, TreeItemData data)"""
3956 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
3958 def SetItemPyData(*args
, **kwargs
):
3959 """SetItemPyData(TreeItemId item, PyObject obj)"""
3960 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
3962 SetPyData
= SetItemPyData
3963 def SetItemHasChildren(*args
, **kwargs
):
3964 """SetItemHasChildren(TreeItemId item, bool has=True)"""
3965 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
3967 def SetItemBold(*args
, **kwargs
):
3968 """SetItemBold(TreeItemId item, bool bold=True)"""
3969 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
3971 def SetItemTextColour(*args
, **kwargs
):
3972 """SetItemTextColour(TreeItemId item, Colour col)"""
3973 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
3975 def SetItemBackgroundColour(*args
, **kwargs
):
3976 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
3977 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3979 def SetItemFont(*args
, **kwargs
):
3980 """SetItemFont(TreeItemId item, Font font)"""
3981 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
3983 def IsVisible(*args
, **kwargs
):
3984 """IsVisible(TreeItemId item) -> bool"""
3985 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
3987 def ItemHasChildren(*args
, **kwargs
):
3988 """ItemHasChildren(TreeItemId item) -> bool"""
3989 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
3991 def IsExpanded(*args
, **kwargs
):
3992 """IsExpanded(TreeItemId item) -> bool"""
3993 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
3995 def IsSelected(*args
, **kwargs
):
3996 """IsSelected(TreeItemId item) -> bool"""
3997 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
3999 def IsBold(*args
, **kwargs
):
4000 """IsBold(TreeItemId item) -> bool"""
4001 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4003 def GetChildrenCount(*args
, **kwargs
):
4004 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4005 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4007 def GetRootItem(*args
, **kwargs
):
4008 """GetRootItem() -> TreeItemId"""
4009 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4011 def GetSelection(*args
, **kwargs
):
4012 """GetSelection() -> TreeItemId"""
4013 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4015 def GetSelections(*args
, **kwargs
):
4016 """GetSelections() -> PyObject"""
4017 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4019 def GetItemParent(*args
, **kwargs
):
4020 """GetItemParent(TreeItemId item) -> TreeItemId"""
4021 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4023 def GetFirstChild(*args
, **kwargs
):
4024 """GetFirstChild(TreeItemId item) -> PyObject"""
4025 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4027 def GetNextChild(*args
, **kwargs
):
4028 """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
4029 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4031 def GetLastChild(*args
, **kwargs
):
4032 """GetLastChild(TreeItemId item) -> TreeItemId"""
4033 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4035 def GetNextSibling(*args
, **kwargs
):
4036 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4037 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4039 def GetPrevSibling(*args
, **kwargs
):
4040 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4041 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4043 def GetFirstVisibleItem(*args
, **kwargs
):
4044 """GetFirstVisibleItem() -> TreeItemId"""
4045 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4047 def GetNextVisible(*args
, **kwargs
):
4048 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4049 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4051 def GetPrevVisible(*args
, **kwargs
):
4052 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4053 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4055 def AddRoot(*args
, **kwargs
):
4056 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4057 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4059 def PrependItem(*args
, **kwargs
):
4061 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4062 TreeItemData data=None) -> TreeItemId
4064 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4066 def InsertItem(*args
, **kwargs
):
4068 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4069 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4071 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4073 def InsertItemBefore(*args
, **kwargs
):
4075 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4076 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4078 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4080 def AppendItem(*args
, **kwargs
):
4082 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4083 TreeItemData data=None) -> TreeItemId
4085 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4087 def Delete(*args
, **kwargs
):
4088 """Delete(TreeItemId item)"""
4089 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4091 def DeleteChildren(*args
, **kwargs
):
4092 """DeleteChildren(TreeItemId item)"""
4093 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4095 def DeleteAllItems(*args
, **kwargs
):
4096 """DeleteAllItems()"""
4097 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4099 def Expand(*args
, **kwargs
):
4100 """Expand(TreeItemId item)"""
4101 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4103 def Collapse(*args
, **kwargs
):
4104 """Collapse(TreeItemId item)"""
4105 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4107 def CollapseAndReset(*args
, **kwargs
):
4108 """CollapseAndReset(TreeItemId item)"""
4109 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4111 def Toggle(*args
, **kwargs
):
4112 """Toggle(TreeItemId item)"""
4113 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4115 def Unselect(*args
, **kwargs
):
4117 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4119 def UnselectAll(*args
, **kwargs
):
4121 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4123 def SelectItem(*args
, **kwargs
):
4124 """SelectItem(TreeItemId item)"""
4125 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4127 def EnsureVisible(*args
, **kwargs
):
4128 """EnsureVisible(TreeItemId item)"""
4129 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4131 def ScrollTo(*args
, **kwargs
):
4132 """ScrollTo(TreeItemId item)"""
4133 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4135 def EditLabel(*args
, **kwargs
):
4136 """EditLabel(TreeItemId item)"""
4137 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4139 def GetEditControl(*args
, **kwargs
):
4140 """GetEditControl() -> TextCtrl"""
4141 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4143 def SortChildren(*args
, **kwargs
):
4144 """SortChildren(TreeItemId item)"""
4145 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4147 def HitTest(*args
, **kwargs
):
4149 HitTest(Point point) -> (item, where)
4151 Determine which item (if any) belongs the given point. The
4152 coordinates specified are relative to the client area of tree ctrl
4153 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4157 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4159 def GetBoundingRect(*args
, **kwargs
):
4160 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4161 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4164 class TreeCtrlPtr(TreeCtrl
):
4165 def __init__(self
, this
):
4167 if not hasattr(self
,"thisown"): self
.thisown
= 0
4168 self
.__class
__ = TreeCtrl
4169 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4171 def PreTreeCtrl(*args
, **kwargs
):
4172 """PreTreeCtrl() -> TreeCtrl"""
4173 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4177 #---------------------------------------------------------------------------
4179 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4180 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4181 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4182 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4183 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4184 class GenericDirCtrl(core
.Control
):
4186 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4187 def __init__(self
, *args
, **kwargs
):
4189 __init__(Window parent, int id=-1, String dir=wxPyDirDialogDefaultFolderStr,
4190 Point pos=DefaultPosition, Size size=DefaultSize,
4191 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4192 String filter=EmptyString,
4193 int defaultFilter=0, String name=wxPy_TreeCtrlNameStr) -> GenericDirCtrl
4195 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4196 self
.this
= newobj
.this
4199 self
._setOORInfo
(self
)
4201 def Create(*args
, **kwargs
):
4203 Create(Window parent, int id=-1, String dir=wxPyDirDialogDefaultFolderStr,
4204 Point pos=DefaultPosition, Size size=DefaultSize,
4205 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4206 String filter=EmptyString,
4207 int defaultFilter=0, String name=wxPy_TreeCtrlNameStr) -> bool
4209 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4211 def ExpandPath(*args
, **kwargs
):
4212 """ExpandPath(String path) -> bool"""
4213 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4215 def GetDefaultPath(*args
, **kwargs
):
4216 """GetDefaultPath() -> String"""
4217 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4219 def SetDefaultPath(*args
, **kwargs
):
4220 """SetDefaultPath(String path)"""
4221 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4223 def GetPath(*args
, **kwargs
):
4224 """GetPath() -> String"""
4225 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4227 def GetFilePath(*args
, **kwargs
):
4228 """GetFilePath() -> String"""
4229 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4231 def SetPath(*args
, **kwargs
):
4232 """SetPath(String path)"""
4233 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4235 def ShowHidden(*args
, **kwargs
):
4236 """ShowHidden(bool show)"""
4237 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4239 def GetShowHidden(*args
, **kwargs
):
4240 """GetShowHidden() -> bool"""
4241 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4243 def GetFilter(*args
, **kwargs
):
4244 """GetFilter() -> String"""
4245 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4247 def SetFilter(*args
, **kwargs
):
4248 """SetFilter(String filter)"""
4249 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4251 def GetFilterIndex(*args
, **kwargs
):
4252 """GetFilterIndex() -> int"""
4253 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4255 def SetFilterIndex(*args
, **kwargs
):
4256 """SetFilterIndex(int n)"""
4257 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4259 def GetRootId(*args
, **kwargs
):
4260 """GetRootId() -> TreeItemId"""
4261 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4263 def GetTreeCtrl(*args
, **kwargs
):
4264 """GetTreeCtrl() -> wxTreeCtrl"""
4265 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4267 def GetFilterListCtrl(*args
, **kwargs
):
4268 """GetFilterListCtrl() -> DirFilterListCtrl"""
4269 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4271 def FindChild(*args
, **kwargs
):
4273 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4275 Find the child that matches the first part of 'path'. E.g. if a child path is
4276 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4277 If the path string has been used (we're at the leaf), done is set to True
4280 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4282 def DoResize(*args
, **kwargs
):
4284 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4286 def ReCreateTree(*args
, **kwargs
):
4287 """ReCreateTree()"""
4288 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4291 class GenericDirCtrlPtr(GenericDirCtrl
):
4292 def __init__(self
, this
):
4294 if not hasattr(self
,"thisown"): self
.thisown
= 0
4295 self
.__class
__ = GenericDirCtrl
4296 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4298 def PreGenericDirCtrl(*args
, **kwargs
):
4299 """PreGenericDirCtrl() -> GenericDirCtrl"""
4300 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4304 class DirFilterListCtrl(Choice
):
4306 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4307 def __init__(self
, *args
, **kwargs
):
4309 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4310 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4312 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4313 self
.this
= newobj
.this
4316 self
._setOORInfo
(self
)
4318 def Create(*args
, **kwargs
):
4320 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4321 Size size=DefaultSize, long style=0) -> bool
4323 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4325 def FillFilterList(*args
, **kwargs
):
4326 """FillFilterList(String filter, int defaultFilter)"""
4327 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4330 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4331 def __init__(self
, this
):
4333 if not hasattr(self
,"thisown"): self
.thisown
= 0
4334 self
.__class
__ = DirFilterListCtrl
4335 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4337 def PreDirFilterListCtrl(*args
, **kwargs
):
4338 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4339 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4343 #---------------------------------------------------------------------------
4345 class PyControl(core
.Control
):
4347 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4348 def __init__(self
, *args
, **kwargs
):
4350 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4351 long style=0, Validator validator=DefaultValidator,
4352 String name=wxPyControlNameStr) -> PyControl
4354 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4355 self
.this
= newobj
.this
4358 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4360 def _setCallbackInfo(*args
, **kwargs
):
4361 """_setCallbackInfo(PyObject self, PyObject _class)"""
4362 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4364 def base_DoMoveWindow(*args
, **kwargs
):
4365 """base_DoMoveWindow(int x, int y, int width, int height)"""
4366 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4368 def base_DoSetSize(*args
, **kwargs
):
4369 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4370 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4372 def base_DoSetClientSize(*args
, **kwargs
):
4373 """base_DoSetClientSize(int width, int height)"""
4374 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4376 def base_DoSetVirtualSize(*args
, **kwargs
):
4377 """base_DoSetVirtualSize(int x, int y)"""
4378 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4380 def base_DoGetSize(*args
, **kwargs
):
4381 """base_DoGetSize() -> (width, height)"""
4382 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4384 def base_DoGetClientSize(*args
, **kwargs
):
4385 """base_DoGetClientSize() -> (width, height)"""
4386 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4388 def base_DoGetPosition(*args
, **kwargs
):
4389 """base_DoGetPosition() -> (x,y)"""
4390 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4392 def base_DoGetVirtualSize(*args
, **kwargs
):
4393 """base_DoGetVirtualSize() -> Size"""
4394 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4396 def base_DoGetBestSize(*args
, **kwargs
):
4397 """base_DoGetBestSize() -> Size"""
4398 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4400 def base_InitDialog(*args
, **kwargs
):
4401 """base_InitDialog()"""
4402 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4404 def base_TransferDataToWindow(*args
, **kwargs
):
4405 """base_TransferDataToWindow() -> bool"""
4406 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4408 def base_TransferDataFromWindow(*args
, **kwargs
):
4409 """base_TransferDataFromWindow() -> bool"""
4410 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4412 def base_Validate(*args
, **kwargs
):
4413 """base_Validate() -> bool"""
4414 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4416 def base_AcceptsFocus(*args
, **kwargs
):
4417 """base_AcceptsFocus() -> bool"""
4418 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4420 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4421 """base_AcceptsFocusFromKeyboard() -> bool"""
4422 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4424 def base_GetMaxSize(*args
, **kwargs
):
4425 """base_GetMaxSize() -> Size"""
4426 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4428 def base_AddChild(*args
, **kwargs
):
4429 """base_AddChild(Window child)"""
4430 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4432 def base_RemoveChild(*args
, **kwargs
):
4433 """base_RemoveChild(Window child)"""
4434 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4437 class PyControlPtr(PyControl
):
4438 def __init__(self
, this
):
4440 if not hasattr(self
,"thisown"): self
.thisown
= 0
4441 self
.__class
__ = PyControl
4442 _controls
.PyControl_swigregister(PyControlPtr
)
4444 #---------------------------------------------------------------------------
4446 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4447 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4448 wxEVT_HELP
= _controls
.wxEVT_HELP
4449 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4450 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4451 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4452 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4453 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4455 class HelpEvent(core
.CommandEvent
):
4457 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4458 def __init__(self
, *args
, **kwargs
):
4459 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4460 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4461 self
.this
= newobj
.this
4464 def GetPosition(*args
, **kwargs
):
4465 """GetPosition() -> Point"""
4466 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4468 def SetPosition(*args
, **kwargs
):
4469 """SetPosition(Point pos)"""
4470 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4472 def GetLink(*args
, **kwargs
):
4473 """GetLink() -> String"""
4474 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4476 def SetLink(*args
, **kwargs
):
4477 """SetLink(String link)"""
4478 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4480 def GetTarget(*args
, **kwargs
):
4481 """GetTarget() -> String"""
4482 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4484 def SetTarget(*args
, **kwargs
):
4485 """SetTarget(String target)"""
4486 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4489 class HelpEventPtr(HelpEvent
):
4490 def __init__(self
, this
):
4492 if not hasattr(self
,"thisown"): self
.thisown
= 0
4493 self
.__class
__ = HelpEvent
4494 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4496 class ContextHelp(core
.Object
):
4498 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4499 def __init__(self
, *args
, **kwargs
):
4500 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4501 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4502 self
.this
= newobj
.this
4505 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4508 if self
.thisown
: destroy(self
)
4511 def BeginContextHelp(*args
, **kwargs
):
4512 """BeginContextHelp(Window window=None) -> bool"""
4513 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4515 def EndContextHelp(*args
, **kwargs
):
4516 """EndContextHelp() -> bool"""
4517 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4520 class ContextHelpPtr(ContextHelp
):
4521 def __init__(self
, this
):
4523 if not hasattr(self
,"thisown"): self
.thisown
= 0
4524 self
.__class
__ = ContextHelp
4525 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4527 class ContextHelpButton(BitmapButton
):
4529 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4530 def __init__(self
, *args
, **kwargs
):
4532 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4533 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4535 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4536 self
.this
= newobj
.this
4539 self
._setOORInfo
(self
)
4542 class ContextHelpButtonPtr(ContextHelpButton
):
4543 def __init__(self
, this
):
4545 if not hasattr(self
,"thisown"): self
.thisown
= 0
4546 self
.__class
__ = ContextHelpButton
4547 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4549 class HelpProvider(object):
4550 def __init__(self
): raise RuntimeError, "No constructor defined"
4552 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4553 def Set(*args
, **kwargs
):
4554 """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
4555 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4557 Set
= staticmethod(Set
)
4558 def Get(*args
, **kwargs
):
4559 """HelpProvider.Get() -> HelpProvider"""
4560 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4562 Get
= staticmethod(Get
)
4563 def GetHelp(*args
, **kwargs
):
4564 """GetHelp(Window window) -> String"""
4565 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4567 def ShowHelp(*args
, **kwargs
):
4568 """ShowHelp(Window window) -> bool"""
4569 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4571 def AddHelp(*args
, **kwargs
):
4572 """AddHelp(Window window, String text)"""
4573 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4575 def AddHelpById(*args
, **kwargs
):
4576 """AddHelpById(int id, String text)"""
4577 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4579 def Destroy(*args
, **kwargs
):
4581 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4584 class HelpProviderPtr(HelpProvider
):
4585 def __init__(self
, this
):
4587 if not hasattr(self
,"thisown"): self
.thisown
= 0
4588 self
.__class
__ = HelpProvider
4589 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4591 def HelpProvider_Set(*args
, **kwargs
):
4592 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4593 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4595 def HelpProvider_Get(*args
, **kwargs
):
4596 """HelpProvider_Get() -> HelpProvider"""
4597 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4599 class SimpleHelpProvider(HelpProvider
):
4601 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4602 def __init__(self
, *args
, **kwargs
):
4603 """__init__() -> SimpleHelpProvider"""
4604 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4605 self
.this
= newobj
.this
4609 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4610 def __init__(self
, this
):
4612 if not hasattr(self
,"thisown"): self
.thisown
= 0
4613 self
.__class
__ = SimpleHelpProvider
4614 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4616 #---------------------------------------------------------------------------
4618 class DragImage(core
.Object
):
4620 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4621 def __init__(self
, *args
, **kwargs
):
4622 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4623 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4624 self
.this
= newobj
.this
4627 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4630 if self
.thisown
: destroy(self
)
4633 def SetBackingBitmap(*args
, **kwargs
):
4634 """SetBackingBitmap(Bitmap bitmap)"""
4635 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4637 def BeginDrag(*args
, **kwargs
):
4639 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4640 Rect rect=None) -> bool
4642 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4644 def BeginDragBounded(*args
, **kwargs
):
4645 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4646 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4648 def EndDrag(*args
, **kwargs
):
4649 """EndDrag() -> bool"""
4650 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4652 def Move(*args
, **kwargs
):
4653 """Move(Point pt) -> bool"""
4654 return _controls
.DragImage_Move(*args
, **kwargs
)
4656 def Show(*args
, **kwargs
):
4657 """Show() -> bool"""
4658 return _controls
.DragImage_Show(*args
, **kwargs
)
4660 def Hide(*args
, **kwargs
):
4661 """Hide() -> bool"""
4662 return _controls
.DragImage_Hide(*args
, **kwargs
)
4664 def GetImageRect(*args
, **kwargs
):
4665 """GetImageRect(Point pos) -> Rect"""
4666 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4668 def DoDrawImage(*args
, **kwargs
):
4669 """DoDrawImage(DC dc, Point pos) -> bool"""
4670 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4672 def UpdateBackingFromWindow(*args
, **kwargs
):
4673 """UpdateBackingFromWindow(DC windowDC, wxMemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4674 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4676 def RedrawImage(*args
, **kwargs
):
4677 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4678 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4681 class DragImagePtr(DragImage
):
4682 def __init__(self
, this
):
4684 if not hasattr(self
,"thisown"): self
.thisown
= 0
4685 self
.__class
__ = DragImage
4686 _controls
.DragImage_swigregister(DragImagePtr
)
4688 def DragIcon(*args
, **kwargs
):
4689 """DragIcon(wxIcon image, Cursor cursor=wxNullCursor) -> DragImage"""
4690 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4694 def DragString(*args
, **kwargs
):
4695 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4696 val
= _controls
.new_DragString(*args
, **kwargs
)
4700 def DragTreeItem(*args
, **kwargs
):
4701 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4702 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4706 def DragListItem(*args
, **kwargs
):
4707 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4708 val
= _controls
.new_DragListItem(*args
, **kwargs
)