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