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