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