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