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
):
19 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
20 def __init__(self
, *args
, **kwargs
):
21 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
22 Size size=DefaultSize, long style=0,
23 Validator validator=DefaultValidator,
24 wxString name=wxPyButtonNameStr) -> Button"""
25 newobj
= _controls
.new_Button(*args
, **kwargs
)
26 self
.this
= newobj
.this
29 self
._setOORInfo
(self
)
31 def Create(*args
, **kwargs
):
32 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
33 Size size=DefaultSize, long style=0,
34 Validator validator=DefaultValidator,
35 wxString name=wxPyButtonNameStr) -> bool"""
36 return _controls
.Button_Create(*args
, **kwargs
)
38 def SetDefault(*args
, **kwargs
):
40 return _controls
.Button_SetDefault(*args
, **kwargs
)
42 def GetDefaultSize(*args
, **kwargs
):
43 """Button.GetDefaultSize() -> Size"""
44 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
46 GetDefaultSize
= staticmethod(GetDefaultSize
)
48 class ButtonPtr(Button
):
49 def __init__(self
, this
):
51 if not hasattr(self
,"thisown"): self
.thisown
= 0
52 self
.__class
__ = Button
53 _controls
.Button_swigregister(ButtonPtr
)
55 def PreButton(*args
, **kwargs
):
56 """PreButton() -> Button"""
57 val
= _controls
.new_PreButton(*args
, **kwargs
)
61 def Button_GetDefaultSize(*args
, **kwargs
):
62 """Button_GetDefaultSize() -> Size"""
63 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
65 class BitmapButton(Button
):
68 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
69 def __init__(self
, *args
, **kwargs
):
70 """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
71 Size size=DefaultSize, long style=BU_AUTODRAW,
72 Validator validator=DefaultValidator,
73 wxString name=wxPyButtonNameStr) -> BitmapButton"""
74 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
75 self
.this
= newobj
.this
78 self
._setOORInfo
(self
)
80 def Create(*args
, **kwargs
):
81 """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
82 Size size=DefaultSize, long style=BU_AUTODRAW,
83 Validator validator=DefaultValidator,
84 wxString name=wxPyButtonNameStr) -> bool"""
85 return _controls
.BitmapButton_Create(*args
, **kwargs
)
87 def GetBitmapLabel(*args
, **kwargs
):
88 """GetBitmapLabel() -> wxBitmap"""
89 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
91 def GetBitmapDisabled(*args
, **kwargs
):
92 """GetBitmapDisabled() -> wxBitmap"""
93 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
95 def GetBitmapFocus(*args
, **kwargs
):
96 """GetBitmapFocus() -> wxBitmap"""
97 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
99 def GetBitmapSelected(*args
, **kwargs
):
100 """GetBitmapSelected() -> wxBitmap"""
101 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
103 def SetBitmapDisabled(*args
, **kwargs
):
104 """SetBitmapDisabled(wxBitmap bitmap)"""
105 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
107 def SetBitmapFocus(*args
, **kwargs
):
108 """SetBitmapFocus(wxBitmap bitmap)"""
109 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
111 def SetBitmapSelected(*args
, **kwargs
):
112 """SetBitmapSelected(wxBitmap bitmap)"""
113 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
115 def SetBitmapLabel(*args
, **kwargs
):
116 """SetBitmapLabel(wxBitmap bitmap)"""
117 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
119 def SetMargins(*args
, **kwargs
):
120 """SetMargins(int x, int y)"""
121 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
123 def GetMarginX(*args
, **kwargs
):
124 """GetMarginX() -> int"""
125 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
127 def GetMarginY(*args
, **kwargs
):
128 """GetMarginY() -> int"""
129 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
132 class BitmapButtonPtr(BitmapButton
):
133 def __init__(self
, this
):
135 if not hasattr(self
,"thisown"): self
.thisown
= 0
136 self
.__class
__ = BitmapButton
137 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
139 def PreBitmapButton(*args
, **kwargs
):
140 """PreBitmapButton() -> BitmapButton"""
141 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
145 #---------------------------------------------------------------------------
147 CHK_2STATE
= _controls
.CHK_2STATE
148 CHK_3STATE
= _controls
.CHK_3STATE
149 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
150 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
151 CHK_CHECKED
= _controls
.CHK_CHECKED
152 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
153 class CheckBox(core
.Control
):
156 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
157 def __init__(self
, *args
, **kwargs
):
158 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
159 Size size=DefaultSize, long style=0,
160 Validator validator=DefaultValidator,
161 wxString name=wxPyCheckBoxNameStr) -> CheckBox"""
162 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
163 self
.this
= newobj
.this
166 self
._setOORInfo
(self
)
168 def Create(*args
, **kwargs
):
169 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
170 Size size=DefaultSize, long style=0,
171 Validator validator=DefaultValidator,
172 wxString name=wxPyCheckBoxNameStr) -> bool"""
173 return _controls
.CheckBox_Create(*args
, **kwargs
)
175 def GetValue(*args
, **kwargs
):
176 """GetValue() -> bool"""
177 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
179 def IsChecked(*args
, **kwargs
):
180 """IsChecked() -> bool"""
181 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
183 def SetValue(*args
, **kwargs
):
184 """SetValue(bool state)"""
185 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
187 def Get3StateValue(*args
, **kwargs
):
188 """Get3StateValue() -> wxCheckBoxState"""
189 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
191 def Set3StateValue(*args
, **kwargs
):
192 """Set3StateValue(wxCheckBoxState state)"""
193 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
195 def Is3State(*args
, **kwargs
):
196 """Is3State() -> bool"""
197 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
199 def Is3rdStateAllowedForUser(*args
, **kwargs
):
200 """Is3rdStateAllowedForUser() -> bool"""
201 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
204 class CheckBoxPtr(CheckBox
):
205 def __init__(self
, this
):
207 if not hasattr(self
,"thisown"): self
.thisown
= 0
208 self
.__class
__ = CheckBox
209 _controls
.CheckBox_swigregister(CheckBoxPtr
)
211 def PreCheckBox(*args
, **kwargs
):
212 """PreCheckBox() -> CheckBox"""
213 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
217 #---------------------------------------------------------------------------
219 class Choice(core
.ControlWithItems
):
222 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
223 def __init__(self
, *args
, **kwargs
):
224 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
225 int choices=0, wxString choices_array=None,
226 long style=0, Validator validator=DefaultValidator,
227 wxString name=wxPyChoiceNameStr) -> Choice"""
228 newobj
= _controls
.new_Choice(*args
, **kwargs
)
229 self
.this
= newobj
.this
232 self
._setOORInfo
(self
)
234 def Create(*args
, **kwargs
):
235 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
236 int choices=0, wxString choices_array=None,
237 long style=0, Validator validator=DefaultValidator,
238 wxString name=wxPyChoiceNameStr) -> bool"""
239 return _controls
.Choice_Create(*args
, **kwargs
)
241 def GetColumns(*args
, **kwargs
):
242 """GetColumns() -> int"""
243 return _controls
.Choice_GetColumns(*args
, **kwargs
)
245 def SetColumns(*args
, **kwargs
):
246 """SetColumns(int n=1)"""
247 return _controls
.Choice_SetColumns(*args
, **kwargs
)
249 def SetSelection(*args
, **kwargs
):
250 """SetSelection(int n)"""
251 return _controls
.Choice_SetSelection(*args
, **kwargs
)
253 def SetStringSelection(*args
, **kwargs
):
254 """SetStringSelection(wxString string)"""
255 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
257 def SetString(*args
, **kwargs
):
258 """SetString(int n, wxString s)"""
259 return _controls
.Choice_SetString(*args
, **kwargs
)
262 class ChoicePtr(Choice
):
263 def __init__(self
, this
):
265 if not hasattr(self
,"thisown"): self
.thisown
= 0
266 self
.__class
__ = Choice
267 _controls
.Choice_swigregister(ChoicePtr
)
269 def PreChoice(*args
, **kwargs
):
270 """PreChoice() -> Choice"""
271 val
= _controls
.new_PreChoice(*args
, **kwargs
)
275 #---------------------------------------------------------------------------
277 class ComboBox(core
.Control
,core
.ItemContainer
):
280 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
281 def __init__(self
, *args
, **kwargs
):
282 """__init__(Window parent, int id, wxString value=wxPyEmptyString,
283 Point pos=DefaultPosition, Size size=DefaultSize,
284 int choices=0, wxString choices_array=None,
285 long style=0, Validator validator=DefaultValidator,
286 wxString name=wxPyComboBoxNameStr) -> ComboBox"""
287 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
288 self
.this
= newobj
.this
291 self
._setOORInfo
(self
)
293 def Create(*args
, **kwargs
):
294 """Create(Window parent, int id, wxString value=wxPyEmptyString,
295 Point pos=DefaultPosition, Size size=DefaultSize,
296 int choices=0, wxString choices_array=None,
297 long style=0, Validator validator=DefaultValidator,
298 wxString name=wxPyComboBoxNameStr) -> bool"""
299 return _controls
.ComboBox_Create(*args
, **kwargs
)
301 def GetValue(*args
, **kwargs
):
302 """GetValue() -> wxString"""
303 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
305 def SetValue(*args
, **kwargs
):
306 """SetValue(wxString value)"""
307 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
309 def Copy(*args
, **kwargs
):
311 return _controls
.ComboBox_Copy(*args
, **kwargs
)
313 def Cut(*args
, **kwargs
):
315 return _controls
.ComboBox_Cut(*args
, **kwargs
)
317 def Paste(*args
, **kwargs
):
319 return _controls
.ComboBox_Paste(*args
, **kwargs
)
321 def SetInsertionPoint(*args
, **kwargs
):
322 """SetInsertionPoint(long pos)"""
323 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
325 def GetInsertionPoint(*args
, **kwargs
):
326 """GetInsertionPoint() -> long"""
327 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
329 def GetLastPosition(*args
, **kwargs
):
330 """GetLastPosition() -> long"""
331 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
333 def Replace(*args
, **kwargs
):
334 """Replace(long from, long to, wxString value)"""
335 return _controls
.ComboBox_Replace(*args
, **kwargs
)
337 def SetMark(*args
, **kwargs
):
338 """SetMark(long from, long to)"""
339 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
341 def SetEditable(*args
, **kwargs
):
342 """SetEditable(bool editable)"""
343 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
345 def SetInsertionPointEnd(*args
, **kwargs
):
346 """SetInsertionPointEnd()"""
347 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
349 def Remove(*args
, **kwargs
):
350 """Remove(long from, long to)"""
351 return _controls
.ComboBox_Remove(*args
, **kwargs
)
354 class ComboBoxPtr(ComboBox
):
355 def __init__(self
, this
):
357 if not hasattr(self
,"thisown"): self
.thisown
= 0
358 self
.__class
__ = ComboBox
359 _controls
.ComboBox_swigregister(ComboBoxPtr
)
361 def PreComboBox(*args
, **kwargs
):
362 """PreComboBox() -> ComboBox"""
363 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
367 #---------------------------------------------------------------------------
369 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
370 GA_VERTICAL
= _controls
.GA_VERTICAL
371 GA_SMOOTH
= _controls
.GA_SMOOTH
372 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
373 class Gauge(core
.Control
):
376 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
377 def __init__(self
, *args
, **kwargs
):
378 """__init__(Window parent, int id, int range, Point pos=DefaultPosition,
379 Size size=DefaultSize, long style=GA_HORIZONTAL,
380 Validator validator=DefaultValidator,
381 wxString name=wxPyGaugeNameStr) -> Gauge"""
382 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
383 self
.this
= newobj
.this
386 self
._setOORInfo
(self
)
388 def Create(*args
, **kwargs
):
389 """Create(Window parent, int id, int range, Point pos=DefaultPosition,
390 Size size=DefaultSize, long style=GA_HORIZONTAL,
391 Validator validator=DefaultValidator,
392 wxString name=wxPyGaugeNameStr) -> bool"""
393 return _controls
.Gauge_Create(*args
, **kwargs
)
395 def SetRange(*args
, **kwargs
):
396 """SetRange(int range)"""
397 return _controls
.Gauge_SetRange(*args
, **kwargs
)
399 def GetRange(*args
, **kwargs
):
400 """GetRange() -> int"""
401 return _controls
.Gauge_GetRange(*args
, **kwargs
)
403 def SetValue(*args
, **kwargs
):
404 """SetValue(int pos)"""
405 return _controls
.Gauge_SetValue(*args
, **kwargs
)
407 def GetValue(*args
, **kwargs
):
408 """GetValue() -> int"""
409 return _controls
.Gauge_GetValue(*args
, **kwargs
)
411 def IsVertical(*args
, **kwargs
):
412 """IsVertical() -> bool"""
413 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
415 def SetShadowWidth(*args
, **kwargs
):
416 """SetShadowWidth(int w)"""
417 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
419 def GetShadowWidth(*args
, **kwargs
):
420 """GetShadowWidth() -> int"""
421 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
423 def SetBezelFace(*args
, **kwargs
):
424 """SetBezelFace(int w)"""
425 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
427 def GetBezelFace(*args
, **kwargs
):
428 """GetBezelFace() -> int"""
429 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
432 class GaugePtr(Gauge
):
433 def __init__(self
, this
):
435 if not hasattr(self
,"thisown"): self
.thisown
= 0
436 self
.__class
__ = Gauge
437 _controls
.Gauge_swigregister(GaugePtr
)
439 def PreGauge(*args
, **kwargs
):
440 """PreGauge() -> Gauge"""
441 val
= _controls
.new_PreGauge(*args
, **kwargs
)
445 #---------------------------------------------------------------------------
447 class StaticBox(core
.Control
):
450 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
451 def __init__(self
, *args
, **kwargs
):
452 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
453 Size size=DefaultSize, long style=0,
454 wxString name=wxPyStaticBoxNameStr) -> StaticBox"""
455 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
456 self
.this
= newobj
.this
459 self
._setOORInfo
(self
)
461 def Create(*args
, **kwargs
):
462 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
463 Size size=DefaultSize, long style=0,
464 wxString name=wxPyStaticBoxNameStr) -> bool"""
465 return _controls
.StaticBox_Create(*args
, **kwargs
)
468 class StaticBoxPtr(StaticBox
):
469 def __init__(self
, this
):
471 if not hasattr(self
,"thisown"): self
.thisown
= 0
472 self
.__class
__ = StaticBox
473 _controls
.StaticBox_swigregister(StaticBoxPtr
)
475 def PreStaticBox(*args
, **kwargs
):
476 """PreStaticBox() -> StaticBox"""
477 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
481 #---------------------------------------------------------------------------
483 class StaticLine(core
.Control
):
486 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
487 def __init__(self
, *args
, **kwargs
):
488 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
489 long style=LI_HORIZONTAL,
490 wxString name=wxPyStaticTextNameStr) -> StaticLine"""
491 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
492 self
.this
= newobj
.this
495 self
._setOORInfo
(self
)
497 def Create(*args
, **kwargs
):
498 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
499 long style=LI_HORIZONTAL,
500 wxString name=wxPyStaticTextNameStr) -> bool"""
501 return _controls
.StaticLine_Create(*args
, **kwargs
)
503 def IsVertical(*args
, **kwargs
):
504 """IsVertical() -> bool"""
505 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
507 def GetDefaultSize(*args
, **kwargs
):
508 """StaticLine.GetDefaultSize() -> int"""
509 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
511 GetDefaultSize
= staticmethod(GetDefaultSize
)
513 class StaticLinePtr(StaticLine
):
514 def __init__(self
, this
):
516 if not hasattr(self
,"thisown"): self
.thisown
= 0
517 self
.__class
__ = StaticLine
518 _controls
.StaticLine_swigregister(StaticLinePtr
)
520 def PreStaticLine(*args
, **kwargs
):
521 """PreStaticLine() -> StaticLine"""
522 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
526 def StaticLine_GetDefaultSize(*args
, **kwargs
):
527 """StaticLine_GetDefaultSize() -> int"""
528 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
530 #---------------------------------------------------------------------------
532 class StaticText(core
.Control
):
535 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
536 def __init__(self
, *args
, **kwargs
):
537 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
538 Size size=DefaultSize, long style=0,
539 wxString name=wxPyStaticTextNameStr) -> StaticText"""
540 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
541 self
.this
= newobj
.this
544 self
._setOORInfo
(self
)
546 def Create(*args
, **kwargs
):
547 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
548 Size size=DefaultSize, long style=0,
549 wxString name=wxPyStaticTextNameStr) -> bool"""
550 return _controls
.StaticText_Create(*args
, **kwargs
)
553 class StaticTextPtr(StaticText
):
554 def __init__(self
, this
):
556 if not hasattr(self
,"thisown"): self
.thisown
= 0
557 self
.__class
__ = StaticText
558 _controls
.StaticText_swigregister(StaticTextPtr
)
560 def PreStaticText(*args
, **kwargs
):
561 """PreStaticText() -> StaticText"""
562 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
566 #---------------------------------------------------------------------------
568 class StaticBitmap(core
.Control
):
571 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
572 def __init__(self
, *args
, **kwargs
):
573 """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
574 Size size=DefaultSize, long style=0,
575 wxString name=wxPyStaticBitmapNameStr) -> StaticBitmap"""
576 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
577 self
.this
= newobj
.this
580 def Create(*args
, **kwargs
):
581 """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
582 Size size=DefaultSize, long style=0,
583 wxString name=wxPyStaticBitmapNameStr) -> bool"""
584 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
586 def GetBitmap(*args
, **kwargs
):
587 """GetBitmap() -> wxBitmap"""
588 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
590 def SetBitmap(*args
, **kwargs
):
591 """SetBitmap(wxBitmap bitmap)"""
592 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
594 def SetIcon(*args
, **kwargs
):
595 """SetIcon(wxIcon icon)"""
596 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
599 class StaticBitmapPtr(StaticBitmap
):
600 def __init__(self
, this
):
602 if not hasattr(self
,"thisown"): self
.thisown
= 0
603 self
.__class
__ = StaticBitmap
604 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
606 def PreStaticBitmap(*args
, **kwargs
):
607 """PreStaticBitmap() -> StaticBitmap"""
608 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
612 #---------------------------------------------------------------------------
614 class ListBox(core
.ControlWithItems
):
617 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
618 def __init__(self
, *args
, **kwargs
):
619 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
620 int choices=0, wxString choices_array=None,
621 long style=0, Validator validator=DefaultValidator,
622 wxString name=wxPyListBoxNameStr) -> ListBox"""
623 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
624 self
.this
= newobj
.this
627 self
._setOORInfo
(self
)
629 def Create(*args
, **kwargs
):
630 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
631 int choices=0, wxString choices_array=None,
632 long style=0, Validator validator=DefaultValidator,
633 wxString name=wxPyListBoxNameStr) -> bool"""
634 return _controls
.ListBox_Create(*args
, **kwargs
)
636 def Insert(*args
, **kwargs
):
637 """Insert(wxString item, int pos, PyObject clientData=None)"""
638 return _controls
.ListBox_Insert(*args
, **kwargs
)
640 def InsertItems(*args
, **kwargs
):
641 """InsertItems(wxArrayString items, int pos)"""
642 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
644 def Set(*args
, **kwargs
):
645 """Set(wxArrayString items)"""
646 return _controls
.ListBox_Set(*args
, **kwargs
)
648 def IsSelected(*args
, **kwargs
):
649 """IsSelected(int n) -> bool"""
650 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
652 def SetSelection(*args
, **kwargs
):
653 """SetSelection(int n, bool select=True)"""
654 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
656 def Select(*args
, **kwargs
):
658 return _controls
.ListBox_Select(*args
, **kwargs
)
660 def Deselect(*args
, **kwargs
):
661 """Deselect(int n)"""
662 return _controls
.ListBox_Deselect(*args
, **kwargs
)
664 def DeselectAll(*args
, **kwargs
):
665 """DeselectAll(int itemToLeaveSelected=-1)"""
666 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
668 def SetStringSelection(*args
, **kwargs
):
669 """SetStringSelection(wxString s, bool select=True) -> bool"""
670 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
672 def GetSelections(*args
, **kwargs
):
673 """GetSelections() -> PyObject"""
674 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
676 def SetFirstItem(*args
, **kwargs
):
677 """SetFirstItem(int n)"""
678 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
680 def SetFirstItemStr(*args
, **kwargs
):
681 """SetFirstItemStr(wxString s)"""
682 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
684 def EnsureVisible(*args
, **kwargs
):
685 """EnsureVisible(int n)"""
686 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
688 def AppendAndEnsureVisible(*args
, **kwargs
):
689 """AppendAndEnsureVisible(wxString s)"""
690 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
692 def IsSorted(*args
, **kwargs
):
693 """IsSorted() -> bool"""
694 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
697 class ListBoxPtr(ListBox
):
698 def __init__(self
, this
):
700 if not hasattr(self
,"thisown"): self
.thisown
= 0
701 self
.__class
__ = ListBox
702 _controls
.ListBox_swigregister(ListBoxPtr
)
704 def PreListBox(*args
, **kwargs
):
705 """PreListBox() -> ListBox"""
706 val
= _controls
.new_PreListBox(*args
, **kwargs
)
710 #---------------------------------------------------------------------------
712 class CheckListBox(ListBox
):
715 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
716 def __init__(self
, *args
, **kwargs
):
717 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
718 int choices=0, wxString choices_array=None,
719 long style=0, Validator validator=DefaultValidator,
720 wxString name=wxPyListBoxNameStr) -> CheckListBox"""
721 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
722 self
.this
= newobj
.this
725 def Create(*args
, **kwargs
):
726 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
727 int choices=0, wxString choices_array=None,
728 long style=0, Validator validator=DefaultValidator,
729 wxString name=wxPyListBoxNameStr) -> bool"""
730 return _controls
.CheckListBox_Create(*args
, **kwargs
)
732 def IsChecked(*args
, **kwargs
):
733 """IsChecked(int index) -> bool"""
734 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
736 def Check(*args
, **kwargs
):
737 """Check(int index, int check=True)"""
738 return _controls
.CheckListBox_Check(*args
, **kwargs
)
740 def GetItemHeight(*args
, **kwargs
):
741 """GetItemHeight() -> int"""
742 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
744 def HitTest(*args
, **kwargs
):
745 """HitTest(Point pt) -> int"""
746 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
748 def HitTestXY(*args
, **kwargs
):
749 """HitTestXY(int x, int y) -> int"""
750 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
753 class CheckListBoxPtr(CheckListBox
):
754 def __init__(self
, this
):
756 if not hasattr(self
,"thisown"): self
.thisown
= 0
757 self
.__class
__ = CheckListBox
758 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
760 def PreCheckListBox(*args
, **kwargs
):
761 """PreCheckListBox() -> CheckListBox"""
762 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
766 #---------------------------------------------------------------------------
768 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
769 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
770 TE_READONLY
= _controls
.TE_READONLY
771 TE_MULTILINE
= _controls
.TE_MULTILINE
772 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
773 TE_LEFT
= _controls
.TE_LEFT
774 TE_CENTER
= _controls
.TE_CENTER
775 TE_RIGHT
= _controls
.TE_RIGHT
776 TE_CENTRE
= _controls
.TE_CENTRE
777 TE_RICH
= _controls
.TE_RICH
778 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
779 TE_PASSWORD
= _controls
.TE_PASSWORD
780 TE_AUTO_URL
= _controls
.TE_AUTO_URL
781 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
782 TE_DONTWRAP
= _controls
.TE_DONTWRAP
783 TE_LINEWRAP
= _controls
.TE_LINEWRAP
784 TE_WORDWRAP
= _controls
.TE_WORDWRAP
785 TE_RICH2
= _controls
.TE_RICH2
786 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
787 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
788 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
789 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
790 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
791 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
792 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
793 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
794 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
795 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
796 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
797 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
798 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
799 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
800 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
801 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
802 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
803 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
804 class TextAttr(object):
807 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
808 def __init__(self
, *args
):
809 """__init__() -> TextAttr
810 __init__(wxColour colText, wxColour colBack=wxNullColour, wxFont font=wxNullFont,
811 wxTextAttrAlignment alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr"""
812 newobj
= _controls
.new_TextAttr(*args
)
813 self
.this
= newobj
.this
816 def Init(*args
, **kwargs
):
818 return _controls
.TextAttr_Init(*args
, **kwargs
)
820 def SetTextColour(*args
, **kwargs
):
821 """SetTextColour(wxColour colText)"""
822 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
824 def SetBackgroundColour(*args
, **kwargs
):
825 """SetBackgroundColour(wxColour colBack)"""
826 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
828 def SetFont(*args
, **kwargs
):
829 """SetFont(wxFont font, long flags=TEXT_ATTR_FONT)"""
830 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
832 def SetAlignment(*args
, **kwargs
):
833 """SetAlignment(wxTextAttrAlignment alignment)"""
834 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
836 def SetTabs(*args
, **kwargs
):
837 """SetTabs(wxArrayInt tabs)"""
838 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
840 def SetLeftIndent(*args
, **kwargs
):
841 """SetLeftIndent(int indent)"""
842 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
844 def SetRightIndent(*args
, **kwargs
):
845 """SetRightIndent(int indent)"""
846 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
848 def SetFlags(*args
, **kwargs
):
849 """SetFlags(long flags)"""
850 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
852 def HasTextColour(*args
, **kwargs
):
853 """HasTextColour() -> bool"""
854 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
856 def HasBackgroundColour(*args
, **kwargs
):
857 """HasBackgroundColour() -> bool"""
858 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
860 def HasFont(*args
, **kwargs
):
861 """HasFont() -> bool"""
862 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
864 def HasAlignment(*args
, **kwargs
):
865 """HasAlignment() -> bool"""
866 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
868 def HasTabs(*args
, **kwargs
):
869 """HasTabs() -> bool"""
870 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
872 def HasLeftIndent(*args
, **kwargs
):
873 """HasLeftIndent() -> bool"""
874 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
876 def HasRightIndent(*args
, **kwargs
):
877 """HasRightIndent() -> bool"""
878 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
880 def HasFlag(*args
, **kwargs
):
881 """HasFlag(long flag) -> bool"""
882 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
884 def GetTextColour(*args
, **kwargs
):
885 """GetTextColour() -> wxColour"""
886 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
888 def GetBackgroundColour(*args
, **kwargs
):
889 """GetBackgroundColour() -> wxColour"""
890 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
892 def GetFont(*args
, **kwargs
):
893 """GetFont() -> wxFont"""
894 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
896 def GetAlignment(*args
, **kwargs
):
897 """GetAlignment() -> wxTextAttrAlignment"""
898 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
900 def GetTabs(*args
, **kwargs
):
901 """GetTabs() -> wxArrayInt"""
902 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
904 def GetLeftIndent(*args
, **kwargs
):
905 """GetLeftIndent() -> long"""
906 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
908 def GetRightIndent(*args
, **kwargs
):
909 """GetRightIndent() -> long"""
910 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
912 def GetFlags(*args
, **kwargs
):
913 """GetFlags() -> long"""
914 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
916 def IsDefault(*args
, **kwargs
):
917 """IsDefault() -> bool"""
918 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
920 def Combine(*args
, **kwargs
):
921 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
922 return _controls
.TextAttr_Combine(*args
, **kwargs
)
924 Combine
= staticmethod(Combine
)
926 class TextAttrPtr(TextAttr
):
927 def __init__(self
, this
):
929 if not hasattr(self
,"thisown"): self
.thisown
= 0
930 self
.__class
__ = TextAttr
931 _controls
.TextAttr_swigregister(TextAttrPtr
)
933 def TextAttr_Combine(*args
, **kwargs
):
934 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
935 return _controls
.TextAttr_Combine(*args
, **kwargs
)
937 class TextCtrl(core
.Control
):
940 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
941 def __init__(self
, *args
, **kwargs
):
942 """__init__(Window parent, int id, wxString value=wxPyEmptyString,
943 Point pos=DefaultPosition, Size size=DefaultSize,
944 long style=0, Validator validator=DefaultValidator,
945 wxString name=wxPyTextCtrlNameStr) -> TextCtrl"""
946 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
947 self
.this
= newobj
.this
950 self
._setOORInfo
(self
)
952 def Create(*args
, **kwargs
):
953 """Create(Window parent, int id, wxString value=wxPyEmptyString,
954 Point pos=DefaultPosition, Size size=DefaultSize,
955 long style=0, Validator validator=DefaultValidator,
956 wxString name=wxPyTextCtrlNameStr) -> bool"""
957 return _controls
.TextCtrl_Create(*args
, **kwargs
)
959 def GetValue(*args
, **kwargs
):
960 """GetValue() -> wxString"""
961 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
963 def SetValue(*args
, **kwargs
):
964 """SetValue(wxString value)"""
965 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
967 def GetRange(*args
, **kwargs
):
968 """GetRange(long from, long to) -> wxString"""
969 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
971 def GetLineLength(*args
, **kwargs
):
972 """GetLineLength(long lineNo) -> int"""
973 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
975 def GetLineText(*args
, **kwargs
):
976 """GetLineText(long lineNo) -> wxString"""
977 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
979 def GetNumberOfLines(*args
, **kwargs
):
980 """GetNumberOfLines() -> int"""
981 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
983 def IsModified(*args
, **kwargs
):
984 """IsModified() -> bool"""
985 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
987 def IsEditable(*args
, **kwargs
):
988 """IsEditable() -> bool"""
989 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
991 def IsSingleLine(*args
, **kwargs
):
992 """IsSingleLine() -> bool"""
993 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
995 def IsMultiLine(*args
, **kwargs
):
996 """IsMultiLine() -> bool"""
997 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
999 def GetSelection(*args
, **kwargs
):
1000 """GetSelection() -> (from, to)
1002 If the return values from and to are the same, there is no selection."""
1003 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1005 def GetStringSelection(*args
, **kwargs
):
1006 """GetStringSelection() -> wxString"""
1007 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1009 def Clear(*args
, **kwargs
):
1011 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1013 def Replace(*args
, **kwargs
):
1014 """Replace(long from, long to, wxString value)"""
1015 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1017 def Remove(*args
, **kwargs
):
1018 """Remove(long from, long to)"""
1019 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1021 def LoadFile(*args
, **kwargs
):
1022 """LoadFile(wxString file) -> bool"""
1023 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1025 def SaveFile(*args
, **kwargs
):
1026 """SaveFile(wxString file=wxPyEmptyString) -> bool"""
1027 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1029 def MarkDirty(*args
, **kwargs
):
1031 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1033 def DiscardEdits(*args
, **kwargs
):
1034 """DiscardEdits()"""
1035 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1037 def SetMaxLength(*args
, **kwargs
):
1038 """SetMaxLength(unsigned long len)"""
1039 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1041 def WriteText(*args
, **kwargs
):
1042 """WriteText(wxString text)"""
1043 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1045 def AppendText(*args
, **kwargs
):
1046 """AppendText(wxString text)"""
1047 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1049 def EmulateKeyPress(*args
, **kwargs
):
1050 """EmulateKeyPress(KeyEvent event) -> bool"""
1051 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1053 def SetStyle(*args
, **kwargs
):
1054 """SetStyle(long start, long end, TextAttr style) -> bool"""
1055 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1057 def GetStyle(*args
, **kwargs
):
1058 """GetStyle(long position, TextAttr style) -> bool"""
1059 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1061 def SetDefaultStyle(*args
, **kwargs
):
1062 """SetDefaultStyle(TextAttr style) -> bool"""
1063 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1065 def GetDefaultStyle(*args
, **kwargs
):
1066 """GetDefaultStyle() -> TextAttr"""
1067 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1069 def XYToPosition(*args
, **kwargs
):
1070 """XYToPosition(long x, long y) -> long"""
1071 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1073 def PositionToXY(*args
, **kwargs
):
1074 """PositionToXY(long pos) -> (x, y)"""
1075 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1077 def ShowPosition(*args
, **kwargs
):
1078 """ShowPosition(long pos)"""
1079 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1081 def Copy(*args
, **kwargs
):
1083 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1085 def Cut(*args
, **kwargs
):
1087 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1089 def Paste(*args
, **kwargs
):
1091 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1093 def CanCopy(*args
, **kwargs
):
1094 """CanCopy() -> bool"""
1095 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1097 def CanCut(*args
, **kwargs
):
1098 """CanCut() -> bool"""
1099 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1101 def CanPaste(*args
, **kwargs
):
1102 """CanPaste() -> bool"""
1103 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1105 def Undo(*args
, **kwargs
):
1107 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1109 def Redo(*args
, **kwargs
):
1111 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1113 def CanUndo(*args
, **kwargs
):
1114 """CanUndo() -> bool"""
1115 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1117 def CanRedo(*args
, **kwargs
):
1118 """CanRedo() -> bool"""
1119 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1121 def SetInsertionPoint(*args
, **kwargs
):
1122 """SetInsertionPoint(long pos)"""
1123 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1125 def SetInsertionPointEnd(*args
, **kwargs
):
1126 """SetInsertionPointEnd()"""
1127 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1129 def GetInsertionPoint(*args
, **kwargs
):
1130 """GetInsertionPoint() -> long"""
1131 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1133 def GetLastPosition(*args
, **kwargs
):
1134 """GetLastPosition() -> long"""
1135 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1137 def SetSelection(*args
, **kwargs
):
1138 """SetSelection(long from, long to)"""
1139 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1141 def SelectAll(*args
, **kwargs
):
1143 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1145 def SetEditable(*args
, **kwargs
):
1146 """SetEditable(bool editable)"""
1147 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1149 def write(*args
, **kwargs
):
1150 """write(wxString text)"""
1151 return _controls
.TextCtrl_write(*args
, **kwargs
)
1153 def GetString(*args
, **kwargs
):
1154 """GetString(long from, long to) -> wxString"""
1155 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1158 class TextCtrlPtr(TextCtrl
):
1159 def __init__(self
, this
):
1161 if not hasattr(self
,"thisown"): self
.thisown
= 0
1162 self
.__class
__ = TextCtrl
1163 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1165 def PreTextCtrl(*args
, **kwargs
):
1166 """PreTextCtrl() -> TextCtrl"""
1167 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1171 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1172 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1173 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1174 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1175 class TextUrlEvent(core
.CommandEvent
):
1178 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1179 def __init__(self
, *args
, **kwargs
):
1180 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1181 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1182 self
.this
= newobj
.this
1185 def GetMouseEvent(*args
, **kwargs
):
1186 """GetMouseEvent() -> MouseEvent"""
1187 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1189 def GetURLStart(*args
, **kwargs
):
1190 """GetURLStart() -> long"""
1191 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1193 def GetURLEnd(*args
, **kwargs
):
1194 """GetURLEnd() -> long"""
1195 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1198 class TextUrlEventPtr(TextUrlEvent
):
1199 def __init__(self
, this
):
1201 if not hasattr(self
,"thisown"): self
.thisown
= 0
1202 self
.__class
__ = TextUrlEvent
1203 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1205 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1206 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1207 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1208 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1210 #---------------------------------------------------------------------------
1212 class ScrollBar(core
.Control
):
1215 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1216 def __init__(self
, *args
, **kwargs
):
1217 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
1218 Size size=DefaultSize, long style=SB_HORIZONTAL,
1219 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> ScrollBar"""
1220 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1221 self
.this
= newobj
.this
1224 self
._setOORInfo
(self
)
1226 def Create(*args
, **kwargs
):
1227 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
1228 Size size=DefaultSize, long style=SB_HORIZONTAL,
1229 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> bool"""
1230 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1232 def GetThumbPosition(*args
, **kwargs
):
1233 """GetThumbPosition() -> int"""
1234 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1236 def GetThumbSize(*args
, **kwargs
):
1237 """GetThumbSize() -> int"""
1238 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1240 GetThumbLength
= GetThumbSize
1241 def GetPageSize(*args
, **kwargs
):
1242 """GetPageSize() -> int"""
1243 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1245 def GetRange(*args
, **kwargs
):
1246 """GetRange() -> int"""
1247 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1249 def IsVertical(*args
, **kwargs
):
1250 """IsVertical() -> bool"""
1251 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1253 def SetThumbPosition(*args
, **kwargs
):
1254 """SetThumbPosition(int viewStart)"""
1255 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1257 def SetScrollbar(*args
, **kwargs
):
1258 """SetScrollbar(int position, int thumbSize, int range, int pageSize,
1259 bool refresh=True)"""
1260 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1263 class ScrollBarPtr(ScrollBar
):
1264 def __init__(self
, this
):
1266 if not hasattr(self
,"thisown"): self
.thisown
= 0
1267 self
.__class
__ = ScrollBar
1268 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1270 def PreScrollBar(*args
, **kwargs
):
1271 """PreScrollBar() -> ScrollBar"""
1272 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1276 #---------------------------------------------------------------------------
1278 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1279 SP_VERTICAL
= _controls
.SP_VERTICAL
1280 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1281 SP_WRAP
= _controls
.SP_WRAP
1282 class SpinButton(core
.Control
):
1285 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1286 def __init__(self
, *args
, **kwargs
):
1287 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
1288 Size size=DefaultSize, long style=SP_HORIZONTAL,
1289 wxString name=wxPySPIN_BUTTON_NAME) -> SpinButton"""
1290 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1291 self
.this
= newobj
.this
1294 self
._setOORInfo
(self
)
1296 def Create(*args
, **kwargs
):
1297 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
1298 Size size=DefaultSize, long style=SP_HORIZONTAL,
1299 wxString name=wxPySPIN_BUTTON_NAME) -> bool"""
1300 return _controls
.SpinButton_Create(*args
, **kwargs
)
1302 def GetValue(*args
, **kwargs
):
1303 """GetValue() -> int"""
1304 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1306 def GetMin(*args
, **kwargs
):
1307 """GetMin() -> int"""
1308 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1310 def GetMax(*args
, **kwargs
):
1311 """GetMax() -> int"""
1312 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1314 def SetValue(*args
, **kwargs
):
1315 """SetValue(int val)"""
1316 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1318 def SetMin(*args
, **kwargs
):
1319 """SetMin(int minVal)"""
1320 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1322 def SetMax(*args
, **kwargs
):
1323 """SetMax(int maxVal)"""
1324 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1326 def SetRange(*args
, **kwargs
):
1327 """SetRange(int minVal, int maxVal)"""
1328 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1330 def IsVertical(*args
, **kwargs
):
1331 """IsVertical() -> bool"""
1332 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1335 class SpinButtonPtr(SpinButton
):
1336 def __init__(self
, this
):
1338 if not hasattr(self
,"thisown"): self
.thisown
= 0
1339 self
.__class
__ = SpinButton
1340 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1342 def PreSpinButton(*args
, **kwargs
):
1343 """PreSpinButton() -> SpinButton"""
1344 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1348 class SpinCtrl(core
.Control
):
1351 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1352 def __init__(self
, *args
, **kwargs
):
1353 """__init__(Window parent, int id=-1, wxString value=wxPyEmptyString,
1354 Point pos=DefaultPosition, Size size=DefaultSize,
1355 long style=SP_ARROW_KEYS, int min=0,
1356 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> SpinCtrl"""
1357 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1358 self
.this
= newobj
.this
1361 self
._setOORInfo
(self
)
1363 def Create(*args
, **kwargs
):
1364 """Create(Window parent, int id=-1, wxString value=wxPyEmptyString,
1365 Point pos=DefaultPosition, Size size=DefaultSize,
1366 long style=SP_ARROW_KEYS, int min=0,
1367 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> bool"""
1368 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1370 def GetValue(*args
, **kwargs
):
1371 """GetValue() -> int"""
1372 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1374 def SetValue(*args
, **kwargs
):
1375 """SetValue(int value)"""
1376 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1378 def SetValueString(*args
, **kwargs
):
1379 """SetValueString(wxString text)"""
1380 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1382 def SetRange(*args
, **kwargs
):
1383 """SetRange(int minVal, int maxVal)"""
1384 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1386 def GetMin(*args
, **kwargs
):
1387 """GetMin() -> int"""
1388 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1390 def GetMax(*args
, **kwargs
):
1391 """GetMax() -> int"""
1392 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1394 def SetSelection(*args
, **kwargs
):
1395 """SetSelection(long from, long to)"""
1396 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1399 class SpinCtrlPtr(SpinCtrl
):
1400 def __init__(self
, this
):
1402 if not hasattr(self
,"thisown"): self
.thisown
= 0
1403 self
.__class
__ = SpinCtrl
1404 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1406 def PreSpinCtrl(*args
, **kwargs
):
1407 """PreSpinCtrl() -> SpinCtrl"""
1408 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1412 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1413 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1415 #---------------------------------------------------------------------------
1417 class RadioBox(core
.Control
):
1420 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1421 def __init__(self
, *args
, **kwargs
):
1422 """__init__(Window parent, int id, wxString label, Point point=DefaultPosition,
1423 Size size=DefaultSize, int choices=0,
1424 wxString choices_array=None, int majorDimension=0,
1425 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1426 wxString name=wxPyRadioBoxNameStr) -> RadioBox"""
1427 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1428 self
.this
= newobj
.this
1431 self
._setOORInfo
(self
)
1433 def Create(*args
, **kwargs
):
1434 """Create(Window parent, int id, wxString label, Point point=DefaultPosition,
1435 Size size=DefaultSize, int choices=0,
1436 wxString choices_array=None, int majorDimension=0,
1437 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1438 wxString name=wxPyRadioBoxNameStr) -> bool"""
1439 return _controls
.RadioBox_Create(*args
, **kwargs
)
1441 def SetSelection(*args
, **kwargs
):
1442 """SetSelection(int n)"""
1443 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1445 def GetSelection(*args
, **kwargs
):
1446 """GetSelection() -> int"""
1447 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1449 def GetStringSelection(*args
, **kwargs
):
1450 """GetStringSelection() -> wxString"""
1451 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1453 def SetStringSelection(*args
, **kwargs
):
1454 """SetStringSelection(wxString s) -> bool"""
1455 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1457 def GetCount(*args
, **kwargs
):
1458 """GetCount() -> int"""
1459 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1461 def FindString(*args
, **kwargs
):
1462 """FindString(wxString s) -> int"""
1463 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1465 def GetString(*args
, **kwargs
):
1466 """GetString(int n) -> wxString"""
1467 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1469 def SetString(*args
, **kwargs
):
1470 """SetString(int n, wxString label)"""
1471 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1473 GetItemLabel
= GetString
1474 SetItemLabel
= SetString
1475 def EnableItem(*args
, **kwargs
):
1476 """EnableItem(int n, bool enable=True)"""
1477 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1479 def ShowItem(*args
, **kwargs
):
1480 """ShowItem(int n, bool show=True)"""
1481 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1483 def GetColumnCount(*args
, **kwargs
):
1484 """GetColumnCount() -> int"""
1485 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1487 def GetRowCount(*args
, **kwargs
):
1488 """GetRowCount() -> int"""
1489 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1491 def GetNextItem(*args
, **kwargs
):
1492 """GetNextItem(int item, wxDirection dir, long style) -> int"""
1493 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1496 class RadioBoxPtr(RadioBox
):
1497 def __init__(self
, this
):
1499 if not hasattr(self
,"thisown"): self
.thisown
= 0
1500 self
.__class
__ = RadioBox
1501 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1503 def PreRadioBox(*args
, **kwargs
):
1504 """PreRadioBox() -> RadioBox"""
1505 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1509 #---------------------------------------------------------------------------
1511 class RadioButton(core
.Control
):
1514 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1515 def __init__(self
, *args
, **kwargs
):
1516 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1517 Size size=DefaultSize, long style=0,
1518 Validator validator=DefaultValidator,
1519 wxString name=wxPyRadioButtonNameStr) -> RadioButton"""
1520 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1521 self
.this
= newobj
.this
1524 self
._setOORInfo
(self
)
1526 def Create(*args
, **kwargs
):
1527 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1528 Size size=DefaultSize, long style=0,
1529 Validator validator=DefaultValidator,
1530 wxString name=wxPyRadioButtonNameStr) -> bool"""
1531 return _controls
.RadioButton_Create(*args
, **kwargs
)
1533 def GetValue(*args
, **kwargs
):
1534 """GetValue() -> bool"""
1535 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1537 def SetValue(*args
, **kwargs
):
1538 """SetValue(bool value)"""
1539 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1542 class RadioButtonPtr(RadioButton
):
1543 def __init__(self
, this
):
1545 if not hasattr(self
,"thisown"): self
.thisown
= 0
1546 self
.__class
__ = RadioButton
1547 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1549 def PreRadioButton(*args
, **kwargs
):
1550 """PreRadioButton() -> RadioButton"""
1551 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1555 #---------------------------------------------------------------------------
1557 class Slider(core
.Control
):
1560 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1561 def __init__(self
, *args
, **kwargs
):
1562 """__init__(Window parent, int id, int value, int minValue, int maxValue,
1563 Point point=DefaultPosition, Size size=DefaultSize,
1564 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1565 wxString name=wxPySliderNameStr) -> Slider"""
1566 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1567 self
.this
= newobj
.this
1570 self
._setOORInfo
(self
)
1572 def Create(*args
, **kwargs
):
1573 """Create(Window parent, int id, int value, int minValue, int maxValue,
1574 Point point=DefaultPosition, Size size=DefaultSize,
1575 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1576 wxString name=wxPySliderNameStr) -> bool"""
1577 return _controls
.Slider_Create(*args
, **kwargs
)
1579 def GetValue(*args
, **kwargs
):
1580 """GetValue() -> int"""
1581 return _controls
.Slider_GetValue(*args
, **kwargs
)
1583 def SetValue(*args
, **kwargs
):
1584 """SetValue(int value)"""
1585 return _controls
.Slider_SetValue(*args
, **kwargs
)
1587 def SetRange(*args
, **kwargs
):
1588 """SetRange(int minValue, int maxValue)"""
1589 return _controls
.Slider_SetRange(*args
, **kwargs
)
1591 def GetMin(*args
, **kwargs
):
1592 """GetMin() -> int"""
1593 return _controls
.Slider_GetMin(*args
, **kwargs
)
1595 def GetMax(*args
, **kwargs
):
1596 """GetMax() -> int"""
1597 return _controls
.Slider_GetMax(*args
, **kwargs
)
1599 def SetMin(*args
, **kwargs
):
1600 """SetMin(int minValue)"""
1601 return _controls
.Slider_SetMin(*args
, **kwargs
)
1603 def SetMax(*args
, **kwargs
):
1604 """SetMax(int maxValue)"""
1605 return _controls
.Slider_SetMax(*args
, **kwargs
)
1607 def SetLineSize(*args
, **kwargs
):
1608 """SetLineSize(int lineSize)"""
1609 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1611 def SetPageSize(*args
, **kwargs
):
1612 """SetPageSize(int pageSize)"""
1613 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1615 def GetLineSize(*args
, **kwargs
):
1616 """GetLineSize() -> int"""
1617 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1619 def GetPageSize(*args
, **kwargs
):
1620 """GetPageSize() -> int"""
1621 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1623 def SetThumbLength(*args
, **kwargs
):
1624 """SetThumbLength(int lenPixels)"""
1625 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1627 def GetThumbLength(*args
, **kwargs
):
1628 """GetThumbLength() -> int"""
1629 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1631 def SetTickFreq(*args
, **kwargs
):
1632 """SetTickFreq(int n, int pos)"""
1633 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1635 def GetTickFreq(*args
, **kwargs
):
1636 """GetTickFreq() -> int"""
1637 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1639 def ClearTicks(*args
, **kwargs
):
1641 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1643 def SetTick(*args
, **kwargs
):
1644 """SetTick(int tickPos)"""
1645 return _controls
.Slider_SetTick(*args
, **kwargs
)
1647 def ClearSel(*args
, **kwargs
):
1649 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1651 def GetSelEnd(*args
, **kwargs
):
1652 """GetSelEnd() -> int"""
1653 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1655 def GetSelStart(*args
, **kwargs
):
1656 """GetSelStart() -> int"""
1657 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1659 def SetSelection(*args
, **kwargs
):
1660 """SetSelection(int min, int max)"""
1661 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1664 class SliderPtr(Slider
):
1665 def __init__(self
, this
):
1667 if not hasattr(self
,"thisown"): self
.thisown
= 0
1668 self
.__class
__ = Slider
1669 _controls
.Slider_swigregister(SliderPtr
)
1671 def PreSlider(*args
, **kwargs
):
1672 """PreSlider() -> Slider"""
1673 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1677 #---------------------------------------------------------------------------
1679 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1680 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1682 class ToggleButton(core
.Control
):
1685 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1686 def __init__(self
, *args
, **kwargs
):
1687 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1688 Size size=DefaultSize, long style=0,
1689 Validator validator=DefaultValidator,
1690 wxString name=wxPyToggleButtonNameStr) -> ToggleButton"""
1691 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1692 self
.this
= newobj
.this
1695 self
._setOORInfo
(self
)
1697 def Create(*args
, **kwargs
):
1698 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1699 Size size=DefaultSize, long style=0,
1700 Validator validator=DefaultValidator,
1701 wxString name=wxPyToggleButtonNameStr) -> bool"""
1702 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1704 def SetValue(*args
, **kwargs
):
1705 """SetValue(bool value)"""
1706 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1708 def GetValue(*args
, **kwargs
):
1709 """GetValue() -> bool"""
1710 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1712 def SetLabel(*args
, **kwargs
):
1713 """SetLabel(wxString label)"""
1714 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1717 class ToggleButtonPtr(ToggleButton
):
1718 def __init__(self
, this
):
1720 if not hasattr(self
,"thisown"): self
.thisown
= 0
1721 self
.__class
__ = ToggleButton
1722 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1724 def PreToggleButton(*args
, **kwargs
):
1725 """PreToggleButton() -> ToggleButton"""
1726 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1730 #---------------------------------------------------------------------------
1732 class BookCtrl(core
.Control
):
1734 def __init__(self
): raise RuntimeError, "No constructor defined"
1736 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1737 def GetPageCount(*args
, **kwargs
):
1738 """GetPageCount() -> size_t"""
1739 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1741 def GetPage(*args
, **kwargs
):
1742 """GetPage(size_t n) -> Window"""
1743 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1745 def GetSelection(*args
, **kwargs
):
1746 """GetSelection() -> int"""
1747 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1749 def SetPageText(*args
, **kwargs
):
1750 """SetPageText(size_t n, wxString strText) -> bool"""
1751 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1753 def GetPageText(*args
, **kwargs
):
1754 """GetPageText(size_t n) -> wxString"""
1755 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1757 def SetImageList(*args
, **kwargs
):
1758 """SetImageList(wxImageList imageList)"""
1759 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1761 def AssignImageList(*args
, **kwargs
):
1762 """AssignImageList(wxImageList imageList)"""
1763 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1767 def GetImageList(*args
, **kwargs
):
1768 """GetImageList() -> wxImageList"""
1769 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1771 def GetPageImage(*args
, **kwargs
):
1772 """GetPageImage(size_t n) -> int"""
1773 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1775 def SetPageImage(*args
, **kwargs
):
1776 """SetPageImage(size_t n, int imageId) -> bool"""
1777 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1779 def SetPageSize(*args
, **kwargs
):
1780 """SetPageSize(Size size)"""
1781 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1783 def CalcSizeFromPage(*args
, **kwargs
):
1784 """CalcSizeFromPage(Size sizePage) -> Size"""
1785 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1787 def DeletePage(*args
, **kwargs
):
1788 """DeletePage(size_t n) -> bool"""
1789 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1791 def RemovePage(*args
, **kwargs
):
1792 """RemovePage(size_t n) -> bool"""
1793 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1795 def DeleteAllPages(*args
, **kwargs
):
1796 """DeleteAllPages() -> bool"""
1797 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1799 def AddPage(*args
, **kwargs
):
1800 """AddPage(Window page, wxString text, bool select=False, int imageId=-1) -> bool"""
1801 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1803 def InsertPage(*args
, **kwargs
):
1804 """InsertPage(size_t n, Window page, wxString text, bool select=False,
1805 int imageId=-1) -> bool"""
1806 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1808 def SetSelection(*args
, **kwargs
):
1809 """SetSelection(size_t n) -> int"""
1810 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1812 def AdvanceSelection(*args
, **kwargs
):
1813 """AdvanceSelection(bool forward=True)"""
1814 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1817 class BookCtrlPtr(BookCtrl
):
1818 def __init__(self
, this
):
1820 if not hasattr(self
,"thisown"): self
.thisown
= 0
1821 self
.__class
__ = BookCtrl
1822 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1824 class BookCtrlEvent(core
.NotifyEvent
):
1827 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1828 def __init__(self
, *args
, **kwargs
):
1829 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1830 int nOldSel=-1) -> BookCtrlEvent"""
1831 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1832 self
.this
= newobj
.this
1835 def GetSelection(*args
, **kwargs
):
1836 """GetSelection() -> int"""
1837 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1839 def SetSelection(*args
, **kwargs
):
1840 """SetSelection(int nSel)"""
1841 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
1843 def GetOldSelection(*args
, **kwargs
):
1844 """GetOldSelection() -> int"""
1845 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
1847 def SetOldSelection(*args
, **kwargs
):
1848 """SetOldSelection(int nOldSel)"""
1849 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
1852 class BookCtrlEventPtr(BookCtrlEvent
):
1853 def __init__(self
, this
):
1855 if not hasattr(self
,"thisown"): self
.thisown
= 0
1856 self
.__class
__ = BookCtrlEvent
1857 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
1859 #---------------------------------------------------------------------------
1861 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
1862 NB_TOP
= _controls
.NB_TOP
1863 NB_LEFT
= _controls
.NB_LEFT
1864 NB_RIGHT
= _controls
.NB_RIGHT
1865 NB_BOTTOM
= _controls
.NB_BOTTOM
1866 NB_MULTILINE
= _controls
.NB_MULTILINE
1867 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
1868 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
1869 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
1870 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
1871 class Notebook(BookCtrl
):
1874 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1875 def __init__(self
, *args
, **kwargs
):
1876 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1877 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> Notebook"""
1878 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
1879 self
.this
= newobj
.this
1882 self
._setOORInfo
(self
)
1884 def Create(*args
, **kwargs
):
1885 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1886 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> bool"""
1887 return _controls
.Notebook_Create(*args
, **kwargs
)
1889 def GetRowCount(*args
, **kwargs
):
1890 """GetRowCount() -> int"""
1891 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
1893 def SetPadding(*args
, **kwargs
):
1894 """SetPadding(Size padding)"""
1895 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
1897 def SetTabSize(*args
, **kwargs
):
1898 """SetTabSize(Size sz)"""
1899 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
1901 def HitTest(*args
, **kwargs
):
1902 """HitTest(Point pt) -> (tab, where)
1904 Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags."""
1905 return _controls
.Notebook_HitTest(*args
, **kwargs
)
1907 def CalcSizeFromPage(*args
, **kwargs
):
1908 """CalcSizeFromPage(Size sizePage) -> Size"""
1909 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
1912 class NotebookPtr(Notebook
):
1913 def __init__(self
, this
):
1915 if not hasattr(self
,"thisown"): self
.thisown
= 0
1916 self
.__class
__ = Notebook
1917 _controls
.Notebook_swigregister(NotebookPtr
)
1919 def PreNotebook(*args
, **kwargs
):
1920 """PreNotebook() -> Notebook"""
1921 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
1925 class NotebookEvent(BookCtrlEvent
):
1928 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1929 def __init__(self
, *args
, **kwargs
):
1930 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1931 int nOldSel=-1) -> NotebookEvent"""
1932 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
1933 self
.this
= newobj
.this
1937 class NotebookEventPtr(NotebookEvent
):
1938 def __init__(self
, this
):
1940 if not hasattr(self
,"thisown"): self
.thisown
= 0
1941 self
.__class
__ = NotebookEvent
1942 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
1944 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
1945 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
1947 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
1948 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
1950 #----------------------------------------------------------------------------
1952 class NotebookPage(wx
.Panel
):
1954 There is an old (and apparently unsolvable) bug when placing a
1955 window with a nonstandard background colour in a wxNotebook on
1956 wxGTK, as the notbooks's background colour would always be used
1957 when the window is refreshed. The solution is to place a panel in
1958 the notbook and the coloured window on the panel, sized to cover
1959 the panel. This simple class does that for you, just put an
1960 instance of this in the notebook and make your regular window a
1961 child of this one and it will handle the resize for you.
1963 def __init__(self
, parent
, id=-1,
1964 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
1965 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
1966 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
1968 EVT_SIZE(self
, self
.OnSize
)
1970 def OnSize(self
, evt
):
1971 if self
.child
is None:
1972 children
= self
.GetChildren()
1974 self
.child
= children
[0]
1976 self
.child
.SetPosition((0,0))
1977 self
.child
.SetSize(self
.GetSize())
1980 #---------------------------------------------------------------------------
1982 LB_DEFAULT
= _controls
.LB_DEFAULT
1983 LB_TOP
= _controls
.LB_TOP
1984 LB_BOTTOM
= _controls
.LB_BOTTOM
1985 LB_LEFT
= _controls
.LB_LEFT
1986 LB_RIGHT
= _controls
.LB_RIGHT
1987 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
1988 class Listbook(BookCtrl
):
1991 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1992 def __init__(self
, *args
, **kwargs
):
1993 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1994 long style=0, wxString name=wxPyEmptyString) -> Listbook"""
1995 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
1996 self
.this
= newobj
.this
1999 self
._setOORInfo
(self
)
2001 def Create(*args
, **kwargs
):
2002 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2003 long style=0, wxString name=wxPyEmptyString) -> bool"""
2004 return _controls
.Listbook_Create(*args
, **kwargs
)
2006 def IsVertical(*args
, **kwargs
):
2007 """IsVertical() -> bool"""
2008 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2011 class ListbookPtr(Listbook
):
2012 def __init__(self
, this
):
2014 if not hasattr(self
,"thisown"): self
.thisown
= 0
2015 self
.__class
__ = Listbook
2016 _controls
.Listbook_swigregister(ListbookPtr
)
2018 def PreListbook(*args
, **kwargs
):
2019 """PreListbook() -> Listbook"""
2020 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2024 class ListbookEvent(BookCtrlEvent
):
2027 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2028 def __init__(self
, *args
, **kwargs
):
2029 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2030 int nOldSel=-1) -> ListbookEvent"""
2031 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2032 self
.this
= newobj
.this
2036 class ListbookEventPtr(ListbookEvent
):
2037 def __init__(self
, this
):
2039 if not hasattr(self
,"thisown"): self
.thisown
= 0
2040 self
.__class
__ = ListbookEvent
2041 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2043 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2044 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2045 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2046 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2048 #---------------------------------------------------------------------------
2050 class BookCtrlSizer(core
.Sizer
):
2053 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2054 def __init__(self
, *args
, **kwargs
):
2055 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2056 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2057 self
.this
= newobj
.this
2060 self
._setOORInfo
(self
)
2062 def RecalcSizes(*args
, **kwargs
):
2064 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2066 def CalcMin(*args
, **kwargs
):
2067 """CalcMin() -> Size"""
2068 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2070 def GetControl(*args
, **kwargs
):
2071 """GetControl() -> BookCtrl"""
2072 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2075 class BookCtrlSizerPtr(BookCtrlSizer
):
2076 def __init__(self
, this
):
2078 if not hasattr(self
,"thisown"): self
.thisown
= 0
2079 self
.__class
__ = BookCtrlSizer
2080 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2082 class NotebookSizer(core
.Sizer
):
2085 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2086 def __init__(self
, *args
, **kwargs
):
2087 """__init__(Notebook nb) -> NotebookSizer"""
2088 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2089 self
.this
= newobj
.this
2092 self
._setOORInfo
(self
)
2094 def RecalcSizes(*args
, **kwargs
):
2096 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2098 def CalcMin(*args
, **kwargs
):
2099 """CalcMin() -> Size"""
2100 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2102 def GetNotebook(*args
, **kwargs
):
2103 """GetNotebook() -> Notebook"""
2104 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2107 class NotebookSizerPtr(NotebookSizer
):
2108 def __init__(self
, this
):
2110 if not hasattr(self
,"thisown"): self
.thisown
= 0
2111 self
.__class
__ = NotebookSizer
2112 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2114 #---------------------------------------------------------------------------
2116 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2117 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2118 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2119 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2120 TB_VERTICAL
= _controls
.TB_VERTICAL
2121 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2122 TB_FLAT
= _controls
.TB_FLAT
2123 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2124 TB_NOICONS
= _controls
.TB_NOICONS
2125 TB_TEXT
= _controls
.TB_TEXT
2126 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2127 TB_NOALIGN
= _controls
.TB_NOALIGN
2128 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2129 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2130 class ToolBarToolBase(core
.Object
):
2132 def __init__(self
): raise RuntimeError, "No constructor defined"
2134 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2135 def GetId(*args
, **kwargs
):
2136 """GetId() -> int"""
2137 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2139 def GetControl(*args
, **kwargs
):
2140 """GetControl() -> Control"""
2141 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2143 def GetToolBar(*args
, **kwargs
):
2144 """GetToolBar() -> ToolBarBase"""
2145 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2147 def IsButton(*args
, **kwargs
):
2148 """IsButton() -> int"""
2149 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2151 def IsControl(*args
, **kwargs
):
2152 """IsControl() -> int"""
2153 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2155 def IsSeparator(*args
, **kwargs
):
2156 """IsSeparator() -> int"""
2157 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2159 def GetStyle(*args
, **kwargs
):
2160 """GetStyle() -> int"""
2161 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2163 def GetKind(*args
, **kwargs
):
2164 """GetKind() -> wxItemKind"""
2165 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2167 def IsEnabled(*args
, **kwargs
):
2168 """IsEnabled() -> bool"""
2169 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2171 def IsToggled(*args
, **kwargs
):
2172 """IsToggled() -> bool"""
2173 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2175 def CanBeToggled(*args
, **kwargs
):
2176 """CanBeToggled() -> bool"""
2177 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2179 def GetNormalBitmap(*args
, **kwargs
):
2180 """GetNormalBitmap() -> wxBitmap"""
2181 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2183 def GetDisabledBitmap(*args
, **kwargs
):
2184 """GetDisabledBitmap() -> wxBitmap"""
2185 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2187 def GetBitmap(*args
, **kwargs
):
2188 """GetBitmap() -> wxBitmap"""
2189 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2191 def GetLabel(*args
, **kwargs
):
2192 """GetLabel() -> wxString"""
2193 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2195 def GetShortHelp(*args
, **kwargs
):
2196 """GetShortHelp() -> wxString"""
2197 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2199 def GetLongHelp(*args
, **kwargs
):
2200 """GetLongHelp() -> wxString"""
2201 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2203 def Enable(*args
, **kwargs
):
2204 """Enable(bool enable) -> bool"""
2205 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2207 def Toggle(*args
, **kwargs
):
2209 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2211 def SetToggle(*args
, **kwargs
):
2212 """SetToggle(bool toggle) -> bool"""
2213 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2215 def SetShortHelp(*args
, **kwargs
):
2216 """SetShortHelp(wxString help) -> bool"""
2217 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2219 def SetLongHelp(*args
, **kwargs
):
2220 """SetLongHelp(wxString help) -> bool"""
2221 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2223 def SetNormalBitmap(*args
, **kwargs
):
2224 """SetNormalBitmap(wxBitmap bmp)"""
2225 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2227 def SetDisabledBitmap(*args
, **kwargs
):
2228 """SetDisabledBitmap(wxBitmap bmp)"""
2229 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2231 def SetLabel(*args
, **kwargs
):
2232 """SetLabel(wxString label)"""
2233 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2235 def Detach(*args
, **kwargs
):
2237 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2239 def Attach(*args
, **kwargs
):
2240 """Attach(ToolBarBase tbar)"""
2241 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2243 def GetClientData(*args
, **kwargs
):
2244 """GetClientData() -> PyObject"""
2245 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2247 def SetClientData(*args
, **kwargs
):
2248 """SetClientData(PyObject clientData)"""
2249 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2251 GetBitmap1
= GetNormalBitmap
2252 GetBitmap2
= GetDisabledBitmap
2253 SetBitmap1
= SetNormalBitmap
2254 SetBitmap2
= SetDisabledBitmap
2257 class ToolBarToolBasePtr(ToolBarToolBase
):
2258 def __init__(self
, this
):
2260 if not hasattr(self
,"thisown"): self
.thisown
= 0
2261 self
.__class
__ = ToolBarToolBase
2262 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2264 class ToolBarBase(core
.Control
):
2266 def __init__(self
): raise RuntimeError, "No constructor defined"
2268 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2269 def DoAddTool(*args
, **kwargs
):
2270 """DoAddTool(int id, wxString label, wxBitmap bitmap, wxBitmap bmpDisabled=wxNullBitmap,
2271 wxItemKind kind=ITEM_NORMAL,
2272 wxString shortHelp=wxPyEmptyString,
2273 wxString longHelp=wxPyEmptyString, PyObject clientData=None) -> ToolBarToolBase"""
2274 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2276 def DoInsertTool(*args
, **kwargs
):
2277 """DoInsertTool(size_t pos, int id, wxString label, wxBitmap bitmap,
2278 wxBitmap bmpDisabled=wxNullBitmap, wxItemKind kind=ITEM_NORMAL,
2279 wxString shortHelp=wxPyEmptyString,
2280 wxString longHelp=wxPyEmptyString,
2281 PyObject clientData=None) -> ToolBarToolBase"""
2282 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2284 # These match the original Add methods for this class, kept for
2285 # backwards compatibility with versions < 2.3.3.
2288 def AddTool(self
, id, bitmap
,
2289 pushedBitmap
= wx
.NullBitmap
,
2292 shortHelpString
= '',
2293 longHelpString
= '') :
2294 '''Old style method to add a tool to the toolbar.'''
2295 kind
= wx
.ITEM_NORMAL
2296 if isToggle
: kind
= wx
.ITEM_CHECK
2297 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2298 shortHelpString
, longHelpString
, clientData
)
2300 def AddSimpleTool(self
, id, bitmap
,
2301 shortHelpString
= '',
2302 longHelpString
= '',
2304 '''Old style method to add a tool to the toolbar.'''
2305 kind
= wx
.ITEM_NORMAL
2306 if isToggle
: kind
= wx
.ITEM_CHECK
2307 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2308 shortHelpString
, longHelpString
, None)
2310 def InsertTool(self
, pos
, id, bitmap
,
2311 pushedBitmap
= wx
.NullBitmap
,
2314 shortHelpString
= '',
2315 longHelpString
= ''):
2316 '''Old style method to insert a tool in the toolbar.'''
2317 kind
= wx
.ITEM_NORMAL
2318 if isToggle
: kind
= wx
.ITEM_CHECK
2319 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2320 shortHelpString
, longHelpString
, clientData
)
2322 def InsertSimpleTool(self
, pos
, id, bitmap
,
2323 shortHelpString
= '',
2324 longHelpString
= '',
2326 '''Old style method to insert a tool in the toolbar.'''
2327 kind
= wx
.ITEM_NORMAL
2328 if isToggle
: kind
= wx
.ITEM_CHECK
2329 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2330 shortHelpString
, longHelpString
, None)
2333 # The following are the new toolbar Add methods starting with
2334 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2335 # able to keep backwards compatibility with using the above
2336 # methods. Eventually these should migrate to be the methods used
2337 # primarily and lose the 'Label' in the name...
2339 def AddLabelTool(self
, id, label
, bitmap
,
2340 bmpDisabled
= wx
.NullBitmap
,
2341 kind
= wx
.ITEM_NORMAL
,
2342 shortHelp
= '', longHelp
= '',
2345 The full AddTool() function.
2347 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2348 is created and used as the disabled image.
2350 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2351 shortHelp
, longHelp
, clientData
)
2354 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2355 bmpDisabled
= wx
.NullBitmap
,
2356 kind
= wx
.ITEM_NORMAL
,
2357 shortHelp
= '', longHelp
= '',
2360 Insert the new tool at the given position, if pos == GetToolsCount(), it
2361 is equivalent to AddTool()
2363 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2364 shortHelp
, longHelp
, clientData
)
2366 def AddCheckLabelTool(self
, id, label
, bitmap
,
2367 bmpDisabled
= wx
.NullBitmap
,
2368 shortHelp
= '', longHelp
= '',
2370 '''Add a check tool, i.e. a tool which can be toggled'''
2371 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2372 shortHelp
, longHelp
, clientData
)
2374 def AddRadioLabelTool(self
, id, label
, bitmap
,
2375 bmpDisabled
= wx
.NullBitmap
,
2376 shortHelp
= '', longHelp
= '',
2379 Add a radio tool, i.e. a tool which can be toggled and releases any
2380 other toggled radio tools in the same group when it happens
2382 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2383 shortHelp
, longHelp
, clientData
)
2386 # For consistency with the backwards compatible methods above, here are
2387 # some non-'Label' versions of the Check and Radio methods
2388 def AddCheckTool(self
, id, bitmap
,
2389 bmpDisabled
= wx
.NullBitmap
,
2390 shortHelp
= '', longHelp
= '',
2392 '''Add a check tool, i.e. a tool which can be toggled'''
2393 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2394 shortHelp
, longHelp
, clientData
)
2396 def AddRadioTool(self
, id, bitmap
,
2397 bmpDisabled
= wx
.NullBitmap
,
2398 shortHelp
= '', longHelp
= '',
2401 Add a radio tool, i.e. a tool which can be toggled and releases any
2402 other toggled radio tools in the same group when it happens
2404 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2405 shortHelp
, longHelp
, clientData
)
2407 def AddControl(*args
, **kwargs
):
2408 """AddControl(Control control) -> ToolBarToolBase"""
2409 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2411 def InsertControl(*args
, **kwargs
):
2412 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2413 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2415 def FindControl(*args
, **kwargs
):
2416 """FindControl(int id) -> Control"""
2417 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2419 def AddSeparator(*args
, **kwargs
):
2420 """AddSeparator() -> ToolBarToolBase"""
2421 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2423 def InsertSeparator(*args
, **kwargs
):
2424 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2425 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2427 def RemoveTool(*args
, **kwargs
):
2428 """RemoveTool(int id) -> ToolBarToolBase"""
2429 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2431 def DeleteToolByPos(*args
, **kwargs
):
2432 """DeleteToolByPos(size_t pos) -> bool"""
2433 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2435 def DeleteTool(*args
, **kwargs
):
2436 """DeleteTool(int id) -> bool"""
2437 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2439 def ClearTools(*args
, **kwargs
):
2441 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2443 def Realize(*args
, **kwargs
):
2444 """Realize() -> bool"""
2445 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2447 def EnableTool(*args
, **kwargs
):
2448 """EnableTool(int id, bool enable)"""
2449 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2451 def ToggleTool(*args
, **kwargs
):
2452 """ToggleTool(int id, bool toggle)"""
2453 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2455 def SetToggle(*args
, **kwargs
):
2456 """SetToggle(int id, bool toggle)"""
2457 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2459 def GetToolClientData(*args
, **kwargs
):
2460 """GetToolClientData(int id) -> PyObject"""
2461 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2463 def SetToolClientData(*args
, **kwargs
):
2464 """SetToolClientData(int id, PyObject clientData)"""
2465 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2467 def GetToolPos(*args
, **kwargs
):
2468 """GetToolPos(int id) -> int"""
2469 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2471 def GetToolState(*args
, **kwargs
):
2472 """GetToolState(int id) -> bool"""
2473 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2475 def GetToolEnabled(*args
, **kwargs
):
2476 """GetToolEnabled(int id) -> bool"""
2477 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2479 def SetToolShortHelp(*args
, **kwargs
):
2480 """SetToolShortHelp(int id, wxString helpString)"""
2481 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2483 def GetToolShortHelp(*args
, **kwargs
):
2484 """GetToolShortHelp(int id) -> wxString"""
2485 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2487 def SetToolLongHelp(*args
, **kwargs
):
2488 """SetToolLongHelp(int id, wxString helpString)"""
2489 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2491 def GetToolLongHelp(*args
, **kwargs
):
2492 """GetToolLongHelp(int id) -> wxString"""
2493 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2495 def SetMarginsXY(*args
, **kwargs
):
2496 """SetMarginsXY(int x, int y)"""
2497 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2499 def SetMargins(*args
, **kwargs
):
2500 """SetMargins(Size size)"""
2501 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2503 def SetToolPacking(*args
, **kwargs
):
2504 """SetToolPacking(int packing)"""
2505 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2507 def SetToolSeparation(*args
, **kwargs
):
2508 """SetToolSeparation(int separation)"""
2509 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2511 def GetToolMargins(*args
, **kwargs
):
2512 """GetToolMargins() -> Size"""
2513 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2515 def GetMargins(*args
, **kwargs
):
2516 """GetMargins() -> Size"""
2517 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2519 def GetToolPacking(*args
, **kwargs
):
2520 """GetToolPacking() -> int"""
2521 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2523 def GetToolSeparation(*args
, **kwargs
):
2524 """GetToolSeparation() -> int"""
2525 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2527 def SetRows(*args
, **kwargs
):
2528 """SetRows(int nRows)"""
2529 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2531 def SetMaxRowsCols(*args
, **kwargs
):
2532 """SetMaxRowsCols(int rows, int cols)"""
2533 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2535 def GetMaxRows(*args
, **kwargs
):
2536 """GetMaxRows() -> int"""
2537 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2539 def GetMaxCols(*args
, **kwargs
):
2540 """GetMaxCols() -> int"""
2541 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2543 def SetToolBitmapSize(*args
, **kwargs
):
2544 """SetToolBitmapSize(Size size)"""
2545 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2547 def GetToolBitmapSize(*args
, **kwargs
):
2548 """GetToolBitmapSize() -> Size"""
2549 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2551 def GetToolSize(*args
, **kwargs
):
2552 """GetToolSize() -> Size"""
2553 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2555 def FindToolForPosition(*args
, **kwargs
):
2556 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2557 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2559 def IsVertical(*args
, **kwargs
):
2560 """IsVertical() -> bool"""
2561 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2564 class ToolBarBasePtr(ToolBarBase
):
2565 def __init__(self
, this
):
2567 if not hasattr(self
,"thisown"): self
.thisown
= 0
2568 self
.__class
__ = ToolBarBase
2569 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2571 class ToolBar(ToolBarBase
):
2574 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2575 def __init__(self
, *args
, **kwargs
):
2576 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2577 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2578 wxString name=wxPyToolBarNameStr) -> ToolBar"""
2579 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2580 self
.this
= newobj
.this
2583 self
._setOORInfo
(self
)
2585 def Create(*args
, **kwargs
):
2586 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2587 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2588 wxString name=wxPyToolBarNameStr) -> bool"""
2589 return _controls
.ToolBar_Create(*args
, **kwargs
)
2591 def FindToolForPosition(*args
, **kwargs
):
2592 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2593 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2596 class ToolBarPtr(ToolBar
):
2597 def __init__(self
, this
):
2599 if not hasattr(self
,"thisown"): self
.thisown
= 0
2600 self
.__class
__ = ToolBar
2601 _controls
.ToolBar_swigregister(ToolBarPtr
)
2603 def PreToolBar(*args
, **kwargs
):
2604 """PreToolBar() -> ToolBar"""
2605 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2609 #---------------------------------------------------------------------------
2611 LC_VRULES
= _controls
.LC_VRULES
2612 LC_HRULES
= _controls
.LC_HRULES
2613 LC_ICON
= _controls
.LC_ICON
2614 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2615 LC_LIST
= _controls
.LC_LIST
2616 LC_REPORT
= _controls
.LC_REPORT
2617 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2618 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2619 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2620 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2621 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2622 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2623 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2624 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2625 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2626 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2627 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2628 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2629 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2630 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2631 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2632 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2633 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2634 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2635 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2636 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2637 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2638 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2639 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2640 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2641 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2642 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2643 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2644 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2645 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2646 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2647 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2648 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2649 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2650 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2651 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2652 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2653 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2654 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2655 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2656 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2657 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2658 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2659 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2660 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2661 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2662 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2663 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2664 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2665 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2666 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2667 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2668 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2669 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2670 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2671 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2672 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2673 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2674 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2675 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2676 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2677 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2678 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2679 #---------------------------------------------------------------------------
2681 class ListItemAttr(object):
2684 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2685 def __init__(self
, *args
, **kwargs
):
2686 """__init__(wxColour colText=wxNullColour, wxColour colBack=wxNullColour,
2687 wxFont font=wxNullFont) -> ListItemAttr"""
2688 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2689 self
.this
= newobj
.this
2692 def SetTextColour(*args
, **kwargs
):
2693 """SetTextColour(wxColour colText)"""
2694 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2696 def SetBackgroundColour(*args
, **kwargs
):
2697 """SetBackgroundColour(wxColour colBack)"""
2698 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2700 def SetFont(*args
, **kwargs
):
2701 """SetFont(wxFont font)"""
2702 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2704 def HasTextColour(*args
, **kwargs
):
2705 """HasTextColour() -> bool"""
2706 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2708 def HasBackgroundColour(*args
, **kwargs
):
2709 """HasBackgroundColour() -> bool"""
2710 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2712 def HasFont(*args
, **kwargs
):
2713 """HasFont() -> bool"""
2714 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2716 def GetTextColour(*args
, **kwargs
):
2717 """GetTextColour() -> wxColour"""
2718 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2720 def GetBackgroundColour(*args
, **kwargs
):
2721 """GetBackgroundColour() -> wxColour"""
2722 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2724 def GetFont(*args
, **kwargs
):
2725 """GetFont() -> wxFont"""
2726 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2728 def Destroy(*args
, **kwargs
):
2730 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2733 class ListItemAttrPtr(ListItemAttr
):
2734 def __init__(self
, this
):
2736 if not hasattr(self
,"thisown"): self
.thisown
= 0
2737 self
.__class
__ = ListItemAttr
2738 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2740 #---------------------------------------------------------------------------
2742 class ListItem(core
.Object
):
2745 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2746 def __init__(self
, *args
, **kwargs
):
2747 """__init__() -> ListItem"""
2748 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2749 self
.this
= newobj
.this
2752 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2755 if self
.thisown
: destroy(self
)
2758 def Clear(*args
, **kwargs
):
2760 return _controls
.ListItem_Clear(*args
, **kwargs
)
2762 def ClearAttributes(*args
, **kwargs
):
2763 """ClearAttributes()"""
2764 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2766 def SetMask(*args
, **kwargs
):
2767 """SetMask(long mask)"""
2768 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2770 def SetId(*args
, **kwargs
):
2771 """SetId(long id)"""
2772 return _controls
.ListItem_SetId(*args
, **kwargs
)
2774 def SetColumn(*args
, **kwargs
):
2775 """SetColumn(int col)"""
2776 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2778 def SetState(*args
, **kwargs
):
2779 """SetState(long state)"""
2780 return _controls
.ListItem_SetState(*args
, **kwargs
)
2782 def SetStateMask(*args
, **kwargs
):
2783 """SetStateMask(long stateMask)"""
2784 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2786 def SetText(*args
, **kwargs
):
2787 """SetText(wxString text)"""
2788 return _controls
.ListItem_SetText(*args
, **kwargs
)
2790 def SetImage(*args
, **kwargs
):
2791 """SetImage(int image)"""
2792 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2794 def SetData(*args
, **kwargs
):
2795 """SetData(long data)"""
2796 return _controls
.ListItem_SetData(*args
, **kwargs
)
2798 def SetWidth(*args
, **kwargs
):
2799 """SetWidth(int width)"""
2800 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2802 def SetAlign(*args
, **kwargs
):
2803 """SetAlign(wxListColumnFormat align)"""
2804 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2806 def SetTextColour(*args
, **kwargs
):
2807 """SetTextColour(wxColour colText)"""
2808 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2810 def SetBackgroundColour(*args
, **kwargs
):
2811 """SetBackgroundColour(wxColour colBack)"""
2812 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
2814 def SetFont(*args
, **kwargs
):
2815 """SetFont(wxFont font)"""
2816 return _controls
.ListItem_SetFont(*args
, **kwargs
)
2818 def GetMask(*args
, **kwargs
):
2819 """GetMask() -> long"""
2820 return _controls
.ListItem_GetMask(*args
, **kwargs
)
2822 def GetId(*args
, **kwargs
):
2823 """GetId() -> long"""
2824 return _controls
.ListItem_GetId(*args
, **kwargs
)
2826 def GetColumn(*args
, **kwargs
):
2827 """GetColumn() -> int"""
2828 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
2830 def GetState(*args
, **kwargs
):
2831 """GetState() -> long"""
2832 return _controls
.ListItem_GetState(*args
, **kwargs
)
2834 def GetText(*args
, **kwargs
):
2835 """GetText() -> wxString"""
2836 return _controls
.ListItem_GetText(*args
, **kwargs
)
2838 def GetImage(*args
, **kwargs
):
2839 """GetImage() -> int"""
2840 return _controls
.ListItem_GetImage(*args
, **kwargs
)
2842 def GetData(*args
, **kwargs
):
2843 """GetData() -> long"""
2844 return _controls
.ListItem_GetData(*args
, **kwargs
)
2846 def GetWidth(*args
, **kwargs
):
2847 """GetWidth() -> int"""
2848 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
2850 def GetAlign(*args
, **kwargs
):
2851 """GetAlign() -> wxListColumnFormat"""
2852 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
2854 def GetAttributes(*args
, **kwargs
):
2855 """GetAttributes() -> ListItemAttr"""
2856 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
2858 def HasAttributes(*args
, **kwargs
):
2859 """HasAttributes() -> bool"""
2860 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
2862 def GetTextColour(*args
, **kwargs
):
2863 """GetTextColour() -> wxColour"""
2864 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
2866 def GetBackgroundColour(*args
, **kwargs
):
2867 """GetBackgroundColour() -> wxColour"""
2868 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
2870 def GetFont(*args
, **kwargs
):
2871 """GetFont() -> wxFont"""
2872 return _controls
.ListItem_GetFont(*args
, **kwargs
)
2874 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
2875 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
2876 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
2877 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
2878 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
2879 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
2880 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
2881 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
2882 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
2883 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
2885 class ListItemPtr(ListItem
):
2886 def __init__(self
, this
):
2888 if not hasattr(self
,"thisown"): self
.thisown
= 0
2889 self
.__class
__ = ListItem
2890 _controls
.ListItem_swigregister(ListItemPtr
)
2892 #---------------------------------------------------------------------------
2894 class ListEvent(core
.NotifyEvent
):
2897 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2898 def __init__(self
, *args
, **kwargs
):
2899 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
2900 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
2901 self
.this
= newobj
.this
2904 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
2905 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
2906 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
2907 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
2908 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
2909 m_item
= property(_controls
.ListEvent_m_item_get
)
2910 def GetKeyCode(*args
, **kwargs
):
2911 """GetKeyCode() -> int"""
2912 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
2914 GetCode
= GetKeyCode
2915 def GetIndex(*args
, **kwargs
):
2916 """GetIndex() -> long"""
2917 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
2919 def GetColumn(*args
, **kwargs
):
2920 """GetColumn() -> int"""
2921 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
2923 def GetPoint(*args
, **kwargs
):
2924 """GetPoint() -> Point"""
2925 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
2927 GetPostiion
= GetPoint
2928 def GetLabel(*args
, **kwargs
):
2929 """GetLabel() -> wxString"""
2930 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
2932 def GetText(*args
, **kwargs
):
2933 """GetText() -> wxString"""
2934 return _controls
.ListEvent_GetText(*args
, **kwargs
)
2936 def GetImage(*args
, **kwargs
):
2937 """GetImage() -> int"""
2938 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
2940 def GetData(*args
, **kwargs
):
2941 """GetData() -> long"""
2942 return _controls
.ListEvent_GetData(*args
, **kwargs
)
2944 def GetMask(*args
, **kwargs
):
2945 """GetMask() -> long"""
2946 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
2948 def GetItem(*args
, **kwargs
):
2949 """GetItem() -> ListItem"""
2950 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
2952 def GetCacheFrom(*args
, **kwargs
):
2953 """GetCacheFrom() -> long"""
2954 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
2956 def GetCacheTo(*args
, **kwargs
):
2957 """GetCacheTo() -> long"""
2958 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
2960 def IsEditCancelled(*args
, **kwargs
):
2961 """IsEditCancelled() -> bool"""
2962 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
2964 def SetEditCanceled(*args
, **kwargs
):
2965 """SetEditCanceled(bool editCancelled)"""
2966 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
2969 class ListEventPtr(ListEvent
):
2970 def __init__(self
, this
):
2972 if not hasattr(self
,"thisown"): self
.thisown
= 0
2973 self
.__class
__ = ListEvent
2974 _controls
.ListEvent_swigregister(ListEventPtr
)
2976 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
2977 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
2978 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
2979 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
2980 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
2981 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
2982 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
2983 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
2984 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
2985 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
2986 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
2987 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
2988 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
2989 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
2990 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
2991 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
2992 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
2993 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
2994 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
2995 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
2996 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
2997 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
2998 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
2999 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3000 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3001 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3002 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3003 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3004 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3005 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3006 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3007 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3008 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3009 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3010 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3011 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3012 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3013 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3014 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3015 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3016 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3017 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3018 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3019 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3021 #---------------------------------------------------------------------------
3023 class ListCtrl(core
.Control
):
3026 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3027 def __init__(self
, *args
, **kwargs
):
3028 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3029 Size size=DefaultSize, long style=LC_ICON,
3030 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListCtrl"""
3031 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3032 self
.this
= newobj
.this
3035 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3037 def Create(*args
, **kwargs
):
3038 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3039 Size size=DefaultSize, long style=LC_ICON,
3040 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool"""
3041 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3043 def _setCallbackInfo(*args
, **kwargs
):
3044 """_setCallbackInfo(PyObject self, PyObject _class)"""
3045 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3047 def SetForegroundColour(*args
, **kwargs
):
3048 """SetForegroundColour(wxColour col) -> bool"""
3049 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3051 def SetBackgroundColour(*args
, **kwargs
):
3052 """SetBackgroundColour(wxColour col) -> bool"""
3053 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3055 def GetColumn(*args
, **kwargs
):
3056 """GetColumn(int col) -> ListItem"""
3057 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3058 if val
is not None: val
.thisown
= 1
3061 def SetColumn(*args
, **kwargs
):
3062 """SetColumn(int col, ListItem item) -> bool"""
3063 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3065 def GetColumnWidth(*args
, **kwargs
):
3066 """GetColumnWidth(int col) -> int"""
3067 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3069 def SetColumnWidth(*args
, **kwargs
):
3070 """SetColumnWidth(int col, int width) -> bool"""
3071 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3073 def GetCountPerPage(*args
, **kwargs
):
3074 """GetCountPerPage() -> int"""
3075 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3077 def GetViewRect(*args
, **kwargs
):
3078 """GetViewRect() -> Rect"""
3079 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3081 def GetItem(*args
, **kwargs
):
3082 """GetItem(long itemId, int col=0) -> ListItem"""
3083 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3084 if val
is not None: val
.thisown
= 1
3087 def SetItem(*args
, **kwargs
):
3088 """SetItem(ListItem info) -> bool"""
3089 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3091 def SetStringItem(*args
, **kwargs
):
3092 """SetStringItem(long index, int col, wxString label, int imageId=-1) -> long"""
3093 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3095 def GetItemState(*args
, **kwargs
):
3096 """GetItemState(long item, long stateMask) -> int"""
3097 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3099 def SetItemState(*args
, **kwargs
):
3100 """SetItemState(long item, long state, long stateMask) -> bool"""
3101 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3103 def SetItemImage(*args
, **kwargs
):
3104 """SetItemImage(long item, int image, int selImage) -> bool"""
3105 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3107 def GetItemText(*args
, **kwargs
):
3108 """GetItemText(long item) -> wxString"""
3109 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3111 def SetItemText(*args
, **kwargs
):
3112 """SetItemText(long item, wxString str)"""
3113 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3115 def GetItemData(*args
, **kwargs
):
3116 """GetItemData(long item) -> long"""
3117 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3119 def SetItemData(*args
, **kwargs
):
3120 """SetItemData(long item, long data) -> bool"""
3121 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3123 def GetItemPosition(*args
, **kwargs
):
3124 """GetItemPosition(long item) -> Point"""
3125 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3127 def GetItemRect(*args
, **kwargs
):
3128 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3129 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3131 def SetItemPosition(*args
, **kwargs
):
3132 """SetItemPosition(long item, Point pos) -> bool"""
3133 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3135 def GetItemCount(*args
, **kwargs
):
3136 """GetItemCount() -> int"""
3137 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3139 def GetColumnCount(*args
, **kwargs
):
3140 """GetColumnCount() -> int"""
3141 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3143 def GetItemSpacing(*args
, **kwargs
):
3144 """GetItemSpacing() -> Size"""
3145 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3147 def SetItemSpacing(*args
, **kwargs
):
3148 """SetItemSpacing(int spacing, bool isSmall=False)"""
3149 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3151 def GetSelectedItemCount(*args
, **kwargs
):
3152 """GetSelectedItemCount() -> int"""
3153 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3155 def GetTextColour(*args
, **kwargs
):
3156 """GetTextColour() -> wxColour"""
3157 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3159 def SetTextColour(*args
, **kwargs
):
3160 """SetTextColour(wxColour col)"""
3161 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3163 def GetTopItem(*args
, **kwargs
):
3164 """GetTopItem() -> long"""
3165 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3167 def SetSingleStyle(*args
, **kwargs
):
3168 """SetSingleStyle(long style, bool add=True)"""
3169 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3171 def SetWindowStyleFlag(*args
, **kwargs
):
3172 """SetWindowStyleFlag(long style)"""
3173 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3175 def GetNextItem(*args
, **kwargs
):
3176 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3177 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3179 def GetImageList(*args
, **kwargs
):
3180 """GetImageList(int which) -> wxImageList"""
3181 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3183 def SetImageList(*args
, **kwargs
):
3184 """SetImageList(wxImageList imageList, int which)"""
3185 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3187 def AssignImageList(*args
, **kwargs
):
3188 """AssignImageList(wxImageList imageList, int which)"""
3189 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3193 def IsVirtual(*args
, **kwargs
):
3194 """IsVirtual() -> bool"""
3195 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3197 def RefreshItem(*args
, **kwargs
):
3198 """RefreshItem(long item)"""
3199 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3201 def RefreshItems(*args
, **kwargs
):
3202 """RefreshItems(long itemFrom, long itemTo)"""
3203 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3205 def Arrange(*args
, **kwargs
):
3206 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3207 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3209 def DeleteItem(*args
, **kwargs
):
3210 """DeleteItem(long item) -> bool"""
3211 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3213 def DeleteAllItems(*args
, **kwargs
):
3214 """DeleteAllItems() -> bool"""
3215 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3217 def DeleteColumn(*args
, **kwargs
):
3218 """DeleteColumn(int col) -> bool"""
3219 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3221 def DeleteAllColumns(*args
, **kwargs
):
3222 """DeleteAllColumns() -> bool"""
3223 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3225 def ClearAll(*args
, **kwargs
):
3227 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3229 def EditLabel(*args
, **kwargs
):
3230 """EditLabel(long item)"""
3231 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3233 def EnsureVisible(*args
, **kwargs
):
3234 """EnsureVisible(long item) -> bool"""
3235 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3237 def FindItem(*args
, **kwargs
):
3238 """FindItem(long start, wxString str, bool partial=False) -> long"""
3239 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3241 def FindItemData(*args
, **kwargs
):
3242 """FindItemData(long start, long data) -> long"""
3243 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3245 def FindItemAtPos(*args
, **kwargs
):
3246 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3247 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3249 def HitTest(*args
, **kwargs
):
3250 """HitTest(Point point) -> (item, where)
3252 Determines which item (if any) is at the specified point,
3253 giving details in the second return value (see wxLIST_HITTEST_... flags.)"""
3254 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3256 def InsertItem(*args
, **kwargs
):
3257 """InsertItem(ListItem info) -> long"""
3258 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3260 def InsertStringItem(*args
, **kwargs
):
3261 """InsertStringItem(long index, wxString label) -> long"""
3262 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3264 def InsertImageItem(*args
, **kwargs
):
3265 """InsertImageItem(long index, int imageIndex) -> long"""
3266 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3268 def InsertImageStringItem(*args
, **kwargs
):
3269 """InsertImageStringItem(long index, wxString label, int imageIndex) -> long"""
3270 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3272 def InsertColumnInfo(*args
, **kwargs
):
3273 """InsertColumnInfo(long col, ListItem info) -> long"""
3274 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3276 def InsertColumn(*args
, **kwargs
):
3277 """InsertColumn(long col, wxString heading, int format=LIST_FORMAT_LEFT,
3278 int width=-1) -> long"""
3279 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3281 def SetItemCount(*args
, **kwargs
):
3282 """SetItemCount(long count)"""
3283 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3285 def ScrollList(*args
, **kwargs
):
3286 """ScrollList(int dx, int dy) -> bool"""
3287 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3289 def SetItemTextColour(*args
, **kwargs
):
3290 """SetItemTextColour(long item, wxColour col)"""
3291 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3293 def GetItemTextColour(*args
, **kwargs
):
3294 """GetItemTextColour(long item) -> wxColour"""
3295 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3297 def SetItemBackgroundColour(*args
, **kwargs
):
3298 """SetItemBackgroundColour(long item, wxColour col)"""
3299 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3301 def GetItemBackgroundColour(*args
, **kwargs
):
3302 """GetItemBackgroundColour(long item) -> wxColour"""
3303 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3307 def Select(self
, idx
, on
=1):
3308 '''[de]select an item'''
3309 if on
: state
= wx
.LIST_STATE_SELECTED
3311 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3313 def Focus(self
, idx
):
3314 '''Focus and show the given item'''
3315 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3316 self
.EnsureVisible(idx
)
3318 def GetFocusedItem(self
):
3319 '''get the currently focused item or -1 if none'''
3320 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3322 def GetFirstSelected(self
, *args
):
3323 '''return first selected item, or -1 when none'''
3324 return self
.GetNextSelected(-1)
3326 def GetNextSelected(self
, item
):
3327 '''return subsequent selected items, or -1 when no more'''
3328 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3330 def IsSelected(self
, idx
):
3331 '''return True if the item is selected'''
3332 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3334 def SetColumnImage(self
, col
, image
):
3335 item
= self
.GetColumn(col
)
3336 # preserve all other attributes too
3337 item
.SetMask( wx
.LIST_MASK_STATE |
3339 wx
.LIST_MASK_IMAGE |
3342 wx
.LIST_MASK_WIDTH |
3343 wx
.LIST_MASK_FORMAT
)
3344 item
.SetImage(image
)
3345 self
.SetColumn(col
, item
)
3347 def ClearColumnImage(self
, col
):
3348 self
.SetColumnImage(col
, -1)
3350 def Append(self
, entry
):
3351 '''Append an item to the list control. The entry parameter should be a
3352 sequence with an item for each column'''
3358 pos
= self
.GetItemCount()
3359 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3360 for i
in range(1, len(entry
)):
3361 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3364 def SortItems(*args
, **kwargs
):
3365 """SortItems(PyObject func) -> bool"""
3366 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3368 def GetMainWindow(*args
, **kwargs
):
3369 """GetMainWindow() -> Window"""
3370 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3373 class ListCtrlPtr(ListCtrl
):
3374 def __init__(self
, this
):
3376 if not hasattr(self
,"thisown"): self
.thisown
= 0
3377 self
.__class
__ = ListCtrl
3378 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3380 def PreListCtrl(*args
, **kwargs
):
3381 """PreListCtrl() -> ListCtrl"""
3382 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3386 #---------------------------------------------------------------------------
3388 class ListView(ListCtrl
):
3391 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3392 def __init__(self
, *args
, **kwargs
):
3393 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3394 Size size=DefaultSize, long style=LC_REPORT,
3395 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListView"""
3396 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3397 self
.this
= newobj
.this
3400 self
._setOORInfo
(self
)
3402 def Create(*args
, **kwargs
):
3403 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3404 Size size=DefaultSize, long style=LC_REPORT,
3405 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool"""
3406 return _controls
.ListView_Create(*args
, **kwargs
)
3408 def Select(*args
, **kwargs
):
3409 """Select(long n, bool on=True)"""
3410 return _controls
.ListView_Select(*args
, **kwargs
)
3412 def Focus(*args
, **kwargs
):
3413 """Focus(long index)"""
3414 return _controls
.ListView_Focus(*args
, **kwargs
)
3416 def GetFocusedItem(*args
, **kwargs
):
3417 """GetFocusedItem() -> long"""
3418 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3420 def GetNextSelected(*args
, **kwargs
):
3421 """GetNextSelected(long item) -> long"""
3422 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3424 def GetFirstSelected(*args
, **kwargs
):
3425 """GetFirstSelected() -> long"""
3426 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3428 def IsSelected(*args
, **kwargs
):
3429 """IsSelected(long index) -> bool"""
3430 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3432 def SetColumnImage(*args
, **kwargs
):
3433 """SetColumnImage(int col, int image)"""
3434 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3436 def ClearColumnImage(*args
, **kwargs
):
3437 """ClearColumnImage(int col)"""
3438 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3441 class ListViewPtr(ListView
):
3442 def __init__(self
, this
):
3444 if not hasattr(self
,"thisown"): self
.thisown
= 0
3445 self
.__class
__ = ListView
3446 _controls
.ListView_swigregister(ListViewPtr
)
3448 def PreListView(*args
, **kwargs
):
3449 """PreListView() -> ListView"""
3450 val
= _controls
.new_PreListView(*args
, **kwargs
)
3454 #---------------------------------------------------------------------------
3456 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3457 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3458 TR_NO_LINES
= _controls
.TR_NO_LINES
3459 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3460 TR_SINGLE
= _controls
.TR_SINGLE
3461 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3462 TR_EXTENDED
= _controls
.TR_EXTENDED
3463 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3464 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3465 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3466 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3467 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3468 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3469 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3470 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3471 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3472 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3473 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3474 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3475 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3476 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3477 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3478 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3479 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3480 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3481 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3482 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3483 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3484 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3485 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3486 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3487 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3488 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3489 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3490 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3491 #---------------------------------------------------------------------------
3493 class TreeItemId(object):
3496 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3497 def __init__(self
, *args
, **kwargs
):
3498 """__init__() -> TreeItemId"""
3499 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3500 self
.this
= newobj
.this
3503 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3506 if self
.thisown
: destroy(self
)
3509 def IsOk(*args
, **kwargs
):
3510 """IsOk() -> bool"""
3511 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3513 def __eq__(*args
, **kwargs
):
3514 """__eq__(TreeItemId other) -> bool"""
3515 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3517 def __ne__(*args
, **kwargs
):
3518 """__ne__(TreeItemId other) -> bool"""
3519 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3521 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3523 def __nonzero__(self
): return self
.IsOk()
3525 class TreeItemIdPtr(TreeItemId
):
3526 def __init__(self
, this
):
3528 if not hasattr(self
,"thisown"): self
.thisown
= 0
3529 self
.__class
__ = TreeItemId
3530 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3532 class TreeItemData(object):
3535 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3536 def __init__(self
, *args
, **kwargs
):
3537 """__init__(PyObject obj=None) -> TreeItemData"""
3538 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3539 self
.this
= newobj
.this
3542 def GetData(*args
, **kwargs
):
3543 """GetData() -> PyObject"""
3544 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3546 def SetData(*args
, **kwargs
):
3547 """SetData(PyObject obj)"""
3548 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3550 def GetId(*args
, **kwargs
):
3551 """GetId() -> TreeItemId"""
3552 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3554 def SetId(*args
, **kwargs
):
3555 """SetId(TreeItemId id)"""
3556 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3558 def Destroy(*args
, **kwargs
):
3560 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3563 class TreeItemDataPtr(TreeItemData
):
3564 def __init__(self
, this
):
3566 if not hasattr(self
,"thisown"): self
.thisown
= 0
3567 self
.__class
__ = TreeItemData
3568 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3570 #---------------------------------------------------------------------------
3572 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3573 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3574 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3575 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3576 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3577 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3578 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3579 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3580 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3581 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3582 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3583 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3584 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3585 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3586 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3587 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3588 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3589 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3590 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3591 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3592 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3593 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3594 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3595 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3596 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3597 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3598 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3599 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3600 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3601 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3602 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3603 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3604 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3605 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3606 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3607 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3608 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3609 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3612 class TreeEvent(core
.NotifyEvent
):
3615 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3616 def __init__(self
, *args
, **kwargs
):
3617 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3618 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3619 self
.this
= newobj
.this
3622 def GetItem(*args
, **kwargs
):
3623 """GetItem() -> TreeItemId"""
3624 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3626 def SetItem(*args
, **kwargs
):
3627 """SetItem(TreeItemId item)"""
3628 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3630 def GetOldItem(*args
, **kwargs
):
3631 """GetOldItem() -> TreeItemId"""
3632 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3634 def SetOldItem(*args
, **kwargs
):
3635 """SetOldItem(TreeItemId item)"""
3636 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3638 def GetPoint(*args
, **kwargs
):
3639 """GetPoint() -> Point"""
3640 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3642 def SetPoint(*args
, **kwargs
):
3643 """SetPoint(Point pt)"""
3644 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3646 def GetKeyEvent(*args
, **kwargs
):
3647 """GetKeyEvent() -> KeyEvent"""
3648 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3650 def GetKeyCode(*args
, **kwargs
):
3651 """GetKeyCode() -> int"""
3652 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3654 def SetKeyEvent(*args
, **kwargs
):
3655 """SetKeyEvent(KeyEvent evt)"""
3656 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3658 def GetLabel(*args
, **kwargs
):
3659 """GetLabel() -> wxString"""
3660 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3662 def SetLabel(*args
, **kwargs
):
3663 """SetLabel(wxString label)"""
3664 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3666 def IsEditCancelled(*args
, **kwargs
):
3667 """IsEditCancelled() -> bool"""
3668 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3670 def SetEditCanceled(*args
, **kwargs
):
3671 """SetEditCanceled(bool editCancelled)"""
3672 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3675 class TreeEventPtr(TreeEvent
):
3676 def __init__(self
, this
):
3678 if not hasattr(self
,"thisown"): self
.thisown
= 0
3679 self
.__class
__ = TreeEvent
3680 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3682 #---------------------------------------------------------------------------
3684 class TreeCtrl(core
.Control
):
3687 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3688 def __init__(self
, *args
, **kwargs
):
3689 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3690 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3691 Validator validator=DefaultValidator,
3692 wxString name=wxPy_TreeCtrlNameStr) -> TreeCtrl"""
3693 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3694 self
.this
= newobj
.this
3697 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3699 def Create(*args
, **kwargs
):
3700 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3701 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3702 Validator validator=DefaultValidator,
3703 wxString name=wxPy_TreeCtrlNameStr) -> bool"""
3704 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3706 def _setCallbackInfo(*args
, **kwargs
):
3707 """_setCallbackInfo(PyObject self, PyObject _class)"""
3708 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3710 def GetCount(*args
, **kwargs
):
3711 """GetCount() -> size_t"""
3712 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3714 def GetIndent(*args
, **kwargs
):
3715 """GetIndent() -> unsigned int"""
3716 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3718 def SetIndent(*args
, **kwargs
):
3719 """SetIndent(unsigned int indent)"""
3720 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3722 def GetSpacing(*args
, **kwargs
):
3723 """GetSpacing() -> unsigned int"""
3724 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3726 def SetSpacing(*args
, **kwargs
):
3727 """SetSpacing(unsigned int spacing)"""
3728 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3730 def GetImageList(*args
, **kwargs
):
3731 """GetImageList() -> wxImageList"""
3732 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3734 def GetStateImageList(*args
, **kwargs
):
3735 """GetStateImageList() -> wxImageList"""
3736 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3738 def SetImageList(*args
, **kwargs
):
3739 """SetImageList(wxImageList imageList)"""
3740 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3742 def SetStateImageList(*args
, **kwargs
):
3743 """SetStateImageList(wxImageList imageList)"""
3744 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3746 def AssignImageList(*args
, **kwargs
):
3747 """AssignImageList(wxImageList imageList)"""
3748 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3752 def AssignStateImageList(*args
, **kwargs
):
3753 """AssignStateImageList(wxImageList imageList)"""
3754 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3758 def GetItemText(*args
, **kwargs
):
3759 """GetItemText(TreeItemId item) -> wxString"""
3760 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3762 def GetItemImage(*args
, **kwargs
):
3763 """GetItemImage(TreeItemId item, wxTreeItemIcon which=TreeItemIcon_Normal) -> int"""
3764 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3766 def GetItemData(*args
, **kwargs
):
3767 """GetItemData(TreeItemId item) -> TreeItemData"""
3768 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3770 def GetItemPyData(*args
, **kwargs
):
3771 """GetItemPyData(TreeItemId item) -> PyObject"""
3772 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3774 GetPyData
= GetItemPyData
3775 def GetItemTextColour(*args
, **kwargs
):
3776 """GetItemTextColour(TreeItemId item) -> wxColour"""
3777 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3779 def GetItemBackgroundColour(*args
, **kwargs
):
3780 """GetItemBackgroundColour(TreeItemId item) -> wxColour"""
3781 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3783 def GetItemFont(*args
, **kwargs
):
3784 """GetItemFont(TreeItemId item) -> wxFont"""
3785 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3787 def SetItemText(*args
, **kwargs
):
3788 """SetItemText(TreeItemId item, wxString text)"""
3789 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3791 def SetItemImage(*args
, **kwargs
):
3792 """SetItemImage(TreeItemId item, int image, wxTreeItemIcon which=TreeItemIcon_Normal)"""
3793 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
3795 def SetItemData(*args
, **kwargs
):
3796 """SetItemData(TreeItemId item, TreeItemData data)"""
3797 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
3799 def SetItemPyData(*args
, **kwargs
):
3800 """SetItemPyData(TreeItemId item, PyObject obj)"""
3801 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
3803 SetPyData
= SetItemPyData
3804 def SetItemHasChildren(*args
, **kwargs
):
3805 """SetItemHasChildren(TreeItemId item, bool has=True)"""
3806 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
3808 def SetItemBold(*args
, **kwargs
):
3809 """SetItemBold(TreeItemId item, bool bold=True)"""
3810 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
3812 def SetItemTextColour(*args
, **kwargs
):
3813 """SetItemTextColour(TreeItemId item, wxColour col)"""
3814 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
3816 def SetItemBackgroundColour(*args
, **kwargs
):
3817 """SetItemBackgroundColour(TreeItemId item, wxColour col)"""
3818 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3820 def SetItemFont(*args
, **kwargs
):
3821 """SetItemFont(TreeItemId item, wxFont font)"""
3822 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
3824 def IsVisible(*args
, **kwargs
):
3825 """IsVisible(TreeItemId item) -> bool"""
3826 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
3828 def ItemHasChildren(*args
, **kwargs
):
3829 """ItemHasChildren(TreeItemId item) -> bool"""
3830 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
3832 def IsExpanded(*args
, **kwargs
):
3833 """IsExpanded(TreeItemId item) -> bool"""
3834 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
3836 def IsSelected(*args
, **kwargs
):
3837 """IsSelected(TreeItemId item) -> bool"""
3838 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
3840 def IsBold(*args
, **kwargs
):
3841 """IsBold(TreeItemId item) -> bool"""
3842 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
3844 def GetChildrenCount(*args
, **kwargs
):
3845 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
3846 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
3848 def GetRootItem(*args
, **kwargs
):
3849 """GetRootItem() -> TreeItemId"""
3850 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
3852 def GetSelection(*args
, **kwargs
):
3853 """GetSelection() -> TreeItemId"""
3854 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
3856 def GetSelections(*args
, **kwargs
):
3857 """GetSelections() -> PyObject"""
3858 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
3860 def GetItemParent(*args
, **kwargs
):
3861 """GetItemParent(TreeItemId item) -> TreeItemId"""
3862 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
3864 def GetFirstChild(*args
, **kwargs
):
3865 """GetFirstChild(TreeItemId item) -> PyObject"""
3866 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
3868 def GetNextChild(*args
, **kwargs
):
3869 """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
3870 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
3872 def GetLastChild(*args
, **kwargs
):
3873 """GetLastChild(TreeItemId item) -> TreeItemId"""
3874 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
3876 def GetNextSibling(*args
, **kwargs
):
3877 """GetNextSibling(TreeItemId item) -> TreeItemId"""
3878 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
3880 def GetPrevSibling(*args
, **kwargs
):
3881 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
3882 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
3884 def GetFirstVisibleItem(*args
, **kwargs
):
3885 """GetFirstVisibleItem() -> TreeItemId"""
3886 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
3888 def GetNextVisible(*args
, **kwargs
):
3889 """GetNextVisible(TreeItemId item) -> TreeItemId"""
3890 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
3892 def GetPrevVisible(*args
, **kwargs
):
3893 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
3894 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
3896 def AddRoot(*args
, **kwargs
):
3897 """AddRoot(wxString text, int image=-1, int selectedImage=-1,
3898 TreeItemData data=None) -> TreeItemId"""
3899 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
3901 def PrependItem(*args
, **kwargs
):
3902 """PrependItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
3903 TreeItemData data=None) -> TreeItemId"""
3904 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
3906 def InsertItem(*args
, **kwargs
):
3907 """InsertItem(TreeItemId parent, TreeItemId idPrevious, wxString text,
3908 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
3909 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
3911 def InsertItemBefore(*args
, **kwargs
):
3912 """InsertItemBefore(TreeItemId parent, size_t index, wxString text, int image=-1,
3913 int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
3914 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
3916 def AppendItem(*args
, **kwargs
):
3917 """AppendItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
3918 TreeItemData data=None) -> TreeItemId"""
3919 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
3921 def Delete(*args
, **kwargs
):
3922 """Delete(TreeItemId item)"""
3923 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
3925 def DeleteChildren(*args
, **kwargs
):
3926 """DeleteChildren(TreeItemId item)"""
3927 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
3929 def DeleteAllItems(*args
, **kwargs
):
3930 """DeleteAllItems()"""
3931 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
3933 def Expand(*args
, **kwargs
):
3934 """Expand(TreeItemId item)"""
3935 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
3937 def Collapse(*args
, **kwargs
):
3938 """Collapse(TreeItemId item)"""
3939 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
3941 def CollapseAndReset(*args
, **kwargs
):
3942 """CollapseAndReset(TreeItemId item)"""
3943 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
3945 def Toggle(*args
, **kwargs
):
3946 """Toggle(TreeItemId item)"""
3947 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
3949 def Unselect(*args
, **kwargs
):
3951 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
3953 def UnselectAll(*args
, **kwargs
):
3955 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
3957 def SelectItem(*args
, **kwargs
):
3958 """SelectItem(TreeItemId item)"""
3959 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
3961 def EnsureVisible(*args
, **kwargs
):
3962 """EnsureVisible(TreeItemId item)"""
3963 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
3965 def ScrollTo(*args
, **kwargs
):
3966 """ScrollTo(TreeItemId item)"""
3967 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
3969 def EditLabel(*args
, **kwargs
):
3970 """EditLabel(TreeItemId item)"""
3971 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
3973 def GetEditControl(*args
, **kwargs
):
3974 """GetEditControl() -> TextCtrl"""
3975 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
3977 def SortChildren(*args
, **kwargs
):
3978 """SortChildren(TreeItemId item)"""
3979 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
3981 def HitTest(*args
, **kwargs
):
3982 """HitTest(Point point) -> (item, where)
3984 Determine which item (if any) belongs the given point. The
3985 coordinates specified are relative to the client area of tree ctrl
3986 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
3989 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
3991 def GetBoundingRect(*args
, **kwargs
):
3992 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
3993 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
3996 class TreeCtrlPtr(TreeCtrl
):
3997 def __init__(self
, this
):
3999 if not hasattr(self
,"thisown"): self
.thisown
= 0
4000 self
.__class
__ = TreeCtrl
4001 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4003 def PreTreeCtrl(*args
, **kwargs
):
4004 """PreTreeCtrl() -> TreeCtrl"""
4005 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4009 #---------------------------------------------------------------------------
4011 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4012 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4013 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4014 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4015 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4016 class GenericDirCtrl(core
.Control
):
4019 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4020 def __init__(self
, *args
, **kwargs
):
4021 """__init__(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4022 Point pos=DefaultPosition,
4023 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4024 wxString filter=wxPyEmptyString,
4025 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> GenericDirCtrl"""
4026 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4027 self
.this
= newobj
.this
4030 self
._setOORInfo
(self
)
4032 def Create(*args
, **kwargs
):
4033 """Create(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4034 Point pos=DefaultPosition,
4035 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4036 wxString filter=wxPyEmptyString,
4037 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> bool"""
4038 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4040 def ExpandPath(*args
, **kwargs
):
4041 """ExpandPath(wxString path) -> bool"""
4042 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4044 def GetDefaultPath(*args
, **kwargs
):
4045 """GetDefaultPath() -> wxString"""
4046 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4048 def SetDefaultPath(*args
, **kwargs
):
4049 """SetDefaultPath(wxString path)"""
4050 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4052 def GetPath(*args
, **kwargs
):
4053 """GetPath() -> wxString"""
4054 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4056 def GetFilePath(*args
, **kwargs
):
4057 """GetFilePath() -> wxString"""
4058 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4060 def SetPath(*args
, **kwargs
):
4061 """SetPath(wxString path)"""
4062 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4064 def ShowHidden(*args
, **kwargs
):
4065 """ShowHidden(bool show)"""
4066 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4068 def GetShowHidden(*args
, **kwargs
):
4069 """GetShowHidden() -> bool"""
4070 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4072 def GetFilter(*args
, **kwargs
):
4073 """GetFilter() -> wxString"""
4074 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4076 def SetFilter(*args
, **kwargs
):
4077 """SetFilter(wxString filter)"""
4078 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4080 def GetFilterIndex(*args
, **kwargs
):
4081 """GetFilterIndex() -> int"""
4082 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4084 def SetFilterIndex(*args
, **kwargs
):
4085 """SetFilterIndex(int n)"""
4086 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4088 def GetRootId(*args
, **kwargs
):
4089 """GetRootId() -> TreeItemId"""
4090 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4092 def GetTreeCtrl(*args
, **kwargs
):
4093 """GetTreeCtrl() -> wxTreeCtrl"""
4094 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4096 def GetFilterListCtrl(*args
, **kwargs
):
4097 """GetFilterListCtrl() -> DirFilterListCtrl"""
4098 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4100 def FindChild(*args
, **kwargs
):
4101 """FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4103 Find the child that matches the first part of 'path'. E.g. if a child path is
4104 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4105 If the path string has been used (we're at the leaf), done is set to True
4107 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4109 def DoResize(*args
, **kwargs
):
4111 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4113 def ReCreateTree(*args
, **kwargs
):
4114 """ReCreateTree()"""
4115 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4118 class GenericDirCtrlPtr(GenericDirCtrl
):
4119 def __init__(self
, this
):
4121 if not hasattr(self
,"thisown"): self
.thisown
= 0
4122 self
.__class
__ = GenericDirCtrl
4123 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4125 def PreGenericDirCtrl(*args
, **kwargs
):
4126 """PreGenericDirCtrl() -> GenericDirCtrl"""
4127 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4131 class DirFilterListCtrl(Choice
):
4134 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4135 def __init__(self
, *args
, **kwargs
):
4136 """__init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4137 Size size=DefaultSize, long style=0) -> DirFilterListCtrl"""
4138 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4139 self
.this
= newobj
.this
4142 self
._setOORInfo
(self
)
4144 def Create(*args
, **kwargs
):
4145 """Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4146 Size size=DefaultSize, long style=0) -> bool"""
4147 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4149 def FillFilterList(*args
, **kwargs
):
4150 """FillFilterList(wxString filter, int defaultFilter)"""
4151 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4154 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4155 def __init__(self
, this
):
4157 if not hasattr(self
,"thisown"): self
.thisown
= 0
4158 self
.__class
__ = DirFilterListCtrl
4159 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4161 def PreDirFilterListCtrl(*args
, **kwargs
):
4162 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4163 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4167 #---------------------------------------------------------------------------
4169 class PyControl(core
.Control
):
4172 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4173 def __init__(self
, *args
, **kwargs
):
4174 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4175 long style=0, Validator validator=DefaultValidator,
4176 wxString name=wxPyControlNameStr) -> PyControl"""
4177 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4178 self
.this
= newobj
.this
4181 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4183 def _setCallbackInfo(*args
, **kwargs
):
4184 """_setCallbackInfo(PyObject self, PyObject _class)"""
4185 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4187 def base_DoMoveWindow(*args
, **kwargs
):
4188 """base_DoMoveWindow(int x, int y, int width, int height)"""
4189 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4191 def base_DoSetSize(*args
, **kwargs
):
4192 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4193 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4195 def base_DoSetClientSize(*args
, **kwargs
):
4196 """base_DoSetClientSize(int width, int height)"""
4197 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4199 def base_DoSetVirtualSize(*args
, **kwargs
):
4200 """base_DoSetVirtualSize(int x, int y)"""
4201 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4203 def base_DoGetSize(*args
, **kwargs
):
4204 """base_DoGetSize() -> (width, height)"""
4205 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4207 def base_DoGetClientSize(*args
, **kwargs
):
4208 """base_DoGetClientSize() -> (width, height)"""
4209 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4211 def base_DoGetPosition(*args
, **kwargs
):
4212 """base_DoGetPosition() -> (x,y)"""
4213 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4215 def base_DoGetVirtualSize(*args
, **kwargs
):
4216 """base_DoGetVirtualSize() -> Size"""
4217 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4219 def base_DoGetBestSize(*args
, **kwargs
):
4220 """base_DoGetBestSize() -> Size"""
4221 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4223 def base_InitDialog(*args
, **kwargs
):
4224 """base_InitDialog()"""
4225 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4227 def base_TransferDataToWindow(*args
, **kwargs
):
4228 """base_TransferDataToWindow() -> bool"""
4229 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4231 def base_TransferDataFromWindow(*args
, **kwargs
):
4232 """base_TransferDataFromWindow() -> bool"""
4233 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4235 def base_Validate(*args
, **kwargs
):
4236 """base_Validate() -> bool"""
4237 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4239 def base_AcceptsFocus(*args
, **kwargs
):
4240 """base_AcceptsFocus() -> bool"""
4241 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4243 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4244 """base_AcceptsFocusFromKeyboard() -> bool"""
4245 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4247 def base_GetMaxSize(*args
, **kwargs
):
4248 """base_GetMaxSize() -> Size"""
4249 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4251 def base_AddChild(*args
, **kwargs
):
4252 """base_AddChild(Window child)"""
4253 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4255 def base_RemoveChild(*args
, **kwargs
):
4256 """base_RemoveChild(Window child)"""
4257 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4260 class PyControlPtr(PyControl
):
4261 def __init__(self
, this
):
4263 if not hasattr(self
,"thisown"): self
.thisown
= 0
4264 self
.__class
__ = PyControl
4265 _controls
.PyControl_swigregister(PyControlPtr
)
4267 #---------------------------------------------------------------------------
4269 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4270 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4271 wxEVT_HELP
= _controls
.wxEVT_HELP
4272 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4273 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4274 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4275 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4276 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4278 class HelpEvent(core
.CommandEvent
):
4281 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4282 def __init__(self
, *args
, **kwargs
):
4283 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4284 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4285 self
.this
= newobj
.this
4288 def GetPosition(*args
, **kwargs
):
4289 """GetPosition() -> Point"""
4290 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4292 def SetPosition(*args
, **kwargs
):
4293 """SetPosition(Point pos)"""
4294 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4296 def GetLink(*args
, **kwargs
):
4297 """GetLink() -> wxString"""
4298 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4300 def SetLink(*args
, **kwargs
):
4301 """SetLink(wxString link)"""
4302 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4304 def GetTarget(*args
, **kwargs
):
4305 """GetTarget() -> wxString"""
4306 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4308 def SetTarget(*args
, **kwargs
):
4309 """SetTarget(wxString target)"""
4310 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4313 class HelpEventPtr(HelpEvent
):
4314 def __init__(self
, this
):
4316 if not hasattr(self
,"thisown"): self
.thisown
= 0
4317 self
.__class
__ = HelpEvent
4318 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4320 class ContextHelp(core
.Object
):
4323 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4324 def __init__(self
, *args
, **kwargs
):
4325 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4326 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4327 self
.this
= newobj
.this
4330 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4333 if self
.thisown
: destroy(self
)
4336 def BeginContextHelp(*args
, **kwargs
):
4337 """BeginContextHelp(Window window=None) -> bool"""
4338 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4340 def EndContextHelp(*args
, **kwargs
):
4341 """EndContextHelp() -> bool"""
4342 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4345 class ContextHelpPtr(ContextHelp
):
4346 def __init__(self
, this
):
4348 if not hasattr(self
,"thisown"): self
.thisown
= 0
4349 self
.__class
__ = ContextHelp
4350 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4352 class ContextHelpButton(BitmapButton
):
4355 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4356 def __init__(self
, *args
, **kwargs
):
4357 """__init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4358 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton"""
4359 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4360 self
.this
= newobj
.this
4363 self
._setOORInfo
(self
)
4366 class ContextHelpButtonPtr(ContextHelpButton
):
4367 def __init__(self
, this
):
4369 if not hasattr(self
,"thisown"): self
.thisown
= 0
4370 self
.__class
__ = ContextHelpButton
4371 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4373 class HelpProvider(object):
4375 def __init__(self
): raise RuntimeError, "No constructor defined"
4377 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4378 def Set(*args
, **kwargs
):
4379 """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
4380 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4382 Set
= staticmethod(Set
)
4383 def Get(*args
, **kwargs
):
4384 """HelpProvider.Get() -> HelpProvider"""
4385 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4387 Get
= staticmethod(Get
)
4388 def GetHelp(*args
, **kwargs
):
4389 """GetHelp(Window window) -> wxString"""
4390 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4392 def ShowHelp(*args
, **kwargs
):
4393 """ShowHelp(Window window) -> bool"""
4394 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4396 def AddHelp(*args
, **kwargs
):
4397 """AddHelp(Window window, wxString text)"""
4398 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4400 def AddHelpById(*args
, **kwargs
):
4401 """AddHelpById(int id, wxString text)"""
4402 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4404 def Destroy(*args
, **kwargs
):
4406 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4409 class HelpProviderPtr(HelpProvider
):
4410 def __init__(self
, this
):
4412 if not hasattr(self
,"thisown"): self
.thisown
= 0
4413 self
.__class
__ = HelpProvider
4414 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4416 def HelpProvider_Set(*args
, **kwargs
):
4417 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4418 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4420 def HelpProvider_Get(*args
, **kwargs
):
4421 """HelpProvider_Get() -> HelpProvider"""
4422 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4424 class SimpleHelpProvider(HelpProvider
):
4427 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4428 def __init__(self
, *args
, **kwargs
):
4429 """__init__() -> SimpleHelpProvider"""
4430 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4431 self
.this
= newobj
.this
4435 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4436 def __init__(self
, this
):
4438 if not hasattr(self
,"thisown"): self
.thisown
= 0
4439 self
.__class
__ = SimpleHelpProvider
4440 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4442 #---------------------------------------------------------------------------
4444 class DragImage(core
.Object
):
4447 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4448 def __init__(self
, *args
, **kwargs
):
4449 """__init__(wxBitmap image, wxCursor cursor=wxNullCursor) -> DragImage"""
4450 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4451 self
.this
= newobj
.this
4454 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4457 if self
.thisown
: destroy(self
)
4460 def SetBackingBitmap(*args
, **kwargs
):
4461 """SetBackingBitmap(wxBitmap bitmap)"""
4462 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4464 def BeginDrag(*args
, **kwargs
):
4465 """BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4466 Rect rect=None) -> bool"""
4467 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4469 def BeginDragBounded(*args
, **kwargs
):
4470 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4471 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4473 def EndDrag(*args
, **kwargs
):
4474 """EndDrag() -> bool"""
4475 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4477 def Move(*args
, **kwargs
):
4478 """Move(Point pt) -> bool"""
4479 return _controls
.DragImage_Move(*args
, **kwargs
)
4481 def Show(*args
, **kwargs
):
4482 """Show() -> bool"""
4483 return _controls
.DragImage_Show(*args
, **kwargs
)
4485 def Hide(*args
, **kwargs
):
4486 """Hide() -> bool"""
4487 return _controls
.DragImage_Hide(*args
, **kwargs
)
4489 def GetImageRect(*args
, **kwargs
):
4490 """GetImageRect(Point pos) -> Rect"""
4491 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4493 def DoDrawImage(*args
, **kwargs
):
4494 """DoDrawImage(wxDC dc, Point pos) -> bool"""
4495 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4497 def UpdateBackingFromWindow(*args
, **kwargs
):
4498 """UpdateBackingFromWindow(wxDC windowDC, wxMemoryDC destDC, Rect sourceRect,
4499 Rect destRect) -> bool"""
4500 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4502 def RedrawImage(*args
, **kwargs
):
4503 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4504 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4507 class DragImagePtr(DragImage
):
4508 def __init__(self
, this
):
4510 if not hasattr(self
,"thisown"): self
.thisown
= 0
4511 self
.__class
__ = DragImage
4512 _controls
.DragImage_swigregister(DragImagePtr
)
4514 def DragIcon(*args
, **kwargs
):
4515 """DragIcon(wxIcon image, wxCursor cursor=wxNullCursor) -> DragImage"""
4516 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4520 def DragString(*args
, **kwargs
):
4521 """DragString(wxString str, wxCursor cursor=wxNullCursor) -> DragImage"""
4522 val
= _controls
.new_DragString(*args
, **kwargs
)
4526 def DragTreeItem(*args
, **kwargs
):
4527 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4528 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4532 def DragListItem(*args
, **kwargs
):
4533 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4534 val
= _controls
.new_DragListItem(*args
, **kwargs
)