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