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