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