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