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