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