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