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