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