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