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