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