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