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