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