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