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