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