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