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