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