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