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