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