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