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