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