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