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