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