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
):
17 """A button is a control that contains a text string, and is one of the most
18 common elements of a GUI. It may be placed on a dialog box or panel, or
19 indeed almost any other window."""
21 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
22 def __init__(self
, *args
, **kwargs
):
23 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
24 Size size=DefaultSize, long style=0,
25 Validator validator=DefaultValidator,
26 wxString name=wxPyButtonNameStr) -> Button
28 Create and show a button."""
29 newobj
= _controls
.new_Button(*args
, **kwargs
)
30 self
.this
= newobj
.this
33 self
._setOORInfo
(self
)
35 def Create(*args
, **kwargs
):
36 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
37 Size size=DefaultSize, long style=0,
38 Validator validator=DefaultValidator,
39 wxString name=wxPyButtonNameStr) -> bool
41 Acutally create the GUI Button for 2-phase creation."""
42 return _controls
.Button_Create(*args
, **kwargs
)
44 def SetDefault(*args
, **kwargs
):
47 This sets the button to be the default item for the panel or dialog box."""
48 return _controls
.Button_SetDefault(*args
, **kwargs
)
50 def GetDefaultSize(*args
, **kwargs
):
51 """Button.GetDefaultSize() -> Size"""
52 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
54 GetDefaultSize
= staticmethod(GetDefaultSize
)
56 class ButtonPtr(Button
):
57 def __init__(self
, this
):
59 if not hasattr(self
,"thisown"): self
.thisown
= 0
60 self
.__class
__ = Button
61 _controls
.Button_swigregister(ButtonPtr
)
63 def PreButton(*args
, **kwargs
):
64 """PreButton() -> Button
66 Precreate a Button for 2-phase creation."""
67 val
= _controls
.new_PreButton(*args
, **kwargs
)
71 def Button_GetDefaultSize(*args
, **kwargs
):
72 """Button_GetDefaultSize() -> Size"""
73 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
75 class BitmapButton(Button
):
76 """A Buttont that contains a bitmap."""
78 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
79 def __init__(self
, *args
, **kwargs
):
80 """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
81 Size size=DefaultSize, long style=BU_AUTODRAW,
82 Validator validator=DefaultValidator,
83 wxString name=wxPyButtonNameStr) -> BitmapButton
85 Create and show a button."""
86 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
87 self
.this
= newobj
.this
90 self
._setOORInfo
(self
)
92 def Create(*args
, **kwargs
):
93 """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
94 Size size=DefaultSize, long style=BU_AUTODRAW,
95 Validator validator=DefaultValidator,
96 wxString name=wxPyButtonNameStr) -> bool
98 Acutally create the GUI BitmapButton for 2-phase creation."""
99 return _controls
.BitmapButton_Create(*args
, **kwargs
)
101 def GetBitmapLabel(*args
, **kwargs
):
102 """GetBitmapLabel() -> wxBitmap
104 Returns the label bitmap (the one passed to the constructor)."""
105 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
107 def GetBitmapDisabled(*args
, **kwargs
):
108 """GetBitmapDisabled() -> wxBitmap
110 Returns the bitmap for the disabled state."""
111 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
113 def GetBitmapFocus(*args
, **kwargs
):
114 """GetBitmapFocus() -> wxBitmap
116 Returns the bitmap for the focused state."""
117 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
119 def GetBitmapSelected(*args
, **kwargs
):
120 """GetBitmapSelected() -> wxBitmap
122 Returns the bitmap for the selected state."""
123 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
125 def SetBitmapDisabled(*args
, **kwargs
):
126 """SetBitmapDisabled(wxBitmap bitmap)
128 Sets the bitmap for the disabled button appearance."""
129 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
131 def SetBitmapFocus(*args
, **kwargs
):
132 """SetBitmapFocus(wxBitmap bitmap)
134 Sets the bitmap for the button appearance when it has the keyboard focus."""
135 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
137 def SetBitmapSelected(*args
, **kwargs
):
138 """SetBitmapSelected(wxBitmap bitmap)
140 Sets the bitmap for the selected (depressed) button appearance."""
141 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
143 def SetBitmapLabel(*args
, **kwargs
):
144 """SetBitmapLabel(wxBitmap bitmap)
146 Sets the bitmap label for the button. This is the bitmap used for the
147 unselected state, and for all other states if no other bitmaps are provided."""
148 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
150 def SetMargins(*args
, **kwargs
):
151 """SetMargins(int x, int y)"""
152 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
154 def GetMarginX(*args
, **kwargs
):
155 """GetMarginX() -> int"""
156 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
158 def GetMarginY(*args
, **kwargs
):
159 """GetMarginY() -> int"""
160 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
163 class BitmapButtonPtr(BitmapButton
):
164 def __init__(self
, this
):
166 if not hasattr(self
,"thisown"): self
.thisown
= 0
167 self
.__class
__ = BitmapButton
168 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
170 def PreBitmapButton(*args
, **kwargs
):
171 """PreBitmapButton() -> BitmapButton
173 Precreate a BitmapButton for 2-phase creation."""
174 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
178 #---------------------------------------------------------------------------
180 CHK_2STATE
= _controls
.CHK_2STATE
181 CHK_3STATE
= _controls
.CHK_3STATE
182 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
183 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
184 CHK_CHECKED
= _controls
.CHK_CHECKED
185 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
186 class CheckBox(core
.Control
):
189 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
190 def __init__(self
, *args
, **kwargs
):
191 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
192 Size size=DefaultSize, long style=0,
193 Validator validator=DefaultValidator,
194 wxString name=wxPyCheckBoxNameStr) -> CheckBox"""
195 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
196 self
.this
= newobj
.this
199 self
._setOORInfo
(self
)
201 def Create(*args
, **kwargs
):
202 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
203 Size size=DefaultSize, long style=0,
204 Validator validator=DefaultValidator,
205 wxString name=wxPyCheckBoxNameStr) -> bool"""
206 return _controls
.CheckBox_Create(*args
, **kwargs
)
208 def GetValue(*args
, **kwargs
):
209 """GetValue() -> bool"""
210 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
212 def IsChecked(*args
, **kwargs
):
213 """IsChecked() -> bool"""
214 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
216 def SetValue(*args
, **kwargs
):
217 """SetValue(bool state)"""
218 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
220 def Get3StateValue(*args
, **kwargs
):
221 """Get3StateValue() -> wxCheckBoxState"""
222 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
224 def Set3StateValue(*args
, **kwargs
):
225 """Set3StateValue(wxCheckBoxState state)"""
226 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
228 def Is3State(*args
, **kwargs
):
229 """Is3State() -> bool"""
230 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
232 def Is3rdStateAllowedForUser(*args
, **kwargs
):
233 """Is3rdStateAllowedForUser() -> bool"""
234 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
237 class CheckBoxPtr(CheckBox
):
238 def __init__(self
, this
):
240 if not hasattr(self
,"thisown"): self
.thisown
= 0
241 self
.__class
__ = CheckBox
242 _controls
.CheckBox_swigregister(CheckBoxPtr
)
244 def PreCheckBox(*args
, **kwargs
):
245 """PreCheckBox() -> CheckBox"""
246 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
250 #---------------------------------------------------------------------------
252 class Choice(core
.ControlWithItems
):
255 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
256 def __init__(self
, *args
, **kwargs
):
257 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
258 int choices=0, wxString choices_array=None,
259 long style=0, Validator validator=DefaultValidator,
260 wxString name=wxPyChoiceNameStr) -> Choice"""
261 newobj
= _controls
.new_Choice(*args
, **kwargs
)
262 self
.this
= newobj
.this
265 self
._setOORInfo
(self
)
267 def Create(*args
, **kwargs
):
268 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
269 int choices=0, wxString choices_array=None,
270 long style=0, Validator validator=DefaultValidator,
271 wxString name=wxPyChoiceNameStr) -> bool"""
272 return _controls
.Choice_Create(*args
, **kwargs
)
274 def GetColumns(*args
, **kwargs
):
275 """GetColumns() -> int"""
276 return _controls
.Choice_GetColumns(*args
, **kwargs
)
278 def SetColumns(*args
, **kwargs
):
279 """SetColumns(int n=1)"""
280 return _controls
.Choice_SetColumns(*args
, **kwargs
)
282 def SetSelection(*args
, **kwargs
):
283 """SetSelection(int n)"""
284 return _controls
.Choice_SetSelection(*args
, **kwargs
)
286 def SetStringSelection(*args
, **kwargs
):
287 """SetStringSelection(wxString string)"""
288 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
290 def SetString(*args
, **kwargs
):
291 """SetString(int n, wxString s)"""
292 return _controls
.Choice_SetString(*args
, **kwargs
)
295 class ChoicePtr(Choice
):
296 def __init__(self
, this
):
298 if not hasattr(self
,"thisown"): self
.thisown
= 0
299 self
.__class
__ = Choice
300 _controls
.Choice_swigregister(ChoicePtr
)
302 def PreChoice(*args
, **kwargs
):
303 """PreChoice() -> Choice"""
304 val
= _controls
.new_PreChoice(*args
, **kwargs
)
308 #---------------------------------------------------------------------------
310 class ComboBox(core
.Control
,core
.ItemContainer
):
313 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
314 def __init__(self
, *args
, **kwargs
):
315 """__init__(Window parent, int id, wxString value=wxPyEmptyString,
316 Point pos=DefaultPosition, Size size=DefaultSize,
317 int choices=0, wxString choices_array=None,
318 long style=0, Validator validator=DefaultValidator,
319 wxString name=wxPyComboBoxNameStr) -> ComboBox"""
320 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
321 self
.this
= newobj
.this
324 self
._setOORInfo
(self
)
326 def Create(*args
, **kwargs
):
327 """Create(Window parent, int id, wxString value=wxPyEmptyString,
328 Point pos=DefaultPosition, Size size=DefaultSize,
329 int choices=0, wxString choices_array=None,
330 long style=0, Validator validator=DefaultValidator,
331 wxString name=wxPyComboBoxNameStr) -> bool"""
332 return _controls
.ComboBox_Create(*args
, **kwargs
)
334 def GetValue(*args
, **kwargs
):
335 """GetValue() -> wxString"""
336 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
338 def SetValue(*args
, **kwargs
):
339 """SetValue(wxString value)"""
340 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
342 def Copy(*args
, **kwargs
):
344 return _controls
.ComboBox_Copy(*args
, **kwargs
)
346 def Cut(*args
, **kwargs
):
348 return _controls
.ComboBox_Cut(*args
, **kwargs
)
350 def Paste(*args
, **kwargs
):
352 return _controls
.ComboBox_Paste(*args
, **kwargs
)
354 def SetInsertionPoint(*args
, **kwargs
):
355 """SetInsertionPoint(long pos)"""
356 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
358 def GetInsertionPoint(*args
, **kwargs
):
359 """GetInsertionPoint() -> long"""
360 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
362 def GetLastPosition(*args
, **kwargs
):
363 """GetLastPosition() -> long"""
364 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
366 def Replace(*args
, **kwargs
):
367 """Replace(long from, long to, wxString value)"""
368 return _controls
.ComboBox_Replace(*args
, **kwargs
)
370 def SetSelection(*args
, **kwargs
):
371 """SetSelection(int n)"""
372 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
374 def SetMark(*args
, **kwargs
):
375 """SetMark(long from, long to)"""
376 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
378 def SetEditable(*args
, **kwargs
):
379 """SetEditable(bool editable)"""
380 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
382 def SetInsertionPointEnd(*args
, **kwargs
):
383 """SetInsertionPointEnd()"""
384 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
386 def Remove(*args
, **kwargs
):
387 """Remove(long from, long to)"""
388 return _controls
.ComboBox_Remove(*args
, **kwargs
)
391 class ComboBoxPtr(ComboBox
):
392 def __init__(self
, this
):
394 if not hasattr(self
,"thisown"): self
.thisown
= 0
395 self
.__class
__ = ComboBox
396 _controls
.ComboBox_swigregister(ComboBoxPtr
)
398 def PreComboBox(*args
, **kwargs
):
399 """PreComboBox() -> ComboBox"""
400 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
404 #---------------------------------------------------------------------------
406 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
407 GA_VERTICAL
= _controls
.GA_VERTICAL
408 GA_SMOOTH
= _controls
.GA_SMOOTH
409 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
410 class Gauge(core
.Control
):
413 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
414 def __init__(self
, *args
, **kwargs
):
415 """__init__(Window parent, int id, int range, Point pos=DefaultPosition,
416 Size size=DefaultSize, long style=GA_HORIZONTAL,
417 Validator validator=DefaultValidator,
418 wxString name=wxPyGaugeNameStr) -> Gauge"""
419 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
420 self
.this
= newobj
.this
423 self
._setOORInfo
(self
)
425 def Create(*args
, **kwargs
):
426 """Create(Window parent, int id, int range, Point pos=DefaultPosition,
427 Size size=DefaultSize, long style=GA_HORIZONTAL,
428 Validator validator=DefaultValidator,
429 wxString name=wxPyGaugeNameStr) -> bool"""
430 return _controls
.Gauge_Create(*args
, **kwargs
)
432 def SetRange(*args
, **kwargs
):
433 """SetRange(int range)"""
434 return _controls
.Gauge_SetRange(*args
, **kwargs
)
436 def GetRange(*args
, **kwargs
):
437 """GetRange() -> int"""
438 return _controls
.Gauge_GetRange(*args
, **kwargs
)
440 def SetValue(*args
, **kwargs
):
441 """SetValue(int pos)"""
442 return _controls
.Gauge_SetValue(*args
, **kwargs
)
444 def GetValue(*args
, **kwargs
):
445 """GetValue() -> int"""
446 return _controls
.Gauge_GetValue(*args
, **kwargs
)
448 def IsVertical(*args
, **kwargs
):
449 """IsVertical() -> bool"""
450 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
452 def SetShadowWidth(*args
, **kwargs
):
453 """SetShadowWidth(int w)"""
454 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
456 def GetShadowWidth(*args
, **kwargs
):
457 """GetShadowWidth() -> int"""
458 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
460 def SetBezelFace(*args
, **kwargs
):
461 """SetBezelFace(int w)"""
462 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
464 def GetBezelFace(*args
, **kwargs
):
465 """GetBezelFace() -> int"""
466 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
469 class GaugePtr(Gauge
):
470 def __init__(self
, this
):
472 if not hasattr(self
,"thisown"): self
.thisown
= 0
473 self
.__class
__ = Gauge
474 _controls
.Gauge_swigregister(GaugePtr
)
476 def PreGauge(*args
, **kwargs
):
477 """PreGauge() -> Gauge"""
478 val
= _controls
.new_PreGauge(*args
, **kwargs
)
482 #---------------------------------------------------------------------------
484 class StaticBox(core
.Control
):
487 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
488 def __init__(self
, *args
, **kwargs
):
489 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
490 Size size=DefaultSize, long style=0,
491 wxString name=wxPyStaticBoxNameStr) -> StaticBox"""
492 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
493 self
.this
= newobj
.this
496 self
._setOORInfo
(self
)
498 def Create(*args
, **kwargs
):
499 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
500 Size size=DefaultSize, long style=0,
501 wxString name=wxPyStaticBoxNameStr) -> bool"""
502 return _controls
.StaticBox_Create(*args
, **kwargs
)
505 class StaticBoxPtr(StaticBox
):
506 def __init__(self
, this
):
508 if not hasattr(self
,"thisown"): self
.thisown
= 0
509 self
.__class
__ = StaticBox
510 _controls
.StaticBox_swigregister(StaticBoxPtr
)
512 def PreStaticBox(*args
, **kwargs
):
513 """PreStaticBox() -> StaticBox"""
514 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
518 #---------------------------------------------------------------------------
520 class StaticLine(core
.Control
):
523 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
524 def __init__(self
, *args
, **kwargs
):
525 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
526 long style=LI_HORIZONTAL,
527 wxString name=wxPyStaticTextNameStr) -> StaticLine"""
528 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
529 self
.this
= newobj
.this
532 self
._setOORInfo
(self
)
534 def Create(*args
, **kwargs
):
535 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
536 long style=LI_HORIZONTAL,
537 wxString name=wxPyStaticTextNameStr) -> bool"""
538 return _controls
.StaticLine_Create(*args
, **kwargs
)
540 def IsVertical(*args
, **kwargs
):
541 """IsVertical() -> bool"""
542 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
544 def GetDefaultSize(*args
, **kwargs
):
545 """StaticLine.GetDefaultSize() -> int"""
546 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
548 GetDefaultSize
= staticmethod(GetDefaultSize
)
550 class StaticLinePtr(StaticLine
):
551 def __init__(self
, this
):
553 if not hasattr(self
,"thisown"): self
.thisown
= 0
554 self
.__class
__ = StaticLine
555 _controls
.StaticLine_swigregister(StaticLinePtr
)
557 def PreStaticLine(*args
, **kwargs
):
558 """PreStaticLine() -> StaticLine"""
559 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
563 def StaticLine_GetDefaultSize(*args
, **kwargs
):
564 """StaticLine_GetDefaultSize() -> int"""
565 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
567 #---------------------------------------------------------------------------
569 class StaticText(core
.Control
):
572 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
573 def __init__(self
, *args
, **kwargs
):
574 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
575 Size size=DefaultSize, long style=0,
576 wxString name=wxPyStaticTextNameStr) -> StaticText"""
577 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
578 self
.this
= newobj
.this
581 self
._setOORInfo
(self
)
583 def Create(*args
, **kwargs
):
584 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
585 Size size=DefaultSize, long style=0,
586 wxString name=wxPyStaticTextNameStr) -> bool"""
587 return _controls
.StaticText_Create(*args
, **kwargs
)
590 class StaticTextPtr(StaticText
):
591 def __init__(self
, this
):
593 if not hasattr(self
,"thisown"): self
.thisown
= 0
594 self
.__class
__ = StaticText
595 _controls
.StaticText_swigregister(StaticTextPtr
)
597 def PreStaticText(*args
, **kwargs
):
598 """PreStaticText() -> StaticText"""
599 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
603 #---------------------------------------------------------------------------
605 class StaticBitmap(core
.Control
):
608 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
609 def __init__(self
, *args
, **kwargs
):
610 """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
611 Size size=DefaultSize, long style=0,
612 wxString name=wxPyStaticBitmapNameStr) -> StaticBitmap"""
613 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
614 self
.this
= newobj
.this
617 def Create(*args
, **kwargs
):
618 """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
619 Size size=DefaultSize, long style=0,
620 wxString name=wxPyStaticBitmapNameStr) -> bool"""
621 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
623 def GetBitmap(*args
, **kwargs
):
624 """GetBitmap() -> wxBitmap"""
625 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
627 def SetBitmap(*args
, **kwargs
):
628 """SetBitmap(wxBitmap bitmap)"""
629 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
631 def SetIcon(*args
, **kwargs
):
632 """SetIcon(wxIcon icon)"""
633 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
636 class StaticBitmapPtr(StaticBitmap
):
637 def __init__(self
, this
):
639 if not hasattr(self
,"thisown"): self
.thisown
= 0
640 self
.__class
__ = StaticBitmap
641 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
643 def PreStaticBitmap(*args
, **kwargs
):
644 """PreStaticBitmap() -> StaticBitmap"""
645 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
649 #---------------------------------------------------------------------------
651 class ListBox(core
.ControlWithItems
):
654 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
655 def __init__(self
, *args
, **kwargs
):
656 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
657 int choices=0, wxString choices_array=None,
658 long style=0, Validator validator=DefaultValidator,
659 wxString name=wxPyListBoxNameStr) -> ListBox"""
660 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
661 self
.this
= newobj
.this
664 self
._setOORInfo
(self
)
666 def Create(*args
, **kwargs
):
667 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
668 int choices=0, wxString choices_array=None,
669 long style=0, Validator validator=DefaultValidator,
670 wxString name=wxPyListBoxNameStr) -> bool"""
671 return _controls
.ListBox_Create(*args
, **kwargs
)
673 def Insert(*args
, **kwargs
):
674 """Insert(wxString item, int pos, PyObject clientData=None)"""
675 return _controls
.ListBox_Insert(*args
, **kwargs
)
677 def InsertItems(*args
, **kwargs
):
678 """InsertItems(wxArrayString items, int pos)"""
679 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
681 def Set(*args
, **kwargs
):
682 """Set(wxArrayString items)"""
683 return _controls
.ListBox_Set(*args
, **kwargs
)
685 def IsSelected(*args
, **kwargs
):
686 """IsSelected(int n) -> bool"""
687 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
689 def SetSelection(*args
, **kwargs
):
690 """SetSelection(int n, bool select=True)"""
691 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
693 def Select(*args
, **kwargs
):
695 return _controls
.ListBox_Select(*args
, **kwargs
)
697 def Deselect(*args
, **kwargs
):
698 """Deselect(int n)"""
699 return _controls
.ListBox_Deselect(*args
, **kwargs
)
701 def DeselectAll(*args
, **kwargs
):
702 """DeselectAll(int itemToLeaveSelected=-1)"""
703 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
705 def SetStringSelection(*args
, **kwargs
):
706 """SetStringSelection(wxString s, bool select=True) -> bool"""
707 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
709 def GetSelections(*args
, **kwargs
):
710 """GetSelections() -> PyObject"""
711 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
713 def SetFirstItem(*args
, **kwargs
):
714 """SetFirstItem(int n)"""
715 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
717 def SetFirstItemStr(*args
, **kwargs
):
718 """SetFirstItemStr(wxString s)"""
719 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
721 def EnsureVisible(*args
, **kwargs
):
722 """EnsureVisible(int n)"""
723 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
725 def AppendAndEnsureVisible(*args
, **kwargs
):
726 """AppendAndEnsureVisible(wxString s)"""
727 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
729 def IsSorted(*args
, **kwargs
):
730 """IsSorted() -> bool"""
731 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
734 class ListBoxPtr(ListBox
):
735 def __init__(self
, this
):
737 if not hasattr(self
,"thisown"): self
.thisown
= 0
738 self
.__class
__ = ListBox
739 _controls
.ListBox_swigregister(ListBoxPtr
)
741 def PreListBox(*args
, **kwargs
):
742 """PreListBox() -> ListBox"""
743 val
= _controls
.new_PreListBox(*args
, **kwargs
)
747 #---------------------------------------------------------------------------
749 class CheckListBox(ListBox
):
752 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
753 def __init__(self
, *args
, **kwargs
):
754 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
755 int choices=0, wxString choices_array=None,
756 long style=0, Validator validator=DefaultValidator,
757 wxString name=wxPyListBoxNameStr) -> CheckListBox"""
758 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
759 self
.this
= newobj
.this
762 def Create(*args
, **kwargs
):
763 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
764 int choices=0, wxString choices_array=None,
765 long style=0, Validator validator=DefaultValidator,
766 wxString name=wxPyListBoxNameStr) -> bool"""
767 return _controls
.CheckListBox_Create(*args
, **kwargs
)
769 def IsChecked(*args
, **kwargs
):
770 """IsChecked(int index) -> bool"""
771 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
773 def Check(*args
, **kwargs
):
774 """Check(int index, int check=True)"""
775 return _controls
.CheckListBox_Check(*args
, **kwargs
)
777 def GetItemHeight(*args
, **kwargs
):
778 """GetItemHeight() -> int"""
779 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
781 def HitTest(*args
, **kwargs
):
782 """HitTest(Point pt) -> int"""
783 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
785 def HitTestXY(*args
, **kwargs
):
786 """HitTestXY(int x, int y) -> int"""
787 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
790 class CheckListBoxPtr(CheckListBox
):
791 def __init__(self
, this
):
793 if not hasattr(self
,"thisown"): self
.thisown
= 0
794 self
.__class
__ = CheckListBox
795 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
797 def PreCheckListBox(*args
, **kwargs
):
798 """PreCheckListBox() -> CheckListBox"""
799 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
803 #---------------------------------------------------------------------------
805 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
806 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
807 TE_READONLY
= _controls
.TE_READONLY
808 TE_MULTILINE
= _controls
.TE_MULTILINE
809 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
810 TE_LEFT
= _controls
.TE_LEFT
811 TE_CENTER
= _controls
.TE_CENTER
812 TE_RIGHT
= _controls
.TE_RIGHT
813 TE_CENTRE
= _controls
.TE_CENTRE
814 TE_RICH
= _controls
.TE_RICH
815 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
816 TE_PASSWORD
= _controls
.TE_PASSWORD
817 TE_AUTO_URL
= _controls
.TE_AUTO_URL
818 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
819 TE_DONTWRAP
= _controls
.TE_DONTWRAP
820 TE_LINEWRAP
= _controls
.TE_LINEWRAP
821 TE_WORDWRAP
= _controls
.TE_WORDWRAP
822 TE_RICH2
= _controls
.TE_RICH2
823 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
824 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
825 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
826 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
827 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
828 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
829 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
830 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
831 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
832 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
833 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
834 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
835 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
836 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
837 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
838 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
839 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
840 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
841 class TextAttr(object):
844 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
845 def __init__(self
, *args
):
846 """__init__() -> TextAttr
847 __init__(wxColour colText, wxColour colBack=wxNullColour, wxFont font=wxNullFont,
848 wxTextAttrAlignment alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr"""
849 newobj
= _controls
.new_TextAttr(*args
)
850 self
.this
= newobj
.this
853 def Init(*args
, **kwargs
):
855 return _controls
.TextAttr_Init(*args
, **kwargs
)
857 def SetTextColour(*args
, **kwargs
):
858 """SetTextColour(wxColour colText)"""
859 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
861 def SetBackgroundColour(*args
, **kwargs
):
862 """SetBackgroundColour(wxColour colBack)"""
863 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
865 def SetFont(*args
, **kwargs
):
866 """SetFont(wxFont font, long flags=TEXT_ATTR_FONT)"""
867 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
869 def SetAlignment(*args
, **kwargs
):
870 """SetAlignment(wxTextAttrAlignment alignment)"""
871 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
873 def SetTabs(*args
, **kwargs
):
874 """SetTabs(wxArrayInt tabs)"""
875 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
877 def SetLeftIndent(*args
, **kwargs
):
878 """SetLeftIndent(int indent)"""
879 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
881 def SetRightIndent(*args
, **kwargs
):
882 """SetRightIndent(int indent)"""
883 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
885 def SetFlags(*args
, **kwargs
):
886 """SetFlags(long flags)"""
887 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
889 def HasTextColour(*args
, **kwargs
):
890 """HasTextColour() -> bool"""
891 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
893 def HasBackgroundColour(*args
, **kwargs
):
894 """HasBackgroundColour() -> bool"""
895 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
897 def HasFont(*args
, **kwargs
):
898 """HasFont() -> bool"""
899 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
901 def HasAlignment(*args
, **kwargs
):
902 """HasAlignment() -> bool"""
903 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
905 def HasTabs(*args
, **kwargs
):
906 """HasTabs() -> bool"""
907 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
909 def HasLeftIndent(*args
, **kwargs
):
910 """HasLeftIndent() -> bool"""
911 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
913 def HasRightIndent(*args
, **kwargs
):
914 """HasRightIndent() -> bool"""
915 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
917 def HasFlag(*args
, **kwargs
):
918 """HasFlag(long flag) -> bool"""
919 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
921 def GetTextColour(*args
, **kwargs
):
922 """GetTextColour() -> wxColour"""
923 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
925 def GetBackgroundColour(*args
, **kwargs
):
926 """GetBackgroundColour() -> wxColour"""
927 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
929 def GetFont(*args
, **kwargs
):
930 """GetFont() -> wxFont"""
931 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
933 def GetAlignment(*args
, **kwargs
):
934 """GetAlignment() -> wxTextAttrAlignment"""
935 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
937 def GetTabs(*args
, **kwargs
):
938 """GetTabs() -> wxArrayInt"""
939 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
941 def GetLeftIndent(*args
, **kwargs
):
942 """GetLeftIndent() -> long"""
943 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
945 def GetRightIndent(*args
, **kwargs
):
946 """GetRightIndent() -> long"""
947 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
949 def GetFlags(*args
, **kwargs
):
950 """GetFlags() -> long"""
951 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
953 def IsDefault(*args
, **kwargs
):
954 """IsDefault() -> bool"""
955 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
957 def Combine(*args
, **kwargs
):
958 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
959 return _controls
.TextAttr_Combine(*args
, **kwargs
)
961 Combine
= staticmethod(Combine
)
963 class TextAttrPtr(TextAttr
):
964 def __init__(self
, this
):
966 if not hasattr(self
,"thisown"): self
.thisown
= 0
967 self
.__class
__ = TextAttr
968 _controls
.TextAttr_swigregister(TextAttrPtr
)
970 def TextAttr_Combine(*args
, **kwargs
):
971 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
972 return _controls
.TextAttr_Combine(*args
, **kwargs
)
974 class TextCtrl(core
.Control
):
977 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
978 def __init__(self
, *args
, **kwargs
):
979 """__init__(Window parent, int id, wxString value=wxPyEmptyString,
980 Point pos=DefaultPosition, Size size=DefaultSize,
981 long style=0, Validator validator=DefaultValidator,
982 wxString name=wxPyTextCtrlNameStr) -> TextCtrl"""
983 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
984 self
.this
= newobj
.this
987 self
._setOORInfo
(self
)
989 def Create(*args
, **kwargs
):
990 """Create(Window parent, int id, wxString value=wxPyEmptyString,
991 Point pos=DefaultPosition, Size size=DefaultSize,
992 long style=0, Validator validator=DefaultValidator,
993 wxString name=wxPyTextCtrlNameStr) -> bool"""
994 return _controls
.TextCtrl_Create(*args
, **kwargs
)
996 def GetValue(*args
, **kwargs
):
997 """GetValue() -> wxString"""
998 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1000 def SetValue(*args
, **kwargs
):
1001 """SetValue(wxString value)"""
1002 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1004 def GetRange(*args
, **kwargs
):
1005 """GetRange(long from, long to) -> wxString"""
1006 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1008 def GetLineLength(*args
, **kwargs
):
1009 """GetLineLength(long lineNo) -> int"""
1010 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1012 def GetLineText(*args
, **kwargs
):
1013 """GetLineText(long lineNo) -> wxString"""
1014 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1016 def GetNumberOfLines(*args
, **kwargs
):
1017 """GetNumberOfLines() -> int"""
1018 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1020 def IsModified(*args
, **kwargs
):
1021 """IsModified() -> bool"""
1022 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1024 def IsEditable(*args
, **kwargs
):
1025 """IsEditable() -> bool"""
1026 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1028 def IsSingleLine(*args
, **kwargs
):
1029 """IsSingleLine() -> bool"""
1030 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1032 def IsMultiLine(*args
, **kwargs
):
1033 """IsMultiLine() -> bool"""
1034 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1036 def GetSelection(*args
, **kwargs
):
1037 """GetSelection() -> (from, to)
1039 If the return values from and to are the same, there is no selection."""
1040 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1042 def GetStringSelection(*args
, **kwargs
):
1043 """GetStringSelection() -> wxString"""
1044 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1046 def Clear(*args
, **kwargs
):
1048 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1050 def Replace(*args
, **kwargs
):
1051 """Replace(long from, long to, wxString value)"""
1052 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1054 def Remove(*args
, **kwargs
):
1055 """Remove(long from, long to)"""
1056 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1058 def LoadFile(*args
, **kwargs
):
1059 """LoadFile(wxString file) -> bool"""
1060 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1062 def SaveFile(*args
, **kwargs
):
1063 """SaveFile(wxString file=wxPyEmptyString) -> bool"""
1064 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1066 def MarkDirty(*args
, **kwargs
):
1068 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1070 def DiscardEdits(*args
, **kwargs
):
1071 """DiscardEdits()"""
1072 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1074 def SetMaxLength(*args
, **kwargs
):
1075 """SetMaxLength(unsigned long len)"""
1076 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1078 def WriteText(*args
, **kwargs
):
1079 """WriteText(wxString text)"""
1080 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1082 def AppendText(*args
, **kwargs
):
1083 """AppendText(wxString text)"""
1084 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1086 def EmulateKeyPress(*args
, **kwargs
):
1087 """EmulateKeyPress(KeyEvent event) -> bool"""
1088 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1090 def SetStyle(*args
, **kwargs
):
1091 """SetStyle(long start, long end, TextAttr style) -> bool"""
1092 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1094 def GetStyle(*args
, **kwargs
):
1095 """GetStyle(long position, TextAttr style) -> bool"""
1096 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1098 def SetDefaultStyle(*args
, **kwargs
):
1099 """SetDefaultStyle(TextAttr style) -> bool"""
1100 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1102 def GetDefaultStyle(*args
, **kwargs
):
1103 """GetDefaultStyle() -> TextAttr"""
1104 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1106 def XYToPosition(*args
, **kwargs
):
1107 """XYToPosition(long x, long y) -> long"""
1108 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1110 def PositionToXY(*args
, **kwargs
):
1111 """PositionToXY(long pos) -> (x, y)"""
1112 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1114 def ShowPosition(*args
, **kwargs
):
1115 """ShowPosition(long pos)"""
1116 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1118 def Copy(*args
, **kwargs
):
1120 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1122 def Cut(*args
, **kwargs
):
1124 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1126 def Paste(*args
, **kwargs
):
1128 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1130 def CanCopy(*args
, **kwargs
):
1131 """CanCopy() -> bool"""
1132 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1134 def CanCut(*args
, **kwargs
):
1135 """CanCut() -> bool"""
1136 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1138 def CanPaste(*args
, **kwargs
):
1139 """CanPaste() -> bool"""
1140 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1142 def Undo(*args
, **kwargs
):
1144 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1146 def Redo(*args
, **kwargs
):
1148 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1150 def CanUndo(*args
, **kwargs
):
1151 """CanUndo() -> bool"""
1152 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1154 def CanRedo(*args
, **kwargs
):
1155 """CanRedo() -> bool"""
1156 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1158 def SetInsertionPoint(*args
, **kwargs
):
1159 """SetInsertionPoint(long pos)"""
1160 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1162 def SetInsertionPointEnd(*args
, **kwargs
):
1163 """SetInsertionPointEnd()"""
1164 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1166 def GetInsertionPoint(*args
, **kwargs
):
1167 """GetInsertionPoint() -> long"""
1168 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1170 def GetLastPosition(*args
, **kwargs
):
1171 """GetLastPosition() -> long"""
1172 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1174 def SetSelection(*args
, **kwargs
):
1175 """SetSelection(long from, long to)"""
1176 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1178 def SelectAll(*args
, **kwargs
):
1180 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1182 def SetEditable(*args
, **kwargs
):
1183 """SetEditable(bool editable)"""
1184 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1186 def write(*args
, **kwargs
):
1187 """write(wxString text)"""
1188 return _controls
.TextCtrl_write(*args
, **kwargs
)
1190 def GetString(*args
, **kwargs
):
1191 """GetString(long from, long to) -> wxString"""
1192 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1195 class TextCtrlPtr(TextCtrl
):
1196 def __init__(self
, this
):
1198 if not hasattr(self
,"thisown"): self
.thisown
= 0
1199 self
.__class
__ = TextCtrl
1200 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1202 def PreTextCtrl(*args
, **kwargs
):
1203 """PreTextCtrl() -> TextCtrl"""
1204 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1208 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1209 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1210 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1211 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1212 class TextUrlEvent(core
.CommandEvent
):
1215 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1216 def __init__(self
, *args
, **kwargs
):
1217 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1218 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1219 self
.this
= newobj
.this
1222 def GetMouseEvent(*args
, **kwargs
):
1223 """GetMouseEvent() -> MouseEvent"""
1224 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1226 def GetURLStart(*args
, **kwargs
):
1227 """GetURLStart() -> long"""
1228 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1230 def GetURLEnd(*args
, **kwargs
):
1231 """GetURLEnd() -> long"""
1232 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1235 class TextUrlEventPtr(TextUrlEvent
):
1236 def __init__(self
, this
):
1238 if not hasattr(self
,"thisown"): self
.thisown
= 0
1239 self
.__class
__ = TextUrlEvent
1240 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1242 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1243 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1244 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1245 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1247 #---------------------------------------------------------------------------
1249 class ScrollBar(core
.Control
):
1252 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1253 def __init__(self
, *args
, **kwargs
):
1254 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
1255 Size size=DefaultSize, long style=SB_HORIZONTAL,
1256 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> ScrollBar"""
1257 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1258 self
.this
= newobj
.this
1261 self
._setOORInfo
(self
)
1263 def Create(*args
, **kwargs
):
1264 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
1265 Size size=DefaultSize, long style=SB_HORIZONTAL,
1266 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> bool"""
1267 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1269 def GetThumbPosition(*args
, **kwargs
):
1270 """GetThumbPosition() -> int"""
1271 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1273 def GetThumbSize(*args
, **kwargs
):
1274 """GetThumbSize() -> int"""
1275 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1277 GetThumbLength
= GetThumbSize
1278 def GetPageSize(*args
, **kwargs
):
1279 """GetPageSize() -> int"""
1280 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1282 def GetRange(*args
, **kwargs
):
1283 """GetRange() -> int"""
1284 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1286 def IsVertical(*args
, **kwargs
):
1287 """IsVertical() -> bool"""
1288 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1290 def SetThumbPosition(*args
, **kwargs
):
1291 """SetThumbPosition(int viewStart)"""
1292 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1294 def SetScrollbar(*args
, **kwargs
):
1295 """SetScrollbar(int position, int thumbSize, int range, int pageSize,
1296 bool refresh=True)"""
1297 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1300 class ScrollBarPtr(ScrollBar
):
1301 def __init__(self
, this
):
1303 if not hasattr(self
,"thisown"): self
.thisown
= 0
1304 self
.__class
__ = ScrollBar
1305 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1307 def PreScrollBar(*args
, **kwargs
):
1308 """PreScrollBar() -> ScrollBar"""
1309 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1313 #---------------------------------------------------------------------------
1315 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1316 SP_VERTICAL
= _controls
.SP_VERTICAL
1317 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1318 SP_WRAP
= _controls
.SP_WRAP
1319 class SpinButton(core
.Control
):
1322 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1323 def __init__(self
, *args
, **kwargs
):
1324 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
1325 Size size=DefaultSize, long style=SP_HORIZONTAL,
1326 wxString name=wxPySPIN_BUTTON_NAME) -> SpinButton"""
1327 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1328 self
.this
= newobj
.this
1331 self
._setOORInfo
(self
)
1333 def Create(*args
, **kwargs
):
1334 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
1335 Size size=DefaultSize, long style=SP_HORIZONTAL,
1336 wxString name=wxPySPIN_BUTTON_NAME) -> bool"""
1337 return _controls
.SpinButton_Create(*args
, **kwargs
)
1339 def GetValue(*args
, **kwargs
):
1340 """GetValue() -> int"""
1341 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1343 def GetMin(*args
, **kwargs
):
1344 """GetMin() -> int"""
1345 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1347 def GetMax(*args
, **kwargs
):
1348 """GetMax() -> int"""
1349 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1351 def SetValue(*args
, **kwargs
):
1352 """SetValue(int val)"""
1353 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1355 def SetMin(*args
, **kwargs
):
1356 """SetMin(int minVal)"""
1357 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1359 def SetMax(*args
, **kwargs
):
1360 """SetMax(int maxVal)"""
1361 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1363 def SetRange(*args
, **kwargs
):
1364 """SetRange(int minVal, int maxVal)"""
1365 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1367 def IsVertical(*args
, **kwargs
):
1368 """IsVertical() -> bool"""
1369 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1372 class SpinButtonPtr(SpinButton
):
1373 def __init__(self
, this
):
1375 if not hasattr(self
,"thisown"): self
.thisown
= 0
1376 self
.__class
__ = SpinButton
1377 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1379 def PreSpinButton(*args
, **kwargs
):
1380 """PreSpinButton() -> SpinButton"""
1381 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1385 class SpinCtrl(core
.Control
):
1388 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1389 def __init__(self
, *args
, **kwargs
):
1390 """__init__(Window parent, int id=-1, wxString value=wxPyEmptyString,
1391 Point pos=DefaultPosition, Size size=DefaultSize,
1392 long style=SP_ARROW_KEYS, int min=0,
1393 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> SpinCtrl"""
1394 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1395 self
.this
= newobj
.this
1398 self
._setOORInfo
(self
)
1400 def Create(*args
, **kwargs
):
1401 """Create(Window parent, int id=-1, wxString value=wxPyEmptyString,
1402 Point pos=DefaultPosition, Size size=DefaultSize,
1403 long style=SP_ARROW_KEYS, int min=0,
1404 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> bool"""
1405 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1407 def GetValue(*args
, **kwargs
):
1408 """GetValue() -> int"""
1409 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1411 def SetValue(*args
, **kwargs
):
1412 """SetValue(int value)"""
1413 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1415 def SetValueString(*args
, **kwargs
):
1416 """SetValueString(wxString text)"""
1417 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1419 def SetRange(*args
, **kwargs
):
1420 """SetRange(int minVal, int maxVal)"""
1421 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1423 def GetMin(*args
, **kwargs
):
1424 """GetMin() -> int"""
1425 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1427 def GetMax(*args
, **kwargs
):
1428 """GetMax() -> int"""
1429 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1431 def SetSelection(*args
, **kwargs
):
1432 """SetSelection(long from, long to)"""
1433 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1436 class SpinCtrlPtr(SpinCtrl
):
1437 def __init__(self
, this
):
1439 if not hasattr(self
,"thisown"): self
.thisown
= 0
1440 self
.__class
__ = SpinCtrl
1441 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1443 def PreSpinCtrl(*args
, **kwargs
):
1444 """PreSpinCtrl() -> SpinCtrl"""
1445 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1449 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1450 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1452 #---------------------------------------------------------------------------
1454 class RadioBox(core
.Control
):
1457 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1458 def __init__(self
, *args
, **kwargs
):
1459 """__init__(Window parent, int id, wxString label, Point point=DefaultPosition,
1460 Size size=DefaultSize, int choices=0,
1461 wxString choices_array=None, int majorDimension=0,
1462 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1463 wxString name=wxPyRadioBoxNameStr) -> RadioBox"""
1464 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1465 self
.this
= newobj
.this
1468 self
._setOORInfo
(self
)
1470 def Create(*args
, **kwargs
):
1471 """Create(Window parent, int id, wxString label, Point point=DefaultPosition,
1472 Size size=DefaultSize, int choices=0,
1473 wxString choices_array=None, int majorDimension=0,
1474 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1475 wxString name=wxPyRadioBoxNameStr) -> bool"""
1476 return _controls
.RadioBox_Create(*args
, **kwargs
)
1478 def SetSelection(*args
, **kwargs
):
1479 """SetSelection(int n)"""
1480 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1482 def GetSelection(*args
, **kwargs
):
1483 """GetSelection() -> int"""
1484 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1486 def GetStringSelection(*args
, **kwargs
):
1487 """GetStringSelection() -> wxString"""
1488 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1490 def SetStringSelection(*args
, **kwargs
):
1491 """SetStringSelection(wxString s) -> bool"""
1492 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1494 def GetCount(*args
, **kwargs
):
1495 """GetCount() -> int"""
1496 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1498 def FindString(*args
, **kwargs
):
1499 """FindString(wxString s) -> int"""
1500 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1502 def GetString(*args
, **kwargs
):
1503 """GetString(int n) -> wxString"""
1504 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1506 def SetString(*args
, **kwargs
):
1507 """SetString(int n, wxString label)"""
1508 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1510 GetItemLabel
= GetString
1511 SetItemLabel
= SetString
1512 def EnableItem(*args
, **kwargs
):
1513 """EnableItem(int n, bool enable=True)"""
1514 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1516 def ShowItem(*args
, **kwargs
):
1517 """ShowItem(int n, bool show=True)"""
1518 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1520 def GetColumnCount(*args
, **kwargs
):
1521 """GetColumnCount() -> int"""
1522 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1524 def GetRowCount(*args
, **kwargs
):
1525 """GetRowCount() -> int"""
1526 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1528 def GetNextItem(*args
, **kwargs
):
1529 """GetNextItem(int item, wxDirection dir, long style) -> int"""
1530 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1533 class RadioBoxPtr(RadioBox
):
1534 def __init__(self
, this
):
1536 if not hasattr(self
,"thisown"): self
.thisown
= 0
1537 self
.__class
__ = RadioBox
1538 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1540 def PreRadioBox(*args
, **kwargs
):
1541 """PreRadioBox() -> RadioBox"""
1542 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1546 #---------------------------------------------------------------------------
1548 class RadioButton(core
.Control
):
1551 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1552 def __init__(self
, *args
, **kwargs
):
1553 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1554 Size size=DefaultSize, long style=0,
1555 Validator validator=DefaultValidator,
1556 wxString name=wxPyRadioButtonNameStr) -> RadioButton"""
1557 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1558 self
.this
= newobj
.this
1561 self
._setOORInfo
(self
)
1563 def Create(*args
, **kwargs
):
1564 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1565 Size size=DefaultSize, long style=0,
1566 Validator validator=DefaultValidator,
1567 wxString name=wxPyRadioButtonNameStr) -> bool"""
1568 return _controls
.RadioButton_Create(*args
, **kwargs
)
1570 def GetValue(*args
, **kwargs
):
1571 """GetValue() -> bool"""
1572 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1574 def SetValue(*args
, **kwargs
):
1575 """SetValue(bool value)"""
1576 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1579 class RadioButtonPtr(RadioButton
):
1580 def __init__(self
, this
):
1582 if not hasattr(self
,"thisown"): self
.thisown
= 0
1583 self
.__class
__ = RadioButton
1584 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1586 def PreRadioButton(*args
, **kwargs
):
1587 """PreRadioButton() -> RadioButton"""
1588 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1592 #---------------------------------------------------------------------------
1594 class Slider(core
.Control
):
1597 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1598 def __init__(self
, *args
, **kwargs
):
1599 """__init__(Window parent, int id, int value, int minValue, int maxValue,
1600 Point point=DefaultPosition, Size size=DefaultSize,
1601 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1602 wxString name=wxPySliderNameStr) -> Slider"""
1603 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1604 self
.this
= newobj
.this
1607 self
._setOORInfo
(self
)
1609 def Create(*args
, **kwargs
):
1610 """Create(Window parent, int id, int value, int minValue, int maxValue,
1611 Point point=DefaultPosition, Size size=DefaultSize,
1612 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1613 wxString name=wxPySliderNameStr) -> bool"""
1614 return _controls
.Slider_Create(*args
, **kwargs
)
1616 def GetValue(*args
, **kwargs
):
1617 """GetValue() -> int"""
1618 return _controls
.Slider_GetValue(*args
, **kwargs
)
1620 def SetValue(*args
, **kwargs
):
1621 """SetValue(int value)"""
1622 return _controls
.Slider_SetValue(*args
, **kwargs
)
1624 def SetRange(*args
, **kwargs
):
1625 """SetRange(int minValue, int maxValue)"""
1626 return _controls
.Slider_SetRange(*args
, **kwargs
)
1628 def GetMin(*args
, **kwargs
):
1629 """GetMin() -> int"""
1630 return _controls
.Slider_GetMin(*args
, **kwargs
)
1632 def GetMax(*args
, **kwargs
):
1633 """GetMax() -> int"""
1634 return _controls
.Slider_GetMax(*args
, **kwargs
)
1636 def SetMin(*args
, **kwargs
):
1637 """SetMin(int minValue)"""
1638 return _controls
.Slider_SetMin(*args
, **kwargs
)
1640 def SetMax(*args
, **kwargs
):
1641 """SetMax(int maxValue)"""
1642 return _controls
.Slider_SetMax(*args
, **kwargs
)
1644 def SetLineSize(*args
, **kwargs
):
1645 """SetLineSize(int lineSize)"""
1646 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1648 def SetPageSize(*args
, **kwargs
):
1649 """SetPageSize(int pageSize)"""
1650 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1652 def GetLineSize(*args
, **kwargs
):
1653 """GetLineSize() -> int"""
1654 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1656 def GetPageSize(*args
, **kwargs
):
1657 """GetPageSize() -> int"""
1658 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1660 def SetThumbLength(*args
, **kwargs
):
1661 """SetThumbLength(int lenPixels)"""
1662 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1664 def GetThumbLength(*args
, **kwargs
):
1665 """GetThumbLength() -> int"""
1666 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1668 def SetTickFreq(*args
, **kwargs
):
1669 """SetTickFreq(int n, int pos)"""
1670 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1672 def GetTickFreq(*args
, **kwargs
):
1673 """GetTickFreq() -> int"""
1674 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1676 def ClearTicks(*args
, **kwargs
):
1678 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1680 def SetTick(*args
, **kwargs
):
1681 """SetTick(int tickPos)"""
1682 return _controls
.Slider_SetTick(*args
, **kwargs
)
1684 def ClearSel(*args
, **kwargs
):
1686 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1688 def GetSelEnd(*args
, **kwargs
):
1689 """GetSelEnd() -> int"""
1690 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1692 def GetSelStart(*args
, **kwargs
):
1693 """GetSelStart() -> int"""
1694 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1696 def SetSelection(*args
, **kwargs
):
1697 """SetSelection(int min, int max)"""
1698 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1701 class SliderPtr(Slider
):
1702 def __init__(self
, this
):
1704 if not hasattr(self
,"thisown"): self
.thisown
= 0
1705 self
.__class
__ = Slider
1706 _controls
.Slider_swigregister(SliderPtr
)
1708 def PreSlider(*args
, **kwargs
):
1709 """PreSlider() -> Slider"""
1710 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1714 #---------------------------------------------------------------------------
1716 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1717 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1719 class ToggleButton(core
.Control
):
1722 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1723 def __init__(self
, *args
, **kwargs
):
1724 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1725 Size size=DefaultSize, long style=0,
1726 Validator validator=DefaultValidator,
1727 wxString name=wxPyToggleButtonNameStr) -> ToggleButton"""
1728 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1729 self
.this
= newobj
.this
1732 self
._setOORInfo
(self
)
1734 def Create(*args
, **kwargs
):
1735 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1736 Size size=DefaultSize, long style=0,
1737 Validator validator=DefaultValidator,
1738 wxString name=wxPyToggleButtonNameStr) -> bool"""
1739 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1741 def SetValue(*args
, **kwargs
):
1742 """SetValue(bool value)"""
1743 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1745 def GetValue(*args
, **kwargs
):
1746 """GetValue() -> bool"""
1747 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1749 def SetLabel(*args
, **kwargs
):
1750 """SetLabel(wxString label)"""
1751 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1754 class ToggleButtonPtr(ToggleButton
):
1755 def __init__(self
, this
):
1757 if not hasattr(self
,"thisown"): self
.thisown
= 0
1758 self
.__class
__ = ToggleButton
1759 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1761 def PreToggleButton(*args
, **kwargs
):
1762 """PreToggleButton() -> ToggleButton"""
1763 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1767 #---------------------------------------------------------------------------
1769 class BookCtrl(core
.Control
):
1771 def __init__(self
): raise RuntimeError, "No constructor defined"
1773 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1774 def GetPageCount(*args
, **kwargs
):
1775 """GetPageCount() -> size_t"""
1776 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1778 def GetPage(*args
, **kwargs
):
1779 """GetPage(size_t n) -> Window"""
1780 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1782 def GetSelection(*args
, **kwargs
):
1783 """GetSelection() -> int"""
1784 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1786 def SetPageText(*args
, **kwargs
):
1787 """SetPageText(size_t n, wxString strText) -> bool"""
1788 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1790 def GetPageText(*args
, **kwargs
):
1791 """GetPageText(size_t n) -> wxString"""
1792 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1794 def SetImageList(*args
, **kwargs
):
1795 """SetImageList(wxImageList imageList)"""
1796 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1798 def AssignImageList(*args
, **kwargs
):
1799 """AssignImageList(wxImageList imageList)"""
1800 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1804 def GetImageList(*args
, **kwargs
):
1805 """GetImageList() -> wxImageList"""
1806 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1808 def GetPageImage(*args
, **kwargs
):
1809 """GetPageImage(size_t n) -> int"""
1810 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1812 def SetPageImage(*args
, **kwargs
):
1813 """SetPageImage(size_t n, int imageId) -> bool"""
1814 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1816 def SetPageSize(*args
, **kwargs
):
1817 """SetPageSize(Size size)"""
1818 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1820 def CalcSizeFromPage(*args
, **kwargs
):
1821 """CalcSizeFromPage(Size sizePage) -> Size"""
1822 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1824 def DeletePage(*args
, **kwargs
):
1825 """DeletePage(size_t n) -> bool"""
1826 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1828 def RemovePage(*args
, **kwargs
):
1829 """RemovePage(size_t n) -> bool"""
1830 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1832 def DeleteAllPages(*args
, **kwargs
):
1833 """DeleteAllPages() -> bool"""
1834 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1836 def AddPage(*args
, **kwargs
):
1837 """AddPage(Window page, wxString text, bool select=False, int imageId=-1) -> bool"""
1838 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1840 def InsertPage(*args
, **kwargs
):
1841 """InsertPage(size_t n, Window page, wxString text, bool select=False,
1842 int imageId=-1) -> bool"""
1843 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1845 def SetSelection(*args
, **kwargs
):
1846 """SetSelection(size_t n) -> int"""
1847 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1849 def AdvanceSelection(*args
, **kwargs
):
1850 """AdvanceSelection(bool forward=True)"""
1851 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1854 class BookCtrlPtr(BookCtrl
):
1855 def __init__(self
, this
):
1857 if not hasattr(self
,"thisown"): self
.thisown
= 0
1858 self
.__class
__ = BookCtrl
1859 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1861 class BookCtrlEvent(core
.NotifyEvent
):
1864 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1865 def __init__(self
, *args
, **kwargs
):
1866 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1867 int nOldSel=-1) -> BookCtrlEvent"""
1868 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1869 self
.this
= newobj
.this
1872 def GetSelection(*args
, **kwargs
):
1873 """GetSelection() -> int"""
1874 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1876 def SetSelection(*args
, **kwargs
):
1877 """SetSelection(int nSel)"""
1878 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
1880 def GetOldSelection(*args
, **kwargs
):
1881 """GetOldSelection() -> int"""
1882 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
1884 def SetOldSelection(*args
, **kwargs
):
1885 """SetOldSelection(int nOldSel)"""
1886 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
1889 class BookCtrlEventPtr(BookCtrlEvent
):
1890 def __init__(self
, this
):
1892 if not hasattr(self
,"thisown"): self
.thisown
= 0
1893 self
.__class
__ = BookCtrlEvent
1894 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
1896 #---------------------------------------------------------------------------
1898 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
1899 NB_TOP
= _controls
.NB_TOP
1900 NB_LEFT
= _controls
.NB_LEFT
1901 NB_RIGHT
= _controls
.NB_RIGHT
1902 NB_BOTTOM
= _controls
.NB_BOTTOM
1903 NB_MULTILINE
= _controls
.NB_MULTILINE
1904 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
1905 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
1906 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
1907 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
1908 class Notebook(BookCtrl
):
1911 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1912 def __init__(self
, *args
, **kwargs
):
1913 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1914 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> Notebook"""
1915 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
1916 self
.this
= newobj
.this
1919 self
._setOORInfo
(self
)
1921 def Create(*args
, **kwargs
):
1922 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1923 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> bool"""
1924 return _controls
.Notebook_Create(*args
, **kwargs
)
1926 def GetRowCount(*args
, **kwargs
):
1927 """GetRowCount() -> int"""
1928 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
1930 def SetPadding(*args
, **kwargs
):
1931 """SetPadding(Size padding)"""
1932 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
1934 def SetTabSize(*args
, **kwargs
):
1935 """SetTabSize(Size sz)"""
1936 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
1938 def HitTest(*args
, **kwargs
):
1939 """HitTest(Point pt) -> (tab, where)
1941 Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags."""
1942 return _controls
.Notebook_HitTest(*args
, **kwargs
)
1944 def CalcSizeFromPage(*args
, **kwargs
):
1945 """CalcSizeFromPage(Size sizePage) -> Size"""
1946 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
1949 class NotebookPtr(Notebook
):
1950 def __init__(self
, this
):
1952 if not hasattr(self
,"thisown"): self
.thisown
= 0
1953 self
.__class
__ = Notebook
1954 _controls
.Notebook_swigregister(NotebookPtr
)
1956 def PreNotebook(*args
, **kwargs
):
1957 """PreNotebook() -> Notebook"""
1958 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
1962 class NotebookEvent(BookCtrlEvent
):
1965 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1966 def __init__(self
, *args
, **kwargs
):
1967 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1968 int nOldSel=-1) -> NotebookEvent"""
1969 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
1970 self
.this
= newobj
.this
1974 class NotebookEventPtr(NotebookEvent
):
1975 def __init__(self
, this
):
1977 if not hasattr(self
,"thisown"): self
.thisown
= 0
1978 self
.__class
__ = NotebookEvent
1979 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
1981 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
1982 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
1984 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
1985 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
1987 #----------------------------------------------------------------------------
1989 class NotebookPage(wx
.Panel
):
1991 There is an old (and apparently unsolvable) bug when placing a
1992 window with a nonstandard background colour in a wxNotebook on
1993 wxGTK, as the notbooks's background colour would always be used
1994 when the window is refreshed. The solution is to place a panel in
1995 the notbook and the coloured window on the panel, sized to cover
1996 the panel. This simple class does that for you, just put an
1997 instance of this in the notebook and make your regular window a
1998 child of this one and it will handle the resize for you.
2000 def __init__(self
, parent
, id=-1,
2001 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2002 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2003 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2005 EVT_SIZE(self
, self
.OnSize
)
2007 def OnSize(self
, evt
):
2008 if self
.child
is None:
2009 children
= self
.GetChildren()
2011 self
.child
= children
[0]
2013 self
.child
.SetPosition((0,0))
2014 self
.child
.SetSize(self
.GetSize())
2017 #---------------------------------------------------------------------------
2019 LB_DEFAULT
= _controls
.LB_DEFAULT
2020 LB_TOP
= _controls
.LB_TOP
2021 LB_BOTTOM
= _controls
.LB_BOTTOM
2022 LB_LEFT
= _controls
.LB_LEFT
2023 LB_RIGHT
= _controls
.LB_RIGHT
2024 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2025 class Listbook(BookCtrl
):
2028 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2029 def __init__(self
, *args
, **kwargs
):
2030 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2031 long style=0, wxString name=wxPyEmptyString) -> Listbook"""
2032 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2033 self
.this
= newobj
.this
2036 self
._setOORInfo
(self
)
2038 def Create(*args
, **kwargs
):
2039 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2040 long style=0, wxString name=wxPyEmptyString) -> bool"""
2041 return _controls
.Listbook_Create(*args
, **kwargs
)
2043 def IsVertical(*args
, **kwargs
):
2044 """IsVertical() -> bool"""
2045 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2048 class ListbookPtr(Listbook
):
2049 def __init__(self
, this
):
2051 if not hasattr(self
,"thisown"): self
.thisown
= 0
2052 self
.__class
__ = Listbook
2053 _controls
.Listbook_swigregister(ListbookPtr
)
2055 def PreListbook(*args
, **kwargs
):
2056 """PreListbook() -> Listbook"""
2057 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2061 class ListbookEvent(BookCtrlEvent
):
2064 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2065 def __init__(self
, *args
, **kwargs
):
2066 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2067 int nOldSel=-1) -> ListbookEvent"""
2068 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2069 self
.this
= newobj
.this
2073 class ListbookEventPtr(ListbookEvent
):
2074 def __init__(self
, this
):
2076 if not hasattr(self
,"thisown"): self
.thisown
= 0
2077 self
.__class
__ = ListbookEvent
2078 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2080 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2081 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2082 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2083 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2085 #---------------------------------------------------------------------------
2087 class BookCtrlSizer(core
.Sizer
):
2090 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2091 def __init__(self
, *args
, **kwargs
):
2092 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2093 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2094 self
.this
= newobj
.this
2097 self
._setOORInfo
(self
)
2099 def RecalcSizes(*args
, **kwargs
):
2101 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2103 def CalcMin(*args
, **kwargs
):
2104 """CalcMin() -> Size"""
2105 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2107 def GetControl(*args
, **kwargs
):
2108 """GetControl() -> BookCtrl"""
2109 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2112 class BookCtrlSizerPtr(BookCtrlSizer
):
2113 def __init__(self
, this
):
2115 if not hasattr(self
,"thisown"): self
.thisown
= 0
2116 self
.__class
__ = BookCtrlSizer
2117 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2119 class NotebookSizer(core
.Sizer
):
2122 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2123 def __init__(self
, *args
, **kwargs
):
2124 """__init__(Notebook nb) -> NotebookSizer"""
2125 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2126 self
.this
= newobj
.this
2129 self
._setOORInfo
(self
)
2131 def RecalcSizes(*args
, **kwargs
):
2133 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2135 def CalcMin(*args
, **kwargs
):
2136 """CalcMin() -> Size"""
2137 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2139 def GetNotebook(*args
, **kwargs
):
2140 """GetNotebook() -> Notebook"""
2141 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2144 class NotebookSizerPtr(NotebookSizer
):
2145 def __init__(self
, this
):
2147 if not hasattr(self
,"thisown"): self
.thisown
= 0
2148 self
.__class
__ = NotebookSizer
2149 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2151 #---------------------------------------------------------------------------
2153 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2154 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2155 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2156 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2157 TB_VERTICAL
= _controls
.TB_VERTICAL
2158 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2159 TB_FLAT
= _controls
.TB_FLAT
2160 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2161 TB_NOICONS
= _controls
.TB_NOICONS
2162 TB_TEXT
= _controls
.TB_TEXT
2163 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2164 TB_NOALIGN
= _controls
.TB_NOALIGN
2165 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2166 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2167 class ToolBarToolBase(core
.Object
):
2169 def __init__(self
): raise RuntimeError, "No constructor defined"
2171 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2172 def GetId(*args
, **kwargs
):
2173 """GetId() -> int"""
2174 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2176 def GetControl(*args
, **kwargs
):
2177 """GetControl() -> Control"""
2178 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2180 def GetToolBar(*args
, **kwargs
):
2181 """GetToolBar() -> ToolBarBase"""
2182 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2184 def IsButton(*args
, **kwargs
):
2185 """IsButton() -> int"""
2186 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2188 def IsControl(*args
, **kwargs
):
2189 """IsControl() -> int"""
2190 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2192 def IsSeparator(*args
, **kwargs
):
2193 """IsSeparator() -> int"""
2194 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2196 def GetStyle(*args
, **kwargs
):
2197 """GetStyle() -> int"""
2198 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2200 def GetKind(*args
, **kwargs
):
2201 """GetKind() -> wxItemKind"""
2202 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2204 def IsEnabled(*args
, **kwargs
):
2205 """IsEnabled() -> bool"""
2206 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2208 def IsToggled(*args
, **kwargs
):
2209 """IsToggled() -> bool"""
2210 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2212 def CanBeToggled(*args
, **kwargs
):
2213 """CanBeToggled() -> bool"""
2214 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2216 def GetNormalBitmap(*args
, **kwargs
):
2217 """GetNormalBitmap() -> wxBitmap"""
2218 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2220 def GetDisabledBitmap(*args
, **kwargs
):
2221 """GetDisabledBitmap() -> wxBitmap"""
2222 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2224 def GetBitmap(*args
, **kwargs
):
2225 """GetBitmap() -> wxBitmap"""
2226 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2228 def GetLabel(*args
, **kwargs
):
2229 """GetLabel() -> wxString"""
2230 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2232 def GetShortHelp(*args
, **kwargs
):
2233 """GetShortHelp() -> wxString"""
2234 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2236 def GetLongHelp(*args
, **kwargs
):
2237 """GetLongHelp() -> wxString"""
2238 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2240 def Enable(*args
, **kwargs
):
2241 """Enable(bool enable) -> bool"""
2242 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2244 def Toggle(*args
, **kwargs
):
2246 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2248 def SetToggle(*args
, **kwargs
):
2249 """SetToggle(bool toggle) -> bool"""
2250 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2252 def SetShortHelp(*args
, **kwargs
):
2253 """SetShortHelp(wxString help) -> bool"""
2254 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2256 def SetLongHelp(*args
, **kwargs
):
2257 """SetLongHelp(wxString help) -> bool"""
2258 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2260 def SetNormalBitmap(*args
, **kwargs
):
2261 """SetNormalBitmap(wxBitmap bmp)"""
2262 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2264 def SetDisabledBitmap(*args
, **kwargs
):
2265 """SetDisabledBitmap(wxBitmap bmp)"""
2266 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2268 def SetLabel(*args
, **kwargs
):
2269 """SetLabel(wxString label)"""
2270 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2272 def Detach(*args
, **kwargs
):
2274 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2276 def Attach(*args
, **kwargs
):
2277 """Attach(ToolBarBase tbar)"""
2278 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2280 def GetClientData(*args
, **kwargs
):
2281 """GetClientData() -> PyObject"""
2282 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2284 def SetClientData(*args
, **kwargs
):
2285 """SetClientData(PyObject clientData)"""
2286 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2288 GetBitmap1
= GetNormalBitmap
2289 GetBitmap2
= GetDisabledBitmap
2290 SetBitmap1
= SetNormalBitmap
2291 SetBitmap2
= SetDisabledBitmap
2294 class ToolBarToolBasePtr(ToolBarToolBase
):
2295 def __init__(self
, this
):
2297 if not hasattr(self
,"thisown"): self
.thisown
= 0
2298 self
.__class
__ = ToolBarToolBase
2299 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2301 class ToolBarBase(core
.Control
):
2303 def __init__(self
): raise RuntimeError, "No constructor defined"
2305 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2306 def DoAddTool(*args
, **kwargs
):
2307 """DoAddTool(int id, wxString label, wxBitmap bitmap, wxBitmap bmpDisabled=wxNullBitmap,
2308 wxItemKind kind=ITEM_NORMAL,
2309 wxString shortHelp=wxPyEmptyString,
2310 wxString longHelp=wxPyEmptyString, PyObject clientData=None) -> ToolBarToolBase"""
2311 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2313 def DoInsertTool(*args
, **kwargs
):
2314 """DoInsertTool(size_t pos, int id, wxString label, wxBitmap bitmap,
2315 wxBitmap bmpDisabled=wxNullBitmap, wxItemKind kind=ITEM_NORMAL,
2316 wxString shortHelp=wxPyEmptyString,
2317 wxString longHelp=wxPyEmptyString,
2318 PyObject clientData=None) -> ToolBarToolBase"""
2319 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2321 # These match the original Add methods for this class, kept for
2322 # backwards compatibility with versions < 2.3.3.
2325 def AddTool(self
, id, bitmap
,
2326 pushedBitmap
= wx
.NullBitmap
,
2329 shortHelpString
= '',
2330 longHelpString
= '') :
2331 '''Old style method to add a tool to the toolbar.'''
2332 kind
= wx
.ITEM_NORMAL
2333 if isToggle
: kind
= wx
.ITEM_CHECK
2334 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2335 shortHelpString
, longHelpString
, clientData
)
2337 def AddSimpleTool(self
, id, bitmap
,
2338 shortHelpString
= '',
2339 longHelpString
= '',
2341 '''Old style method to add a tool to the toolbar.'''
2342 kind
= wx
.ITEM_NORMAL
2343 if isToggle
: kind
= wx
.ITEM_CHECK
2344 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2345 shortHelpString
, longHelpString
, None)
2347 def InsertTool(self
, pos
, id, bitmap
,
2348 pushedBitmap
= wx
.NullBitmap
,
2351 shortHelpString
= '',
2352 longHelpString
= ''):
2353 '''Old style method to insert a tool in the toolbar.'''
2354 kind
= wx
.ITEM_NORMAL
2355 if isToggle
: kind
= wx
.ITEM_CHECK
2356 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2357 shortHelpString
, longHelpString
, clientData
)
2359 def InsertSimpleTool(self
, pos
, id, bitmap
,
2360 shortHelpString
= '',
2361 longHelpString
= '',
2363 '''Old style method to insert a tool in the toolbar.'''
2364 kind
= wx
.ITEM_NORMAL
2365 if isToggle
: kind
= wx
.ITEM_CHECK
2366 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2367 shortHelpString
, longHelpString
, None)
2370 # The following are the new toolbar Add methods starting with
2371 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2372 # able to keep backwards compatibility with using the above
2373 # methods. Eventually these should migrate to be the methods used
2374 # primarily and lose the 'Label' in the name...
2376 def AddLabelTool(self
, id, label
, bitmap
,
2377 bmpDisabled
= wx
.NullBitmap
,
2378 kind
= wx
.ITEM_NORMAL
,
2379 shortHelp
= '', longHelp
= '',
2382 The full AddTool() function.
2384 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2385 is created and used as the disabled image.
2387 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2388 shortHelp
, longHelp
, clientData
)
2391 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2392 bmpDisabled
= wx
.NullBitmap
,
2393 kind
= wx
.ITEM_NORMAL
,
2394 shortHelp
= '', longHelp
= '',
2397 Insert the new tool at the given position, if pos == GetToolsCount(), it
2398 is equivalent to AddTool()
2400 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2401 shortHelp
, longHelp
, clientData
)
2403 def AddCheckLabelTool(self
, id, label
, bitmap
,
2404 bmpDisabled
= wx
.NullBitmap
,
2405 shortHelp
= '', longHelp
= '',
2407 '''Add a check tool, i.e. a tool which can be toggled'''
2408 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2409 shortHelp
, longHelp
, clientData
)
2411 def AddRadioLabelTool(self
, id, label
, bitmap
,
2412 bmpDisabled
= wx
.NullBitmap
,
2413 shortHelp
= '', longHelp
= '',
2416 Add a radio tool, i.e. a tool which can be toggled and releases any
2417 other toggled radio tools in the same group when it happens
2419 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2420 shortHelp
, longHelp
, clientData
)
2423 # For consistency with the backwards compatible methods above, here are
2424 # some non-'Label' versions of the Check and Radio methods
2425 def AddCheckTool(self
, id, bitmap
,
2426 bmpDisabled
= wx
.NullBitmap
,
2427 shortHelp
= '', longHelp
= '',
2429 '''Add a check tool, i.e. a tool which can be toggled'''
2430 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2431 shortHelp
, longHelp
, clientData
)
2433 def AddRadioTool(self
, id, bitmap
,
2434 bmpDisabled
= wx
.NullBitmap
,
2435 shortHelp
= '', longHelp
= '',
2438 Add a radio tool, i.e. a tool which can be toggled and releases any
2439 other toggled radio tools in the same group when it happens
2441 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2442 shortHelp
, longHelp
, clientData
)
2444 def AddControl(*args
, **kwargs
):
2445 """AddControl(Control control) -> ToolBarToolBase"""
2446 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2448 def InsertControl(*args
, **kwargs
):
2449 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2450 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2452 def FindControl(*args
, **kwargs
):
2453 """FindControl(int id) -> Control"""
2454 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2456 def AddSeparator(*args
, **kwargs
):
2457 """AddSeparator() -> ToolBarToolBase"""
2458 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2460 def InsertSeparator(*args
, **kwargs
):
2461 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2462 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2464 def RemoveTool(*args
, **kwargs
):
2465 """RemoveTool(int id) -> ToolBarToolBase"""
2466 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2468 def DeleteToolByPos(*args
, **kwargs
):
2469 """DeleteToolByPos(size_t pos) -> bool"""
2470 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2472 def DeleteTool(*args
, **kwargs
):
2473 """DeleteTool(int id) -> bool"""
2474 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2476 def ClearTools(*args
, **kwargs
):
2478 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2480 def Realize(*args
, **kwargs
):
2481 """Realize() -> bool"""
2482 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2484 def EnableTool(*args
, **kwargs
):
2485 """EnableTool(int id, bool enable)"""
2486 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2488 def ToggleTool(*args
, **kwargs
):
2489 """ToggleTool(int id, bool toggle)"""
2490 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2492 def SetToggle(*args
, **kwargs
):
2493 """SetToggle(int id, bool toggle)"""
2494 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2496 def GetToolClientData(*args
, **kwargs
):
2497 """GetToolClientData(int id) -> PyObject"""
2498 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2500 def SetToolClientData(*args
, **kwargs
):
2501 """SetToolClientData(int id, PyObject clientData)"""
2502 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2504 def GetToolPos(*args
, **kwargs
):
2505 """GetToolPos(int id) -> int"""
2506 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2508 def GetToolState(*args
, **kwargs
):
2509 """GetToolState(int id) -> bool"""
2510 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2512 def GetToolEnabled(*args
, **kwargs
):
2513 """GetToolEnabled(int id) -> bool"""
2514 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2516 def SetToolShortHelp(*args
, **kwargs
):
2517 """SetToolShortHelp(int id, wxString helpString)"""
2518 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2520 def GetToolShortHelp(*args
, **kwargs
):
2521 """GetToolShortHelp(int id) -> wxString"""
2522 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2524 def SetToolLongHelp(*args
, **kwargs
):
2525 """SetToolLongHelp(int id, wxString helpString)"""
2526 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2528 def GetToolLongHelp(*args
, **kwargs
):
2529 """GetToolLongHelp(int id) -> wxString"""
2530 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2532 def SetMarginsXY(*args
, **kwargs
):
2533 """SetMarginsXY(int x, int y)"""
2534 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2536 def SetMargins(*args
, **kwargs
):
2537 """SetMargins(Size size)"""
2538 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2540 def SetToolPacking(*args
, **kwargs
):
2541 """SetToolPacking(int packing)"""
2542 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2544 def SetToolSeparation(*args
, **kwargs
):
2545 """SetToolSeparation(int separation)"""
2546 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2548 def GetToolMargins(*args
, **kwargs
):
2549 """GetToolMargins() -> Size"""
2550 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2552 def GetMargins(*args
, **kwargs
):
2553 """GetMargins() -> Size"""
2554 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2556 def GetToolPacking(*args
, **kwargs
):
2557 """GetToolPacking() -> int"""
2558 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2560 def GetToolSeparation(*args
, **kwargs
):
2561 """GetToolSeparation() -> int"""
2562 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2564 def SetRows(*args
, **kwargs
):
2565 """SetRows(int nRows)"""
2566 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2568 def SetMaxRowsCols(*args
, **kwargs
):
2569 """SetMaxRowsCols(int rows, int cols)"""
2570 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2572 def GetMaxRows(*args
, **kwargs
):
2573 """GetMaxRows() -> int"""
2574 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2576 def GetMaxCols(*args
, **kwargs
):
2577 """GetMaxCols() -> int"""
2578 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2580 def SetToolBitmapSize(*args
, **kwargs
):
2581 """SetToolBitmapSize(Size size)"""
2582 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2584 def GetToolBitmapSize(*args
, **kwargs
):
2585 """GetToolBitmapSize() -> Size"""
2586 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2588 def GetToolSize(*args
, **kwargs
):
2589 """GetToolSize() -> Size"""
2590 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2592 def FindToolForPosition(*args
, **kwargs
):
2593 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2594 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2596 def IsVertical(*args
, **kwargs
):
2597 """IsVertical() -> bool"""
2598 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2601 class ToolBarBasePtr(ToolBarBase
):
2602 def __init__(self
, this
):
2604 if not hasattr(self
,"thisown"): self
.thisown
= 0
2605 self
.__class
__ = ToolBarBase
2606 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2608 class ToolBar(ToolBarBase
):
2611 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2612 def __init__(self
, *args
, **kwargs
):
2613 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2614 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2615 wxString name=wxPyToolBarNameStr) -> ToolBar"""
2616 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2617 self
.this
= newobj
.this
2620 self
._setOORInfo
(self
)
2622 def Create(*args
, **kwargs
):
2623 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2624 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2625 wxString name=wxPyToolBarNameStr) -> bool"""
2626 return _controls
.ToolBar_Create(*args
, **kwargs
)
2628 def FindToolForPosition(*args
, **kwargs
):
2629 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2630 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2633 class ToolBarPtr(ToolBar
):
2634 def __init__(self
, this
):
2636 if not hasattr(self
,"thisown"): self
.thisown
= 0
2637 self
.__class
__ = ToolBar
2638 _controls
.ToolBar_swigregister(ToolBarPtr
)
2640 def PreToolBar(*args
, **kwargs
):
2641 """PreToolBar() -> ToolBar"""
2642 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2646 #---------------------------------------------------------------------------
2648 LC_VRULES
= _controls
.LC_VRULES
2649 LC_HRULES
= _controls
.LC_HRULES
2650 LC_ICON
= _controls
.LC_ICON
2651 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2652 LC_LIST
= _controls
.LC_LIST
2653 LC_REPORT
= _controls
.LC_REPORT
2654 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2655 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2656 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2657 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2658 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2659 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2660 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2661 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2662 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2663 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2664 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2665 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2666 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2667 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2668 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2669 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2670 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2671 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2672 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2673 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2674 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2675 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2676 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2677 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2678 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2679 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2680 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2681 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2682 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2683 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2684 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2685 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2686 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2687 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2688 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2689 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2690 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2691 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2692 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2693 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2694 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2695 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2696 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2697 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2698 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2699 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2700 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2701 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2702 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2703 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2704 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2705 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2706 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2707 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2708 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2709 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2710 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2711 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2712 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2713 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2714 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2715 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2716 #---------------------------------------------------------------------------
2718 class ListItemAttr(object):
2721 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2722 def __init__(self
, *args
, **kwargs
):
2723 """__init__(wxColour colText=wxNullColour, wxColour colBack=wxNullColour,
2724 wxFont font=wxNullFont) -> ListItemAttr"""
2725 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2726 self
.this
= newobj
.this
2729 def SetTextColour(*args
, **kwargs
):
2730 """SetTextColour(wxColour colText)"""
2731 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2733 def SetBackgroundColour(*args
, **kwargs
):
2734 """SetBackgroundColour(wxColour colBack)"""
2735 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2737 def SetFont(*args
, **kwargs
):
2738 """SetFont(wxFont font)"""
2739 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2741 def HasTextColour(*args
, **kwargs
):
2742 """HasTextColour() -> bool"""
2743 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2745 def HasBackgroundColour(*args
, **kwargs
):
2746 """HasBackgroundColour() -> bool"""
2747 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2749 def HasFont(*args
, **kwargs
):
2750 """HasFont() -> bool"""
2751 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2753 def GetTextColour(*args
, **kwargs
):
2754 """GetTextColour() -> wxColour"""
2755 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2757 def GetBackgroundColour(*args
, **kwargs
):
2758 """GetBackgroundColour() -> wxColour"""
2759 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2761 def GetFont(*args
, **kwargs
):
2762 """GetFont() -> wxFont"""
2763 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2765 def Destroy(*args
, **kwargs
):
2767 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2770 class ListItemAttrPtr(ListItemAttr
):
2771 def __init__(self
, this
):
2773 if not hasattr(self
,"thisown"): self
.thisown
= 0
2774 self
.__class
__ = ListItemAttr
2775 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2777 #---------------------------------------------------------------------------
2779 class ListItem(core
.Object
):
2782 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2783 def __init__(self
, *args
, **kwargs
):
2784 """__init__() -> ListItem"""
2785 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2786 self
.this
= newobj
.this
2789 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2792 if self
.thisown
: destroy(self
)
2795 def Clear(*args
, **kwargs
):
2797 return _controls
.ListItem_Clear(*args
, **kwargs
)
2799 def ClearAttributes(*args
, **kwargs
):
2800 """ClearAttributes()"""
2801 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2803 def SetMask(*args
, **kwargs
):
2804 """SetMask(long mask)"""
2805 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2807 def SetId(*args
, **kwargs
):
2808 """SetId(long id)"""
2809 return _controls
.ListItem_SetId(*args
, **kwargs
)
2811 def SetColumn(*args
, **kwargs
):
2812 """SetColumn(int col)"""
2813 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2815 def SetState(*args
, **kwargs
):
2816 """SetState(long state)"""
2817 return _controls
.ListItem_SetState(*args
, **kwargs
)
2819 def SetStateMask(*args
, **kwargs
):
2820 """SetStateMask(long stateMask)"""
2821 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2823 def SetText(*args
, **kwargs
):
2824 """SetText(wxString text)"""
2825 return _controls
.ListItem_SetText(*args
, **kwargs
)
2827 def SetImage(*args
, **kwargs
):
2828 """SetImage(int image)"""
2829 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2831 def SetData(*args
, **kwargs
):
2832 """SetData(long data)"""
2833 return _controls
.ListItem_SetData(*args
, **kwargs
)
2835 def SetWidth(*args
, **kwargs
):
2836 """SetWidth(int width)"""
2837 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2839 def SetAlign(*args
, **kwargs
):
2840 """SetAlign(wxListColumnFormat align)"""
2841 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2843 def SetTextColour(*args
, **kwargs
):
2844 """SetTextColour(wxColour colText)"""
2845 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2847 def SetBackgroundColour(*args
, **kwargs
):
2848 """SetBackgroundColour(wxColour colBack)"""
2849 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
2851 def SetFont(*args
, **kwargs
):
2852 """SetFont(wxFont font)"""
2853 return _controls
.ListItem_SetFont(*args
, **kwargs
)
2855 def GetMask(*args
, **kwargs
):
2856 """GetMask() -> long"""
2857 return _controls
.ListItem_GetMask(*args
, **kwargs
)
2859 def GetId(*args
, **kwargs
):
2860 """GetId() -> long"""
2861 return _controls
.ListItem_GetId(*args
, **kwargs
)
2863 def GetColumn(*args
, **kwargs
):
2864 """GetColumn() -> int"""
2865 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
2867 def GetState(*args
, **kwargs
):
2868 """GetState() -> long"""
2869 return _controls
.ListItem_GetState(*args
, **kwargs
)
2871 def GetText(*args
, **kwargs
):
2872 """GetText() -> wxString"""
2873 return _controls
.ListItem_GetText(*args
, **kwargs
)
2875 def GetImage(*args
, **kwargs
):
2876 """GetImage() -> int"""
2877 return _controls
.ListItem_GetImage(*args
, **kwargs
)
2879 def GetData(*args
, **kwargs
):
2880 """GetData() -> long"""
2881 return _controls
.ListItem_GetData(*args
, **kwargs
)
2883 def GetWidth(*args
, **kwargs
):
2884 """GetWidth() -> int"""
2885 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
2887 def GetAlign(*args
, **kwargs
):
2888 """GetAlign() -> wxListColumnFormat"""
2889 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
2891 def GetAttributes(*args
, **kwargs
):
2892 """GetAttributes() -> ListItemAttr"""
2893 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
2895 def HasAttributes(*args
, **kwargs
):
2896 """HasAttributes() -> bool"""
2897 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
2899 def GetTextColour(*args
, **kwargs
):
2900 """GetTextColour() -> wxColour"""
2901 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
2903 def GetBackgroundColour(*args
, **kwargs
):
2904 """GetBackgroundColour() -> wxColour"""
2905 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
2907 def GetFont(*args
, **kwargs
):
2908 """GetFont() -> wxFont"""
2909 return _controls
.ListItem_GetFont(*args
, **kwargs
)
2911 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
2912 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
2913 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
2914 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
2915 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
2916 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
2917 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
2918 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
2919 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
2920 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
2922 class ListItemPtr(ListItem
):
2923 def __init__(self
, this
):
2925 if not hasattr(self
,"thisown"): self
.thisown
= 0
2926 self
.__class
__ = ListItem
2927 _controls
.ListItem_swigregister(ListItemPtr
)
2929 #---------------------------------------------------------------------------
2931 class ListEvent(core
.NotifyEvent
):
2934 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2935 def __init__(self
, *args
, **kwargs
):
2936 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
2937 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
2938 self
.this
= newobj
.this
2941 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
2942 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
2943 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
2944 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
2945 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
2946 m_item
= property(_controls
.ListEvent_m_item_get
)
2947 def GetKeyCode(*args
, **kwargs
):
2948 """GetKeyCode() -> int"""
2949 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
2951 GetCode
= GetKeyCode
2952 def GetIndex(*args
, **kwargs
):
2953 """GetIndex() -> long"""
2954 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
2956 def GetColumn(*args
, **kwargs
):
2957 """GetColumn() -> int"""
2958 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
2960 def GetPoint(*args
, **kwargs
):
2961 """GetPoint() -> Point"""
2962 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
2964 GetPostiion
= GetPoint
2965 def GetLabel(*args
, **kwargs
):
2966 """GetLabel() -> wxString"""
2967 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
2969 def GetText(*args
, **kwargs
):
2970 """GetText() -> wxString"""
2971 return _controls
.ListEvent_GetText(*args
, **kwargs
)
2973 def GetImage(*args
, **kwargs
):
2974 """GetImage() -> int"""
2975 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
2977 def GetData(*args
, **kwargs
):
2978 """GetData() -> long"""
2979 return _controls
.ListEvent_GetData(*args
, **kwargs
)
2981 def GetMask(*args
, **kwargs
):
2982 """GetMask() -> long"""
2983 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
2985 def GetItem(*args
, **kwargs
):
2986 """GetItem() -> ListItem"""
2987 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
2989 def GetCacheFrom(*args
, **kwargs
):
2990 """GetCacheFrom() -> long"""
2991 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
2993 def GetCacheTo(*args
, **kwargs
):
2994 """GetCacheTo() -> long"""
2995 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
2997 def IsEditCancelled(*args
, **kwargs
):
2998 """IsEditCancelled() -> bool"""
2999 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3001 def SetEditCanceled(*args
, **kwargs
):
3002 """SetEditCanceled(bool editCancelled)"""
3003 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3006 class ListEventPtr(ListEvent
):
3007 def __init__(self
, this
):
3009 if not hasattr(self
,"thisown"): self
.thisown
= 0
3010 self
.__class
__ = ListEvent
3011 _controls
.ListEvent_swigregister(ListEventPtr
)
3013 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3014 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3015 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3016 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3017 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3018 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3019 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3020 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3021 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3022 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3023 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3024 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3025 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3026 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3027 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3028 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3029 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3030 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3031 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3032 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3033 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3034 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3035 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3036 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3037 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3038 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3039 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3040 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3041 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3042 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3043 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3044 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3045 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3046 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3047 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3048 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3049 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3050 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3051 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3052 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3053 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3054 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3055 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3056 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3058 #---------------------------------------------------------------------------
3060 class ListCtrl(core
.Control
):
3063 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3064 def __init__(self
, *args
, **kwargs
):
3065 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3066 Size size=DefaultSize, long style=LC_ICON,
3067 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListCtrl"""
3068 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3069 self
.this
= newobj
.this
3072 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3074 def Create(*args
, **kwargs
):
3075 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3076 Size size=DefaultSize, long style=LC_ICON,
3077 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool"""
3078 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3080 def _setCallbackInfo(*args
, **kwargs
):
3081 """_setCallbackInfo(PyObject self, PyObject _class)"""
3082 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3084 def SetForegroundColour(*args
, **kwargs
):
3085 """SetForegroundColour(wxColour col) -> bool"""
3086 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3088 def SetBackgroundColour(*args
, **kwargs
):
3089 """SetBackgroundColour(wxColour col) -> bool"""
3090 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3092 def GetColumn(*args
, **kwargs
):
3093 """GetColumn(int col) -> ListItem"""
3094 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3095 if val
is not None: val
.thisown
= 1
3098 def SetColumn(*args
, **kwargs
):
3099 """SetColumn(int col, ListItem item) -> bool"""
3100 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3102 def GetColumnWidth(*args
, **kwargs
):
3103 """GetColumnWidth(int col) -> int"""
3104 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3106 def SetColumnWidth(*args
, **kwargs
):
3107 """SetColumnWidth(int col, int width) -> bool"""
3108 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3110 def GetCountPerPage(*args
, **kwargs
):
3111 """GetCountPerPage() -> int"""
3112 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3114 def GetViewRect(*args
, **kwargs
):
3115 """GetViewRect() -> Rect"""
3116 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3118 def GetItem(*args
, **kwargs
):
3119 """GetItem(long itemId, int col=0) -> ListItem"""
3120 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3121 if val
is not None: val
.thisown
= 1
3124 def SetItem(*args
, **kwargs
):
3125 """SetItem(ListItem info) -> bool"""
3126 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3128 def SetStringItem(*args
, **kwargs
):
3129 """SetStringItem(long index, int col, wxString label, int imageId=-1) -> long"""
3130 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3132 def GetItemState(*args
, **kwargs
):
3133 """GetItemState(long item, long stateMask) -> int"""
3134 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3136 def SetItemState(*args
, **kwargs
):
3137 """SetItemState(long item, long state, long stateMask) -> bool"""
3138 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3140 def SetItemImage(*args
, **kwargs
):
3141 """SetItemImage(long item, int image, int selImage) -> bool"""
3142 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3144 def GetItemText(*args
, **kwargs
):
3145 """GetItemText(long item) -> wxString"""
3146 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3148 def SetItemText(*args
, **kwargs
):
3149 """SetItemText(long item, wxString str)"""
3150 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3152 def GetItemData(*args
, **kwargs
):
3153 """GetItemData(long item) -> long"""
3154 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3156 def SetItemData(*args
, **kwargs
):
3157 """SetItemData(long item, long data) -> bool"""
3158 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3160 def GetItemPosition(*args
, **kwargs
):
3161 """GetItemPosition(long item) -> Point"""
3162 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3164 def GetItemRect(*args
, **kwargs
):
3165 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3166 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3168 def SetItemPosition(*args
, **kwargs
):
3169 """SetItemPosition(long item, Point pos) -> bool"""
3170 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3172 def GetItemCount(*args
, **kwargs
):
3173 """GetItemCount() -> int"""
3174 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3176 def GetColumnCount(*args
, **kwargs
):
3177 """GetColumnCount() -> int"""
3178 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3180 def GetItemSpacing(*args
, **kwargs
):
3181 """GetItemSpacing() -> Size"""
3182 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3184 def SetItemSpacing(*args
, **kwargs
):
3185 """SetItemSpacing(int spacing, bool isSmall=False)"""
3186 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3188 def GetSelectedItemCount(*args
, **kwargs
):
3189 """GetSelectedItemCount() -> int"""
3190 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3192 def GetTextColour(*args
, **kwargs
):
3193 """GetTextColour() -> wxColour"""
3194 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3196 def SetTextColour(*args
, **kwargs
):
3197 """SetTextColour(wxColour col)"""
3198 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3200 def GetTopItem(*args
, **kwargs
):
3201 """GetTopItem() -> long"""
3202 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3204 def SetSingleStyle(*args
, **kwargs
):
3205 """SetSingleStyle(long style, bool add=True)"""
3206 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3208 def SetWindowStyleFlag(*args
, **kwargs
):
3209 """SetWindowStyleFlag(long style)"""
3210 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3212 def GetNextItem(*args
, **kwargs
):
3213 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3214 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3216 def GetImageList(*args
, **kwargs
):
3217 """GetImageList(int which) -> wxImageList"""
3218 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3220 def SetImageList(*args
, **kwargs
):
3221 """SetImageList(wxImageList imageList, int which)"""
3222 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3224 def AssignImageList(*args
, **kwargs
):
3225 """AssignImageList(wxImageList imageList, int which)"""
3226 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3230 def IsVirtual(*args
, **kwargs
):
3231 """IsVirtual() -> bool"""
3232 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3234 def RefreshItem(*args
, **kwargs
):
3235 """RefreshItem(long item)"""
3236 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3238 def RefreshItems(*args
, **kwargs
):
3239 """RefreshItems(long itemFrom, long itemTo)"""
3240 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3242 def Arrange(*args
, **kwargs
):
3243 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3244 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3246 def DeleteItem(*args
, **kwargs
):
3247 """DeleteItem(long item) -> bool"""
3248 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3250 def DeleteAllItems(*args
, **kwargs
):
3251 """DeleteAllItems() -> bool"""
3252 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3254 def DeleteColumn(*args
, **kwargs
):
3255 """DeleteColumn(int col) -> bool"""
3256 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3258 def DeleteAllColumns(*args
, **kwargs
):
3259 """DeleteAllColumns() -> bool"""
3260 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3262 def ClearAll(*args
, **kwargs
):
3264 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3266 def EditLabel(*args
, **kwargs
):
3267 """EditLabel(long item)"""
3268 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3270 def EnsureVisible(*args
, **kwargs
):
3271 """EnsureVisible(long item) -> bool"""
3272 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3274 def FindItem(*args
, **kwargs
):
3275 """FindItem(long start, wxString str, bool partial=False) -> long"""
3276 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3278 def FindItemData(*args
, **kwargs
):
3279 """FindItemData(long start, long data) -> long"""
3280 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3282 def FindItemAtPos(*args
, **kwargs
):
3283 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3284 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3286 def HitTest(*args
, **kwargs
):
3287 """HitTest(Point point) -> (item, where)
3289 Determines which item (if any) is at the specified point,
3290 giving details in the second return value (see wxLIST_HITTEST_... flags.)"""
3291 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3293 def InsertItem(*args
, **kwargs
):
3294 """InsertItem(ListItem info) -> long"""
3295 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3297 def InsertStringItem(*args
, **kwargs
):
3298 """InsertStringItem(long index, wxString label) -> long"""
3299 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3301 def InsertImageItem(*args
, **kwargs
):
3302 """InsertImageItem(long index, int imageIndex) -> long"""
3303 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3305 def InsertImageStringItem(*args
, **kwargs
):
3306 """InsertImageStringItem(long index, wxString label, int imageIndex) -> long"""
3307 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3309 def InsertColumnInfo(*args
, **kwargs
):
3310 """InsertColumnInfo(long col, ListItem info) -> long"""
3311 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3313 def InsertColumn(*args
, **kwargs
):
3314 """InsertColumn(long col, wxString heading, int format=LIST_FORMAT_LEFT,
3315 int width=-1) -> long"""
3316 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3318 def SetItemCount(*args
, **kwargs
):
3319 """SetItemCount(long count)"""
3320 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3322 def ScrollList(*args
, **kwargs
):
3323 """ScrollList(int dx, int dy) -> bool"""
3324 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3326 def SetItemTextColour(*args
, **kwargs
):
3327 """SetItemTextColour(long item, wxColour col)"""
3328 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3330 def GetItemTextColour(*args
, **kwargs
):
3331 """GetItemTextColour(long item) -> wxColour"""
3332 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3334 def SetItemBackgroundColour(*args
, **kwargs
):
3335 """SetItemBackgroundColour(long item, wxColour col)"""
3336 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3338 def GetItemBackgroundColour(*args
, **kwargs
):
3339 """GetItemBackgroundColour(long item) -> wxColour"""
3340 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3344 def Select(self
, idx
, on
=1):
3345 '''[de]select an item'''
3346 if on
: state
= wx
.LIST_STATE_SELECTED
3348 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3350 def Focus(self
, idx
):
3351 '''Focus and show the given item'''
3352 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3353 self
.EnsureVisible(idx
)
3355 def GetFocusedItem(self
):
3356 '''get the currently focused item or -1 if none'''
3357 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3359 def GetFirstSelected(self
, *args
):
3360 '''return first selected item, or -1 when none'''
3361 return self
.GetNextSelected(-1)
3363 def GetNextSelected(self
, item
):
3364 '''return subsequent selected items, or -1 when no more'''
3365 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3367 def IsSelected(self
, idx
):
3368 '''return True if the item is selected'''
3369 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3371 def SetColumnImage(self
, col
, image
):
3372 item
= self
.GetColumn(col
)
3373 # preserve all other attributes too
3374 item
.SetMask( wx
.LIST_MASK_STATE |
3376 wx
.LIST_MASK_IMAGE |
3379 wx
.LIST_MASK_WIDTH |
3380 wx
.LIST_MASK_FORMAT
)
3381 item
.SetImage(image
)
3382 self
.SetColumn(col
, item
)
3384 def ClearColumnImage(self
, col
):
3385 self
.SetColumnImage(col
, -1)
3387 def Append(self
, entry
):
3388 '''Append an item to the list control. The entry parameter should be a
3389 sequence with an item for each column'''
3395 pos
= self
.GetItemCount()
3396 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3397 for i
in range(1, len(entry
)):
3398 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3401 def SortItems(*args
, **kwargs
):
3402 """SortItems(PyObject func) -> bool"""
3403 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3405 def GetMainWindow(*args
, **kwargs
):
3406 """GetMainWindow() -> Window"""
3407 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3410 class ListCtrlPtr(ListCtrl
):
3411 def __init__(self
, this
):
3413 if not hasattr(self
,"thisown"): self
.thisown
= 0
3414 self
.__class
__ = ListCtrl
3415 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3417 def PreListCtrl(*args
, **kwargs
):
3418 """PreListCtrl() -> ListCtrl"""
3419 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3423 #---------------------------------------------------------------------------
3425 class ListView(ListCtrl
):
3428 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3429 def __init__(self
, *args
, **kwargs
):
3430 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3431 Size size=DefaultSize, long style=LC_REPORT,
3432 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListView"""
3433 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3434 self
.this
= newobj
.this
3437 self
._setOORInfo
(self
)
3439 def Create(*args
, **kwargs
):
3440 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3441 Size size=DefaultSize, long style=LC_REPORT,
3442 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool"""
3443 return _controls
.ListView_Create(*args
, **kwargs
)
3445 def Select(*args
, **kwargs
):
3446 """Select(long n, bool on=True)"""
3447 return _controls
.ListView_Select(*args
, **kwargs
)
3449 def Focus(*args
, **kwargs
):
3450 """Focus(long index)"""
3451 return _controls
.ListView_Focus(*args
, **kwargs
)
3453 def GetFocusedItem(*args
, **kwargs
):
3454 """GetFocusedItem() -> long"""
3455 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3457 def GetNextSelected(*args
, **kwargs
):
3458 """GetNextSelected(long item) -> long"""
3459 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3461 def GetFirstSelected(*args
, **kwargs
):
3462 """GetFirstSelected() -> long"""
3463 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3465 def IsSelected(*args
, **kwargs
):
3466 """IsSelected(long index) -> bool"""
3467 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3469 def SetColumnImage(*args
, **kwargs
):
3470 """SetColumnImage(int col, int image)"""
3471 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3473 def ClearColumnImage(*args
, **kwargs
):
3474 """ClearColumnImage(int col)"""
3475 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3478 class ListViewPtr(ListView
):
3479 def __init__(self
, this
):
3481 if not hasattr(self
,"thisown"): self
.thisown
= 0
3482 self
.__class
__ = ListView
3483 _controls
.ListView_swigregister(ListViewPtr
)
3485 def PreListView(*args
, **kwargs
):
3486 """PreListView() -> ListView"""
3487 val
= _controls
.new_PreListView(*args
, **kwargs
)
3491 #---------------------------------------------------------------------------
3493 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3494 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3495 TR_NO_LINES
= _controls
.TR_NO_LINES
3496 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3497 TR_SINGLE
= _controls
.TR_SINGLE
3498 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3499 TR_EXTENDED
= _controls
.TR_EXTENDED
3500 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3501 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3502 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3503 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3504 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3505 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3506 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3507 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3508 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3509 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3510 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3511 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3512 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3513 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3514 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3515 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3516 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3517 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3518 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3519 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3520 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3521 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3522 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3523 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3524 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3525 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3526 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3527 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3528 #---------------------------------------------------------------------------
3530 class TreeItemId(object):
3533 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3534 def __init__(self
, *args
, **kwargs
):
3535 """__init__() -> TreeItemId"""
3536 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3537 self
.this
= newobj
.this
3540 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3543 if self
.thisown
: destroy(self
)
3546 def IsOk(*args
, **kwargs
):
3547 """IsOk() -> bool"""
3548 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3550 def __eq__(*args
, **kwargs
):
3551 """__eq__(TreeItemId other) -> bool"""
3552 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3554 def __ne__(*args
, **kwargs
):
3555 """__ne__(TreeItemId other) -> bool"""
3556 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3558 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3560 def __nonzero__(self
): return self
.IsOk()
3562 class TreeItemIdPtr(TreeItemId
):
3563 def __init__(self
, this
):
3565 if not hasattr(self
,"thisown"): self
.thisown
= 0
3566 self
.__class
__ = TreeItemId
3567 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3569 class TreeItemData(object):
3572 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3573 def __init__(self
, *args
, **kwargs
):
3574 """__init__(PyObject obj=None) -> TreeItemData"""
3575 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3576 self
.this
= newobj
.this
3579 def GetData(*args
, **kwargs
):
3580 """GetData() -> PyObject"""
3581 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3583 def SetData(*args
, **kwargs
):
3584 """SetData(PyObject obj)"""
3585 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3587 def GetId(*args
, **kwargs
):
3588 """GetId() -> TreeItemId"""
3589 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3591 def SetId(*args
, **kwargs
):
3592 """SetId(TreeItemId id)"""
3593 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3595 def Destroy(*args
, **kwargs
):
3597 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3600 class TreeItemDataPtr(TreeItemData
):
3601 def __init__(self
, this
):
3603 if not hasattr(self
,"thisown"): self
.thisown
= 0
3604 self
.__class
__ = TreeItemData
3605 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3607 #---------------------------------------------------------------------------
3609 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3610 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3611 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3612 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3613 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3614 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3615 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3616 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3617 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3618 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3619 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3620 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3621 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3622 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3623 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3624 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3625 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3626 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3627 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3628 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3629 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3630 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3631 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3632 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3633 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3634 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3635 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3636 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3637 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3638 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3639 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3640 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3641 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3642 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3643 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3644 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3645 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3646 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3649 class TreeEvent(core
.NotifyEvent
):
3652 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3653 def __init__(self
, *args
, **kwargs
):
3654 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3655 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3656 self
.this
= newobj
.this
3659 def GetItem(*args
, **kwargs
):
3660 """GetItem() -> TreeItemId"""
3661 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3663 def SetItem(*args
, **kwargs
):
3664 """SetItem(TreeItemId item)"""
3665 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3667 def GetOldItem(*args
, **kwargs
):
3668 """GetOldItem() -> TreeItemId"""
3669 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3671 def SetOldItem(*args
, **kwargs
):
3672 """SetOldItem(TreeItemId item)"""
3673 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3675 def GetPoint(*args
, **kwargs
):
3676 """GetPoint() -> Point"""
3677 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3679 def SetPoint(*args
, **kwargs
):
3680 """SetPoint(Point pt)"""
3681 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3683 def GetKeyEvent(*args
, **kwargs
):
3684 """GetKeyEvent() -> KeyEvent"""
3685 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3687 def GetKeyCode(*args
, **kwargs
):
3688 """GetKeyCode() -> int"""
3689 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3691 def SetKeyEvent(*args
, **kwargs
):
3692 """SetKeyEvent(KeyEvent evt)"""
3693 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3695 def GetLabel(*args
, **kwargs
):
3696 """GetLabel() -> wxString"""
3697 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3699 def SetLabel(*args
, **kwargs
):
3700 """SetLabel(wxString label)"""
3701 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3703 def IsEditCancelled(*args
, **kwargs
):
3704 """IsEditCancelled() -> bool"""
3705 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3707 def SetEditCanceled(*args
, **kwargs
):
3708 """SetEditCanceled(bool editCancelled)"""
3709 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3712 class TreeEventPtr(TreeEvent
):
3713 def __init__(self
, this
):
3715 if not hasattr(self
,"thisown"): self
.thisown
= 0
3716 self
.__class
__ = TreeEvent
3717 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3719 #---------------------------------------------------------------------------
3721 class TreeCtrl(core
.Control
):
3724 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3725 def __init__(self
, *args
, **kwargs
):
3726 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3727 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3728 Validator validator=DefaultValidator,
3729 wxString name=wxPy_TreeCtrlNameStr) -> TreeCtrl"""
3730 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3731 self
.this
= newobj
.this
3734 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3736 def Create(*args
, **kwargs
):
3737 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3738 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3739 Validator validator=DefaultValidator,
3740 wxString name=wxPy_TreeCtrlNameStr) -> bool"""
3741 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3743 def _setCallbackInfo(*args
, **kwargs
):
3744 """_setCallbackInfo(PyObject self, PyObject _class)"""
3745 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3747 def GetCount(*args
, **kwargs
):
3748 """GetCount() -> size_t"""
3749 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3751 def GetIndent(*args
, **kwargs
):
3752 """GetIndent() -> unsigned int"""
3753 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3755 def SetIndent(*args
, **kwargs
):
3756 """SetIndent(unsigned int indent)"""
3757 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3759 def GetSpacing(*args
, **kwargs
):
3760 """GetSpacing() -> unsigned int"""
3761 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3763 def SetSpacing(*args
, **kwargs
):
3764 """SetSpacing(unsigned int spacing)"""
3765 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3767 def GetImageList(*args
, **kwargs
):
3768 """GetImageList() -> wxImageList"""
3769 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3771 def GetStateImageList(*args
, **kwargs
):
3772 """GetStateImageList() -> wxImageList"""
3773 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3775 def SetImageList(*args
, **kwargs
):
3776 """SetImageList(wxImageList imageList)"""
3777 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3779 def SetStateImageList(*args
, **kwargs
):
3780 """SetStateImageList(wxImageList imageList)"""
3781 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3783 def AssignImageList(*args
, **kwargs
):
3784 """AssignImageList(wxImageList imageList)"""
3785 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3789 def AssignStateImageList(*args
, **kwargs
):
3790 """AssignStateImageList(wxImageList imageList)"""
3791 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3795 def GetItemText(*args
, **kwargs
):
3796 """GetItemText(TreeItemId item) -> wxString"""
3797 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3799 def GetItemImage(*args
, **kwargs
):
3800 """GetItemImage(TreeItemId item, wxTreeItemIcon which=TreeItemIcon_Normal) -> int"""
3801 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3803 def GetItemData(*args
, **kwargs
):
3804 """GetItemData(TreeItemId item) -> TreeItemData"""
3805 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3807 def GetItemPyData(*args
, **kwargs
):
3808 """GetItemPyData(TreeItemId item) -> PyObject"""
3809 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3811 GetPyData
= GetItemPyData
3812 def GetItemTextColour(*args
, **kwargs
):
3813 """GetItemTextColour(TreeItemId item) -> wxColour"""
3814 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3816 def GetItemBackgroundColour(*args
, **kwargs
):
3817 """GetItemBackgroundColour(TreeItemId item) -> wxColour"""
3818 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3820 def GetItemFont(*args
, **kwargs
):
3821 """GetItemFont(TreeItemId item) -> wxFont"""
3822 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3824 def SetItemText(*args
, **kwargs
):
3825 """SetItemText(TreeItemId item, wxString text)"""
3826 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3828 def SetItemImage(*args
, **kwargs
):
3829 """SetItemImage(TreeItemId item, int image, wxTreeItemIcon which=TreeItemIcon_Normal)"""
3830 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
3832 def SetItemData(*args
, **kwargs
):
3833 """SetItemData(TreeItemId item, TreeItemData data)"""
3834 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
3836 def SetItemPyData(*args
, **kwargs
):
3837 """SetItemPyData(TreeItemId item, PyObject obj)"""
3838 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
3840 SetPyData
= SetItemPyData
3841 def SetItemHasChildren(*args
, **kwargs
):
3842 """SetItemHasChildren(TreeItemId item, bool has=True)"""
3843 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
3845 def SetItemBold(*args
, **kwargs
):
3846 """SetItemBold(TreeItemId item, bool bold=True)"""
3847 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
3849 def SetItemTextColour(*args
, **kwargs
):
3850 """SetItemTextColour(TreeItemId item, wxColour col)"""
3851 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
3853 def SetItemBackgroundColour(*args
, **kwargs
):
3854 """SetItemBackgroundColour(TreeItemId item, wxColour col)"""
3855 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3857 def SetItemFont(*args
, **kwargs
):
3858 """SetItemFont(TreeItemId item, wxFont font)"""
3859 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
3861 def IsVisible(*args
, **kwargs
):
3862 """IsVisible(TreeItemId item) -> bool"""
3863 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
3865 def ItemHasChildren(*args
, **kwargs
):
3866 """ItemHasChildren(TreeItemId item) -> bool"""
3867 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
3869 def IsExpanded(*args
, **kwargs
):
3870 """IsExpanded(TreeItemId item) -> bool"""
3871 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
3873 def IsSelected(*args
, **kwargs
):
3874 """IsSelected(TreeItemId item) -> bool"""
3875 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
3877 def IsBold(*args
, **kwargs
):
3878 """IsBold(TreeItemId item) -> bool"""
3879 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
3881 def GetChildrenCount(*args
, **kwargs
):
3882 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
3883 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
3885 def GetRootItem(*args
, **kwargs
):
3886 """GetRootItem() -> TreeItemId"""
3887 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
3889 def GetSelection(*args
, **kwargs
):
3890 """GetSelection() -> TreeItemId"""
3891 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
3893 def GetSelections(*args
, **kwargs
):
3894 """GetSelections() -> PyObject"""
3895 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
3897 def GetItemParent(*args
, **kwargs
):
3898 """GetItemParent(TreeItemId item) -> TreeItemId"""
3899 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
3901 def GetFirstChild(*args
, **kwargs
):
3902 """GetFirstChild(TreeItemId item) -> PyObject"""
3903 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
3905 def GetNextChild(*args
, **kwargs
):
3906 """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
3907 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
3909 def GetLastChild(*args
, **kwargs
):
3910 """GetLastChild(TreeItemId item) -> TreeItemId"""
3911 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
3913 def GetNextSibling(*args
, **kwargs
):
3914 """GetNextSibling(TreeItemId item) -> TreeItemId"""
3915 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
3917 def GetPrevSibling(*args
, **kwargs
):
3918 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
3919 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
3921 def GetFirstVisibleItem(*args
, **kwargs
):
3922 """GetFirstVisibleItem() -> TreeItemId"""
3923 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
3925 def GetNextVisible(*args
, **kwargs
):
3926 """GetNextVisible(TreeItemId item) -> TreeItemId"""
3927 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
3929 def GetPrevVisible(*args
, **kwargs
):
3930 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
3931 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
3933 def AddRoot(*args
, **kwargs
):
3934 """AddRoot(wxString text, int image=-1, int selectedImage=-1,
3935 TreeItemData data=None) -> TreeItemId"""
3936 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
3938 def PrependItem(*args
, **kwargs
):
3939 """PrependItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
3940 TreeItemData data=None) -> TreeItemId"""
3941 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
3943 def InsertItem(*args
, **kwargs
):
3944 """InsertItem(TreeItemId parent, TreeItemId idPrevious, wxString text,
3945 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
3946 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
3948 def InsertItemBefore(*args
, **kwargs
):
3949 """InsertItemBefore(TreeItemId parent, size_t index, wxString text, int image=-1,
3950 int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
3951 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
3953 def AppendItem(*args
, **kwargs
):
3954 """AppendItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
3955 TreeItemData data=None) -> TreeItemId"""
3956 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
3958 def Delete(*args
, **kwargs
):
3959 """Delete(TreeItemId item)"""
3960 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
3962 def DeleteChildren(*args
, **kwargs
):
3963 """DeleteChildren(TreeItemId item)"""
3964 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
3966 def DeleteAllItems(*args
, **kwargs
):
3967 """DeleteAllItems()"""
3968 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
3970 def Expand(*args
, **kwargs
):
3971 """Expand(TreeItemId item)"""
3972 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
3974 def Collapse(*args
, **kwargs
):
3975 """Collapse(TreeItemId item)"""
3976 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
3978 def CollapseAndReset(*args
, **kwargs
):
3979 """CollapseAndReset(TreeItemId item)"""
3980 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
3982 def Toggle(*args
, **kwargs
):
3983 """Toggle(TreeItemId item)"""
3984 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
3986 def Unselect(*args
, **kwargs
):
3988 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
3990 def UnselectAll(*args
, **kwargs
):
3992 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
3994 def SelectItem(*args
, **kwargs
):
3995 """SelectItem(TreeItemId item)"""
3996 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
3998 def EnsureVisible(*args
, **kwargs
):
3999 """EnsureVisible(TreeItemId item)"""
4000 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4002 def ScrollTo(*args
, **kwargs
):
4003 """ScrollTo(TreeItemId item)"""
4004 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4006 def EditLabel(*args
, **kwargs
):
4007 """EditLabel(TreeItemId item)"""
4008 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4010 def GetEditControl(*args
, **kwargs
):
4011 """GetEditControl() -> TextCtrl"""
4012 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4014 def SortChildren(*args
, **kwargs
):
4015 """SortChildren(TreeItemId item)"""
4016 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4018 def HitTest(*args
, **kwargs
):
4019 """HitTest(Point point) -> (item, where)
4021 Determine which item (if any) belongs the given point. The
4022 coordinates specified are relative to the client area of tree ctrl
4023 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4026 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4028 def GetBoundingRect(*args
, **kwargs
):
4029 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4030 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4033 class TreeCtrlPtr(TreeCtrl
):
4034 def __init__(self
, this
):
4036 if not hasattr(self
,"thisown"): self
.thisown
= 0
4037 self
.__class
__ = TreeCtrl
4038 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4040 def PreTreeCtrl(*args
, **kwargs
):
4041 """PreTreeCtrl() -> TreeCtrl"""
4042 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4046 #---------------------------------------------------------------------------
4048 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4049 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4050 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4051 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4052 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4053 class GenericDirCtrl(core
.Control
):
4056 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4057 def __init__(self
, *args
, **kwargs
):
4058 """__init__(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4059 Point pos=DefaultPosition,
4060 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4061 wxString filter=wxPyEmptyString,
4062 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> GenericDirCtrl"""
4063 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4064 self
.this
= newobj
.this
4067 self
._setOORInfo
(self
)
4069 def Create(*args
, **kwargs
):
4070 """Create(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4071 Point pos=DefaultPosition,
4072 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4073 wxString filter=wxPyEmptyString,
4074 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> bool"""
4075 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4077 def ExpandPath(*args
, **kwargs
):
4078 """ExpandPath(wxString path) -> bool"""
4079 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4081 def GetDefaultPath(*args
, **kwargs
):
4082 """GetDefaultPath() -> wxString"""
4083 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4085 def SetDefaultPath(*args
, **kwargs
):
4086 """SetDefaultPath(wxString path)"""
4087 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4089 def GetPath(*args
, **kwargs
):
4090 """GetPath() -> wxString"""
4091 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4093 def GetFilePath(*args
, **kwargs
):
4094 """GetFilePath() -> wxString"""
4095 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4097 def SetPath(*args
, **kwargs
):
4098 """SetPath(wxString path)"""
4099 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4101 def ShowHidden(*args
, **kwargs
):
4102 """ShowHidden(bool show)"""
4103 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4105 def GetShowHidden(*args
, **kwargs
):
4106 """GetShowHidden() -> bool"""
4107 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4109 def GetFilter(*args
, **kwargs
):
4110 """GetFilter() -> wxString"""
4111 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4113 def SetFilter(*args
, **kwargs
):
4114 """SetFilter(wxString filter)"""
4115 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4117 def GetFilterIndex(*args
, **kwargs
):
4118 """GetFilterIndex() -> int"""
4119 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4121 def SetFilterIndex(*args
, **kwargs
):
4122 """SetFilterIndex(int n)"""
4123 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4125 def GetRootId(*args
, **kwargs
):
4126 """GetRootId() -> TreeItemId"""
4127 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4129 def GetTreeCtrl(*args
, **kwargs
):
4130 """GetTreeCtrl() -> wxTreeCtrl"""
4131 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4133 def GetFilterListCtrl(*args
, **kwargs
):
4134 """GetFilterListCtrl() -> DirFilterListCtrl"""
4135 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4137 def FindChild(*args
, **kwargs
):
4138 """FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4140 Find the child that matches the first part of 'path'. E.g. if a child path is
4141 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4142 If the path string has been used (we're at the leaf), done is set to True
4144 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4146 def DoResize(*args
, **kwargs
):
4148 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4150 def ReCreateTree(*args
, **kwargs
):
4151 """ReCreateTree()"""
4152 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4155 class GenericDirCtrlPtr(GenericDirCtrl
):
4156 def __init__(self
, this
):
4158 if not hasattr(self
,"thisown"): self
.thisown
= 0
4159 self
.__class
__ = GenericDirCtrl
4160 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4162 def PreGenericDirCtrl(*args
, **kwargs
):
4163 """PreGenericDirCtrl() -> GenericDirCtrl"""
4164 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4168 class DirFilterListCtrl(Choice
):
4171 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4172 def __init__(self
, *args
, **kwargs
):
4173 """__init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4174 Size size=DefaultSize, long style=0) -> DirFilterListCtrl"""
4175 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4176 self
.this
= newobj
.this
4179 self
._setOORInfo
(self
)
4181 def Create(*args
, **kwargs
):
4182 """Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4183 Size size=DefaultSize, long style=0) -> bool"""
4184 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4186 def FillFilterList(*args
, **kwargs
):
4187 """FillFilterList(wxString filter, int defaultFilter)"""
4188 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4191 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = DirFilterListCtrl
4196 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4198 def PreDirFilterListCtrl(*args
, **kwargs
):
4199 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4200 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4204 #---------------------------------------------------------------------------
4206 class PyControl(core
.Control
):
4209 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4210 def __init__(self
, *args
, **kwargs
):
4211 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4212 long style=0, Validator validator=DefaultValidator,
4213 wxString name=wxPyControlNameStr) -> PyControl"""
4214 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4215 self
.this
= newobj
.this
4218 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4220 def _setCallbackInfo(*args
, **kwargs
):
4221 """_setCallbackInfo(PyObject self, PyObject _class)"""
4222 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4224 def base_DoMoveWindow(*args
, **kwargs
):
4225 """base_DoMoveWindow(int x, int y, int width, int height)"""
4226 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4228 def base_DoSetSize(*args
, **kwargs
):
4229 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4230 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4232 def base_DoSetClientSize(*args
, **kwargs
):
4233 """base_DoSetClientSize(int width, int height)"""
4234 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4236 def base_DoSetVirtualSize(*args
, **kwargs
):
4237 """base_DoSetVirtualSize(int x, int y)"""
4238 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4240 def base_DoGetSize(*args
, **kwargs
):
4241 """base_DoGetSize() -> (width, height)"""
4242 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4244 def base_DoGetClientSize(*args
, **kwargs
):
4245 """base_DoGetClientSize() -> (width, height)"""
4246 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4248 def base_DoGetPosition(*args
, **kwargs
):
4249 """base_DoGetPosition() -> (x,y)"""
4250 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4252 def base_DoGetVirtualSize(*args
, **kwargs
):
4253 """base_DoGetVirtualSize() -> Size"""
4254 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4256 def base_DoGetBestSize(*args
, **kwargs
):
4257 """base_DoGetBestSize() -> Size"""
4258 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4260 def base_InitDialog(*args
, **kwargs
):
4261 """base_InitDialog()"""
4262 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4264 def base_TransferDataToWindow(*args
, **kwargs
):
4265 """base_TransferDataToWindow() -> bool"""
4266 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4268 def base_TransferDataFromWindow(*args
, **kwargs
):
4269 """base_TransferDataFromWindow() -> bool"""
4270 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4272 def base_Validate(*args
, **kwargs
):
4273 """base_Validate() -> bool"""
4274 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4276 def base_AcceptsFocus(*args
, **kwargs
):
4277 """base_AcceptsFocus() -> bool"""
4278 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4280 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4281 """base_AcceptsFocusFromKeyboard() -> bool"""
4282 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4284 def base_GetMaxSize(*args
, **kwargs
):
4285 """base_GetMaxSize() -> Size"""
4286 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4288 def base_AddChild(*args
, **kwargs
):
4289 """base_AddChild(Window child)"""
4290 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4292 def base_RemoveChild(*args
, **kwargs
):
4293 """base_RemoveChild(Window child)"""
4294 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4297 class PyControlPtr(PyControl
):
4298 def __init__(self
, this
):
4300 if not hasattr(self
,"thisown"): self
.thisown
= 0
4301 self
.__class
__ = PyControl
4302 _controls
.PyControl_swigregister(PyControlPtr
)
4304 #---------------------------------------------------------------------------
4306 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4307 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4308 wxEVT_HELP
= _controls
.wxEVT_HELP
4309 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4310 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4311 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4312 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4313 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4315 class HelpEvent(core
.CommandEvent
):
4318 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4319 def __init__(self
, *args
, **kwargs
):
4320 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4321 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4322 self
.this
= newobj
.this
4325 def GetPosition(*args
, **kwargs
):
4326 """GetPosition() -> Point"""
4327 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4329 def SetPosition(*args
, **kwargs
):
4330 """SetPosition(Point pos)"""
4331 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4333 def GetLink(*args
, **kwargs
):
4334 """GetLink() -> wxString"""
4335 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4337 def SetLink(*args
, **kwargs
):
4338 """SetLink(wxString link)"""
4339 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4341 def GetTarget(*args
, **kwargs
):
4342 """GetTarget() -> wxString"""
4343 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4345 def SetTarget(*args
, **kwargs
):
4346 """SetTarget(wxString target)"""
4347 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4350 class HelpEventPtr(HelpEvent
):
4351 def __init__(self
, this
):
4353 if not hasattr(self
,"thisown"): self
.thisown
= 0
4354 self
.__class
__ = HelpEvent
4355 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4357 class ContextHelp(core
.Object
):
4360 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4361 def __init__(self
, *args
, **kwargs
):
4362 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4363 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4364 self
.this
= newobj
.this
4367 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4370 if self
.thisown
: destroy(self
)
4373 def BeginContextHelp(*args
, **kwargs
):
4374 """BeginContextHelp(Window window=None) -> bool"""
4375 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4377 def EndContextHelp(*args
, **kwargs
):
4378 """EndContextHelp() -> bool"""
4379 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4382 class ContextHelpPtr(ContextHelp
):
4383 def __init__(self
, this
):
4385 if not hasattr(self
,"thisown"): self
.thisown
= 0
4386 self
.__class
__ = ContextHelp
4387 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4389 class ContextHelpButton(BitmapButton
):
4392 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4393 def __init__(self
, *args
, **kwargs
):
4394 """__init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4395 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton"""
4396 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4397 self
.this
= newobj
.this
4400 self
._setOORInfo
(self
)
4403 class ContextHelpButtonPtr(ContextHelpButton
):
4404 def __init__(self
, this
):
4406 if not hasattr(self
,"thisown"): self
.thisown
= 0
4407 self
.__class
__ = ContextHelpButton
4408 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4410 class HelpProvider(object):
4412 def __init__(self
): raise RuntimeError, "No constructor defined"
4414 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4415 def Set(*args
, **kwargs
):
4416 """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
4417 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4419 Set
= staticmethod(Set
)
4420 def Get(*args
, **kwargs
):
4421 """HelpProvider.Get() -> HelpProvider"""
4422 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4424 Get
= staticmethod(Get
)
4425 def GetHelp(*args
, **kwargs
):
4426 """GetHelp(Window window) -> wxString"""
4427 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4429 def ShowHelp(*args
, **kwargs
):
4430 """ShowHelp(Window window) -> bool"""
4431 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4433 def AddHelp(*args
, **kwargs
):
4434 """AddHelp(Window window, wxString text)"""
4435 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4437 def AddHelpById(*args
, **kwargs
):
4438 """AddHelpById(int id, wxString text)"""
4439 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4441 def Destroy(*args
, **kwargs
):
4443 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4446 class HelpProviderPtr(HelpProvider
):
4447 def __init__(self
, this
):
4449 if not hasattr(self
,"thisown"): self
.thisown
= 0
4450 self
.__class
__ = HelpProvider
4451 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4453 def HelpProvider_Set(*args
, **kwargs
):
4454 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4455 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4457 def HelpProvider_Get(*args
, **kwargs
):
4458 """HelpProvider_Get() -> HelpProvider"""
4459 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4461 class SimpleHelpProvider(HelpProvider
):
4464 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4465 def __init__(self
, *args
, **kwargs
):
4466 """__init__() -> SimpleHelpProvider"""
4467 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4468 self
.this
= newobj
.this
4472 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4473 def __init__(self
, this
):
4475 if not hasattr(self
,"thisown"): self
.thisown
= 0
4476 self
.__class
__ = SimpleHelpProvider
4477 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4479 #---------------------------------------------------------------------------
4481 class DragImage(core
.Object
):
4484 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4485 def __init__(self
, *args
, **kwargs
):
4486 """__init__(wxBitmap image, wxCursor cursor=wxNullCursor) -> DragImage"""
4487 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4488 self
.this
= newobj
.this
4491 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4494 if self
.thisown
: destroy(self
)
4497 def SetBackingBitmap(*args
, **kwargs
):
4498 """SetBackingBitmap(wxBitmap bitmap)"""
4499 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4501 def BeginDrag(*args
, **kwargs
):
4502 """BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4503 Rect rect=None) -> bool"""
4504 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4506 def BeginDragBounded(*args
, **kwargs
):
4507 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4508 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4510 def EndDrag(*args
, **kwargs
):
4511 """EndDrag() -> bool"""
4512 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4514 def Move(*args
, **kwargs
):
4515 """Move(Point pt) -> bool"""
4516 return _controls
.DragImage_Move(*args
, **kwargs
)
4518 def Show(*args
, **kwargs
):
4519 """Show() -> bool"""
4520 return _controls
.DragImage_Show(*args
, **kwargs
)
4522 def Hide(*args
, **kwargs
):
4523 """Hide() -> bool"""
4524 return _controls
.DragImage_Hide(*args
, **kwargs
)
4526 def GetImageRect(*args
, **kwargs
):
4527 """GetImageRect(Point pos) -> Rect"""
4528 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4530 def DoDrawImage(*args
, **kwargs
):
4531 """DoDrawImage(wxDC dc, Point pos) -> bool"""
4532 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4534 def UpdateBackingFromWindow(*args
, **kwargs
):
4535 """UpdateBackingFromWindow(wxDC windowDC, wxMemoryDC destDC, Rect sourceRect,
4536 Rect destRect) -> bool"""
4537 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4539 def RedrawImage(*args
, **kwargs
):
4540 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4541 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4544 class DragImagePtr(DragImage
):
4545 def __init__(self
, this
):
4547 if not hasattr(self
,"thisown"): self
.thisown
= 0
4548 self
.__class
__ = DragImage
4549 _controls
.DragImage_swigregister(DragImagePtr
)
4551 def DragIcon(*args
, **kwargs
):
4552 """DragIcon(wxIcon image, wxCursor cursor=wxNullCursor) -> DragImage"""
4553 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4557 def DragString(*args
, **kwargs
):
4558 """DragString(wxString str, wxCursor cursor=wxNullCursor) -> DragImage"""
4559 val
= _controls
.new_DragString(*args
, **kwargs
)
4563 def DragTreeItem(*args
, **kwargs
):
4564 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4565 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4569 def DragListItem(*args
, **kwargs
):
4570 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4571 val
= _controls
.new_DragListItem(*args
, **kwargs
)