1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 BU_LEFT
= _controls
.BU_LEFT
11 BU_TOP
= _controls
.BU_TOP
12 BU_RIGHT
= _controls
.BU_RIGHT
13 BU_BOTTOM
= _controls
.BU_BOTTOM
14 BU_EXACTFIT
= _controls
.BU_EXACTFIT
15 BU_AUTODRAW
= _controls
.BU_AUTODRAW
16 class Button(core
.Control
):
17 def __init__(self
, *args
, **kwargs
):
18 newobj
= _controls
.new_Button(*args
, **kwargs
)
19 self
.this
= newobj
.this
22 self
._setOORInfo
(self
)
23 def Create(*args
, **kwargs
): return _controls
.Button_Create(*args
, **kwargs
)
24 def SetDefault(*args
, **kwargs
): return _controls
.Button_SetDefault(*args
, **kwargs
)
25 def SetImageLabel(*args
, **kwargs
): return _controls
.Button_SetImageLabel(*args
, **kwargs
)
26 def SetImageMargins(*args
, **kwargs
): return _controls
.Button_SetImageMargins(*args
, **kwargs
)
27 GetDefaultSize
= staticmethod(_controls
.Button_GetDefaultSize
)
29 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
31 class ButtonPtr(Button
):
32 def __init__(self
, this
):
34 if not hasattr(self
,"thisown"): self
.thisown
= 0
35 self
.__class
__ = Button
36 _controls
.Button_swigregister(ButtonPtr
)
38 def PreButton(*args
, **kwargs
):
39 val
= _controls
.new_PreButton(*args
, **kwargs
)
43 Button_GetDefaultSize
= _controls
.Button_GetDefaultSize
45 class BitmapButton(Button
):
46 def __init__(self
, *args
, **kwargs
):
47 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
48 self
.this
= newobj
.this
51 self
._setOORInfo
(self
)
52 def Create(*args
, **kwargs
): return _controls
.BitmapButton_Create(*args
, **kwargs
)
53 def GetBitmapLabel(*args
, **kwargs
): return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
54 def GetBitmapDisabled(*args
, **kwargs
): return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
55 def GetBitmapFocus(*args
, **kwargs
): return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
56 def GetBitmapSelected(*args
, **kwargs
): return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
57 def SetBitmapDisabled(*args
, **kwargs
): return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
58 def SetBitmapFocus(*args
, **kwargs
): return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
59 def SetBitmapSelected(*args
, **kwargs
): return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
60 def SetBitmapLabel(*args
, **kwargs
): return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
61 def SetMargins(*args
, **kwargs
): return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
62 def GetMarginX(*args
, **kwargs
): return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
63 def GetMarginY(*args
, **kwargs
): return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
65 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
67 class BitmapButtonPtr(BitmapButton
):
68 def __init__(self
, this
):
70 if not hasattr(self
,"thisown"): self
.thisown
= 0
71 self
.__class
__ = BitmapButton
72 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
74 def PreBitmapButton(*args
, **kwargs
):
75 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
79 #---------------------------------------------------------------------------
81 CHK_2STATE
= _controls
.CHK_2STATE
82 CHK_3STATE
= _controls
.CHK_3STATE
83 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
84 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
85 CHK_CHECKED
= _controls
.CHK_CHECKED
86 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
87 class CheckBox(core
.Control
):
88 def __init__(self
, *args
, **kwargs
):
89 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
90 self
.this
= newobj
.this
93 self
._setOORInfo
(self
)
94 def Create(*args
, **kwargs
): return _controls
.CheckBox_Create(*args
, **kwargs
)
95 def GetValue(*args
, **kwargs
): return _controls
.CheckBox_GetValue(*args
, **kwargs
)
96 def IsChecked(*args
, **kwargs
): return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
97 def SetValue(*args
, **kwargs
): return _controls
.CheckBox_SetValue(*args
, **kwargs
)
98 def Get3StateValue(*args
, **kwargs
): return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
99 def Set3StateValue(*args
, **kwargs
): return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
100 def Is3State(*args
, **kwargs
): return _controls
.CheckBox_Is3State(*args
, **kwargs
)
101 def Is3rdStateAllowedForUser(*args
, **kwargs
): return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
103 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
105 class CheckBoxPtr(CheckBox
):
106 def __init__(self
, this
):
108 if not hasattr(self
,"thisown"): self
.thisown
= 0
109 self
.__class
__ = CheckBox
110 _controls
.CheckBox_swigregister(CheckBoxPtr
)
112 def PreCheckBox(*args
, **kwargs
):
113 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
117 #---------------------------------------------------------------------------
119 class Choice(core
.ControlWithItems
):
120 def __init__(self
, *args
, **kwargs
):
121 newobj
= _controls
.new_Choice(*args
, **kwargs
)
122 self
.this
= newobj
.this
125 self
._setOORInfo
(self
)
126 def Create(*args
, **kwargs
): return _controls
.Choice_Create(*args
, **kwargs
)
127 def GetColumns(*args
, **kwargs
): return _controls
.Choice_GetColumns(*args
, **kwargs
)
128 def SetColumns(*args
, **kwargs
): return _controls
.Choice_SetColumns(*args
, **kwargs
)
129 def SetSelection(*args
, **kwargs
): return _controls
.Choice_SetSelection(*args
, **kwargs
)
130 def SetStringSelection(*args
, **kwargs
): return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
131 def SetString(*args
, **kwargs
): return _controls
.Choice_SetString(*args
, **kwargs
)
133 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
135 class ChoicePtr(Choice
):
136 def __init__(self
, this
):
138 if not hasattr(self
,"thisown"): self
.thisown
= 0
139 self
.__class
__ = Choice
140 _controls
.Choice_swigregister(ChoicePtr
)
142 def PreChoice(*args
, **kwargs
):
143 val
= _controls
.new_PreChoice(*args
, **kwargs
)
147 #---------------------------------------------------------------------------
149 class ComboBox(Choice
):
150 def __init__(self
, *args
, **kwargs
):
151 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
152 self
.this
= newobj
.this
155 self
._setOORInfo
(self
)
156 def Create(*args
, **kwargs
): return _controls
.ComboBox_Create(*args
, **kwargs
)
157 def GetValue(*args
, **kwargs
): return _controls
.ComboBox_GetValue(*args
, **kwargs
)
158 def SetValue(*args
, **kwargs
): return _controls
.ComboBox_SetValue(*args
, **kwargs
)
159 def Copy(*args
, **kwargs
): return _controls
.ComboBox_Copy(*args
, **kwargs
)
160 def Cut(*args
, **kwargs
): return _controls
.ComboBox_Cut(*args
, **kwargs
)
161 def Paste(*args
, **kwargs
): return _controls
.ComboBox_Paste(*args
, **kwargs
)
162 def SetInsertionPoint(*args
, **kwargs
): return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
163 def GetInsertionPoint(*args
, **kwargs
): return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
164 def GetLastPosition(*args
, **kwargs
): return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
165 def Replace(*args
, **kwargs
): return _controls
.ComboBox_Replace(*args
, **kwargs
)
166 def SetMark(*args
, **kwargs
): return _controls
.ComboBox_SetMark(*args
, **kwargs
)
167 def SetEditable(*args
, **kwargs
): return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
168 def SetInsertionPointEnd(*args
, **kwargs
): return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
169 def Remove(*args
, **kwargs
): return _controls
.ComboBox_Remove(*args
, **kwargs
)
171 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
173 class ComboBoxPtr(ComboBox
):
174 def __init__(self
, this
):
176 if not hasattr(self
,"thisown"): self
.thisown
= 0
177 self
.__class
__ = ComboBox
178 _controls
.ComboBox_swigregister(ComboBoxPtr
)
180 def PreComboBox(*args
, **kwargs
):
181 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
185 #---------------------------------------------------------------------------
187 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
188 GA_VERTICAL
= _controls
.GA_VERTICAL
189 GA_SMOOTH
= _controls
.GA_SMOOTH
190 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
191 class Gauge(core
.Control
):
192 def __init__(self
, *args
, **kwargs
):
193 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
194 self
.this
= newobj
.this
197 self
._setOORInfo
(self
)
198 def Create(*args
, **kwargs
): return _controls
.Gauge_Create(*args
, **kwargs
)
199 def SetRange(*args
, **kwargs
): return _controls
.Gauge_SetRange(*args
, **kwargs
)
200 def GetRange(*args
, **kwargs
): return _controls
.Gauge_GetRange(*args
, **kwargs
)
201 def SetValue(*args
, **kwargs
): return _controls
.Gauge_SetValue(*args
, **kwargs
)
202 def GetValue(*args
, **kwargs
): return _controls
.Gauge_GetValue(*args
, **kwargs
)
203 def IsVertical(*args
, **kwargs
): return _controls
.Gauge_IsVertical(*args
, **kwargs
)
204 def SetShadowWidth(*args
, **kwargs
): return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
205 def GetShadowWidth(*args
, **kwargs
): return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
206 def SetBezelFace(*args
, **kwargs
): return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
207 def GetBezelFace(*args
, **kwargs
): return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
209 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
211 class GaugePtr(Gauge
):
212 def __init__(self
, this
):
214 if not hasattr(self
,"thisown"): self
.thisown
= 0
215 self
.__class
__ = Gauge
216 _controls
.Gauge_swigregister(GaugePtr
)
218 def PreGauge(*args
, **kwargs
):
219 val
= _controls
.new_PreGauge(*args
, **kwargs
)
223 #---------------------------------------------------------------------------
225 class StaticBox(core
.Control
):
226 def __init__(self
, *args
, **kwargs
):
227 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
228 self
.this
= newobj
.this
231 self
._setOORInfo
(self
)
232 def Create(*args
, **kwargs
): return _controls
.StaticBox_Create(*args
, **kwargs
)
234 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
236 class StaticBoxPtr(StaticBox
):
237 def __init__(self
, this
):
239 if not hasattr(self
,"thisown"): self
.thisown
= 0
240 self
.__class
__ = StaticBox
241 _controls
.StaticBox_swigregister(StaticBoxPtr
)
243 def PreStaticBox(*args
, **kwargs
):
244 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
248 #---------------------------------------------------------------------------
250 class StaticLine(core
.Control
):
251 def __init__(self
, *args
, **kwargs
):
252 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
253 self
.this
= newobj
.this
256 self
._setOORInfo
(self
)
257 def Create(*args
, **kwargs
): return _controls
.StaticLine_Create(*args
, **kwargs
)
258 def IsVertical(*args
, **kwargs
): return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
259 GetDefaultSize
= staticmethod(_controls
.StaticLine_GetDefaultSize
)
261 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
263 class StaticLinePtr(StaticLine
):
264 def __init__(self
, this
):
266 if not hasattr(self
,"thisown"): self
.thisown
= 0
267 self
.__class
__ = StaticLine
268 _controls
.StaticLine_swigregister(StaticLinePtr
)
270 def PreStaticLine(*args
, **kwargs
):
271 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
275 StaticLine_GetDefaultSize
= _controls
.StaticLine_GetDefaultSize
277 #---------------------------------------------------------------------------
279 class StaticText(core
.Control
):
280 def __init__(self
, *args
, **kwargs
):
281 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
282 self
.this
= newobj
.this
285 self
._setOORInfo
(self
)
286 def Create(*args
, **kwargs
): return _controls
.StaticText_Create(*args
, **kwargs
)
288 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
290 class StaticTextPtr(StaticText
):
291 def __init__(self
, this
):
293 if not hasattr(self
,"thisown"): self
.thisown
= 0
294 self
.__class
__ = StaticText
295 _controls
.StaticText_swigregister(StaticTextPtr
)
297 def PreStaticText(*args
, **kwargs
):
298 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
302 #---------------------------------------------------------------------------
304 class StaticBitmap(core
.Control
):
305 def __init__(self
, *args
, **kwargs
):
306 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
307 self
.this
= newobj
.this
310 def Create(*args
, **kwargs
): return _controls
.StaticBitmap_Create(*args
, **kwargs
)
311 def GetBitmap(*args
, **kwargs
): return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
312 def SetBitmap(*args
, **kwargs
): return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
313 def SetIcon(*args
, **kwargs
): return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
315 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
317 class StaticBitmapPtr(StaticBitmap
):
318 def __init__(self
, this
):
320 if not hasattr(self
,"thisown"): self
.thisown
= 0
321 self
.__class
__ = StaticBitmap
322 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
324 def PreStaticBitmap(*args
, **kwargs
):
325 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
329 #---------------------------------------------------------------------------
331 class ListBox(core
.ControlWithItems
):
332 def __init__(self
, *args
, **kwargs
):
333 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
334 self
.this
= newobj
.this
337 self
._setOORInfo
(self
)
338 def Create(*args
, **kwargs
): return _controls
.ListBox_Create(*args
, **kwargs
)
339 def Insert(*args
, **kwargs
): return _controls
.ListBox_Insert(*args
, **kwargs
)
340 def InsertItems(*args
, **kwargs
): return _controls
.ListBox_InsertItems(*args
, **kwargs
)
341 def Set(*args
, **kwargs
): return _controls
.ListBox_Set(*args
, **kwargs
)
342 def IsSelected(*args
, **kwargs
): return _controls
.ListBox_IsSelected(*args
, **kwargs
)
343 def SetSelection(*args
, **kwargs
): return _controls
.ListBox_SetSelection(*args
, **kwargs
)
344 def Select(*args
, **kwargs
): return _controls
.ListBox_Select(*args
, **kwargs
)
345 def Deselect(*args
, **kwargs
): return _controls
.ListBox_Deselect(*args
, **kwargs
)
346 def DeselectAll(*args
, **kwargs
): return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
347 def SetStringSelection(*args
, **kwargs
): return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
348 def GetSelections(*args
, **kwargs
): return _controls
.ListBox_GetSelections(*args
, **kwargs
)
349 def SetFirstItem(*args
, **kwargs
): return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
350 def SetFirstItemStr(*args
, **kwargs
): return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
351 def EnsureVisible(*args
, **kwargs
): return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
352 def AppendAndEnsureVisible(*args
, **kwargs
): return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
353 def IsSorted(*args
, **kwargs
): return _controls
.ListBox_IsSorted(*args
, **kwargs
)
355 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
357 class ListBoxPtr(ListBox
):
358 def __init__(self
, this
):
360 if not hasattr(self
,"thisown"): self
.thisown
= 0
361 self
.__class
__ = ListBox
362 _controls
.ListBox_swigregister(ListBoxPtr
)
364 def PreListBox(*args
, **kwargs
):
365 val
= _controls
.new_PreListBox(*args
, **kwargs
)
369 #---------------------------------------------------------------------------
371 class CheckListBox(ListBox
):
372 def __init__(self
, *args
, **kwargs
):
373 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
374 self
.this
= newobj
.this
377 def Create(*args
, **kwargs
): return _controls
.CheckListBox_Create(*args
, **kwargs
)
378 def IsChecked(*args
, **kwargs
): return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
379 def Check(*args
, **kwargs
): return _controls
.CheckListBox_Check(*args
, **kwargs
)
380 def GetItemHeight(*args
, **kwargs
): return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
381 def HitTest(*args
, **kwargs
): return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
382 def HitTestXY(*args
, **kwargs
): return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
384 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
386 class CheckListBoxPtr(CheckListBox
):
387 def __init__(self
, this
):
389 if not hasattr(self
,"thisown"): self
.thisown
= 0
390 self
.__class
__ = CheckListBox
391 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
393 def PreCheckListBox(*args
, **kwargs
):
394 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
398 #---------------------------------------------------------------------------
400 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
401 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
402 TE_READONLY
= _controls
.TE_READONLY
403 TE_MULTILINE
= _controls
.TE_MULTILINE
404 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
405 TE_LEFT
= _controls
.TE_LEFT
406 TE_CENTER
= _controls
.TE_CENTER
407 TE_RIGHT
= _controls
.TE_RIGHT
408 TE_CENTRE
= _controls
.TE_CENTRE
409 TE_RICH
= _controls
.TE_RICH
410 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
411 TE_PASSWORD
= _controls
.TE_PASSWORD
412 TE_AUTO_URL
= _controls
.TE_AUTO_URL
413 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
414 TE_DONTWRAP
= _controls
.TE_DONTWRAP
415 TE_LINEWRAP
= _controls
.TE_LINEWRAP
416 TE_WORDWRAP
= _controls
.TE_WORDWRAP
417 TE_RICH2
= _controls
.TE_RICH2
418 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
419 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
420 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
421 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
422 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
423 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
424 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
425 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
426 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
427 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
428 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
429 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
430 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
431 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
432 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
433 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
434 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
435 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
436 class TextAttr(object):
437 def __init__(self
, *args
):
438 newobj
= _controls
.new_TextAttr(*args
)
439 self
.this
= newobj
.this
442 def Init(*args
, **kwargs
): return _controls
.TextAttr_Init(*args
, **kwargs
)
443 def SetTextColour(*args
, **kwargs
): return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
444 def SetBackgroundColour(*args
, **kwargs
): return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
445 def SetFont(*args
, **kwargs
): return _controls
.TextAttr_SetFont(*args
, **kwargs
)
446 def SetAlignment(*args
, **kwargs
): return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
447 def SetTabs(*args
, **kwargs
): return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
448 def SetLeftIndent(*args
, **kwargs
): return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
449 def SetRightIndent(*args
, **kwargs
): return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
450 def SetFlags(*args
, **kwargs
): return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
451 def HasTextColour(*args
, **kwargs
): return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
452 def HasBackgroundColour(*args
, **kwargs
): return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
453 def HasFont(*args
, **kwargs
): return _controls
.TextAttr_HasFont(*args
, **kwargs
)
454 def HasAlignment(*args
, **kwargs
): return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
455 def HasTabs(*args
, **kwargs
): return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
456 def HasLeftIndent(*args
, **kwargs
): return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
457 def HasRightIndent(*args
, **kwargs
): return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
458 def HasFlag(*args
, **kwargs
): return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
459 def GetTextColour(*args
, **kwargs
): return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
460 def GetBackgroundColour(*args
, **kwargs
): return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
461 def GetFont(*args
, **kwargs
): return _controls
.TextAttr_GetFont(*args
, **kwargs
)
462 def GetAlignment(*args
, **kwargs
): return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
463 def GetTabs(*args
, **kwargs
): return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
464 def GetLeftIndent(*args
, **kwargs
): return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
465 def GetRightIndent(*args
, **kwargs
): return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
466 def GetFlags(*args
, **kwargs
): return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
467 def IsDefault(*args
, **kwargs
): return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
468 Combine
= staticmethod(_controls
.TextAttr_Combine
)
470 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
472 class TextAttrPtr(TextAttr
):
473 def __init__(self
, this
):
475 if not hasattr(self
,"thisown"): self
.thisown
= 0
476 self
.__class
__ = TextAttr
477 _controls
.TextAttr_swigregister(TextAttrPtr
)
479 TextAttr_Combine
= _controls
.TextAttr_Combine
481 class TextCtrl(core
.Control
):
482 def __init__(self
, *args
, **kwargs
):
483 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
484 self
.this
= newobj
.this
487 self
._setOORInfo
(self
)
488 def Create(*args
, **kwargs
): return _controls
.TextCtrl_Create(*args
, **kwargs
)
489 def GetValue(*args
, **kwargs
): return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
490 def SetValue(*args
, **kwargs
): return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
491 def GetRange(*args
, **kwargs
): return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
492 def GetLineLength(*args
, **kwargs
): return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
493 def GetLineText(*args
, **kwargs
): return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
494 def GetNumberOfLines(*args
, **kwargs
): return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
495 def IsModified(*args
, **kwargs
): return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
496 def IsEditable(*args
, **kwargs
): return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
497 def IsSingleLine(*args
, **kwargs
): return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
498 def IsMultiLine(*args
, **kwargs
): return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
499 def GetSelection(*args
, **kwargs
): return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
500 def GetStringSelection(*args
, **kwargs
): return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
501 def Clear(*args
, **kwargs
): return _controls
.TextCtrl_Clear(*args
, **kwargs
)
502 def Replace(*args
, **kwargs
): return _controls
.TextCtrl_Replace(*args
, **kwargs
)
503 def Remove(*args
, **kwargs
): return _controls
.TextCtrl_Remove(*args
, **kwargs
)
504 def LoadFile(*args
, **kwargs
): return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
505 def SaveFile(*args
, **kwargs
): return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
506 def MarkDirty(*args
, **kwargs
): return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
507 def DiscardEdits(*args
, **kwargs
): return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
508 def SetMaxLength(*args
, **kwargs
): return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
509 def WriteText(*args
, **kwargs
): return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
510 def AppendText(*args
, **kwargs
): return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
511 def EmulateKeyPress(*args
, **kwargs
): return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
512 def SetStyle(*args
, **kwargs
): return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
513 def GetStyle(*args
, **kwargs
): return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
514 def SetDefaultStyle(*args
, **kwargs
): return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
515 def GetDefaultStyle(*args
, **kwargs
): return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
516 def XYToPosition(*args
, **kwargs
): return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
517 def PositionToXY(*args
, **kwargs
): return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
518 def ShowPosition(*args
, **kwargs
): return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
519 def Copy(*args
, **kwargs
): return _controls
.TextCtrl_Copy(*args
, **kwargs
)
520 def Cut(*args
, **kwargs
): return _controls
.TextCtrl_Cut(*args
, **kwargs
)
521 def Paste(*args
, **kwargs
): return _controls
.TextCtrl_Paste(*args
, **kwargs
)
522 def CanCopy(*args
, **kwargs
): return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
523 def CanCut(*args
, **kwargs
): return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
524 def CanPaste(*args
, **kwargs
): return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
525 def Undo(*args
, **kwargs
): return _controls
.TextCtrl_Undo(*args
, **kwargs
)
526 def Redo(*args
, **kwargs
): return _controls
.TextCtrl_Redo(*args
, **kwargs
)
527 def CanUndo(*args
, **kwargs
): return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
528 def CanRedo(*args
, **kwargs
): return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
529 def SetInsertionPoint(*args
, **kwargs
): return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
530 def SetInsertionPointEnd(*args
, **kwargs
): return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
531 def GetInsertionPoint(*args
, **kwargs
): return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
532 def GetLastPosition(*args
, **kwargs
): return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
533 def SetSelection(*args
, **kwargs
): return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
534 def SelectAll(*args
, **kwargs
): return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
535 def SetEditable(*args
, **kwargs
): return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
536 def ShowNativeCaret(*args
, **kwargs
): return _controls
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
537 def HideNativeCaret(*args
, **kwargs
): return _controls
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
538 def write(*args
, **kwargs
): return _controls
.TextCtrl_write(*args
, **kwargs
)
539 def GetString(*args
, **kwargs
): return _controls
.TextCtrl_GetString(*args
, **kwargs
)
541 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
543 class TextCtrlPtr(TextCtrl
):
544 def __init__(self
, this
):
546 if not hasattr(self
,"thisown"): self
.thisown
= 0
547 self
.__class
__ = TextCtrl
548 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
550 def PreTextCtrl(*args
, **kwargs
):
551 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
555 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
556 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
557 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
558 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
559 class TextUrlEvent(core
.CommandEvent
):
560 def __init__(self
, *args
, **kwargs
):
561 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
562 self
.this
= newobj
.this
565 def GetMouseEvent(*args
, **kwargs
): return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
566 def GetURLStart(*args
, **kwargs
): return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
567 def GetURLEnd(*args
, **kwargs
): return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
569 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
571 class TextUrlEventPtr(TextUrlEvent
):
572 def __init__(self
, this
):
574 if not hasattr(self
,"thisown"): self
.thisown
= 0
575 self
.__class
__ = TextUrlEvent
576 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
578 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
579 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
580 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
581 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
583 #---------------------------------------------------------------------------
585 class ScrollBar(core
.Control
):
586 def __init__(self
, *args
, **kwargs
):
587 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
588 self
.this
= newobj
.this
591 self
._setOORInfo
(self
)
592 def Create(*args
, **kwargs
): return _controls
.ScrollBar_Create(*args
, **kwargs
)
593 def GetThumbPosition(*args
, **kwargs
): return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
594 def GetThumbSize(*args
, **kwargs
): return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
595 GetThumbLength
= GetThumbSize
596 def GetPageSize(*args
, **kwargs
): return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
597 def GetRange(*args
, **kwargs
): return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
598 def IsVertical(*args
, **kwargs
): return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
599 def SetThumbPosition(*args
, **kwargs
): return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
600 def SetScrollbar(*args
, **kwargs
): return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
602 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
604 class ScrollBarPtr(ScrollBar
):
605 def __init__(self
, this
):
607 if not hasattr(self
,"thisown"): self
.thisown
= 0
608 self
.__class
__ = ScrollBar
609 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
611 def PreScrollBar(*args
, **kwargs
):
612 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
616 #---------------------------------------------------------------------------
618 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
619 SP_VERTICAL
= _controls
.SP_VERTICAL
620 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
621 SP_WRAP
= _controls
.SP_WRAP
622 class SpinButton(core
.Control
):
623 def __init__(self
, *args
, **kwargs
):
624 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
625 self
.this
= newobj
.this
628 self
._setOORInfo
(self
)
629 def Create(*args
, **kwargs
): return _controls
.SpinButton_Create(*args
, **kwargs
)
630 def GetValue(*args
, **kwargs
): return _controls
.SpinButton_GetValue(*args
, **kwargs
)
631 def GetMin(*args
, **kwargs
): return _controls
.SpinButton_GetMin(*args
, **kwargs
)
632 def GetMax(*args
, **kwargs
): return _controls
.SpinButton_GetMax(*args
, **kwargs
)
633 def SetValue(*args
, **kwargs
): return _controls
.SpinButton_SetValue(*args
, **kwargs
)
634 def SetMin(*args
, **kwargs
): return _controls
.SpinButton_SetMin(*args
, **kwargs
)
635 def SetMax(*args
, **kwargs
): return _controls
.SpinButton_SetMax(*args
, **kwargs
)
636 def SetRange(*args
, **kwargs
): return _controls
.SpinButton_SetRange(*args
, **kwargs
)
637 def IsVertical(*args
, **kwargs
): return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
639 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
641 class SpinButtonPtr(SpinButton
):
642 def __init__(self
, this
):
644 if not hasattr(self
,"thisown"): self
.thisown
= 0
645 self
.__class
__ = SpinButton
646 _controls
.SpinButton_swigregister(SpinButtonPtr
)
648 def PreSpinButton(*args
, **kwargs
):
649 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
653 class SpinCtrl(core
.Control
):
654 def __init__(self
, *args
, **kwargs
):
655 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
656 self
.this
= newobj
.this
659 self
._setOORInfo
(self
)
660 def Create(*args
, **kwargs
): return _controls
.SpinCtrl_Create(*args
, **kwargs
)
661 def GetValue(*args
, **kwargs
): return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
662 def SetValue(*args
, **kwargs
): return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
663 def SetValueString(*args
, **kwargs
): return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
664 def SetRange(*args
, **kwargs
): return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
665 def GetMin(*args
, **kwargs
): return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
666 def GetMax(*args
, **kwargs
): return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
667 def SetSelection(*args
, **kwargs
): return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
669 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
671 class SpinCtrlPtr(SpinCtrl
):
672 def __init__(self
, this
):
674 if not hasattr(self
,"thisown"): self
.thisown
= 0
675 self
.__class
__ = SpinCtrl
676 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
678 def PreSpinCtrl(*args
, **kwargs
):
679 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
683 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
684 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
686 #---------------------------------------------------------------------------
688 class RadioBox(core
.Control
):
689 def __init__(self
, *args
, **kwargs
):
690 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
691 self
.this
= newobj
.this
694 self
._setOORInfo
(self
)
695 def Create(*args
, **kwargs
): return _controls
.RadioBox_Create(*args
, **kwargs
)
696 def SetSelection(*args
, **kwargs
): return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
697 def GetSelection(*args
, **kwargs
): return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
698 def GetStringSelection(*args
, **kwargs
): return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
699 def SetStringSelection(*args
, **kwargs
): return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
700 def GetCount(*args
, **kwargs
): return _controls
.RadioBox_GetCount(*args
, **kwargs
)
701 def FindString(*args
, **kwargs
): return _controls
.RadioBox_FindString(*args
, **kwargs
)
702 def GetString(*args
, **kwargs
): return _controls
.RadioBox_GetString(*args
, **kwargs
)
703 def SetString(*args
, **kwargs
): return _controls
.RadioBox_SetString(*args
, **kwargs
)
704 GetItemLabel
= GetString
705 SetItemLabel
= SetString
706 def EnableItem(*args
, **kwargs
): return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
707 def ShowItem(*args
, **kwargs
): return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
708 def GetColumnCount(*args
, **kwargs
): return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
709 def GetRowCount(*args
, **kwargs
): return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
710 def GetNextItem(*args
, **kwargs
): return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
712 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
714 class RadioBoxPtr(RadioBox
):
715 def __init__(self
, this
):
717 if not hasattr(self
,"thisown"): self
.thisown
= 0
718 self
.__class
__ = RadioBox
719 _controls
.RadioBox_swigregister(RadioBoxPtr
)
721 def PreRadioBox(*args
, **kwargs
):
722 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
726 #---------------------------------------------------------------------------
728 class RadioButton(core
.Control
):
729 def __init__(self
, *args
, **kwargs
):
730 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
731 self
.this
= newobj
.this
734 self
._setOORInfo
(self
)
735 def Create(*args
, **kwargs
): return _controls
.RadioButton_Create(*args
, **kwargs
)
736 def GetValue(*args
, **kwargs
): return _controls
.RadioButton_GetValue(*args
, **kwargs
)
737 def SetValue(*args
, **kwargs
): return _controls
.RadioButton_SetValue(*args
, **kwargs
)
739 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
741 class RadioButtonPtr(RadioButton
):
742 def __init__(self
, this
):
744 if not hasattr(self
,"thisown"): self
.thisown
= 0
745 self
.__class
__ = RadioButton
746 _controls
.RadioButton_swigregister(RadioButtonPtr
)
748 def PreRadioButton(*args
, **kwargs
):
749 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
753 #---------------------------------------------------------------------------
755 class Slider(core
.Control
):
756 def __init__(self
, *args
, **kwargs
):
757 newobj
= _controls
.new_Slider(*args
, **kwargs
)
758 self
.this
= newobj
.this
761 self
._setOORInfo
(self
)
762 def Create(*args
, **kwargs
): return _controls
.Slider_Create(*args
, **kwargs
)
763 def GetValue(*args
, **kwargs
): return _controls
.Slider_GetValue(*args
, **kwargs
)
764 def SetValue(*args
, **kwargs
): return _controls
.Slider_SetValue(*args
, **kwargs
)
765 def SetRange(*args
, **kwargs
): return _controls
.Slider_SetRange(*args
, **kwargs
)
766 def GetMin(*args
, **kwargs
): return _controls
.Slider_GetMin(*args
, **kwargs
)
767 def GetMax(*args
, **kwargs
): return _controls
.Slider_GetMax(*args
, **kwargs
)
768 def SetMin(*args
, **kwargs
): return _controls
.Slider_SetMin(*args
, **kwargs
)
769 def SetMax(*args
, **kwargs
): return _controls
.Slider_SetMax(*args
, **kwargs
)
770 def SetLineSize(*args
, **kwargs
): return _controls
.Slider_SetLineSize(*args
, **kwargs
)
771 def SetPageSize(*args
, **kwargs
): return _controls
.Slider_SetPageSize(*args
, **kwargs
)
772 def GetLineSize(*args
, **kwargs
): return _controls
.Slider_GetLineSize(*args
, **kwargs
)
773 def GetPageSize(*args
, **kwargs
): return _controls
.Slider_GetPageSize(*args
, **kwargs
)
774 def SetThumbLength(*args
, **kwargs
): return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
775 def GetThumbLength(*args
, **kwargs
): return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
776 def SetTickFreq(*args
, **kwargs
): return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
777 def GetTickFreq(*args
, **kwargs
): return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
778 def ClearTicks(*args
, **kwargs
): return _controls
.Slider_ClearTicks(*args
, **kwargs
)
779 def SetTick(*args
, **kwargs
): return _controls
.Slider_SetTick(*args
, **kwargs
)
780 def ClearSel(*args
, **kwargs
): return _controls
.Slider_ClearSel(*args
, **kwargs
)
781 def GetSelEnd(*args
, **kwargs
): return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
782 def GetSelStart(*args
, **kwargs
): return _controls
.Slider_GetSelStart(*args
, **kwargs
)
783 def SetSelection(*args
, **kwargs
): return _controls
.Slider_SetSelection(*args
, **kwargs
)
785 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
787 class SliderPtr(Slider
):
788 def __init__(self
, this
):
790 if not hasattr(self
,"thisown"): self
.thisown
= 0
791 self
.__class
__ = Slider
792 _controls
.Slider_swigregister(SliderPtr
)
794 def PreSlider(*args
, **kwargs
):
795 val
= _controls
.new_PreSlider(*args
, **kwargs
)
799 #---------------------------------------------------------------------------
801 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
802 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
804 class ToggleButton(core
.Control
):
805 def __init__(self
, *args
, **kwargs
):
806 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
807 self
.this
= newobj
.this
810 self
._setOORInfo
(self
)
811 def Create(*args
, **kwargs
): return _controls
.ToggleButton_Create(*args
, **kwargs
)
812 def SetValue(*args
, **kwargs
): return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
813 def GetValue(*args
, **kwargs
): return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
814 def SetLabel(*args
, **kwargs
): return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
816 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
818 class ToggleButtonPtr(ToggleButton
):
819 def __init__(self
, this
):
821 if not hasattr(self
,"thisown"): self
.thisown
= 0
822 self
.__class
__ = ToggleButton
823 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
825 def PreToggleButton(*args
, **kwargs
):
826 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
830 #---------------------------------------------------------------------------
832 class BookCtrl(core
.Control
):
833 def GetPageCount(*args
, **kwargs
): return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
834 def GetPage(*args
, **kwargs
): return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
835 def GetSelection(*args
, **kwargs
): return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
836 def SetPageText(*args
, **kwargs
): return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
837 def GetPageText(*args
, **kwargs
): return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
838 def SetImageList(*args
, **kwargs
): return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
839 def AssignImageList(*args
, **kwargs
):
840 val
= _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
843 def GetImageList(*args
, **kwargs
): return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
844 def GetPageImage(*args
, **kwargs
): return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
845 def SetPageImage(*args
, **kwargs
): return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
846 def SetPageSize(*args
, **kwargs
): return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
847 def CalcSizeFromPage(*args
, **kwargs
): return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
848 def DeletePage(*args
, **kwargs
): return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
849 def RemovePage(*args
, **kwargs
): return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
850 def DeleteAllPages(*args
, **kwargs
): return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
851 def AddPage(*args
, **kwargs
): return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
852 def InsertPage(*args
, **kwargs
): return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
853 def SetSelection(*args
, **kwargs
): return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
854 def AdvanceSelection(*args
, **kwargs
): return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
855 def __init__(self
): raise RuntimeError, "No constructor defined"
857 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
859 class BookCtrlPtr(BookCtrl
):
860 def __init__(self
, this
):
862 if not hasattr(self
,"thisown"): self
.thisown
= 0
863 self
.__class
__ = BookCtrl
864 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
866 class BookCtrlEvent(core
.NotifyEvent
):
867 def __init__(self
, *args
, **kwargs
):
868 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
869 self
.this
= newobj
.this
872 def GetSelection(*args
, **kwargs
): return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
873 def SetSelection(*args
, **kwargs
): return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
874 def GetOldSelection(*args
, **kwargs
): return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
875 def SetOldSelection(*args
, **kwargs
): return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
877 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
879 class BookCtrlEventPtr(BookCtrlEvent
):
880 def __init__(self
, this
):
882 if not hasattr(self
,"thisown"): self
.thisown
= 0
883 self
.__class
__ = BookCtrlEvent
884 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
886 #---------------------------------------------------------------------------
888 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
889 NB_TOP
= _controls
.NB_TOP
890 NB_LEFT
= _controls
.NB_LEFT
891 NB_RIGHT
= _controls
.NB_RIGHT
892 NB_BOTTOM
= _controls
.NB_BOTTOM
893 NB_MULTILINE
= _controls
.NB_MULTILINE
894 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
895 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
896 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
897 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
898 class Notebook(BookCtrl
):
899 def __init__(self
, *args
, **kwargs
):
900 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
901 self
.this
= newobj
.this
904 self
._setOORInfo
(self
)
905 def Create(*args
, **kwargs
): return _controls
.Notebook_Create(*args
, **kwargs
)
906 def GetRowCount(*args
, **kwargs
): return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
907 def SetPadding(*args
, **kwargs
): return _controls
.Notebook_SetPadding(*args
, **kwargs
)
908 def SetTabSize(*args
, **kwargs
): return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
909 def HitTest(*args
, **kwargs
): return _controls
.Notebook_HitTest(*args
, **kwargs
)
910 def CalcSizeFromPage(*args
, **kwargs
): return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
911 def ApplyThemeBackground(*args
, **kwargs
): return _controls
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
913 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
915 class NotebookPtr(Notebook
):
916 def __init__(self
, this
):
918 if not hasattr(self
,"thisown"): self
.thisown
= 0
919 self
.__class
__ = Notebook
920 _controls
.Notebook_swigregister(NotebookPtr
)
922 def PreNotebook(*args
, **kwargs
):
923 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
927 class NotebookEvent(BookCtrlEvent
):
928 def __init__(self
, *args
, **kwargs
):
929 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
930 self
.this
= newobj
.this
934 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
936 class NotebookEventPtr(NotebookEvent
):
937 def __init__(self
, this
):
939 if not hasattr(self
,"thisown"): self
.thisown
= 0
940 self
.__class
__ = NotebookEvent
941 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
943 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
944 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
946 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
947 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
949 #----------------------------------------------------------------------------
951 class NotebookPage(wx
.Panel
):
953 There is an old (and apparently unsolvable) bug when placing a
954 window with a nonstandard background colour in a wxNotebook on
955 wxGTK, as the notbooks's background colour would always be used
956 when the window is refreshed. The solution is to place a panel in
957 the notbook and the coloured window on the panel, sized to cover
958 the panel. This simple class does that for you, just put an
959 instance of this in the notebook and make your regular window a
960 child of this one and it will handle the resize for you.
962 def __init__(self
, parent
, id=-1,
963 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
964 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
965 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
967 EVT_SIZE(self
, self
.OnSize
)
969 def OnSize(self
, evt
):
970 if self
.child
is None:
971 children
= self
.GetChildren()
973 self
.child
= children
[0]
975 self
.child
.SetPosition((0,0))
976 self
.child
.SetSize(self
.GetSize())
979 #---------------------------------------------------------------------------
981 LB_DEFAULT
= _controls
.LB_DEFAULT
982 LB_TOP
= _controls
.LB_TOP
983 LB_BOTTOM
= _controls
.LB_BOTTOM
984 LB_LEFT
= _controls
.LB_LEFT
985 LB_RIGHT
= _controls
.LB_RIGHT
986 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
987 class Listbook(BookCtrl
):
988 def __init__(self
, *args
, **kwargs
):
989 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
990 self
.this
= newobj
.this
993 self
._setOORInfo
(self
)
994 def Create(*args
, **kwargs
): return _controls
.Listbook_Create(*args
, **kwargs
)
995 def IsVertical(*args
, **kwargs
): return _controls
.Listbook_IsVertical(*args
, **kwargs
)
997 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
999 class ListbookPtr(Listbook
):
1000 def __init__(self
, this
):
1002 if not hasattr(self
,"thisown"): self
.thisown
= 0
1003 self
.__class
__ = Listbook
1004 _controls
.Listbook_swigregister(ListbookPtr
)
1006 def PreListbook(*args
, **kwargs
):
1007 val
= _controls
.new_PreListbook(*args
, **kwargs
)
1011 class ListbookEvent(BookCtrlEvent
):
1012 def __init__(self
, *args
, **kwargs
):
1013 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
1014 self
.this
= newobj
.this
1018 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1020 class ListbookEventPtr(ListbookEvent
):
1021 def __init__(self
, this
):
1023 if not hasattr(self
,"thisown"): self
.thisown
= 0
1024 self
.__class
__ = ListbookEvent
1025 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
1027 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
1028 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
1029 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
1030 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
1032 #---------------------------------------------------------------------------
1034 class BookCtrlSizer(core
.Sizer
):
1035 def __init__(self
, *args
, **kwargs
):
1036 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
1037 self
.this
= newobj
.this
1040 self
._setOORInfo
(self
)
1041 def RecalcSizes(*args
, **kwargs
): return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
1042 def CalcMin(*args
, **kwargs
): return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
1043 def GetControl(*args
, **kwargs
): return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
1045 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1047 class BookCtrlSizerPtr(BookCtrlSizer
):
1048 def __init__(self
, this
):
1050 if not hasattr(self
,"thisown"): self
.thisown
= 0
1051 self
.__class
__ = BookCtrlSizer
1052 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
1054 class NotebookSizer(core
.Sizer
):
1055 def __init__(self
, *args
, **kwargs
):
1056 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
1057 self
.this
= newobj
.this
1060 self
._setOORInfo
(self
)
1061 def RecalcSizes(*args
, **kwargs
): return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
1062 def CalcMin(*args
, **kwargs
): return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
1063 def GetNotebook(*args
, **kwargs
): return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
1065 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1067 class NotebookSizerPtr(NotebookSizer
):
1068 def __init__(self
, this
):
1070 if not hasattr(self
,"thisown"): self
.thisown
= 0
1071 self
.__class
__ = NotebookSizer
1072 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
1074 #---------------------------------------------------------------------------
1076 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
1077 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
1078 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
1079 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
1080 TB_VERTICAL
= _controls
.TB_VERTICAL
1081 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
1082 TB_FLAT
= _controls
.TB_FLAT
1083 TB_DOCKABLE
= _controls
.TB_DOCKABLE
1084 TB_NOICONS
= _controls
.TB_NOICONS
1085 TB_TEXT
= _controls
.TB_TEXT
1086 TB_NODIVIDER
= _controls
.TB_NODIVIDER
1087 TB_NOALIGN
= _controls
.TB_NOALIGN
1088 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
1089 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
1090 class ToolBarToolBase(core
.Object
):
1091 def GetId(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
1092 def GetControl(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
1093 def GetToolBar(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
1094 def IsButton(*args
, **kwargs
): return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
1095 def IsControl(*args
, **kwargs
): return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
1096 def IsSeparator(*args
, **kwargs
): return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
1097 def GetStyle(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
1098 def GetKind(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
1099 def IsEnabled(*args
, **kwargs
): return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
1100 def IsToggled(*args
, **kwargs
): return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
1101 def CanBeToggled(*args
, **kwargs
): return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
1102 def GetNormalBitmap(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
1103 def GetDisabledBitmap(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
1104 def GetBitmap(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
1105 def GetLabel(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
1106 def GetShortHelp(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
1107 def GetLongHelp(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
1108 def Enable(*args
, **kwargs
): return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
1109 def Toggle(*args
, **kwargs
): return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
1110 def SetToggle(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
1111 def SetShortHelp(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
1112 def SetLongHelp(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
1113 def SetNormalBitmap(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
1114 def SetDisabledBitmap(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
1115 def SetLabel(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
1116 def Detach(*args
, **kwargs
): return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
1117 def Attach(*args
, **kwargs
): return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
1118 def GetClientData(*args
, **kwargs
): return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
1119 def SetClientData(*args
, **kwargs
): return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
1120 GetBitmap1
= GetNormalBitmap
1121 GetBitmap2
= GetDisabledBitmap
1122 SetBitmap1
= SetNormalBitmap
1123 SetBitmap2
= SetDisabledBitmap
1125 def __init__(self
): raise RuntimeError, "No constructor defined"
1127 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1129 class ToolBarToolBasePtr(ToolBarToolBase
):
1130 def __init__(self
, this
):
1132 if not hasattr(self
,"thisown"): self
.thisown
= 0
1133 self
.__class
__ = ToolBarToolBase
1134 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
1136 class ToolBarBase(core
.Control
):
1137 def DoAddTool(*args
, **kwargs
): return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
1138 def DoInsertTool(*args
, **kwargs
): return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
1139 # These match the original Add methods for this class, kept for
1140 # backwards compatibility with versions < 2.3.3.
1143 def AddTool(self
, id, bitmap
,
1144 pushedBitmap
= wx
.NullBitmap
,
1147 shortHelpString
= '',
1148 longHelpString
= '') :
1149 '''Old style method to add a tool to the toolbar.'''
1150 kind
= wx
.ITEM_NORMAL
1151 if isToggle
: kind
= wx
.ITEM_CHECK
1152 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
1153 shortHelpString
, longHelpString
, clientData
)
1155 def AddSimpleTool(self
, id, bitmap
,
1156 shortHelpString
= '',
1157 longHelpString
= '',
1159 '''Old style method to add a tool to the toolbar.'''
1160 kind
= wx
.ITEM_NORMAL
1161 if isToggle
: kind
= wx
.ITEM_CHECK
1162 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
1163 shortHelpString
, longHelpString
, None)
1165 def InsertTool(self
, pos
, id, bitmap
,
1166 pushedBitmap
= wx
.NullBitmap
,
1169 shortHelpString
= '',
1170 longHelpString
= ''):
1171 '''Old style method to insert a tool in the toolbar.'''
1172 kind
= wx
.ITEM_NORMAL
1173 if isToggle
: kind
= wx
.ITEM_CHECK
1174 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
1175 shortHelpString
, longHelpString
, clientData
)
1177 def InsertSimpleTool(self
, pos
, id, bitmap
,
1178 shortHelpString
= '',
1179 longHelpString
= '',
1181 '''Old style method to insert a tool in the toolbar.'''
1182 kind
= wx
.ITEM_NORMAL
1183 if isToggle
: kind
= wx
.ITEM_CHECK
1184 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
1185 shortHelpString
, longHelpString
, None)
1188 # The following are the new toolbar Add methods starting with
1189 # 2.3.3. They are renamed to have 'Label' in the name so as to be
1190 # able to keep backwards compatibility with using the above
1191 # methods. Eventually these should migrate to be the methods used
1192 # primarily and lose the 'Label' in the name...
1194 def AddLabelTool(self
, id, label
, bitmap
,
1195 bmpDisabled
= wx
.NullBitmap
,
1196 kind
= wx
.ITEM_NORMAL
,
1197 shortHelp
= '', longHelp
= '',
1200 The full AddTool() function.
1202 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
1203 is created and used as the disabled image.
1205 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
1206 shortHelp
, longHelp
, clientData
)
1209 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
1210 bmpDisabled
= wx
.NullBitmap
,
1211 kind
= wx
.ITEM_NORMAL
,
1212 shortHelp
= '', longHelp
= '',
1215 Insert the new tool at the given position, if pos == GetToolsCount(), it
1216 is equivalent to AddTool()
1218 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
1219 shortHelp
, longHelp
, clientData
)
1221 def AddCheckLabelTool(self
, id, label
, bitmap
,
1222 bmpDisabled
= wx
.NullBitmap
,
1223 shortHelp
= '', longHelp
= '',
1225 '''Add a check tool, i.e. a tool which can be toggled'''
1226 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
1227 shortHelp
, longHelp
, clientData
)
1229 def AddRadioLabelTool(self
, id, label
, bitmap
,
1230 bmpDisabled
= wx
.NullBitmap
,
1231 shortHelp
= '', longHelp
= '',
1234 Add a radio tool, i.e. a tool which can be toggled and releases any
1235 other toggled radio tools in the same group when it happens
1237 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
1238 shortHelp
, longHelp
, clientData
)
1241 # For consistency with the backwards compatible methods above, here are
1242 # some non-'Label' versions of the Check and Radio methods
1243 def AddCheckTool(self
, id, bitmap
,
1244 bmpDisabled
= wx
.NullBitmap
,
1245 shortHelp
= '', longHelp
= '',
1247 '''Add a check tool, i.e. a tool which can be toggled'''
1248 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
1249 shortHelp
, longHelp
, clientData
)
1251 def AddRadioTool(self
, id, bitmap
,
1252 bmpDisabled
= wx
.NullBitmap
,
1253 shortHelp
= '', longHelp
= '',
1256 Add a radio tool, i.e. a tool which can be toggled and releases any
1257 other toggled radio tools in the same group when it happens
1259 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
1260 shortHelp
, longHelp
, clientData
)
1262 def AddControl(*args
, **kwargs
): return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
1263 def InsertControl(*args
, **kwargs
): return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
1264 def FindControl(*args
, **kwargs
): return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
1265 def AddSeparator(*args
, **kwargs
): return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
1266 def InsertSeparator(*args
, **kwargs
): return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
1267 def RemoveTool(*args
, **kwargs
): return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
1268 def DeleteToolByPos(*args
, **kwargs
): return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
1269 def DeleteTool(*args
, **kwargs
): return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
1270 def ClearTools(*args
, **kwargs
): return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
1271 def Realize(*args
, **kwargs
): return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
1272 def EnableTool(*args
, **kwargs
): return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
1273 def ToggleTool(*args
, **kwargs
): return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
1274 def SetToggle(*args
, **kwargs
): return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
1275 def GetToolClientData(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
1276 def SetToolClientData(*args
, **kwargs
): return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
1277 def GetToolPos(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
1278 def GetToolState(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
1279 def GetToolEnabled(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
1280 def SetToolShortHelp(*args
, **kwargs
): return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
1281 def GetToolShortHelp(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
1282 def SetToolLongHelp(*args
, **kwargs
): return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
1283 def GetToolLongHelp(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
1284 def SetMarginsXY(*args
, **kwargs
): return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
1285 def SetMargins(*args
, **kwargs
): return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
1286 def SetToolPacking(*args
, **kwargs
): return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
1287 def SetToolSeparation(*args
, **kwargs
): return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
1288 def GetToolMargins(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
1289 def GetMargins(*args
, **kwargs
): return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
1290 def GetToolPacking(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
1291 def GetToolSeparation(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
1292 def SetRows(*args
, **kwargs
): return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
1293 def SetMaxRowsCols(*args
, **kwargs
): return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
1294 def GetMaxRows(*args
, **kwargs
): return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
1295 def GetMaxCols(*args
, **kwargs
): return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
1296 def SetToolBitmapSize(*args
, **kwargs
): return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
1297 def GetToolBitmapSize(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
1298 def GetToolSize(*args
, **kwargs
): return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
1299 def FindToolForPosition(*args
, **kwargs
): return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
1300 def IsVertical(*args
, **kwargs
): return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
1301 def __init__(self
): raise RuntimeError, "No constructor defined"
1303 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1305 class ToolBarBasePtr(ToolBarBase
):
1306 def __init__(self
, this
):
1308 if not hasattr(self
,"thisown"): self
.thisown
= 0
1309 self
.__class
__ = ToolBarBase
1310 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
1312 class ToolBar(ToolBarBase
):
1313 def __init__(self
, *args
, **kwargs
):
1314 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
1315 self
.this
= newobj
.this
1318 self
._setOORInfo
(self
)
1319 def Create(*args
, **kwargs
): return _controls
.ToolBar_Create(*args
, **kwargs
)
1320 def FindToolForPosition(*args
, **kwargs
): return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
1322 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1324 class ToolBarPtr(ToolBar
):
1325 def __init__(self
, this
):
1327 if not hasattr(self
,"thisown"): self
.thisown
= 0
1328 self
.__class
__ = ToolBar
1329 _controls
.ToolBar_swigregister(ToolBarPtr
)
1331 def PreToolBar(*args
, **kwargs
):
1332 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
1336 #---------------------------------------------------------------------------
1338 LC_VRULES
= _controls
.LC_VRULES
1339 LC_HRULES
= _controls
.LC_HRULES
1340 LC_ICON
= _controls
.LC_ICON
1341 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
1342 LC_LIST
= _controls
.LC_LIST
1343 LC_REPORT
= _controls
.LC_REPORT
1344 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
1345 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
1346 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
1347 LC_VIRTUAL
= _controls
.LC_VIRTUAL
1348 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
1349 LC_NO_HEADER
= _controls
.LC_NO_HEADER
1350 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
1351 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
1352 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
1353 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
1354 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
1355 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
1356 LC_MASK_SORT
= _controls
.LC_MASK_SORT
1357 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
1358 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
1359 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
1360 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
1361 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
1362 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
1363 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
1364 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
1365 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
1366 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
1367 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
1368 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
1369 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
1370 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
1371 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
1372 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
1373 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
1374 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
1375 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
1376 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
1377 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
1378 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
1379 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
1380 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
1381 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
1382 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
1383 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
1384 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
1385 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
1386 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
1387 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
1388 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
1389 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
1390 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
1391 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
1392 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
1393 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
1394 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
1395 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
1396 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
1397 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
1398 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
1399 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
1400 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
1401 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
1402 LIST_FIND_UP
= _controls
.LIST_FIND_UP
1403 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
1404 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
1405 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
1406 #---------------------------------------------------------------------------
1408 class ListItemAttr(object):
1409 def __init__(self
, *args
, **kwargs
):
1410 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
1411 self
.this
= newobj
.this
1414 def SetTextColour(*args
, **kwargs
): return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
1415 def SetBackgroundColour(*args
, **kwargs
): return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
1416 def SetFont(*args
, **kwargs
): return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
1417 def HasTextColour(*args
, **kwargs
): return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
1418 def HasBackgroundColour(*args
, **kwargs
): return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
1419 def HasFont(*args
, **kwargs
): return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
1420 def GetTextColour(*args
, **kwargs
): return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
1421 def GetBackgroundColour(*args
, **kwargs
): return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
1422 def GetFont(*args
, **kwargs
): return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
1423 def Destroy(*args
, **kwargs
): return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
1425 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1427 class ListItemAttrPtr(ListItemAttr
):
1428 def __init__(self
, this
):
1430 if not hasattr(self
,"thisown"): self
.thisown
= 0
1431 self
.__class
__ = ListItemAttr
1432 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
1434 #---------------------------------------------------------------------------
1436 class ListItem(core
.Object
):
1437 def __init__(self
, *args
, **kwargs
):
1438 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
1439 self
.this
= newobj
.this
1442 def __del__(self
, destroy
=_controls
.delete_ListItem
):
1444 if self
.thisown
: destroy(self
)
1446 def Clear(*args
, **kwargs
): return _controls
.ListItem_Clear(*args
, **kwargs
)
1447 def ClearAttributes(*args
, **kwargs
): return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
1448 def SetMask(*args
, **kwargs
): return _controls
.ListItem_SetMask(*args
, **kwargs
)
1449 def SetId(*args
, **kwargs
): return _controls
.ListItem_SetId(*args
, **kwargs
)
1450 def SetColumn(*args
, **kwargs
): return _controls
.ListItem_SetColumn(*args
, **kwargs
)
1451 def SetState(*args
, **kwargs
): return _controls
.ListItem_SetState(*args
, **kwargs
)
1452 def SetStateMask(*args
, **kwargs
): return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
1453 def SetText(*args
, **kwargs
): return _controls
.ListItem_SetText(*args
, **kwargs
)
1454 def SetImage(*args
, **kwargs
): return _controls
.ListItem_SetImage(*args
, **kwargs
)
1455 def SetData(*args
, **kwargs
): return _controls
.ListItem_SetData(*args
, **kwargs
)
1456 def SetWidth(*args
, **kwargs
): return _controls
.ListItem_SetWidth(*args
, **kwargs
)
1457 def SetAlign(*args
, **kwargs
): return _controls
.ListItem_SetAlign(*args
, **kwargs
)
1458 def SetTextColour(*args
, **kwargs
): return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
1459 def SetBackgroundColour(*args
, **kwargs
): return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
1460 def SetFont(*args
, **kwargs
): return _controls
.ListItem_SetFont(*args
, **kwargs
)
1461 def GetMask(*args
, **kwargs
): return _controls
.ListItem_GetMask(*args
, **kwargs
)
1462 def GetId(*args
, **kwargs
): return _controls
.ListItem_GetId(*args
, **kwargs
)
1463 def GetColumn(*args
, **kwargs
): return _controls
.ListItem_GetColumn(*args
, **kwargs
)
1464 def GetState(*args
, **kwargs
): return _controls
.ListItem_GetState(*args
, **kwargs
)
1465 def GetText(*args
, **kwargs
): return _controls
.ListItem_GetText(*args
, **kwargs
)
1466 def GetImage(*args
, **kwargs
): return _controls
.ListItem_GetImage(*args
, **kwargs
)
1467 def GetData(*args
, **kwargs
): return _controls
.ListItem_GetData(*args
, **kwargs
)
1468 def GetWidth(*args
, **kwargs
): return _controls
.ListItem_GetWidth(*args
, **kwargs
)
1469 def GetAlign(*args
, **kwargs
): return _controls
.ListItem_GetAlign(*args
, **kwargs
)
1470 def GetAttributes(*args
, **kwargs
): return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
1471 def HasAttributes(*args
, **kwargs
): return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
1472 def GetTextColour(*args
, **kwargs
): return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
1473 def GetBackgroundColour(*args
, **kwargs
): return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
1474 def GetFont(*args
, **kwargs
): return _controls
.ListItem_GetFont(*args
, **kwargs
)
1475 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
1476 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
1477 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
1478 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
1479 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
1480 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
1481 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
1482 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
1483 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
1484 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
1486 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1488 class ListItemPtr(ListItem
):
1489 def __init__(self
, this
):
1491 if not hasattr(self
,"thisown"): self
.thisown
= 0
1492 self
.__class
__ = ListItem
1493 _controls
.ListItem_swigregister(ListItemPtr
)
1495 #---------------------------------------------------------------------------
1497 class ListEvent(core
.NotifyEvent
):
1498 def __init__(self
, *args
, **kwargs
):
1499 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
1500 self
.this
= newobj
.this
1503 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
1504 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
1505 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
1506 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
1507 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
1508 m_item
= property(_controls
.ListEvent_m_item_get
)
1509 def GetKeyCode(*args
, **kwargs
): return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
1510 GetCode
= GetKeyCode
1511 def GetIndex(*args
, **kwargs
): return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
1512 def GetColumn(*args
, **kwargs
): return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
1513 def GetPoint(*args
, **kwargs
): return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
1514 GetPostiion
= GetPoint
1515 def GetLabel(*args
, **kwargs
): return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
1516 def GetText(*args
, **kwargs
): return _controls
.ListEvent_GetText(*args
, **kwargs
)
1517 def GetImage(*args
, **kwargs
): return _controls
.ListEvent_GetImage(*args
, **kwargs
)
1518 def GetData(*args
, **kwargs
): return _controls
.ListEvent_GetData(*args
, **kwargs
)
1519 def GetMask(*args
, **kwargs
): return _controls
.ListEvent_GetMask(*args
, **kwargs
)
1520 def GetItem(*args
, **kwargs
): return _controls
.ListEvent_GetItem(*args
, **kwargs
)
1521 def GetCacheFrom(*args
, **kwargs
): return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
1522 def GetCacheTo(*args
, **kwargs
): return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
1523 def IsEditCancelled(*args
, **kwargs
): return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
1524 def SetEditCanceled(*args
, **kwargs
): return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
1526 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1528 class ListEventPtr(ListEvent
):
1529 def __init__(self
, this
):
1531 if not hasattr(self
,"thisown"): self
.thisown
= 0
1532 self
.__class
__ = ListEvent
1533 _controls
.ListEvent_swigregister(ListEventPtr
)
1535 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
1536 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
1537 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
1538 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
1539 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
1540 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
1541 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
1542 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
1543 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
1544 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
1545 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
1546 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
1547 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
1548 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
1549 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
1550 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
1551 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
1552 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
1553 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
1554 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
1555 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
1556 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
1557 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
1558 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
1559 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
1560 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
1561 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
1562 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
1563 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
1564 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
1565 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
1566 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
1567 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
1568 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
1569 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
1570 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
1571 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
1572 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
1573 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
1574 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
1575 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
1576 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
1577 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
1578 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
1580 #---------------------------------------------------------------------------
1582 class ListCtrl(core
.Control
):
1583 def __init__(self
, *args
, **kwargs
):
1584 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
1585 self
.this
= newobj
.this
1588 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
1589 def Create(*args
, **kwargs
): return _controls
.ListCtrl_Create(*args
, **kwargs
)
1590 def _setCallbackInfo(*args
, **kwargs
): return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
1591 def SetForegroundColour(*args
, **kwargs
): return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
1592 def SetBackgroundColour(*args
, **kwargs
): return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
1593 def GetColumn(*args
, **kwargs
):
1594 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
1595 if val
is not None: val
.thisown
= 1
1597 def SetColumn(*args
, **kwargs
): return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
1598 def GetColumnWidth(*args
, **kwargs
): return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
1599 def SetColumnWidth(*args
, **kwargs
): return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
1600 def GetCountPerPage(*args
, **kwargs
): return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
1601 def GetViewRect(*args
, **kwargs
): return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
1602 def GetEditControl(*args
, **kwargs
): return _controls
.ListCtrl_GetEditControl(*args
, **kwargs
)
1603 def GetItem(*args
, **kwargs
):
1604 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
1605 if val
is not None: val
.thisown
= 1
1607 def SetItem(*args
, **kwargs
): return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
1608 def SetStringItem(*args
, **kwargs
): return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
1609 def GetItemState(*args
, **kwargs
): return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
1610 def SetItemState(*args
, **kwargs
): return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
1611 def SetItemImage(*args
, **kwargs
): return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
1612 def GetItemText(*args
, **kwargs
): return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
1613 def SetItemText(*args
, **kwargs
): return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
1614 def GetItemData(*args
, **kwargs
): return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
1615 def SetItemData(*args
, **kwargs
): return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
1616 def GetItemPosition(*args
, **kwargs
): return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
1617 def GetItemRect(*args
, **kwargs
): return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
1618 def SetItemPosition(*args
, **kwargs
): return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
1619 def GetItemCount(*args
, **kwargs
): return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
1620 def GetColumnCount(*args
, **kwargs
): return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
1621 def GetItemSpacing(*args
, **kwargs
): return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
1622 def GetSelectedItemCount(*args
, **kwargs
): return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
1623 def GetTextColour(*args
, **kwargs
): return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
1624 def SetTextColour(*args
, **kwargs
): return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
1625 def GetTopItem(*args
, **kwargs
): return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
1626 def SetSingleStyle(*args
, **kwargs
): return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
1627 def SetWindowStyleFlag(*args
, **kwargs
): return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
1628 def GetNextItem(*args
, **kwargs
): return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
1629 def GetImageList(*args
, **kwargs
): return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
1630 def SetImageList(*args
, **kwargs
): return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
1631 def AssignImageList(*args
, **kwargs
):
1632 val
= _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
1635 def IsVirtual(*args
, **kwargs
): return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
1636 def RefreshItem(*args
, **kwargs
): return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
1637 def RefreshItems(*args
, **kwargs
): return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
1638 def Arrange(*args
, **kwargs
): return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
1639 def DeleteItem(*args
, **kwargs
): return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
1640 def DeleteAllItems(*args
, **kwargs
): return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
1641 def DeleteColumn(*args
, **kwargs
): return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
1642 def DeleteAllColumns(*args
, **kwargs
): return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
1643 def ClearAll(*args
, **kwargs
): return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
1644 def EditLabel(*args
, **kwargs
): return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
1645 def EndEditLabel(*args
, **kwargs
): return _controls
.ListCtrl_EndEditLabel(*args
, **kwargs
)
1646 def EnsureVisible(*args
, **kwargs
): return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
1647 def FindItem(*args
, **kwargs
): return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
1648 def FindItemData(*args
, **kwargs
): return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
1649 def FindItemAtPos(*args
, **kwargs
): return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
1650 def HitTest(*args
, **kwargs
): return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
1651 def InsertItem(*args
, **kwargs
): return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
1652 def InsertStringItem(*args
, **kwargs
): return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
1653 def InsertImageItem(*args
, **kwargs
): return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
1654 def InsertImageStringItem(*args
, **kwargs
): return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
1655 def InsertColumnInfo(*args
, **kwargs
): return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
1656 def InsertColumn(*args
, **kwargs
): return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
1657 def SetItemCount(*args
, **kwargs
): return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
1658 def ScrollList(*args
, **kwargs
): return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
1659 def SetItemTextColour(*args
, **kwargs
): return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
1660 def GetItemTextColour(*args
, **kwargs
): return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
1661 def SetItemBackgroundColour(*args
, **kwargs
): return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
1662 def GetItemBackgroundColour(*args
, **kwargs
): return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
1665 def Select(self
, idx
, on
=1):
1666 '''[de]select an item'''
1667 if on
: state
= wxLIST_STATE_SELECTED
1669 self
.SetItemState(idx
, state
, wxLIST_STATE_SELECTED
)
1671 def Focus(self
, idx
):
1672 '''Focus and show the given item'''
1673 self
.SetItemState(idx
, wxLIST_STATE_FOCUSED
, wxLIST_STATE_FOCUSED
)
1674 self
.EnsureVisible(idx
)
1676 def GetFocusedItem(self
):
1677 '''get the currently focused item or -1 if none'''
1678 return self
.GetNextItem(-1, wxLIST_NEXT_ALL
, wxLIST_STATE_FOCUSED
)
1680 def GetFirstSelected(self
, *args
):
1681 '''return first selected item, or -1 when none'''
1682 return self
.GetNextSelected(-1)
1684 def GetNextSelected(self
, item
):
1685 '''return subsequent selected items, or -1 when no more'''
1686 return self
.GetNextItem(item
, wxLIST_NEXT_ALL
, wxLIST_STATE_SELECTED
)
1688 def IsSelected(self
, idx
):
1689 '''return TRUE if the item is selected'''
1690 return self
.GetItemState(idx
, wxLIST_STATE_SELECTED
) != 0
1692 def SetColumnImage(self
, col
, image
):
1693 item
= self
.GetColumn(col
)
1695 item
.SetMask( wxLIST_MASK_STATE |
1701 wxLIST_MASK_FORMAT
)
1702 item
.SetImage(image
)
1703 self
.SetColumn(col
, item
)
1705 def ClearColumnImage(self
, col
):
1706 self
.SetColumnImage(col
, -1)
1708 def Append(self
, entry
):
1709 '''Append an item to the list control. The entry parameter should be a
1710 sequence with an item for each column'''
1712 if wx
.wxUSE_UNICODE
:
1716 pos
= self
.GetItemCount()
1717 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
1718 for i
in range(1, len(entry
)):
1719 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
1722 def SortItems(*args
, **kwargs
): return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
1723 def GetMainWindow(*args
, **kwargs
): return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
1725 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1727 class ListCtrlPtr(ListCtrl
):
1728 def __init__(self
, this
):
1730 if not hasattr(self
,"thisown"): self
.thisown
= 0
1731 self
.__class
__ = ListCtrl
1732 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
1734 def PreListCtrl(*args
, **kwargs
):
1735 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
1739 #---------------------------------------------------------------------------
1741 class ListView(ListCtrl
):
1742 def __init__(self
, *args
, **kwargs
):
1743 newobj
= _controls
.new_ListView(*args
, **kwargs
)
1744 self
.this
= newobj
.this
1747 self
._setOORInfo
(self
)
1748 def Create(*args
, **kwargs
): return _controls
.ListView_Create(*args
, **kwargs
)
1749 def Select(*args
, **kwargs
): return _controls
.ListView_Select(*args
, **kwargs
)
1750 def Focus(*args
, **kwargs
): return _controls
.ListView_Focus(*args
, **kwargs
)
1751 def GetFocusedItem(*args
, **kwargs
): return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
1752 def GetNextSelected(*args
, **kwargs
): return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
1753 def GetFirstSelected(*args
, **kwargs
): return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
1754 def IsSelected(*args
, **kwargs
): return _controls
.ListView_IsSelected(*args
, **kwargs
)
1755 def SetColumnImage(*args
, **kwargs
): return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
1756 def ClearColumnImage(*args
, **kwargs
): return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
1758 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1760 class ListViewPtr(ListView
):
1761 def __init__(self
, this
):
1763 if not hasattr(self
,"thisown"): self
.thisown
= 0
1764 self
.__class
__ = ListView
1765 _controls
.ListView_swigregister(ListViewPtr
)
1767 def PreListView(*args
, **kwargs
):
1768 val
= _controls
.new_PreListView(*args
, **kwargs
)
1772 #---------------------------------------------------------------------------
1774 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
1775 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
1776 TR_NO_LINES
= _controls
.TR_NO_LINES
1777 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
1778 TR_SINGLE
= _controls
.TR_SINGLE
1779 TR_MULTIPLE
= _controls
.TR_MULTIPLE
1780 TR_EXTENDED
= _controls
.TR_EXTENDED
1781 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
1782 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
1783 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
1784 TR_ROW_LINES
= _controls
.TR_ROW_LINES
1785 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
1786 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
1787 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
1788 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
1789 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
1790 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
1791 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
1792 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
1793 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
1794 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
1795 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
1796 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
1797 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
1798 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
1799 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
1800 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
1801 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
1802 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
1803 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
1804 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
1805 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
1806 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
1807 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
1808 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
1809 #---------------------------------------------------------------------------
1811 class TreeItemId(object):
1812 def __init__(self
, *args
, **kwargs
):
1813 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
1814 self
.this
= newobj
.this
1817 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
1819 if self
.thisown
: destroy(self
)
1821 def IsOk(*args
, **kwargs
): return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
1822 def __eq__(*args
, **kwargs
): return _controls
.TreeItemId___eq__(*args
, **kwargs
)
1823 def __ne__(*args
, **kwargs
): return _controls
.TreeItemId___ne__(*args
, **kwargs
)
1824 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
1826 def __nonzero__(self
): return self
.IsOk()
1828 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1830 class TreeItemIdPtr(TreeItemId
):
1831 def __init__(self
, this
):
1833 if not hasattr(self
,"thisown"): self
.thisown
= 0
1834 self
.__class
__ = TreeItemId
1835 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
1837 class TreeItemData(object):
1838 def __init__(self
, *args
, **kwargs
):
1839 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
1840 self
.this
= newobj
.this
1843 def GetData(*args
, **kwargs
): return _controls
.TreeItemData_GetData(*args
, **kwargs
)
1844 def SetData(*args
, **kwargs
): return _controls
.TreeItemData_SetData(*args
, **kwargs
)
1845 def GetId(*args
, **kwargs
): return _controls
.TreeItemData_GetId(*args
, **kwargs
)
1846 def SetId(*args
, **kwargs
): return _controls
.TreeItemData_SetId(*args
, **kwargs
)
1847 def Destroy(*args
, **kwargs
): return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
1849 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1851 class TreeItemDataPtr(TreeItemData
):
1852 def __init__(self
, this
):
1854 if not hasattr(self
,"thisown"): self
.thisown
= 0
1855 self
.__class
__ = TreeItemData
1856 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
1858 #---------------------------------------------------------------------------
1860 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
1861 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
1862 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
1863 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
1864 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
1865 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
1866 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
1867 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
1868 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
1869 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
1870 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
1871 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
1872 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
1873 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
1874 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
1875 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
1876 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
1877 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
1878 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
1879 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
1880 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
1881 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
1882 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
1883 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
1884 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
1885 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
1886 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
1887 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
1888 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
1889 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
1890 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
1891 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
1892 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
1893 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
1894 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
1895 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
1896 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
1897 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
1900 class TreeEvent(core
.NotifyEvent
):
1901 def __init__(self
, *args
, **kwargs
):
1902 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
1903 self
.this
= newobj
.this
1906 def GetItem(*args
, **kwargs
): return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
1907 def SetItem(*args
, **kwargs
): return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
1908 def GetOldItem(*args
, **kwargs
): return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
1909 def SetOldItem(*args
, **kwargs
): return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
1910 def GetPoint(*args
, **kwargs
): return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
1911 def SetPoint(*args
, **kwargs
): return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
1912 def GetKeyEvent(*args
, **kwargs
): return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
1913 def GetKeyCode(*args
, **kwargs
): return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
1914 def SetKeyEvent(*args
, **kwargs
): return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
1915 def GetLabel(*args
, **kwargs
): return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
1916 def SetLabel(*args
, **kwargs
): return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
1917 def IsEditCancelled(*args
, **kwargs
): return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
1918 def SetEditCanceled(*args
, **kwargs
): return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
1920 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1922 class TreeEventPtr(TreeEvent
):
1923 def __init__(self
, this
):
1925 if not hasattr(self
,"thisown"): self
.thisown
= 0
1926 self
.__class
__ = TreeEvent
1927 _controls
.TreeEvent_swigregister(TreeEventPtr
)
1929 #---------------------------------------------------------------------------
1931 class TreeCtrl(core
.Control
):
1932 def __init__(self
, *args
, **kwargs
):
1933 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
1934 self
.this
= newobj
.this
1937 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
1938 def Create(*args
, **kwargs
): return _controls
.TreeCtrl_Create(*args
, **kwargs
)
1939 def _setCallbackInfo(*args
, **kwargs
): return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
1940 def GetCount(*args
, **kwargs
): return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
1941 def GetIndent(*args
, **kwargs
): return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
1942 def SetIndent(*args
, **kwargs
): return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
1943 def GetSpacing(*args
, **kwargs
): return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
1944 def SetSpacing(*args
, **kwargs
): return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
1945 def GetImageList(*args
, **kwargs
): return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
1946 def GetStateImageList(*args
, **kwargs
): return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
1947 def SetImageList(*args
, **kwargs
): return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
1948 def SetStateImageList(*args
, **kwargs
): return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
1949 def AssignImageList(*args
, **kwargs
):
1950 val
= _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
1953 def AssignStateImageList(*args
, **kwargs
):
1954 val
= _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
1957 def GetItemText(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
1958 def GetItemImage(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
1959 def GetItemData(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
1960 def GetItemPyData(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
1961 GetPyData
= GetItemPyData
1962 def GetItemTextColour(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
1963 def GetItemBackgroundColour(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
1964 def GetItemFont(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
1965 def SetItemText(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
1966 def SetItemImage(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
1967 def SetItemData(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
1968 def SetItemPyData(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
1969 SetPyData
= SetItemPyData
1970 def SetItemHasChildren(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
1971 def SetItemBold(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
1972 def SetItemDropHighlight(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
1973 def SetItemTextColour(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
1974 def SetItemBackgroundColour(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
1975 def SetItemFont(*args
, **kwargs
): return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
1976 def IsVisible(*args
, **kwargs
): return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
1977 def ItemHasChildren(*args
, **kwargs
): return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
1978 def IsExpanded(*args
, **kwargs
): return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
1979 def IsSelected(*args
, **kwargs
): return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
1980 def IsBold(*args
, **kwargs
): return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
1981 def GetChildrenCount(*args
, **kwargs
): return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
1982 def GetRootItem(*args
, **kwargs
): return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
1983 def GetSelection(*args
, **kwargs
): return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
1984 def GetSelections(*args
, **kwargs
): return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
1985 def GetItemParent(*args
, **kwargs
): return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
1986 def GetFirstChild(*args
, **kwargs
): return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
1987 def GetNextChild(*args
, **kwargs
): return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
1988 def GetLastChild(*args
, **kwargs
): return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
1989 def GetNextSibling(*args
, **kwargs
): return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
1990 def GetPrevSibling(*args
, **kwargs
): return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
1991 def GetFirstVisibleItem(*args
, **kwargs
): return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
1992 def GetNextVisible(*args
, **kwargs
): return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
1993 def GetPrevVisible(*args
, **kwargs
): return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
1994 def AddRoot(*args
, **kwargs
): return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
1995 def PrependItem(*args
, **kwargs
): return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
1996 def InsertItem(*args
, **kwargs
): return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
1997 def InsertItemBefore(*args
, **kwargs
): return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
1998 def AppendItem(*args
, **kwargs
): return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
1999 def Delete(*args
, **kwargs
): return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
2000 def DeleteChildren(*args
, **kwargs
): return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
2001 def DeleteAllItems(*args
, **kwargs
): return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
2002 def Expand(*args
, **kwargs
): return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
2003 def Collapse(*args
, **kwargs
): return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
2004 def CollapseAndReset(*args
, **kwargs
): return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
2005 def Toggle(*args
, **kwargs
): return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
2006 def Unselect(*args
, **kwargs
): return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
2007 def UnselectAll(*args
, **kwargs
): return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
2008 def SelectItem(*args
, **kwargs
): return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
2009 def EnsureVisible(*args
, **kwargs
): return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
2010 def ScrollTo(*args
, **kwargs
): return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
2011 def EditLabel(*args
, **kwargs
): return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
2012 def GetEditControl(*args
, **kwargs
): return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
2013 def EndEditLabel(*args
, **kwargs
): return _controls
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
2014 def SortChildren(*args
, **kwargs
): return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
2015 def HitTest(*args
, **kwargs
): return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
2016 def GetBoundingRect(*args
, **kwargs
): return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
2018 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2020 class TreeCtrlPtr(TreeCtrl
):
2021 def __init__(self
, this
):
2023 if not hasattr(self
,"thisown"): self
.thisown
= 0
2024 self
.__class
__ = TreeCtrl
2025 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
2027 def PreTreeCtrl(*args
, **kwargs
):
2028 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
2032 #---------------------------------------------------------------------------
2034 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
2035 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
2036 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
2037 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
2038 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
2039 class GenericDirCtrl(core
.Control
):
2040 def __init__(self
, *args
, **kwargs
):
2041 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
2042 self
.this
= newobj
.this
2045 self
._setOORInfo
(self
)
2046 def Create(*args
, **kwargs
): return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
2047 def ExpandPath(*args
, **kwargs
): return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
2048 def GetDefaultPath(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
2049 def SetDefaultPath(*args
, **kwargs
): return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
2050 def GetPath(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
2051 def GetFilePath(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
2052 def SetPath(*args
, **kwargs
): return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
2053 def ShowHidden(*args
, **kwargs
): return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
2054 def GetShowHidden(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
2055 def GetFilter(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
2056 def SetFilter(*args
, **kwargs
): return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
2057 def GetFilterIndex(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
2058 def SetFilterIndex(*args
, **kwargs
): return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
2059 def GetRootId(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
2060 def GetTreeCtrl(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
2061 def GetFilterListCtrl(*args
, **kwargs
): return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
2062 def FindChild(*args
, **kwargs
): return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
2063 def DoResize(*args
, **kwargs
): return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
2064 def ReCreateTree(*args
, **kwargs
): return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
2066 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2068 class GenericDirCtrlPtr(GenericDirCtrl
):
2069 def __init__(self
, this
):
2071 if not hasattr(self
,"thisown"): self
.thisown
= 0
2072 self
.__class
__ = GenericDirCtrl
2073 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
2075 def PreGenericDirCtrl(*args
, **kwargs
):
2076 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
2080 class DirFilterListCtrl(Choice
):
2081 def __init__(self
, *args
, **kwargs
):
2082 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
2083 self
.this
= newobj
.this
2086 self
._setOORInfo
(self
)
2087 def Create(*args
, **kwargs
): return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
2088 def FillFilterList(*args
, **kwargs
): return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
2090 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2092 class DirFilterListCtrlPtr(DirFilterListCtrl
):
2093 def __init__(self
, this
):
2095 if not hasattr(self
,"thisown"): self
.thisown
= 0
2096 self
.__class
__ = DirFilterListCtrl
2097 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
2099 def PreDirFilterListCtrl(*args
, **kwargs
):
2100 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
2104 #---------------------------------------------------------------------------
2106 class PyControl(core
.Control
):
2107 def __init__(self
, *args
, **kwargs
):
2108 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
2109 self
.this
= newobj
.this
2112 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
2113 def _setCallbackInfo(*args
, **kwargs
): return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
2114 def base_DoMoveWindow(*args
, **kwargs
): return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
2115 def base_DoSetSize(*args
, **kwargs
): return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
2116 def base_DoSetClientSize(*args
, **kwargs
): return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
2117 def base_DoSetVirtualSize(*args
, **kwargs
): return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
2118 def base_DoGetSize(*args
, **kwargs
): return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
2119 def base_DoGetClientSize(*args
, **kwargs
): return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
2120 def base_DoGetPosition(*args
, **kwargs
): return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
2121 def base_DoGetVirtualSize(*args
, **kwargs
): return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
2122 def base_DoGetBestSize(*args
, **kwargs
): return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
2123 def base_InitDialog(*args
, **kwargs
): return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
2124 def base_TransferDataToWindow(*args
, **kwargs
): return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
2125 def base_TransferDataFromWindow(*args
, **kwargs
): return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
2126 def base_Validate(*args
, **kwargs
): return _controls
.PyControl_base_Validate(*args
, **kwargs
)
2127 def base_AcceptsFocus(*args
, **kwargs
): return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
2128 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
): return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
2129 def base_GetMaxSize(*args
, **kwargs
): return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
2130 def base_AddChild(*args
, **kwargs
): return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
2131 def base_RemoveChild(*args
, **kwargs
): return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
2133 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2135 class PyControlPtr(PyControl
):
2136 def __init__(self
, this
):
2138 if not hasattr(self
,"thisown"): self
.thisown
= 0
2139 self
.__class
__ = PyControl
2140 _controls
.PyControl_swigregister(PyControlPtr
)
2142 #---------------------------------------------------------------------------
2144 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
2145 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
2146 wxEVT_HELP
= _controls
.wxEVT_HELP
2147 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
2148 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
2149 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
2150 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
2151 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
2153 class HelpEvent(core
.CommandEvent
):
2154 def __init__(self
, *args
, **kwargs
):
2155 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
2156 self
.this
= newobj
.this
2159 def GetPosition(*args
, **kwargs
): return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
2160 def SetPosition(*args
, **kwargs
): return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
2161 def GetLink(*args
, **kwargs
): return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
2162 def SetLink(*args
, **kwargs
): return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
2163 def GetTarget(*args
, **kwargs
): return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
2164 def SetTarget(*args
, **kwargs
): return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
2166 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2168 class HelpEventPtr(HelpEvent
):
2169 def __init__(self
, this
):
2171 if not hasattr(self
,"thisown"): self
.thisown
= 0
2172 self
.__class
__ = HelpEvent
2173 _controls
.HelpEvent_swigregister(HelpEventPtr
)
2175 class ContextHelp(core
.Object
):
2176 def __init__(self
, *args
, **kwargs
):
2177 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
2178 self
.this
= newobj
.this
2181 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
2183 if self
.thisown
: destroy(self
)
2185 def BeginContextHelp(*args
, **kwargs
): return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
2186 def EndContextHelp(*args
, **kwargs
): return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
2188 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2190 class ContextHelpPtr(ContextHelp
):
2191 def __init__(self
, this
):
2193 if not hasattr(self
,"thisown"): self
.thisown
= 0
2194 self
.__class
__ = ContextHelp
2195 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
2197 class ContextHelpButton(BitmapButton
):
2198 def __init__(self
, *args
, **kwargs
):
2199 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
2200 self
.this
= newobj
.this
2203 self
._setOORInfo
(self
)
2205 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2207 class ContextHelpButtonPtr(ContextHelpButton
):
2208 def __init__(self
, this
):
2210 if not hasattr(self
,"thisown"): self
.thisown
= 0
2211 self
.__class
__ = ContextHelpButton
2212 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
2214 class HelpProvider(object):
2215 Set
= staticmethod(_controls
.HelpProvider_Set
)
2216 Get
= staticmethod(_controls
.HelpProvider_Get
)
2217 def GetHelp(*args
, **kwargs
): return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
2218 def ShowHelp(*args
, **kwargs
): return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
2219 def AddHelp(*args
, **kwargs
): return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
2220 def AddHelpById(*args
, **kwargs
): return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
2221 def Destroy(*args
, **kwargs
): return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
2222 def __init__(self
): raise RuntimeError, "No constructor defined"
2224 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2226 class HelpProviderPtr(HelpProvider
):
2227 def __init__(self
, this
):
2229 if not hasattr(self
,"thisown"): self
.thisown
= 0
2230 self
.__class
__ = HelpProvider
2231 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
2233 HelpProvider_Set
= _controls
.HelpProvider_Set
2235 HelpProvider_Get
= _controls
.HelpProvider_Get
2237 class SimpleHelpProvider(HelpProvider
):
2238 def __init__(self
, *args
, **kwargs
):
2239 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
2240 self
.this
= newobj
.this
2244 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2246 class SimpleHelpProviderPtr(SimpleHelpProvider
):
2247 def __init__(self
, this
):
2249 if not hasattr(self
,"thisown"): self
.thisown
= 0
2250 self
.__class
__ = SimpleHelpProvider
2251 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)