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