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