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