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