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