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 SetSelection(*args
, **kwargs
):
338 """SetSelection(int n)"""
339 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
341 def SetMark(*args
, **kwargs
):
342 """SetMark(long from, long to)"""
343 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
345 def SetEditable(*args
, **kwargs
):
346 """SetEditable(bool editable)"""
347 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
349 def SetInsertionPointEnd(*args
, **kwargs
):
350 """SetInsertionPointEnd()"""
351 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
353 def Remove(*args
, **kwargs
):
354 """Remove(long from, long to)"""
355 return _controls
.ComboBox_Remove(*args
, **kwargs
)
358 class ComboBoxPtr(ComboBox
):
359 def __init__(self
, this
):
361 if not hasattr(self
,"thisown"): self
.thisown
= 0
362 self
.__class
__ = ComboBox
363 _controls
.ComboBox_swigregister(ComboBoxPtr
)
365 def PreComboBox(*args
, **kwargs
):
366 """PreComboBox() -> ComboBox"""
367 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
371 #---------------------------------------------------------------------------
373 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
374 GA_VERTICAL
= _controls
.GA_VERTICAL
375 GA_SMOOTH
= _controls
.GA_SMOOTH
376 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
377 class Gauge(core
.Control
):
380 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
381 def __init__(self
, *args
, **kwargs
):
382 """__init__(Window parent, int id, int range, Point pos=DefaultPosition,
383 Size size=DefaultSize, long style=GA_HORIZONTAL,
384 Validator validator=DefaultValidator,
385 wxString name=wxPyGaugeNameStr) -> Gauge"""
386 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
387 self
.this
= newobj
.this
390 self
._setOORInfo
(self
)
392 def Create(*args
, **kwargs
):
393 """Create(Window parent, int id, int range, Point pos=DefaultPosition,
394 Size size=DefaultSize, long style=GA_HORIZONTAL,
395 Validator validator=DefaultValidator,
396 wxString name=wxPyGaugeNameStr) -> bool"""
397 return _controls
.Gauge_Create(*args
, **kwargs
)
399 def SetRange(*args
, **kwargs
):
400 """SetRange(int range)"""
401 return _controls
.Gauge_SetRange(*args
, **kwargs
)
403 def GetRange(*args
, **kwargs
):
404 """GetRange() -> int"""
405 return _controls
.Gauge_GetRange(*args
, **kwargs
)
407 def SetValue(*args
, **kwargs
):
408 """SetValue(int pos)"""
409 return _controls
.Gauge_SetValue(*args
, **kwargs
)
411 def GetValue(*args
, **kwargs
):
412 """GetValue() -> int"""
413 return _controls
.Gauge_GetValue(*args
, **kwargs
)
415 def IsVertical(*args
, **kwargs
):
416 """IsVertical() -> bool"""
417 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
419 def SetShadowWidth(*args
, **kwargs
):
420 """SetShadowWidth(int w)"""
421 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
423 def GetShadowWidth(*args
, **kwargs
):
424 """GetShadowWidth() -> int"""
425 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
427 def SetBezelFace(*args
, **kwargs
):
428 """SetBezelFace(int w)"""
429 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
431 def GetBezelFace(*args
, **kwargs
):
432 """GetBezelFace() -> int"""
433 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
436 class GaugePtr(Gauge
):
437 def __init__(self
, this
):
439 if not hasattr(self
,"thisown"): self
.thisown
= 0
440 self
.__class
__ = Gauge
441 _controls
.Gauge_swigregister(GaugePtr
)
443 def PreGauge(*args
, **kwargs
):
444 """PreGauge() -> Gauge"""
445 val
= _controls
.new_PreGauge(*args
, **kwargs
)
449 #---------------------------------------------------------------------------
451 class StaticBox(core
.Control
):
454 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
455 def __init__(self
, *args
, **kwargs
):
456 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
457 Size size=DefaultSize, long style=0,
458 wxString name=wxPyStaticBoxNameStr) -> StaticBox"""
459 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
460 self
.this
= newobj
.this
463 self
._setOORInfo
(self
)
465 def Create(*args
, **kwargs
):
466 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
467 Size size=DefaultSize, long style=0,
468 wxString name=wxPyStaticBoxNameStr) -> bool"""
469 return _controls
.StaticBox_Create(*args
, **kwargs
)
472 class StaticBoxPtr(StaticBox
):
473 def __init__(self
, this
):
475 if not hasattr(self
,"thisown"): self
.thisown
= 0
476 self
.__class
__ = StaticBox
477 _controls
.StaticBox_swigregister(StaticBoxPtr
)
479 def PreStaticBox(*args
, **kwargs
):
480 """PreStaticBox() -> StaticBox"""
481 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
485 #---------------------------------------------------------------------------
487 class StaticLine(core
.Control
):
490 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
491 def __init__(self
, *args
, **kwargs
):
492 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
493 long style=LI_HORIZONTAL,
494 wxString name=wxPyStaticTextNameStr) -> StaticLine"""
495 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
496 self
.this
= newobj
.this
499 self
._setOORInfo
(self
)
501 def Create(*args
, **kwargs
):
502 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
503 long style=LI_HORIZONTAL,
504 wxString name=wxPyStaticTextNameStr) -> bool"""
505 return _controls
.StaticLine_Create(*args
, **kwargs
)
507 def IsVertical(*args
, **kwargs
):
508 """IsVertical() -> bool"""
509 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
511 def GetDefaultSize(*args
, **kwargs
):
512 """StaticLine.GetDefaultSize() -> int"""
513 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
515 GetDefaultSize
= staticmethod(GetDefaultSize
)
517 class StaticLinePtr(StaticLine
):
518 def __init__(self
, this
):
520 if not hasattr(self
,"thisown"): self
.thisown
= 0
521 self
.__class
__ = StaticLine
522 _controls
.StaticLine_swigregister(StaticLinePtr
)
524 def PreStaticLine(*args
, **kwargs
):
525 """PreStaticLine() -> StaticLine"""
526 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
530 def StaticLine_GetDefaultSize(*args
, **kwargs
):
531 """StaticLine_GetDefaultSize() -> int"""
532 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
534 #---------------------------------------------------------------------------
536 class StaticText(core
.Control
):
539 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
540 def __init__(self
, *args
, **kwargs
):
541 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
542 Size size=DefaultSize, long style=0,
543 wxString name=wxPyStaticTextNameStr) -> StaticText"""
544 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
545 self
.this
= newobj
.this
548 self
._setOORInfo
(self
)
550 def Create(*args
, **kwargs
):
551 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
552 Size size=DefaultSize, long style=0,
553 wxString name=wxPyStaticTextNameStr) -> bool"""
554 return _controls
.StaticText_Create(*args
, **kwargs
)
557 class StaticTextPtr(StaticText
):
558 def __init__(self
, this
):
560 if not hasattr(self
,"thisown"): self
.thisown
= 0
561 self
.__class
__ = StaticText
562 _controls
.StaticText_swigregister(StaticTextPtr
)
564 def PreStaticText(*args
, **kwargs
):
565 """PreStaticText() -> StaticText"""
566 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
570 #---------------------------------------------------------------------------
572 class StaticBitmap(core
.Control
):
575 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
576 def __init__(self
, *args
, **kwargs
):
577 """__init__(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
578 Size size=DefaultSize, long style=0,
579 wxString name=wxPyStaticBitmapNameStr) -> StaticBitmap"""
580 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
581 self
.this
= newobj
.this
584 def Create(*args
, **kwargs
):
585 """Create(Window parent, int id, wxBitmap bitmap, Point pos=DefaultPosition,
586 Size size=DefaultSize, long style=0,
587 wxString name=wxPyStaticBitmapNameStr) -> bool"""
588 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
590 def GetBitmap(*args
, **kwargs
):
591 """GetBitmap() -> wxBitmap"""
592 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
594 def SetBitmap(*args
, **kwargs
):
595 """SetBitmap(wxBitmap bitmap)"""
596 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
598 def SetIcon(*args
, **kwargs
):
599 """SetIcon(wxIcon icon)"""
600 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
603 class StaticBitmapPtr(StaticBitmap
):
604 def __init__(self
, this
):
606 if not hasattr(self
,"thisown"): self
.thisown
= 0
607 self
.__class
__ = StaticBitmap
608 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
610 def PreStaticBitmap(*args
, **kwargs
):
611 """PreStaticBitmap() -> StaticBitmap"""
612 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
616 #---------------------------------------------------------------------------
618 class ListBox(core
.ControlWithItems
):
621 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
622 def __init__(self
, *args
, **kwargs
):
623 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
624 int choices=0, wxString choices_array=None,
625 long style=0, Validator validator=DefaultValidator,
626 wxString name=wxPyListBoxNameStr) -> ListBox"""
627 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
628 self
.this
= newobj
.this
631 self
._setOORInfo
(self
)
633 def Create(*args
, **kwargs
):
634 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
635 int choices=0, wxString choices_array=None,
636 long style=0, Validator validator=DefaultValidator,
637 wxString name=wxPyListBoxNameStr) -> bool"""
638 return _controls
.ListBox_Create(*args
, **kwargs
)
640 def Insert(*args
, **kwargs
):
641 """Insert(wxString item, int pos, PyObject clientData=None)"""
642 return _controls
.ListBox_Insert(*args
, **kwargs
)
644 def InsertItems(*args
, **kwargs
):
645 """InsertItems(wxArrayString items, int pos)"""
646 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
648 def Set(*args
, **kwargs
):
649 """Set(wxArrayString items)"""
650 return _controls
.ListBox_Set(*args
, **kwargs
)
652 def IsSelected(*args
, **kwargs
):
653 """IsSelected(int n) -> bool"""
654 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
656 def SetSelection(*args
, **kwargs
):
657 """SetSelection(int n, bool select=True)"""
658 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
660 def Select(*args
, **kwargs
):
662 return _controls
.ListBox_Select(*args
, **kwargs
)
664 def Deselect(*args
, **kwargs
):
665 """Deselect(int n)"""
666 return _controls
.ListBox_Deselect(*args
, **kwargs
)
668 def DeselectAll(*args
, **kwargs
):
669 """DeselectAll(int itemToLeaveSelected=-1)"""
670 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
672 def SetStringSelection(*args
, **kwargs
):
673 """SetStringSelection(wxString s, bool select=True) -> bool"""
674 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
676 def GetSelections(*args
, **kwargs
):
677 """GetSelections() -> PyObject"""
678 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
680 def SetFirstItem(*args
, **kwargs
):
681 """SetFirstItem(int n)"""
682 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
684 def SetFirstItemStr(*args
, **kwargs
):
685 """SetFirstItemStr(wxString s)"""
686 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
688 def EnsureVisible(*args
, **kwargs
):
689 """EnsureVisible(int n)"""
690 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
692 def AppendAndEnsureVisible(*args
, **kwargs
):
693 """AppendAndEnsureVisible(wxString s)"""
694 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
696 def IsSorted(*args
, **kwargs
):
697 """IsSorted() -> bool"""
698 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
701 class ListBoxPtr(ListBox
):
702 def __init__(self
, this
):
704 if not hasattr(self
,"thisown"): self
.thisown
= 0
705 self
.__class
__ = ListBox
706 _controls
.ListBox_swigregister(ListBoxPtr
)
708 def PreListBox(*args
, **kwargs
):
709 """PreListBox() -> ListBox"""
710 val
= _controls
.new_PreListBox(*args
, **kwargs
)
714 #---------------------------------------------------------------------------
716 class CheckListBox(ListBox
):
719 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
720 def __init__(self
, *args
, **kwargs
):
721 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
722 int choices=0, wxString choices_array=None,
723 long style=0, Validator validator=DefaultValidator,
724 wxString name=wxPyListBoxNameStr) -> CheckListBox"""
725 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
726 self
.this
= newobj
.this
729 def Create(*args
, **kwargs
):
730 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
731 int choices=0, wxString choices_array=None,
732 long style=0, Validator validator=DefaultValidator,
733 wxString name=wxPyListBoxNameStr) -> bool"""
734 return _controls
.CheckListBox_Create(*args
, **kwargs
)
736 def IsChecked(*args
, **kwargs
):
737 """IsChecked(int index) -> bool"""
738 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
740 def Check(*args
, **kwargs
):
741 """Check(int index, int check=True)"""
742 return _controls
.CheckListBox_Check(*args
, **kwargs
)
744 def GetItemHeight(*args
, **kwargs
):
745 """GetItemHeight() -> int"""
746 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
748 def HitTest(*args
, **kwargs
):
749 """HitTest(Point pt) -> int"""
750 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
752 def HitTestXY(*args
, **kwargs
):
753 """HitTestXY(int x, int y) -> int"""
754 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
757 class CheckListBoxPtr(CheckListBox
):
758 def __init__(self
, this
):
760 if not hasattr(self
,"thisown"): self
.thisown
= 0
761 self
.__class
__ = CheckListBox
762 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
764 def PreCheckListBox(*args
, **kwargs
):
765 """PreCheckListBox() -> CheckListBox"""
766 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
770 #---------------------------------------------------------------------------
772 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
773 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
774 TE_READONLY
= _controls
.TE_READONLY
775 TE_MULTILINE
= _controls
.TE_MULTILINE
776 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
777 TE_LEFT
= _controls
.TE_LEFT
778 TE_CENTER
= _controls
.TE_CENTER
779 TE_RIGHT
= _controls
.TE_RIGHT
780 TE_CENTRE
= _controls
.TE_CENTRE
781 TE_RICH
= _controls
.TE_RICH
782 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
783 TE_PASSWORD
= _controls
.TE_PASSWORD
784 TE_AUTO_URL
= _controls
.TE_AUTO_URL
785 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
786 TE_DONTWRAP
= _controls
.TE_DONTWRAP
787 TE_LINEWRAP
= _controls
.TE_LINEWRAP
788 TE_WORDWRAP
= _controls
.TE_WORDWRAP
789 TE_RICH2
= _controls
.TE_RICH2
790 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
791 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
792 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
793 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
794 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
795 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
796 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
797 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
798 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
799 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
800 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
801 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
802 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
803 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
804 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
805 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
806 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
807 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
808 class TextAttr(object):
811 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
812 def __init__(self
, *args
):
813 """__init__() -> TextAttr
814 __init__(wxColour colText, wxColour colBack=wxNullColour, wxFont font=wxNullFont,
815 wxTextAttrAlignment alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr"""
816 newobj
= _controls
.new_TextAttr(*args
)
817 self
.this
= newobj
.this
820 def Init(*args
, **kwargs
):
822 return _controls
.TextAttr_Init(*args
, **kwargs
)
824 def SetTextColour(*args
, **kwargs
):
825 """SetTextColour(wxColour colText)"""
826 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
828 def SetBackgroundColour(*args
, **kwargs
):
829 """SetBackgroundColour(wxColour colBack)"""
830 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
832 def SetFont(*args
, **kwargs
):
833 """SetFont(wxFont font, long flags=TEXT_ATTR_FONT)"""
834 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
836 def SetAlignment(*args
, **kwargs
):
837 """SetAlignment(wxTextAttrAlignment alignment)"""
838 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
840 def SetTabs(*args
, **kwargs
):
841 """SetTabs(wxArrayInt tabs)"""
842 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
844 def SetLeftIndent(*args
, **kwargs
):
845 """SetLeftIndent(int indent)"""
846 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
848 def SetRightIndent(*args
, **kwargs
):
849 """SetRightIndent(int indent)"""
850 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
852 def SetFlags(*args
, **kwargs
):
853 """SetFlags(long flags)"""
854 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
856 def HasTextColour(*args
, **kwargs
):
857 """HasTextColour() -> bool"""
858 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
860 def HasBackgroundColour(*args
, **kwargs
):
861 """HasBackgroundColour() -> bool"""
862 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
864 def HasFont(*args
, **kwargs
):
865 """HasFont() -> bool"""
866 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
868 def HasAlignment(*args
, **kwargs
):
869 """HasAlignment() -> bool"""
870 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
872 def HasTabs(*args
, **kwargs
):
873 """HasTabs() -> bool"""
874 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
876 def HasLeftIndent(*args
, **kwargs
):
877 """HasLeftIndent() -> bool"""
878 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
880 def HasRightIndent(*args
, **kwargs
):
881 """HasRightIndent() -> bool"""
882 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
884 def HasFlag(*args
, **kwargs
):
885 """HasFlag(long flag) -> bool"""
886 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
888 def GetTextColour(*args
, **kwargs
):
889 """GetTextColour() -> wxColour"""
890 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
892 def GetBackgroundColour(*args
, **kwargs
):
893 """GetBackgroundColour() -> wxColour"""
894 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
896 def GetFont(*args
, **kwargs
):
897 """GetFont() -> wxFont"""
898 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
900 def GetAlignment(*args
, **kwargs
):
901 """GetAlignment() -> wxTextAttrAlignment"""
902 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
904 def GetTabs(*args
, **kwargs
):
905 """GetTabs() -> wxArrayInt"""
906 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
908 def GetLeftIndent(*args
, **kwargs
):
909 """GetLeftIndent() -> long"""
910 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
912 def GetRightIndent(*args
, **kwargs
):
913 """GetRightIndent() -> long"""
914 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
916 def GetFlags(*args
, **kwargs
):
917 """GetFlags() -> long"""
918 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
920 def IsDefault(*args
, **kwargs
):
921 """IsDefault() -> bool"""
922 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
924 def Combine(*args
, **kwargs
):
925 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
926 return _controls
.TextAttr_Combine(*args
, **kwargs
)
928 Combine
= staticmethod(Combine
)
930 class TextAttrPtr(TextAttr
):
931 def __init__(self
, this
):
933 if not hasattr(self
,"thisown"): self
.thisown
= 0
934 self
.__class
__ = TextAttr
935 _controls
.TextAttr_swigregister(TextAttrPtr
)
937 def TextAttr_Combine(*args
, **kwargs
):
938 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
939 return _controls
.TextAttr_Combine(*args
, **kwargs
)
941 class TextCtrl(core
.Control
):
944 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
945 def __init__(self
, *args
, **kwargs
):
946 """__init__(Window parent, int id, wxString value=wxPyEmptyString,
947 Point pos=DefaultPosition, Size size=DefaultSize,
948 long style=0, Validator validator=DefaultValidator,
949 wxString name=wxPyTextCtrlNameStr) -> TextCtrl"""
950 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
951 self
.this
= newobj
.this
954 self
._setOORInfo
(self
)
956 def Create(*args
, **kwargs
):
957 """Create(Window parent, int id, wxString value=wxPyEmptyString,
958 Point pos=DefaultPosition, Size size=DefaultSize,
959 long style=0, Validator validator=DefaultValidator,
960 wxString name=wxPyTextCtrlNameStr) -> bool"""
961 return _controls
.TextCtrl_Create(*args
, **kwargs
)
963 def GetValue(*args
, **kwargs
):
964 """GetValue() -> wxString"""
965 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
967 def SetValue(*args
, **kwargs
):
968 """SetValue(wxString value)"""
969 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
971 def GetRange(*args
, **kwargs
):
972 """GetRange(long from, long to) -> wxString"""
973 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
975 def GetLineLength(*args
, **kwargs
):
976 """GetLineLength(long lineNo) -> int"""
977 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
979 def GetLineText(*args
, **kwargs
):
980 """GetLineText(long lineNo) -> wxString"""
981 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
983 def GetNumberOfLines(*args
, **kwargs
):
984 """GetNumberOfLines() -> int"""
985 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
987 def IsModified(*args
, **kwargs
):
988 """IsModified() -> bool"""
989 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
991 def IsEditable(*args
, **kwargs
):
992 """IsEditable() -> bool"""
993 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
995 def IsSingleLine(*args
, **kwargs
):
996 """IsSingleLine() -> bool"""
997 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
999 def IsMultiLine(*args
, **kwargs
):
1000 """IsMultiLine() -> bool"""
1001 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1003 def GetSelection(*args
, **kwargs
):
1004 """GetSelection() -> (from, to)
1006 If the return values from and to are the same, there is no selection."""
1007 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1009 def GetStringSelection(*args
, **kwargs
):
1010 """GetStringSelection() -> wxString"""
1011 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1013 def Clear(*args
, **kwargs
):
1015 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1017 def Replace(*args
, **kwargs
):
1018 """Replace(long from, long to, wxString value)"""
1019 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1021 def Remove(*args
, **kwargs
):
1022 """Remove(long from, long to)"""
1023 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1025 def LoadFile(*args
, **kwargs
):
1026 """LoadFile(wxString file) -> bool"""
1027 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1029 def SaveFile(*args
, **kwargs
):
1030 """SaveFile(wxString file=wxPyEmptyString) -> bool"""
1031 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1033 def MarkDirty(*args
, **kwargs
):
1035 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1037 def DiscardEdits(*args
, **kwargs
):
1038 """DiscardEdits()"""
1039 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1041 def SetMaxLength(*args
, **kwargs
):
1042 """SetMaxLength(unsigned long len)"""
1043 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1045 def WriteText(*args
, **kwargs
):
1046 """WriteText(wxString text)"""
1047 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1049 def AppendText(*args
, **kwargs
):
1050 """AppendText(wxString text)"""
1051 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1053 def EmulateKeyPress(*args
, **kwargs
):
1054 """EmulateKeyPress(KeyEvent event) -> bool"""
1055 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1057 def SetStyle(*args
, **kwargs
):
1058 """SetStyle(long start, long end, TextAttr style) -> bool"""
1059 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1061 def GetStyle(*args
, **kwargs
):
1062 """GetStyle(long position, TextAttr style) -> bool"""
1063 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1065 def SetDefaultStyle(*args
, **kwargs
):
1066 """SetDefaultStyle(TextAttr style) -> bool"""
1067 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1069 def GetDefaultStyle(*args
, **kwargs
):
1070 """GetDefaultStyle() -> TextAttr"""
1071 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1073 def XYToPosition(*args
, **kwargs
):
1074 """XYToPosition(long x, long y) -> long"""
1075 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1077 def PositionToXY(*args
, **kwargs
):
1078 """PositionToXY(long pos) -> (x, y)"""
1079 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1081 def ShowPosition(*args
, **kwargs
):
1082 """ShowPosition(long pos)"""
1083 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1085 def Copy(*args
, **kwargs
):
1087 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1089 def Cut(*args
, **kwargs
):
1091 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1093 def Paste(*args
, **kwargs
):
1095 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1097 def CanCopy(*args
, **kwargs
):
1098 """CanCopy() -> bool"""
1099 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1101 def CanCut(*args
, **kwargs
):
1102 """CanCut() -> bool"""
1103 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1105 def CanPaste(*args
, **kwargs
):
1106 """CanPaste() -> bool"""
1107 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1109 def Undo(*args
, **kwargs
):
1111 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1113 def Redo(*args
, **kwargs
):
1115 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1117 def CanUndo(*args
, **kwargs
):
1118 """CanUndo() -> bool"""
1119 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1121 def CanRedo(*args
, **kwargs
):
1122 """CanRedo() -> bool"""
1123 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1125 def SetInsertionPoint(*args
, **kwargs
):
1126 """SetInsertionPoint(long pos)"""
1127 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1129 def SetInsertionPointEnd(*args
, **kwargs
):
1130 """SetInsertionPointEnd()"""
1131 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1133 def GetInsertionPoint(*args
, **kwargs
):
1134 """GetInsertionPoint() -> long"""
1135 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1137 def GetLastPosition(*args
, **kwargs
):
1138 """GetLastPosition() -> long"""
1139 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1141 def SetSelection(*args
, **kwargs
):
1142 """SetSelection(long from, long to)"""
1143 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1145 def SelectAll(*args
, **kwargs
):
1147 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1149 def SetEditable(*args
, **kwargs
):
1150 """SetEditable(bool editable)"""
1151 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1153 def write(*args
, **kwargs
):
1154 """write(wxString text)"""
1155 return _controls
.TextCtrl_write(*args
, **kwargs
)
1157 def GetString(*args
, **kwargs
):
1158 """GetString(long from, long to) -> wxString"""
1159 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1162 class TextCtrlPtr(TextCtrl
):
1163 def __init__(self
, this
):
1165 if not hasattr(self
,"thisown"): self
.thisown
= 0
1166 self
.__class
__ = TextCtrl
1167 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1169 def PreTextCtrl(*args
, **kwargs
):
1170 """PreTextCtrl() -> TextCtrl"""
1171 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1175 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1176 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1177 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1178 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1179 class TextUrlEvent(core
.CommandEvent
):
1182 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1183 def __init__(self
, *args
, **kwargs
):
1184 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1185 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1186 self
.this
= newobj
.this
1189 def GetMouseEvent(*args
, **kwargs
):
1190 """GetMouseEvent() -> MouseEvent"""
1191 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1193 def GetURLStart(*args
, **kwargs
):
1194 """GetURLStart() -> long"""
1195 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1197 def GetURLEnd(*args
, **kwargs
):
1198 """GetURLEnd() -> long"""
1199 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1202 class TextUrlEventPtr(TextUrlEvent
):
1203 def __init__(self
, this
):
1205 if not hasattr(self
,"thisown"): self
.thisown
= 0
1206 self
.__class
__ = TextUrlEvent
1207 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1209 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1210 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1211 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1212 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1214 #---------------------------------------------------------------------------
1216 class ScrollBar(core
.Control
):
1219 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1220 def __init__(self
, *args
, **kwargs
):
1221 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
1222 Size size=DefaultSize, long style=SB_HORIZONTAL,
1223 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> ScrollBar"""
1224 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1225 self
.this
= newobj
.this
1228 self
._setOORInfo
(self
)
1230 def Create(*args
, **kwargs
):
1231 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
1232 Size size=DefaultSize, long style=SB_HORIZONTAL,
1233 Validator validator=DefaultValidator, wxString name=wxPyScrollBarNameStr) -> bool"""
1234 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1236 def GetThumbPosition(*args
, **kwargs
):
1237 """GetThumbPosition() -> int"""
1238 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1240 def GetThumbSize(*args
, **kwargs
):
1241 """GetThumbSize() -> int"""
1242 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1244 GetThumbLength
= GetThumbSize
1245 def GetPageSize(*args
, **kwargs
):
1246 """GetPageSize() -> int"""
1247 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1249 def GetRange(*args
, **kwargs
):
1250 """GetRange() -> int"""
1251 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1253 def IsVertical(*args
, **kwargs
):
1254 """IsVertical() -> bool"""
1255 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1257 def SetThumbPosition(*args
, **kwargs
):
1258 """SetThumbPosition(int viewStart)"""
1259 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1261 def SetScrollbar(*args
, **kwargs
):
1262 """SetScrollbar(int position, int thumbSize, int range, int pageSize,
1263 bool refresh=True)"""
1264 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1267 class ScrollBarPtr(ScrollBar
):
1268 def __init__(self
, this
):
1270 if not hasattr(self
,"thisown"): self
.thisown
= 0
1271 self
.__class
__ = ScrollBar
1272 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1274 def PreScrollBar(*args
, **kwargs
):
1275 """PreScrollBar() -> ScrollBar"""
1276 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1280 #---------------------------------------------------------------------------
1282 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1283 SP_VERTICAL
= _controls
.SP_VERTICAL
1284 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1285 SP_WRAP
= _controls
.SP_WRAP
1286 class SpinButton(core
.Control
):
1289 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1290 def __init__(self
, *args
, **kwargs
):
1291 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
1292 Size size=DefaultSize, long style=SP_HORIZONTAL,
1293 wxString name=wxPySPIN_BUTTON_NAME) -> SpinButton"""
1294 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1295 self
.this
= newobj
.this
1298 self
._setOORInfo
(self
)
1300 def Create(*args
, **kwargs
):
1301 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
1302 Size size=DefaultSize, long style=SP_HORIZONTAL,
1303 wxString name=wxPySPIN_BUTTON_NAME) -> bool"""
1304 return _controls
.SpinButton_Create(*args
, **kwargs
)
1306 def GetValue(*args
, **kwargs
):
1307 """GetValue() -> int"""
1308 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1310 def GetMin(*args
, **kwargs
):
1311 """GetMin() -> int"""
1312 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1314 def GetMax(*args
, **kwargs
):
1315 """GetMax() -> int"""
1316 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1318 def SetValue(*args
, **kwargs
):
1319 """SetValue(int val)"""
1320 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1322 def SetMin(*args
, **kwargs
):
1323 """SetMin(int minVal)"""
1324 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1326 def SetMax(*args
, **kwargs
):
1327 """SetMax(int maxVal)"""
1328 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1330 def SetRange(*args
, **kwargs
):
1331 """SetRange(int minVal, int maxVal)"""
1332 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1334 def IsVertical(*args
, **kwargs
):
1335 """IsVertical() -> bool"""
1336 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1339 class SpinButtonPtr(SpinButton
):
1340 def __init__(self
, this
):
1342 if not hasattr(self
,"thisown"): self
.thisown
= 0
1343 self
.__class
__ = SpinButton
1344 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1346 def PreSpinButton(*args
, **kwargs
):
1347 """PreSpinButton() -> SpinButton"""
1348 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1352 class SpinCtrl(core
.Control
):
1355 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1356 def __init__(self
, *args
, **kwargs
):
1357 """__init__(Window parent, int id=-1, wxString value=wxPyEmptyString,
1358 Point pos=DefaultPosition, Size size=DefaultSize,
1359 long style=SP_ARROW_KEYS, int min=0,
1360 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> SpinCtrl"""
1361 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1362 self
.this
= newobj
.this
1365 self
._setOORInfo
(self
)
1367 def Create(*args
, **kwargs
):
1368 """Create(Window parent, int id=-1, wxString value=wxPyEmptyString,
1369 Point pos=DefaultPosition, Size size=DefaultSize,
1370 long style=SP_ARROW_KEYS, int min=0,
1371 int max=100, int initial=0, wxString name=wxPySpinCtrlNameStr) -> bool"""
1372 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1374 def GetValue(*args
, **kwargs
):
1375 """GetValue() -> int"""
1376 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1378 def SetValue(*args
, **kwargs
):
1379 """SetValue(int value)"""
1380 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1382 def SetValueString(*args
, **kwargs
):
1383 """SetValueString(wxString text)"""
1384 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1386 def SetRange(*args
, **kwargs
):
1387 """SetRange(int minVal, int maxVal)"""
1388 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1390 def GetMin(*args
, **kwargs
):
1391 """GetMin() -> int"""
1392 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1394 def GetMax(*args
, **kwargs
):
1395 """GetMax() -> int"""
1396 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1398 def SetSelection(*args
, **kwargs
):
1399 """SetSelection(long from, long to)"""
1400 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1403 class SpinCtrlPtr(SpinCtrl
):
1404 def __init__(self
, this
):
1406 if not hasattr(self
,"thisown"): self
.thisown
= 0
1407 self
.__class
__ = SpinCtrl
1408 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1410 def PreSpinCtrl(*args
, **kwargs
):
1411 """PreSpinCtrl() -> SpinCtrl"""
1412 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1416 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1417 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1419 #---------------------------------------------------------------------------
1421 class RadioBox(core
.Control
):
1424 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1425 def __init__(self
, *args
, **kwargs
):
1426 """__init__(Window parent, int id, wxString label, Point point=DefaultPosition,
1427 Size size=DefaultSize, int choices=0,
1428 wxString choices_array=None, int majorDimension=0,
1429 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1430 wxString name=wxPyRadioBoxNameStr) -> RadioBox"""
1431 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1432 self
.this
= newobj
.this
1435 self
._setOORInfo
(self
)
1437 def Create(*args
, **kwargs
):
1438 """Create(Window parent, int id, wxString label, Point point=DefaultPosition,
1439 Size size=DefaultSize, int choices=0,
1440 wxString choices_array=None, int majorDimension=0,
1441 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1442 wxString name=wxPyRadioBoxNameStr) -> bool"""
1443 return _controls
.RadioBox_Create(*args
, **kwargs
)
1445 def SetSelection(*args
, **kwargs
):
1446 """SetSelection(int n)"""
1447 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1449 def GetSelection(*args
, **kwargs
):
1450 """GetSelection() -> int"""
1451 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1453 def GetStringSelection(*args
, **kwargs
):
1454 """GetStringSelection() -> wxString"""
1455 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1457 def SetStringSelection(*args
, **kwargs
):
1458 """SetStringSelection(wxString s) -> bool"""
1459 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1461 def GetCount(*args
, **kwargs
):
1462 """GetCount() -> int"""
1463 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1465 def FindString(*args
, **kwargs
):
1466 """FindString(wxString s) -> int"""
1467 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1469 def GetString(*args
, **kwargs
):
1470 """GetString(int n) -> wxString"""
1471 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1473 def SetString(*args
, **kwargs
):
1474 """SetString(int n, wxString label)"""
1475 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1477 GetItemLabel
= GetString
1478 SetItemLabel
= SetString
1479 def EnableItem(*args
, **kwargs
):
1480 """EnableItem(int n, bool enable=True)"""
1481 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1483 def ShowItem(*args
, **kwargs
):
1484 """ShowItem(int n, bool show=True)"""
1485 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1487 def GetColumnCount(*args
, **kwargs
):
1488 """GetColumnCount() -> int"""
1489 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1491 def GetRowCount(*args
, **kwargs
):
1492 """GetRowCount() -> int"""
1493 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1495 def GetNextItem(*args
, **kwargs
):
1496 """GetNextItem(int item, wxDirection dir, long style) -> int"""
1497 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1500 class RadioBoxPtr(RadioBox
):
1501 def __init__(self
, this
):
1503 if not hasattr(self
,"thisown"): self
.thisown
= 0
1504 self
.__class
__ = RadioBox
1505 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1507 def PreRadioBox(*args
, **kwargs
):
1508 """PreRadioBox() -> RadioBox"""
1509 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1513 #---------------------------------------------------------------------------
1515 class RadioButton(core
.Control
):
1518 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1519 def __init__(self
, *args
, **kwargs
):
1520 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1521 Size size=DefaultSize, long style=0,
1522 Validator validator=DefaultValidator,
1523 wxString name=wxPyRadioButtonNameStr) -> RadioButton"""
1524 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1525 self
.this
= newobj
.this
1528 self
._setOORInfo
(self
)
1530 def Create(*args
, **kwargs
):
1531 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1532 Size size=DefaultSize, long style=0,
1533 Validator validator=DefaultValidator,
1534 wxString name=wxPyRadioButtonNameStr) -> bool"""
1535 return _controls
.RadioButton_Create(*args
, **kwargs
)
1537 def GetValue(*args
, **kwargs
):
1538 """GetValue() -> bool"""
1539 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1541 def SetValue(*args
, **kwargs
):
1542 """SetValue(bool value)"""
1543 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1546 class RadioButtonPtr(RadioButton
):
1547 def __init__(self
, this
):
1549 if not hasattr(self
,"thisown"): self
.thisown
= 0
1550 self
.__class
__ = RadioButton
1551 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1553 def PreRadioButton(*args
, **kwargs
):
1554 """PreRadioButton() -> RadioButton"""
1555 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1559 #---------------------------------------------------------------------------
1561 class Slider(core
.Control
):
1564 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1565 def __init__(self
, *args
, **kwargs
):
1566 """__init__(Window parent, int id, int value, int minValue, int maxValue,
1567 Point point=DefaultPosition, Size size=DefaultSize,
1568 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1569 wxString name=wxPySliderNameStr) -> Slider"""
1570 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1571 self
.this
= newobj
.this
1574 self
._setOORInfo
(self
)
1576 def Create(*args
, **kwargs
):
1577 """Create(Window parent, int id, int value, int minValue, int maxValue,
1578 Point point=DefaultPosition, Size size=DefaultSize,
1579 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1580 wxString name=wxPySliderNameStr) -> bool"""
1581 return _controls
.Slider_Create(*args
, **kwargs
)
1583 def GetValue(*args
, **kwargs
):
1584 """GetValue() -> int"""
1585 return _controls
.Slider_GetValue(*args
, **kwargs
)
1587 def SetValue(*args
, **kwargs
):
1588 """SetValue(int value)"""
1589 return _controls
.Slider_SetValue(*args
, **kwargs
)
1591 def SetRange(*args
, **kwargs
):
1592 """SetRange(int minValue, int maxValue)"""
1593 return _controls
.Slider_SetRange(*args
, **kwargs
)
1595 def GetMin(*args
, **kwargs
):
1596 """GetMin() -> int"""
1597 return _controls
.Slider_GetMin(*args
, **kwargs
)
1599 def GetMax(*args
, **kwargs
):
1600 """GetMax() -> int"""
1601 return _controls
.Slider_GetMax(*args
, **kwargs
)
1603 def SetMin(*args
, **kwargs
):
1604 """SetMin(int minValue)"""
1605 return _controls
.Slider_SetMin(*args
, **kwargs
)
1607 def SetMax(*args
, **kwargs
):
1608 """SetMax(int maxValue)"""
1609 return _controls
.Slider_SetMax(*args
, **kwargs
)
1611 def SetLineSize(*args
, **kwargs
):
1612 """SetLineSize(int lineSize)"""
1613 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1615 def SetPageSize(*args
, **kwargs
):
1616 """SetPageSize(int pageSize)"""
1617 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1619 def GetLineSize(*args
, **kwargs
):
1620 """GetLineSize() -> int"""
1621 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1623 def GetPageSize(*args
, **kwargs
):
1624 """GetPageSize() -> int"""
1625 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1627 def SetThumbLength(*args
, **kwargs
):
1628 """SetThumbLength(int lenPixels)"""
1629 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1631 def GetThumbLength(*args
, **kwargs
):
1632 """GetThumbLength() -> int"""
1633 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1635 def SetTickFreq(*args
, **kwargs
):
1636 """SetTickFreq(int n, int pos)"""
1637 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1639 def GetTickFreq(*args
, **kwargs
):
1640 """GetTickFreq() -> int"""
1641 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1643 def ClearTicks(*args
, **kwargs
):
1645 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1647 def SetTick(*args
, **kwargs
):
1648 """SetTick(int tickPos)"""
1649 return _controls
.Slider_SetTick(*args
, **kwargs
)
1651 def ClearSel(*args
, **kwargs
):
1653 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1655 def GetSelEnd(*args
, **kwargs
):
1656 """GetSelEnd() -> int"""
1657 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1659 def GetSelStart(*args
, **kwargs
):
1660 """GetSelStart() -> int"""
1661 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1663 def SetSelection(*args
, **kwargs
):
1664 """SetSelection(int min, int max)"""
1665 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1668 class SliderPtr(Slider
):
1669 def __init__(self
, this
):
1671 if not hasattr(self
,"thisown"): self
.thisown
= 0
1672 self
.__class
__ = Slider
1673 _controls
.Slider_swigregister(SliderPtr
)
1675 def PreSlider(*args
, **kwargs
):
1676 """PreSlider() -> Slider"""
1677 val
= _controls
.new_PreSlider(*args
, **kwargs
)
1681 #---------------------------------------------------------------------------
1683 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
1684 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
1686 class ToggleButton(core
.Control
):
1689 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1690 def __init__(self
, *args
, **kwargs
):
1691 """__init__(Window parent, int id, wxString label, Point pos=DefaultPosition,
1692 Size size=DefaultSize, long style=0,
1693 Validator validator=DefaultValidator,
1694 wxString name=wxPyToggleButtonNameStr) -> ToggleButton"""
1695 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
1696 self
.this
= newobj
.this
1699 self
._setOORInfo
(self
)
1701 def Create(*args
, **kwargs
):
1702 """Create(Window parent, int id, wxString label, Point pos=DefaultPosition,
1703 Size size=DefaultSize, long style=0,
1704 Validator validator=DefaultValidator,
1705 wxString name=wxPyToggleButtonNameStr) -> bool"""
1706 return _controls
.ToggleButton_Create(*args
, **kwargs
)
1708 def SetValue(*args
, **kwargs
):
1709 """SetValue(bool value)"""
1710 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
1712 def GetValue(*args
, **kwargs
):
1713 """GetValue() -> bool"""
1714 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
1716 def SetLabel(*args
, **kwargs
):
1717 """SetLabel(wxString label)"""
1718 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
1721 class ToggleButtonPtr(ToggleButton
):
1722 def __init__(self
, this
):
1724 if not hasattr(self
,"thisown"): self
.thisown
= 0
1725 self
.__class
__ = ToggleButton
1726 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
1728 def PreToggleButton(*args
, **kwargs
):
1729 """PreToggleButton() -> ToggleButton"""
1730 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
1734 #---------------------------------------------------------------------------
1736 class BookCtrl(core
.Control
):
1738 def __init__(self
): raise RuntimeError, "No constructor defined"
1740 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1741 def GetPageCount(*args
, **kwargs
):
1742 """GetPageCount() -> size_t"""
1743 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
1745 def GetPage(*args
, **kwargs
):
1746 """GetPage(size_t n) -> Window"""
1747 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
1749 def GetSelection(*args
, **kwargs
):
1750 """GetSelection() -> int"""
1751 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
1753 def SetPageText(*args
, **kwargs
):
1754 """SetPageText(size_t n, wxString strText) -> bool"""
1755 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
1757 def GetPageText(*args
, **kwargs
):
1758 """GetPageText(size_t n) -> wxString"""
1759 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
1761 def SetImageList(*args
, **kwargs
):
1762 """SetImageList(wxImageList imageList)"""
1763 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
1765 def AssignImageList(*args
, **kwargs
):
1766 """AssignImageList(wxImageList imageList)"""
1767 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
1771 def GetImageList(*args
, **kwargs
):
1772 """GetImageList() -> wxImageList"""
1773 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
1775 def GetPageImage(*args
, **kwargs
):
1776 """GetPageImage(size_t n) -> int"""
1777 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
1779 def SetPageImage(*args
, **kwargs
):
1780 """SetPageImage(size_t n, int imageId) -> bool"""
1781 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
1783 def SetPageSize(*args
, **kwargs
):
1784 """SetPageSize(Size size)"""
1785 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
1787 def CalcSizeFromPage(*args
, **kwargs
):
1788 """CalcSizeFromPage(Size sizePage) -> Size"""
1789 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
1791 def DeletePage(*args
, **kwargs
):
1792 """DeletePage(size_t n) -> bool"""
1793 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
1795 def RemovePage(*args
, **kwargs
):
1796 """RemovePage(size_t n) -> bool"""
1797 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
1799 def DeleteAllPages(*args
, **kwargs
):
1800 """DeleteAllPages() -> bool"""
1801 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
1803 def AddPage(*args
, **kwargs
):
1804 """AddPage(Window page, wxString text, bool select=False, int imageId=-1) -> bool"""
1805 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
1807 def InsertPage(*args
, **kwargs
):
1808 """InsertPage(size_t n, Window page, wxString text, bool select=False,
1809 int imageId=-1) -> bool"""
1810 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
1812 def SetSelection(*args
, **kwargs
):
1813 """SetSelection(size_t n) -> int"""
1814 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
1816 def AdvanceSelection(*args
, **kwargs
):
1817 """AdvanceSelection(bool forward=True)"""
1818 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
1821 class BookCtrlPtr(BookCtrl
):
1822 def __init__(self
, this
):
1824 if not hasattr(self
,"thisown"): self
.thisown
= 0
1825 self
.__class
__ = BookCtrl
1826 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
1828 class BookCtrlEvent(core
.NotifyEvent
):
1831 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1832 def __init__(self
, *args
, **kwargs
):
1833 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1834 int nOldSel=-1) -> BookCtrlEvent"""
1835 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
1836 self
.this
= newobj
.this
1839 def GetSelection(*args
, **kwargs
):
1840 """GetSelection() -> int"""
1841 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
1843 def SetSelection(*args
, **kwargs
):
1844 """SetSelection(int nSel)"""
1845 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
1847 def GetOldSelection(*args
, **kwargs
):
1848 """GetOldSelection() -> int"""
1849 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
1851 def SetOldSelection(*args
, **kwargs
):
1852 """SetOldSelection(int nOldSel)"""
1853 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
1856 class BookCtrlEventPtr(BookCtrlEvent
):
1857 def __init__(self
, this
):
1859 if not hasattr(self
,"thisown"): self
.thisown
= 0
1860 self
.__class
__ = BookCtrlEvent
1861 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
1863 #---------------------------------------------------------------------------
1865 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
1866 NB_TOP
= _controls
.NB_TOP
1867 NB_LEFT
= _controls
.NB_LEFT
1868 NB_RIGHT
= _controls
.NB_RIGHT
1869 NB_BOTTOM
= _controls
.NB_BOTTOM
1870 NB_MULTILINE
= _controls
.NB_MULTILINE
1871 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
1872 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
1873 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
1874 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
1875 class Notebook(BookCtrl
):
1878 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1879 def __init__(self
, *args
, **kwargs
):
1880 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1881 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> Notebook"""
1882 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
1883 self
.this
= newobj
.this
1886 self
._setOORInfo
(self
)
1888 def Create(*args
, **kwargs
):
1889 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1890 long style=0, wxString name=wxPyNOTEBOOK_NAME) -> bool"""
1891 return _controls
.Notebook_Create(*args
, **kwargs
)
1893 def GetRowCount(*args
, **kwargs
):
1894 """GetRowCount() -> int"""
1895 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
1897 def SetPadding(*args
, **kwargs
):
1898 """SetPadding(Size padding)"""
1899 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
1901 def SetTabSize(*args
, **kwargs
):
1902 """SetTabSize(Size sz)"""
1903 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
1905 def HitTest(*args
, **kwargs
):
1906 """HitTest(Point pt) -> (tab, where)
1908 Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags."""
1909 return _controls
.Notebook_HitTest(*args
, **kwargs
)
1911 def CalcSizeFromPage(*args
, **kwargs
):
1912 """CalcSizeFromPage(Size sizePage) -> Size"""
1913 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
1916 class NotebookPtr(Notebook
):
1917 def __init__(self
, this
):
1919 if not hasattr(self
,"thisown"): self
.thisown
= 0
1920 self
.__class
__ = Notebook
1921 _controls
.Notebook_swigregister(NotebookPtr
)
1923 def PreNotebook(*args
, **kwargs
):
1924 """PreNotebook() -> Notebook"""
1925 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
1929 class NotebookEvent(BookCtrlEvent
):
1932 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1933 def __init__(self
, *args
, **kwargs
):
1934 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
1935 int nOldSel=-1) -> NotebookEvent"""
1936 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
1937 self
.this
= newobj
.this
1941 class NotebookEventPtr(NotebookEvent
):
1942 def __init__(self
, this
):
1944 if not hasattr(self
,"thisown"): self
.thisown
= 0
1945 self
.__class
__ = NotebookEvent
1946 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
1948 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
1949 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
1951 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
1952 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
1954 #----------------------------------------------------------------------------
1956 class NotebookPage(wx
.Panel
):
1958 There is an old (and apparently unsolvable) bug when placing a
1959 window with a nonstandard background colour in a wxNotebook on
1960 wxGTK, as the notbooks's background colour would always be used
1961 when the window is refreshed. The solution is to place a panel in
1962 the notbook and the coloured window on the panel, sized to cover
1963 the panel. This simple class does that for you, just put an
1964 instance of this in the notebook and make your regular window a
1965 child of this one and it will handle the resize for you.
1967 def __init__(self
, parent
, id=-1,
1968 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
1969 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
1970 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
1972 EVT_SIZE(self
, self
.OnSize
)
1974 def OnSize(self
, evt
):
1975 if self
.child
is None:
1976 children
= self
.GetChildren()
1978 self
.child
= children
[0]
1980 self
.child
.SetPosition((0,0))
1981 self
.child
.SetSize(self
.GetSize())
1984 #---------------------------------------------------------------------------
1986 LB_DEFAULT
= _controls
.LB_DEFAULT
1987 LB_TOP
= _controls
.LB_TOP
1988 LB_BOTTOM
= _controls
.LB_BOTTOM
1989 LB_LEFT
= _controls
.LB_LEFT
1990 LB_RIGHT
= _controls
.LB_RIGHT
1991 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
1992 class Listbook(BookCtrl
):
1995 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1996 def __init__(self
, *args
, **kwargs
):
1997 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1998 long style=0, wxString name=wxPyEmptyString) -> Listbook"""
1999 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2000 self
.this
= newobj
.this
2003 self
._setOORInfo
(self
)
2005 def Create(*args
, **kwargs
):
2006 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2007 long style=0, wxString name=wxPyEmptyString) -> bool"""
2008 return _controls
.Listbook_Create(*args
, **kwargs
)
2010 def IsVertical(*args
, **kwargs
):
2011 """IsVertical() -> bool"""
2012 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2015 class ListbookPtr(Listbook
):
2016 def __init__(self
, this
):
2018 if not hasattr(self
,"thisown"): self
.thisown
= 0
2019 self
.__class
__ = Listbook
2020 _controls
.Listbook_swigregister(ListbookPtr
)
2022 def PreListbook(*args
, **kwargs
):
2023 """PreListbook() -> Listbook"""
2024 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2028 class ListbookEvent(BookCtrlEvent
):
2031 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2032 def __init__(self
, *args
, **kwargs
):
2033 """__init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2034 int nOldSel=-1) -> ListbookEvent"""
2035 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2036 self
.this
= newobj
.this
2040 class ListbookEventPtr(ListbookEvent
):
2041 def __init__(self
, this
):
2043 if not hasattr(self
,"thisown"): self
.thisown
= 0
2044 self
.__class
__ = ListbookEvent
2045 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2047 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2048 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2049 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2050 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2052 #---------------------------------------------------------------------------
2054 class BookCtrlSizer(core
.Sizer
):
2057 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2058 def __init__(self
, *args
, **kwargs
):
2059 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2060 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2061 self
.this
= newobj
.this
2064 self
._setOORInfo
(self
)
2066 def RecalcSizes(*args
, **kwargs
):
2068 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2070 def CalcMin(*args
, **kwargs
):
2071 """CalcMin() -> Size"""
2072 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2074 def GetControl(*args
, **kwargs
):
2075 """GetControl() -> BookCtrl"""
2076 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2079 class BookCtrlSizerPtr(BookCtrlSizer
):
2080 def __init__(self
, this
):
2082 if not hasattr(self
,"thisown"): self
.thisown
= 0
2083 self
.__class
__ = BookCtrlSizer
2084 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2086 class NotebookSizer(core
.Sizer
):
2089 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2090 def __init__(self
, *args
, **kwargs
):
2091 """__init__(Notebook nb) -> NotebookSizer"""
2092 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2093 self
.this
= newobj
.this
2096 self
._setOORInfo
(self
)
2098 def RecalcSizes(*args
, **kwargs
):
2100 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2102 def CalcMin(*args
, **kwargs
):
2103 """CalcMin() -> Size"""
2104 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2106 def GetNotebook(*args
, **kwargs
):
2107 """GetNotebook() -> Notebook"""
2108 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2111 class NotebookSizerPtr(NotebookSizer
):
2112 def __init__(self
, this
):
2114 if not hasattr(self
,"thisown"): self
.thisown
= 0
2115 self
.__class
__ = NotebookSizer
2116 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2118 #---------------------------------------------------------------------------
2120 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2121 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2122 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2123 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2124 TB_VERTICAL
= _controls
.TB_VERTICAL
2125 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2126 TB_FLAT
= _controls
.TB_FLAT
2127 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2128 TB_NOICONS
= _controls
.TB_NOICONS
2129 TB_TEXT
= _controls
.TB_TEXT
2130 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2131 TB_NOALIGN
= _controls
.TB_NOALIGN
2132 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2133 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2134 class ToolBarToolBase(core
.Object
):
2136 def __init__(self
): raise RuntimeError, "No constructor defined"
2138 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2139 def GetId(*args
, **kwargs
):
2140 """GetId() -> int"""
2141 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2143 def GetControl(*args
, **kwargs
):
2144 """GetControl() -> Control"""
2145 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2147 def GetToolBar(*args
, **kwargs
):
2148 """GetToolBar() -> ToolBarBase"""
2149 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2151 def IsButton(*args
, **kwargs
):
2152 """IsButton() -> int"""
2153 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2155 def IsControl(*args
, **kwargs
):
2156 """IsControl() -> int"""
2157 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2159 def IsSeparator(*args
, **kwargs
):
2160 """IsSeparator() -> int"""
2161 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2163 def GetStyle(*args
, **kwargs
):
2164 """GetStyle() -> int"""
2165 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2167 def GetKind(*args
, **kwargs
):
2168 """GetKind() -> wxItemKind"""
2169 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2171 def IsEnabled(*args
, **kwargs
):
2172 """IsEnabled() -> bool"""
2173 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2175 def IsToggled(*args
, **kwargs
):
2176 """IsToggled() -> bool"""
2177 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2179 def CanBeToggled(*args
, **kwargs
):
2180 """CanBeToggled() -> bool"""
2181 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2183 def GetNormalBitmap(*args
, **kwargs
):
2184 """GetNormalBitmap() -> wxBitmap"""
2185 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2187 def GetDisabledBitmap(*args
, **kwargs
):
2188 """GetDisabledBitmap() -> wxBitmap"""
2189 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2191 def GetBitmap(*args
, **kwargs
):
2192 """GetBitmap() -> wxBitmap"""
2193 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2195 def GetLabel(*args
, **kwargs
):
2196 """GetLabel() -> wxString"""
2197 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2199 def GetShortHelp(*args
, **kwargs
):
2200 """GetShortHelp() -> wxString"""
2201 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2203 def GetLongHelp(*args
, **kwargs
):
2204 """GetLongHelp() -> wxString"""
2205 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2207 def Enable(*args
, **kwargs
):
2208 """Enable(bool enable) -> bool"""
2209 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2211 def Toggle(*args
, **kwargs
):
2213 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2215 def SetToggle(*args
, **kwargs
):
2216 """SetToggle(bool toggle) -> bool"""
2217 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2219 def SetShortHelp(*args
, **kwargs
):
2220 """SetShortHelp(wxString help) -> bool"""
2221 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2223 def SetLongHelp(*args
, **kwargs
):
2224 """SetLongHelp(wxString help) -> bool"""
2225 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2227 def SetNormalBitmap(*args
, **kwargs
):
2228 """SetNormalBitmap(wxBitmap bmp)"""
2229 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2231 def SetDisabledBitmap(*args
, **kwargs
):
2232 """SetDisabledBitmap(wxBitmap bmp)"""
2233 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2235 def SetLabel(*args
, **kwargs
):
2236 """SetLabel(wxString label)"""
2237 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2239 def Detach(*args
, **kwargs
):
2241 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2243 def Attach(*args
, **kwargs
):
2244 """Attach(ToolBarBase tbar)"""
2245 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2247 def GetClientData(*args
, **kwargs
):
2248 """GetClientData() -> PyObject"""
2249 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2251 def SetClientData(*args
, **kwargs
):
2252 """SetClientData(PyObject clientData)"""
2253 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2255 GetBitmap1
= GetNormalBitmap
2256 GetBitmap2
= GetDisabledBitmap
2257 SetBitmap1
= SetNormalBitmap
2258 SetBitmap2
= SetDisabledBitmap
2261 class ToolBarToolBasePtr(ToolBarToolBase
):
2262 def __init__(self
, this
):
2264 if not hasattr(self
,"thisown"): self
.thisown
= 0
2265 self
.__class
__ = ToolBarToolBase
2266 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2268 class ToolBarBase(core
.Control
):
2270 def __init__(self
): raise RuntimeError, "No constructor defined"
2272 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2273 def DoAddTool(*args
, **kwargs
):
2274 """DoAddTool(int id, wxString label, wxBitmap bitmap, wxBitmap bmpDisabled=wxNullBitmap,
2275 wxItemKind kind=ITEM_NORMAL,
2276 wxString shortHelp=wxPyEmptyString,
2277 wxString longHelp=wxPyEmptyString, PyObject clientData=None) -> ToolBarToolBase"""
2278 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2280 def DoInsertTool(*args
, **kwargs
):
2281 """DoInsertTool(size_t pos, int id, wxString label, wxBitmap bitmap,
2282 wxBitmap bmpDisabled=wxNullBitmap, wxItemKind kind=ITEM_NORMAL,
2283 wxString shortHelp=wxPyEmptyString,
2284 wxString longHelp=wxPyEmptyString,
2285 PyObject clientData=None) -> ToolBarToolBase"""
2286 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2288 # These match the original Add methods for this class, kept for
2289 # backwards compatibility with versions < 2.3.3.
2292 def AddTool(self
, id, bitmap
,
2293 pushedBitmap
= wx
.NullBitmap
,
2296 shortHelpString
= '',
2297 longHelpString
= '') :
2298 '''Old style method to add a tool to the toolbar.'''
2299 kind
= wx
.ITEM_NORMAL
2300 if isToggle
: kind
= wx
.ITEM_CHECK
2301 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2302 shortHelpString
, longHelpString
, clientData
)
2304 def AddSimpleTool(self
, id, bitmap
,
2305 shortHelpString
= '',
2306 longHelpString
= '',
2308 '''Old style method to add a tool to the toolbar.'''
2309 kind
= wx
.ITEM_NORMAL
2310 if isToggle
: kind
= wx
.ITEM_CHECK
2311 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2312 shortHelpString
, longHelpString
, None)
2314 def InsertTool(self
, pos
, id, bitmap
,
2315 pushedBitmap
= wx
.NullBitmap
,
2318 shortHelpString
= '',
2319 longHelpString
= ''):
2320 '''Old style method to insert a tool in the toolbar.'''
2321 kind
= wx
.ITEM_NORMAL
2322 if isToggle
: kind
= wx
.ITEM_CHECK
2323 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2324 shortHelpString
, longHelpString
, clientData
)
2326 def InsertSimpleTool(self
, pos
, id, bitmap
,
2327 shortHelpString
= '',
2328 longHelpString
= '',
2330 '''Old style method to insert a tool in the toolbar.'''
2331 kind
= wx
.ITEM_NORMAL
2332 if isToggle
: kind
= wx
.ITEM_CHECK
2333 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2334 shortHelpString
, longHelpString
, None)
2337 # The following are the new toolbar Add methods starting with
2338 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2339 # able to keep backwards compatibility with using the above
2340 # methods. Eventually these should migrate to be the methods used
2341 # primarily and lose the 'Label' in the name...
2343 def AddLabelTool(self
, id, label
, bitmap
,
2344 bmpDisabled
= wx
.NullBitmap
,
2345 kind
= wx
.ITEM_NORMAL
,
2346 shortHelp
= '', longHelp
= '',
2349 The full AddTool() function.
2351 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2352 is created and used as the disabled image.
2354 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2355 shortHelp
, longHelp
, clientData
)
2358 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2359 bmpDisabled
= wx
.NullBitmap
,
2360 kind
= wx
.ITEM_NORMAL
,
2361 shortHelp
= '', longHelp
= '',
2364 Insert the new tool at the given position, if pos == GetToolsCount(), it
2365 is equivalent to AddTool()
2367 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2368 shortHelp
, longHelp
, clientData
)
2370 def AddCheckLabelTool(self
, id, label
, bitmap
,
2371 bmpDisabled
= wx
.NullBitmap
,
2372 shortHelp
= '', longHelp
= '',
2374 '''Add a check tool, i.e. a tool which can be toggled'''
2375 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2376 shortHelp
, longHelp
, clientData
)
2378 def AddRadioLabelTool(self
, id, label
, bitmap
,
2379 bmpDisabled
= wx
.NullBitmap
,
2380 shortHelp
= '', longHelp
= '',
2383 Add a radio tool, i.e. a tool which can be toggled and releases any
2384 other toggled radio tools in the same group when it happens
2386 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2387 shortHelp
, longHelp
, clientData
)
2390 # For consistency with the backwards compatible methods above, here are
2391 # some non-'Label' versions of the Check and Radio methods
2392 def AddCheckTool(self
, id, bitmap
,
2393 bmpDisabled
= wx
.NullBitmap
,
2394 shortHelp
= '', longHelp
= '',
2396 '''Add a check tool, i.e. a tool which can be toggled'''
2397 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2398 shortHelp
, longHelp
, clientData
)
2400 def AddRadioTool(self
, id, bitmap
,
2401 bmpDisabled
= wx
.NullBitmap
,
2402 shortHelp
= '', longHelp
= '',
2405 Add a radio tool, i.e. a tool which can be toggled and releases any
2406 other toggled radio tools in the same group when it happens
2408 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2409 shortHelp
, longHelp
, clientData
)
2411 def AddControl(*args
, **kwargs
):
2412 """AddControl(Control control) -> ToolBarToolBase"""
2413 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2415 def InsertControl(*args
, **kwargs
):
2416 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2417 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2419 def FindControl(*args
, **kwargs
):
2420 """FindControl(int id) -> Control"""
2421 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2423 def AddSeparator(*args
, **kwargs
):
2424 """AddSeparator() -> ToolBarToolBase"""
2425 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2427 def InsertSeparator(*args
, **kwargs
):
2428 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2429 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2431 def RemoveTool(*args
, **kwargs
):
2432 """RemoveTool(int id) -> ToolBarToolBase"""
2433 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2435 def DeleteToolByPos(*args
, **kwargs
):
2436 """DeleteToolByPos(size_t pos) -> bool"""
2437 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2439 def DeleteTool(*args
, **kwargs
):
2440 """DeleteTool(int id) -> bool"""
2441 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2443 def ClearTools(*args
, **kwargs
):
2445 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2447 def Realize(*args
, **kwargs
):
2448 """Realize() -> bool"""
2449 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2451 def EnableTool(*args
, **kwargs
):
2452 """EnableTool(int id, bool enable)"""
2453 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2455 def ToggleTool(*args
, **kwargs
):
2456 """ToggleTool(int id, bool toggle)"""
2457 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2459 def SetToggle(*args
, **kwargs
):
2460 """SetToggle(int id, bool toggle)"""
2461 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2463 def GetToolClientData(*args
, **kwargs
):
2464 """GetToolClientData(int id) -> PyObject"""
2465 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2467 def SetToolClientData(*args
, **kwargs
):
2468 """SetToolClientData(int id, PyObject clientData)"""
2469 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2471 def GetToolPos(*args
, **kwargs
):
2472 """GetToolPos(int id) -> int"""
2473 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2475 def GetToolState(*args
, **kwargs
):
2476 """GetToolState(int id) -> bool"""
2477 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2479 def GetToolEnabled(*args
, **kwargs
):
2480 """GetToolEnabled(int id) -> bool"""
2481 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2483 def SetToolShortHelp(*args
, **kwargs
):
2484 """SetToolShortHelp(int id, wxString helpString)"""
2485 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2487 def GetToolShortHelp(*args
, **kwargs
):
2488 """GetToolShortHelp(int id) -> wxString"""
2489 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2491 def SetToolLongHelp(*args
, **kwargs
):
2492 """SetToolLongHelp(int id, wxString helpString)"""
2493 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2495 def GetToolLongHelp(*args
, **kwargs
):
2496 """GetToolLongHelp(int id) -> wxString"""
2497 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2499 def SetMarginsXY(*args
, **kwargs
):
2500 """SetMarginsXY(int x, int y)"""
2501 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2503 def SetMargins(*args
, **kwargs
):
2504 """SetMargins(Size size)"""
2505 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2507 def SetToolPacking(*args
, **kwargs
):
2508 """SetToolPacking(int packing)"""
2509 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2511 def SetToolSeparation(*args
, **kwargs
):
2512 """SetToolSeparation(int separation)"""
2513 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2515 def GetToolMargins(*args
, **kwargs
):
2516 """GetToolMargins() -> Size"""
2517 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2519 def GetMargins(*args
, **kwargs
):
2520 """GetMargins() -> Size"""
2521 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2523 def GetToolPacking(*args
, **kwargs
):
2524 """GetToolPacking() -> int"""
2525 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2527 def GetToolSeparation(*args
, **kwargs
):
2528 """GetToolSeparation() -> int"""
2529 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2531 def SetRows(*args
, **kwargs
):
2532 """SetRows(int nRows)"""
2533 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2535 def SetMaxRowsCols(*args
, **kwargs
):
2536 """SetMaxRowsCols(int rows, int cols)"""
2537 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2539 def GetMaxRows(*args
, **kwargs
):
2540 """GetMaxRows() -> int"""
2541 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2543 def GetMaxCols(*args
, **kwargs
):
2544 """GetMaxCols() -> int"""
2545 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2547 def SetToolBitmapSize(*args
, **kwargs
):
2548 """SetToolBitmapSize(Size size)"""
2549 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2551 def GetToolBitmapSize(*args
, **kwargs
):
2552 """GetToolBitmapSize() -> Size"""
2553 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2555 def GetToolSize(*args
, **kwargs
):
2556 """GetToolSize() -> Size"""
2557 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2559 def FindToolForPosition(*args
, **kwargs
):
2560 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2561 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2563 def IsVertical(*args
, **kwargs
):
2564 """IsVertical() -> bool"""
2565 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2568 class ToolBarBasePtr(ToolBarBase
):
2569 def __init__(self
, this
):
2571 if not hasattr(self
,"thisown"): self
.thisown
= 0
2572 self
.__class
__ = ToolBarBase
2573 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2575 class ToolBar(ToolBarBase
):
2578 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2579 def __init__(self
, *args
, **kwargs
):
2580 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2581 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2582 wxString name=wxPyToolBarNameStr) -> ToolBar"""
2583 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2584 self
.this
= newobj
.this
2587 self
._setOORInfo
(self
)
2589 def Create(*args
, **kwargs
):
2590 """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2591 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2592 wxString name=wxPyToolBarNameStr) -> bool"""
2593 return _controls
.ToolBar_Create(*args
, **kwargs
)
2595 def FindToolForPosition(*args
, **kwargs
):
2596 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2597 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2600 class ToolBarPtr(ToolBar
):
2601 def __init__(self
, this
):
2603 if not hasattr(self
,"thisown"): self
.thisown
= 0
2604 self
.__class
__ = ToolBar
2605 _controls
.ToolBar_swigregister(ToolBarPtr
)
2607 def PreToolBar(*args
, **kwargs
):
2608 """PreToolBar() -> ToolBar"""
2609 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2613 #---------------------------------------------------------------------------
2615 LC_VRULES
= _controls
.LC_VRULES
2616 LC_HRULES
= _controls
.LC_HRULES
2617 LC_ICON
= _controls
.LC_ICON
2618 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2619 LC_LIST
= _controls
.LC_LIST
2620 LC_REPORT
= _controls
.LC_REPORT
2621 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2622 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2623 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2624 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2625 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2626 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2627 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2628 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2629 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2630 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2631 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2632 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2633 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2634 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2635 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2636 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2637 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2638 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2639 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2640 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2641 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2642 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2643 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2644 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2645 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2646 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2647 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2648 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2649 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
2650 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
2651 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
2652 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
2653 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
2654 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
2655 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
2656 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
2657 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
2658 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
2659 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
2660 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
2661 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
2662 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
2663 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
2664 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
2665 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
2666 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
2667 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
2668 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
2669 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
2670 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
2671 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
2672 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
2673 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
2674 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
2675 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
2676 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
2677 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
2678 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
2679 LIST_FIND_UP
= _controls
.LIST_FIND_UP
2680 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
2681 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
2682 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
2683 #---------------------------------------------------------------------------
2685 class ListItemAttr(object):
2688 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2689 def __init__(self
, *args
, **kwargs
):
2690 """__init__(wxColour colText=wxNullColour, wxColour colBack=wxNullColour,
2691 wxFont font=wxNullFont) -> ListItemAttr"""
2692 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
2693 self
.this
= newobj
.this
2696 def SetTextColour(*args
, **kwargs
):
2697 """SetTextColour(wxColour colText)"""
2698 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
2700 def SetBackgroundColour(*args
, **kwargs
):
2701 """SetBackgroundColour(wxColour colBack)"""
2702 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
2704 def SetFont(*args
, **kwargs
):
2705 """SetFont(wxFont font)"""
2706 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
2708 def HasTextColour(*args
, **kwargs
):
2709 """HasTextColour() -> bool"""
2710 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
2712 def HasBackgroundColour(*args
, **kwargs
):
2713 """HasBackgroundColour() -> bool"""
2714 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
2716 def HasFont(*args
, **kwargs
):
2717 """HasFont() -> bool"""
2718 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
2720 def GetTextColour(*args
, **kwargs
):
2721 """GetTextColour() -> wxColour"""
2722 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
2724 def GetBackgroundColour(*args
, **kwargs
):
2725 """GetBackgroundColour() -> wxColour"""
2726 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
2728 def GetFont(*args
, **kwargs
):
2729 """GetFont() -> wxFont"""
2730 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
2732 def Destroy(*args
, **kwargs
):
2734 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
2737 class ListItemAttrPtr(ListItemAttr
):
2738 def __init__(self
, this
):
2740 if not hasattr(self
,"thisown"): self
.thisown
= 0
2741 self
.__class
__ = ListItemAttr
2742 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
2744 #---------------------------------------------------------------------------
2746 class ListItem(core
.Object
):
2749 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2750 def __init__(self
, *args
, **kwargs
):
2751 """__init__() -> ListItem"""
2752 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
2753 self
.this
= newobj
.this
2756 def __del__(self
, destroy
=_controls
.delete_ListItem
):
2759 if self
.thisown
: destroy(self
)
2762 def Clear(*args
, **kwargs
):
2764 return _controls
.ListItem_Clear(*args
, **kwargs
)
2766 def ClearAttributes(*args
, **kwargs
):
2767 """ClearAttributes()"""
2768 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
2770 def SetMask(*args
, **kwargs
):
2771 """SetMask(long mask)"""
2772 return _controls
.ListItem_SetMask(*args
, **kwargs
)
2774 def SetId(*args
, **kwargs
):
2775 """SetId(long id)"""
2776 return _controls
.ListItem_SetId(*args
, **kwargs
)
2778 def SetColumn(*args
, **kwargs
):
2779 """SetColumn(int col)"""
2780 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
2782 def SetState(*args
, **kwargs
):
2783 """SetState(long state)"""
2784 return _controls
.ListItem_SetState(*args
, **kwargs
)
2786 def SetStateMask(*args
, **kwargs
):
2787 """SetStateMask(long stateMask)"""
2788 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
2790 def SetText(*args
, **kwargs
):
2791 """SetText(wxString text)"""
2792 return _controls
.ListItem_SetText(*args
, **kwargs
)
2794 def SetImage(*args
, **kwargs
):
2795 """SetImage(int image)"""
2796 return _controls
.ListItem_SetImage(*args
, **kwargs
)
2798 def SetData(*args
, **kwargs
):
2799 """SetData(long data)"""
2800 return _controls
.ListItem_SetData(*args
, **kwargs
)
2802 def SetWidth(*args
, **kwargs
):
2803 """SetWidth(int width)"""
2804 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
2806 def SetAlign(*args
, **kwargs
):
2807 """SetAlign(wxListColumnFormat align)"""
2808 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
2810 def SetTextColour(*args
, **kwargs
):
2811 """SetTextColour(wxColour colText)"""
2812 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
2814 def SetBackgroundColour(*args
, **kwargs
):
2815 """SetBackgroundColour(wxColour colBack)"""
2816 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
2818 def SetFont(*args
, **kwargs
):
2819 """SetFont(wxFont font)"""
2820 return _controls
.ListItem_SetFont(*args
, **kwargs
)
2822 def GetMask(*args
, **kwargs
):
2823 """GetMask() -> long"""
2824 return _controls
.ListItem_GetMask(*args
, **kwargs
)
2826 def GetId(*args
, **kwargs
):
2827 """GetId() -> long"""
2828 return _controls
.ListItem_GetId(*args
, **kwargs
)
2830 def GetColumn(*args
, **kwargs
):
2831 """GetColumn() -> int"""
2832 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
2834 def GetState(*args
, **kwargs
):
2835 """GetState() -> long"""
2836 return _controls
.ListItem_GetState(*args
, **kwargs
)
2838 def GetText(*args
, **kwargs
):
2839 """GetText() -> wxString"""
2840 return _controls
.ListItem_GetText(*args
, **kwargs
)
2842 def GetImage(*args
, **kwargs
):
2843 """GetImage() -> int"""
2844 return _controls
.ListItem_GetImage(*args
, **kwargs
)
2846 def GetData(*args
, **kwargs
):
2847 """GetData() -> long"""
2848 return _controls
.ListItem_GetData(*args
, **kwargs
)
2850 def GetWidth(*args
, **kwargs
):
2851 """GetWidth() -> int"""
2852 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
2854 def GetAlign(*args
, **kwargs
):
2855 """GetAlign() -> wxListColumnFormat"""
2856 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
2858 def GetAttributes(*args
, **kwargs
):
2859 """GetAttributes() -> ListItemAttr"""
2860 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
2862 def HasAttributes(*args
, **kwargs
):
2863 """HasAttributes() -> bool"""
2864 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
2866 def GetTextColour(*args
, **kwargs
):
2867 """GetTextColour() -> wxColour"""
2868 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
2870 def GetBackgroundColour(*args
, **kwargs
):
2871 """GetBackgroundColour() -> wxColour"""
2872 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
2874 def GetFont(*args
, **kwargs
):
2875 """GetFont() -> wxFont"""
2876 return _controls
.ListItem_GetFont(*args
, **kwargs
)
2878 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
2879 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
2880 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
2881 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
2882 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
2883 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
2884 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
2885 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
2886 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
2887 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
2889 class ListItemPtr(ListItem
):
2890 def __init__(self
, this
):
2892 if not hasattr(self
,"thisown"): self
.thisown
= 0
2893 self
.__class
__ = ListItem
2894 _controls
.ListItem_swigregister(ListItemPtr
)
2896 #---------------------------------------------------------------------------
2898 class ListEvent(core
.NotifyEvent
):
2901 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2902 def __init__(self
, *args
, **kwargs
):
2903 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
2904 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
2905 self
.this
= newobj
.this
2908 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
2909 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
2910 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
2911 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
2912 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
2913 m_item
= property(_controls
.ListEvent_m_item_get
)
2914 def GetKeyCode(*args
, **kwargs
):
2915 """GetKeyCode() -> int"""
2916 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
2918 GetCode
= GetKeyCode
2919 def GetIndex(*args
, **kwargs
):
2920 """GetIndex() -> long"""
2921 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
2923 def GetColumn(*args
, **kwargs
):
2924 """GetColumn() -> int"""
2925 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
2927 def GetPoint(*args
, **kwargs
):
2928 """GetPoint() -> Point"""
2929 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
2931 GetPostiion
= GetPoint
2932 def GetLabel(*args
, **kwargs
):
2933 """GetLabel() -> wxString"""
2934 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
2936 def GetText(*args
, **kwargs
):
2937 """GetText() -> wxString"""
2938 return _controls
.ListEvent_GetText(*args
, **kwargs
)
2940 def GetImage(*args
, **kwargs
):
2941 """GetImage() -> int"""
2942 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
2944 def GetData(*args
, **kwargs
):
2945 """GetData() -> long"""
2946 return _controls
.ListEvent_GetData(*args
, **kwargs
)
2948 def GetMask(*args
, **kwargs
):
2949 """GetMask() -> long"""
2950 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
2952 def GetItem(*args
, **kwargs
):
2953 """GetItem() -> ListItem"""
2954 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
2956 def GetCacheFrom(*args
, **kwargs
):
2957 """GetCacheFrom() -> long"""
2958 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
2960 def GetCacheTo(*args
, **kwargs
):
2961 """GetCacheTo() -> long"""
2962 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
2964 def IsEditCancelled(*args
, **kwargs
):
2965 """IsEditCancelled() -> bool"""
2966 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
2968 def SetEditCanceled(*args
, **kwargs
):
2969 """SetEditCanceled(bool editCancelled)"""
2970 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
2973 class ListEventPtr(ListEvent
):
2974 def __init__(self
, this
):
2976 if not hasattr(self
,"thisown"): self
.thisown
= 0
2977 self
.__class
__ = ListEvent
2978 _controls
.ListEvent_swigregister(ListEventPtr
)
2980 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
2981 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
2982 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
2983 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
2984 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
2985 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
2986 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
2987 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
2988 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
2989 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
2990 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
2991 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
2992 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
2993 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
2994 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
2995 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
2996 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
2997 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
2998 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
2999 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3000 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3001 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3002 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3003 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3004 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3005 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3006 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3007 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3008 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3009 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3010 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3011 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3012 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3013 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3014 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3015 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3016 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3017 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3018 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3019 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3020 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3021 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3022 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3023 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3025 #---------------------------------------------------------------------------
3027 class ListCtrl(core
.Control
):
3030 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3031 def __init__(self
, *args
, **kwargs
):
3032 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3033 Size size=DefaultSize, long style=LC_ICON,
3034 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListCtrl"""
3035 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3036 self
.this
= newobj
.this
3039 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3041 def Create(*args
, **kwargs
):
3042 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3043 Size size=DefaultSize, long style=LC_ICON,
3044 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool"""
3045 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3047 def _setCallbackInfo(*args
, **kwargs
):
3048 """_setCallbackInfo(PyObject self, PyObject _class)"""
3049 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3051 def SetForegroundColour(*args
, **kwargs
):
3052 """SetForegroundColour(wxColour col) -> bool"""
3053 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3055 def SetBackgroundColour(*args
, **kwargs
):
3056 """SetBackgroundColour(wxColour col) -> bool"""
3057 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3059 def GetColumn(*args
, **kwargs
):
3060 """GetColumn(int col) -> ListItem"""
3061 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3062 if val
is not None: val
.thisown
= 1
3065 def SetColumn(*args
, **kwargs
):
3066 """SetColumn(int col, ListItem item) -> bool"""
3067 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3069 def GetColumnWidth(*args
, **kwargs
):
3070 """GetColumnWidth(int col) -> int"""
3071 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3073 def SetColumnWidth(*args
, **kwargs
):
3074 """SetColumnWidth(int col, int width) -> bool"""
3075 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3077 def GetCountPerPage(*args
, **kwargs
):
3078 """GetCountPerPage() -> int"""
3079 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3081 def GetViewRect(*args
, **kwargs
):
3082 """GetViewRect() -> Rect"""
3083 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3085 def GetItem(*args
, **kwargs
):
3086 """GetItem(long itemId, int col=0) -> ListItem"""
3087 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3088 if val
is not None: val
.thisown
= 1
3091 def SetItem(*args
, **kwargs
):
3092 """SetItem(ListItem info) -> bool"""
3093 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3095 def SetStringItem(*args
, **kwargs
):
3096 """SetStringItem(long index, int col, wxString label, int imageId=-1) -> long"""
3097 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3099 def GetItemState(*args
, **kwargs
):
3100 """GetItemState(long item, long stateMask) -> int"""
3101 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3103 def SetItemState(*args
, **kwargs
):
3104 """SetItemState(long item, long state, long stateMask) -> bool"""
3105 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3107 def SetItemImage(*args
, **kwargs
):
3108 """SetItemImage(long item, int image, int selImage) -> bool"""
3109 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3111 def GetItemText(*args
, **kwargs
):
3112 """GetItemText(long item) -> wxString"""
3113 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3115 def SetItemText(*args
, **kwargs
):
3116 """SetItemText(long item, wxString str)"""
3117 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3119 def GetItemData(*args
, **kwargs
):
3120 """GetItemData(long item) -> long"""
3121 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3123 def SetItemData(*args
, **kwargs
):
3124 """SetItemData(long item, long data) -> bool"""
3125 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3127 def GetItemPosition(*args
, **kwargs
):
3128 """GetItemPosition(long item) -> Point"""
3129 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3131 def GetItemRect(*args
, **kwargs
):
3132 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3133 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3135 def SetItemPosition(*args
, **kwargs
):
3136 """SetItemPosition(long item, Point pos) -> bool"""
3137 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3139 def GetItemCount(*args
, **kwargs
):
3140 """GetItemCount() -> int"""
3141 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3143 def GetColumnCount(*args
, **kwargs
):
3144 """GetColumnCount() -> int"""
3145 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3147 def GetItemSpacing(*args
, **kwargs
):
3148 """GetItemSpacing() -> Size"""
3149 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3151 def SetItemSpacing(*args
, **kwargs
):
3152 """SetItemSpacing(int spacing, bool isSmall=False)"""
3153 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3155 def GetSelectedItemCount(*args
, **kwargs
):
3156 """GetSelectedItemCount() -> int"""
3157 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3159 def GetTextColour(*args
, **kwargs
):
3160 """GetTextColour() -> wxColour"""
3161 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3163 def SetTextColour(*args
, **kwargs
):
3164 """SetTextColour(wxColour col)"""
3165 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3167 def GetTopItem(*args
, **kwargs
):
3168 """GetTopItem() -> long"""
3169 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3171 def SetSingleStyle(*args
, **kwargs
):
3172 """SetSingleStyle(long style, bool add=True)"""
3173 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3175 def SetWindowStyleFlag(*args
, **kwargs
):
3176 """SetWindowStyleFlag(long style)"""
3177 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3179 def GetNextItem(*args
, **kwargs
):
3180 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3181 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3183 def GetImageList(*args
, **kwargs
):
3184 """GetImageList(int which) -> wxImageList"""
3185 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3187 def SetImageList(*args
, **kwargs
):
3188 """SetImageList(wxImageList imageList, int which)"""
3189 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3191 def AssignImageList(*args
, **kwargs
):
3192 """AssignImageList(wxImageList imageList, int which)"""
3193 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3197 def IsVirtual(*args
, **kwargs
):
3198 """IsVirtual() -> bool"""
3199 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3201 def RefreshItem(*args
, **kwargs
):
3202 """RefreshItem(long item)"""
3203 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3205 def RefreshItems(*args
, **kwargs
):
3206 """RefreshItems(long itemFrom, long itemTo)"""
3207 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3209 def Arrange(*args
, **kwargs
):
3210 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3211 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3213 def DeleteItem(*args
, **kwargs
):
3214 """DeleteItem(long item) -> bool"""
3215 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3217 def DeleteAllItems(*args
, **kwargs
):
3218 """DeleteAllItems() -> bool"""
3219 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3221 def DeleteColumn(*args
, **kwargs
):
3222 """DeleteColumn(int col) -> bool"""
3223 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3225 def DeleteAllColumns(*args
, **kwargs
):
3226 """DeleteAllColumns() -> bool"""
3227 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3229 def ClearAll(*args
, **kwargs
):
3231 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3233 def EditLabel(*args
, **kwargs
):
3234 """EditLabel(long item)"""
3235 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3237 def EnsureVisible(*args
, **kwargs
):
3238 """EnsureVisible(long item) -> bool"""
3239 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3241 def FindItem(*args
, **kwargs
):
3242 """FindItem(long start, wxString str, bool partial=False) -> long"""
3243 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3245 def FindItemData(*args
, **kwargs
):
3246 """FindItemData(long start, long data) -> long"""
3247 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3249 def FindItemAtPos(*args
, **kwargs
):
3250 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3251 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3253 def HitTest(*args
, **kwargs
):
3254 """HitTest(Point point) -> (item, where)
3256 Determines which item (if any) is at the specified point,
3257 giving details in the second return value (see wxLIST_HITTEST_... flags.)"""
3258 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3260 def InsertItem(*args
, **kwargs
):
3261 """InsertItem(ListItem info) -> long"""
3262 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3264 def InsertStringItem(*args
, **kwargs
):
3265 """InsertStringItem(long index, wxString label) -> long"""
3266 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3268 def InsertImageItem(*args
, **kwargs
):
3269 """InsertImageItem(long index, int imageIndex) -> long"""
3270 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3272 def InsertImageStringItem(*args
, **kwargs
):
3273 """InsertImageStringItem(long index, wxString label, int imageIndex) -> long"""
3274 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3276 def InsertColumnInfo(*args
, **kwargs
):
3277 """InsertColumnInfo(long col, ListItem info) -> long"""
3278 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3280 def InsertColumn(*args
, **kwargs
):
3281 """InsertColumn(long col, wxString heading, int format=LIST_FORMAT_LEFT,
3282 int width=-1) -> long"""
3283 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3285 def SetItemCount(*args
, **kwargs
):
3286 """SetItemCount(long count)"""
3287 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3289 def ScrollList(*args
, **kwargs
):
3290 """ScrollList(int dx, int dy) -> bool"""
3291 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3293 def SetItemTextColour(*args
, **kwargs
):
3294 """SetItemTextColour(long item, wxColour col)"""
3295 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3297 def GetItemTextColour(*args
, **kwargs
):
3298 """GetItemTextColour(long item) -> wxColour"""
3299 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3301 def SetItemBackgroundColour(*args
, **kwargs
):
3302 """SetItemBackgroundColour(long item, wxColour col)"""
3303 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3305 def GetItemBackgroundColour(*args
, **kwargs
):
3306 """GetItemBackgroundColour(long item) -> wxColour"""
3307 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3311 def Select(self
, idx
, on
=1):
3312 '''[de]select an item'''
3313 if on
: state
= wx
.LIST_STATE_SELECTED
3315 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3317 def Focus(self
, idx
):
3318 '''Focus and show the given item'''
3319 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3320 self
.EnsureVisible(idx
)
3322 def GetFocusedItem(self
):
3323 '''get the currently focused item or -1 if none'''
3324 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3326 def GetFirstSelected(self
, *args
):
3327 '''return first selected item, or -1 when none'''
3328 return self
.GetNextSelected(-1)
3330 def GetNextSelected(self
, item
):
3331 '''return subsequent selected items, or -1 when no more'''
3332 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3334 def IsSelected(self
, idx
):
3335 '''return True if the item is selected'''
3336 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3338 def SetColumnImage(self
, col
, image
):
3339 item
= self
.GetColumn(col
)
3340 # preserve all other attributes too
3341 item
.SetMask( wx
.LIST_MASK_STATE |
3343 wx
.LIST_MASK_IMAGE |
3346 wx
.LIST_MASK_WIDTH |
3347 wx
.LIST_MASK_FORMAT
)
3348 item
.SetImage(image
)
3349 self
.SetColumn(col
, item
)
3351 def ClearColumnImage(self
, col
):
3352 self
.SetColumnImage(col
, -1)
3354 def Append(self
, entry
):
3355 '''Append an item to the list control. The entry parameter should be a
3356 sequence with an item for each column'''
3362 pos
= self
.GetItemCount()
3363 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3364 for i
in range(1, len(entry
)):
3365 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3368 def SortItems(*args
, **kwargs
):
3369 """SortItems(PyObject func) -> bool"""
3370 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3372 def GetMainWindow(*args
, **kwargs
):
3373 """GetMainWindow() -> Window"""
3374 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3377 class ListCtrlPtr(ListCtrl
):
3378 def __init__(self
, this
):
3380 if not hasattr(self
,"thisown"): self
.thisown
= 0
3381 self
.__class
__ = ListCtrl
3382 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3384 def PreListCtrl(*args
, **kwargs
):
3385 """PreListCtrl() -> ListCtrl"""
3386 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3390 #---------------------------------------------------------------------------
3392 class ListView(ListCtrl
):
3395 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3396 def __init__(self
, *args
, **kwargs
):
3397 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3398 Size size=DefaultSize, long style=LC_REPORT,
3399 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> ListView"""
3400 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3401 self
.this
= newobj
.this
3404 self
._setOORInfo
(self
)
3406 def Create(*args
, **kwargs
):
3407 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3408 Size size=DefaultSize, long style=LC_REPORT,
3409 Validator validator=DefaultValidator, wxString name=wxPyListCtrlNameStr) -> bool"""
3410 return _controls
.ListView_Create(*args
, **kwargs
)
3412 def Select(*args
, **kwargs
):
3413 """Select(long n, bool on=True)"""
3414 return _controls
.ListView_Select(*args
, **kwargs
)
3416 def Focus(*args
, **kwargs
):
3417 """Focus(long index)"""
3418 return _controls
.ListView_Focus(*args
, **kwargs
)
3420 def GetFocusedItem(*args
, **kwargs
):
3421 """GetFocusedItem() -> long"""
3422 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3424 def GetNextSelected(*args
, **kwargs
):
3425 """GetNextSelected(long item) -> long"""
3426 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3428 def GetFirstSelected(*args
, **kwargs
):
3429 """GetFirstSelected() -> long"""
3430 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3432 def IsSelected(*args
, **kwargs
):
3433 """IsSelected(long index) -> bool"""
3434 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3436 def SetColumnImage(*args
, **kwargs
):
3437 """SetColumnImage(int col, int image)"""
3438 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3440 def ClearColumnImage(*args
, **kwargs
):
3441 """ClearColumnImage(int col)"""
3442 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3445 class ListViewPtr(ListView
):
3446 def __init__(self
, this
):
3448 if not hasattr(self
,"thisown"): self
.thisown
= 0
3449 self
.__class
__ = ListView
3450 _controls
.ListView_swigregister(ListViewPtr
)
3452 def PreListView(*args
, **kwargs
):
3453 """PreListView() -> ListView"""
3454 val
= _controls
.new_PreListView(*args
, **kwargs
)
3458 #---------------------------------------------------------------------------
3460 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3461 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3462 TR_NO_LINES
= _controls
.TR_NO_LINES
3463 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3464 TR_SINGLE
= _controls
.TR_SINGLE
3465 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3466 TR_EXTENDED
= _controls
.TR_EXTENDED
3467 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3468 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3469 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3470 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3471 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3472 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3473 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3474 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3475 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3476 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3477 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3478 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3479 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3480 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3481 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3482 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3483 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3484 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3485 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3486 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3487 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3488 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3489 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3490 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3491 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3492 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3493 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3494 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3495 #---------------------------------------------------------------------------
3497 class TreeItemId(object):
3500 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3501 def __init__(self
, *args
, **kwargs
):
3502 """__init__() -> TreeItemId"""
3503 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3504 self
.this
= newobj
.this
3507 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3510 if self
.thisown
: destroy(self
)
3513 def IsOk(*args
, **kwargs
):
3514 """IsOk() -> bool"""
3515 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3517 def __eq__(*args
, **kwargs
):
3518 """__eq__(TreeItemId other) -> bool"""
3519 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3521 def __ne__(*args
, **kwargs
):
3522 """__ne__(TreeItemId other) -> bool"""
3523 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3525 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3527 def __nonzero__(self
): return self
.IsOk()
3529 class TreeItemIdPtr(TreeItemId
):
3530 def __init__(self
, this
):
3532 if not hasattr(self
,"thisown"): self
.thisown
= 0
3533 self
.__class
__ = TreeItemId
3534 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3536 class TreeItemData(object):
3539 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3540 def __init__(self
, *args
, **kwargs
):
3541 """__init__(PyObject obj=None) -> TreeItemData"""
3542 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3543 self
.this
= newobj
.this
3546 def GetData(*args
, **kwargs
):
3547 """GetData() -> PyObject"""
3548 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3550 def SetData(*args
, **kwargs
):
3551 """SetData(PyObject obj)"""
3552 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3554 def GetId(*args
, **kwargs
):
3555 """GetId() -> TreeItemId"""
3556 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3558 def SetId(*args
, **kwargs
):
3559 """SetId(TreeItemId id)"""
3560 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3562 def Destroy(*args
, **kwargs
):
3564 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3567 class TreeItemDataPtr(TreeItemData
):
3568 def __init__(self
, this
):
3570 if not hasattr(self
,"thisown"): self
.thisown
= 0
3571 self
.__class
__ = TreeItemData
3572 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3574 #---------------------------------------------------------------------------
3576 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3577 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3578 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3579 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3580 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3581 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3582 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3583 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3584 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3585 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3586 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3587 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3588 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3589 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3590 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3591 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3592 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3593 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3594 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3595 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3596 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3597 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3598 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3599 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3600 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3601 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3602 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3603 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3604 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3605 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3606 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3607 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3608 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3609 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3610 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3611 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3612 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3613 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3616 class TreeEvent(core
.NotifyEvent
):
3619 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3620 def __init__(self
, *args
, **kwargs
):
3621 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3622 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3623 self
.this
= newobj
.this
3626 def GetItem(*args
, **kwargs
):
3627 """GetItem() -> TreeItemId"""
3628 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3630 def SetItem(*args
, **kwargs
):
3631 """SetItem(TreeItemId item)"""
3632 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3634 def GetOldItem(*args
, **kwargs
):
3635 """GetOldItem() -> TreeItemId"""
3636 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3638 def SetOldItem(*args
, **kwargs
):
3639 """SetOldItem(TreeItemId item)"""
3640 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3642 def GetPoint(*args
, **kwargs
):
3643 """GetPoint() -> Point"""
3644 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
3646 def SetPoint(*args
, **kwargs
):
3647 """SetPoint(Point pt)"""
3648 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
3650 def GetKeyEvent(*args
, **kwargs
):
3651 """GetKeyEvent() -> KeyEvent"""
3652 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
3654 def GetKeyCode(*args
, **kwargs
):
3655 """GetKeyCode() -> int"""
3656 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
3658 def SetKeyEvent(*args
, **kwargs
):
3659 """SetKeyEvent(KeyEvent evt)"""
3660 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
3662 def GetLabel(*args
, **kwargs
):
3663 """GetLabel() -> wxString"""
3664 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
3666 def SetLabel(*args
, **kwargs
):
3667 """SetLabel(wxString label)"""
3668 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
3670 def IsEditCancelled(*args
, **kwargs
):
3671 """IsEditCancelled() -> bool"""
3672 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
3674 def SetEditCanceled(*args
, **kwargs
):
3675 """SetEditCanceled(bool editCancelled)"""
3676 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
3679 class TreeEventPtr(TreeEvent
):
3680 def __init__(self
, this
):
3682 if not hasattr(self
,"thisown"): self
.thisown
= 0
3683 self
.__class
__ = TreeEvent
3684 _controls
.TreeEvent_swigregister(TreeEventPtr
)
3686 #---------------------------------------------------------------------------
3688 class TreeCtrl(core
.Control
):
3691 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3692 def __init__(self
, *args
, **kwargs
):
3693 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
3694 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3695 Validator validator=DefaultValidator,
3696 wxString name=wxPy_TreeCtrlNameStr) -> TreeCtrl"""
3697 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
3698 self
.this
= newobj
.this
3701 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
3703 def Create(*args
, **kwargs
):
3704 """Create(Window parent, int id=-1, Point pos=DefaultPosition,
3705 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
3706 Validator validator=DefaultValidator,
3707 wxString name=wxPy_TreeCtrlNameStr) -> bool"""
3708 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
3710 def _setCallbackInfo(*args
, **kwargs
):
3711 """_setCallbackInfo(PyObject self, PyObject _class)"""
3712 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
3714 def GetCount(*args
, **kwargs
):
3715 """GetCount() -> size_t"""
3716 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
3718 def GetIndent(*args
, **kwargs
):
3719 """GetIndent() -> unsigned int"""
3720 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
3722 def SetIndent(*args
, **kwargs
):
3723 """SetIndent(unsigned int indent)"""
3724 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
3726 def GetSpacing(*args
, **kwargs
):
3727 """GetSpacing() -> unsigned int"""
3728 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
3730 def SetSpacing(*args
, **kwargs
):
3731 """SetSpacing(unsigned int spacing)"""
3732 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
3734 def GetImageList(*args
, **kwargs
):
3735 """GetImageList() -> wxImageList"""
3736 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
3738 def GetStateImageList(*args
, **kwargs
):
3739 """GetStateImageList() -> wxImageList"""
3740 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
3742 def SetImageList(*args
, **kwargs
):
3743 """SetImageList(wxImageList imageList)"""
3744 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
3746 def SetStateImageList(*args
, **kwargs
):
3747 """SetStateImageList(wxImageList imageList)"""
3748 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
3750 def AssignImageList(*args
, **kwargs
):
3751 """AssignImageList(wxImageList imageList)"""
3752 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
3756 def AssignStateImageList(*args
, **kwargs
):
3757 """AssignStateImageList(wxImageList imageList)"""
3758 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
3762 def GetItemText(*args
, **kwargs
):
3763 """GetItemText(TreeItemId item) -> wxString"""
3764 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
3766 def GetItemImage(*args
, **kwargs
):
3767 """GetItemImage(TreeItemId item, wxTreeItemIcon which=TreeItemIcon_Normal) -> int"""
3768 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
3770 def GetItemData(*args
, **kwargs
):
3771 """GetItemData(TreeItemId item) -> TreeItemData"""
3772 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
3774 def GetItemPyData(*args
, **kwargs
):
3775 """GetItemPyData(TreeItemId item) -> PyObject"""
3776 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
3778 GetPyData
= GetItemPyData
3779 def GetItemTextColour(*args
, **kwargs
):
3780 """GetItemTextColour(TreeItemId item) -> wxColour"""
3781 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
3783 def GetItemBackgroundColour(*args
, **kwargs
):
3784 """GetItemBackgroundColour(TreeItemId item) -> wxColour"""
3785 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3787 def GetItemFont(*args
, **kwargs
):
3788 """GetItemFont(TreeItemId item) -> wxFont"""
3789 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
3791 def SetItemText(*args
, **kwargs
):
3792 """SetItemText(TreeItemId item, wxString text)"""
3793 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
3795 def SetItemImage(*args
, **kwargs
):
3796 """SetItemImage(TreeItemId item, int image, wxTreeItemIcon which=TreeItemIcon_Normal)"""
3797 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
3799 def SetItemData(*args
, **kwargs
):
3800 """SetItemData(TreeItemId item, TreeItemData data)"""
3801 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
3803 def SetItemPyData(*args
, **kwargs
):
3804 """SetItemPyData(TreeItemId item, PyObject obj)"""
3805 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
3807 SetPyData
= SetItemPyData
3808 def SetItemHasChildren(*args
, **kwargs
):
3809 """SetItemHasChildren(TreeItemId item, bool has=True)"""
3810 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
3812 def SetItemBold(*args
, **kwargs
):
3813 """SetItemBold(TreeItemId item, bool bold=True)"""
3814 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
3816 def SetItemTextColour(*args
, **kwargs
):
3817 """SetItemTextColour(TreeItemId item, wxColour col)"""
3818 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
3820 def SetItemBackgroundColour(*args
, **kwargs
):
3821 """SetItemBackgroundColour(TreeItemId item, wxColour col)"""
3822 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3824 def SetItemFont(*args
, **kwargs
):
3825 """SetItemFont(TreeItemId item, wxFont font)"""
3826 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
3828 def IsVisible(*args
, **kwargs
):
3829 """IsVisible(TreeItemId item) -> bool"""
3830 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
3832 def ItemHasChildren(*args
, **kwargs
):
3833 """ItemHasChildren(TreeItemId item) -> bool"""
3834 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
3836 def IsExpanded(*args
, **kwargs
):
3837 """IsExpanded(TreeItemId item) -> bool"""
3838 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
3840 def IsSelected(*args
, **kwargs
):
3841 """IsSelected(TreeItemId item) -> bool"""
3842 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
3844 def IsBold(*args
, **kwargs
):
3845 """IsBold(TreeItemId item) -> bool"""
3846 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
3848 def GetChildrenCount(*args
, **kwargs
):
3849 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
3850 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
3852 def GetRootItem(*args
, **kwargs
):
3853 """GetRootItem() -> TreeItemId"""
3854 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
3856 def GetSelection(*args
, **kwargs
):
3857 """GetSelection() -> TreeItemId"""
3858 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
3860 def GetSelections(*args
, **kwargs
):
3861 """GetSelections() -> PyObject"""
3862 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
3864 def GetItemParent(*args
, **kwargs
):
3865 """GetItemParent(TreeItemId item) -> TreeItemId"""
3866 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
3868 def GetFirstChild(*args
, **kwargs
):
3869 """GetFirstChild(TreeItemId item) -> PyObject"""
3870 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
3872 def GetNextChild(*args
, **kwargs
):
3873 """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
3874 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
3876 def GetLastChild(*args
, **kwargs
):
3877 """GetLastChild(TreeItemId item) -> TreeItemId"""
3878 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
3880 def GetNextSibling(*args
, **kwargs
):
3881 """GetNextSibling(TreeItemId item) -> TreeItemId"""
3882 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
3884 def GetPrevSibling(*args
, **kwargs
):
3885 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
3886 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
3888 def GetFirstVisibleItem(*args
, **kwargs
):
3889 """GetFirstVisibleItem() -> TreeItemId"""
3890 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
3892 def GetNextVisible(*args
, **kwargs
):
3893 """GetNextVisible(TreeItemId item) -> TreeItemId"""
3894 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
3896 def GetPrevVisible(*args
, **kwargs
):
3897 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
3898 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
3900 def AddRoot(*args
, **kwargs
):
3901 """AddRoot(wxString text, int image=-1, int selectedImage=-1,
3902 TreeItemData data=None) -> TreeItemId"""
3903 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
3905 def PrependItem(*args
, **kwargs
):
3906 """PrependItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
3907 TreeItemData data=None) -> TreeItemId"""
3908 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
3910 def InsertItem(*args
, **kwargs
):
3911 """InsertItem(TreeItemId parent, TreeItemId idPrevious, wxString text,
3912 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
3913 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
3915 def InsertItemBefore(*args
, **kwargs
):
3916 """InsertItemBefore(TreeItemId parent, size_t index, wxString text, int image=-1,
3917 int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
3918 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
3920 def AppendItem(*args
, **kwargs
):
3921 """AppendItem(TreeItemId parent, wxString text, int image=-1, int selectedImage=-1,
3922 TreeItemData data=None) -> TreeItemId"""
3923 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
3925 def Delete(*args
, **kwargs
):
3926 """Delete(TreeItemId item)"""
3927 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
3929 def DeleteChildren(*args
, **kwargs
):
3930 """DeleteChildren(TreeItemId item)"""
3931 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
3933 def DeleteAllItems(*args
, **kwargs
):
3934 """DeleteAllItems()"""
3935 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
3937 def Expand(*args
, **kwargs
):
3938 """Expand(TreeItemId item)"""
3939 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
3941 def Collapse(*args
, **kwargs
):
3942 """Collapse(TreeItemId item)"""
3943 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
3945 def CollapseAndReset(*args
, **kwargs
):
3946 """CollapseAndReset(TreeItemId item)"""
3947 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
3949 def Toggle(*args
, **kwargs
):
3950 """Toggle(TreeItemId item)"""
3951 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
3953 def Unselect(*args
, **kwargs
):
3955 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
3957 def UnselectAll(*args
, **kwargs
):
3959 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
3961 def SelectItem(*args
, **kwargs
):
3962 """SelectItem(TreeItemId item)"""
3963 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
3965 def EnsureVisible(*args
, **kwargs
):
3966 """EnsureVisible(TreeItemId item)"""
3967 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
3969 def ScrollTo(*args
, **kwargs
):
3970 """ScrollTo(TreeItemId item)"""
3971 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
3973 def EditLabel(*args
, **kwargs
):
3974 """EditLabel(TreeItemId item)"""
3975 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
3977 def GetEditControl(*args
, **kwargs
):
3978 """GetEditControl() -> TextCtrl"""
3979 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
3981 def SortChildren(*args
, **kwargs
):
3982 """SortChildren(TreeItemId item)"""
3983 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
3985 def HitTest(*args
, **kwargs
):
3986 """HitTest(Point point) -> (item, where)
3988 Determine which item (if any) belongs the given point. The
3989 coordinates specified are relative to the client area of tree ctrl
3990 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
3993 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
3995 def GetBoundingRect(*args
, **kwargs
):
3996 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
3997 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4000 class TreeCtrlPtr(TreeCtrl
):
4001 def __init__(self
, this
):
4003 if not hasattr(self
,"thisown"): self
.thisown
= 0
4004 self
.__class
__ = TreeCtrl
4005 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4007 def PreTreeCtrl(*args
, **kwargs
):
4008 """PreTreeCtrl() -> TreeCtrl"""
4009 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4013 #---------------------------------------------------------------------------
4015 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4016 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4017 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4018 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4019 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4020 class GenericDirCtrl(core
.Control
):
4023 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4024 def __init__(self
, *args
, **kwargs
):
4025 """__init__(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4026 Point pos=DefaultPosition,
4027 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4028 wxString filter=wxPyEmptyString,
4029 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> GenericDirCtrl"""
4030 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4031 self
.this
= newobj
.this
4034 self
._setOORInfo
(self
)
4036 def Create(*args
, **kwargs
):
4037 """Create(Window parent, int id=-1, wxString dir=wxPyDirDialogDefaultFolderStr,
4038 Point pos=DefaultPosition,
4039 Size size=DefaultSize, long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4040 wxString filter=wxPyEmptyString,
4041 int defaultFilter=0, wxString name=wxPy_TreeCtrlNameStr) -> bool"""
4042 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4044 def ExpandPath(*args
, **kwargs
):
4045 """ExpandPath(wxString path) -> bool"""
4046 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4048 def GetDefaultPath(*args
, **kwargs
):
4049 """GetDefaultPath() -> wxString"""
4050 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4052 def SetDefaultPath(*args
, **kwargs
):
4053 """SetDefaultPath(wxString path)"""
4054 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4056 def GetPath(*args
, **kwargs
):
4057 """GetPath() -> wxString"""
4058 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4060 def GetFilePath(*args
, **kwargs
):
4061 """GetFilePath() -> wxString"""
4062 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4064 def SetPath(*args
, **kwargs
):
4065 """SetPath(wxString path)"""
4066 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4068 def ShowHidden(*args
, **kwargs
):
4069 """ShowHidden(bool show)"""
4070 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4072 def GetShowHidden(*args
, **kwargs
):
4073 """GetShowHidden() -> bool"""
4074 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4076 def GetFilter(*args
, **kwargs
):
4077 """GetFilter() -> wxString"""
4078 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4080 def SetFilter(*args
, **kwargs
):
4081 """SetFilter(wxString filter)"""
4082 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4084 def GetFilterIndex(*args
, **kwargs
):
4085 """GetFilterIndex() -> int"""
4086 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4088 def SetFilterIndex(*args
, **kwargs
):
4089 """SetFilterIndex(int n)"""
4090 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4092 def GetRootId(*args
, **kwargs
):
4093 """GetRootId() -> TreeItemId"""
4094 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4096 def GetTreeCtrl(*args
, **kwargs
):
4097 """GetTreeCtrl() -> wxTreeCtrl"""
4098 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4100 def GetFilterListCtrl(*args
, **kwargs
):
4101 """GetFilterListCtrl() -> DirFilterListCtrl"""
4102 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4104 def FindChild(*args
, **kwargs
):
4105 """FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4107 Find the child that matches the first part of 'path'. E.g. if a child path is
4108 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4109 If the path string has been used (we're at the leaf), done is set to True
4111 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4113 def DoResize(*args
, **kwargs
):
4115 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4117 def ReCreateTree(*args
, **kwargs
):
4118 """ReCreateTree()"""
4119 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4122 class GenericDirCtrlPtr(GenericDirCtrl
):
4123 def __init__(self
, this
):
4125 if not hasattr(self
,"thisown"): self
.thisown
= 0
4126 self
.__class
__ = GenericDirCtrl
4127 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4129 def PreGenericDirCtrl(*args
, **kwargs
):
4130 """PreGenericDirCtrl() -> GenericDirCtrl"""
4131 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4135 class DirFilterListCtrl(Choice
):
4138 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4139 def __init__(self
, *args
, **kwargs
):
4140 """__init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4141 Size size=DefaultSize, long style=0) -> DirFilterListCtrl"""
4142 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4143 self
.this
= newobj
.this
4146 self
._setOORInfo
(self
)
4148 def Create(*args
, **kwargs
):
4149 """Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4150 Size size=DefaultSize, long style=0) -> bool"""
4151 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4153 def FillFilterList(*args
, **kwargs
):
4154 """FillFilterList(wxString filter, int defaultFilter)"""
4155 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4158 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4159 def __init__(self
, this
):
4161 if not hasattr(self
,"thisown"): self
.thisown
= 0
4162 self
.__class
__ = DirFilterListCtrl
4163 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4165 def PreDirFilterListCtrl(*args
, **kwargs
):
4166 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4167 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4171 #---------------------------------------------------------------------------
4173 class PyControl(core
.Control
):
4176 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4177 def __init__(self
, *args
, **kwargs
):
4178 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4179 long style=0, Validator validator=DefaultValidator,
4180 wxString name=wxPyControlNameStr) -> PyControl"""
4181 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4182 self
.this
= newobj
.this
4185 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4187 def _setCallbackInfo(*args
, **kwargs
):
4188 """_setCallbackInfo(PyObject self, PyObject _class)"""
4189 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4191 def base_DoMoveWindow(*args
, **kwargs
):
4192 """base_DoMoveWindow(int x, int y, int width, int height)"""
4193 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4195 def base_DoSetSize(*args
, **kwargs
):
4196 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4197 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4199 def base_DoSetClientSize(*args
, **kwargs
):
4200 """base_DoSetClientSize(int width, int height)"""
4201 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4203 def base_DoSetVirtualSize(*args
, **kwargs
):
4204 """base_DoSetVirtualSize(int x, int y)"""
4205 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4207 def base_DoGetSize(*args
, **kwargs
):
4208 """base_DoGetSize() -> (width, height)"""
4209 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4211 def base_DoGetClientSize(*args
, **kwargs
):
4212 """base_DoGetClientSize() -> (width, height)"""
4213 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4215 def base_DoGetPosition(*args
, **kwargs
):
4216 """base_DoGetPosition() -> (x,y)"""
4217 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4219 def base_DoGetVirtualSize(*args
, **kwargs
):
4220 """base_DoGetVirtualSize() -> Size"""
4221 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4223 def base_DoGetBestSize(*args
, **kwargs
):
4224 """base_DoGetBestSize() -> Size"""
4225 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4227 def base_InitDialog(*args
, **kwargs
):
4228 """base_InitDialog()"""
4229 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4231 def base_TransferDataToWindow(*args
, **kwargs
):
4232 """base_TransferDataToWindow() -> bool"""
4233 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4235 def base_TransferDataFromWindow(*args
, **kwargs
):
4236 """base_TransferDataFromWindow() -> bool"""
4237 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4239 def base_Validate(*args
, **kwargs
):
4240 """base_Validate() -> bool"""
4241 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4243 def base_AcceptsFocus(*args
, **kwargs
):
4244 """base_AcceptsFocus() -> bool"""
4245 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4247 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4248 """base_AcceptsFocusFromKeyboard() -> bool"""
4249 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4251 def base_GetMaxSize(*args
, **kwargs
):
4252 """base_GetMaxSize() -> Size"""
4253 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4255 def base_AddChild(*args
, **kwargs
):
4256 """base_AddChild(Window child)"""
4257 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4259 def base_RemoveChild(*args
, **kwargs
):
4260 """base_RemoveChild(Window child)"""
4261 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4264 class PyControlPtr(PyControl
):
4265 def __init__(self
, this
):
4267 if not hasattr(self
,"thisown"): self
.thisown
= 0
4268 self
.__class
__ = PyControl
4269 _controls
.PyControl_swigregister(PyControlPtr
)
4271 #---------------------------------------------------------------------------
4273 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4274 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4275 wxEVT_HELP
= _controls
.wxEVT_HELP
4276 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4277 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4278 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4279 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4280 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4282 class HelpEvent(core
.CommandEvent
):
4285 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4286 def __init__(self
, *args
, **kwargs
):
4287 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4288 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4289 self
.this
= newobj
.this
4292 def GetPosition(*args
, **kwargs
):
4293 """GetPosition() -> Point"""
4294 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4296 def SetPosition(*args
, **kwargs
):
4297 """SetPosition(Point pos)"""
4298 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4300 def GetLink(*args
, **kwargs
):
4301 """GetLink() -> wxString"""
4302 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4304 def SetLink(*args
, **kwargs
):
4305 """SetLink(wxString link)"""
4306 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4308 def GetTarget(*args
, **kwargs
):
4309 """GetTarget() -> wxString"""
4310 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4312 def SetTarget(*args
, **kwargs
):
4313 """SetTarget(wxString target)"""
4314 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4317 class HelpEventPtr(HelpEvent
):
4318 def __init__(self
, this
):
4320 if not hasattr(self
,"thisown"): self
.thisown
= 0
4321 self
.__class
__ = HelpEvent
4322 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4324 class ContextHelp(core
.Object
):
4327 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4328 def __init__(self
, *args
, **kwargs
):
4329 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4330 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4331 self
.this
= newobj
.this
4334 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4337 if self
.thisown
: destroy(self
)
4340 def BeginContextHelp(*args
, **kwargs
):
4341 """BeginContextHelp(Window window=None) -> bool"""
4342 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4344 def EndContextHelp(*args
, **kwargs
):
4345 """EndContextHelp() -> bool"""
4346 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4349 class ContextHelpPtr(ContextHelp
):
4350 def __init__(self
, this
):
4352 if not hasattr(self
,"thisown"): self
.thisown
= 0
4353 self
.__class
__ = ContextHelp
4354 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4356 class ContextHelpButton(BitmapButton
):
4359 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4360 def __init__(self
, *args
, **kwargs
):
4361 """__init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4362 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton"""
4363 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4364 self
.this
= newobj
.this
4367 self
._setOORInfo
(self
)
4370 class ContextHelpButtonPtr(ContextHelpButton
):
4371 def __init__(self
, this
):
4373 if not hasattr(self
,"thisown"): self
.thisown
= 0
4374 self
.__class
__ = ContextHelpButton
4375 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4377 class HelpProvider(object):
4379 def __init__(self
): raise RuntimeError, "No constructor defined"
4381 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4382 def Set(*args
, **kwargs
):
4383 """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
4384 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4386 Set
= staticmethod(Set
)
4387 def Get(*args
, **kwargs
):
4388 """HelpProvider.Get() -> HelpProvider"""
4389 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4391 Get
= staticmethod(Get
)
4392 def GetHelp(*args
, **kwargs
):
4393 """GetHelp(Window window) -> wxString"""
4394 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4396 def ShowHelp(*args
, **kwargs
):
4397 """ShowHelp(Window window) -> bool"""
4398 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4400 def AddHelp(*args
, **kwargs
):
4401 """AddHelp(Window window, wxString text)"""
4402 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4404 def AddHelpById(*args
, **kwargs
):
4405 """AddHelpById(int id, wxString text)"""
4406 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4408 def Destroy(*args
, **kwargs
):
4410 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4413 class HelpProviderPtr(HelpProvider
):
4414 def __init__(self
, this
):
4416 if not hasattr(self
,"thisown"): self
.thisown
= 0
4417 self
.__class
__ = HelpProvider
4418 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4420 def HelpProvider_Set(*args
, **kwargs
):
4421 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4422 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4424 def HelpProvider_Get(*args
, **kwargs
):
4425 """HelpProvider_Get() -> HelpProvider"""
4426 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4428 class SimpleHelpProvider(HelpProvider
):
4431 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4432 def __init__(self
, *args
, **kwargs
):
4433 """__init__() -> SimpleHelpProvider"""
4434 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4435 self
.this
= newobj
.this
4439 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4440 def __init__(self
, this
):
4442 if not hasattr(self
,"thisown"): self
.thisown
= 0
4443 self
.__class
__ = SimpleHelpProvider
4444 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4446 #---------------------------------------------------------------------------
4448 class DragImage(core
.Object
):
4451 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4452 def __init__(self
, *args
, **kwargs
):
4453 """__init__(wxBitmap image, wxCursor cursor=wxNullCursor) -> DragImage"""
4454 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4455 self
.this
= newobj
.this
4458 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4461 if self
.thisown
: destroy(self
)
4464 def SetBackingBitmap(*args
, **kwargs
):
4465 """SetBackingBitmap(wxBitmap bitmap)"""
4466 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4468 def BeginDrag(*args
, **kwargs
):
4469 """BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4470 Rect rect=None) -> bool"""
4471 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4473 def BeginDragBounded(*args
, **kwargs
):
4474 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4475 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4477 def EndDrag(*args
, **kwargs
):
4478 """EndDrag() -> bool"""
4479 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4481 def Move(*args
, **kwargs
):
4482 """Move(Point pt) -> bool"""
4483 return _controls
.DragImage_Move(*args
, **kwargs
)
4485 def Show(*args
, **kwargs
):
4486 """Show() -> bool"""
4487 return _controls
.DragImage_Show(*args
, **kwargs
)
4489 def Hide(*args
, **kwargs
):
4490 """Hide() -> bool"""
4491 return _controls
.DragImage_Hide(*args
, **kwargs
)
4493 def GetImageRect(*args
, **kwargs
):
4494 """GetImageRect(Point pos) -> Rect"""
4495 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4497 def DoDrawImage(*args
, **kwargs
):
4498 """DoDrawImage(wxDC dc, Point pos) -> bool"""
4499 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4501 def UpdateBackingFromWindow(*args
, **kwargs
):
4502 """UpdateBackingFromWindow(wxDC windowDC, wxMemoryDC destDC, Rect sourceRect,
4503 Rect destRect) -> bool"""
4504 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4506 def RedrawImage(*args
, **kwargs
):
4507 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4508 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4511 class DragImagePtr(DragImage
):
4512 def __init__(self
, this
):
4514 if not hasattr(self
,"thisown"): self
.thisown
= 0
4515 self
.__class
__ = DragImage
4516 _controls
.DragImage_swigregister(DragImagePtr
)
4518 def DragIcon(*args
, **kwargs
):
4519 """DragIcon(wxIcon image, wxCursor cursor=wxNullCursor) -> DragImage"""
4520 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4524 def DragString(*args
, **kwargs
):
4525 """DragString(wxString str, wxCursor cursor=wxNullCursor) -> DragImage"""
4526 val
= _controls
.new_DragString(*args
, **kwargs
)
4530 def DragTreeItem(*args
, **kwargs
):
4531 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4532 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4536 def DragListItem(*args
, **kwargs
):
4537 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4538 val
= _controls
.new_DragListItem(*args
, **kwargs
)