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