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