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