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