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