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