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