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