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