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