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