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