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