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