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