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