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