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