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