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