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