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