]>
Commit | Line | Data |
---|---|---|
1bd55598 | 1 | # This file was created automatically by SWIG 1.3.29. |
d55e5bfc RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
4 | import _misc_ | |
1bd55598 RD |
5 | import new |
6 | new_instancemethod = new.instancemethod | |
36ed4f51 | 7 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
1bd55598 | 8 | if (name == "thisown"): return self.this.own(value) |
36ed4f51 | 9 | if (name == "this"): |
1bd55598 RD |
10 | if type(value).__name__ == 'PySwigObject': |
11 | self.__dict__[name] = value | |
36ed4f51 RD |
12 | return |
13 | method = class_type.__swig_setmethods__.get(name,None) | |
14 | if method: return method(self,value) | |
1bd55598 | 15 | if (not static) or hasattr(self,name): |
36ed4f51 RD |
16 | self.__dict__[name] = value |
17 | else: | |
18 | raise AttributeError("You cannot add attributes to %s" % self) | |
19 | ||
20 | def _swig_setattr(self,class_type,name,value): | |
21 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
22 | ||
23 | def _swig_getattr(self,class_type,name): | |
1bd55598 | 24 | if (name == "thisown"): return self.this.own() |
36ed4f51 RD |
25 | method = class_type.__swig_getmethods__.get(name,None) |
26 | if method: return method(self) | |
27 | raise AttributeError,name | |
28 | ||
1bd55598 RD |
29 | def _swig_repr(self): |
30 | try: strthis = "proxy of " + self.this.__repr__() | |
31 | except: strthis = "" | |
32 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | |
33 | ||
36ed4f51 RD |
34 | import types |
35 | try: | |
36 | _object = types.ObjectType | |
37 | _newclass = 1 | |
38 | except AttributeError: | |
39 | class _object : pass | |
40 | _newclass = 0 | |
41 | del types | |
42 | ||
43 | ||
44 | def _swig_setattr_nondynamic_method(set): | |
45 | def set_attr(self,name,value): | |
1bd55598 RD |
46 | if (name == "thisown"): return self.this.own(value) |
47 | if hasattr(self,name) or (name == "this"): | |
36ed4f51 RD |
48 | set(self,name,value) |
49 | else: | |
50 | raise AttributeError("You cannot add attributes to %s" % self) | |
51 | return set_attr | |
52 | ||
53 | ||
d55e5bfc RD |
54 | import _core |
55 | wx = _core | |
d55e5bfc RD |
56 | #--------------------------------------------------------------------------- |
57 | ||
58 | SYS_OEM_FIXED_FONT = _misc_.SYS_OEM_FIXED_FONT | |
59 | SYS_ANSI_FIXED_FONT = _misc_.SYS_ANSI_FIXED_FONT | |
60 | SYS_ANSI_VAR_FONT = _misc_.SYS_ANSI_VAR_FONT | |
61 | SYS_SYSTEM_FONT = _misc_.SYS_SYSTEM_FONT | |
62 | SYS_DEVICE_DEFAULT_FONT = _misc_.SYS_DEVICE_DEFAULT_FONT | |
63 | SYS_DEFAULT_PALETTE = _misc_.SYS_DEFAULT_PALETTE | |
64 | SYS_SYSTEM_FIXED_FONT = _misc_.SYS_SYSTEM_FIXED_FONT | |
65 | SYS_DEFAULT_GUI_FONT = _misc_.SYS_DEFAULT_GUI_FONT | |
66 | SYS_ICONTITLE_FONT = _misc_.SYS_ICONTITLE_FONT | |
67 | SYS_COLOUR_SCROLLBAR = _misc_.SYS_COLOUR_SCROLLBAR | |
68 | SYS_COLOUR_BACKGROUND = _misc_.SYS_COLOUR_BACKGROUND | |
69 | SYS_COLOUR_DESKTOP = _misc_.SYS_COLOUR_DESKTOP | |
70 | SYS_COLOUR_ACTIVECAPTION = _misc_.SYS_COLOUR_ACTIVECAPTION | |
71 | SYS_COLOUR_INACTIVECAPTION = _misc_.SYS_COLOUR_INACTIVECAPTION | |
72 | SYS_COLOUR_MENU = _misc_.SYS_COLOUR_MENU | |
73 | SYS_COLOUR_WINDOW = _misc_.SYS_COLOUR_WINDOW | |
74 | SYS_COLOUR_WINDOWFRAME = _misc_.SYS_COLOUR_WINDOWFRAME | |
75 | SYS_COLOUR_MENUTEXT = _misc_.SYS_COLOUR_MENUTEXT | |
76 | SYS_COLOUR_WINDOWTEXT = _misc_.SYS_COLOUR_WINDOWTEXT | |
77 | SYS_COLOUR_CAPTIONTEXT = _misc_.SYS_COLOUR_CAPTIONTEXT | |
78 | SYS_COLOUR_ACTIVEBORDER = _misc_.SYS_COLOUR_ACTIVEBORDER | |
79 | SYS_COLOUR_INACTIVEBORDER = _misc_.SYS_COLOUR_INACTIVEBORDER | |
80 | SYS_COLOUR_APPWORKSPACE = _misc_.SYS_COLOUR_APPWORKSPACE | |
81 | SYS_COLOUR_HIGHLIGHT = _misc_.SYS_COLOUR_HIGHLIGHT | |
82 | SYS_COLOUR_HIGHLIGHTTEXT = _misc_.SYS_COLOUR_HIGHLIGHTTEXT | |
83 | SYS_COLOUR_BTNFACE = _misc_.SYS_COLOUR_BTNFACE | |
84 | SYS_COLOUR_3DFACE = _misc_.SYS_COLOUR_3DFACE | |
85 | SYS_COLOUR_BTNSHADOW = _misc_.SYS_COLOUR_BTNSHADOW | |
86 | SYS_COLOUR_3DSHADOW = _misc_.SYS_COLOUR_3DSHADOW | |
87 | SYS_COLOUR_GRAYTEXT = _misc_.SYS_COLOUR_GRAYTEXT | |
88 | SYS_COLOUR_BTNTEXT = _misc_.SYS_COLOUR_BTNTEXT | |
89 | SYS_COLOUR_INACTIVECAPTIONTEXT = _misc_.SYS_COLOUR_INACTIVECAPTIONTEXT | |
90 | SYS_COLOUR_BTNHIGHLIGHT = _misc_.SYS_COLOUR_BTNHIGHLIGHT | |
91 | SYS_COLOUR_BTNHILIGHT = _misc_.SYS_COLOUR_BTNHILIGHT | |
92 | SYS_COLOUR_3DHIGHLIGHT = _misc_.SYS_COLOUR_3DHIGHLIGHT | |
93 | SYS_COLOUR_3DHILIGHT = _misc_.SYS_COLOUR_3DHILIGHT | |
94 | SYS_COLOUR_3DDKSHADOW = _misc_.SYS_COLOUR_3DDKSHADOW | |
95 | SYS_COLOUR_3DLIGHT = _misc_.SYS_COLOUR_3DLIGHT | |
96 | SYS_COLOUR_INFOTEXT = _misc_.SYS_COLOUR_INFOTEXT | |
97 | SYS_COLOUR_INFOBK = _misc_.SYS_COLOUR_INFOBK | |
98 | SYS_COLOUR_LISTBOX = _misc_.SYS_COLOUR_LISTBOX | |
99 | SYS_COLOUR_HOTLIGHT = _misc_.SYS_COLOUR_HOTLIGHT | |
100 | SYS_COLOUR_GRADIENTACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTACTIVECAPTION | |
101 | SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTINACTIVECAPTION | |
102 | SYS_COLOUR_MENUHILIGHT = _misc_.SYS_COLOUR_MENUHILIGHT | |
103 | SYS_COLOUR_MENUBAR = _misc_.SYS_COLOUR_MENUBAR | |
104 | SYS_COLOUR_MAX = _misc_.SYS_COLOUR_MAX | |
105 | SYS_MOUSE_BUTTONS = _misc_.SYS_MOUSE_BUTTONS | |
106 | SYS_BORDER_X = _misc_.SYS_BORDER_X | |
107 | SYS_BORDER_Y = _misc_.SYS_BORDER_Y | |
108 | SYS_CURSOR_X = _misc_.SYS_CURSOR_X | |
109 | SYS_CURSOR_Y = _misc_.SYS_CURSOR_Y | |
110 | SYS_DCLICK_X = _misc_.SYS_DCLICK_X | |
111 | SYS_DCLICK_Y = _misc_.SYS_DCLICK_Y | |
112 | SYS_DRAG_X = _misc_.SYS_DRAG_X | |
113 | SYS_DRAG_Y = _misc_.SYS_DRAG_Y | |
114 | SYS_EDGE_X = _misc_.SYS_EDGE_X | |
115 | SYS_EDGE_Y = _misc_.SYS_EDGE_Y | |
116 | SYS_HSCROLL_ARROW_X = _misc_.SYS_HSCROLL_ARROW_X | |
117 | SYS_HSCROLL_ARROW_Y = _misc_.SYS_HSCROLL_ARROW_Y | |
118 | SYS_HTHUMB_X = _misc_.SYS_HTHUMB_X | |
119 | SYS_ICON_X = _misc_.SYS_ICON_X | |
120 | SYS_ICON_Y = _misc_.SYS_ICON_Y | |
121 | SYS_ICONSPACING_X = _misc_.SYS_ICONSPACING_X | |
122 | SYS_ICONSPACING_Y = _misc_.SYS_ICONSPACING_Y | |
123 | SYS_WINDOWMIN_X = _misc_.SYS_WINDOWMIN_X | |
124 | SYS_WINDOWMIN_Y = _misc_.SYS_WINDOWMIN_Y | |
125 | SYS_SCREEN_X = _misc_.SYS_SCREEN_X | |
126 | SYS_SCREEN_Y = _misc_.SYS_SCREEN_Y | |
127 | SYS_FRAMESIZE_X = _misc_.SYS_FRAMESIZE_X | |
128 | SYS_FRAMESIZE_Y = _misc_.SYS_FRAMESIZE_Y | |
129 | SYS_SMALLICON_X = _misc_.SYS_SMALLICON_X | |
130 | SYS_SMALLICON_Y = _misc_.SYS_SMALLICON_Y | |
131 | SYS_HSCROLL_Y = _misc_.SYS_HSCROLL_Y | |
132 | SYS_VSCROLL_X = _misc_.SYS_VSCROLL_X | |
133 | SYS_VSCROLL_ARROW_X = _misc_.SYS_VSCROLL_ARROW_X | |
134 | SYS_VSCROLL_ARROW_Y = _misc_.SYS_VSCROLL_ARROW_Y | |
135 | SYS_VTHUMB_Y = _misc_.SYS_VTHUMB_Y | |
136 | SYS_CAPTION_Y = _misc_.SYS_CAPTION_Y | |
137 | SYS_MENU_Y = _misc_.SYS_MENU_Y | |
138 | SYS_NETWORK_PRESENT = _misc_.SYS_NETWORK_PRESENT | |
139 | SYS_PENWINDOWS_PRESENT = _misc_.SYS_PENWINDOWS_PRESENT | |
140 | SYS_SHOW_SOUNDS = _misc_.SYS_SHOW_SOUNDS | |
141 | SYS_SWAP_BUTTONS = _misc_.SYS_SWAP_BUTTONS | |
142 | SYS_CAN_DRAW_FRAME_DECORATIONS = _misc_.SYS_CAN_DRAW_FRAME_DECORATIONS | |
143 | SYS_CAN_ICONIZE_FRAME = _misc_.SYS_CAN_ICONIZE_FRAME | |
7f7aa166 | 144 | SYS_TABLET_PRESENT = _misc_.SYS_TABLET_PRESENT |
d55e5bfc RD |
145 | SYS_SCREEN_NONE = _misc_.SYS_SCREEN_NONE |
146 | SYS_SCREEN_TINY = _misc_.SYS_SCREEN_TINY | |
147 | SYS_SCREEN_PDA = _misc_.SYS_SCREEN_PDA | |
148 | SYS_SCREEN_SMALL = _misc_.SYS_SCREEN_SMALL | |
149 | SYS_SCREEN_DESKTOP = _misc_.SYS_SCREEN_DESKTOP | |
150 | class SystemSettings(object): | |
36ed4f51 | 151 | """Proxy of C++ SystemSettings class""" |
1bd55598 RD |
152 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
153 | def __init__(self): raise AttributeError, "No constructor defined" | |
154 | __repr__ = _swig_repr | |
d55e5bfc | 155 | def GetColour(*args, **kwargs): |
d6c14a4c | 156 | """GetColour(int index) -> Colour""" |
d55e5bfc RD |
157 | return _misc_.SystemSettings_GetColour(*args, **kwargs) |
158 | ||
159 | GetColour = staticmethod(GetColour) | |
160 | def GetFont(*args, **kwargs): | |
d6c14a4c | 161 | """GetFont(int index) -> Font""" |
d55e5bfc RD |
162 | return _misc_.SystemSettings_GetFont(*args, **kwargs) |
163 | ||
164 | GetFont = staticmethod(GetFont) | |
165 | def GetMetric(*args, **kwargs): | |
f491ed97 | 166 | """GetMetric(int index, Window win=None) -> int""" |
d55e5bfc RD |
167 | return _misc_.SystemSettings_GetMetric(*args, **kwargs) |
168 | ||
169 | GetMetric = staticmethod(GetMetric) | |
170 | def HasFeature(*args, **kwargs): | |
d6c14a4c | 171 | """HasFeature(int index) -> bool""" |
d55e5bfc RD |
172 | return _misc_.SystemSettings_HasFeature(*args, **kwargs) |
173 | ||
174 | HasFeature = staticmethod(HasFeature) | |
175 | def GetScreenType(*args, **kwargs): | |
d6c14a4c | 176 | """GetScreenType() -> int""" |
d55e5bfc RD |
177 | return _misc_.SystemSettings_GetScreenType(*args, **kwargs) |
178 | ||
179 | GetScreenType = staticmethod(GetScreenType) | |
180 | def SetScreenType(*args, **kwargs): | |
d6c14a4c | 181 | """SetScreenType(int screen)""" |
d55e5bfc RD |
182 | return _misc_.SystemSettings_SetScreenType(*args, **kwargs) |
183 | ||
184 | SetScreenType = staticmethod(SetScreenType) | |
1bd55598 RD |
185 | SystemSettings_swigregister = _misc_.SystemSettings_swigregister |
186 | SystemSettings_swigregister(SystemSettings) | |
d55e5bfc RD |
187 | |
188 | def SystemSettings_GetColour(*args, **kwargs): | |
1bd55598 RD |
189 | """SystemSettings_GetColour(int index) -> Colour""" |
190 | return _misc_.SystemSettings_GetColour(*args, **kwargs) | |
d55e5bfc RD |
191 | |
192 | def SystemSettings_GetFont(*args, **kwargs): | |
1bd55598 RD |
193 | """SystemSettings_GetFont(int index) -> Font""" |
194 | return _misc_.SystemSettings_GetFont(*args, **kwargs) | |
d55e5bfc RD |
195 | |
196 | def SystemSettings_GetMetric(*args, **kwargs): | |
1bd55598 RD |
197 | """SystemSettings_GetMetric(int index, Window win=None) -> int""" |
198 | return _misc_.SystemSettings_GetMetric(*args, **kwargs) | |
d55e5bfc RD |
199 | |
200 | def SystemSettings_HasFeature(*args, **kwargs): | |
1bd55598 RD |
201 | """SystemSettings_HasFeature(int index) -> bool""" |
202 | return _misc_.SystemSettings_HasFeature(*args, **kwargs) | |
d55e5bfc | 203 | |
1bd55598 RD |
204 | def SystemSettings_GetScreenType(*args): |
205 | """SystemSettings_GetScreenType() -> int""" | |
206 | return _misc_.SystemSettings_GetScreenType(*args) | |
d55e5bfc RD |
207 | |
208 | def SystemSettings_SetScreenType(*args, **kwargs): | |
1bd55598 RD |
209 | """SystemSettings_SetScreenType(int screen)""" |
210 | return _misc_.SystemSettings_SetScreenType(*args, **kwargs) | |
d55e5bfc RD |
211 | |
212 | class SystemOptions(_core.Object): | |
36ed4f51 | 213 | """Proxy of C++ SystemOptions class""" |
1bd55598 RD |
214 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
215 | __repr__ = _swig_repr | |
216 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 217 | """__init__(self) -> SystemOptions""" |
1bd55598 | 218 | _misc_.SystemOptions_swiginit(self,_misc_.new_SystemOptions(*args, **kwargs)) |
d55e5bfc | 219 | def SetOption(*args, **kwargs): |
d6c14a4c | 220 | """SetOption(String name, String value)""" |
d55e5bfc RD |
221 | return _misc_.SystemOptions_SetOption(*args, **kwargs) |
222 | ||
223 | SetOption = staticmethod(SetOption) | |
224 | def SetOptionInt(*args, **kwargs): | |
d6c14a4c | 225 | """SetOptionInt(String name, int value)""" |
d55e5bfc RD |
226 | return _misc_.SystemOptions_SetOptionInt(*args, **kwargs) |
227 | ||
228 | SetOptionInt = staticmethod(SetOptionInt) | |
229 | def GetOption(*args, **kwargs): | |
d6c14a4c | 230 | """GetOption(String name) -> String""" |
d55e5bfc RD |
231 | return _misc_.SystemOptions_GetOption(*args, **kwargs) |
232 | ||
233 | GetOption = staticmethod(GetOption) | |
234 | def GetOptionInt(*args, **kwargs): | |
d6c14a4c | 235 | """GetOptionInt(String name) -> int""" |
d55e5bfc RD |
236 | return _misc_.SystemOptions_GetOptionInt(*args, **kwargs) |
237 | ||
238 | GetOptionInt = staticmethod(GetOptionInt) | |
239 | def HasOption(*args, **kwargs): | |
d6c14a4c | 240 | """HasOption(String name) -> bool""" |
d55e5bfc RD |
241 | return _misc_.SystemOptions_HasOption(*args, **kwargs) |
242 | ||
243 | HasOption = staticmethod(HasOption) | |
3837a853 RD |
244 | def IsFalse(*args, **kwargs): |
245 | """IsFalse(String name) -> bool""" | |
246 | return _misc_.SystemOptions_IsFalse(*args, **kwargs) | |
247 | ||
248 | IsFalse = staticmethod(IsFalse) | |
1bd55598 RD |
249 | SystemOptions_swigregister = _misc_.SystemOptions_swigregister |
250 | SystemOptions_swigregister(SystemOptions) | |
629e65c2 RD |
251 | cvar = _misc_.cvar |
252 | WINDOW_DEFAULT_VARIANT = cvar.WINDOW_DEFAULT_VARIANT | |
d55e5bfc RD |
253 | |
254 | def SystemOptions_SetOption(*args, **kwargs): | |
1bd55598 RD |
255 | """SystemOptions_SetOption(String name, String value)""" |
256 | return _misc_.SystemOptions_SetOption(*args, **kwargs) | |
d55e5bfc RD |
257 | |
258 | def SystemOptions_SetOptionInt(*args, **kwargs): | |
1bd55598 RD |
259 | """SystemOptions_SetOptionInt(String name, int value)""" |
260 | return _misc_.SystemOptions_SetOptionInt(*args, **kwargs) | |
d55e5bfc RD |
261 | |
262 | def SystemOptions_GetOption(*args, **kwargs): | |
1bd55598 RD |
263 | """SystemOptions_GetOption(String name) -> String""" |
264 | return _misc_.SystemOptions_GetOption(*args, **kwargs) | |
d55e5bfc RD |
265 | |
266 | def SystemOptions_GetOptionInt(*args, **kwargs): | |
1bd55598 RD |
267 | """SystemOptions_GetOptionInt(String name) -> int""" |
268 | return _misc_.SystemOptions_GetOptionInt(*args, **kwargs) | |
d55e5bfc RD |
269 | |
270 | def SystemOptions_HasOption(*args, **kwargs): | |
1bd55598 RD |
271 | """SystemOptions_HasOption(String name) -> bool""" |
272 | return _misc_.SystemOptions_HasOption(*args, **kwargs) | |
3837a853 RD |
273 | |
274 | def SystemOptions_IsFalse(*args, **kwargs): | |
1bd55598 RD |
275 | """SystemOptions_IsFalse(String name) -> bool""" |
276 | return _misc_.SystemOptions_IsFalse(*args, **kwargs) | |
d55e5bfc RD |
277 | |
278 | #--------------------------------------------------------------------------- | |
279 | ||
280 | ||
1bd55598 RD |
281 | def NewId(*args): |
282 | """NewId() -> long""" | |
283 | return _misc_.NewId(*args) | |
d55e5bfc RD |
284 | |
285 | def RegisterId(*args, **kwargs): | |
1bd55598 RD |
286 | """RegisterId(long id)""" |
287 | return _misc_.RegisterId(*args, **kwargs) | |
d55e5bfc | 288 | |
1bd55598 RD |
289 | def GetCurrentId(*args): |
290 | """GetCurrentId() -> long""" | |
291 | return _misc_.GetCurrentId(*args) | |
d55e5bfc | 292 | |
a8d99e09 | 293 | def IsStockID(*args, **kwargs): |
1bd55598 RD |
294 | """IsStockID(int id) -> bool""" |
295 | return _misc_.IsStockID(*args, **kwargs) | |
01ac03ba | 296 | |
a8d99e09 | 297 | def IsStockLabel(*args, **kwargs): |
1bd55598 RD |
298 | """IsStockLabel(int id, String label) -> bool""" |
299 | return _misc_.IsStockLabel(*args, **kwargs) | |
01ac03ba | 300 | |
a8d99e09 | 301 | def GetStockLabel(*args, **kwargs): |
1bd55598 RD |
302 | """GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String""" |
303 | return _misc_.GetStockLabel(*args, **kwargs) | |
01ac03ba | 304 | |
1bd55598 RD |
305 | def Bell(*args): |
306 | """Bell()""" | |
307 | return _misc_.Bell(*args) | |
d55e5bfc | 308 | |
1bd55598 RD |
309 | def EndBusyCursor(*args): |
310 | """EndBusyCursor()""" | |
311 | return _misc_.EndBusyCursor(*args) | |
d55e5bfc RD |
312 | |
313 | def GetElapsedTime(*args, **kwargs): | |
1bd55598 RD |
314 | """GetElapsedTime(bool resetTimer=True) -> long""" |
315 | return _misc_.GetElapsedTime(*args, **kwargs) | |
e9d6f3a4 | 316 | GetElapsedTime = wx._deprecated(GetElapsedTime) |
d55e5bfc | 317 | |
1bd55598 RD |
318 | def IsBusy(*args): |
319 | """IsBusy() -> bool""" | |
320 | return _misc_.IsBusy(*args) | |
d55e5bfc | 321 | |
1bd55598 RD |
322 | def Now(*args): |
323 | """Now() -> String""" | |
324 | return _misc_.Now(*args) | |
d55e5bfc RD |
325 | |
326 | def Shell(*args, **kwargs): | |
1bd55598 RD |
327 | """Shell(String command=EmptyString) -> bool""" |
328 | return _misc_.Shell(*args, **kwargs) | |
d55e5bfc | 329 | |
1bd55598 RD |
330 | def StartTimer(*args): |
331 | """StartTimer()""" | |
332 | return _misc_.StartTimer(*args) | |
d55e5bfc | 333 | |
1bd55598 RD |
334 | def GetOsVersion(*args): |
335 | """GetOsVersion() -> (platform, major, minor)""" | |
336 | return _misc_.GetOsVersion(*args) | |
d55e5bfc | 337 | |
1bd55598 RD |
338 | def GetOsDescription(*args): |
339 | """GetOsDescription() -> String""" | |
340 | return _misc_.GetOsDescription(*args) | |
d55e5bfc | 341 | |
1bd55598 RD |
342 | def GetFreeMemory(*args): |
343 | """GetFreeMemory() -> wxMemorySize""" | |
344 | return _misc_.GetFreeMemory(*args) | |
d55e5bfc RD |
345 | SHUTDOWN_POWEROFF = _misc_.SHUTDOWN_POWEROFF |
346 | SHUTDOWN_REBOOT = _misc_.SHUTDOWN_REBOOT | |
347 | ||
348 | def Shutdown(*args, **kwargs): | |
1bd55598 RD |
349 | """Shutdown(int wFlags) -> bool""" |
350 | return _misc_.Shutdown(*args, **kwargs) | |
d55e5bfc RD |
351 | |
352 | def Sleep(*args, **kwargs): | |
1bd55598 RD |
353 | """Sleep(int secs)""" |
354 | return _misc_.Sleep(*args, **kwargs) | |
d55e5bfc | 355 | |
bf26d883 | 356 | def MilliSleep(*args, **kwargs): |
1bd55598 RD |
357 | """MilliSleep(unsigned long milliseconds)""" |
358 | return _misc_.MilliSleep(*args, **kwargs) | |
bf26d883 RD |
359 | |
360 | def MicroSleep(*args, **kwargs): | |
1bd55598 RD |
361 | """MicroSleep(unsigned long microseconds)""" |
362 | return _misc_.MicroSleep(*args, **kwargs) | |
bf26d883 | 363 | Usleep = MilliSleep |
d55e5bfc RD |
364 | |
365 | def EnableTopLevelWindows(*args, **kwargs): | |
1bd55598 RD |
366 | """EnableTopLevelWindows(bool enable)""" |
367 | return _misc_.EnableTopLevelWindows(*args, **kwargs) | |
d55e5bfc RD |
368 | |
369 | def StripMenuCodes(*args, **kwargs): | |
1bd55598 RD |
370 | """StripMenuCodes(String in) -> String""" |
371 | return _misc_.StripMenuCodes(*args, **kwargs) | |
d55e5bfc | 372 | |
1bd55598 RD |
373 | def GetEmailAddress(*args): |
374 | """GetEmailAddress() -> String""" | |
375 | return _misc_.GetEmailAddress(*args) | |
d55e5bfc | 376 | |
1bd55598 RD |
377 | def GetHostName(*args): |
378 | """GetHostName() -> String""" | |
379 | return _misc_.GetHostName(*args) | |
d55e5bfc | 380 | |
1bd55598 RD |
381 | def GetFullHostName(*args): |
382 | """GetFullHostName() -> String""" | |
383 | return _misc_.GetFullHostName(*args) | |
d55e5bfc | 384 | |
1bd55598 RD |
385 | def GetUserId(*args): |
386 | """GetUserId() -> String""" | |
387 | return _misc_.GetUserId(*args) | |
d55e5bfc | 388 | |
1bd55598 RD |
389 | def GetUserName(*args): |
390 | """GetUserName() -> String""" | |
391 | return _misc_.GetUserName(*args) | |
d55e5bfc | 392 | |
1bd55598 RD |
393 | def GetHomeDir(*args): |
394 | """GetHomeDir() -> String""" | |
395 | return _misc_.GetHomeDir(*args) | |
d55e5bfc RD |
396 | |
397 | def GetUserHome(*args, **kwargs): | |
1bd55598 RD |
398 | """GetUserHome(String user=EmptyString) -> String""" |
399 | return _misc_.GetUserHome(*args, **kwargs) | |
d55e5bfc | 400 | |
1bd55598 RD |
401 | def GetProcessId(*args): |
402 | """GetProcessId() -> unsigned long""" | |
403 | return _misc_.GetProcessId(*args) | |
d55e5bfc | 404 | |
1bd55598 RD |
405 | def Trap(*args): |
406 | """Trap()""" | |
407 | return _misc_.Trap(*args) | |
d55e5bfc RD |
408 | |
409 | def FileSelector(*args, **kwargs): | |
1bd55598 | 410 | """ |
d55e5bfc RD |
411 | FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString, |
412 | String default_filename=EmptyString, | |
413 | String default_extension=EmptyString, | |
414 | String wildcard=FileSelectorDefaultWildcardStr, | |
415 | int flags=0, Window parent=None, int x=-1, | |
416 | int y=-1) -> String | |
417 | """ | |
1bd55598 | 418 | return _misc_.FileSelector(*args, **kwargs) |
d55e5bfc RD |
419 | |
420 | def LoadFileSelector(*args, **kwargs): | |
1bd55598 | 421 | """ |
d55e5bfc RD |
422 | LoadFileSelector(String what, String extension, String default_name=EmptyString, |
423 | Window parent=None) -> String | |
424 | """ | |
1bd55598 | 425 | return _misc_.LoadFileSelector(*args, **kwargs) |
d55e5bfc RD |
426 | |
427 | def SaveFileSelector(*args, **kwargs): | |
1bd55598 | 428 | """ |
d55e5bfc RD |
429 | SaveFileSelector(String what, String extension, String default_name=EmptyString, |
430 | Window parent=None) -> String | |
431 | """ | |
1bd55598 | 432 | return _misc_.SaveFileSelector(*args, **kwargs) |
d55e5bfc RD |
433 | |
434 | def DirSelector(*args, **kwargs): | |
1bd55598 | 435 | """ |
d55e5bfc RD |
436 | DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString, |
437 | long style=DD_DEFAULT_STYLE, | |
438 | Point pos=DefaultPosition, Window parent=None) -> String | |
439 | """ | |
1bd55598 | 440 | return _misc_.DirSelector(*args, **kwargs) |
d55e5bfc RD |
441 | |
442 | def GetTextFromUser(*args, **kwargs): | |
1bd55598 | 443 | """ |
d55e5bfc RD |
444 | GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString, |
445 | Window parent=None, | |
446 | int x=-1, int y=-1, bool centre=True) -> String | |
447 | """ | |
1bd55598 | 448 | return _misc_.GetTextFromUser(*args, **kwargs) |
d55e5bfc RD |
449 | |
450 | def GetPasswordFromUser(*args, **kwargs): | |
1bd55598 | 451 | """ |
d55e5bfc RD |
452 | GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString, |
453 | Window parent=None) -> String | |
454 | """ | |
1bd55598 | 455 | return _misc_.GetPasswordFromUser(*args, **kwargs) |
d55e5bfc RD |
456 | |
457 | def GetSingleChoice(*args, **kwargs): | |
1bd55598 | 458 | """ |
36ed4f51 RD |
459 | GetSingleChoice(String message, String caption, int choices, Window parent=None, |
460 | int x=-1, int y=-1, bool centre=True, | |
461 | int width=150, int height=200) -> String | |
d55e5bfc | 462 | """ |
1bd55598 | 463 | return _misc_.GetSingleChoice(*args, **kwargs) |
d55e5bfc RD |
464 | |
465 | def GetSingleChoiceIndex(*args, **kwargs): | |
1bd55598 | 466 | """ |
36ed4f51 RD |
467 | GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None, |
468 | int x=-1, int y=-1, bool centre=True, | |
469 | int width=150, int height=200) -> int | |
d55e5bfc | 470 | """ |
1bd55598 | 471 | return _misc_.GetSingleChoiceIndex(*args, **kwargs) |
d55e5bfc RD |
472 | |
473 | def MessageBox(*args, **kwargs): | |
1bd55598 | 474 | """ |
d55e5bfc RD |
475 | MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE, |
476 | Window parent=None, int x=-1, | |
477 | int y=-1) -> int | |
478 | """ | |
1bd55598 | 479 | return _misc_.MessageBox(*args, **kwargs) |
d55e5bfc | 480 | |
1bd55598 RD |
481 | def ColourDisplay(*args): |
482 | """ColourDisplay() -> bool""" | |
483 | return _misc_.ColourDisplay(*args) | |
d55e5bfc | 484 | |
1bd55598 RD |
485 | def DisplayDepth(*args): |
486 | """DisplayDepth() -> int""" | |
487 | return _misc_.DisplayDepth(*args) | |
d55e5bfc | 488 | |
1bd55598 RD |
489 | def GetDisplayDepth(*args): |
490 | """GetDisplayDepth() -> int""" | |
491 | return _misc_.GetDisplayDepth(*args) | |
d55e5bfc | 492 | |
1bd55598 RD |
493 | def DisplaySize(*args): |
494 | """DisplaySize() -> (width, height)""" | |
495 | return _misc_.DisplaySize(*args) | |
d55e5bfc | 496 | |
1bd55598 RD |
497 | def GetDisplaySize(*args): |
498 | """GetDisplaySize() -> Size""" | |
499 | return _misc_.GetDisplaySize(*args) | |
d55e5bfc | 500 | |
1bd55598 RD |
501 | def DisplaySizeMM(*args): |
502 | """DisplaySizeMM() -> (width, height)""" | |
503 | return _misc_.DisplaySizeMM(*args) | |
d55e5bfc | 504 | |
1bd55598 RD |
505 | def GetDisplaySizeMM(*args): |
506 | """GetDisplaySizeMM() -> Size""" | |
507 | return _misc_.GetDisplaySizeMM(*args) | |
d55e5bfc | 508 | |
1bd55598 RD |
509 | def ClientDisplayRect(*args): |
510 | """ClientDisplayRect() -> (x, y, width, height)""" | |
511 | return _misc_.ClientDisplayRect(*args) | |
d55e5bfc | 512 | |
1bd55598 RD |
513 | def GetClientDisplayRect(*args): |
514 | """GetClientDisplayRect() -> Rect""" | |
515 | return _misc_.GetClientDisplayRect(*args) | |
d55e5bfc RD |
516 | |
517 | def SetCursor(*args, **kwargs): | |
1bd55598 RD |
518 | """SetCursor(Cursor cursor)""" |
519 | return _misc_.SetCursor(*args, **kwargs) | |
d55e5bfc | 520 | |
1bd55598 RD |
521 | def GetXDisplay(*args): |
522 | """ | |
a97cefba RD |
523 | GetXDisplay() -> void |
524 | ||
525 | Returns a swigified pointer to the X11 display. Returns None on | |
526 | other platforms. | |
527 | """ | |
1bd55598 | 528 | return _misc_.GetXDisplay(*args) |
a97cefba | 529 | |
d55e5bfc | 530 | def BeginBusyCursor(*args, **kwargs): |
1bd55598 RD |
531 | """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)""" |
532 | return _misc_.BeginBusyCursor(*args, **kwargs) | |
d55e5bfc | 533 | |
1bd55598 RD |
534 | def GetMousePosition(*args): |
535 | """ | |
32fe5131 RD |
536 | GetMousePosition() -> Point |
537 | ||
538 | Get the current mouse position on the screen. | |
539 | """ | |
1bd55598 | 540 | return _misc_.GetMousePosition(*args) |
32fe5131 | 541 | |
1bd55598 RD |
542 | def FindWindowAtPointer(*args): |
543 | """ | |
32fe5131 RD |
544 | FindWindowAtPointer() -> Window |
545 | ||
546 | Returns the window currently under the mouse pointer, if it belongs to | |
547 | this application. Otherwise it returns None. | |
548 | """ | |
1bd55598 | 549 | return _misc_.FindWindowAtPointer(*args) |
32fe5131 | 550 | |
1bd55598 RD |
551 | def GetActiveWindow(*args): |
552 | """ | |
32fe5131 RD |
553 | GetActiveWindow() -> Window |
554 | ||
555 | Get the currently active window of this application, or None | |
556 | """ | |
1bd55598 | 557 | return _misc_.GetActiveWindow(*args) |
d55e5bfc RD |
558 | |
559 | def GenericFindWindowAtPoint(*args, **kwargs): | |
1bd55598 RD |
560 | """GenericFindWindowAtPoint(Point pt) -> Window""" |
561 | return _misc_.GenericFindWindowAtPoint(*args, **kwargs) | |
d55e5bfc RD |
562 | |
563 | def FindWindowAtPoint(*args, **kwargs): | |
1bd55598 RD |
564 | """FindWindowAtPoint(Point pt) -> Window""" |
565 | return _misc_.FindWindowAtPoint(*args, **kwargs) | |
d55e5bfc RD |
566 | |
567 | def GetTopLevelParent(*args, **kwargs): | |
1bd55598 RD |
568 | """GetTopLevelParent(Window win) -> Window""" |
569 | return _misc_.GetTopLevelParent(*args, **kwargs) | |
d55e5bfc | 570 | |
d04418a7 | 571 | def LaunchDefaultBrowser(*args, **kwargs): |
1bd55598 | 572 | """ |
d04418a7 RD |
573 | LaunchDefaultBrowser(String url) -> bool |
574 | ||
575 | Launches the user's default browser and tells it to open the location | |
576 | at ``url``. Returns ``True`` if the application was successfully | |
577 | launched. | |
578 | """ | |
1bd55598 | 579 | return _misc_.LaunchDefaultBrowser(*args, **kwargs) |
d04418a7 | 580 | |
d55e5bfc | 581 | def GetKeyState(*args, **kwargs): |
1bd55598 | 582 | """ |
68e533f8 RD |
583 | GetKeyState(int key) -> bool |
584 | ||
585 | Get the state of a key (true if pressed or toggled on, false if not.) | |
586 | This is generally most useful getting the state of the modifier or | |
32fe5131 RD |
587 | toggle keys. On some platforms those may be the only keys that this |
588 | function is able to detect. | |
68e533f8 RD |
589 | |
590 | """ | |
1bd55598 | 591 | return _misc_.GetKeyState(*args, **kwargs) |
32fe5131 RD |
592 | class MouseState(object): |
593 | """ | |
594 | `wx.MouseState` is used to hold information about mouse button and | |
595 | modifier key states and is what is returned from `wx.GetMouseState`. | |
596 | """ | |
1bd55598 RD |
597 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
598 | __repr__ = _swig_repr | |
599 | def __init__(self, *args, **kwargs): | |
32fe5131 RD |
600 | """ |
601 | __init__(self) -> MouseState | |
602 | ||
603 | `wx.MouseState` is used to hold information about mouse button and | |
604 | modifier key states and is what is returned from `wx.GetMouseState`. | |
605 | """ | |
1bd55598 RD |
606 | _misc_.MouseState_swiginit(self,_misc_.new_MouseState(*args, **kwargs)) |
607 | __swig_destroy__ = _misc_.delete_MouseState | |
608 | __del__ = lambda self : None; | |
32fe5131 RD |
609 | def GetX(*args, **kwargs): |
610 | """GetX(self) -> int""" | |
611 | return _misc_.MouseState_GetX(*args, **kwargs) | |
612 | ||
613 | def GetY(*args, **kwargs): | |
614 | """GetY(self) -> int""" | |
615 | return _misc_.MouseState_GetY(*args, **kwargs) | |
616 | ||
617 | def LeftDown(*args, **kwargs): | |
618 | """LeftDown(self) -> bool""" | |
619 | return _misc_.MouseState_LeftDown(*args, **kwargs) | |
620 | ||
621 | def MiddleDown(*args, **kwargs): | |
622 | """MiddleDown(self) -> bool""" | |
623 | return _misc_.MouseState_MiddleDown(*args, **kwargs) | |
624 | ||
625 | def RightDown(*args, **kwargs): | |
626 | """RightDown(self) -> bool""" | |
627 | return _misc_.MouseState_RightDown(*args, **kwargs) | |
628 | ||
629 | def ControlDown(*args, **kwargs): | |
630 | """ControlDown(self) -> bool""" | |
631 | return _misc_.MouseState_ControlDown(*args, **kwargs) | |
632 | ||
633 | def ShiftDown(*args, **kwargs): | |
634 | """ShiftDown(self) -> bool""" | |
635 | return _misc_.MouseState_ShiftDown(*args, **kwargs) | |
636 | ||
637 | def AltDown(*args, **kwargs): | |
638 | """AltDown(self) -> bool""" | |
639 | return _misc_.MouseState_AltDown(*args, **kwargs) | |
640 | ||
641 | def MetaDown(*args, **kwargs): | |
642 | """MetaDown(self) -> bool""" | |
643 | return _misc_.MouseState_MetaDown(*args, **kwargs) | |
644 | ||
645 | def CmdDown(*args, **kwargs): | |
646 | """CmdDown(self) -> bool""" | |
647 | return _misc_.MouseState_CmdDown(*args, **kwargs) | |
648 | ||
649 | def SetX(*args, **kwargs): | |
650 | """SetX(self, int x)""" | |
651 | return _misc_.MouseState_SetX(*args, **kwargs) | |
652 | ||
653 | def SetY(*args, **kwargs): | |
654 | """SetY(self, int y)""" | |
655 | return _misc_.MouseState_SetY(*args, **kwargs) | |
656 | ||
657 | def SetLeftDown(*args, **kwargs): | |
658 | """SetLeftDown(self, bool down)""" | |
659 | return _misc_.MouseState_SetLeftDown(*args, **kwargs) | |
660 | ||
661 | def SetMiddleDown(*args, **kwargs): | |
662 | """SetMiddleDown(self, bool down)""" | |
663 | return _misc_.MouseState_SetMiddleDown(*args, **kwargs) | |
664 | ||
665 | def SetRightDown(*args, **kwargs): | |
666 | """SetRightDown(self, bool down)""" | |
667 | return _misc_.MouseState_SetRightDown(*args, **kwargs) | |
668 | ||
669 | def SetControlDown(*args, **kwargs): | |
670 | """SetControlDown(self, bool down)""" | |
671 | return _misc_.MouseState_SetControlDown(*args, **kwargs) | |
672 | ||
673 | def SetShiftDown(*args, **kwargs): | |
674 | """SetShiftDown(self, bool down)""" | |
675 | return _misc_.MouseState_SetShiftDown(*args, **kwargs) | |
676 | ||
677 | def SetAltDown(*args, **kwargs): | |
678 | """SetAltDown(self, bool down)""" | |
679 | return _misc_.MouseState_SetAltDown(*args, **kwargs) | |
680 | ||
681 | def SetMetaDown(*args, **kwargs): | |
682 | """SetMetaDown(self, bool down)""" | |
683 | return _misc_.MouseState_SetMetaDown(*args, **kwargs) | |
684 | ||
685 | x = property(GetX, SetX) | |
686 | y = property(GetY, SetY) | |
687 | leftDown = property(LeftDown, SetLeftDown) | |
688 | middleDown = property(MiddleDown, SetMiddleDown) | |
689 | rightDown = property(RightDown, SetRightDown) | |
690 | controlDown = property(ControlDown, SetControlDown) | |
691 | shiftDown = property(ShiftDown, SetShiftDown) | |
692 | altDown = property(AltDown, SetAltDown) | |
693 | metaDown = property(MetaDown, SetMetaDown) | |
694 | cmdDown = property(CmdDown) | |
695 | ||
1bd55598 RD |
696 | MouseState_swigregister = _misc_.MouseState_swigregister |
697 | MouseState_swigregister(MouseState) | |
32fe5131 RD |
698 | FileSelectorPromptStr = cvar.FileSelectorPromptStr |
699 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
700 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
701 | ||
702 | ||
1bd55598 RD |
703 | def GetMouseState(*args): |
704 | """ | |
32fe5131 RD |
705 | GetMouseState() -> MouseState |
706 | ||
707 | Returns the current state of the mouse. Returns an instance of a | |
708 | `wx.MouseState` object that contains the current position of the mouse | |
709 | pointer in screen coordinants, as well as boolean values indicating | |
710 | the up/down status of the mouse buttons and the modifier keys. | |
711 | """ | |
1bd55598 | 712 | return _misc_.GetMouseState(*args) |
d55e5bfc | 713 | |
1bd55598 RD |
714 | def WakeUpMainThread(*args): |
715 | """WakeUpMainThread()""" | |
716 | return _misc_.WakeUpMainThread(*args) | |
d55e5bfc | 717 | |
1bd55598 RD |
718 | def MutexGuiEnter(*args): |
719 | """MutexGuiEnter()""" | |
720 | return _misc_.MutexGuiEnter(*args) | |
d55e5bfc | 721 | |
1bd55598 RD |
722 | def MutexGuiLeave(*args): |
723 | """MutexGuiLeave()""" | |
724 | return _misc_.MutexGuiLeave(*args) | |
d55e5bfc | 725 | class MutexGuiLocker(object): |
36ed4f51 | 726 | """Proxy of C++ MutexGuiLocker class""" |
1bd55598 RD |
727 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
728 | __repr__ = _swig_repr | |
729 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 730 | """__init__(self) -> MutexGuiLocker""" |
1bd55598 RD |
731 | _misc_.MutexGuiLocker_swiginit(self,_misc_.new_MutexGuiLocker(*args, **kwargs)) |
732 | __swig_destroy__ = _misc_.delete_MutexGuiLocker | |
733 | __del__ = lambda self : None; | |
734 | MutexGuiLocker_swigregister = _misc_.MutexGuiLocker_swigregister | |
735 | MutexGuiLocker_swigregister(MutexGuiLocker) | |
736 | ||
737 | ||
738 | def Thread_IsMain(*args): | |
739 | """Thread_IsMain() -> bool""" | |
740 | return _misc_.Thread_IsMain(*args) | |
d55e5bfc RD |
741 | #--------------------------------------------------------------------------- |
742 | ||
743 | class ToolTip(_core.Object): | |
36ed4f51 | 744 | """Proxy of C++ ToolTip class""" |
1bd55598 RD |
745 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
746 | __repr__ = _swig_repr | |
747 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 748 | """__init__(self, String tip) -> ToolTip""" |
1bd55598 RD |
749 | _misc_.ToolTip_swiginit(self,_misc_.new_ToolTip(*args, **kwargs)) |
750 | __swig_destroy__ = _misc_.delete_ToolTip | |
751 | __del__ = lambda self : None; | |
d55e5bfc RD |
752 | def SetTip(*args, **kwargs): |
753 | """SetTip(self, String tip)""" | |
754 | return _misc_.ToolTip_SetTip(*args, **kwargs) | |
755 | ||
756 | def GetTip(*args, **kwargs): | |
757 | """GetTip(self) -> String""" | |
758 | return _misc_.ToolTip_GetTip(*args, **kwargs) | |
759 | ||
760 | def GetWindow(*args, **kwargs): | |
761 | """GetWindow(self) -> Window""" | |
762 | return _misc_.ToolTip_GetWindow(*args, **kwargs) | |
763 | ||
764 | def Enable(*args, **kwargs): | |
d6c14a4c | 765 | """Enable(bool flag)""" |
d55e5bfc RD |
766 | return _misc_.ToolTip_Enable(*args, **kwargs) |
767 | ||
768 | Enable = staticmethod(Enable) | |
769 | def SetDelay(*args, **kwargs): | |
d6c14a4c | 770 | """SetDelay(long milliseconds)""" |
d55e5bfc RD |
771 | return _misc_.ToolTip_SetDelay(*args, **kwargs) |
772 | ||
773 | SetDelay = staticmethod(SetDelay) | |
1bd55598 RD |
774 | ToolTip_swigregister = _misc_.ToolTip_swigregister |
775 | ToolTip_swigregister(ToolTip) | |
d55e5bfc RD |
776 | |
777 | def ToolTip_Enable(*args, **kwargs): | |
1bd55598 RD |
778 | """ToolTip_Enable(bool flag)""" |
779 | return _misc_.ToolTip_Enable(*args, **kwargs) | |
d55e5bfc RD |
780 | |
781 | def ToolTip_SetDelay(*args, **kwargs): | |
1bd55598 RD |
782 | """ToolTip_SetDelay(long milliseconds)""" |
783 | return _misc_.ToolTip_SetDelay(*args, **kwargs) | |
d55e5bfc RD |
784 | |
785 | class Caret(object): | |
36ed4f51 | 786 | """Proxy of C++ Caret class""" |
1bd55598 RD |
787 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
788 | __repr__ = _swig_repr | |
789 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 790 | """__init__(self, Window window, Size size) -> Caret""" |
1bd55598 RD |
791 | _misc_.Caret_swiginit(self,_misc_.new_Caret(*args, **kwargs)) |
792 | __swig_destroy__ = _misc_.delete_Caret | |
793 | __del__ = lambda self : None; | |
091fdbfa RD |
794 | def Destroy(*args, **kwargs): |
795 | """ | |
796 | Destroy(self) | |
797 | ||
798 | Deletes the C++ object this Python object is a proxy for. | |
799 | """ | |
7e08d4ef RD |
800 | val = _misc_.Caret_Destroy(*args, **kwargs) |
801 | args[0].thisown = 0 | |
802 | return val | |
d55e5bfc RD |
803 | |
804 | def IsOk(*args, **kwargs): | |
805 | """IsOk(self) -> bool""" | |
806 | return _misc_.Caret_IsOk(*args, **kwargs) | |
807 | ||
808 | def IsVisible(*args, **kwargs): | |
809 | """IsVisible(self) -> bool""" | |
810 | return _misc_.Caret_IsVisible(*args, **kwargs) | |
811 | ||
812 | def GetPosition(*args, **kwargs): | |
813 | """GetPosition(self) -> Point""" | |
814 | return _misc_.Caret_GetPosition(*args, **kwargs) | |
815 | ||
816 | def GetPositionTuple(*args, **kwargs): | |
817 | """GetPositionTuple() -> (x,y)""" | |
818 | return _misc_.Caret_GetPositionTuple(*args, **kwargs) | |
819 | ||
820 | def GetSize(*args, **kwargs): | |
821 | """GetSize(self) -> Size""" | |
822 | return _misc_.Caret_GetSize(*args, **kwargs) | |
823 | ||
824 | def GetSizeTuple(*args, **kwargs): | |
825 | """GetSizeTuple() -> (width, height)""" | |
826 | return _misc_.Caret_GetSizeTuple(*args, **kwargs) | |
827 | ||
828 | def GetWindow(*args, **kwargs): | |
829 | """GetWindow(self) -> Window""" | |
830 | return _misc_.Caret_GetWindow(*args, **kwargs) | |
831 | ||
832 | def MoveXY(*args, **kwargs): | |
833 | """MoveXY(self, int x, int y)""" | |
834 | return _misc_.Caret_MoveXY(*args, **kwargs) | |
835 | ||
836 | def Move(*args, **kwargs): | |
837 | """Move(self, Point pt)""" | |
838 | return _misc_.Caret_Move(*args, **kwargs) | |
839 | ||
840 | def SetSizeWH(*args, **kwargs): | |
841 | """SetSizeWH(self, int width, int height)""" | |
842 | return _misc_.Caret_SetSizeWH(*args, **kwargs) | |
843 | ||
844 | def SetSize(*args, **kwargs): | |
845 | """SetSize(self, Size size)""" | |
846 | return _misc_.Caret_SetSize(*args, **kwargs) | |
847 | ||
848 | def Show(*args, **kwargs): | |
849 | """Show(self, int show=True)""" | |
850 | return _misc_.Caret_Show(*args, **kwargs) | |
851 | ||
852 | def Hide(*args, **kwargs): | |
853 | """Hide(self)""" | |
854 | return _misc_.Caret_Hide(*args, **kwargs) | |
855 | ||
856 | def __nonzero__(self): return self.IsOk() | |
091fdbfa RD |
857 | def GetBlinkTime(*args, **kwargs): |
858 | """GetBlinkTime() -> int""" | |
859 | return _misc_.Caret_GetBlinkTime(*args, **kwargs) | |
860 | ||
861 | GetBlinkTime = staticmethod(GetBlinkTime) | |
862 | def SetBlinkTime(*args, **kwargs): | |
863 | """SetBlinkTime(int milliseconds)""" | |
864 | return _misc_.Caret_SetBlinkTime(*args, **kwargs) | |
865 | ||
866 | SetBlinkTime = staticmethod(SetBlinkTime) | |
1bd55598 RD |
867 | Caret_swigregister = _misc_.Caret_swigregister |
868 | Caret_swigregister(Caret) | |
d55e5bfc | 869 | |
1bd55598 RD |
870 | def Caret_GetBlinkTime(*args): |
871 | """Caret_GetBlinkTime() -> int""" | |
872 | return _misc_.Caret_GetBlinkTime(*args) | |
d55e5bfc RD |
873 | |
874 | def Caret_SetBlinkTime(*args, **kwargs): | |
1bd55598 RD |
875 | """Caret_SetBlinkTime(int milliseconds)""" |
876 | return _misc_.Caret_SetBlinkTime(*args, **kwargs) | |
091fdbfa | 877 | |
d55e5bfc | 878 | class BusyCursor(object): |
36ed4f51 | 879 | """Proxy of C++ BusyCursor class""" |
1bd55598 RD |
880 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
881 | __repr__ = _swig_repr | |
882 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 883 | """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor""" |
1bd55598 RD |
884 | _misc_.BusyCursor_swiginit(self,_misc_.new_BusyCursor(*args, **kwargs)) |
885 | __swig_destroy__ = _misc_.delete_BusyCursor | |
886 | __del__ = lambda self : None; | |
887 | BusyCursor_swigregister = _misc_.BusyCursor_swigregister | |
888 | BusyCursor_swigregister(BusyCursor) | |
d55e5bfc RD |
889 | |
890 | class WindowDisabler(object): | |
36ed4f51 | 891 | """Proxy of C++ WindowDisabler class""" |
1bd55598 RD |
892 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
893 | __repr__ = _swig_repr | |
894 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 895 | """__init__(self, Window winToSkip=None) -> WindowDisabler""" |
1bd55598 RD |
896 | _misc_.WindowDisabler_swiginit(self,_misc_.new_WindowDisabler(*args, **kwargs)) |
897 | __swig_destroy__ = _misc_.delete_WindowDisabler | |
898 | __del__ = lambda self : None; | |
899 | WindowDisabler_swigregister = _misc_.WindowDisabler_swigregister | |
900 | WindowDisabler_swigregister(WindowDisabler) | |
d55e5bfc RD |
901 | |
902 | class BusyInfo(_core.Object): | |
36ed4f51 | 903 | """Proxy of C++ BusyInfo class""" |
1bd55598 RD |
904 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
905 | __repr__ = _swig_repr | |
906 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 907 | """__init__(self, String message) -> BusyInfo""" |
1bd55598 RD |
908 | _misc_.BusyInfo_swiginit(self,_misc_.new_BusyInfo(*args, **kwargs)) |
909 | __swig_destroy__ = _misc_.delete_BusyInfo | |
910 | __del__ = lambda self : None; | |
911 | BusyInfo_swigregister = _misc_.BusyInfo_swigregister | |
912 | BusyInfo_swigregister(BusyInfo) | |
d55e5bfc RD |
913 | |
914 | class StopWatch(object): | |
36ed4f51 | 915 | """Proxy of C++ StopWatch class""" |
1bd55598 RD |
916 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
917 | __repr__ = _swig_repr | |
918 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 919 | """__init__(self) -> StopWatch""" |
1bd55598 | 920 | _misc_.StopWatch_swiginit(self,_misc_.new_StopWatch(*args, **kwargs)) |
d55e5bfc RD |
921 | def Start(*args, **kwargs): |
922 | """Start(self, long t0=0)""" | |
923 | return _misc_.StopWatch_Start(*args, **kwargs) | |
924 | ||
925 | def Pause(*args, **kwargs): | |
926 | """Pause(self)""" | |
927 | return _misc_.StopWatch_Pause(*args, **kwargs) | |
928 | ||
929 | def Resume(*args, **kwargs): | |
930 | """Resume(self)""" | |
931 | return _misc_.StopWatch_Resume(*args, **kwargs) | |
932 | ||
933 | def Time(*args, **kwargs): | |
934 | """Time(self) -> long""" | |
935 | return _misc_.StopWatch_Time(*args, **kwargs) | |
936 | ||
1bd55598 RD |
937 | StopWatch_swigregister = _misc_.StopWatch_swigregister |
938 | StopWatch_swigregister(StopWatch) | |
d55e5bfc RD |
939 | |
940 | class FileHistory(_core.Object): | |
36ed4f51 | 941 | """Proxy of C++ FileHistory class""" |
1bd55598 RD |
942 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
943 | __repr__ = _swig_repr | |
944 | def __init__(self, *args, **kwargs): | |
4cf4100f | 945 | """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory""" |
1bd55598 RD |
946 | _misc_.FileHistory_swiginit(self,_misc_.new_FileHistory(*args, **kwargs)) |
947 | __swig_destroy__ = _misc_.delete_FileHistory | |
948 | __del__ = lambda self : None; | |
d55e5bfc RD |
949 | def AddFileToHistory(*args, **kwargs): |
950 | """AddFileToHistory(self, String file)""" | |
951 | return _misc_.FileHistory_AddFileToHistory(*args, **kwargs) | |
952 | ||
953 | def RemoveFileFromHistory(*args, **kwargs): | |
954 | """RemoveFileFromHistory(self, int i)""" | |
955 | return _misc_.FileHistory_RemoveFileFromHistory(*args, **kwargs) | |
956 | ||
957 | def GetMaxFiles(*args, **kwargs): | |
958 | """GetMaxFiles(self) -> int""" | |
959 | return _misc_.FileHistory_GetMaxFiles(*args, **kwargs) | |
960 | ||
961 | def UseMenu(*args, **kwargs): | |
962 | """UseMenu(self, Menu menu)""" | |
963 | return _misc_.FileHistory_UseMenu(*args, **kwargs) | |
964 | ||
965 | def RemoveMenu(*args, **kwargs): | |
966 | """RemoveMenu(self, Menu menu)""" | |
967 | return _misc_.FileHistory_RemoveMenu(*args, **kwargs) | |
968 | ||
969 | def Load(*args, **kwargs): | |
970 | """Load(self, ConfigBase config)""" | |
971 | return _misc_.FileHistory_Load(*args, **kwargs) | |
972 | ||
973 | def Save(*args, **kwargs): | |
974 | """Save(self, ConfigBase config)""" | |
975 | return _misc_.FileHistory_Save(*args, **kwargs) | |
976 | ||
977 | def AddFilesToMenu(*args, **kwargs): | |
978 | """AddFilesToMenu(self)""" | |
979 | return _misc_.FileHistory_AddFilesToMenu(*args, **kwargs) | |
980 | ||
981 | def AddFilesToThisMenu(*args, **kwargs): | |
982 | """AddFilesToThisMenu(self, Menu menu)""" | |
983 | return _misc_.FileHistory_AddFilesToThisMenu(*args, **kwargs) | |
984 | ||
985 | def GetHistoryFile(*args, **kwargs): | |
986 | """GetHistoryFile(self, int i) -> String""" | |
987 | return _misc_.FileHistory_GetHistoryFile(*args, **kwargs) | |
988 | ||
989 | def GetCount(*args, **kwargs): | |
990 | """GetCount(self) -> int""" | |
991 | return _misc_.FileHistory_GetCount(*args, **kwargs) | |
992 | ||
993 | GetNoHistoryFiles = GetCount | |
1bd55598 RD |
994 | FileHistory_swigregister = _misc_.FileHistory_swigregister |
995 | FileHistory_swigregister(FileHistory) | |
d55e5bfc RD |
996 | |
997 | class SingleInstanceChecker(object): | |
36ed4f51 | 998 | """Proxy of C++ SingleInstanceChecker class""" |
1bd55598 RD |
999 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1000 | __repr__ = _swig_repr | |
1001 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1002 | """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker""" |
1bd55598 RD |
1003 | _misc_.SingleInstanceChecker_swiginit(self,_misc_.new_SingleInstanceChecker(*args, **kwargs)) |
1004 | __swig_destroy__ = _misc_.delete_SingleInstanceChecker | |
1005 | __del__ = lambda self : None; | |
d55e5bfc RD |
1006 | def Create(*args, **kwargs): |
1007 | """Create(self, String name, String path=EmptyString) -> bool""" | |
1008 | return _misc_.SingleInstanceChecker_Create(*args, **kwargs) | |
1009 | ||
1010 | def IsAnotherRunning(*args, **kwargs): | |
1011 | """IsAnotherRunning(self) -> bool""" | |
1012 | return _misc_.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs) | |
1013 | ||
1bd55598 RD |
1014 | SingleInstanceChecker_swigregister = _misc_.SingleInstanceChecker_swigregister |
1015 | SingleInstanceChecker_swigregister(SingleInstanceChecker) | |
d55e5bfc RD |
1016 | |
1017 | def PreSingleInstanceChecker(*args, **kwargs): | |
1018 | """PreSingleInstanceChecker() -> SingleInstanceChecker""" | |
1019 | val = _misc_.new_PreSingleInstanceChecker(*args, **kwargs) | |
d55e5bfc RD |
1020 | return val |
1021 | ||
68350608 RD |
1022 | |
1023 | def DrawWindowOnDC(*args, **kwargs): | |
1bd55598 RD |
1024 | """DrawWindowOnDC(Window window, DC dc) -> bool""" |
1025 | return _misc_.DrawWindowOnDC(*args, **kwargs) | |
d55e5bfc RD |
1026 | #--------------------------------------------------------------------------- |
1027 | ||
1028 | class TipProvider(object): | |
36ed4f51 | 1029 | """Proxy of C++ TipProvider class""" |
1bd55598 RD |
1030 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1031 | def __init__(self): raise AttributeError, "No constructor defined" | |
1032 | __repr__ = _swig_repr | |
1033 | __swig_destroy__ = _misc_.delete_TipProvider | |
1034 | __del__ = lambda self : None; | |
d55e5bfc RD |
1035 | def GetTip(*args, **kwargs): |
1036 | """GetTip(self) -> String""" | |
1037 | return _misc_.TipProvider_GetTip(*args, **kwargs) | |
1038 | ||
1039 | def GetCurrentTip(*args, **kwargs): | |
1040 | """GetCurrentTip(self) -> size_t""" | |
1041 | return _misc_.TipProvider_GetCurrentTip(*args, **kwargs) | |
1042 | ||
1043 | def PreprocessTip(*args, **kwargs): | |
1044 | """PreprocessTip(self, String tip) -> String""" | |
1045 | return _misc_.TipProvider_PreprocessTip(*args, **kwargs) | |
1046 | ||
1bd55598 RD |
1047 | TipProvider_swigregister = _misc_.TipProvider_swigregister |
1048 | TipProvider_swigregister(TipProvider) | |
d55e5bfc RD |
1049 | |
1050 | class PyTipProvider(TipProvider): | |
36ed4f51 | 1051 | """Proxy of C++ PyTipProvider class""" |
1bd55598 RD |
1052 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1053 | __repr__ = _swig_repr | |
1054 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1055 | """__init__(self, size_t currentTip) -> PyTipProvider""" |
1bd55598 | 1056 | _misc_.PyTipProvider_swiginit(self,_misc_.new_PyTipProvider(*args, **kwargs)) |
e058867b RD |
1057 | self._setCallbackInfo(self, PyTipProvider) |
1058 | ||
d55e5bfc RD |
1059 | def _setCallbackInfo(*args, **kwargs): |
1060 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1061 | return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs) | |
1062 | ||
1bd55598 RD |
1063 | PyTipProvider_swigregister = _misc_.PyTipProvider_swigregister |
1064 | PyTipProvider_swigregister(PyTipProvider) | |
d55e5bfc RD |
1065 | |
1066 | ||
1067 | def ShowTip(*args, **kwargs): | |
1bd55598 RD |
1068 | """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool""" |
1069 | return _misc_.ShowTip(*args, **kwargs) | |
d55e5bfc RD |
1070 | |
1071 | def CreateFileTipProvider(*args, **kwargs): | |
1bd55598 RD |
1072 | """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider""" |
1073 | return _misc_.CreateFileTipProvider(*args, **kwargs) | |
d55e5bfc RD |
1074 | #--------------------------------------------------------------------------- |
1075 | ||
1076 | TIMER_CONTINUOUS = _misc_.TIMER_CONTINUOUS | |
1077 | TIMER_ONE_SHOT = _misc_.TIMER_ONE_SHOT | |
1078 | wxEVT_TIMER = _misc_.wxEVT_TIMER | |
1079 | class Timer(_core.EvtHandler): | |
36ed4f51 | 1080 | """Proxy of C++ Timer class""" |
1bd55598 RD |
1081 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1082 | __repr__ = _swig_repr | |
1083 | def __init__(self, *args, **kwargs): | |
1084 | """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer""" | |
1085 | _misc_.Timer_swiginit(self,_misc_.new_Timer(*args, **kwargs)) | |
36ed4f51 | 1086 | self._setCallbackInfo(self, Timer, 0); self._setOORInfo(self, 0) |
d55e5bfc | 1087 | |
1bd55598 RD |
1088 | __swig_destroy__ = _misc_.delete_Timer |
1089 | __del__ = lambda self : None; | |
d55e5bfc RD |
1090 | def _setCallbackInfo(*args, **kwargs): |
1091 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)""" | |
1092 | return _misc_.Timer__setCallbackInfo(*args, **kwargs) | |
1093 | ||
1094 | def SetOwner(*args, **kwargs): | |
1bd55598 | 1095 | """SetOwner(self, EvtHandler owner, int id=ID_ANY)""" |
d55e5bfc RD |
1096 | return _misc_.Timer_SetOwner(*args, **kwargs) |
1097 | ||
1a6bba1e RD |
1098 | def GetOwner(*args, **kwargs): |
1099 | """GetOwner(self) -> EvtHandler""" | |
1100 | return _misc_.Timer_GetOwner(*args, **kwargs) | |
1101 | ||
d55e5bfc RD |
1102 | def Start(*args, **kwargs): |
1103 | """Start(self, int milliseconds=-1, bool oneShot=False) -> bool""" | |
1104 | return _misc_.Timer_Start(*args, **kwargs) | |
1105 | ||
1106 | def Stop(*args, **kwargs): | |
1107 | """Stop(self)""" | |
1108 | return _misc_.Timer_Stop(*args, **kwargs) | |
1109 | ||
7f7aa166 RD |
1110 | def Notify(*args, **kwargs): |
1111 | """Notify(self)""" | |
1112 | return _misc_.Timer_Notify(*args, **kwargs) | |
1113 | ||
d55e5bfc RD |
1114 | def IsRunning(*args, **kwargs): |
1115 | """IsRunning(self) -> bool""" | |
1116 | return _misc_.Timer_IsRunning(*args, **kwargs) | |
1117 | ||
1118 | def GetInterval(*args, **kwargs): | |
1119 | """GetInterval(self) -> int""" | |
1120 | return _misc_.Timer_GetInterval(*args, **kwargs) | |
1121 | ||
d55e5bfc RD |
1122 | def GetId(*args, **kwargs): |
1123 | """GetId(self) -> int""" | |
1124 | return _misc_.Timer_GetId(*args, **kwargs) | |
1125 | ||
1bd55598 RD |
1126 | def IsOneShot(*args, **kwargs): |
1127 | """IsOneShot(self) -> bool""" | |
1128 | return _misc_.Timer_IsOneShot(*args, **kwargs) | |
1129 | ||
dc61cdb2 | 1130 | def Destroy(self): |
1bd55598 | 1131 | """NO-OP: Timers must be destroyed by normal reference counting""" |
36ed4f51 RD |
1132 | pass |
1133 | ||
1bd55598 RD |
1134 | Timer_swigregister = _misc_.Timer_swigregister |
1135 | Timer_swigregister(Timer) | |
d55e5bfc RD |
1136 | |
1137 | # For backwards compatibility with 2.4 | |
1138 | class PyTimer(Timer): | |
1139 | def __init__(self, notify): | |
1140 | Timer.__init__(self) | |
1141 | self.notify = notify | |
1142 | ||
1143 | def Notify(self): | |
1144 | if self.notify: | |
1145 | self.notify() | |
1146 | ||
1147 | ||
1148 | EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 ) | |
1149 | ||
1150 | ||
1151 | class TimerEvent(_core.Event): | |
36ed4f51 | 1152 | """Proxy of C++ TimerEvent class""" |
1bd55598 RD |
1153 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1154 | __repr__ = _swig_repr | |
1155 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1156 | """__init__(self, int timerid=0, int interval=0) -> TimerEvent""" |
1bd55598 | 1157 | _misc_.TimerEvent_swiginit(self,_misc_.new_TimerEvent(*args, **kwargs)) |
d55e5bfc RD |
1158 | def GetInterval(*args, **kwargs): |
1159 | """GetInterval(self) -> int""" | |
1160 | return _misc_.TimerEvent_GetInterval(*args, **kwargs) | |
1161 | ||
1bd55598 RD |
1162 | TimerEvent_swigregister = _misc_.TimerEvent_swigregister |
1163 | TimerEvent_swigregister(TimerEvent) | |
d55e5bfc RD |
1164 | |
1165 | class TimerRunner(object): | |
36ed4f51 | 1166 | """Proxy of C++ TimerRunner class""" |
1bd55598 RD |
1167 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1168 | __repr__ = _swig_repr | |
1169 | def __init__(self, *args): | |
d55e5bfc RD |
1170 | """ |
1171 | __init__(self, wxTimer timer) -> TimerRunner | |
1172 | __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner | |
1173 | """ | |
1bd55598 RD |
1174 | _misc_.TimerRunner_swiginit(self,_misc_.new_TimerRunner(*args)) |
1175 | __swig_destroy__ = _misc_.delete_TimerRunner | |
1176 | __del__ = lambda self : None; | |
d55e5bfc RD |
1177 | def Start(*args, **kwargs): |
1178 | """Start(self, int milli, bool oneShot=False)""" | |
1179 | return _misc_.TimerRunner_Start(*args, **kwargs) | |
1180 | ||
1bd55598 RD |
1181 | TimerRunner_swigregister = _misc_.TimerRunner_swigregister |
1182 | TimerRunner_swigregister(TimerRunner) | |
d55e5bfc RD |
1183 | |
1184 | #--------------------------------------------------------------------------- | |
1185 | ||
1186 | LOG_FatalError = _misc_.LOG_FatalError | |
1187 | LOG_Error = _misc_.LOG_Error | |
1188 | LOG_Warning = _misc_.LOG_Warning | |
1189 | LOG_Message = _misc_.LOG_Message | |
1190 | LOG_Status = _misc_.LOG_Status | |
1191 | LOG_Info = _misc_.LOG_Info | |
1192 | LOG_Debug = _misc_.LOG_Debug | |
1193 | LOG_Trace = _misc_.LOG_Trace | |
1194 | LOG_Progress = _misc_.LOG_Progress | |
1195 | LOG_User = _misc_.LOG_User | |
1196 | LOG_Max = _misc_.LOG_Max | |
1197 | TRACE_MemAlloc = _misc_.TRACE_MemAlloc | |
1198 | TRACE_Messages = _misc_.TRACE_Messages | |
1199 | TRACE_ResAlloc = _misc_.TRACE_ResAlloc | |
1200 | TRACE_RefCount = _misc_.TRACE_RefCount | |
1201 | TRACE_OleCalls = _misc_.TRACE_OleCalls | |
1202 | TraceMemAlloc = _misc_.TraceMemAlloc | |
1203 | TraceMessages = _misc_.TraceMessages | |
1204 | TraceResAlloc = _misc_.TraceResAlloc | |
1205 | TraceRefCount = _misc_.TraceRefCount | |
1206 | TraceOleCalls = _misc_.TraceOleCalls | |
1207 | class Log(object): | |
36ed4f51 | 1208 | """Proxy of C++ Log class""" |
1bd55598 RD |
1209 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1210 | __repr__ = _swig_repr | |
1211 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1212 | """__init__(self) -> Log""" |
1bd55598 RD |
1213 | _misc_.Log_swiginit(self,_misc_.new_Log(*args, **kwargs)) |
1214 | __swig_destroy__ = _misc_.delete_Log | |
1215 | __del__ = lambda self : None; | |
d55e5bfc | 1216 | def IsEnabled(*args, **kwargs): |
d6c14a4c | 1217 | """IsEnabled() -> bool""" |
d55e5bfc RD |
1218 | return _misc_.Log_IsEnabled(*args, **kwargs) |
1219 | ||
1220 | IsEnabled = staticmethod(IsEnabled) | |
1221 | def EnableLogging(*args, **kwargs): | |
d6c14a4c | 1222 | """EnableLogging(bool doIt=True) -> bool""" |
d55e5bfc RD |
1223 | return _misc_.Log_EnableLogging(*args, **kwargs) |
1224 | ||
1225 | EnableLogging = staticmethod(EnableLogging) | |
1226 | def OnLog(*args, **kwargs): | |
d6c14a4c | 1227 | """OnLog(wxLogLevel level, wxChar szString, time_t t)""" |
d55e5bfc RD |
1228 | return _misc_.Log_OnLog(*args, **kwargs) |
1229 | ||
1230 | OnLog = staticmethod(OnLog) | |
1231 | def Flush(*args, **kwargs): | |
1232 | """Flush(self)""" | |
1233 | return _misc_.Log_Flush(*args, **kwargs) | |
1234 | ||
1235 | def FlushActive(*args, **kwargs): | |
d6c14a4c | 1236 | """FlushActive()""" |
d55e5bfc RD |
1237 | return _misc_.Log_FlushActive(*args, **kwargs) |
1238 | ||
1239 | FlushActive = staticmethod(FlushActive) | |
1240 | def GetActiveTarget(*args, **kwargs): | |
d6c14a4c | 1241 | """GetActiveTarget() -> Log""" |
d55e5bfc RD |
1242 | return _misc_.Log_GetActiveTarget(*args, **kwargs) |
1243 | ||
1244 | GetActiveTarget = staticmethod(GetActiveTarget) | |
1245 | def SetActiveTarget(*args, **kwargs): | |
d6c14a4c | 1246 | """SetActiveTarget(Log pLogger) -> Log""" |
d55e5bfc RD |
1247 | return _misc_.Log_SetActiveTarget(*args, **kwargs) |
1248 | ||
1249 | SetActiveTarget = staticmethod(SetActiveTarget) | |
1250 | def Suspend(*args, **kwargs): | |
d6c14a4c | 1251 | """Suspend()""" |
d55e5bfc RD |
1252 | return _misc_.Log_Suspend(*args, **kwargs) |
1253 | ||
1254 | Suspend = staticmethod(Suspend) | |
1255 | def Resume(*args, **kwargs): | |
d6c14a4c | 1256 | """Resume()""" |
d55e5bfc RD |
1257 | return _misc_.Log_Resume(*args, **kwargs) |
1258 | ||
1259 | Resume = staticmethod(Resume) | |
1260 | def SetVerbose(*args, **kwargs): | |
d6c14a4c | 1261 | """SetVerbose(bool bVerbose=True)""" |
d55e5bfc RD |
1262 | return _misc_.Log_SetVerbose(*args, **kwargs) |
1263 | ||
1264 | SetVerbose = staticmethod(SetVerbose) | |
1265 | def SetLogLevel(*args, **kwargs): | |
d6c14a4c | 1266 | """SetLogLevel(wxLogLevel logLevel)""" |
d55e5bfc RD |
1267 | return _misc_.Log_SetLogLevel(*args, **kwargs) |
1268 | ||
1269 | SetLogLevel = staticmethod(SetLogLevel) | |
1270 | def DontCreateOnDemand(*args, **kwargs): | |
d6c14a4c | 1271 | """DontCreateOnDemand()""" |
d55e5bfc RD |
1272 | return _misc_.Log_DontCreateOnDemand(*args, **kwargs) |
1273 | ||
1274 | DontCreateOnDemand = staticmethod(DontCreateOnDemand) | |
1275 | def SetTraceMask(*args, **kwargs): | |
d6c14a4c | 1276 | """SetTraceMask(wxTraceMask ulMask)""" |
d55e5bfc RD |
1277 | return _misc_.Log_SetTraceMask(*args, **kwargs) |
1278 | ||
1279 | SetTraceMask = staticmethod(SetTraceMask) | |
1280 | def AddTraceMask(*args, **kwargs): | |
d6c14a4c | 1281 | """AddTraceMask(String str)""" |
d55e5bfc RD |
1282 | return _misc_.Log_AddTraceMask(*args, **kwargs) |
1283 | ||
1284 | AddTraceMask = staticmethod(AddTraceMask) | |
1285 | def RemoveTraceMask(*args, **kwargs): | |
d6c14a4c | 1286 | """RemoveTraceMask(String str)""" |
d55e5bfc RD |
1287 | return _misc_.Log_RemoveTraceMask(*args, **kwargs) |
1288 | ||
1289 | RemoveTraceMask = staticmethod(RemoveTraceMask) | |
1290 | def ClearTraceMasks(*args, **kwargs): | |
d6c14a4c | 1291 | """ClearTraceMasks()""" |
d55e5bfc RD |
1292 | return _misc_.Log_ClearTraceMasks(*args, **kwargs) |
1293 | ||
1294 | ClearTraceMasks = staticmethod(ClearTraceMasks) | |
1295 | def GetTraceMasks(*args, **kwargs): | |
d6c14a4c | 1296 | """GetTraceMasks() -> wxArrayString""" |
d55e5bfc RD |
1297 | return _misc_.Log_GetTraceMasks(*args, **kwargs) |
1298 | ||
1299 | GetTraceMasks = staticmethod(GetTraceMasks) | |
1300 | def SetTimestamp(*args, **kwargs): | |
d6c14a4c | 1301 | """SetTimestamp(wxChar ts)""" |
d55e5bfc RD |
1302 | return _misc_.Log_SetTimestamp(*args, **kwargs) |
1303 | ||
1304 | SetTimestamp = staticmethod(SetTimestamp) | |
1305 | def GetVerbose(*args, **kwargs): | |
d6c14a4c | 1306 | """GetVerbose() -> bool""" |
d55e5bfc RD |
1307 | return _misc_.Log_GetVerbose(*args, **kwargs) |
1308 | ||
1309 | GetVerbose = staticmethod(GetVerbose) | |
1310 | def GetTraceMask(*args, **kwargs): | |
d6c14a4c | 1311 | """GetTraceMask() -> wxTraceMask""" |
d55e5bfc RD |
1312 | return _misc_.Log_GetTraceMask(*args, **kwargs) |
1313 | ||
1314 | GetTraceMask = staticmethod(GetTraceMask) | |
1315 | def IsAllowedTraceMask(*args, **kwargs): | |
d6c14a4c | 1316 | """IsAllowedTraceMask(wxChar mask) -> bool""" |
d55e5bfc RD |
1317 | return _misc_.Log_IsAllowedTraceMask(*args, **kwargs) |
1318 | ||
1319 | IsAllowedTraceMask = staticmethod(IsAllowedTraceMask) | |
1320 | def GetLogLevel(*args, **kwargs): | |
d6c14a4c | 1321 | """GetLogLevel() -> wxLogLevel""" |
d55e5bfc RD |
1322 | return _misc_.Log_GetLogLevel(*args, **kwargs) |
1323 | ||
1324 | GetLogLevel = staticmethod(GetLogLevel) | |
1325 | def GetTimestamp(*args, **kwargs): | |
d6c14a4c | 1326 | """GetTimestamp() -> wxChar""" |
d55e5bfc RD |
1327 | return _misc_.Log_GetTimestamp(*args, **kwargs) |
1328 | ||
1329 | GetTimestamp = staticmethod(GetTimestamp) | |
1330 | def TimeStamp(*args, **kwargs): | |
d6c14a4c | 1331 | """TimeStamp() -> String""" |
d55e5bfc RD |
1332 | return _misc_.Log_TimeStamp(*args, **kwargs) |
1333 | ||
1334 | TimeStamp = staticmethod(TimeStamp) | |
1335 | def Destroy(*args, **kwargs): | |
1336 | """Destroy(self)""" | |
7e08d4ef RD |
1337 | val = _misc_.Log_Destroy(*args, **kwargs) |
1338 | args[0].thisown = 0 | |
1339 | return val | |
d55e5bfc | 1340 | |
1bd55598 RD |
1341 | Log_swigregister = _misc_.Log_swigregister |
1342 | Log_swigregister(Log) | |
d55e5bfc | 1343 | |
1bd55598 RD |
1344 | def Log_IsEnabled(*args): |
1345 | """Log_IsEnabled() -> bool""" | |
1346 | return _misc_.Log_IsEnabled(*args) | |
d55e5bfc RD |
1347 | |
1348 | def Log_EnableLogging(*args, **kwargs): | |
1bd55598 RD |
1349 | """Log_EnableLogging(bool doIt=True) -> bool""" |
1350 | return _misc_.Log_EnableLogging(*args, **kwargs) | |
d55e5bfc RD |
1351 | |
1352 | def Log_OnLog(*args, **kwargs): | |
1bd55598 RD |
1353 | """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)""" |
1354 | return _misc_.Log_OnLog(*args, **kwargs) | |
d55e5bfc | 1355 | |
1bd55598 RD |
1356 | def Log_FlushActive(*args): |
1357 | """Log_FlushActive()""" | |
1358 | return _misc_.Log_FlushActive(*args) | |
d55e5bfc | 1359 | |
1bd55598 RD |
1360 | def Log_GetActiveTarget(*args): |
1361 | """Log_GetActiveTarget() -> Log""" | |
1362 | return _misc_.Log_GetActiveTarget(*args) | |
d55e5bfc RD |
1363 | |
1364 | def Log_SetActiveTarget(*args, **kwargs): | |
1bd55598 RD |
1365 | """Log_SetActiveTarget(Log pLogger) -> Log""" |
1366 | return _misc_.Log_SetActiveTarget(*args, **kwargs) | |
d55e5bfc | 1367 | |
1bd55598 RD |
1368 | def Log_Suspend(*args): |
1369 | """Log_Suspend()""" | |
1370 | return _misc_.Log_Suspend(*args) | |
d55e5bfc | 1371 | |
1bd55598 RD |
1372 | def Log_Resume(*args): |
1373 | """Log_Resume()""" | |
1374 | return _misc_.Log_Resume(*args) | |
d55e5bfc RD |
1375 | |
1376 | def Log_SetVerbose(*args, **kwargs): | |
1bd55598 RD |
1377 | """Log_SetVerbose(bool bVerbose=True)""" |
1378 | return _misc_.Log_SetVerbose(*args, **kwargs) | |
d55e5bfc RD |
1379 | |
1380 | def Log_SetLogLevel(*args, **kwargs): | |
1bd55598 RD |
1381 | """Log_SetLogLevel(wxLogLevel logLevel)""" |
1382 | return _misc_.Log_SetLogLevel(*args, **kwargs) | |
d55e5bfc | 1383 | |
1bd55598 RD |
1384 | def Log_DontCreateOnDemand(*args): |
1385 | """Log_DontCreateOnDemand()""" | |
1386 | return _misc_.Log_DontCreateOnDemand(*args) | |
d55e5bfc RD |
1387 | |
1388 | def Log_SetTraceMask(*args, **kwargs): | |
1bd55598 RD |
1389 | """Log_SetTraceMask(wxTraceMask ulMask)""" |
1390 | return _misc_.Log_SetTraceMask(*args, **kwargs) | |
d55e5bfc RD |
1391 | |
1392 | def Log_AddTraceMask(*args, **kwargs): | |
1bd55598 RD |
1393 | """Log_AddTraceMask(String str)""" |
1394 | return _misc_.Log_AddTraceMask(*args, **kwargs) | |
d55e5bfc RD |
1395 | |
1396 | def Log_RemoveTraceMask(*args, **kwargs): | |
1bd55598 RD |
1397 | """Log_RemoveTraceMask(String str)""" |
1398 | return _misc_.Log_RemoveTraceMask(*args, **kwargs) | |
d55e5bfc | 1399 | |
1bd55598 RD |
1400 | def Log_ClearTraceMasks(*args): |
1401 | """Log_ClearTraceMasks()""" | |
1402 | return _misc_.Log_ClearTraceMasks(*args) | |
d55e5bfc | 1403 | |
1bd55598 RD |
1404 | def Log_GetTraceMasks(*args): |
1405 | """Log_GetTraceMasks() -> wxArrayString""" | |
1406 | return _misc_.Log_GetTraceMasks(*args) | |
d55e5bfc RD |
1407 | |
1408 | def Log_SetTimestamp(*args, **kwargs): | |
1bd55598 RD |
1409 | """Log_SetTimestamp(wxChar ts)""" |
1410 | return _misc_.Log_SetTimestamp(*args, **kwargs) | |
d55e5bfc | 1411 | |
1bd55598 RD |
1412 | def Log_GetVerbose(*args): |
1413 | """Log_GetVerbose() -> bool""" | |
1414 | return _misc_.Log_GetVerbose(*args) | |
d55e5bfc | 1415 | |
1bd55598 RD |
1416 | def Log_GetTraceMask(*args): |
1417 | """Log_GetTraceMask() -> wxTraceMask""" | |
1418 | return _misc_.Log_GetTraceMask(*args) | |
d55e5bfc RD |
1419 | |
1420 | def Log_IsAllowedTraceMask(*args, **kwargs): | |
1bd55598 RD |
1421 | """Log_IsAllowedTraceMask(wxChar mask) -> bool""" |
1422 | return _misc_.Log_IsAllowedTraceMask(*args, **kwargs) | |
d55e5bfc | 1423 | |
1bd55598 RD |
1424 | def Log_GetLogLevel(*args): |
1425 | """Log_GetLogLevel() -> wxLogLevel""" | |
1426 | return _misc_.Log_GetLogLevel(*args) | |
d55e5bfc | 1427 | |
1bd55598 RD |
1428 | def Log_GetTimestamp(*args): |
1429 | """Log_GetTimestamp() -> wxChar""" | |
1430 | return _misc_.Log_GetTimestamp(*args) | |
d55e5bfc | 1431 | |
1bd55598 RD |
1432 | def Log_TimeStamp(*args): |
1433 | """Log_TimeStamp() -> String""" | |
1434 | return _misc_.Log_TimeStamp(*args) | |
d55e5bfc RD |
1435 | |
1436 | class LogStderr(Log): | |
36ed4f51 | 1437 | """Proxy of C++ LogStderr class""" |
1bd55598 RD |
1438 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1439 | __repr__ = _swig_repr | |
1440 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1441 | """__init__(self) -> LogStderr""" |
1bd55598 RD |
1442 | _misc_.LogStderr_swiginit(self,_misc_.new_LogStderr(*args, **kwargs)) |
1443 | LogStderr_swigregister = _misc_.LogStderr_swigregister | |
1444 | LogStderr_swigregister(LogStderr) | |
d55e5bfc RD |
1445 | |
1446 | class LogTextCtrl(Log): | |
36ed4f51 | 1447 | """Proxy of C++ LogTextCtrl class""" |
1bd55598 RD |
1448 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1449 | __repr__ = _swig_repr | |
1450 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1451 | """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl""" |
1bd55598 RD |
1452 | _misc_.LogTextCtrl_swiginit(self,_misc_.new_LogTextCtrl(*args, **kwargs)) |
1453 | LogTextCtrl_swigregister = _misc_.LogTextCtrl_swigregister | |
1454 | LogTextCtrl_swigregister(LogTextCtrl) | |
d55e5bfc RD |
1455 | |
1456 | class LogGui(Log): | |
36ed4f51 | 1457 | """Proxy of C++ LogGui class""" |
1bd55598 RD |
1458 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1459 | __repr__ = _swig_repr | |
1460 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1461 | """__init__(self) -> LogGui""" |
1bd55598 RD |
1462 | _misc_.LogGui_swiginit(self,_misc_.new_LogGui(*args, **kwargs)) |
1463 | LogGui_swigregister = _misc_.LogGui_swigregister | |
1464 | LogGui_swigregister(LogGui) | |
d55e5bfc RD |
1465 | |
1466 | class LogWindow(Log): | |
36ed4f51 | 1467 | """Proxy of C++ LogWindow class""" |
1bd55598 RD |
1468 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1469 | __repr__ = _swig_repr | |
1470 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1471 | """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow""" |
1bd55598 | 1472 | _misc_.LogWindow_swiginit(self,_misc_.new_LogWindow(*args, **kwargs)) |
d55e5bfc RD |
1473 | def Show(*args, **kwargs): |
1474 | """Show(self, bool bShow=True)""" | |
1475 | return _misc_.LogWindow_Show(*args, **kwargs) | |
1476 | ||
1477 | def GetFrame(*args, **kwargs): | |
1478 | """GetFrame(self) -> wxFrame""" | |
1479 | return _misc_.LogWindow_GetFrame(*args, **kwargs) | |
1480 | ||
1481 | def GetOldLog(*args, **kwargs): | |
1482 | """GetOldLog(self) -> Log""" | |
1483 | return _misc_.LogWindow_GetOldLog(*args, **kwargs) | |
1484 | ||
1485 | def IsPassingMessages(*args, **kwargs): | |
1486 | """IsPassingMessages(self) -> bool""" | |
1487 | return _misc_.LogWindow_IsPassingMessages(*args, **kwargs) | |
1488 | ||
1489 | def PassMessages(*args, **kwargs): | |
1490 | """PassMessages(self, bool bDoPass)""" | |
1491 | return _misc_.LogWindow_PassMessages(*args, **kwargs) | |
1492 | ||
1bd55598 RD |
1493 | LogWindow_swigregister = _misc_.LogWindow_swigregister |
1494 | LogWindow_swigregister(LogWindow) | |
d55e5bfc RD |
1495 | |
1496 | class LogChain(Log): | |
36ed4f51 | 1497 | """Proxy of C++ LogChain class""" |
1bd55598 RD |
1498 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1499 | __repr__ = _swig_repr | |
1500 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1501 | """__init__(self, Log logger) -> LogChain""" |
1bd55598 | 1502 | _misc_.LogChain_swiginit(self,_misc_.new_LogChain(*args, **kwargs)) |
d55e5bfc RD |
1503 | def SetLog(*args, **kwargs): |
1504 | """SetLog(self, Log logger)""" | |
1505 | return _misc_.LogChain_SetLog(*args, **kwargs) | |
1506 | ||
1507 | def PassMessages(*args, **kwargs): | |
1508 | """PassMessages(self, bool bDoPass)""" | |
1509 | return _misc_.LogChain_PassMessages(*args, **kwargs) | |
1510 | ||
1511 | def IsPassingMessages(*args, **kwargs): | |
1512 | """IsPassingMessages(self) -> bool""" | |
1513 | return _misc_.LogChain_IsPassingMessages(*args, **kwargs) | |
1514 | ||
1515 | def GetOldLog(*args, **kwargs): | |
1516 | """GetOldLog(self) -> Log""" | |
1517 | return _misc_.LogChain_GetOldLog(*args, **kwargs) | |
1518 | ||
1bd55598 RD |
1519 | LogChain_swigregister = _misc_.LogChain_swigregister |
1520 | LogChain_swigregister(LogChain) | |
d55e5bfc | 1521 | |
be9b1dca RD |
1522 | class LogBuffer(Log): |
1523 | """Proxy of C++ LogBuffer class""" | |
1bd55598 RD |
1524 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1525 | __repr__ = _swig_repr | |
1526 | def __init__(self, *args, **kwargs): | |
be9b1dca | 1527 | """__init__(self) -> LogBuffer""" |
1bd55598 | 1528 | _misc_.LogBuffer_swiginit(self,_misc_.new_LogBuffer(*args, **kwargs)) |
be9b1dca RD |
1529 | def GetBuffer(*args, **kwargs): |
1530 | """GetBuffer(self) -> String""" | |
1531 | return _misc_.LogBuffer_GetBuffer(*args, **kwargs) | |
1532 | ||
1bd55598 RD |
1533 | LogBuffer_swigregister = _misc_.LogBuffer_swigregister |
1534 | LogBuffer_swigregister(LogBuffer) | |
be9b1dca | 1535 | |
be9b1dca | 1536 | |
1bd55598 RD |
1537 | def SysErrorCode(*args): |
1538 | """SysErrorCode() -> unsigned long""" | |
1539 | return _misc_.SysErrorCode(*args) | |
d55e5bfc RD |
1540 | |
1541 | def SysErrorMsg(*args, **kwargs): | |
1bd55598 RD |
1542 | """SysErrorMsg(unsigned long nErrCode=0) -> String""" |
1543 | return _misc_.SysErrorMsg(*args, **kwargs) | |
d55e5bfc RD |
1544 | |
1545 | def LogFatalError(*args, **kwargs): | |
1bd55598 RD |
1546 | """LogFatalError(String msg)""" |
1547 | return _misc_.LogFatalError(*args, **kwargs) | |
d55e5bfc RD |
1548 | |
1549 | def LogError(*args, **kwargs): | |
1bd55598 RD |
1550 | """LogError(String msg)""" |
1551 | return _misc_.LogError(*args, **kwargs) | |
d55e5bfc RD |
1552 | |
1553 | def LogWarning(*args, **kwargs): | |
1bd55598 RD |
1554 | """LogWarning(String msg)""" |
1555 | return _misc_.LogWarning(*args, **kwargs) | |
d55e5bfc RD |
1556 | |
1557 | def LogMessage(*args, **kwargs): | |
1bd55598 RD |
1558 | """LogMessage(String msg)""" |
1559 | return _misc_.LogMessage(*args, **kwargs) | |
d55e5bfc RD |
1560 | |
1561 | def LogInfo(*args, **kwargs): | |
1bd55598 RD |
1562 | """LogInfo(String msg)""" |
1563 | return _misc_.LogInfo(*args, **kwargs) | |
d55e5bfc RD |
1564 | |
1565 | def LogDebug(*args, **kwargs): | |
1bd55598 RD |
1566 | """LogDebug(String msg)""" |
1567 | return _misc_.LogDebug(*args, **kwargs) | |
d55e5bfc RD |
1568 | |
1569 | def LogVerbose(*args, **kwargs): | |
1bd55598 RD |
1570 | """LogVerbose(String msg)""" |
1571 | return _misc_.LogVerbose(*args, **kwargs) | |
d55e5bfc RD |
1572 | |
1573 | def LogStatus(*args, **kwargs): | |
1bd55598 RD |
1574 | """LogStatus(String msg)""" |
1575 | return _misc_.LogStatus(*args, **kwargs) | |
d55e5bfc RD |
1576 | |
1577 | def LogStatusFrame(*args, **kwargs): | |
1bd55598 RD |
1578 | """LogStatusFrame(wxFrame pFrame, String msg)""" |
1579 | return _misc_.LogStatusFrame(*args, **kwargs) | |
d55e5bfc RD |
1580 | |
1581 | def LogSysError(*args, **kwargs): | |
1bd55598 RD |
1582 | """LogSysError(String msg)""" |
1583 | return _misc_.LogSysError(*args, **kwargs) | |
d55e5bfc RD |
1584 | |
1585 | def LogGeneric(*args, **kwargs): | |
1bd55598 RD |
1586 | """LogGeneric(unsigned long level, String msg)""" |
1587 | return _misc_.LogGeneric(*args, **kwargs) | |
d55e5bfc RD |
1588 | |
1589 | def SafeShowMessage(*args, **kwargs): | |
1bd55598 RD |
1590 | """SafeShowMessage(String title, String text)""" |
1591 | return _misc_.SafeShowMessage(*args, **kwargs) | |
d55e5bfc | 1592 | class LogNull(object): |
36ed4f51 | 1593 | """Proxy of C++ LogNull class""" |
1bd55598 RD |
1594 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1595 | __repr__ = _swig_repr | |
1596 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1597 | """__init__(self) -> LogNull""" |
1bd55598 RD |
1598 | _misc_.LogNull_swiginit(self,_misc_.new_LogNull(*args, **kwargs)) |
1599 | __swig_destroy__ = _misc_.delete_LogNull | |
1600 | __del__ = lambda self : None; | |
1601 | LogNull_swigregister = _misc_.LogNull_swigregister | |
1602 | LogNull_swigregister(LogNull) | |
d55e5bfc RD |
1603 | |
1604 | def LogTrace(*args): | |
1bd55598 | 1605 | """ |
d55e5bfc RD |
1606 | LogTrace(unsigned long mask, String msg) |
1607 | LogTrace(String mask, String msg) | |
1608 | """ | |
1bd55598 | 1609 | return _misc_.LogTrace(*args) |
d55e5bfc RD |
1610 | |
1611 | class PyLog(Log): | |
36ed4f51 | 1612 | """Proxy of C++ PyLog class""" |
1bd55598 RD |
1613 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1614 | __repr__ = _swig_repr | |
1615 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1616 | """__init__(self) -> PyLog""" |
1bd55598 | 1617 | _misc_.PyLog_swiginit(self,_misc_.new_PyLog(*args, **kwargs)) |
d55e5bfc RD |
1618 | self._setCallbackInfo(self, PyLog) |
1619 | ||
1620 | def _setCallbackInfo(*args, **kwargs): | |
1621 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1622 | return _misc_.PyLog__setCallbackInfo(*args, **kwargs) | |
1623 | ||
1bd55598 RD |
1624 | PyLog_swigregister = _misc_.PyLog_swigregister |
1625 | PyLog_swigregister(PyLog) | |
d55e5bfc RD |
1626 | |
1627 | #--------------------------------------------------------------------------- | |
1628 | ||
1629 | PROCESS_DEFAULT = _misc_.PROCESS_DEFAULT | |
1630 | PROCESS_REDIRECT = _misc_.PROCESS_REDIRECT | |
1631 | KILL_OK = _misc_.KILL_OK | |
1632 | KILL_BAD_SIGNAL = _misc_.KILL_BAD_SIGNAL | |
1633 | KILL_ACCESS_DENIED = _misc_.KILL_ACCESS_DENIED | |
1634 | KILL_NO_PROCESS = _misc_.KILL_NO_PROCESS | |
1635 | KILL_ERROR = _misc_.KILL_ERROR | |
03e46024 RD |
1636 | KILL_NOCHILDREN = _misc_.KILL_NOCHILDREN |
1637 | KILL_CHILDREN = _misc_.KILL_CHILDREN | |
d55e5bfc RD |
1638 | SIGNONE = _misc_.SIGNONE |
1639 | SIGHUP = _misc_.SIGHUP | |
1640 | SIGINT = _misc_.SIGINT | |
1641 | SIGQUIT = _misc_.SIGQUIT | |
1642 | SIGILL = _misc_.SIGILL | |
1643 | SIGTRAP = _misc_.SIGTRAP | |
1644 | SIGABRT = _misc_.SIGABRT | |
1645 | SIGIOT = _misc_.SIGIOT | |
1646 | SIGEMT = _misc_.SIGEMT | |
1647 | SIGFPE = _misc_.SIGFPE | |
1648 | SIGKILL = _misc_.SIGKILL | |
1649 | SIGBUS = _misc_.SIGBUS | |
1650 | SIGSEGV = _misc_.SIGSEGV | |
1651 | SIGSYS = _misc_.SIGSYS | |
1652 | SIGPIPE = _misc_.SIGPIPE | |
1653 | SIGALRM = _misc_.SIGALRM | |
1654 | SIGTERM = _misc_.SIGTERM | |
1655 | class Process(_core.EvtHandler): | |
36ed4f51 | 1656 | """Proxy of C++ Process class""" |
1bd55598 RD |
1657 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1658 | __repr__ = _swig_repr | |
d55e5bfc | 1659 | def Kill(*args, **kwargs): |
03e46024 | 1660 | """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int""" |
d55e5bfc RD |
1661 | return _misc_.Process_Kill(*args, **kwargs) |
1662 | ||
1663 | Kill = staticmethod(Kill) | |
1664 | def Exists(*args, **kwargs): | |
d6c14a4c | 1665 | """Exists(int pid) -> bool""" |
d55e5bfc RD |
1666 | return _misc_.Process_Exists(*args, **kwargs) |
1667 | ||
1668 | Exists = staticmethod(Exists) | |
1669 | def Open(*args, **kwargs): | |
d6c14a4c | 1670 | """Open(String cmd, int flags=EXEC_ASYNC) -> Process""" |
d55e5bfc RD |
1671 | return _misc_.Process_Open(*args, **kwargs) |
1672 | ||
1673 | Open = staticmethod(Open) | |
1bd55598 | 1674 | def __init__(self, *args, **kwargs): |
d55e5bfc | 1675 | """__init__(self, EvtHandler parent=None, int id=-1) -> Process""" |
1bd55598 | 1676 | _misc_.Process_swiginit(self,_misc_.new_Process(*args, **kwargs)) |
d55e5bfc RD |
1677 | self._setCallbackInfo(self, Process) |
1678 | ||
1679 | def _setCallbackInfo(*args, **kwargs): | |
1680 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1681 | return _misc_.Process__setCallbackInfo(*args, **kwargs) | |
1682 | ||
7f7aa166 RD |
1683 | def OnTerminate(*args, **kwargs): |
1684 | """OnTerminate(self, int pid, int status)""" | |
1685 | return _misc_.Process_OnTerminate(*args, **kwargs) | |
1686 | ||
1687 | def base_OnTerminate(*args, **kw): | |
1688 | return Process.OnTerminate(*args, **kw) | |
1689 | base_OnTerminate = wx._deprecated(base_OnTerminate, | |
1690 | "Please use Process.OnTerminate instead.") | |
d55e5bfc RD |
1691 | |
1692 | def Redirect(*args, **kwargs): | |
1693 | """Redirect(self)""" | |
1694 | return _misc_.Process_Redirect(*args, **kwargs) | |
1695 | ||
1696 | def IsRedirected(*args, **kwargs): | |
1697 | """IsRedirected(self) -> bool""" | |
1698 | return _misc_.Process_IsRedirected(*args, **kwargs) | |
1699 | ||
1700 | def Detach(*args, **kwargs): | |
1701 | """Detach(self)""" | |
1702 | return _misc_.Process_Detach(*args, **kwargs) | |
1703 | ||
1704 | def GetInputStream(*args, **kwargs): | |
1705 | """GetInputStream(self) -> InputStream""" | |
1706 | return _misc_.Process_GetInputStream(*args, **kwargs) | |
1707 | ||
1708 | def GetErrorStream(*args, **kwargs): | |
1709 | """GetErrorStream(self) -> InputStream""" | |
1710 | return _misc_.Process_GetErrorStream(*args, **kwargs) | |
1711 | ||
1712 | def GetOutputStream(*args, **kwargs): | |
1713 | """GetOutputStream(self) -> OutputStream""" | |
1714 | return _misc_.Process_GetOutputStream(*args, **kwargs) | |
1715 | ||
1716 | def CloseOutput(*args, **kwargs): | |
1717 | """CloseOutput(self)""" | |
1718 | return _misc_.Process_CloseOutput(*args, **kwargs) | |
1719 | ||
1720 | def IsInputOpened(*args, **kwargs): | |
1721 | """IsInputOpened(self) -> bool""" | |
1722 | return _misc_.Process_IsInputOpened(*args, **kwargs) | |
1723 | ||
1724 | def IsInputAvailable(*args, **kwargs): | |
1725 | """IsInputAvailable(self) -> bool""" | |
1726 | return _misc_.Process_IsInputAvailable(*args, **kwargs) | |
1727 | ||
1728 | def IsErrorAvailable(*args, **kwargs): | |
1729 | """IsErrorAvailable(self) -> bool""" | |
1730 | return _misc_.Process_IsErrorAvailable(*args, **kwargs) | |
1731 | ||
1bd55598 RD |
1732 | Process_swigregister = _misc_.Process_swigregister |
1733 | Process_swigregister(Process) | |
d55e5bfc RD |
1734 | |
1735 | def Process_Kill(*args, **kwargs): | |
1bd55598 RD |
1736 | """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int""" |
1737 | return _misc_.Process_Kill(*args, **kwargs) | |
d55e5bfc RD |
1738 | |
1739 | def Process_Exists(*args, **kwargs): | |
1bd55598 RD |
1740 | """Process_Exists(int pid) -> bool""" |
1741 | return _misc_.Process_Exists(*args, **kwargs) | |
d55e5bfc RD |
1742 | |
1743 | def Process_Open(*args, **kwargs): | |
1bd55598 RD |
1744 | """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process""" |
1745 | return _misc_.Process_Open(*args, **kwargs) | |
d55e5bfc RD |
1746 | |
1747 | class ProcessEvent(_core.Event): | |
36ed4f51 | 1748 | """Proxy of C++ ProcessEvent class""" |
1bd55598 RD |
1749 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1750 | __repr__ = _swig_repr | |
1751 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1752 | """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent""" |
1bd55598 | 1753 | _misc_.ProcessEvent_swiginit(self,_misc_.new_ProcessEvent(*args, **kwargs)) |
d55e5bfc RD |
1754 | def GetPid(*args, **kwargs): |
1755 | """GetPid(self) -> int""" | |
1756 | return _misc_.ProcessEvent_GetPid(*args, **kwargs) | |
1757 | ||
1758 | def GetExitCode(*args, **kwargs): | |
1759 | """GetExitCode(self) -> int""" | |
1760 | return _misc_.ProcessEvent_GetExitCode(*args, **kwargs) | |
1761 | ||
1762 | m_pid = property(_misc_.ProcessEvent_m_pid_get, _misc_.ProcessEvent_m_pid_set) | |
1763 | m_exitcode = property(_misc_.ProcessEvent_m_exitcode_get, _misc_.ProcessEvent_m_exitcode_set) | |
1bd55598 RD |
1764 | ProcessEvent_swigregister = _misc_.ProcessEvent_swigregister |
1765 | ProcessEvent_swigregister(ProcessEvent) | |
d55e5bfc RD |
1766 | |
1767 | wxEVT_END_PROCESS = _misc_.wxEVT_END_PROCESS | |
1768 | EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 ) | |
1769 | ||
1770 | EXEC_ASYNC = _misc_.EXEC_ASYNC | |
1771 | EXEC_SYNC = _misc_.EXEC_SYNC | |
1772 | EXEC_NOHIDE = _misc_.EXEC_NOHIDE | |
1773 | EXEC_MAKE_GROUP_LEADER = _misc_.EXEC_MAKE_GROUP_LEADER | |
36ed4f51 | 1774 | EXEC_NODISABLE = _misc_.EXEC_NODISABLE |
d55e5bfc RD |
1775 | |
1776 | def Execute(*args, **kwargs): | |
1bd55598 RD |
1777 | """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long""" |
1778 | return _misc_.Execute(*args, **kwargs) | |
03e46024 RD |
1779 | |
1780 | def Kill(*args, **kwargs): | |
1bd55598 RD |
1781 | """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int""" |
1782 | return _misc_.Kill(*args, **kwargs) | |
d55e5bfc RD |
1783 | #--------------------------------------------------------------------------- |
1784 | ||
1785 | JOYSTICK1 = _misc_.JOYSTICK1 | |
1786 | JOYSTICK2 = _misc_.JOYSTICK2 | |
1787 | JOY_BUTTON_ANY = _misc_.JOY_BUTTON_ANY | |
1788 | JOY_BUTTON1 = _misc_.JOY_BUTTON1 | |
1789 | JOY_BUTTON2 = _misc_.JOY_BUTTON2 | |
1790 | JOY_BUTTON3 = _misc_.JOY_BUTTON3 | |
1791 | JOY_BUTTON4 = _misc_.JOY_BUTTON4 | |
1792 | class Joystick(object): | |
36ed4f51 | 1793 | """Proxy of C++ Joystick class""" |
1bd55598 RD |
1794 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1795 | __repr__ = _swig_repr | |
1796 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1797 | """__init__(self, int joystick=JOYSTICK1) -> Joystick""" |
1bd55598 RD |
1798 | _misc_.Joystick_swiginit(self,_misc_.new_Joystick(*args, **kwargs)) |
1799 | __swig_destroy__ = _misc_.delete_Joystick | |
1800 | __del__ = lambda self : None; | |
d55e5bfc RD |
1801 | def GetPosition(*args, **kwargs): |
1802 | """GetPosition(self) -> Point""" | |
1803 | return _misc_.Joystick_GetPosition(*args, **kwargs) | |
1804 | ||
1805 | def GetZPosition(*args, **kwargs): | |
1806 | """GetZPosition(self) -> int""" | |
1807 | return _misc_.Joystick_GetZPosition(*args, **kwargs) | |
1808 | ||
1809 | def GetButtonState(*args, **kwargs): | |
1810 | """GetButtonState(self) -> int""" | |
1811 | return _misc_.Joystick_GetButtonState(*args, **kwargs) | |
1812 | ||
1813 | def GetPOVPosition(*args, **kwargs): | |
1814 | """GetPOVPosition(self) -> int""" | |
1815 | return _misc_.Joystick_GetPOVPosition(*args, **kwargs) | |
1816 | ||
1817 | def GetPOVCTSPosition(*args, **kwargs): | |
1818 | """GetPOVCTSPosition(self) -> int""" | |
1819 | return _misc_.Joystick_GetPOVCTSPosition(*args, **kwargs) | |
1820 | ||
1821 | def GetRudderPosition(*args, **kwargs): | |
1822 | """GetRudderPosition(self) -> int""" | |
1823 | return _misc_.Joystick_GetRudderPosition(*args, **kwargs) | |
1824 | ||
1825 | def GetUPosition(*args, **kwargs): | |
1826 | """GetUPosition(self) -> int""" | |
1827 | return _misc_.Joystick_GetUPosition(*args, **kwargs) | |
1828 | ||
1829 | def GetVPosition(*args, **kwargs): | |
1830 | """GetVPosition(self) -> int""" | |
1831 | return _misc_.Joystick_GetVPosition(*args, **kwargs) | |
1832 | ||
1833 | def GetMovementThreshold(*args, **kwargs): | |
1834 | """GetMovementThreshold(self) -> int""" | |
1835 | return _misc_.Joystick_GetMovementThreshold(*args, **kwargs) | |
1836 | ||
1837 | def SetMovementThreshold(*args, **kwargs): | |
1838 | """SetMovementThreshold(self, int threshold)""" | |
1839 | return _misc_.Joystick_SetMovementThreshold(*args, **kwargs) | |
1840 | ||
1841 | def IsOk(*args, **kwargs): | |
1842 | """IsOk(self) -> bool""" | |
1843 | return _misc_.Joystick_IsOk(*args, **kwargs) | |
1844 | ||
1845 | def GetNumberJoysticks(*args, **kwargs): | |
1846 | """GetNumberJoysticks(self) -> int""" | |
1847 | return _misc_.Joystick_GetNumberJoysticks(*args, **kwargs) | |
1848 | ||
1849 | def GetManufacturerId(*args, **kwargs): | |
1850 | """GetManufacturerId(self) -> int""" | |
1851 | return _misc_.Joystick_GetManufacturerId(*args, **kwargs) | |
1852 | ||
1853 | def GetProductId(*args, **kwargs): | |
1854 | """GetProductId(self) -> int""" | |
1855 | return _misc_.Joystick_GetProductId(*args, **kwargs) | |
1856 | ||
1857 | def GetProductName(*args, **kwargs): | |
1858 | """GetProductName(self) -> String""" | |
1859 | return _misc_.Joystick_GetProductName(*args, **kwargs) | |
1860 | ||
1861 | def GetXMin(*args, **kwargs): | |
1862 | """GetXMin(self) -> int""" | |
1863 | return _misc_.Joystick_GetXMin(*args, **kwargs) | |
1864 | ||
1865 | def GetYMin(*args, **kwargs): | |
1866 | """GetYMin(self) -> int""" | |
1867 | return _misc_.Joystick_GetYMin(*args, **kwargs) | |
1868 | ||
1869 | def GetZMin(*args, **kwargs): | |
1870 | """GetZMin(self) -> int""" | |
1871 | return _misc_.Joystick_GetZMin(*args, **kwargs) | |
1872 | ||
1873 | def GetXMax(*args, **kwargs): | |
1874 | """GetXMax(self) -> int""" | |
1875 | return _misc_.Joystick_GetXMax(*args, **kwargs) | |
1876 | ||
1877 | def GetYMax(*args, **kwargs): | |
1878 | """GetYMax(self) -> int""" | |
1879 | return _misc_.Joystick_GetYMax(*args, **kwargs) | |
1880 | ||
1881 | def GetZMax(*args, **kwargs): | |
1882 | """GetZMax(self) -> int""" | |
1883 | return _misc_.Joystick_GetZMax(*args, **kwargs) | |
1884 | ||
1885 | def GetNumberButtons(*args, **kwargs): | |
1886 | """GetNumberButtons(self) -> int""" | |
1887 | return _misc_.Joystick_GetNumberButtons(*args, **kwargs) | |
1888 | ||
1889 | def GetNumberAxes(*args, **kwargs): | |
1890 | """GetNumberAxes(self) -> int""" | |
1891 | return _misc_.Joystick_GetNumberAxes(*args, **kwargs) | |
1892 | ||
1893 | def GetMaxButtons(*args, **kwargs): | |
1894 | """GetMaxButtons(self) -> int""" | |
1895 | return _misc_.Joystick_GetMaxButtons(*args, **kwargs) | |
1896 | ||
1897 | def GetMaxAxes(*args, **kwargs): | |
1898 | """GetMaxAxes(self) -> int""" | |
1899 | return _misc_.Joystick_GetMaxAxes(*args, **kwargs) | |
1900 | ||
1901 | def GetPollingMin(*args, **kwargs): | |
1902 | """GetPollingMin(self) -> int""" | |
1903 | return _misc_.Joystick_GetPollingMin(*args, **kwargs) | |
1904 | ||
1905 | def GetPollingMax(*args, **kwargs): | |
1906 | """GetPollingMax(self) -> int""" | |
1907 | return _misc_.Joystick_GetPollingMax(*args, **kwargs) | |
1908 | ||
1909 | def GetRudderMin(*args, **kwargs): | |
1910 | """GetRudderMin(self) -> int""" | |
1911 | return _misc_.Joystick_GetRudderMin(*args, **kwargs) | |
1912 | ||
1913 | def GetRudderMax(*args, **kwargs): | |
1914 | """GetRudderMax(self) -> int""" | |
1915 | return _misc_.Joystick_GetRudderMax(*args, **kwargs) | |
1916 | ||
1917 | def GetUMin(*args, **kwargs): | |
1918 | """GetUMin(self) -> int""" | |
1919 | return _misc_.Joystick_GetUMin(*args, **kwargs) | |
1920 | ||
1921 | def GetUMax(*args, **kwargs): | |
1922 | """GetUMax(self) -> int""" | |
1923 | return _misc_.Joystick_GetUMax(*args, **kwargs) | |
1924 | ||
1925 | def GetVMin(*args, **kwargs): | |
1926 | """GetVMin(self) -> int""" | |
1927 | return _misc_.Joystick_GetVMin(*args, **kwargs) | |
1928 | ||
1929 | def GetVMax(*args, **kwargs): | |
1930 | """GetVMax(self) -> int""" | |
1931 | return _misc_.Joystick_GetVMax(*args, **kwargs) | |
1932 | ||
1933 | def HasRudder(*args, **kwargs): | |
1934 | """HasRudder(self) -> bool""" | |
1935 | return _misc_.Joystick_HasRudder(*args, **kwargs) | |
1936 | ||
1937 | def HasZ(*args, **kwargs): | |
1938 | """HasZ(self) -> bool""" | |
1939 | return _misc_.Joystick_HasZ(*args, **kwargs) | |
1940 | ||
1941 | def HasU(*args, **kwargs): | |
1942 | """HasU(self) -> bool""" | |
1943 | return _misc_.Joystick_HasU(*args, **kwargs) | |
1944 | ||
1945 | def HasV(*args, **kwargs): | |
1946 | """HasV(self) -> bool""" | |
1947 | return _misc_.Joystick_HasV(*args, **kwargs) | |
1948 | ||
1949 | def HasPOV(*args, **kwargs): | |
1950 | """HasPOV(self) -> bool""" | |
1951 | return _misc_.Joystick_HasPOV(*args, **kwargs) | |
1952 | ||
1953 | def HasPOV4Dir(*args, **kwargs): | |
1954 | """HasPOV4Dir(self) -> bool""" | |
1955 | return _misc_.Joystick_HasPOV4Dir(*args, **kwargs) | |
1956 | ||
1957 | def HasPOVCTS(*args, **kwargs): | |
1958 | """HasPOVCTS(self) -> bool""" | |
1959 | return _misc_.Joystick_HasPOVCTS(*args, **kwargs) | |
1960 | ||
1961 | def SetCapture(*args, **kwargs): | |
1962 | """SetCapture(self, Window win, int pollingFreq=0) -> bool""" | |
1963 | return _misc_.Joystick_SetCapture(*args, **kwargs) | |
1964 | ||
1965 | def ReleaseCapture(*args, **kwargs): | |
1966 | """ReleaseCapture(self) -> bool""" | |
1967 | return _misc_.Joystick_ReleaseCapture(*args, **kwargs) | |
1968 | ||
1969 | def __nonzero__(self): return self.IsOk() | |
1bd55598 RD |
1970 | Joystick_swigregister = _misc_.Joystick_swigregister |
1971 | Joystick_swigregister(Joystick) | |
d55e5bfc RD |
1972 | |
1973 | wxEVT_JOY_BUTTON_DOWN = _misc_.wxEVT_JOY_BUTTON_DOWN | |
1974 | wxEVT_JOY_BUTTON_UP = _misc_.wxEVT_JOY_BUTTON_UP | |
1975 | wxEVT_JOY_MOVE = _misc_.wxEVT_JOY_MOVE | |
1976 | wxEVT_JOY_ZMOVE = _misc_.wxEVT_JOY_ZMOVE | |
1977 | class JoystickEvent(_core.Event): | |
36ed4f51 | 1978 | """Proxy of C++ JoystickEvent class""" |
1bd55598 RD |
1979 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1980 | __repr__ = _swig_repr | |
1981 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
1982 | """ |
1983 | __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, | |
1984 | int change=0) -> JoystickEvent | |
1985 | """ | |
1bd55598 | 1986 | _misc_.JoystickEvent_swiginit(self,_misc_.new_JoystickEvent(*args, **kwargs)) |
d55e5bfc RD |
1987 | def GetPosition(*args, **kwargs): |
1988 | """GetPosition(self) -> Point""" | |
1989 | return _misc_.JoystickEvent_GetPosition(*args, **kwargs) | |
1990 | ||
1991 | def GetZPosition(*args, **kwargs): | |
1992 | """GetZPosition(self) -> int""" | |
1993 | return _misc_.JoystickEvent_GetZPosition(*args, **kwargs) | |
1994 | ||
1995 | def GetButtonState(*args, **kwargs): | |
1996 | """GetButtonState(self) -> int""" | |
1997 | return _misc_.JoystickEvent_GetButtonState(*args, **kwargs) | |
1998 | ||
1999 | def GetButtonChange(*args, **kwargs): | |
2000 | """GetButtonChange(self) -> int""" | |
2001 | return _misc_.JoystickEvent_GetButtonChange(*args, **kwargs) | |
2002 | ||
2003 | def GetJoystick(*args, **kwargs): | |
2004 | """GetJoystick(self) -> int""" | |
2005 | return _misc_.JoystickEvent_GetJoystick(*args, **kwargs) | |
2006 | ||
2007 | def SetJoystick(*args, **kwargs): | |
2008 | """SetJoystick(self, int stick)""" | |
2009 | return _misc_.JoystickEvent_SetJoystick(*args, **kwargs) | |
2010 | ||
2011 | def SetButtonState(*args, **kwargs): | |
2012 | """SetButtonState(self, int state)""" | |
2013 | return _misc_.JoystickEvent_SetButtonState(*args, **kwargs) | |
2014 | ||
2015 | def SetButtonChange(*args, **kwargs): | |
2016 | """SetButtonChange(self, int change)""" | |
2017 | return _misc_.JoystickEvent_SetButtonChange(*args, **kwargs) | |
2018 | ||
2019 | def SetPosition(*args, **kwargs): | |
2020 | """SetPosition(self, Point pos)""" | |
2021 | return _misc_.JoystickEvent_SetPosition(*args, **kwargs) | |
2022 | ||
2023 | def SetZPosition(*args, **kwargs): | |
2024 | """SetZPosition(self, int zPos)""" | |
2025 | return _misc_.JoystickEvent_SetZPosition(*args, **kwargs) | |
2026 | ||
2027 | def IsButton(*args, **kwargs): | |
2028 | """IsButton(self) -> bool""" | |
2029 | return _misc_.JoystickEvent_IsButton(*args, **kwargs) | |
2030 | ||
2031 | def IsMove(*args, **kwargs): | |
2032 | """IsMove(self) -> bool""" | |
2033 | return _misc_.JoystickEvent_IsMove(*args, **kwargs) | |
2034 | ||
2035 | def IsZMove(*args, **kwargs): | |
2036 | """IsZMove(self) -> bool""" | |
2037 | return _misc_.JoystickEvent_IsZMove(*args, **kwargs) | |
2038 | ||
2039 | def ButtonDown(*args, **kwargs): | |
2040 | """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool""" | |
2041 | return _misc_.JoystickEvent_ButtonDown(*args, **kwargs) | |
2042 | ||
2043 | def ButtonUp(*args, **kwargs): | |
2044 | """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool""" | |
2045 | return _misc_.JoystickEvent_ButtonUp(*args, **kwargs) | |
2046 | ||
2047 | def ButtonIsDown(*args, **kwargs): | |
2048 | """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool""" | |
2049 | return _misc_.JoystickEvent_ButtonIsDown(*args, **kwargs) | |
2050 | ||
fef4c27a RD |
2051 | m_pos = property(GetPosition, SetPosition) |
2052 | m_zPosition = property(GetZPosition, SetZPosition) | |
2053 | m_buttonChange = property(GetButtonChange, SetButtonChange) | |
2054 | m_buttonState = property(GetButtonState, SetButtonState) | |
2055 | m_joyStick = property(GetJoystick, SetJoystick) | |
2056 | ||
1bd55598 RD |
2057 | JoystickEvent_swigregister = _misc_.JoystickEvent_swigregister |
2058 | JoystickEvent_swigregister(JoystickEvent) | |
d55e5bfc RD |
2059 | |
2060 | EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN ) | |
2061 | EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP ) | |
2062 | EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE ) | |
2063 | EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE ) | |
2064 | ||
2065 | EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN, | |
2066 | wxEVT_JOY_BUTTON_UP, | |
2067 | wxEVT_JOY_MOVE, | |
2068 | wxEVT_JOY_ZMOVE, | |
2069 | ]) | |
2070 | ||
2071 | ||
2072 | #--------------------------------------------------------------------------- | |
2073 | ||
2074 | SOUND_SYNC = _misc_.SOUND_SYNC | |
2075 | SOUND_ASYNC = _misc_.SOUND_ASYNC | |
2076 | SOUND_LOOP = _misc_.SOUND_LOOP | |
2077 | class Sound(object): | |
36ed4f51 | 2078 | """Proxy of C++ Sound class""" |
1bd55598 RD |
2079 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2080 | __repr__ = _swig_repr | |
2081 | def __init__(self, *args, **kwargs): | |
0346c964 | 2082 | """__init__(self, String fileName=EmptyString) -> Sound""" |
1bd55598 RD |
2083 | _misc_.Sound_swiginit(self,_misc_.new_Sound(*args, **kwargs)) |
2084 | __swig_destroy__ = _misc_.delete_Sound | |
2085 | __del__ = lambda self : None; | |
0346c964 RD |
2086 | def Create(*args, **kwargs): |
2087 | """Create(self, String fileName) -> bool""" | |
2088 | return _misc_.Sound_Create(*args, **kwargs) | |
2089 | ||
2090 | def CreateFromData(*args, **kwargs): | |
2091 | """CreateFromData(self, PyObject data) -> bool""" | |
2092 | return _misc_.Sound_CreateFromData(*args, **kwargs) | |
d55e5bfc RD |
2093 | |
2094 | def IsOk(*args, **kwargs): | |
2095 | """IsOk(self) -> bool""" | |
2096 | return _misc_.Sound_IsOk(*args, **kwargs) | |
2097 | ||
0346c964 | 2098 | def Play(*args, **kwargs): |
d55e5bfc | 2099 | """Play(self, unsigned int flags=SOUND_ASYNC) -> bool""" |
0346c964 | 2100 | return _misc_.Sound_Play(*args, **kwargs) |
d55e5bfc | 2101 | |
0346c964 | 2102 | def PlaySound(*args, **kwargs): |
d6c14a4c | 2103 | """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" |
0346c964 | 2104 | return _misc_.Sound_PlaySound(*args, **kwargs) |
d55e5bfc RD |
2105 | |
2106 | PlaySound = staticmethod(PlaySound) | |
2107 | def Stop(*args, **kwargs): | |
d6c14a4c | 2108 | """Stop()""" |
d55e5bfc RD |
2109 | return _misc_.Sound_Stop(*args, **kwargs) |
2110 | ||
2111 | Stop = staticmethod(Stop) | |
2112 | def __nonzero__(self): return self.IsOk() | |
1bd55598 RD |
2113 | Sound_swigregister = _misc_.Sound_swigregister |
2114 | Sound_swigregister(Sound) | |
d55e5bfc | 2115 | |
0346c964 RD |
2116 | def SoundFromData(*args, **kwargs): |
2117 | """SoundFromData(PyObject data) -> Sound""" | |
2118 | val = _misc_.new_SoundFromData(*args, **kwargs) | |
0346c964 RD |
2119 | return val |
2120 | ||
2121 | def Sound_PlaySound(*args, **kwargs): | |
1bd55598 RD |
2122 | """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool""" |
2123 | return _misc_.Sound_PlaySound(*args, **kwargs) | |
d55e5bfc | 2124 | |
1bd55598 RD |
2125 | def Sound_Stop(*args): |
2126 | """Sound_Stop()""" | |
2127 | return _misc_.Sound_Stop(*args) | |
d55e5bfc RD |
2128 | |
2129 | #--------------------------------------------------------------------------- | |
2130 | ||
2131 | MAILCAP_STANDARD = _misc_.MAILCAP_STANDARD | |
2132 | MAILCAP_NETSCAPE = _misc_.MAILCAP_NETSCAPE | |
2133 | MAILCAP_KDE = _misc_.MAILCAP_KDE | |
2134 | MAILCAP_GNOME = _misc_.MAILCAP_GNOME | |
2135 | MAILCAP_ALL = _misc_.MAILCAP_ALL | |
2136 | class FileTypeInfo(object): | |
36ed4f51 | 2137 | """Proxy of C++ FileTypeInfo class""" |
1bd55598 RD |
2138 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2139 | __repr__ = _swig_repr | |
2140 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2141 | """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo""" |
1bd55598 | 2142 | _misc_.FileTypeInfo_swiginit(self,_misc_.new_FileTypeInfo(*args, **kwargs)) |
d55e5bfc RD |
2143 | def IsValid(*args, **kwargs): |
2144 | """IsValid(self) -> bool""" | |
2145 | return _misc_.FileTypeInfo_IsValid(*args, **kwargs) | |
2146 | ||
2147 | def SetIcon(*args, **kwargs): | |
2148 | """SetIcon(self, String iconFile, int iconIndex=0)""" | |
2149 | return _misc_.FileTypeInfo_SetIcon(*args, **kwargs) | |
2150 | ||
2151 | def SetShortDesc(*args, **kwargs): | |
2152 | """SetShortDesc(self, String shortDesc)""" | |
2153 | return _misc_.FileTypeInfo_SetShortDesc(*args, **kwargs) | |
2154 | ||
2155 | def GetMimeType(*args, **kwargs): | |
2156 | """GetMimeType(self) -> String""" | |
2157 | return _misc_.FileTypeInfo_GetMimeType(*args, **kwargs) | |
2158 | ||
2159 | def GetOpenCommand(*args, **kwargs): | |
2160 | """GetOpenCommand(self) -> String""" | |
2161 | return _misc_.FileTypeInfo_GetOpenCommand(*args, **kwargs) | |
2162 | ||
2163 | def GetPrintCommand(*args, **kwargs): | |
2164 | """GetPrintCommand(self) -> String""" | |
2165 | return _misc_.FileTypeInfo_GetPrintCommand(*args, **kwargs) | |
2166 | ||
2167 | def GetShortDesc(*args, **kwargs): | |
2168 | """GetShortDesc(self) -> String""" | |
2169 | return _misc_.FileTypeInfo_GetShortDesc(*args, **kwargs) | |
2170 | ||
2171 | def GetDescription(*args, **kwargs): | |
2172 | """GetDescription(self) -> String""" | |
2173 | return _misc_.FileTypeInfo_GetDescription(*args, **kwargs) | |
2174 | ||
2175 | def GetExtensions(*args, **kwargs): | |
2176 | """GetExtensions(self) -> wxArrayString""" | |
2177 | return _misc_.FileTypeInfo_GetExtensions(*args, **kwargs) | |
2178 | ||
2179 | def GetExtensionsCount(*args, **kwargs): | |
1bd55598 | 2180 | """GetExtensionsCount(self) -> size_t""" |
d55e5bfc RD |
2181 | return _misc_.FileTypeInfo_GetExtensionsCount(*args, **kwargs) |
2182 | ||
2183 | def GetIconFile(*args, **kwargs): | |
2184 | """GetIconFile(self) -> String""" | |
2185 | return _misc_.FileTypeInfo_GetIconFile(*args, **kwargs) | |
2186 | ||
2187 | def GetIconIndex(*args, **kwargs): | |
2188 | """GetIconIndex(self) -> int""" | |
2189 | return _misc_.FileTypeInfo_GetIconIndex(*args, **kwargs) | |
2190 | ||
1bd55598 RD |
2191 | FileTypeInfo_swigregister = _misc_.FileTypeInfo_swigregister |
2192 | FileTypeInfo_swigregister(FileTypeInfo) | |
d55e5bfc RD |
2193 | |
2194 | def FileTypeInfoSequence(*args, **kwargs): | |
2195 | """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo""" | |
2196 | val = _misc_.new_FileTypeInfoSequence(*args, **kwargs) | |
d55e5bfc RD |
2197 | return val |
2198 | ||
2199 | def NullFileTypeInfo(*args, **kwargs): | |
2200 | """NullFileTypeInfo() -> FileTypeInfo""" | |
2201 | val = _misc_.new_NullFileTypeInfo(*args, **kwargs) | |
d55e5bfc RD |
2202 | return val |
2203 | ||
2204 | class FileType(object): | |
36ed4f51 | 2205 | """Proxy of C++ FileType class""" |
1bd55598 RD |
2206 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2207 | __repr__ = _swig_repr | |
2208 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2209 | """__init__(self, FileTypeInfo ftInfo) -> FileType""" |
1bd55598 RD |
2210 | _misc_.FileType_swiginit(self,_misc_.new_FileType(*args, **kwargs)) |
2211 | __swig_destroy__ = _misc_.delete_FileType | |
2212 | __del__ = lambda self : None; | |
d55e5bfc RD |
2213 | def GetMimeType(*args, **kwargs): |
2214 | """GetMimeType(self) -> PyObject""" | |
2215 | return _misc_.FileType_GetMimeType(*args, **kwargs) | |
2216 | ||
2217 | def GetMimeTypes(*args, **kwargs): | |
2218 | """GetMimeTypes(self) -> PyObject""" | |
2219 | return _misc_.FileType_GetMimeTypes(*args, **kwargs) | |
2220 | ||
2221 | def GetExtensions(*args, **kwargs): | |
2222 | """GetExtensions(self) -> PyObject""" | |
2223 | return _misc_.FileType_GetExtensions(*args, **kwargs) | |
2224 | ||
2225 | def GetIcon(*args, **kwargs): | |
2226 | """GetIcon(self) -> Icon""" | |
2227 | return _misc_.FileType_GetIcon(*args, **kwargs) | |
2228 | ||
2229 | def GetIconInfo(*args, **kwargs): | |
2230 | """GetIconInfo(self) -> PyObject""" | |
2231 | return _misc_.FileType_GetIconInfo(*args, **kwargs) | |
2232 | ||
2233 | def GetDescription(*args, **kwargs): | |
2234 | """GetDescription(self) -> PyObject""" | |
2235 | return _misc_.FileType_GetDescription(*args, **kwargs) | |
2236 | ||
2237 | def GetOpenCommand(*args, **kwargs): | |
2238 | """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" | |
2239 | return _misc_.FileType_GetOpenCommand(*args, **kwargs) | |
2240 | ||
2241 | def GetPrintCommand(*args, **kwargs): | |
2242 | """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject""" | |
2243 | return _misc_.FileType_GetPrintCommand(*args, **kwargs) | |
2244 | ||
2245 | def GetAllCommands(*args, **kwargs): | |
2246 | """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject""" | |
2247 | return _misc_.FileType_GetAllCommands(*args, **kwargs) | |
2248 | ||
2249 | def SetCommand(*args, **kwargs): | |
2250 | """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool""" | |
2251 | return _misc_.FileType_SetCommand(*args, **kwargs) | |
2252 | ||
2253 | def SetDefaultIcon(*args, **kwargs): | |
2254 | """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool""" | |
2255 | return _misc_.FileType_SetDefaultIcon(*args, **kwargs) | |
2256 | ||
2257 | def Unassociate(*args, **kwargs): | |
2258 | """Unassociate(self) -> bool""" | |
2259 | return _misc_.FileType_Unassociate(*args, **kwargs) | |
2260 | ||
2261 | def ExpandCommand(*args, **kwargs): | |
d6c14a4c | 2262 | """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" |
d55e5bfc RD |
2263 | return _misc_.FileType_ExpandCommand(*args, **kwargs) |
2264 | ||
2265 | ExpandCommand = staticmethod(ExpandCommand) | |
1bd55598 RD |
2266 | FileType_swigregister = _misc_.FileType_swigregister |
2267 | FileType_swigregister(FileType) | |
d55e5bfc RD |
2268 | |
2269 | def FileType_ExpandCommand(*args, **kwargs): | |
1bd55598 RD |
2270 | """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String""" |
2271 | return _misc_.FileType_ExpandCommand(*args, **kwargs) | |
d55e5bfc RD |
2272 | |
2273 | class MimeTypesManager(object): | |
36ed4f51 | 2274 | """Proxy of C++ MimeTypesManager class""" |
1bd55598 RD |
2275 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2276 | __repr__ = _swig_repr | |
d55e5bfc | 2277 | def IsOfType(*args, **kwargs): |
d6c14a4c | 2278 | """IsOfType(String mimeType, String wildcard) -> bool""" |
d55e5bfc RD |
2279 | return _misc_.MimeTypesManager_IsOfType(*args, **kwargs) |
2280 | ||
2281 | IsOfType = staticmethod(IsOfType) | |
1bd55598 | 2282 | def __init__(self, *args, **kwargs): |
d55e5bfc | 2283 | """__init__(self) -> MimeTypesManager""" |
1bd55598 | 2284 | _misc_.MimeTypesManager_swiginit(self,_misc_.new_MimeTypesManager(*args, **kwargs)) |
d55e5bfc RD |
2285 | def Initialize(*args, **kwargs): |
2286 | """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)""" | |
2287 | return _misc_.MimeTypesManager_Initialize(*args, **kwargs) | |
2288 | ||
2289 | def ClearData(*args, **kwargs): | |
2290 | """ClearData(self)""" | |
2291 | return _misc_.MimeTypesManager_ClearData(*args, **kwargs) | |
2292 | ||
2293 | def GetFileTypeFromExtension(*args, **kwargs): | |
2294 | """GetFileTypeFromExtension(self, String ext) -> FileType""" | |
2295 | return _misc_.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs) | |
2296 | ||
2297 | def GetFileTypeFromMimeType(*args, **kwargs): | |
2298 | """GetFileTypeFromMimeType(self, String mimeType) -> FileType""" | |
2299 | return _misc_.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs) | |
2300 | ||
2301 | def ReadMailcap(*args, **kwargs): | |
2302 | """ReadMailcap(self, String filename, bool fallback=False) -> bool""" | |
2303 | return _misc_.MimeTypesManager_ReadMailcap(*args, **kwargs) | |
2304 | ||
2305 | def ReadMimeTypes(*args, **kwargs): | |
2306 | """ReadMimeTypes(self, String filename) -> bool""" | |
2307 | return _misc_.MimeTypesManager_ReadMimeTypes(*args, **kwargs) | |
2308 | ||
2309 | def EnumAllFileTypes(*args, **kwargs): | |
2310 | """EnumAllFileTypes(self) -> PyObject""" | |
2311 | return _misc_.MimeTypesManager_EnumAllFileTypes(*args, **kwargs) | |
2312 | ||
2313 | def AddFallback(*args, **kwargs): | |
2314 | """AddFallback(self, FileTypeInfo ft)""" | |
2315 | return _misc_.MimeTypesManager_AddFallback(*args, **kwargs) | |
2316 | ||
2317 | def Associate(*args, **kwargs): | |
2318 | """Associate(self, FileTypeInfo ftInfo) -> FileType""" | |
2319 | return _misc_.MimeTypesManager_Associate(*args, **kwargs) | |
2320 | ||
2321 | def Unassociate(*args, **kwargs): | |
2322 | """Unassociate(self, FileType ft) -> bool""" | |
2323 | return _misc_.MimeTypesManager_Unassociate(*args, **kwargs) | |
2324 | ||
1bd55598 RD |
2325 | __swig_destroy__ = _misc_.delete_MimeTypesManager |
2326 | __del__ = lambda self : None; | |
2327 | MimeTypesManager_swigregister = _misc_.MimeTypesManager_swigregister | |
2328 | MimeTypesManager_swigregister(MimeTypesManager) | |
d55e5bfc RD |
2329 | TheMimeTypesManager = cvar.TheMimeTypesManager |
2330 | ||
2331 | def MimeTypesManager_IsOfType(*args, **kwargs): | |
1bd55598 RD |
2332 | """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool""" |
2333 | return _misc_.MimeTypesManager_IsOfType(*args, **kwargs) | |
d55e5bfc RD |
2334 | |
2335 | #--------------------------------------------------------------------------- | |
2336 | ||
2337 | class ArtProvider(object): | |
d6c14a4c RD |
2338 | """ |
2339 | The wx.ArtProvider class is used to customize the look of wxWidgets | |
2340 | application. When wxWidgets needs to display an icon or a bitmap (e.g. | |
2341 | in the standard file dialog), it does not use hard-coded resource but | |
2342 | asks wx.ArtProvider for it instead. This way the users can plug in | |
2343 | their own wx.ArtProvider class and easily replace standard art with | |
2344 | his/her own version. It is easy thing to do: all that is needed is | |
2345 | to derive a class from wx.ArtProvider, override it's CreateBitmap | |
2346 | method and register the provider with wx.ArtProvider.PushProvider:: | |
2347 | ||
2348 | class MyArtProvider(wx.ArtProvider): | |
2349 | def __init__(self): | |
2350 | wx.ArtProvider.__init__(self) | |
2351 | ||
2352 | def CreateBitmap(self, artid, client, size): | |
2353 | ... | |
2354 | return bmp | |
2355 | ||
d6c14a4c | 2356 | """ |
1bd55598 RD |
2357 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2358 | __repr__ = _swig_repr | |
2359 | def __init__(self, *args, **kwargs): | |
d6c14a4c RD |
2360 | """ |
2361 | __init__(self) -> ArtProvider | |
2362 | ||
2363 | The wx.ArtProvider class is used to customize the look of wxWidgets | |
2364 | application. When wxWidgets needs to display an icon or a bitmap (e.g. | |
2365 | in the standard file dialog), it does not use hard-coded resource but | |
2366 | asks wx.ArtProvider for it instead. This way the users can plug in | |
2367 | their own wx.ArtProvider class and easily replace standard art with | |
2368 | his/her own version. It is easy thing to do: all that is needed is | |
2369 | to derive a class from wx.ArtProvider, override it's CreateBitmap | |
2370 | method and register the provider with wx.ArtProvider.PushProvider:: | |
2371 | ||
2372 | class MyArtProvider(wx.ArtProvider): | |
2373 | def __init__(self): | |
2374 | wx.ArtProvider.__init__(self) | |
2375 | ||
2376 | def CreateBitmap(self, artid, client, size): | |
2377 | ... | |
2378 | return bmp | |
2379 | ||
d6c14a4c | 2380 | """ |
1bd55598 | 2381 | _misc_.ArtProvider_swiginit(self,_misc_.new_ArtProvider(*args, **kwargs)) |
d55e5bfc RD |
2382 | self._setCallbackInfo(self, ArtProvider) |
2383 | ||
1bd55598 RD |
2384 | __swig_destroy__ = _misc_.delete_ArtProvider |
2385 | __del__ = lambda self : None; | |
d55e5bfc RD |
2386 | def _setCallbackInfo(*args, **kwargs): |
2387 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
2388 | return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs) | |
2389 | ||
2390 | def PushProvider(*args, **kwargs): | |
2391 | """ | |
d6c14a4c | 2392 | PushProvider(ArtProvider provider) |
d55e5bfc RD |
2393 | |
2394 | Add new provider to the top of providers stack. | |
2395 | """ | |
2396 | return _misc_.ArtProvider_PushProvider(*args, **kwargs) | |
2397 | ||
2398 | PushProvider = staticmethod(PushProvider) | |
2399 | def PopProvider(*args, **kwargs): | |
2400 | """ | |
d6c14a4c | 2401 | PopProvider() -> bool |
d55e5bfc RD |
2402 | |
2403 | Remove latest added provider and delete it. | |
2404 | """ | |
2405 | return _misc_.ArtProvider_PopProvider(*args, **kwargs) | |
2406 | ||
2407 | PopProvider = staticmethod(PopProvider) | |
2408 | def RemoveProvider(*args, **kwargs): | |
2409 | """ | |
d6c14a4c | 2410 | RemoveProvider(ArtProvider provider) -> bool |
d55e5bfc | 2411 | |
d6c14a4c RD |
2412 | Remove provider. The provider must have been added previously! The |
2413 | provider is _not_ deleted. | |
d55e5bfc | 2414 | """ |
7e08d4ef RD |
2415 | val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs) |
2416 | args[1].thisown = 1 | |
2417 | return val | |
d55e5bfc RD |
2418 | |
2419 | RemoveProvider = staticmethod(RemoveProvider) | |
2420 | def GetBitmap(*args, **kwargs): | |
2421 | """ | |
d6c14a4c | 2422 | GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap |
d55e5bfc RD |
2423 | |
2424 | Query the providers for bitmap with given ID and return it. Return | |
2425 | wx.NullBitmap if no provider provides it. | |
2426 | """ | |
2427 | return _misc_.ArtProvider_GetBitmap(*args, **kwargs) | |
2428 | ||
2429 | GetBitmap = staticmethod(GetBitmap) | |
2430 | def GetIcon(*args, **kwargs): | |
2431 | """ | |
d6c14a4c | 2432 | GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon |
d55e5bfc | 2433 | |
d6c14a4c | 2434 | Query the providers for icon with given ID and return it. Return |
d55e5bfc RD |
2435 | wx.NullIcon if no provider provides it. |
2436 | """ | |
2437 | return _misc_.ArtProvider_GetIcon(*args, **kwargs) | |
2438 | ||
2439 | GetIcon = staticmethod(GetIcon) | |
a95f9d4f | 2440 | def GetSizeHint(*args, **kwargs): |
9c874b48 | 2441 | """ |
a95f9d4f | 2442 | GetSizeHint(String client, bool platform_dependent=False) -> Size |
9c874b48 | 2443 | |
a95f9d4f | 2444 | Get the size hint of an icon from a specific Art Client, queries the |
9c874b48 RD |
2445 | topmost provider if platform_dependent = false |
2446 | """ | |
a95f9d4f | 2447 | return _misc_.ArtProvider_GetSizeHint(*args, **kwargs) |
9c874b48 | 2448 | |
a95f9d4f | 2449 | GetSizeHint = staticmethod(GetSizeHint) |
d55e5bfc RD |
2450 | def Destroy(*args, **kwargs): |
2451 | """Destroy(self)""" | |
7e08d4ef RD |
2452 | val = _misc_.ArtProvider_Destroy(*args, **kwargs) |
2453 | args[0].thisown = 0 | |
2454 | return val | |
d55e5bfc | 2455 | |
1bd55598 RD |
2456 | ArtProvider_swigregister = _misc_.ArtProvider_swigregister |
2457 | ArtProvider_swigregister(ArtProvider) | |
d55e5bfc RD |
2458 | ART_TOOLBAR = cvar.ART_TOOLBAR |
2459 | ART_MENU = cvar.ART_MENU | |
2460 | ART_FRAME_ICON = cvar.ART_FRAME_ICON | |
2461 | ART_CMN_DIALOG = cvar.ART_CMN_DIALOG | |
2462 | ART_HELP_BROWSER = cvar.ART_HELP_BROWSER | |
2463 | ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX | |
4cf4100f | 2464 | ART_BUTTON = cvar.ART_BUTTON |
d55e5bfc RD |
2465 | ART_OTHER = cvar.ART_OTHER |
2466 | ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK | |
2467 | ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK | |
2468 | ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL | |
2469 | ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS | |
2470 | ART_HELP_BOOK = cvar.ART_HELP_BOOK | |
2471 | ART_HELP_FOLDER = cvar.ART_HELP_FOLDER | |
2472 | ART_HELP_PAGE = cvar.ART_HELP_PAGE | |
2473 | ART_GO_BACK = cvar.ART_GO_BACK | |
2474 | ART_GO_FORWARD = cvar.ART_GO_FORWARD | |
2475 | ART_GO_UP = cvar.ART_GO_UP | |
2476 | ART_GO_DOWN = cvar.ART_GO_DOWN | |
2477 | ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT | |
2478 | ART_GO_HOME = cvar.ART_GO_HOME | |
2479 | ART_FILE_OPEN = cvar.ART_FILE_OPEN | |
68350608 RD |
2480 | ART_FILE_SAVE = cvar.ART_FILE_SAVE |
2481 | ART_FILE_SAVE_AS = cvar.ART_FILE_SAVE_AS | |
d55e5bfc RD |
2482 | ART_PRINT = cvar.ART_PRINT |
2483 | ART_HELP = cvar.ART_HELP | |
2484 | ART_TIP = cvar.ART_TIP | |
2485 | ART_REPORT_VIEW = cvar.ART_REPORT_VIEW | |
2486 | ART_LIST_VIEW = cvar.ART_LIST_VIEW | |
2487 | ART_NEW_DIR = cvar.ART_NEW_DIR | |
f78cc896 RD |
2488 | ART_HARDDISK = cvar.ART_HARDDISK |
2489 | ART_FLOPPY = cvar.ART_FLOPPY | |
2490 | ART_CDROM = cvar.ART_CDROM | |
2491 | ART_REMOVABLE = cvar.ART_REMOVABLE | |
d55e5bfc | 2492 | ART_FOLDER = cvar.ART_FOLDER |
f78cc896 | 2493 | ART_FOLDER_OPEN = cvar.ART_FOLDER_OPEN |
d55e5bfc RD |
2494 | ART_GO_DIR_UP = cvar.ART_GO_DIR_UP |
2495 | ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE | |
2496 | ART_NORMAL_FILE = cvar.ART_NORMAL_FILE | |
2497 | ART_TICK_MARK = cvar.ART_TICK_MARK | |
2498 | ART_CROSS_MARK = cvar.ART_CROSS_MARK | |
2499 | ART_ERROR = cvar.ART_ERROR | |
2500 | ART_QUESTION = cvar.ART_QUESTION | |
2501 | ART_WARNING = cvar.ART_WARNING | |
2502 | ART_INFORMATION = cvar.ART_INFORMATION | |
2503 | ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE | |
68350608 RD |
2504 | ART_COPY = cvar.ART_COPY |
2505 | ART_CUT = cvar.ART_CUT | |
2506 | ART_PASTE = cvar.ART_PASTE | |
2507 | ART_DELETE = cvar.ART_DELETE | |
a187dc0b | 2508 | ART_NEW = cvar.ART_NEW |
68350608 RD |
2509 | ART_UNDO = cvar.ART_UNDO |
2510 | ART_REDO = cvar.ART_REDO | |
2511 | ART_QUIT = cvar.ART_QUIT | |
2512 | ART_FIND = cvar.ART_FIND | |
2513 | ART_FIND_AND_REPLACE = cvar.ART_FIND_AND_REPLACE | |
d55e5bfc RD |
2514 | |
2515 | def ArtProvider_PushProvider(*args, **kwargs): | |
1bd55598 | 2516 | """ |
d55e5bfc RD |
2517 | ArtProvider_PushProvider(ArtProvider provider) |
2518 | ||
2519 | Add new provider to the top of providers stack. | |
2520 | """ | |
1bd55598 | 2521 | return _misc_.ArtProvider_PushProvider(*args, **kwargs) |
d55e5bfc | 2522 | |
1bd55598 RD |
2523 | def ArtProvider_PopProvider(*args): |
2524 | """ | |
d55e5bfc RD |
2525 | ArtProvider_PopProvider() -> bool |
2526 | ||
2527 | Remove latest added provider and delete it. | |
2528 | """ | |
1bd55598 | 2529 | return _misc_.ArtProvider_PopProvider(*args) |
d55e5bfc RD |
2530 | |
2531 | def ArtProvider_RemoveProvider(*args, **kwargs): | |
1bd55598 | 2532 | """ |
d55e5bfc RD |
2533 | ArtProvider_RemoveProvider(ArtProvider provider) -> bool |
2534 | ||
d6c14a4c RD |
2535 | Remove provider. The provider must have been added previously! The |
2536 | provider is _not_ deleted. | |
d55e5bfc | 2537 | """ |
1bd55598 RD |
2538 | val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs) |
2539 | args[1].thisown = 1 | |
2540 | return val | |
d55e5bfc RD |
2541 | |
2542 | def ArtProvider_GetBitmap(*args, **kwargs): | |
1bd55598 | 2543 | """ |
d55e5bfc RD |
2544 | ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap |
2545 | ||
2546 | Query the providers for bitmap with given ID and return it. Return | |
2547 | wx.NullBitmap if no provider provides it. | |
2548 | """ | |
1bd55598 | 2549 | return _misc_.ArtProvider_GetBitmap(*args, **kwargs) |
d55e5bfc RD |
2550 | |
2551 | def ArtProvider_GetIcon(*args, **kwargs): | |
1bd55598 | 2552 | """ |
d55e5bfc RD |
2553 | ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon |
2554 | ||
d6c14a4c | 2555 | Query the providers for icon with given ID and return it. Return |
d55e5bfc RD |
2556 | wx.NullIcon if no provider provides it. |
2557 | """ | |
1bd55598 | 2558 | return _misc_.ArtProvider_GetIcon(*args, **kwargs) |
d55e5bfc | 2559 | |
a95f9d4f | 2560 | def ArtProvider_GetSizeHint(*args, **kwargs): |
1bd55598 | 2561 | """ |
a95f9d4f | 2562 | ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size |
9c874b48 | 2563 | |
a95f9d4f | 2564 | Get the size hint of an icon from a specific Art Client, queries the |
9c874b48 RD |
2565 | topmost provider if platform_dependent = false |
2566 | """ | |
1bd55598 | 2567 | return _misc_.ArtProvider_GetSizeHint(*args, **kwargs) |
9c874b48 | 2568 | |
d55e5bfc RD |
2569 | #--------------------------------------------------------------------------- |
2570 | ||
2571 | CONFIG_USE_LOCAL_FILE = _misc_.CONFIG_USE_LOCAL_FILE | |
2572 | CONFIG_USE_GLOBAL_FILE = _misc_.CONFIG_USE_GLOBAL_FILE | |
2573 | CONFIG_USE_RELATIVE_PATH = _misc_.CONFIG_USE_RELATIVE_PATH | |
2574 | CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc_.CONFIG_USE_NO_ESCAPE_CHARACTERS | |
2575 | class ConfigBase(object): | |
2576 | """ | |
2577 | wx.ConfigBase class defines the basic interface of all config | |
15817c7e RD |
2578 | classes. It can not be used by itself (it is an abstract base class) |
2579 | and you will always use one of its derivations: wx.Config or | |
2580 | wx.FileConfig. | |
2581 | ||
2582 | wx.ConfigBase organizes the items in a tree-like structure, modeled | |
2583 | after the Unix/Dos filesystem. There are groups that act like | |
2584 | directories and entries, key/value pairs that act like files. There | |
2585 | is always one current group given by the current path. As in the file | |
2586 | system case, to specify a key in the config class you must use a path | |
2587 | to it. Config classes also support the notion of the current group, | |
2588 | which makes it possible to use relative paths. | |
d55e5bfc RD |
2589 | |
2590 | Keys are pairs "key_name = value" where value may be of string, | |
2591 | integer floating point or boolean, you can not store binary data | |
15817c7e RD |
2592 | without first encoding it as a string. For performance reasons items |
2593 | should be kept small, no more than a couple kilobytes. | |
d55e5bfc RD |
2594 | |
2595 | """ | |
1bd55598 RD |
2596 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2597 | def __init__(self): raise AttributeError, "No constructor defined" | |
2598 | __repr__ = _swig_repr | |
2599 | __swig_destroy__ = _misc_.delete_ConfigBase | |
2600 | __del__ = lambda self : None; | |
d55e5bfc RD |
2601 | Type_Unknown = _misc_.ConfigBase_Type_Unknown |
2602 | Type_String = _misc_.ConfigBase_Type_String | |
2603 | Type_Boolean = _misc_.ConfigBase_Type_Boolean | |
2604 | Type_Integer = _misc_.ConfigBase_Type_Integer | |
2605 | Type_Float = _misc_.ConfigBase_Type_Float | |
2606 | def Set(*args, **kwargs): | |
2607 | """ | |
d6c14a4c | 2608 | Set(ConfigBase config) -> ConfigBase |
d55e5bfc | 2609 | |
15817c7e RD |
2610 | Sets the global config object (the one returned by Get) and returns a |
2611 | reference to the previous global config object. | |
d55e5bfc RD |
2612 | """ |
2613 | return _misc_.ConfigBase_Set(*args, **kwargs) | |
2614 | ||
2615 | Set = staticmethod(Set) | |
2616 | def Get(*args, **kwargs): | |
2617 | """ | |
d6c14a4c | 2618 | Get(bool createOnDemand=True) -> ConfigBase |
d55e5bfc RD |
2619 | |
2620 | Returns the current global config object, creating one if neccessary. | |
2621 | """ | |
2622 | return _misc_.ConfigBase_Get(*args, **kwargs) | |
2623 | ||
2624 | Get = staticmethod(Get) | |
2625 | def Create(*args, **kwargs): | |
2626 | """ | |
d6c14a4c | 2627 | Create() -> ConfigBase |
d55e5bfc RD |
2628 | |
2629 | Create and return a new global config object. This function will | |
2630 | create the "best" implementation of wx.Config available for the | |
2631 | current platform. | |
2632 | """ | |
2633 | return _misc_.ConfigBase_Create(*args, **kwargs) | |
2634 | ||
2635 | Create = staticmethod(Create) | |
2636 | def DontCreateOnDemand(*args, **kwargs): | |
2637 | """ | |
d6c14a4c | 2638 | DontCreateOnDemand() |
d55e5bfc | 2639 | |
15817c7e RD |
2640 | Should Get() try to create a new log object if there isn't a current |
2641 | one? | |
d55e5bfc RD |
2642 | """ |
2643 | return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs) | |
2644 | ||
2645 | DontCreateOnDemand = staticmethod(DontCreateOnDemand) | |
2646 | def SetPath(*args, **kwargs): | |
2647 | """ | |
2648 | SetPath(self, String path) | |
2649 | ||
15817c7e RD |
2650 | Set current path: if the first character is '/', it's the absolute |
2651 | path, otherwise it's a relative path. '..' is supported. If the | |
2652 | strPath doesn't exist it is created. | |
d55e5bfc RD |
2653 | """ |
2654 | return _misc_.ConfigBase_SetPath(*args, **kwargs) | |
2655 | ||
2656 | def GetPath(*args, **kwargs): | |
2657 | """ | |
2658 | GetPath(self) -> String | |
2659 | ||
2660 | Retrieve the current path (always as absolute path) | |
2661 | """ | |
2662 | return _misc_.ConfigBase_GetPath(*args, **kwargs) | |
2663 | ||
2664 | def GetFirstGroup(*args, **kwargs): | |
2665 | """ | |
2666 | GetFirstGroup() -> (more, value, index) | |
2667 | ||
15817c7e RD |
2668 | Allows enumerating the subgroups in a config object. Returns a tuple |
2669 | containing a flag indicating there are more items, the name of the | |
2670 | current item, and an index to pass to GetNextGroup to fetch the next | |
2671 | item. | |
d55e5bfc RD |
2672 | """ |
2673 | return _misc_.ConfigBase_GetFirstGroup(*args, **kwargs) | |
2674 | ||
2675 | def GetNextGroup(*args, **kwargs): | |
2676 | """ | |
2677 | GetNextGroup(long index) -> (more, value, index) | |
2678 | ||
15817c7e RD |
2679 | Allows enumerating the subgroups in a config object. Returns a tuple |
2680 | containing a flag indicating there are more items, the name of the | |
2681 | current item, and an index to pass to GetNextGroup to fetch the next | |
2682 | item. | |
d55e5bfc RD |
2683 | """ |
2684 | return _misc_.ConfigBase_GetNextGroup(*args, **kwargs) | |
2685 | ||
2686 | def GetFirstEntry(*args, **kwargs): | |
2687 | """ | |
2688 | GetFirstEntry() -> (more, value, index) | |
2689 | ||
2690 | Allows enumerating the entries in the current group in a config | |
15817c7e RD |
2691 | object. Returns a tuple containing a flag indicating there are more |
2692 | items, the name of the current item, and an index to pass to | |
d55e5bfc RD |
2693 | GetNextGroup to fetch the next item. |
2694 | """ | |
2695 | return _misc_.ConfigBase_GetFirstEntry(*args, **kwargs) | |
2696 | ||
2697 | def GetNextEntry(*args, **kwargs): | |
2698 | """ | |
2699 | GetNextEntry(long index) -> (more, value, index) | |
2700 | ||
2701 | Allows enumerating the entries in the current group in a config | |
15817c7e RD |
2702 | object. Returns a tuple containing a flag indicating there are more |
2703 | items, the name of the current item, and an index to pass to | |
d55e5bfc RD |
2704 | GetNextGroup to fetch the next item. |
2705 | """ | |
2706 | return _misc_.ConfigBase_GetNextEntry(*args, **kwargs) | |
2707 | ||
2708 | def GetNumberOfEntries(*args, **kwargs): | |
2709 | """ | |
2710 | GetNumberOfEntries(self, bool recursive=False) -> size_t | |
2711 | ||
15817c7e RD |
2712 | Get the number of entries in the current group, with or without its |
2713 | subgroups. | |
d55e5bfc RD |
2714 | """ |
2715 | return _misc_.ConfigBase_GetNumberOfEntries(*args, **kwargs) | |
2716 | ||
2717 | def GetNumberOfGroups(*args, **kwargs): | |
2718 | """ | |
2719 | GetNumberOfGroups(self, bool recursive=False) -> size_t | |
2720 | ||
15817c7e RD |
2721 | Get the number of subgroups in the current group, with or without its |
2722 | subgroups. | |
d55e5bfc RD |
2723 | """ |
2724 | return _misc_.ConfigBase_GetNumberOfGroups(*args, **kwargs) | |
2725 | ||
2726 | def HasGroup(*args, **kwargs): | |
2727 | """ | |
2728 | HasGroup(self, String name) -> bool | |
2729 | ||
2730 | Returns True if the group by this name exists | |
2731 | """ | |
2732 | return _misc_.ConfigBase_HasGroup(*args, **kwargs) | |
2733 | ||
2734 | def HasEntry(*args, **kwargs): | |
2735 | """ | |
2736 | HasEntry(self, String name) -> bool | |
2737 | ||
2738 | Returns True if the entry by this name exists | |
2739 | """ | |
2740 | return _misc_.ConfigBase_HasEntry(*args, **kwargs) | |
2741 | ||
2742 | def Exists(*args, **kwargs): | |
2743 | """ | |
2744 | Exists(self, String name) -> bool | |
2745 | ||
2746 | Returns True if either a group or an entry with a given name exists | |
2747 | """ | |
2748 | return _misc_.ConfigBase_Exists(*args, **kwargs) | |
2749 | ||
2750 | def GetEntryType(*args, **kwargs): | |
2751 | """ | |
2752 | GetEntryType(self, String name) -> int | |
2753 | ||
2754 | Get the type of the entry. Returns one of the wx.Config.Type_XXX values. | |
2755 | """ | |
2756 | return _misc_.ConfigBase_GetEntryType(*args, **kwargs) | |
2757 | ||
2758 | def Read(*args, **kwargs): | |
2759 | """ | |
2760 | Read(self, String key, String defaultVal=EmptyString) -> String | |
2761 | ||
2762 | Returns the value of key if it exists, defaultVal otherwise. | |
2763 | """ | |
2764 | return _misc_.ConfigBase_Read(*args, **kwargs) | |
2765 | ||
2766 | def ReadInt(*args, **kwargs): | |
2767 | """ | |
2768 | ReadInt(self, String key, long defaultVal=0) -> long | |
2769 | ||
2770 | Returns the value of key if it exists, defaultVal otherwise. | |
2771 | """ | |
2772 | return _misc_.ConfigBase_ReadInt(*args, **kwargs) | |
2773 | ||
2774 | def ReadFloat(*args, **kwargs): | |
2775 | """ | |
2776 | ReadFloat(self, String key, double defaultVal=0.0) -> double | |
2777 | ||
2778 | Returns the value of key if it exists, defaultVal otherwise. | |
2779 | """ | |
2780 | return _misc_.ConfigBase_ReadFloat(*args, **kwargs) | |
2781 | ||
2782 | def ReadBool(*args, **kwargs): | |
2783 | """ | |
2784 | ReadBool(self, String key, bool defaultVal=False) -> bool | |
2785 | ||
2786 | Returns the value of key if it exists, defaultVal otherwise. | |
2787 | """ | |
2788 | return _misc_.ConfigBase_ReadBool(*args, **kwargs) | |
2789 | ||
2790 | def Write(*args, **kwargs): | |
2791 | """ | |
2792 | Write(self, String key, String value) -> bool | |
2793 | ||
2794 | write the value (return True on success) | |
2795 | """ | |
2796 | return _misc_.ConfigBase_Write(*args, **kwargs) | |
2797 | ||
2798 | def WriteInt(*args, **kwargs): | |
2799 | """ | |
2800 | WriteInt(self, String key, long value) -> bool | |
2801 | ||
2802 | write the value (return True on success) | |
2803 | """ | |
2804 | return _misc_.ConfigBase_WriteInt(*args, **kwargs) | |
2805 | ||
2806 | def WriteFloat(*args, **kwargs): | |
2807 | """ | |
2808 | WriteFloat(self, String key, double value) -> bool | |
2809 | ||
2810 | write the value (return True on success) | |
2811 | """ | |
2812 | return _misc_.ConfigBase_WriteFloat(*args, **kwargs) | |
2813 | ||
2814 | def WriteBool(*args, **kwargs): | |
2815 | """ | |
2816 | WriteBool(self, String key, bool value) -> bool | |
2817 | ||
2818 | write the value (return True on success) | |
2819 | """ | |
2820 | return _misc_.ConfigBase_WriteBool(*args, **kwargs) | |
2821 | ||
2822 | def Flush(*args, **kwargs): | |
2823 | """ | |
2824 | Flush(self, bool currentOnly=False) -> bool | |
2825 | ||
2826 | permanently writes all changes | |
2827 | """ | |
2828 | return _misc_.ConfigBase_Flush(*args, **kwargs) | |
2829 | ||
2830 | def RenameEntry(*args, **kwargs): | |
2831 | """ | |
2832 | RenameEntry(self, String oldName, String newName) -> bool | |
2833 | ||
2834 | Rename an entry. Returns False on failure (probably because the new | |
2835 | name is already taken by an existing entry) | |
2836 | """ | |
2837 | return _misc_.ConfigBase_RenameEntry(*args, **kwargs) | |
2838 | ||
2839 | def RenameGroup(*args, **kwargs): | |
2840 | """ | |
2841 | RenameGroup(self, String oldName, String newName) -> bool | |
2842 | ||
15817c7e | 2843 | Rename a group. Returns False on failure (probably because the new |
d55e5bfc RD |
2844 | name is already taken by an existing entry) |
2845 | """ | |
2846 | return _misc_.ConfigBase_RenameGroup(*args, **kwargs) | |
2847 | ||
2848 | def DeleteEntry(*args, **kwargs): | |
2849 | """ | |
2850 | DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool | |
2851 | ||
15817c7e RD |
2852 | Deletes the specified entry and the group it belongs to if it was the |
2853 | last key in it and the second parameter is True | |
d55e5bfc RD |
2854 | """ |
2855 | return _misc_.ConfigBase_DeleteEntry(*args, **kwargs) | |
2856 | ||
2857 | def DeleteGroup(*args, **kwargs): | |
2858 | """ | |
2859 | DeleteGroup(self, String key) -> bool | |
2860 | ||
2861 | Delete the group (with all subgroups) | |
2862 | """ | |
2863 | return _misc_.ConfigBase_DeleteGroup(*args, **kwargs) | |
2864 | ||
2865 | def DeleteAll(*args, **kwargs): | |
2866 | """ | |
2867 | DeleteAll(self) -> bool | |
2868 | ||
2869 | Delete the whole underlying object (disk file, registry key, ...) | |
d6c14a4c | 2870 | primarly intended for use by deinstallation routine. |
d55e5bfc RD |
2871 | """ |
2872 | return _misc_.ConfigBase_DeleteAll(*args, **kwargs) | |
2873 | ||
2874 | def SetExpandEnvVars(*args, **kwargs): | |
2875 | """ | |
2876 | SetExpandEnvVars(self, bool doIt=True) | |
2877 | ||
15817c7e RD |
2878 | We can automatically expand environment variables in the config |
2879 | entries this option is on by default, you can turn it on/off at any | |
2880 | time) | |
d55e5bfc RD |
2881 | """ |
2882 | return _misc_.ConfigBase_SetExpandEnvVars(*args, **kwargs) | |
2883 | ||
2884 | def IsExpandingEnvVars(*args, **kwargs): | |
2885 | """ | |
2886 | IsExpandingEnvVars(self) -> bool | |
2887 | ||
2888 | Are we currently expanding environment variables? | |
2889 | """ | |
2890 | return _misc_.ConfigBase_IsExpandingEnvVars(*args, **kwargs) | |
2891 | ||
2892 | def SetRecordDefaults(*args, **kwargs): | |
2893 | """ | |
2894 | SetRecordDefaults(self, bool doIt=True) | |
2895 | ||
2896 | Set whether the config objec should record default values. | |
2897 | """ | |
2898 | return _misc_.ConfigBase_SetRecordDefaults(*args, **kwargs) | |
2899 | ||
2900 | def IsRecordingDefaults(*args, **kwargs): | |
2901 | """ | |
2902 | IsRecordingDefaults(self) -> bool | |
2903 | ||
2904 | Are we currently recording default values? | |
2905 | """ | |
2906 | return _misc_.ConfigBase_IsRecordingDefaults(*args, **kwargs) | |
2907 | ||
2908 | def ExpandEnvVars(*args, **kwargs): | |
2909 | """ | |
2910 | ExpandEnvVars(self, String str) -> String | |
2911 | ||
2912 | Expand any environment variables in str and return the result | |
2913 | """ | |
2914 | return _misc_.ConfigBase_ExpandEnvVars(*args, **kwargs) | |
2915 | ||
2916 | def GetAppName(*args, **kwargs): | |
2917 | """GetAppName(self) -> String""" | |
2918 | return _misc_.ConfigBase_GetAppName(*args, **kwargs) | |
2919 | ||
2920 | def GetVendorName(*args, **kwargs): | |
2921 | """GetVendorName(self) -> String""" | |
2922 | return _misc_.ConfigBase_GetVendorName(*args, **kwargs) | |
2923 | ||
2924 | def SetAppName(*args, **kwargs): | |
2925 | """SetAppName(self, String appName)""" | |
2926 | return _misc_.ConfigBase_SetAppName(*args, **kwargs) | |
2927 | ||
2928 | def SetVendorName(*args, **kwargs): | |
2929 | """SetVendorName(self, String vendorName)""" | |
2930 | return _misc_.ConfigBase_SetVendorName(*args, **kwargs) | |
2931 | ||
2932 | def SetStyle(*args, **kwargs): | |
2933 | """SetStyle(self, long style)""" | |
2934 | return _misc_.ConfigBase_SetStyle(*args, **kwargs) | |
2935 | ||
2936 | def GetStyle(*args, **kwargs): | |
2937 | """GetStyle(self) -> long""" | |
2938 | return _misc_.ConfigBase_GetStyle(*args, **kwargs) | |
2939 | ||
1bd55598 RD |
2940 | ConfigBase_swigregister = _misc_.ConfigBase_swigregister |
2941 | ConfigBase_swigregister(ConfigBase) | |
d55e5bfc RD |
2942 | |
2943 | def ConfigBase_Set(*args, **kwargs): | |
1bd55598 | 2944 | """ |
d55e5bfc RD |
2945 | ConfigBase_Set(ConfigBase config) -> ConfigBase |
2946 | ||
15817c7e RD |
2947 | Sets the global config object (the one returned by Get) and returns a |
2948 | reference to the previous global config object. | |
d55e5bfc | 2949 | """ |
1bd55598 | 2950 | return _misc_.ConfigBase_Set(*args, **kwargs) |
d55e5bfc RD |
2951 | |
2952 | def ConfigBase_Get(*args, **kwargs): | |
1bd55598 | 2953 | """ |
d55e5bfc RD |
2954 | ConfigBase_Get(bool createOnDemand=True) -> ConfigBase |
2955 | ||
2956 | Returns the current global config object, creating one if neccessary. | |
2957 | """ | |
1bd55598 | 2958 | return _misc_.ConfigBase_Get(*args, **kwargs) |
d55e5bfc | 2959 | |
1bd55598 RD |
2960 | def ConfigBase_Create(*args): |
2961 | """ | |
d55e5bfc RD |
2962 | ConfigBase_Create() -> ConfigBase |
2963 | ||
2964 | Create and return a new global config object. This function will | |
2965 | create the "best" implementation of wx.Config available for the | |
2966 | current platform. | |
2967 | """ | |
1bd55598 | 2968 | return _misc_.ConfigBase_Create(*args) |
d55e5bfc | 2969 | |
1bd55598 RD |
2970 | def ConfigBase_DontCreateOnDemand(*args): |
2971 | """ | |
d55e5bfc RD |
2972 | ConfigBase_DontCreateOnDemand() |
2973 | ||
15817c7e RD |
2974 | Should Get() try to create a new log object if there isn't a current |
2975 | one? | |
d55e5bfc | 2976 | """ |
1bd55598 | 2977 | return _misc_.ConfigBase_DontCreateOnDemand(*args) |
d55e5bfc RD |
2978 | |
2979 | class Config(ConfigBase): | |
2980 | """ | |
2981 | This ConfigBase-derived class will use the registry on Windows, | |
2982 | and will be a wx.FileConfig on other platforms. | |
2983 | """ | |
1bd55598 RD |
2984 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2985 | __repr__ = _swig_repr | |
2986 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2987 | """ |
2988 | __init__(self, String appName=EmptyString, String vendorName=EmptyString, | |
2989 | String localFilename=EmptyString, String globalFilename=EmptyString, | |
2990 | long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config | |
2991 | """ | |
1bd55598 RD |
2992 | _misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs)) |
2993 | __swig_destroy__ = _misc_.delete_Config | |
2994 | __del__ = lambda self : None; | |
2995 | Config_swigregister = _misc_.Config_swigregister | |
2996 | Config_swigregister(Config) | |
d55e5bfc RD |
2997 | |
2998 | class FileConfig(ConfigBase): | |
2999 | """This config class will use a file for storage on all platforms.""" | |
1bd55598 RD |
3000 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3001 | __repr__ = _swig_repr | |
3002 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
3003 | """ |
3004 | __init__(self, String appName=EmptyString, String vendorName=EmptyString, | |
3005 | String localFilename=EmptyString, String globalFilename=EmptyString, | |
3006 | long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig | |
3007 | """ | |
1bd55598 RD |
3008 | _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args, **kwargs)) |
3009 | __swig_destroy__ = _misc_.delete_FileConfig | |
3010 | __del__ = lambda self : None; | |
3011 | FileConfig_swigregister = _misc_.FileConfig_swigregister | |
3012 | FileConfig_swigregister(FileConfig) | |
d55e5bfc RD |
3013 | |
3014 | class ConfigPathChanger(object): | |
3015 | """ | |
15817c7e RD |
3016 | A handy little class which changes current path to the path of given |
3017 | entry and restores it in the destructoir: so if you declare a local | |
3018 | variable of this type, you work in the entry directory and the path is | |
3019 | automatically restored when the function returns. | |
d55e5bfc | 3020 | """ |
1bd55598 RD |
3021 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3022 | __repr__ = _swig_repr | |
3023 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3024 | """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger""" |
1bd55598 RD |
3025 | _misc_.ConfigPathChanger_swiginit(self,_misc_.new_ConfigPathChanger(*args, **kwargs)) |
3026 | __swig_destroy__ = _misc_.delete_ConfigPathChanger | |
3027 | __del__ = lambda self : None; | |
d55e5bfc RD |
3028 | def Name(*args, **kwargs): |
3029 | """ | |
3030 | Name(self) -> String | |
3031 | ||
3032 | Get the key name | |
3033 | """ | |
3034 | return _misc_.ConfigPathChanger_Name(*args, **kwargs) | |
3035 | ||
1bd55598 RD |
3036 | ConfigPathChanger_swigregister = _misc_.ConfigPathChanger_swigregister |
3037 | ConfigPathChanger_swigregister(ConfigPathChanger) | |
d55e5bfc RD |
3038 | |
3039 | ||
3040 | def ExpandEnvVars(*args, **kwargs): | |
1bd55598 | 3041 | """ |
d55e5bfc RD |
3042 | ExpandEnvVars(String sz) -> String |
3043 | ||
3044 | Replace environment variables ($SOMETHING) with their values. The | |
15817c7e RD |
3045 | format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric |
3046 | characters and '_' only. '$' must be escaped ('\$') in order to be | |
3047 | taken literally. | |
d55e5bfc | 3048 | """ |
1bd55598 | 3049 | return _misc_.ExpandEnvVars(*args, **kwargs) |
d55e5bfc RD |
3050 | #--------------------------------------------------------------------------- |
3051 | ||
3052 | class DateTime(object): | |
36ed4f51 | 3053 | """Proxy of C++ DateTime class""" |
1bd55598 RD |
3054 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3055 | __repr__ = _swig_repr | |
d55e5bfc RD |
3056 | Local = _misc_.DateTime_Local |
3057 | GMT_12 = _misc_.DateTime_GMT_12 | |
3058 | GMT_11 = _misc_.DateTime_GMT_11 | |
3059 | GMT_10 = _misc_.DateTime_GMT_10 | |
3060 | GMT_9 = _misc_.DateTime_GMT_9 | |
3061 | GMT_8 = _misc_.DateTime_GMT_8 | |
3062 | GMT_7 = _misc_.DateTime_GMT_7 | |
3063 | GMT_6 = _misc_.DateTime_GMT_6 | |
3064 | GMT_5 = _misc_.DateTime_GMT_5 | |
3065 | GMT_4 = _misc_.DateTime_GMT_4 | |
3066 | GMT_3 = _misc_.DateTime_GMT_3 | |
3067 | GMT_2 = _misc_.DateTime_GMT_2 | |
3068 | GMT_1 = _misc_.DateTime_GMT_1 | |
3069 | GMT0 = _misc_.DateTime_GMT0 | |
3070 | GMT1 = _misc_.DateTime_GMT1 | |
3071 | GMT2 = _misc_.DateTime_GMT2 | |
3072 | GMT3 = _misc_.DateTime_GMT3 | |
3073 | GMT4 = _misc_.DateTime_GMT4 | |
3074 | GMT5 = _misc_.DateTime_GMT5 | |
3075 | GMT6 = _misc_.DateTime_GMT6 | |
3076 | GMT7 = _misc_.DateTime_GMT7 | |
3077 | GMT8 = _misc_.DateTime_GMT8 | |
3078 | GMT9 = _misc_.DateTime_GMT9 | |
3079 | GMT10 = _misc_.DateTime_GMT10 | |
3080 | GMT11 = _misc_.DateTime_GMT11 | |
3081 | GMT12 = _misc_.DateTime_GMT12 | |
3082 | WET = _misc_.DateTime_WET | |
3083 | WEST = _misc_.DateTime_WEST | |
3084 | CET = _misc_.DateTime_CET | |
3085 | CEST = _misc_.DateTime_CEST | |
3086 | EET = _misc_.DateTime_EET | |
3087 | EEST = _misc_.DateTime_EEST | |
3088 | MSK = _misc_.DateTime_MSK | |
3089 | MSD = _misc_.DateTime_MSD | |
3090 | AST = _misc_.DateTime_AST | |
3091 | ADT = _misc_.DateTime_ADT | |
3092 | EST = _misc_.DateTime_EST | |
3093 | EDT = _misc_.DateTime_EDT | |
3094 | CST = _misc_.DateTime_CST | |
3095 | CDT = _misc_.DateTime_CDT | |
3096 | MST = _misc_.DateTime_MST | |
3097 | MDT = _misc_.DateTime_MDT | |
3098 | PST = _misc_.DateTime_PST | |
3099 | PDT = _misc_.DateTime_PDT | |
3100 | HST = _misc_.DateTime_HST | |
3101 | AKST = _misc_.DateTime_AKST | |
3102 | AKDT = _misc_.DateTime_AKDT | |
3103 | A_WST = _misc_.DateTime_A_WST | |
3104 | A_CST = _misc_.DateTime_A_CST | |
3105 | A_EST = _misc_.DateTime_A_EST | |
3106 | A_ESST = _misc_.DateTime_A_ESST | |
3107 | UTC = _misc_.DateTime_UTC | |
3108 | Gregorian = _misc_.DateTime_Gregorian | |
3109 | Julian = _misc_.DateTime_Julian | |
3110 | Gr_Unknown = _misc_.DateTime_Gr_Unknown | |
3111 | Gr_Standard = _misc_.DateTime_Gr_Standard | |
3112 | Gr_Alaska = _misc_.DateTime_Gr_Alaska | |
3113 | Gr_Albania = _misc_.DateTime_Gr_Albania | |
3114 | Gr_Austria = _misc_.DateTime_Gr_Austria | |
3115 | Gr_Austria_Brixen = _misc_.DateTime_Gr_Austria_Brixen | |
3116 | Gr_Austria_Salzburg = _misc_.DateTime_Gr_Austria_Salzburg | |
3117 | Gr_Austria_Tyrol = _misc_.DateTime_Gr_Austria_Tyrol | |
3118 | Gr_Austria_Carinthia = _misc_.DateTime_Gr_Austria_Carinthia | |
3119 | Gr_Austria_Styria = _misc_.DateTime_Gr_Austria_Styria | |
3120 | Gr_Belgium = _misc_.DateTime_Gr_Belgium | |
3121 | Gr_Bulgaria = _misc_.DateTime_Gr_Bulgaria | |
3122 | Gr_Bulgaria_1 = _misc_.DateTime_Gr_Bulgaria_1 | |
3123 | Gr_Bulgaria_2 = _misc_.DateTime_Gr_Bulgaria_2 | |
3124 | Gr_Bulgaria_3 = _misc_.DateTime_Gr_Bulgaria_3 | |
3125 | Gr_Canada = _misc_.DateTime_Gr_Canada | |
3126 | Gr_China = _misc_.DateTime_Gr_China | |
3127 | Gr_China_1 = _misc_.DateTime_Gr_China_1 | |
3128 | Gr_China_2 = _misc_.DateTime_Gr_China_2 | |
3129 | Gr_Czechoslovakia = _misc_.DateTime_Gr_Czechoslovakia | |
3130 | Gr_Denmark = _misc_.DateTime_Gr_Denmark | |
3131 | Gr_Egypt = _misc_.DateTime_Gr_Egypt | |
3132 | Gr_Estonia = _misc_.DateTime_Gr_Estonia | |
3133 | Gr_Finland = _misc_.DateTime_Gr_Finland | |
3134 | Gr_France = _misc_.DateTime_Gr_France | |
3135 | Gr_France_Alsace = _misc_.DateTime_Gr_France_Alsace | |
3136 | Gr_France_Lorraine = _misc_.DateTime_Gr_France_Lorraine | |
3137 | Gr_France_Strasbourg = _misc_.DateTime_Gr_France_Strasbourg | |
3138 | Gr_Germany = _misc_.DateTime_Gr_Germany | |
3139 | Gr_Germany_Catholic = _misc_.DateTime_Gr_Germany_Catholic | |
3140 | Gr_Germany_Prussia = _misc_.DateTime_Gr_Germany_Prussia | |
3141 | Gr_Germany_Protestant = _misc_.DateTime_Gr_Germany_Protestant | |
3142 | Gr_GreatBritain = _misc_.DateTime_Gr_GreatBritain | |
3143 | Gr_Greece = _misc_.DateTime_Gr_Greece | |
3144 | Gr_Hungary = _misc_.DateTime_Gr_Hungary | |
3145 | Gr_Ireland = _misc_.DateTime_Gr_Ireland | |
3146 | Gr_Italy = _misc_.DateTime_Gr_Italy | |
3147 | Gr_Japan = _misc_.DateTime_Gr_Japan | |
3148 | Gr_Japan_1 = _misc_.DateTime_Gr_Japan_1 | |
3149 | Gr_Japan_2 = _misc_.DateTime_Gr_Japan_2 | |
3150 | Gr_Japan_3 = _misc_.DateTime_Gr_Japan_3 | |
3151 | Gr_Latvia = _misc_.DateTime_Gr_Latvia | |
3152 | Gr_Lithuania = _misc_.DateTime_Gr_Lithuania | |
3153 | Gr_Luxemburg = _misc_.DateTime_Gr_Luxemburg | |
3154 | Gr_Netherlands = _misc_.DateTime_Gr_Netherlands | |
3155 | Gr_Netherlands_Groningen = _misc_.DateTime_Gr_Netherlands_Groningen | |
3156 | Gr_Netherlands_Gelderland = _misc_.DateTime_Gr_Netherlands_Gelderland | |
3157 | Gr_Netherlands_Utrecht = _misc_.DateTime_Gr_Netherlands_Utrecht | |
3158 | Gr_Netherlands_Friesland = _misc_.DateTime_Gr_Netherlands_Friesland | |
3159 | Gr_Norway = _misc_.DateTime_Gr_Norway | |
3160 | Gr_Poland = _misc_.DateTime_Gr_Poland | |
3161 | Gr_Portugal = _misc_.DateTime_Gr_Portugal | |
3162 | Gr_Romania = _misc_.DateTime_Gr_Romania | |
3163 | Gr_Russia = _misc_.DateTime_Gr_Russia | |
3164 | Gr_Scotland = _misc_.DateTime_Gr_Scotland | |
3165 | Gr_Spain = _misc_.DateTime_Gr_Spain | |
3166 | Gr_Sweden = _misc_.DateTime_Gr_Sweden | |
3167 | Gr_Switzerland = _misc_.DateTime_Gr_Switzerland | |
3168 | Gr_Switzerland_Catholic = _misc_.DateTime_Gr_Switzerland_Catholic | |
3169 | Gr_Switzerland_Protestant = _misc_.DateTime_Gr_Switzerland_Protestant | |
3170 | Gr_Turkey = _misc_.DateTime_Gr_Turkey | |
3171 | Gr_USA = _misc_.DateTime_Gr_USA | |
3172 | Gr_Wales = _misc_.DateTime_Gr_Wales | |
3173 | Gr_Yugoslavia = _misc_.DateTime_Gr_Yugoslavia | |
3174 | Country_Unknown = _misc_.DateTime_Country_Unknown | |
3175 | Country_Default = _misc_.DateTime_Country_Default | |
3176 | Country_WesternEurope_Start = _misc_.DateTime_Country_WesternEurope_Start | |
3177 | Country_EEC = _misc_.DateTime_Country_EEC | |
3178 | France = _misc_.DateTime_France | |
3179 | Germany = _misc_.DateTime_Germany | |
3180 | UK = _misc_.DateTime_UK | |
3181 | Country_WesternEurope_End = _misc_.DateTime_Country_WesternEurope_End | |
3182 | Russia = _misc_.DateTime_Russia | |
3183 | USA = _misc_.DateTime_USA | |
3184 | Jan = _misc_.DateTime_Jan | |
3185 | Feb = _misc_.DateTime_Feb | |
3186 | Mar = _misc_.DateTime_Mar | |
3187 | Apr = _misc_.DateTime_Apr | |
3188 | May = _misc_.DateTime_May | |
3189 | Jun = _misc_.DateTime_Jun | |
3190 | Jul = _misc_.DateTime_Jul | |
3191 | Aug = _misc_.DateTime_Aug | |
3192 | Sep = _misc_.DateTime_Sep | |
3193 | Oct = _misc_.DateTime_Oct | |
3194 | Nov = _misc_.DateTime_Nov | |
3195 | Dec = _misc_.DateTime_Dec | |
3196 | Inv_Month = _misc_.DateTime_Inv_Month | |
3197 | Sun = _misc_.DateTime_Sun | |
3198 | Mon = _misc_.DateTime_Mon | |
3199 | Tue = _misc_.DateTime_Tue | |
3200 | Wed = _misc_.DateTime_Wed | |
3201 | Thu = _misc_.DateTime_Thu | |
3202 | Fri = _misc_.DateTime_Fri | |
3203 | Sat = _misc_.DateTime_Sat | |
3204 | Inv_WeekDay = _misc_.DateTime_Inv_WeekDay | |
3205 | Inv_Year = _misc_.DateTime_Inv_Year | |
3206 | Name_Full = _misc_.DateTime_Name_Full | |
3207 | Name_Abbr = _misc_.DateTime_Name_Abbr | |
3208 | Default_First = _misc_.DateTime_Default_First | |
3209 | Monday_First = _misc_.DateTime_Monday_First | |
3210 | Sunday_First = _misc_.DateTime_Sunday_First | |
3211 | def SetCountry(*args, **kwargs): | |
d6c14a4c | 3212 | """SetCountry(int country)""" |
d55e5bfc RD |
3213 | return _misc_.DateTime_SetCountry(*args, **kwargs) |
3214 | ||
3215 | SetCountry = staticmethod(SetCountry) | |
3216 | def GetCountry(*args, **kwargs): | |
d6c14a4c | 3217 | """GetCountry() -> int""" |
d55e5bfc RD |
3218 | return _misc_.DateTime_GetCountry(*args, **kwargs) |
3219 | ||
3220 | GetCountry = staticmethod(GetCountry) | |
3221 | def IsWestEuropeanCountry(*args, **kwargs): | |
d6c14a4c | 3222 | """IsWestEuropeanCountry(int country=Country_Default) -> bool""" |
d55e5bfc RD |
3223 | return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs) |
3224 | ||
3225 | IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry) | |
3226 | def GetCurrentYear(*args, **kwargs): | |
d6c14a4c | 3227 | """GetCurrentYear(int cal=Gregorian) -> int""" |
d55e5bfc RD |
3228 | return _misc_.DateTime_GetCurrentYear(*args, **kwargs) |
3229 | ||
3230 | GetCurrentYear = staticmethod(GetCurrentYear) | |
3231 | def ConvertYearToBC(*args, **kwargs): | |
d6c14a4c | 3232 | """ConvertYearToBC(int year) -> int""" |
d55e5bfc RD |
3233 | return _misc_.DateTime_ConvertYearToBC(*args, **kwargs) |
3234 | ||
3235 | ConvertYearToBC = staticmethod(ConvertYearToBC) | |
3236 | def GetCurrentMonth(*args, **kwargs): | |
d6c14a4c | 3237 | """GetCurrentMonth(int cal=Gregorian) -> int""" |
d55e5bfc RD |
3238 | return _misc_.DateTime_GetCurrentMonth(*args, **kwargs) |
3239 | ||
3240 | GetCurrentMonth = staticmethod(GetCurrentMonth) | |
3241 | def IsLeapYear(*args, **kwargs): | |
d6c14a4c | 3242 | """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" |
d55e5bfc RD |
3243 | return _misc_.DateTime_IsLeapYear(*args, **kwargs) |
3244 | ||
3245 | IsLeapYear = staticmethod(IsLeapYear) | |
3246 | def GetCentury(*args, **kwargs): | |
d6c14a4c | 3247 | """GetCentury(int year=Inv_Year) -> int""" |
d55e5bfc RD |
3248 | return _misc_.DateTime_GetCentury(*args, **kwargs) |
3249 | ||
3250 | GetCentury = staticmethod(GetCentury) | |
3251 | def GetNumberOfDaysinYear(*args, **kwargs): | |
d6c14a4c | 3252 | """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" |
d55e5bfc RD |
3253 | return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs) |
3254 | ||
3255 | GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear) | |
3256 | def GetNumberOfDaysInMonth(*args, **kwargs): | |
d6c14a4c | 3257 | """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" |
d55e5bfc RD |
3258 | return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) |
3259 | ||
3260 | GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth) | |
3261 | def GetMonthName(*args, **kwargs): | |
d6c14a4c | 3262 | """GetMonthName(int month, int flags=Name_Full) -> String""" |
d55e5bfc RD |
3263 | return _misc_.DateTime_GetMonthName(*args, **kwargs) |
3264 | ||
3265 | GetMonthName = staticmethod(GetMonthName) | |
3266 | def GetWeekDayName(*args, **kwargs): | |
d6c14a4c | 3267 | """GetWeekDayName(int weekday, int flags=Name_Full) -> String""" |
d55e5bfc RD |
3268 | return _misc_.DateTime_GetWeekDayName(*args, **kwargs) |
3269 | ||
3270 | GetWeekDayName = staticmethod(GetWeekDayName) | |
3271 | def GetAmPmStrings(*args, **kwargs): | |
a001823c RD |
3272 | """ |
3273 | GetAmPmStrings() -> (am, pm) | |
3274 | ||
3275 | Get the AM and PM strings in the current locale (may be empty) | |
3276 | """ | |
d55e5bfc RD |
3277 | return _misc_.DateTime_GetAmPmStrings(*args, **kwargs) |
3278 | ||
3279 | GetAmPmStrings = staticmethod(GetAmPmStrings) | |
3280 | def IsDSTApplicable(*args, **kwargs): | |
d6c14a4c | 3281 | """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" |
d55e5bfc RD |
3282 | return _misc_.DateTime_IsDSTApplicable(*args, **kwargs) |
3283 | ||
3284 | IsDSTApplicable = staticmethod(IsDSTApplicable) | |
3285 | def GetBeginDST(*args, **kwargs): | |
d6c14a4c | 3286 | """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" |
d55e5bfc RD |
3287 | return _misc_.DateTime_GetBeginDST(*args, **kwargs) |
3288 | ||
3289 | GetBeginDST = staticmethod(GetBeginDST) | |
3290 | def GetEndDST(*args, **kwargs): | |
d6c14a4c | 3291 | """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" |
d55e5bfc RD |
3292 | return _misc_.DateTime_GetEndDST(*args, **kwargs) |
3293 | ||
3294 | GetEndDST = staticmethod(GetEndDST) | |
3295 | def Now(*args, **kwargs): | |
d6c14a4c | 3296 | """Now() -> DateTime""" |
d55e5bfc RD |
3297 | return _misc_.DateTime_Now(*args, **kwargs) |
3298 | ||
3299 | Now = staticmethod(Now) | |
3300 | def UNow(*args, **kwargs): | |
d6c14a4c | 3301 | """UNow() -> DateTime""" |
d55e5bfc RD |
3302 | return _misc_.DateTime_UNow(*args, **kwargs) |
3303 | ||
3304 | UNow = staticmethod(UNow) | |
3305 | def Today(*args, **kwargs): | |
d6c14a4c | 3306 | """Today() -> DateTime""" |
d55e5bfc RD |
3307 | return _misc_.DateTime_Today(*args, **kwargs) |
3308 | ||
3309 | Today = staticmethod(Today) | |
1bd55598 | 3310 | def __init__(self, *args, **kwargs): |
d55e5bfc | 3311 | """__init__(self) -> DateTime""" |
1bd55598 RD |
3312 | _misc_.DateTime_swiginit(self,_misc_.new_DateTime(*args, **kwargs)) |
3313 | __swig_destroy__ = _misc_.delete_DateTime | |
3314 | __del__ = lambda self : None; | |
d55e5bfc RD |
3315 | def SetToCurrent(*args, **kwargs): |
3316 | """SetToCurrent(self) -> DateTime""" | |
3317 | return _misc_.DateTime_SetToCurrent(*args, **kwargs) | |
3318 | ||
3319 | def SetTimeT(*args, **kwargs): | |
3320 | """SetTimeT(self, time_t timet) -> DateTime""" | |
3321 | return _misc_.DateTime_SetTimeT(*args, **kwargs) | |
3322 | ||
3323 | def SetJDN(*args, **kwargs): | |
3324 | """SetJDN(self, double jdn) -> DateTime""" | |
3325 | return _misc_.DateTime_SetJDN(*args, **kwargs) | |
3326 | ||
3327 | def SetHMS(*args, **kwargs): | |
3328 | """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" | |
3329 | return _misc_.DateTime_SetHMS(*args, **kwargs) | |
3330 | ||
3331 | def Set(*args, **kwargs): | |
3332 | """ | |
3333 | Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0, | |
3334 | int minute=0, int second=0, int millisec=0) -> DateTime | |
3335 | """ | |
3336 | return _misc_.DateTime_Set(*args, **kwargs) | |
3337 | ||
3338 | def ResetTime(*args, **kwargs): | |
3339 | """ResetTime(self) -> DateTime""" | |
3340 | return _misc_.DateTime_ResetTime(*args, **kwargs) | |
3341 | ||
3342 | def SetYear(*args, **kwargs): | |
3343 | """SetYear(self, int year) -> DateTime""" | |
3344 | return _misc_.DateTime_SetYear(*args, **kwargs) | |
3345 | ||
3346 | def SetMonth(*args, **kwargs): | |
3347 | """SetMonth(self, int month) -> DateTime""" | |
3348 | return _misc_.DateTime_SetMonth(*args, **kwargs) | |
3349 | ||
3350 | def SetDay(*args, **kwargs): | |
3351 | """SetDay(self, int day) -> DateTime""" | |
3352 | return _misc_.DateTime_SetDay(*args, **kwargs) | |
3353 | ||
3354 | def SetHour(*args, **kwargs): | |
3355 | """SetHour(self, int hour) -> DateTime""" | |
3356 | return _misc_.DateTime_SetHour(*args, **kwargs) | |
3357 | ||
3358 | def SetMinute(*args, **kwargs): | |
3359 | """SetMinute(self, int minute) -> DateTime""" | |
3360 | return _misc_.DateTime_SetMinute(*args, **kwargs) | |
3361 | ||
3362 | def SetSecond(*args, **kwargs): | |
3363 | """SetSecond(self, int second) -> DateTime""" | |
3364 | return _misc_.DateTime_SetSecond(*args, **kwargs) | |
3365 | ||
3366 | def SetMillisecond(*args, **kwargs): | |
3367 | """SetMillisecond(self, int millisecond) -> DateTime""" | |
3368 | return _misc_.DateTime_SetMillisecond(*args, **kwargs) | |
3369 | ||
3370 | def SetToWeekDayInSameWeek(*args, **kwargs): | |
3371 | """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" | |
3372 | return _misc_.DateTime_SetToWeekDayInSameWeek(*args, **kwargs) | |
3373 | ||
3374 | def GetWeekDayInSameWeek(*args, **kwargs): | |
3375 | """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime""" | |
3376 | return _misc_.DateTime_GetWeekDayInSameWeek(*args, **kwargs) | |
3377 | ||
3378 | def SetToNextWeekDay(*args, **kwargs): | |
3379 | """SetToNextWeekDay(self, int weekday) -> DateTime""" | |
3380 | return _misc_.DateTime_SetToNextWeekDay(*args, **kwargs) | |
3381 | ||
3382 | def GetNextWeekDay(*args, **kwargs): | |
3383 | """GetNextWeekDay(self, int weekday) -> DateTime""" | |
3384 | return _misc_.DateTime_GetNextWeekDay(*args, **kwargs) | |
3385 | ||
3386 | def SetToPrevWeekDay(*args, **kwargs): | |
3387 | """SetToPrevWeekDay(self, int weekday) -> DateTime""" | |
3388 | return _misc_.DateTime_SetToPrevWeekDay(*args, **kwargs) | |
3389 | ||
3390 | def GetPrevWeekDay(*args, **kwargs): | |
3391 | """GetPrevWeekDay(self, int weekday) -> DateTime""" | |
3392 | return _misc_.DateTime_GetPrevWeekDay(*args, **kwargs) | |
3393 | ||
3394 | def SetToWeekDay(*args, **kwargs): | |
3395 | """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool""" | |
3396 | return _misc_.DateTime_SetToWeekDay(*args, **kwargs) | |
3397 | ||
3398 | def SetToLastWeekDay(*args, **kwargs): | |
3399 | """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool""" | |
3400 | return _misc_.DateTime_SetToLastWeekDay(*args, **kwargs) | |
3401 | ||
3402 | def GetLastWeekDay(*args, **kwargs): | |
3403 | """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3404 | return _misc_.DateTime_GetLastWeekDay(*args, **kwargs) | |
3405 | ||
3406 | def SetToTheWeek(*args, **kwargs): | |
3407 | """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool""" | |
3408 | return _misc_.DateTime_SetToTheWeek(*args, **kwargs) | |
3409 | ||
3410 | def GetWeek(*args, **kwargs): | |
3411 | """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime""" | |
3412 | return _misc_.DateTime_GetWeek(*args, **kwargs) | |
3413 | ||
629e65c2 RD |
3414 | SetToTheWeek = wx._deprecated(SetToTheWeek, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead") |
3415 | GetWeek = wx._deprecated(GetWeek, "GetWeek is deprecated, use GetWeekOfYear instead") | |
3416 | ||
3417 | def SetToWeekOfYear(*args, **kwargs): | |
3418 | """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime""" | |
3419 | return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs) | |
3420 | ||
3421 | SetToWeekOfYear = staticmethod(SetToWeekOfYear) | |
d55e5bfc RD |
3422 | def SetToLastMonthDay(*args, **kwargs): |
3423 | """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3424 | return _misc_.DateTime_SetToLastMonthDay(*args, **kwargs) | |
3425 | ||
3426 | def GetLastMonthDay(*args, **kwargs): | |
3427 | """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime""" | |
3428 | return _misc_.DateTime_GetLastMonthDay(*args, **kwargs) | |
3429 | ||
3430 | def SetToYearDay(*args, **kwargs): | |
3431 | """SetToYearDay(self, int yday) -> DateTime""" | |
3432 | return _misc_.DateTime_SetToYearDay(*args, **kwargs) | |
3433 | ||
3434 | def GetYearDay(*args, **kwargs): | |
3435 | """GetYearDay(self, int yday) -> DateTime""" | |
3436 | return _misc_.DateTime_GetYearDay(*args, **kwargs) | |
3437 | ||
3438 | def GetJulianDayNumber(*args, **kwargs): | |
3439 | """GetJulianDayNumber(self) -> double""" | |
3440 | return _misc_.DateTime_GetJulianDayNumber(*args, **kwargs) | |
3441 | ||
3442 | def GetJDN(*args, **kwargs): | |
3443 | """GetJDN(self) -> double""" | |
3444 | return _misc_.DateTime_GetJDN(*args, **kwargs) | |
3445 | ||
3446 | def GetModifiedJulianDayNumber(*args, **kwargs): | |
3447 | """GetModifiedJulianDayNumber(self) -> double""" | |
3448 | return _misc_.DateTime_GetModifiedJulianDayNumber(*args, **kwargs) | |
3449 | ||
3450 | def GetMJD(*args, **kwargs): | |
3451 | """GetMJD(self) -> double""" | |
3452 | return _misc_.DateTime_GetMJD(*args, **kwargs) | |
3453 | ||
3454 | def GetRataDie(*args, **kwargs): | |
3455 | """GetRataDie(self) -> double""" | |
3456 | return _misc_.DateTime_GetRataDie(*args, **kwargs) | |
3457 | ||
3458 | def ToTimezone(*args, **kwargs): | |
3459 | """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3460 | return _misc_.DateTime_ToTimezone(*args, **kwargs) | |
3461 | ||
3462 | def MakeTimezone(*args, **kwargs): | |
3463 | """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3464 | return _misc_.DateTime_MakeTimezone(*args, **kwargs) | |
3465 | ||
943e8dfd RD |
3466 | def FromTimezone(*args, **kwargs): |
3467 | """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3468 | return _misc_.DateTime_FromTimezone(*args, **kwargs) | |
3469 | ||
3470 | def MakeFromTimezone(*args, **kwargs): | |
3471 | """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime""" | |
3472 | return _misc_.DateTime_MakeFromTimezone(*args, **kwargs) | |
3473 | ||
3474 | def ToUTC(*args, **kwargs): | |
3475 | """ToUTC(self, bool noDST=False) -> DateTime""" | |
3476 | return _misc_.DateTime_ToUTC(*args, **kwargs) | |
3477 | ||
3478 | def MakeUTC(*args, **kwargs): | |
3479 | """MakeUTC(self, bool noDST=False) -> DateTime""" | |
3480 | return _misc_.DateTime_MakeUTC(*args, **kwargs) | |
3481 | ||
d55e5bfc RD |
3482 | def ToGMT(*args, **kwargs): |
3483 | """ToGMT(self, bool noDST=False) -> DateTime""" | |
3484 | return _misc_.DateTime_ToGMT(*args, **kwargs) | |
3485 | ||
3486 | def MakeGMT(*args, **kwargs): | |
3487 | """MakeGMT(self, bool noDST=False) -> DateTime""" | |
3488 | return _misc_.DateTime_MakeGMT(*args, **kwargs) | |
3489 | ||
943e8dfd RD |
3490 | def FromUTC(*args, **kwargs): |
3491 | """FromUTC(self, bool noDST=False) -> DateTime""" | |
3492 | return _misc_.DateTime_FromUTC(*args, **kwargs) | |
3493 | ||
3494 | def MakeFromUTC(*args, **kwargs): | |
3495 | """MakeFromUTC(self, bool noDST=False) -> DateTime""" | |
3496 | return _misc_.DateTime_MakeFromUTC(*args, **kwargs) | |
3497 | ||
d55e5bfc RD |
3498 | def IsDST(*args, **kwargs): |
3499 | """IsDST(self, int country=Country_Default) -> int""" | |
3500 | return _misc_.DateTime_IsDST(*args, **kwargs) | |
3501 | ||
3502 | def IsValid(*args, **kwargs): | |
3503 | """IsValid(self) -> bool""" | |
3504 | return _misc_.DateTime_IsValid(*args, **kwargs) | |
3505 | ||
3506 | Ok = IsValid | |
3507 | def __nonzero__(self): return self.Ok() | |
3508 | def GetTicks(*args, **kwargs): | |
3509 | """GetTicks(self) -> time_t""" | |
3510 | return _misc_.DateTime_GetTicks(*args, **kwargs) | |
3511 | ||
3512 | def GetYear(*args, **kwargs): | |
3513 | """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3514 | return _misc_.DateTime_GetYear(*args, **kwargs) | |
3515 | ||
3516 | def GetMonth(*args, **kwargs): | |
3517 | """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3518 | return _misc_.DateTime_GetMonth(*args, **kwargs) | |
3519 | ||
3520 | def GetDay(*args, **kwargs): | |
3521 | """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3522 | return _misc_.DateTime_GetDay(*args, **kwargs) | |
3523 | ||
3524 | def GetWeekDay(*args, **kwargs): | |
3525 | """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3526 | return _misc_.DateTime_GetWeekDay(*args, **kwargs) | |
3527 | ||
3528 | def GetHour(*args, **kwargs): | |
3529 | """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3530 | return _misc_.DateTime_GetHour(*args, **kwargs) | |
3531 | ||
3532 | def GetMinute(*args, **kwargs): | |
3533 | """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3534 | return _misc_.DateTime_GetMinute(*args, **kwargs) | |
3535 | ||
3536 | def GetSecond(*args, **kwargs): | |
3537 | """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3538 | return _misc_.DateTime_GetSecond(*args, **kwargs) | |
3539 | ||
3540 | def GetMillisecond(*args, **kwargs): | |
3541 | """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3542 | return _misc_.DateTime_GetMillisecond(*args, **kwargs) | |
3543 | ||
3544 | def GetDayOfYear(*args, **kwargs): | |
3545 | """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3546 | return _misc_.DateTime_GetDayOfYear(*args, **kwargs) | |
3547 | ||
3548 | def GetWeekOfYear(*args, **kwargs): | |
3549 | """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3550 | return _misc_.DateTime_GetWeekOfYear(*args, **kwargs) | |
3551 | ||
3552 | def GetWeekOfMonth(*args, **kwargs): | |
3553 | """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int""" | |
3554 | return _misc_.DateTime_GetWeekOfMonth(*args, **kwargs) | |
3555 | ||
3556 | def IsWorkDay(*args, **kwargs): | |
3557 | """IsWorkDay(self, int country=Country_Default) -> bool""" | |
3558 | return _misc_.DateTime_IsWorkDay(*args, **kwargs) | |
3559 | ||
3560 | def IsEqualTo(*args, **kwargs): | |
3561 | """IsEqualTo(self, DateTime datetime) -> bool""" | |
3562 | return _misc_.DateTime_IsEqualTo(*args, **kwargs) | |
3563 | ||
3564 | def IsEarlierThan(*args, **kwargs): | |
3565 | """IsEarlierThan(self, DateTime datetime) -> bool""" | |
3566 | return _misc_.DateTime_IsEarlierThan(*args, **kwargs) | |
3567 | ||
3568 | def IsLaterThan(*args, **kwargs): | |
3569 | """IsLaterThan(self, DateTime datetime) -> bool""" | |
3570 | return _misc_.DateTime_IsLaterThan(*args, **kwargs) | |
3571 | ||
3572 | def IsStrictlyBetween(*args, **kwargs): | |
3573 | """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool""" | |
3574 | return _misc_.DateTime_IsStrictlyBetween(*args, **kwargs) | |
3575 | ||
3576 | def IsBetween(*args, **kwargs): | |
3577 | """IsBetween(self, DateTime t1, DateTime t2) -> bool""" | |
3578 | return _misc_.DateTime_IsBetween(*args, **kwargs) | |
3579 | ||
3580 | def IsSameDate(*args, **kwargs): | |
3581 | """IsSameDate(self, DateTime dt) -> bool""" | |
3582 | return _misc_.DateTime_IsSameDate(*args, **kwargs) | |
3583 | ||
3584 | def IsSameTime(*args, **kwargs): | |
3585 | """IsSameTime(self, DateTime dt) -> bool""" | |
3586 | return _misc_.DateTime_IsSameTime(*args, **kwargs) | |
3587 | ||
3588 | def IsEqualUpTo(*args, **kwargs): | |
3589 | """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool""" | |
3590 | return _misc_.DateTime_IsEqualUpTo(*args, **kwargs) | |
3591 | ||
3592 | def AddTS(*args, **kwargs): | |
3593 | """AddTS(self, TimeSpan diff) -> DateTime""" | |
3594 | return _misc_.DateTime_AddTS(*args, **kwargs) | |
3595 | ||
3596 | def AddDS(*args, **kwargs): | |
3597 | """AddDS(self, DateSpan diff) -> DateTime""" | |
3598 | return _misc_.DateTime_AddDS(*args, **kwargs) | |
3599 | ||
3600 | def SubtractTS(*args, **kwargs): | |
3601 | """SubtractTS(self, TimeSpan diff) -> DateTime""" | |
3602 | return _misc_.DateTime_SubtractTS(*args, **kwargs) | |
3603 | ||
3604 | def SubtractDS(*args, **kwargs): | |
3605 | """SubtractDS(self, DateSpan diff) -> DateTime""" | |
3606 | return _misc_.DateTime_SubtractDS(*args, **kwargs) | |
3607 | ||
3608 | def Subtract(*args, **kwargs): | |
3609 | """Subtract(self, DateTime dt) -> TimeSpan""" | |
3610 | return _misc_.DateTime_Subtract(*args, **kwargs) | |
3611 | ||
3612 | def __iadd__(*args): | |
3613 | """ | |
3614 | __iadd__(self, TimeSpan diff) -> DateTime | |
3615 | __iadd__(self, DateSpan diff) -> DateTime | |
3616 | """ | |
3617 | return _misc_.DateTime___iadd__(*args) | |
3618 | ||
3619 | def __isub__(*args): | |
3620 | """ | |
3621 | __isub__(self, TimeSpan diff) -> DateTime | |
3622 | __isub__(self, DateSpan diff) -> DateTime | |
3623 | """ | |
3624 | return _misc_.DateTime___isub__(*args) | |
3625 | ||
3626 | def __add__(*args): | |
3627 | """ | |
3628 | __add__(self, TimeSpan other) -> DateTime | |
3629 | __add__(self, DateSpan other) -> DateTime | |
3630 | """ | |
3631 | return _misc_.DateTime___add__(*args) | |
3632 | ||
3633 | def __sub__(*args): | |
3634 | """ | |
3635 | __sub__(self, DateTime other) -> TimeSpan | |
3636 | __sub__(self, TimeSpan other) -> DateTime | |
3637 | __sub__(self, DateSpan other) -> DateTime | |
3638 | """ | |
3639 | return _misc_.DateTime___sub__(*args) | |
3640 | ||
fef4c27a | 3641 | def __lt__(*args, **kwargs): |
d55e5bfc | 3642 | """__lt__(self, DateTime other) -> bool""" |
fef4c27a | 3643 | return _misc_.DateTime___lt__(*args, **kwargs) |
d55e5bfc | 3644 | |
fef4c27a | 3645 | def __le__(*args, **kwargs): |
d55e5bfc | 3646 | """__le__(self, DateTime other) -> bool""" |
fef4c27a | 3647 | return _misc_.DateTime___le__(*args, **kwargs) |
d55e5bfc | 3648 | |
fef4c27a | 3649 | def __gt__(*args, **kwargs): |
d55e5bfc | 3650 | """__gt__(self, DateTime other) -> bool""" |
fef4c27a | 3651 | return _misc_.DateTime___gt__(*args, **kwargs) |
d55e5bfc | 3652 | |
fef4c27a | 3653 | def __ge__(*args, **kwargs): |
d55e5bfc | 3654 | """__ge__(self, DateTime other) -> bool""" |
fef4c27a | 3655 | return _misc_.DateTime___ge__(*args, **kwargs) |
d55e5bfc | 3656 | |
fef4c27a | 3657 | def __eq__(*args, **kwargs): |
d55e5bfc | 3658 | """__eq__(self, DateTime other) -> bool""" |
fef4c27a | 3659 | return _misc_.DateTime___eq__(*args, **kwargs) |
d55e5bfc | 3660 | |
fef4c27a | 3661 | def __ne__(*args, **kwargs): |
d55e5bfc | 3662 | """__ne__(self, DateTime other) -> bool""" |
fef4c27a | 3663 | return _misc_.DateTime___ne__(*args, **kwargs) |
d55e5bfc RD |
3664 | |
3665 | def ParseRfc822Date(*args, **kwargs): | |
3666 | """ParseRfc822Date(self, String date) -> int""" | |
3667 | return _misc_.DateTime_ParseRfc822Date(*args, **kwargs) | |
3668 | ||
3669 | def ParseFormat(*args, **kwargs): | |
fef4c27a | 3670 | """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int""" |
d55e5bfc RD |
3671 | return _misc_.DateTime_ParseFormat(*args, **kwargs) |
3672 | ||
3673 | def ParseDateTime(*args, **kwargs): | |
3674 | """ParseDateTime(self, String datetime) -> int""" | |
3675 | return _misc_.DateTime_ParseDateTime(*args, **kwargs) | |
3676 | ||
3677 | def ParseDate(*args, **kwargs): | |
3678 | """ParseDate(self, String date) -> int""" | |
3679 | return _misc_.DateTime_ParseDate(*args, **kwargs) | |
3680 | ||
3681 | def ParseTime(*args, **kwargs): | |
3682 | """ParseTime(self, String time) -> int""" | |
3683 | return _misc_.DateTime_ParseTime(*args, **kwargs) | |
3684 | ||
3685 | def Format(*args, **kwargs): | |
fef4c27a | 3686 | """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String""" |
d55e5bfc RD |
3687 | return _misc_.DateTime_Format(*args, **kwargs) |
3688 | ||
3689 | def FormatDate(*args, **kwargs): | |
3690 | """FormatDate(self) -> String""" | |
3691 | return _misc_.DateTime_FormatDate(*args, **kwargs) | |
3692 | ||
3693 | def FormatTime(*args, **kwargs): | |
3694 | """FormatTime(self) -> String""" | |
3695 | return _misc_.DateTime_FormatTime(*args, **kwargs) | |
3696 | ||
3697 | def FormatISODate(*args, **kwargs): | |
3698 | """FormatISODate(self) -> String""" | |
3699 | return _misc_.DateTime_FormatISODate(*args, **kwargs) | |
3700 | ||
3701 | def FormatISOTime(*args, **kwargs): | |
3702 | """FormatISOTime(self) -> String""" | |
3703 | return _misc_.DateTime_FormatISOTime(*args, **kwargs) | |
3704 | ||
3705 | def __repr__(self): | |
3706 | if self.IsValid(): | |
7993762b RD |
3707 | f = self.Format().encode(wx.GetDefaultPyEncoding()) |
3708 | return '<wx.DateTime: \"%s\" at %s>' % ( f, self.this) | |
d55e5bfc RD |
3709 | else: |
3710 | return '<wx.DateTime: \"INVALID\" at %s>' % self.this | |
3711 | def __str__(self): | |
3712 | if self.IsValid(): | |
7993762b | 3713 | return self.Format().encode(wx.GetDefaultPyEncoding()) |
d55e5bfc RD |
3714 | else: |
3715 | return "INVALID DateTime" | |
3716 | ||
1bd55598 RD |
3717 | DateTime_swigregister = _misc_.DateTime_swigregister |
3718 | DateTime_swigregister(DateTime) | |
fef4c27a RD |
3719 | DefaultDateTimeFormat = cvar.DefaultDateTimeFormat |
3720 | DefaultTimeSpanFormat = cvar.DefaultTimeSpanFormat | |
d55e5bfc RD |
3721 | |
3722 | def DateTime_SetCountry(*args, **kwargs): | |
1bd55598 RD |
3723 | """DateTime_SetCountry(int country)""" |
3724 | return _misc_.DateTime_SetCountry(*args, **kwargs) | |
d55e5bfc | 3725 | |
1bd55598 RD |
3726 | def DateTime_GetCountry(*args): |
3727 | """DateTime_GetCountry() -> int""" | |
3728 | return _misc_.DateTime_GetCountry(*args) | |
d55e5bfc RD |
3729 | |
3730 | def DateTime_IsWestEuropeanCountry(*args, **kwargs): | |
1bd55598 RD |
3731 | """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool""" |
3732 | return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs) | |
d55e5bfc RD |
3733 | |
3734 | def DateTime_GetCurrentYear(*args, **kwargs): | |
1bd55598 RD |
3735 | """DateTime_GetCurrentYear(int cal=Gregorian) -> int""" |
3736 | return _misc_.DateTime_GetCurrentYear(*args, **kwargs) | |
d55e5bfc RD |
3737 | |
3738 | def DateTime_ConvertYearToBC(*args, **kwargs): | |
1bd55598 RD |
3739 | """DateTime_ConvertYearToBC(int year) -> int""" |
3740 | return _misc_.DateTime_ConvertYearToBC(*args, **kwargs) | |
d55e5bfc RD |
3741 | |
3742 | def DateTime_GetCurrentMonth(*args, **kwargs): | |
1bd55598 RD |
3743 | """DateTime_GetCurrentMonth(int cal=Gregorian) -> int""" |
3744 | return _misc_.DateTime_GetCurrentMonth(*args, **kwargs) | |
d55e5bfc RD |
3745 | |
3746 | def DateTime_IsLeapYear(*args, **kwargs): | |
1bd55598 RD |
3747 | """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool""" |
3748 | return _misc_.DateTime_IsLeapYear(*args, **kwargs) | |
d55e5bfc RD |
3749 | |
3750 | def DateTime_GetCentury(*args, **kwargs): | |
1bd55598 RD |
3751 | """DateTime_GetCentury(int year=Inv_Year) -> int""" |
3752 | return _misc_.DateTime_GetCentury(*args, **kwargs) | |
d55e5bfc RD |
3753 | |
3754 | def DateTime_GetNumberOfDaysinYear(*args, **kwargs): | |
1bd55598 RD |
3755 | """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int""" |
3756 | return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs) | |
d55e5bfc RD |
3757 | |
3758 | def DateTime_GetNumberOfDaysInMonth(*args, **kwargs): | |
1bd55598 RD |
3759 | """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int""" |
3760 | return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs) | |
d55e5bfc RD |
3761 | |
3762 | def DateTime_GetMonthName(*args, **kwargs): | |
1bd55598 RD |
3763 | """DateTime_GetMonthName(int month, int flags=Name_Full) -> String""" |
3764 | return _misc_.DateTime_GetMonthName(*args, **kwargs) | |
d55e5bfc RD |
3765 | |
3766 | def DateTime_GetWeekDayName(*args, **kwargs): | |
1bd55598 RD |
3767 | """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String""" |
3768 | return _misc_.DateTime_GetWeekDayName(*args, **kwargs) | |
d55e5bfc | 3769 | |
1bd55598 RD |
3770 | def DateTime_GetAmPmStrings(*args): |
3771 | """ | |
a001823c RD |
3772 | GetAmPmStrings() -> (am, pm) |
3773 | ||
3774 | Get the AM and PM strings in the current locale (may be empty) | |
3775 | """ | |
1bd55598 | 3776 | return _misc_.DateTime_GetAmPmStrings(*args) |
d55e5bfc RD |
3777 | |
3778 | def DateTime_IsDSTApplicable(*args, **kwargs): | |
1bd55598 RD |
3779 | """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool""" |
3780 | return _misc_.DateTime_IsDSTApplicable(*args, **kwargs) | |
d55e5bfc RD |
3781 | |
3782 | def DateTime_GetBeginDST(*args, **kwargs): | |
1bd55598 RD |
3783 | """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" |
3784 | return _misc_.DateTime_GetBeginDST(*args, **kwargs) | |
d55e5bfc RD |
3785 | |
3786 | def DateTime_GetEndDST(*args, **kwargs): | |
1bd55598 RD |
3787 | """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime""" |
3788 | return _misc_.DateTime_GetEndDST(*args, **kwargs) | |
d55e5bfc | 3789 | |
1bd55598 RD |
3790 | def DateTime_Now(*args): |
3791 | """DateTime_Now() -> DateTime""" | |
3792 | return _misc_.DateTime_Now(*args) | |
d55e5bfc | 3793 | |
1bd55598 RD |
3794 | def DateTime_UNow(*args): |
3795 | """DateTime_UNow() -> DateTime""" | |
3796 | return _misc_.DateTime_UNow(*args) | |
d55e5bfc | 3797 | |
1bd55598 RD |
3798 | def DateTime_Today(*args): |
3799 | """DateTime_Today() -> DateTime""" | |
3800 | return _misc_.DateTime_Today(*args) | |
d55e5bfc RD |
3801 | |
3802 | def DateTimeFromTimeT(*args, **kwargs): | |
3803 | """DateTimeFromTimeT(time_t timet) -> DateTime""" | |
3804 | val = _misc_.new_DateTimeFromTimeT(*args, **kwargs) | |
d55e5bfc RD |
3805 | return val |
3806 | ||
3807 | def DateTimeFromJDN(*args, **kwargs): | |
3808 | """DateTimeFromJDN(double jdn) -> DateTime""" | |
3809 | val = _misc_.new_DateTimeFromJDN(*args, **kwargs) | |
d55e5bfc RD |
3810 | return val |
3811 | ||
3812 | def DateTimeFromHMS(*args, **kwargs): | |
3813 | """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime""" | |
3814 | val = _misc_.new_DateTimeFromHMS(*args, **kwargs) | |
d55e5bfc RD |
3815 | return val |
3816 | ||
3817 | def DateTimeFromDMY(*args, **kwargs): | |
3818 | """ | |
3819 | DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0, | |
3820 | int minute=0, int second=0, int millisec=0) -> DateTime | |
3821 | """ | |
3822 | val = _misc_.new_DateTimeFromDMY(*args, **kwargs) | |
1bd55598 RD |
3823 | return val |
3824 | ||
3825 | def DateTimeFromDateTime(*args, **kwargs): | |
3826 | """DateTimeFromDateTime(DateTime date) -> DateTime""" | |
3827 | val = _misc_.new_DateTimeFromDateTime(*args, **kwargs) | |
d55e5bfc RD |
3828 | return val |
3829 | ||
629e65c2 | 3830 | def DateTime_SetToWeekOfYear(*args, **kwargs): |
1bd55598 RD |
3831 | """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime""" |
3832 | return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs) | |
629e65c2 | 3833 | |
d55e5bfc | 3834 | class TimeSpan(object): |
36ed4f51 | 3835 | """Proxy of C++ TimeSpan class""" |
1bd55598 RD |
3836 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3837 | __repr__ = _swig_repr | |
e9d6f3a4 RD |
3838 | def Milliseconds(*args, **kwargs): |
3839 | """Milliseconds(long ms) -> TimeSpan""" | |
3840 | return _misc_.TimeSpan_Milliseconds(*args, **kwargs) | |
3841 | ||
3842 | Milliseconds = staticmethod(Milliseconds) | |
3843 | def Millisecond(*args, **kwargs): | |
3844 | """Millisecond() -> TimeSpan""" | |
3845 | return _misc_.TimeSpan_Millisecond(*args, **kwargs) | |
3846 | ||
3847 | Millisecond = staticmethod(Millisecond) | |
d55e5bfc | 3848 | def Seconds(*args, **kwargs): |
d6c14a4c | 3849 | """Seconds(long sec) -> TimeSpan""" |
d55e5bfc RD |
3850 | return _misc_.TimeSpan_Seconds(*args, **kwargs) |
3851 | ||
3852 | Seconds = staticmethod(Seconds) | |
3853 | def Second(*args, **kwargs): | |
d6c14a4c | 3854 | """Second() -> TimeSpan""" |
d55e5bfc RD |
3855 | return _misc_.TimeSpan_Second(*args, **kwargs) |
3856 | ||
3857 | Second = staticmethod(Second) | |
3858 | def Minutes(*args, **kwargs): | |
d6c14a4c | 3859 | """Minutes(long min) -> TimeSpan""" |
d55e5bfc RD |
3860 | return _misc_.TimeSpan_Minutes(*args, **kwargs) |
3861 | ||
3862 | Minutes = staticmethod(Minutes) | |
3863 | def Minute(*args, **kwargs): | |
d6c14a4c | 3864 | """Minute() -> TimeSpan""" |
d55e5bfc RD |
3865 | return _misc_.TimeSpan_Minute(*args, **kwargs) |
3866 | ||
3867 | Minute = staticmethod(Minute) | |
3868 | def Hours(*args, **kwargs): | |
d6c14a4c | 3869 | """Hours(long hours) -> TimeSpan""" |
d55e5bfc RD |
3870 | return _misc_.TimeSpan_Hours(*args, **kwargs) |
3871 | ||
3872 | Hours = staticmethod(Hours) | |
3873 | def Hour(*args, **kwargs): | |
d6c14a4c | 3874 | """Hour() -> TimeSpan""" |
d55e5bfc RD |
3875 | return _misc_.TimeSpan_Hour(*args, **kwargs) |
3876 | ||
3877 | Hour = staticmethod(Hour) | |
3878 | def Days(*args, **kwargs): | |
d6c14a4c | 3879 | """Days(long days) -> TimeSpan""" |
d55e5bfc RD |
3880 | return _misc_.TimeSpan_Days(*args, **kwargs) |
3881 | ||
3882 | Days = staticmethod(Days) | |
3883 | def Day(*args, **kwargs): | |
d6c14a4c | 3884 | """Day() -> TimeSpan""" |
d55e5bfc RD |
3885 | return _misc_.TimeSpan_Day(*args, **kwargs) |
3886 | ||
3887 | Day = staticmethod(Day) | |
3888 | def Weeks(*args, **kwargs): | |
d6c14a4c | 3889 | """Weeks(long days) -> TimeSpan""" |
d55e5bfc RD |
3890 | return _misc_.TimeSpan_Weeks(*args, **kwargs) |
3891 | ||
3892 | Weeks = staticmethod(Weeks) | |
3893 | def Week(*args, **kwargs): | |
d6c14a4c | 3894 | """Week() -> TimeSpan""" |
d55e5bfc RD |
3895 | return _misc_.TimeSpan_Week(*args, **kwargs) |
3896 | ||
3897 | Week = staticmethod(Week) | |
1bd55598 | 3898 | def __init__(self, *args, **kwargs): |
d55e5bfc | 3899 | """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan""" |
1bd55598 RD |
3900 | _misc_.TimeSpan_swiginit(self,_misc_.new_TimeSpan(*args, **kwargs)) |
3901 | __swig_destroy__ = _misc_.delete_TimeSpan | |
3902 | __del__ = lambda self : None; | |
d55e5bfc RD |
3903 | def Add(*args, **kwargs): |
3904 | """Add(self, TimeSpan diff) -> TimeSpan""" | |
3905 | return _misc_.TimeSpan_Add(*args, **kwargs) | |
3906 | ||
3907 | def Subtract(*args, **kwargs): | |
3908 | """Subtract(self, TimeSpan diff) -> TimeSpan""" | |
3909 | return _misc_.TimeSpan_Subtract(*args, **kwargs) | |
3910 | ||
3911 | def Multiply(*args, **kwargs): | |
3912 | """Multiply(self, int n) -> TimeSpan""" | |
3913 | return _misc_.TimeSpan_Multiply(*args, **kwargs) | |
3914 | ||
3915 | def Neg(*args, **kwargs): | |
3916 | """Neg(self) -> TimeSpan""" | |
3917 | return _misc_.TimeSpan_Neg(*args, **kwargs) | |
3918 | ||
3919 | def Abs(*args, **kwargs): | |
3920 | """Abs(self) -> TimeSpan""" | |
3921 | return _misc_.TimeSpan_Abs(*args, **kwargs) | |
3922 | ||
3923 | def __iadd__(*args, **kwargs): | |
3924 | """__iadd__(self, TimeSpan diff) -> TimeSpan""" | |
3925 | return _misc_.TimeSpan___iadd__(*args, **kwargs) | |
3926 | ||
3927 | def __isub__(*args, **kwargs): | |
3928 | """__isub__(self, TimeSpan diff) -> TimeSpan""" | |
3929 | return _misc_.TimeSpan___isub__(*args, **kwargs) | |
3930 | ||
3931 | def __imul__(*args, **kwargs): | |
3932 | """__imul__(self, int n) -> TimeSpan""" | |
3933 | return _misc_.TimeSpan___imul__(*args, **kwargs) | |
3934 | ||
3935 | def __neg__(*args, **kwargs): | |
3936 | """__neg__(self) -> TimeSpan""" | |
3937 | return _misc_.TimeSpan___neg__(*args, **kwargs) | |
3938 | ||
3939 | def __add__(*args, **kwargs): | |
3940 | """__add__(self, TimeSpan other) -> TimeSpan""" | |
3941 | return _misc_.TimeSpan___add__(*args, **kwargs) | |
3942 | ||
3943 | def __sub__(*args, **kwargs): | |
3944 | """__sub__(self, TimeSpan other) -> TimeSpan""" | |
3945 | return _misc_.TimeSpan___sub__(*args, **kwargs) | |
3946 | ||
3947 | def __mul__(*args, **kwargs): | |
3948 | """__mul__(self, int n) -> TimeSpan""" | |
3949 | return _misc_.TimeSpan___mul__(*args, **kwargs) | |
3950 | ||
3951 | def __rmul__(*args, **kwargs): | |
3952 | """__rmul__(self, int n) -> TimeSpan""" | |
3953 | return _misc_.TimeSpan___rmul__(*args, **kwargs) | |
3954 | ||
3955 | def __lt__(*args, **kwargs): | |
3956 | """__lt__(self, TimeSpan other) -> bool""" | |
3957 | return _misc_.TimeSpan___lt__(*args, **kwargs) | |
3958 | ||
3959 | def __le__(*args, **kwargs): | |
3960 | """__le__(self, TimeSpan other) -> bool""" | |
3961 | return _misc_.TimeSpan___le__(*args, **kwargs) | |
3962 | ||
3963 | def __gt__(*args, **kwargs): | |
3964 | """__gt__(self, TimeSpan other) -> bool""" | |
3965 | return _misc_.TimeSpan___gt__(*args, **kwargs) | |
3966 | ||
3967 | def __ge__(*args, **kwargs): | |
3968 | """__ge__(self, TimeSpan other) -> bool""" | |
3969 | return _misc_.TimeSpan___ge__(*args, **kwargs) | |
3970 | ||
3971 | def __eq__(*args, **kwargs): | |
3972 | """__eq__(self, TimeSpan other) -> bool""" | |
3973 | return _misc_.TimeSpan___eq__(*args, **kwargs) | |
3974 | ||
3975 | def __ne__(*args, **kwargs): | |
3976 | """__ne__(self, TimeSpan other) -> bool""" | |
3977 | return _misc_.TimeSpan___ne__(*args, **kwargs) | |
3978 | ||
3979 | def IsNull(*args, **kwargs): | |
3980 | """IsNull(self) -> bool""" | |
3981 | return _misc_.TimeSpan_IsNull(*args, **kwargs) | |
3982 | ||
3983 | def IsPositive(*args, **kwargs): | |
3984 | """IsPositive(self) -> bool""" | |
3985 | return _misc_.TimeSpan_IsPositive(*args, **kwargs) | |
3986 | ||
3987 | def IsNegative(*args, **kwargs): | |
3988 | """IsNegative(self) -> bool""" | |
3989 | return _misc_.TimeSpan_IsNegative(*args, **kwargs) | |
3990 | ||
3991 | def IsEqualTo(*args, **kwargs): | |
3992 | """IsEqualTo(self, TimeSpan ts) -> bool""" | |
3993 | return _misc_.TimeSpan_IsEqualTo(*args, **kwargs) | |
3994 | ||
3995 | def IsLongerThan(*args, **kwargs): | |
3996 | """IsLongerThan(self, TimeSpan ts) -> bool""" | |
3997 | return _misc_.TimeSpan_IsLongerThan(*args, **kwargs) | |
3998 | ||
3999 | def IsShorterThan(*args, **kwargs): | |
4000 | """IsShorterThan(self, TimeSpan t) -> bool""" | |
4001 | return _misc_.TimeSpan_IsShorterThan(*args, **kwargs) | |
4002 | ||
4003 | def GetWeeks(*args, **kwargs): | |
4004 | """GetWeeks(self) -> int""" | |
4005 | return _misc_.TimeSpan_GetWeeks(*args, **kwargs) | |
4006 | ||
4007 | def GetDays(*args, **kwargs): | |
4008 | """GetDays(self) -> int""" | |
4009 | return _misc_.TimeSpan_GetDays(*args, **kwargs) | |
4010 | ||
4011 | def GetHours(*args, **kwargs): | |
4012 | """GetHours(self) -> int""" | |
4013 | return _misc_.TimeSpan_GetHours(*args, **kwargs) | |
4014 | ||
4015 | def GetMinutes(*args, **kwargs): | |
4016 | """GetMinutes(self) -> int""" | |
4017 | return _misc_.TimeSpan_GetMinutes(*args, **kwargs) | |
4018 | ||
4019 | def GetSeconds(*args, **kwargs): | |
4020 | """GetSeconds(self) -> wxLongLong""" | |
4021 | return _misc_.TimeSpan_GetSeconds(*args, **kwargs) | |
4022 | ||
4023 | def GetMilliseconds(*args, **kwargs): | |
4024 | """GetMilliseconds(self) -> wxLongLong""" | |
4025 | return _misc_.TimeSpan_GetMilliseconds(*args, **kwargs) | |
4026 | ||
4027 | def Format(*args, **kwargs): | |
fef4c27a | 4028 | """Format(self, String format=DefaultTimeSpanFormat) -> String""" |
d55e5bfc RD |
4029 | return _misc_.TimeSpan_Format(*args, **kwargs) |
4030 | ||
4031 | def __repr__(self): | |
7993762b RD |
4032 | f = self.Format().encode(wx.GetDefaultPyEncoding()) |
4033 | return '<wx.TimeSpan: \"%s\" at %s>' % ( f, self.this) | |
d55e5bfc | 4034 | def __str__(self): |
7993762b | 4035 | return self.Format().encode(wx.GetDefaultPyEncoding()) |
d55e5bfc | 4036 | |
1bd55598 RD |
4037 | TimeSpan_swigregister = _misc_.TimeSpan_swigregister |
4038 | TimeSpan_swigregister(TimeSpan) | |
d55e5bfc | 4039 | |
e9d6f3a4 RD |
4040 | def TimeSpan_Milliseconds(*args, **kwargs): |
4041 | """TimeSpan_Milliseconds(long ms) -> TimeSpan""" | |
4042 | return _misc_.TimeSpan_Milliseconds(*args, **kwargs) | |
4043 | ||
4044 | def TimeSpan_Millisecond(*args): | |
4045 | """TimeSpan_Millisecond() -> TimeSpan""" | |
4046 | return _misc_.TimeSpan_Millisecond(*args) | |
4047 | ||
d55e5bfc | 4048 | def TimeSpan_Seconds(*args, **kwargs): |
1bd55598 RD |
4049 | """TimeSpan_Seconds(long sec) -> TimeSpan""" |
4050 | return _misc_.TimeSpan_Seconds(*args, **kwargs) | |
d55e5bfc | 4051 | |
1bd55598 RD |
4052 | def TimeSpan_Second(*args): |
4053 | """TimeSpan_Second() -> TimeSpan""" | |
4054 | return _misc_.TimeSpan_Second(*args) | |
d55e5bfc RD |
4055 | |
4056 | def TimeSpan_Minutes(*args, **kwargs): | |
1bd55598 RD |
4057 | """TimeSpan_Minutes(long min) -> TimeSpan""" |
4058 | return _misc_.TimeSpan_Minutes(*args, **kwargs) | |
d55e5bfc | 4059 | |
1bd55598 RD |
4060 | def TimeSpan_Minute(*args): |
4061 | """TimeSpan_Minute() -> TimeSpan""" | |
4062 | return _misc_.TimeSpan_Minute(*args) | |
d55e5bfc RD |
4063 | |
4064 | def TimeSpan_Hours(*args, **kwargs): | |
1bd55598 RD |
4065 | """TimeSpan_Hours(long hours) -> TimeSpan""" |
4066 | return _misc_.TimeSpan_Hours(*args, **kwargs) | |
d55e5bfc | 4067 | |
1bd55598 RD |
4068 | def TimeSpan_Hour(*args): |
4069 | """TimeSpan_Hour() -> TimeSpan""" | |
4070 | return _misc_.TimeSpan_Hour(*args) | |
d55e5bfc RD |
4071 | |
4072 | def TimeSpan_Days(*args, **kwargs): | |
1bd55598 RD |
4073 | """TimeSpan_Days(long days) -> TimeSpan""" |
4074 | return _misc_.TimeSpan_Days(*args, **kwargs) | |
d55e5bfc | 4075 | |
1bd55598 RD |
4076 | def TimeSpan_Day(*args): |
4077 | """TimeSpan_Day() -> TimeSpan""" | |
4078 | return _misc_.TimeSpan_Day(*args) | |
d55e5bfc RD |
4079 | |
4080 | def TimeSpan_Weeks(*args, **kwargs): | |
1bd55598 RD |
4081 | """TimeSpan_Weeks(long days) -> TimeSpan""" |
4082 | return _misc_.TimeSpan_Weeks(*args, **kwargs) | |
d55e5bfc | 4083 | |
1bd55598 RD |
4084 | def TimeSpan_Week(*args): |
4085 | """TimeSpan_Week() -> TimeSpan""" | |
4086 | return _misc_.TimeSpan_Week(*args) | |
d55e5bfc RD |
4087 | |
4088 | class DateSpan(object): | |
36ed4f51 | 4089 | """Proxy of C++ DateSpan class""" |
1bd55598 RD |
4090 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4091 | __repr__ = _swig_repr | |
4092 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4093 | """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan""" |
1bd55598 RD |
4094 | _misc_.DateSpan_swiginit(self,_misc_.new_DateSpan(*args, **kwargs)) |
4095 | __swig_destroy__ = _misc_.delete_DateSpan | |
4096 | __del__ = lambda self : None; | |
d55e5bfc | 4097 | def Days(*args, **kwargs): |
d6c14a4c | 4098 | """Days(int days) -> DateSpan""" |
d55e5bfc RD |
4099 | return _misc_.DateSpan_Days(*args, **kwargs) |
4100 | ||
4101 | Days = staticmethod(Days) | |
4102 | def Day(*args, **kwargs): | |
d6c14a4c | 4103 | """Day() -> DateSpan""" |
d55e5bfc RD |
4104 | return _misc_.DateSpan_Day(*args, **kwargs) |
4105 | ||
4106 | Day = staticmethod(Day) | |
4107 | def Weeks(*args, **kwargs): | |
d6c14a4c | 4108 | """Weeks(int weeks) -> DateSpan""" |
d55e5bfc RD |
4109 | return _misc_.DateSpan_Weeks(*args, **kwargs) |
4110 | ||
4111 | Weeks = staticmethod(Weeks) | |
4112 | def Week(*args, **kwargs): | |
d6c14a4c | 4113 | """Week() -> DateSpan""" |
d55e5bfc RD |
4114 | return _misc_.DateSpan_Week(*args, **kwargs) |
4115 | ||
4116 | Week = staticmethod(Week) | |
4117 | def Months(*args, **kwargs): | |
d6c14a4c | 4118 | """Months(int mon) -> DateSpan""" |
d55e5bfc RD |
4119 | return _misc_.DateSpan_Months(*args, **kwargs) |
4120 | ||
4121 | Months = staticmethod(Months) | |
4122 | def Month(*args, **kwargs): | |
d6c14a4c | 4123 | """Month() -> DateSpan""" |
d55e5bfc RD |
4124 | return _misc_.DateSpan_Month(*args, **kwargs) |
4125 | ||
4126 | Month = staticmethod(Month) | |
4127 | def Years(*args, **kwargs): | |
d6c14a4c | 4128 | """Years(int years) -> DateSpan""" |
d55e5bfc RD |
4129 | return _misc_.DateSpan_Years(*args, **kwargs) |
4130 | ||
4131 | Years = staticmethod(Years) | |
4132 | def Year(*args, **kwargs): | |
d6c14a4c | 4133 | """Year() -> DateSpan""" |
d55e5bfc RD |
4134 | return _misc_.DateSpan_Year(*args, **kwargs) |
4135 | ||
4136 | Year = staticmethod(Year) | |
4137 | def SetYears(*args, **kwargs): | |
4138 | """SetYears(self, int n) -> DateSpan""" | |
4139 | return _misc_.DateSpan_SetYears(*args, **kwargs) | |
4140 | ||
4141 | def SetMonths(*args, **kwargs): | |
4142 | """SetMonths(self, int n) -> DateSpan""" | |
4143 | return _misc_.DateSpan_SetMonths(*args, **kwargs) | |
4144 | ||
4145 | def SetWeeks(*args, **kwargs): | |
4146 | """SetWeeks(self, int n) -> DateSpan""" | |
4147 | return _misc_.DateSpan_SetWeeks(*args, **kwargs) | |
4148 | ||
4149 | def SetDays(*args, **kwargs): | |
4150 | """SetDays(self, int n) -> DateSpan""" | |
4151 | return _misc_.DateSpan_SetDays(*args, **kwargs) | |
4152 | ||
4153 | def GetYears(*args, **kwargs): | |
4154 | """GetYears(self) -> int""" | |
4155 | return _misc_.DateSpan_GetYears(*args, **kwargs) | |
4156 | ||
4157 | def GetMonths(*args, **kwargs): | |
4158 | """GetMonths(self) -> int""" | |
4159 | return _misc_.DateSpan_GetMonths(*args, **kwargs) | |
4160 | ||
4161 | def GetWeeks(*args, **kwargs): | |
4162 | """GetWeeks(self) -> int""" | |
4163 | return _misc_.DateSpan_GetWeeks(*args, **kwargs) | |
4164 | ||
4165 | def GetDays(*args, **kwargs): | |
4166 | """GetDays(self) -> int""" | |
4167 | return _misc_.DateSpan_GetDays(*args, **kwargs) | |
4168 | ||
4169 | def GetTotalDays(*args, **kwargs): | |
4170 | """GetTotalDays(self) -> int""" | |
4171 | return _misc_.DateSpan_GetTotalDays(*args, **kwargs) | |
4172 | ||
4173 | def Add(*args, **kwargs): | |
4174 | """Add(self, DateSpan other) -> DateSpan""" | |
4175 | return _misc_.DateSpan_Add(*args, **kwargs) | |
4176 | ||
4177 | def Subtract(*args, **kwargs): | |
4178 | """Subtract(self, DateSpan other) -> DateSpan""" | |
4179 | return _misc_.DateSpan_Subtract(*args, **kwargs) | |
4180 | ||
4181 | def Neg(*args, **kwargs): | |
4182 | """Neg(self) -> DateSpan""" | |
4183 | return _misc_.DateSpan_Neg(*args, **kwargs) | |
4184 | ||
4185 | def Multiply(*args, **kwargs): | |
4186 | """Multiply(self, int factor) -> DateSpan""" | |
4187 | return _misc_.DateSpan_Multiply(*args, **kwargs) | |
4188 | ||
4189 | def __iadd__(*args, **kwargs): | |
4190 | """__iadd__(self, DateSpan other) -> DateSpan""" | |
4191 | return _misc_.DateSpan___iadd__(*args, **kwargs) | |
4192 | ||
4193 | def __isub__(*args, **kwargs): | |
4194 | """__isub__(self, DateSpan other) -> DateSpan""" | |
4195 | return _misc_.DateSpan___isub__(*args, **kwargs) | |
4196 | ||
4197 | def __neg__(*args, **kwargs): | |
4198 | """__neg__(self) -> DateSpan""" | |
4199 | return _misc_.DateSpan___neg__(*args, **kwargs) | |
4200 | ||
4201 | def __imul__(*args, **kwargs): | |
4202 | """__imul__(self, int factor) -> DateSpan""" | |
4203 | return _misc_.DateSpan___imul__(*args, **kwargs) | |
4204 | ||
4205 | def __add__(*args, **kwargs): | |
4206 | """__add__(self, DateSpan other) -> DateSpan""" | |
4207 | return _misc_.DateSpan___add__(*args, **kwargs) | |
4208 | ||
4209 | def __sub__(*args, **kwargs): | |
4210 | """__sub__(self, DateSpan other) -> DateSpan""" | |
4211 | return _misc_.DateSpan___sub__(*args, **kwargs) | |
4212 | ||
4213 | def __mul__(*args, **kwargs): | |
4214 | """__mul__(self, int n) -> DateSpan""" | |
4215 | return _misc_.DateSpan___mul__(*args, **kwargs) | |
4216 | ||
4217 | def __rmul__(*args, **kwargs): | |
4218 | """__rmul__(self, int n) -> DateSpan""" | |
4219 | return _misc_.DateSpan___rmul__(*args, **kwargs) | |
4220 | ||
4221 | def __eq__(*args, **kwargs): | |
4222 | """__eq__(self, DateSpan other) -> bool""" | |
4223 | return _misc_.DateSpan___eq__(*args, **kwargs) | |
4224 | ||
4225 | def __ne__(*args, **kwargs): | |
4226 | """__ne__(self, DateSpan other) -> bool""" | |
4227 | return _misc_.DateSpan___ne__(*args, **kwargs) | |
4228 | ||
1bd55598 RD |
4229 | DateSpan_swigregister = _misc_.DateSpan_swigregister |
4230 | DateSpan_swigregister(DateSpan) | |
d55e5bfc RD |
4231 | |
4232 | def DateSpan_Days(*args, **kwargs): | |
1bd55598 RD |
4233 | """DateSpan_Days(int days) -> DateSpan""" |
4234 | return _misc_.DateSpan_Days(*args, **kwargs) | |
d55e5bfc | 4235 | |
1bd55598 RD |
4236 | def DateSpan_Day(*args): |
4237 | """DateSpan_Day() -> DateSpan""" | |
4238 | return _misc_.DateSpan_Day(*args) | |
d55e5bfc RD |
4239 | |
4240 | def DateSpan_Weeks(*args, **kwargs): | |
1bd55598 RD |
4241 | """DateSpan_Weeks(int weeks) -> DateSpan""" |
4242 | return _misc_.DateSpan_Weeks(*args, **kwargs) | |
d55e5bfc | 4243 | |
1bd55598 RD |
4244 | def DateSpan_Week(*args): |
4245 | """DateSpan_Week() -> DateSpan""" | |
4246 | return _misc_.DateSpan_Week(*args) | |
d55e5bfc RD |
4247 | |
4248 | def DateSpan_Months(*args, **kwargs): | |
1bd55598 RD |
4249 | """DateSpan_Months(int mon) -> DateSpan""" |
4250 | return _misc_.DateSpan_Months(*args, **kwargs) | |
d55e5bfc | 4251 | |
1bd55598 RD |
4252 | def DateSpan_Month(*args): |
4253 | """DateSpan_Month() -> DateSpan""" | |
4254 | return _misc_.DateSpan_Month(*args) | |
d55e5bfc RD |
4255 | |
4256 | def DateSpan_Years(*args, **kwargs): | |
1bd55598 RD |
4257 | """DateSpan_Years(int years) -> DateSpan""" |
4258 | return _misc_.DateSpan_Years(*args, **kwargs) | |
d55e5bfc | 4259 | |
1bd55598 RD |
4260 | def DateSpan_Year(*args): |
4261 | """DateSpan_Year() -> DateSpan""" | |
4262 | return _misc_.DateSpan_Year(*args) | |
d55e5bfc RD |
4263 | |
4264 | ||
1bd55598 RD |
4265 | def GetLocalTime(*args): |
4266 | """GetLocalTime() -> long""" | |
4267 | return _misc_.GetLocalTime(*args) | |
d55e5bfc | 4268 | |
1bd55598 RD |
4269 | def GetUTCTime(*args): |
4270 | """GetUTCTime() -> long""" | |
4271 | return _misc_.GetUTCTime(*args) | |
d55e5bfc | 4272 | |
1bd55598 RD |
4273 | def GetCurrentTime(*args): |
4274 | """GetCurrentTime() -> long""" | |
4275 | return _misc_.GetCurrentTime(*args) | |
d55e5bfc | 4276 | |
1bd55598 RD |
4277 | def GetLocalTimeMillis(*args): |
4278 | """GetLocalTimeMillis() -> wxLongLong""" | |
4279 | return _misc_.GetLocalTimeMillis(*args) | |
d55e5bfc RD |
4280 | #--------------------------------------------------------------------------- |
4281 | ||
4282 | DF_INVALID = _misc_.DF_INVALID | |
4283 | DF_TEXT = _misc_.DF_TEXT | |
4284 | DF_BITMAP = _misc_.DF_BITMAP | |
4285 | DF_METAFILE = _misc_.DF_METAFILE | |
4286 | DF_SYLK = _misc_.DF_SYLK | |
4287 | DF_DIF = _misc_.DF_DIF | |
4288 | DF_TIFF = _misc_.DF_TIFF | |
4289 | DF_OEMTEXT = _misc_.DF_OEMTEXT | |
4290 | DF_DIB = _misc_.DF_DIB | |
4291 | DF_PALETTE = _misc_.DF_PALETTE | |
4292 | DF_PENDATA = _misc_.DF_PENDATA | |
4293 | DF_RIFF = _misc_.DF_RIFF | |
4294 | DF_WAVE = _misc_.DF_WAVE | |
4295 | DF_UNICODETEXT = _misc_.DF_UNICODETEXT | |
4296 | DF_ENHMETAFILE = _misc_.DF_ENHMETAFILE | |
4297 | DF_FILENAME = _misc_.DF_FILENAME | |
4298 | DF_LOCALE = _misc_.DF_LOCALE | |
4299 | DF_PRIVATE = _misc_.DF_PRIVATE | |
4300 | DF_HTML = _misc_.DF_HTML | |
4301 | DF_MAX = _misc_.DF_MAX | |
4302 | class DataFormat(object): | |
4303 | """ | |
4304 | A wx.DataFormat is an encapsulation of a platform-specific format | |
15817c7e RD |
4305 | handle which is used by the system for the clipboard and drag and drop |
4306 | operations. The applications are usually only interested in, for | |
4307 | example, pasting data from the clipboard only if the data is in a | |
4308 | format the program understands. A data format is is used to uniquely | |
4309 | identify this format. | |
d55e5bfc | 4310 | """ |
1bd55598 RD |
4311 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4312 | __repr__ = _swig_repr | |
4313 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4314 | """ |
4315 | __init__(self, int type) -> DataFormat | |
4316 | ||
15817c7e RD |
4317 | Constructs a data format object for one of the standard data formats |
4318 | or an empty data object (use SetType or SetId later in this case) | |
d55e5bfc | 4319 | """ |
1bd55598 RD |
4320 | _misc_.DataFormat_swiginit(self,_misc_.new_DataFormat(*args, **kwargs)) |
4321 | __swig_destroy__ = _misc_.delete_DataFormat | |
4322 | __del__ = lambda self : None; | |
d55e5bfc RD |
4323 | def __eq__(*args): |
4324 | """ | |
4325 | __eq__(self, int format) -> bool | |
4326 | __eq__(self, DataFormat format) -> bool | |
4327 | """ | |
4328 | return _misc_.DataFormat___eq__(*args) | |
4329 | ||
4330 | def __ne__(*args): | |
4331 | """ | |
4332 | __ne__(self, int format) -> bool | |
4333 | __ne__(self, DataFormat format) -> bool | |
4334 | """ | |
4335 | return _misc_.DataFormat___ne__(*args) | |
4336 | ||
4337 | def SetType(*args, **kwargs): | |
4338 | """ | |
4339 | SetType(self, int format) | |
4340 | ||
15817c7e RD |
4341 | Sets the format to the given value, which should be one of wx.DF_XXX |
4342 | constants. | |
d55e5bfc RD |
4343 | """ |
4344 | return _misc_.DataFormat_SetType(*args, **kwargs) | |
4345 | ||
4346 | def GetType(*args, **kwargs): | |
4347 | """ | |
4348 | GetType(self) -> int | |
4349 | ||
4350 | Returns the platform-specific number identifying the format. | |
4351 | """ | |
4352 | return _misc_.DataFormat_GetType(*args, **kwargs) | |
4353 | ||
4354 | def GetId(*args, **kwargs): | |
4355 | """ | |
4356 | GetId(self) -> String | |
4357 | ||
15817c7e RD |
4358 | Returns the name of a custom format (this function will fail for a |
4359 | standard format). | |
d55e5bfc RD |
4360 | """ |
4361 | return _misc_.DataFormat_GetId(*args, **kwargs) | |
4362 | ||
4363 | def SetId(*args, **kwargs): | |
4364 | """ | |
4365 | SetId(self, String format) | |
4366 | ||
4367 | Sets the format to be the custom format identified by the given name. | |
4368 | """ | |
4369 | return _misc_.DataFormat_SetId(*args, **kwargs) | |
4370 | ||
1bd55598 RD |
4371 | DataFormat_swigregister = _misc_.DataFormat_swigregister |
4372 | DataFormat_swigregister(DataFormat) | |
d55e5bfc RD |
4373 | DefaultDateTime = cvar.DefaultDateTime |
4374 | ||
4375 | def CustomDataFormat(*args, **kwargs): | |
4376 | """ | |
4377 | CustomDataFormat(String format) -> DataFormat | |
4378 | ||
15817c7e RD |
4379 | Constructs a data format object for a custom format identified by its |
4380 | name. | |
d55e5bfc RD |
4381 | """ |
4382 | val = _misc_.new_CustomDataFormat(*args, **kwargs) | |
d55e5bfc RD |
4383 | return val |
4384 | ||
4385 | class DataObject(object): | |
68e533f8 RD |
4386 | """ |
4387 | A wx.DataObject represents data that can be copied to or from the | |
4388 | clipboard, or dragged and dropped. The important thing about | |
4389 | wx.DataObject is that this is a 'smart' piece of data unlike usual | |
4390 | 'dumb' data containers such as memory buffers or files. Being 'smart' | |
4391 | here means that the data object itself should know what data formats | |
4392 | it supports and how to render itself in each of supported formats. | |
4393 | ||
4394 | **NOTE**: This class is an abstract base class and can not be used | |
4395 | directly from Python. If you need a custom type of data object then | |
4396 | you should instead derive from `wx.PyDataObjectSimple` or use | |
4397 | `wx.CustomDataObject`. | |
4398 | ||
4399 | """ | |
1bd55598 RD |
4400 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4401 | def __init__(self): raise AttributeError, "No constructor defined" | |
4402 | __repr__ = _swig_repr | |
d55e5bfc RD |
4403 | Get = _misc_.DataObject_Get |
4404 | Set = _misc_.DataObject_Set | |
4405 | Both = _misc_.DataObject_Both | |
1bd55598 RD |
4406 | __swig_destroy__ = _misc_.delete_DataObject |
4407 | __del__ = lambda self : None; | |
d55e5bfc | 4408 | def GetPreferredFormat(*args, **kwargs): |
68e533f8 RD |
4409 | """ |
4410 | GetPreferredFormat(self, int dir=Get) -> DataFormat | |
4411 | ||
4412 | Returns the preferred format for either rendering the data (if dir is | |
4413 | Get, its default value) or for setting it. Usually this will be the | |
4414 | native format of the wx.DataObject. | |
4415 | """ | |
d55e5bfc RD |
4416 | return _misc_.DataObject_GetPreferredFormat(*args, **kwargs) |
4417 | ||
4418 | def GetFormatCount(*args, **kwargs): | |
68e533f8 RD |
4419 | """ |
4420 | GetFormatCount(self, int dir=Get) -> size_t | |
4421 | ||
4422 | Returns the number of available formats for rendering or setting the | |
4423 | data. | |
4424 | """ | |
d55e5bfc RD |
4425 | return _misc_.DataObject_GetFormatCount(*args, **kwargs) |
4426 | ||
4427 | def IsSupported(*args, **kwargs): | |
68e533f8 RD |
4428 | """ |
4429 | IsSupported(self, DataFormat format, int dir=Get) -> bool | |
4430 | ||
4431 | Returns True if this format is supported. | |
4432 | """ | |
d55e5bfc RD |
4433 | return _misc_.DataObject_IsSupported(*args, **kwargs) |
4434 | ||
4435 | def GetDataSize(*args, **kwargs): | |
68e533f8 RD |
4436 | """ |
4437 | GetDataSize(self, DataFormat format) -> size_t | |
4438 | ||
4439 | Get the (total) size of data for the given format | |
4440 | """ | |
d55e5bfc RD |
4441 | return _misc_.DataObject_GetDataSize(*args, **kwargs) |
4442 | ||
4443 | def GetAllFormats(*args, **kwargs): | |
68e533f8 RD |
4444 | """ |
4445 | GetAllFormats(self, int dir=Get) -> [formats] | |
4446 | ||
4447 | Returns a list of all the wx.DataFormats that this dataobject supports | |
4448 | in the given direction. | |
4449 | """ | |
d55e5bfc RD |
4450 | return _misc_.DataObject_GetAllFormats(*args, **kwargs) |
4451 | ||
4452 | def GetDataHere(*args, **kwargs): | |
68e533f8 RD |
4453 | """ |
4454 | GetDataHere(self, DataFormat format) -> String | |
4455 | ||
4456 | Get the data bytes in the specified format, returns None on failure. | |
68e533f8 | 4457 | """ |
d55e5bfc RD |
4458 | return _misc_.DataObject_GetDataHere(*args, **kwargs) |
4459 | ||
4460 | def SetData(*args, **kwargs): | |
68e533f8 RD |
4461 | """ |
4462 | SetData(self, DataFormat format, String data) -> bool | |
4463 | ||
4464 | Set the data in the specified format from the bytes in the the data string. | |
4465 | ||
4466 | """ | |
d55e5bfc RD |
4467 | return _misc_.DataObject_SetData(*args, **kwargs) |
4468 | ||
1bd55598 RD |
4469 | DataObject_swigregister = _misc_.DataObject_swigregister |
4470 | DataObject_swigregister(DataObject) | |
d55e5bfc RD |
4471 | FormatInvalid = cvar.FormatInvalid |
4472 | ||
4473 | class DataObjectSimple(DataObject): | |
68e533f8 RD |
4474 | """ |
4475 | wx.DataObjectSimple is a `wx.DataObject` which only supports one | |
4476 | format. This is the simplest possible `wx.DataObject` implementation. | |
4477 | ||
4478 | This is still an "abstract base class" meaning that you can't use it | |
4479 | directly. You either need to use one of the predefined base classes, | |
4480 | or derive your own class from `wx.PyDataObjectSimple`. | |
4481 | ||
4482 | """ | |
1bd55598 RD |
4483 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4484 | __repr__ = _swig_repr | |
4485 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4486 | """ |
4487 | __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple | |
4488 | ||
4489 | Constructor accepts the supported format (none by default) which may | |
4490 | also be set later with `SetFormat`. | |
4491 | """ | |
1bd55598 | 4492 | _misc_.DataObjectSimple_swiginit(self,_misc_.new_DataObjectSimple(*args, **kwargs)) |
d55e5bfc | 4493 | def GetFormat(*args, **kwargs): |
68e533f8 RD |
4494 | """ |
4495 | GetFormat(self) -> DataFormat | |
4496 | ||
4497 | Returns the (one and only one) format supported by this object. It is | |
4498 | assumed that the format is supported in both directions. | |
4499 | """ | |
d55e5bfc RD |
4500 | return _misc_.DataObjectSimple_GetFormat(*args, **kwargs) |
4501 | ||
4502 | def SetFormat(*args, **kwargs): | |
68e533f8 RD |
4503 | """ |
4504 | SetFormat(self, DataFormat format) | |
4505 | ||
4506 | Sets the supported format. | |
4507 | """ | |
d55e5bfc RD |
4508 | return _misc_.DataObjectSimple_SetFormat(*args, **kwargs) |
4509 | ||
68e533f8 RD |
4510 | def GetDataSize(*args, **kwargs): |
4511 | """ | |
4512 | GetDataSize(self) -> size_t | |
4513 | ||
4514 | Get the size of our data. | |
4515 | """ | |
4516 | return _misc_.DataObjectSimple_GetDataSize(*args, **kwargs) | |
4517 | ||
4518 | def GetDataHere(*args, **kwargs): | |
4519 | """ | |
4520 | GetDataHere(self) -> String | |
4521 | ||
4522 | Returns the data bytes from the data object as a string, returns None | |
4523 | on failure. Must be implemented in the derived class if the object | |
4524 | supports rendering its data. | |
4525 | """ | |
4526 | return _misc_.DataObjectSimple_GetDataHere(*args, **kwargs) | |
4527 | ||
4528 | def SetData(*args, **kwargs): | |
4529 | """ | |
4530 | SetData(self, String data) -> bool | |
4531 | ||
4532 | Copy the data value to the data object. Must be implemented in the | |
4533 | derived class if the object supports setting its data. | |
4534 | ||
4535 | """ | |
4536 | return _misc_.DataObjectSimple_SetData(*args, **kwargs) | |
4537 | ||
1bd55598 RD |
4538 | DataObjectSimple_swigregister = _misc_.DataObjectSimple_swigregister |
4539 | DataObjectSimple_swigregister(DataObjectSimple) | |
d55e5bfc RD |
4540 | |
4541 | class PyDataObjectSimple(DataObjectSimple): | |
68e533f8 RD |
4542 | """ |
4543 | wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is | |
4544 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4545 | to methods in the Python derived class. You should derive from this | |
4546 | class and overload `GetDataSize`, `GetDataHere` and `SetData` when you | |
4547 | need to create your own simple single-format type of `wx.DataObject`. | |
4548 | ||
4549 | """ | |
1bd55598 RD |
4550 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4551 | __repr__ = _swig_repr | |
4552 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4553 | """ |
4554 | __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple | |
4555 | ||
4556 | wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is | |
4557 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4558 | to methods in the Python derived class. You should derive from this | |
4559 | class and overload `GetDataSize`, `GetDataHere` and `SetData` when you | |
4560 | need to create your own simple single-format type of `wx.DataObject`. | |
4561 | ||
4562 | """ | |
1bd55598 | 4563 | _misc_.PyDataObjectSimple_swiginit(self,_misc_.new_PyDataObjectSimple(*args, **kwargs)) |
d55e5bfc RD |
4564 | self._setCallbackInfo(self, PyDataObjectSimple) |
4565 | ||
4566 | def _setCallbackInfo(*args, **kwargs): | |
4567 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4568 | return _misc_.PyDataObjectSimple__setCallbackInfo(*args, **kwargs) | |
4569 | ||
1bd55598 RD |
4570 | PyDataObjectSimple_swigregister = _misc_.PyDataObjectSimple_swigregister |
4571 | PyDataObjectSimple_swigregister(PyDataObjectSimple) | |
d55e5bfc RD |
4572 | |
4573 | class DataObjectComposite(DataObject): | |
68e533f8 RD |
4574 | """ |
4575 | wx.DataObjectComposite is the simplest `wx.DataObject` derivation | |
4576 | which may be sued to support multiple formats. It contains several | |
4577 | 'wx.DataObjectSimple` objects and supports any format supported by at | |
4578 | least one of them. Only one of these data objects is *preferred* (the | |
4579 | first one if not explicitly changed by using the second parameter of | |
4580 | `Add`) and its format determines the preferred format of the composite | |
4581 | data object as well. | |
4582 | ||
4583 | See `wx.DataObject` documentation for the reasons why you might prefer | |
4584 | to use wx.DataObject directly instead of wx.DataObjectComposite for | |
4585 | efficiency reasons. | |
4586 | ||
4587 | """ | |
1bd55598 RD |
4588 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4589 | __repr__ = _swig_repr | |
4590 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4591 | """ |
4592 | __init__(self) -> DataObjectComposite | |
4593 | ||
4594 | wx.DataObjectComposite is the simplest `wx.DataObject` derivation | |
4595 | which may be sued to support multiple formats. It contains several | |
4596 | 'wx.DataObjectSimple` objects and supports any format supported by at | |
4597 | least one of them. Only one of these data objects is *preferred* (the | |
4598 | first one if not explicitly changed by using the second parameter of | |
4599 | `Add`) and its format determines the preferred format of the composite | |
4600 | data object as well. | |
4601 | ||
4602 | See `wx.DataObject` documentation for the reasons why you might prefer | |
4603 | to use wx.DataObject directly instead of wx.DataObjectComposite for | |
4604 | efficiency reasons. | |
4605 | ||
4606 | """ | |
1bd55598 | 4607 | _misc_.DataObjectComposite_swiginit(self,_misc_.new_DataObjectComposite(*args, **kwargs)) |
d55e5bfc | 4608 | def Add(*args, **kwargs): |
68e533f8 RD |
4609 | """ |
4610 | Add(self, DataObjectSimple dataObject, bool preferred=False) | |
4611 | ||
4612 | Adds the dataObject to the list of supported objects and it becomes | |
4613 | the preferred object if preferred is True. | |
4614 | """ | |
d55e5bfc RD |
4615 | return _misc_.DataObjectComposite_Add(*args, **kwargs) |
4616 | ||
e9d6f3a4 RD |
4617 | def GetReceivedFormat(*args, **kwargs): |
4618 | """ | |
4619 | GetReceivedFormat(self) -> DataFormat | |
4620 | ||
4621 | Report the format passed to the `SetData` method. This should be the | |
4622 | format of the data object within the composite that recieved data from | |
4623 | the clipboard or the DnD operation. You can use this method to find | |
4624 | out what kind of data object was recieved. | |
4625 | """ | |
4626 | return _misc_.DataObjectComposite_GetReceivedFormat(*args, **kwargs) | |
4627 | ||
1bd55598 RD |
4628 | DataObjectComposite_swigregister = _misc_.DataObjectComposite_swigregister |
4629 | DataObjectComposite_swigregister(DataObjectComposite) | |
d55e5bfc RD |
4630 | |
4631 | class TextDataObject(DataObjectSimple): | |
68e533f8 RD |
4632 | """ |
4633 | wx.TextDataObject is a specialization of `wx.DataObject` for text | |
4634 | data. It can be used without change to paste data into the `wx.Clipboard` | |
4635 | or a `wx.DropSource`. | |
4636 | ||
4637 | Alternativly, you may wish to derive a new class from the | |
4638 | `wx.PyTextDataObject` class for providing text on-demand in order to | |
4639 | minimize memory consumption when offering data in several formats, | |
4640 | such as plain text and RTF, because by default the text is stored in a | |
4641 | string in this class, but it might as well be generated on demand when | |
4642 | requested. For this, `GetTextLength` and `GetText` will have to be | |
4643 | overridden. | |
4644 | """ | |
1bd55598 RD |
4645 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4646 | __repr__ = _swig_repr | |
4647 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4648 | """ |
4649 | __init__(self, String text=EmptyString) -> TextDataObject | |
4650 | ||
4651 | Constructor, may be used to initialise the text (otherwise `SetText` | |
4652 | should be used later). | |
4653 | """ | |
1bd55598 | 4654 | _misc_.TextDataObject_swiginit(self,_misc_.new_TextDataObject(*args, **kwargs)) |
d55e5bfc | 4655 | def GetTextLength(*args, **kwargs): |
68e533f8 RD |
4656 | """ |
4657 | GetTextLength(self) -> size_t | |
4658 | ||
4659 | Returns the data size. By default, returns the size of the text data | |
4660 | set in the constructor or using `SetText`. This can be overridden (via | |
4661 | `wx.PyTextDataObject`) to provide text size data on-demand. It is | |
4662 | recommended to return the text length plus 1 for a trailing zero, but | |
4663 | this is not strictly required. | |
4664 | """ | |
d55e5bfc RD |
4665 | return _misc_.TextDataObject_GetTextLength(*args, **kwargs) |
4666 | ||
4667 | def GetText(*args, **kwargs): | |
68e533f8 RD |
4668 | """ |
4669 | GetText(self) -> String | |
4670 | ||
4671 | Returns the text associated with the data object. | |
4672 | """ | |
d55e5bfc RD |
4673 | return _misc_.TextDataObject_GetText(*args, **kwargs) |
4674 | ||
4675 | def SetText(*args, **kwargs): | |
68e533f8 RD |
4676 | """ |
4677 | SetText(self, String text) | |
4678 | ||
4679 | Sets the text associated with the data object. This method is called | |
4680 | when the data object receives the data and, by default, copies the | |
4681 | text into the member variable. If you want to process the text on the | |
4682 | fly you may wish to override this function (via | |
4683 | `wx.PyTextDataObject`.) | |
4684 | """ | |
d55e5bfc RD |
4685 | return _misc_.TextDataObject_SetText(*args, **kwargs) |
4686 | ||
1bd55598 RD |
4687 | TextDataObject_swigregister = _misc_.TextDataObject_swigregister |
4688 | TextDataObject_swigregister(TextDataObject) | |
d55e5bfc RD |
4689 | |
4690 | class PyTextDataObject(TextDataObject): | |
68e533f8 RD |
4691 | """ |
4692 | wx.PyTextDataObject is a version of `wx.TextDataObject` that is | |
4693 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4694 | to methods in the Python derived class. You should derive from this | |
4695 | class and overload `GetTextLength`, `GetText`, and `SetText` when you | |
4696 | want to be able to provide text on demand instead of preloading it | |
4697 | into the data object. | |
4698 | """ | |
1bd55598 RD |
4699 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4700 | __repr__ = _swig_repr | |
4701 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4702 | """ |
4703 | __init__(self, String text=EmptyString) -> PyTextDataObject | |
4704 | ||
4705 | wx.PyTextDataObject is a version of `wx.TextDataObject` that is | |
4706 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4707 | to methods in the Python derived class. You should derive from this | |
4708 | class and overload `GetTextLength`, `GetText`, and `SetText` when you | |
4709 | want to be able to provide text on demand instead of preloading it | |
4710 | into the data object. | |
4711 | """ | |
1bd55598 | 4712 | _misc_.PyTextDataObject_swiginit(self,_misc_.new_PyTextDataObject(*args, **kwargs)) |
d55e5bfc RD |
4713 | self._setCallbackInfo(self, PyTextDataObject) |
4714 | ||
4715 | def _setCallbackInfo(*args, **kwargs): | |
4716 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4717 | return _misc_.PyTextDataObject__setCallbackInfo(*args, **kwargs) | |
4718 | ||
1bd55598 RD |
4719 | PyTextDataObject_swigregister = _misc_.PyTextDataObject_swigregister |
4720 | PyTextDataObject_swigregister(PyTextDataObject) | |
d55e5bfc RD |
4721 | |
4722 | class BitmapDataObject(DataObjectSimple): | |
68e533f8 RD |
4723 | """ |
4724 | wx.BitmapDataObject is a specialization of wxDataObject for bitmap | |
4725 | data. It can be used without change to paste data into the `wx.Clipboard` | |
4726 | or a `wx.DropSource`. | |
4727 | ||
4728 | """ | |
1bd55598 RD |
4729 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4730 | __repr__ = _swig_repr | |
4731 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4732 | """ |
4733 | __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject | |
4734 | ||
4735 | Constructor, optionally passing a bitmap (otherwise use `SetBitmap` | |
4736 | later). | |
4737 | """ | |
1bd55598 | 4738 | _misc_.BitmapDataObject_swiginit(self,_misc_.new_BitmapDataObject(*args, **kwargs)) |
d55e5bfc | 4739 | def GetBitmap(*args, **kwargs): |
68e533f8 RD |
4740 | """ |
4741 | GetBitmap(self) -> Bitmap | |
4742 | ||
4743 | Returns the bitmap associated with the data object. You may wish to | |
4744 | override this method (by deriving from `wx.PyBitmapDataObject`) when | |
4745 | offering data on-demand, but this is not required by wxWidgets' | |
4746 | internals. Use this method to get data in bitmap form from the | |
4747 | `wx.Clipboard`. | |
4748 | """ | |
d55e5bfc RD |
4749 | return _misc_.BitmapDataObject_GetBitmap(*args, **kwargs) |
4750 | ||
4751 | def SetBitmap(*args, **kwargs): | |
68e533f8 RD |
4752 | """ |
4753 | SetBitmap(self, Bitmap bitmap) | |
4754 | ||
4755 | Sets the bitmap associated with the data object. This method is called | |
4756 | when the data object receives data. Usually there will be no reason to | |
4757 | override this function. | |
4758 | """ | |
d55e5bfc RD |
4759 | return _misc_.BitmapDataObject_SetBitmap(*args, **kwargs) |
4760 | ||
1bd55598 RD |
4761 | BitmapDataObject_swigregister = _misc_.BitmapDataObject_swigregister |
4762 | BitmapDataObject_swigregister(BitmapDataObject) | |
d55e5bfc RD |
4763 | |
4764 | class PyBitmapDataObject(BitmapDataObject): | |
68e533f8 RD |
4765 | """ |
4766 | wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is | |
4767 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4768 | to methods in the Python derived class. To be able to provide bitmap | |
4769 | data on demand derive from this class and overload `GetBitmap`. | |
4770 | """ | |
1bd55598 RD |
4771 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4772 | __repr__ = _swig_repr | |
4773 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4774 | """ |
4775 | __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject | |
4776 | ||
4777 | wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is | |
4778 | Python-aware and knows how to reflect calls to its C++ virtual methods | |
4779 | to methods in the Python derived class. To be able to provide bitmap | |
4780 | data on demand derive from this class and overload `GetBitmap`. | |
4781 | """ | |
1bd55598 | 4782 | _misc_.PyBitmapDataObject_swiginit(self,_misc_.new_PyBitmapDataObject(*args, **kwargs)) |
d55e5bfc RD |
4783 | self._setCallbackInfo(self, PyBitmapDataObject) |
4784 | ||
4785 | def _setCallbackInfo(*args, **kwargs): | |
4786 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4787 | return _misc_.PyBitmapDataObject__setCallbackInfo(*args, **kwargs) | |
4788 | ||
1bd55598 RD |
4789 | PyBitmapDataObject_swigregister = _misc_.PyBitmapDataObject_swigregister |
4790 | PyBitmapDataObject_swigregister(PyBitmapDataObject) | |
d55e5bfc RD |
4791 | |
4792 | class FileDataObject(DataObjectSimple): | |
68e533f8 RD |
4793 | """ |
4794 | wx.FileDataObject is a specialization of `wx.DataObjectSimple` for | |
4795 | file names. The program works with it just as if it were a list of | |
4796 | absolute file names, but internally it uses the same format as | |
4797 | Explorer and other compatible programs under Windows or GNOME/KDE | |
4798 | filemanager under Unix which makes it possible to receive files from | |
4799 | them using this class. | |
68e533f8 | 4800 | """ |
1bd55598 RD |
4801 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4802 | __repr__ = _swig_repr | |
4803 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4804 | """__init__(self) -> FileDataObject""" |
1bd55598 | 4805 | _misc_.FileDataObject_swiginit(self,_misc_.new_FileDataObject(*args, **kwargs)) |
d55e5bfc | 4806 | def GetFilenames(*args, **kwargs): |
a001823c RD |
4807 | """ |
4808 | GetFilenames(self) -> [names] | |
4809 | ||
4810 | Returns a list of file names. | |
4811 | """ | |
d55e5bfc RD |
4812 | return _misc_.FileDataObject_GetFilenames(*args, **kwargs) |
4813 | ||
4814 | def AddFile(*args, **kwargs): | |
68e533f8 RD |
4815 | """ |
4816 | AddFile(self, String filename) | |
4817 | ||
4818 | Adds a file to the list of files represented by this data object. | |
4819 | """ | |
d55e5bfc RD |
4820 | return _misc_.FileDataObject_AddFile(*args, **kwargs) |
4821 | ||
1bd55598 RD |
4822 | FileDataObject_swigregister = _misc_.FileDataObject_swigregister |
4823 | FileDataObject_swigregister(FileDataObject) | |
d55e5bfc RD |
4824 | |
4825 | class CustomDataObject(DataObjectSimple): | |
68e533f8 RD |
4826 | """ |
4827 | wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for | |
4828 | some application-specific data in arbitrary format. Python strings | |
4829 | are used for getting and setting data, but any picklable object can | |
4830 | easily be transfered via strings. A copy of the data is stored in the | |
4831 | data object. | |
4832 | """ | |
1bd55598 RD |
4833 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4834 | __repr__ = _swig_repr | |
4835 | def __init__(self, *args): | |
68e533f8 | 4836 | """ |
fef4c27a RD |
4837 | __init__(self, DataFormat format) -> CustomDataObject |
4838 | __init__(self, String formatName) -> CustomDataObject | |
4839 | __init__(self) -> CustomDataObject | |
68e533f8 RD |
4840 | |
4841 | wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for | |
4842 | some application-specific data in arbitrary format. Python strings | |
4843 | are used for getting and setting data, but any picklable object can | |
4844 | easily be transfered via strings. A copy of the data is stored in the | |
4845 | data object. | |
4846 | """ | |
1bd55598 | 4847 | _misc_.CustomDataObject_swiginit(self,_misc_.new_CustomDataObject(*args)) |
d55e5bfc | 4848 | def SetData(*args, **kwargs): |
68e533f8 RD |
4849 | """ |
4850 | SetData(self, String data) -> bool | |
4851 | ||
4852 | Copy the data value to the data object. | |
4853 | """ | |
d55e5bfc RD |
4854 | return _misc_.CustomDataObject_SetData(*args, **kwargs) |
4855 | ||
68e533f8 | 4856 | TakeData = SetData |
d55e5bfc | 4857 | def GetSize(*args, **kwargs): |
68e533f8 RD |
4858 | """ |
4859 | GetSize(self) -> size_t | |
4860 | ||
4861 | Get the size of the data. | |
4862 | """ | |
d55e5bfc RD |
4863 | return _misc_.CustomDataObject_GetSize(*args, **kwargs) |
4864 | ||
4865 | def GetData(*args, **kwargs): | |
68e533f8 RD |
4866 | """ |
4867 | GetData(self) -> String | |
4868 | ||
4869 | Returns the data bytes from the data object as a string. | |
4870 | """ | |
d55e5bfc RD |
4871 | return _misc_.CustomDataObject_GetData(*args, **kwargs) |
4872 | ||
1bd55598 RD |
4873 | CustomDataObject_swigregister = _misc_.CustomDataObject_swigregister |
4874 | CustomDataObject_swigregister(CustomDataObject) | |
d55e5bfc | 4875 | |
32fe5131 | 4876 | class URLDataObject(DataObject): |
68e533f8 RD |
4877 | """ |
4878 | This data object holds a URL in a format that is compatible with some | |
4879 | browsers such that it is able to be dragged to or from them. | |
4880 | """ | |
1bd55598 RD |
4881 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4882 | __repr__ = _swig_repr | |
4883 | def __init__(self, *args, **kwargs): | |
68e533f8 RD |
4884 | """ |
4885 | __init__(self) -> URLDataObject | |
4886 | ||
4887 | This data object holds a URL in a format that is compatible with some | |
4888 | browsers such that it is able to be dragged to or from them. | |
4889 | """ | |
1bd55598 | 4890 | _misc_.URLDataObject_swiginit(self,_misc_.new_URLDataObject(*args, **kwargs)) |
d55e5bfc | 4891 | def GetURL(*args, **kwargs): |
68e533f8 RD |
4892 | """ |
4893 | GetURL(self) -> String | |
4894 | ||
4895 | Returns a string containing the current URL. | |
4896 | """ | |
d55e5bfc RD |
4897 | return _misc_.URLDataObject_GetURL(*args, **kwargs) |
4898 | ||
4899 | def SetURL(*args, **kwargs): | |
68e533f8 RD |
4900 | """ |
4901 | SetURL(self, String url) | |
4902 | ||
4903 | Set the URL. | |
4904 | """ | |
d55e5bfc RD |
4905 | return _misc_.URLDataObject_SetURL(*args, **kwargs) |
4906 | ||
1bd55598 RD |
4907 | URLDataObject_swigregister = _misc_.URLDataObject_swigregister |
4908 | URLDataObject_swigregister(URLDataObject) | |
d55e5bfc RD |
4909 | |
4910 | class MetafileDataObject(DataObjectSimple): | |
36ed4f51 | 4911 | """Proxy of C++ MetafileDataObject class""" |
1bd55598 RD |
4912 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4913 | __repr__ = _swig_repr | |
4914 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4915 | """__init__(self) -> MetafileDataObject""" |
1bd55598 | 4916 | _misc_.MetafileDataObject_swiginit(self,_misc_.new_MetafileDataObject(*args, **kwargs)) |
d55e5bfc RD |
4917 | def SetMetafile(*args, **kwargs): |
4918 | """SetMetafile(self, wxMetafile metafile)""" | |
4919 | return _misc_.MetafileDataObject_SetMetafile(*args, **kwargs) | |
4920 | ||
4921 | def GetMetafile(*args, **kwargs): | |
4922 | """GetMetafile(self) -> wxMetafile""" | |
4923 | return _misc_.MetafileDataObject_GetMetafile(*args, **kwargs) | |
4924 | ||
1bd55598 RD |
4925 | MetafileDataObject_swigregister = _misc_.MetafileDataObject_swigregister |
4926 | MetafileDataObject_swigregister(MetafileDataObject) | |
d55e5bfc RD |
4927 | |
4928 | #--------------------------------------------------------------------------- | |
4929 | ||
4930 | Drag_CopyOnly = _misc_.Drag_CopyOnly | |
4931 | Drag_AllowMove = _misc_.Drag_AllowMove | |
4932 | Drag_DefaultMove = _misc_.Drag_DefaultMove | |
4933 | DragError = _misc_.DragError | |
4934 | DragNone = _misc_.DragNone | |
4935 | DragCopy = _misc_.DragCopy | |
4936 | DragMove = _misc_.DragMove | |
4937 | DragLink = _misc_.DragLink | |
4938 | DragCancel = _misc_.DragCancel | |
4939 | ||
4940 | def IsDragResultOk(*args, **kwargs): | |
1bd55598 RD |
4941 | """IsDragResultOk(int res) -> bool""" |
4942 | return _misc_.IsDragResultOk(*args, **kwargs) | |
d55e5bfc | 4943 | class DropSource(object): |
36ed4f51 | 4944 | """Proxy of C++ DropSource class""" |
1bd55598 RD |
4945 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4946 | __repr__ = _swig_repr | |
4947 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4948 | """ |
4949 | __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor, | |
4950 | Cursor none=wxNullCursor) -> DropSource | |
4951 | """ | |
1bd55598 | 4952 | _misc_.DropSource_swiginit(self,_misc_.new_DropSource(*args, **kwargs)) |
e058867b RD |
4953 | self._setCallbackInfo(self, DropSource, 0) |
4954 | ||
d55e5bfc RD |
4955 | def _setCallbackInfo(*args, **kwargs): |
4956 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" | |
4957 | return _misc_.DropSource__setCallbackInfo(*args, **kwargs) | |
4958 | ||
1bd55598 RD |
4959 | __swig_destroy__ = _misc_.delete_DropSource |
4960 | __del__ = lambda self : None; | |
d55e5bfc RD |
4961 | def SetData(*args, **kwargs): |
4962 | """SetData(self, DataObject data)""" | |
4963 | return _misc_.DropSource_SetData(*args, **kwargs) | |
4964 | ||
4965 | def GetDataObject(*args, **kwargs): | |
4966 | """GetDataObject(self) -> DataObject""" | |
4967 | return _misc_.DropSource_GetDataObject(*args, **kwargs) | |
4968 | ||
4969 | def SetCursor(*args, **kwargs): | |
4970 | """SetCursor(self, int res, Cursor cursor)""" | |
4971 | return _misc_.DropSource_SetCursor(*args, **kwargs) | |
4972 | ||
4973 | def DoDragDrop(*args, **kwargs): | |
4974 | """DoDragDrop(self, int flags=Drag_CopyOnly) -> int""" | |
4975 | return _misc_.DropSource_DoDragDrop(*args, **kwargs) | |
4976 | ||
7f7aa166 RD |
4977 | def GiveFeedback(*args, **kwargs): |
4978 | """GiveFeedback(self, int effect) -> bool""" | |
4979 | return _misc_.DropSource_GiveFeedback(*args, **kwargs) | |
4980 | ||
4981 | def base_GiveFeedback(*args, **kw): | |
4982 | return DropSource.GiveFeedback(*args, **kw) | |
4983 | base_GiveFeedback = wx._deprecated(base_GiveFeedback, | |
4984 | "Please use DropSource.GiveFeedback instead.") | |
d55e5bfc | 4985 | |
1bd55598 RD |
4986 | DropSource_swigregister = _misc_.DropSource_swigregister |
4987 | DropSource_swigregister(DropSource) | |
d55e5bfc | 4988 | |
976dbff5 RD |
4989 | def DROP_ICON(filename): |
4990 | """ | |
4991 | Returns either a `wx.Cursor` or `wx.Icon` created from the image file | |
4992 | ``filename``. This function is useful with the `wx.DropSource` class | |
4993 | which, depending on platform accepts either a icon or a cursor. | |
4994 | """ | |
4995 | img = wx.Image(filename) | |
4996 | if wx.Platform == '__WXGTK__': | |
4997 | return wx.IconFromBitmap(wx.BitmapFromImage(img)) | |
4998 | else: | |
4999 | return wx.CursorFromImage(img) | |
5000 | ||
d55e5bfc | 5001 | class DropTarget(object): |
36ed4f51 | 5002 | """Proxy of C++ DropTarget class""" |
1bd55598 RD |
5003 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5004 | __repr__ = _swig_repr | |
5005 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 5006 | """__init__(self, DataObject dataObject=None) -> DropTarget""" |
1bd55598 | 5007 | _misc_.DropTarget_swiginit(self,_misc_.new_DropTarget(*args, **kwargs)) |
d55e5bfc RD |
5008 | self._setCallbackInfo(self, DropTarget) |
5009 | ||
5010 | def _setCallbackInfo(*args, **kwargs): | |
5011 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5012 | return _misc_.DropTarget__setCallbackInfo(*args, **kwargs) | |
5013 | ||
1bd55598 RD |
5014 | __swig_destroy__ = _misc_.delete_DropTarget |
5015 | __del__ = lambda self : None; | |
d55e5bfc RD |
5016 | def GetDataObject(*args, **kwargs): |
5017 | """GetDataObject(self) -> DataObject""" | |
5018 | return _misc_.DropTarget_GetDataObject(*args, **kwargs) | |
5019 | ||
5020 | def SetDataObject(*args, **kwargs): | |
5021 | """SetDataObject(self, DataObject dataObject)""" | |
5022 | return _misc_.DropTarget_SetDataObject(*args, **kwargs) | |
5023 | ||
7f7aa166 RD |
5024 | def OnEnter(*args, **kwargs): |
5025 | """OnEnter(self, int x, int y, int def) -> int""" | |
5026 | return _misc_.DropTarget_OnEnter(*args, **kwargs) | |
5027 | ||
5028 | def OnDragOver(*args, **kwargs): | |
5029 | """OnDragOver(self, int x, int y, int def) -> int""" | |
5030 | return _misc_.DropTarget_OnDragOver(*args, **kwargs) | |
5031 | ||
5032 | def OnLeave(*args, **kwargs): | |
5033 | """OnLeave(self)""" | |
5034 | return _misc_.DropTarget_OnLeave(*args, **kwargs) | |
d55e5bfc | 5035 | |
7f7aa166 RD |
5036 | def OnDrop(*args, **kwargs): |
5037 | """OnDrop(self, int x, int y) -> bool""" | |
5038 | return _misc_.DropTarget_OnDrop(*args, **kwargs) | |
d55e5bfc | 5039 | |
7f7aa166 RD |
5040 | def base_OnEnter(*args, **kw): |
5041 | return DropTarget.OnEnter(*args, **kw) | |
5042 | base_OnEnter = wx._deprecated(base_OnEnter, | |
5043 | "Please use DropTarget.OnEnter instead.") | |
d55e5bfc | 5044 | |
7f7aa166 RD |
5045 | def base_OnDragOver(*args, **kw): |
5046 | return DropTarget.OnDragOver(*args, **kw) | |
5047 | base_OnDragOver = wx._deprecated(base_OnDragOver, | |
5048 | "Please use DropTarget.OnDragOver instead.") | |
5049 | ||
5050 | def base_OnLeave(*args, **kw): | |
5051 | return DropTarget.OnLeave(*args, **kw) | |
5052 | base_OnLeave = wx._deprecated(base_OnLeave, | |
5053 | "Please use DropTarget.OnLeave instead.") | |
5054 | ||
5055 | def base_OnDrop(*args, **kw): | |
5056 | return DropTarget.OnDrop(*args, **kw) | |
5057 | base_OnDrop = wx._deprecated(base_OnDrop, | |
5058 | "Please use DropTarget.OnDrop instead.") | |
d55e5bfc RD |
5059 | |
5060 | def GetData(*args, **kwargs): | |
5061 | """GetData(self) -> bool""" | |
5062 | return _misc_.DropTarget_GetData(*args, **kwargs) | |
5063 | ||
a95f9d4f RD |
5064 | def SetDefaultAction(*args, **kwargs): |
5065 | """SetDefaultAction(self, int action)""" | |
5066 | return _misc_.DropTarget_SetDefaultAction(*args, **kwargs) | |
5067 | ||
5068 | def GetDefaultAction(*args, **kwargs): | |
5069 | """GetDefaultAction(self) -> int""" | |
5070 | return _misc_.DropTarget_GetDefaultAction(*args, **kwargs) | |
5071 | ||
1bd55598 RD |
5072 | DropTarget_swigregister = _misc_.DropTarget_swigregister |
5073 | DropTarget_swigregister(DropTarget) | |
d55e5bfc RD |
5074 | |
5075 | PyDropTarget = DropTarget | |
5076 | class TextDropTarget(DropTarget): | |
36ed4f51 | 5077 | """Proxy of C++ TextDropTarget class""" |
1bd55598 RD |
5078 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5079 | __repr__ = _swig_repr | |
5080 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 5081 | """__init__(self) -> TextDropTarget""" |
1bd55598 | 5082 | _misc_.TextDropTarget_swiginit(self,_misc_.new_TextDropTarget(*args, **kwargs)) |
d55e5bfc RD |
5083 | self._setCallbackInfo(self, TextDropTarget) |
5084 | ||
5085 | def _setCallbackInfo(*args, **kwargs): | |
5086 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5087 | return _misc_.TextDropTarget__setCallbackInfo(*args, **kwargs) | |
5088 | ||
7f7aa166 RD |
5089 | def OnDropText(*args, **kwargs): |
5090 | """OnDropText(self, int x, int y, String text) -> bool""" | |
5091 | return _misc_.TextDropTarget_OnDropText(*args, **kwargs) | |
5092 | ||
5093 | def OnEnter(*args, **kwargs): | |
5094 | """OnEnter(self, int x, int y, int def) -> int""" | |
5095 | return _misc_.TextDropTarget_OnEnter(*args, **kwargs) | |
5096 | ||
5097 | def OnDragOver(*args, **kwargs): | |
5098 | """OnDragOver(self, int x, int y, int def) -> int""" | |
5099 | return _misc_.TextDropTarget_OnDragOver(*args, **kwargs) | |
d55e5bfc | 5100 | |
7f7aa166 RD |
5101 | def OnLeave(*args, **kwargs): |
5102 | """OnLeave(self)""" | |
5103 | return _misc_.TextDropTarget_OnLeave(*args, **kwargs) | |
d55e5bfc | 5104 | |
7f7aa166 RD |
5105 | def OnDrop(*args, **kwargs): |
5106 | """OnDrop(self, int x, int y) -> bool""" | |
5107 | return _misc_.TextDropTarget_OnDrop(*args, **kwargs) | |
d55e5bfc | 5108 | |
7f7aa166 RD |
5109 | def OnData(*args, **kwargs): |
5110 | """OnData(self, int x, int y, int def) -> int""" | |
5111 | return _misc_.TextDropTarget_OnData(*args, **kwargs) | |
d55e5bfc | 5112 | |
7f7aa166 RD |
5113 | def base_OnDropText(*args, **kw): |
5114 | return TextDropTarget.OnDropText(*args, **kw) | |
5115 | base_OnDropText = wx._deprecated(base_OnDropText, | |
5116 | "Please use TextDropTarget.OnDropText instead.") | |
5117 | ||
5118 | def base_OnEnter(*args, **kw): | |
5119 | return TextDropTarget.OnEnter(*args, **kw) | |
5120 | base_OnEnter = wx._deprecated(base_OnEnter, | |
5121 | "Please use TextDropTarget.OnEnter instead.") | |
5122 | ||
5123 | def base_OnDragOver(*args, **kw): | |
5124 | return TextDropTarget.OnDragOver(*args, **kw) | |
5125 | base_OnDragOver = wx._deprecated(base_OnDragOver, | |
5126 | "Please use TextDropTarget.OnDragOver instead.") | |
5127 | ||
5128 | def base_OnLeave(*args, **kw): | |
5129 | return TextDropTarget.OnLeave(*args, **kw) | |
5130 | base_OnLeave = wx._deprecated(base_OnLeave, | |
5131 | "Please use TextDropTarget.OnLeave instead.") | |
5132 | ||
5133 | def base_OnDrop(*args, **kw): | |
5134 | return TextDropTarget.OnDrop(*args, **kw) | |
5135 | base_OnDrop = wx._deprecated(base_OnDrop, | |
5136 | "Please use TextDropTarget.OnDrop instead.") | |
5137 | ||
5138 | def base_OnData(*args, **kw): | |
5139 | return TextDropTarget.OnData(*args, **kw) | |
5140 | base_OnData = wx._deprecated(base_OnData, | |
5141 | "Please use TextDropTarget.OnData instead.") | |
d55e5bfc | 5142 | |
1bd55598 RD |
5143 | TextDropTarget_swigregister = _misc_.TextDropTarget_swigregister |
5144 | TextDropTarget_swigregister(TextDropTarget) | |
d55e5bfc RD |
5145 | |
5146 | class FileDropTarget(DropTarget): | |
36ed4f51 | 5147 | """Proxy of C++ FileDropTarget class""" |
1bd55598 RD |
5148 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5149 | __repr__ = _swig_repr | |
5150 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 5151 | """__init__(self) -> FileDropTarget""" |
1bd55598 | 5152 | _misc_.FileDropTarget_swiginit(self,_misc_.new_FileDropTarget(*args, **kwargs)) |
d55e5bfc RD |
5153 | self._setCallbackInfo(self, FileDropTarget) |
5154 | ||
5155 | def _setCallbackInfo(*args, **kwargs): | |
5156 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5157 | return _misc_.FileDropTarget__setCallbackInfo(*args, **kwargs) | |
5158 | ||
7f7aa166 RD |
5159 | def OnDropFiles(*args, **kwargs): |
5160 | """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool""" | |
5161 | return _misc_.FileDropTarget_OnDropFiles(*args, **kwargs) | |
5162 | ||
5163 | def OnEnter(*args, **kwargs): | |
5164 | """OnEnter(self, int x, int y, int def) -> int""" | |
5165 | return _misc_.FileDropTarget_OnEnter(*args, **kwargs) | |
5166 | ||
5167 | def OnDragOver(*args, **kwargs): | |
5168 | """OnDragOver(self, int x, int y, int def) -> int""" | |
5169 | return _misc_.FileDropTarget_OnDragOver(*args, **kwargs) | |
5170 | ||
5171 | def OnLeave(*args, **kwargs): | |
5172 | """OnLeave(self)""" | |
5173 | return _misc_.FileDropTarget_OnLeave(*args, **kwargs) | |
5174 | ||
5175 | def OnDrop(*args, **kwargs): | |
5176 | """OnDrop(self, int x, int y) -> bool""" | |
5177 | return _misc_.FileDropTarget_OnDrop(*args, **kwargs) | |
5178 | ||
5179 | def OnData(*args, **kwargs): | |
5180 | """OnData(self, int x, int y, int def) -> int""" | |
5181 | return _misc_.FileDropTarget_OnData(*args, **kwargs) | |
5182 | ||
5183 | def base_OnDropFiles(*args, **kw): | |
5184 | return FileDropTarget.OnDropFiles(*args, **kw) | |
5185 | base_OnDropFiles = wx._deprecated(base_OnDropFiles, | |
5186 | "Please use FileDropTarget.OnDropFiles instead.") | |
5187 | ||
5188 | def base_OnEnter(*args, **kw): | |
5189 | return FileDropTarget.OnEnter(*args, **kw) | |
5190 | base_OnEnter = wx._deprecated(base_OnEnter, | |
5191 | "Please use FileDropTarget.OnEnter instead.") | |
5192 | ||
5193 | def base_OnDragOver(*args, **kw): | |
5194 | return FileDropTarget.OnDragOver(*args, **kw) | |
5195 | base_OnDragOver = wx._deprecated(base_OnDragOver, | |
5196 | "Please use FileDropTarget.OnDragOver instead.") | |
5197 | ||
5198 | def base_OnLeave(*args, **kw): | |
5199 | return FileDropTarget.OnLeave(*args, **kw) | |
5200 | base_OnLeave = wx._deprecated(base_OnLeave, | |
5201 | "Please use FileDropTarget.OnLeave instead.") | |
5202 | ||
5203 | def base_OnDrop(*args, **kw): | |
5204 | return FileDropTarget.OnDrop(*args, **kw) | |
5205 | base_OnDrop = wx._deprecated(base_OnDrop, | |
5206 | "Please use FileDropTarget.OnDrop instead.") | |
5207 | ||
5208 | def base_OnData(*args, **kw): | |
5209 | return FileDropTarget.OnData(*args, **kw) | |
5210 | base_OnData = wx._deprecated(base_OnData, | |
5211 | "Please use FileDropTarget.OnData instead.") | |
d55e5bfc | 5212 | |
1bd55598 RD |
5213 | FileDropTarget_swigregister = _misc_.FileDropTarget_swigregister |
5214 | FileDropTarget_swigregister(FileDropTarget) | |
d55e5bfc RD |
5215 | |
5216 | #--------------------------------------------------------------------------- | |
5217 | ||
5218 | class Clipboard(_core.Object): | |
5219 | """ | |
d6c14a4c RD |
5220 | wx.Clipboard represents the system clipboard and provides methods to |
5221 | copy data to it or paste data from it. Normally, you should only use | |
5222 | ``wx.TheClipboard`` which is a reference to a global wx.Clipboard | |
5223 | instance. | |
5224 | ||
5225 | Call ``wx.TheClipboard``'s `Open` method to get ownership of the | |
5226 | clipboard. If this operation returns True, you now own the | |
5227 | clipboard. Call `SetData` to put data on the clipboard, or `GetData` | |
5228 | to retrieve data from the clipboard. Call `Close` to close the | |
5229 | clipboard and relinquish ownership. You should keep the clipboard open | |
5230 | only momentarily. | |
d55e5bfc | 5231 | |
d6c14a4c | 5232 | :see: `wx.DataObject` |
d55e5bfc RD |
5233 | |
5234 | """ | |
1bd55598 RD |
5235 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5236 | __repr__ = _swig_repr | |
5237 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 5238 | """__init__(self) -> Clipboard""" |
1bd55598 RD |
5239 | _misc_.Clipboard_swiginit(self,_misc_.new_Clipboard(*args, **kwargs)) |
5240 | __swig_destroy__ = _misc_.delete_Clipboard | |
5241 | __del__ = lambda self : None; | |
d55e5bfc RD |
5242 | def Open(*args, **kwargs): |
5243 | """ | |
5244 | Open(self) -> bool | |
5245 | ||
d6c14a4c RD |
5246 | Call this function to open the clipboard before calling SetData and |
5247 | GetData. Call Close when you have finished with the clipboard. You | |
5248 | should keep the clipboard open for only a very short time. Returns | |
5249 | True on success. | |
d55e5bfc RD |
5250 | """ |
5251 | return _misc_.Clipboard_Open(*args, **kwargs) | |
5252 | ||
5253 | def Close(*args, **kwargs): | |
5254 | """ | |
5255 | Close(self) | |
5256 | ||
5257 | Closes the clipboard. | |
5258 | """ | |
5259 | return _misc_.Clipboard_Close(*args, **kwargs) | |
5260 | ||
5261 | def IsOpened(*args, **kwargs): | |
5262 | """ | |
5263 | IsOpened(self) -> bool | |
5264 | ||
5265 | Query whether the clipboard is opened | |
5266 | """ | |
5267 | return _misc_.Clipboard_IsOpened(*args, **kwargs) | |
5268 | ||
5269 | def AddData(*args, **kwargs): | |
5270 | """ | |
5271 | AddData(self, DataObject data) -> bool | |
5272 | ||
d6c14a4c RD |
5273 | Call this function to add the data object to the clipboard. You may |
5274 | call this function repeatedly after having cleared the clipboard. | |
d55e5bfc RD |
5275 | After this function has been called, the clipboard owns the data, so |
5276 | do not delete the data explicitly. | |
d6c14a4c RD |
5277 | |
5278 | :see: `wx.DataObject` | |
d55e5bfc RD |
5279 | """ |
5280 | return _misc_.Clipboard_AddData(*args, **kwargs) | |
5281 | ||
5282 | def SetData(*args, **kwargs): | |
5283 | """ | |
5284 | SetData(self, DataObject data) -> bool | |
5285 | ||
d6c14a4c RD |
5286 | Set the clipboard data, this is the same as `Clear` followed by |
5287 | `AddData`. | |
5288 | ||
5289 | :see: `wx.DataObject` | |
d55e5bfc RD |
5290 | """ |
5291 | return _misc_.Clipboard_SetData(*args, **kwargs) | |
5292 | ||
5293 | def IsSupported(*args, **kwargs): | |
5294 | """ | |
5295 | IsSupported(self, DataFormat format) -> bool | |
5296 | ||
5297 | Returns True if the given format is available in the data object(s) on | |
5298 | the clipboard. | |
5299 | """ | |
5300 | return _misc_.Clipboard_IsSupported(*args, **kwargs) | |
5301 | ||
5302 | def GetData(*args, **kwargs): | |
5303 | """ | |
5304 | GetData(self, DataObject data) -> bool | |
5305 | ||
d6c14a4c RD |
5306 | Call this function to fill data with data on the clipboard, if |
5307 | available in the required format. Returns true on success. | |
d55e5bfc RD |
5308 | """ |
5309 | return _misc_.Clipboard_GetData(*args, **kwargs) | |
5310 | ||
5311 | def Clear(*args, **kwargs): | |
5312 | """ | |
5313 | Clear(self) | |
5314 | ||
d6c14a4c | 5315 | Clears data from the clipboard object and also the system's clipboard |
d55e5bfc RD |
5316 | if possible. |
5317 | """ | |
5318 | return _misc_.Clipboard_Clear(*args, **kwargs) | |
5319 | ||
5320 | def Flush(*args, **kwargs): | |
5321 | """ | |
5322 | Flush(self) -> bool | |
5323 | ||
5324 | Flushes the clipboard: this means that the data which is currently on | |
d6c14a4c RD |
5325 | clipboard will stay available even after the application exits, |
5326 | possibly eating memory, otherwise the clipboard will be emptied on | |
5327 | exit. Returns False if the operation is unsuccesful for any reason. | |
d55e5bfc RD |
5328 | """ |
5329 | return _misc_.Clipboard_Flush(*args, **kwargs) | |
5330 | ||
5331 | def UsePrimarySelection(*args, **kwargs): | |
5332 | """ | |
5333 | UsePrimarySelection(self, bool primary=True) | |
5334 | ||
d6c14a4c RD |
5335 | On platforms supporting it (the X11 based platforms), selects the |
5336 | so called PRIMARY SELECTION as the clipboard as opposed to the | |
5337 | normal clipboard, if primary is True. | |
d55e5bfc RD |
5338 | """ |
5339 | return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs) | |
5340 | ||
a001823c RD |
5341 | def Get(*args, **kwargs): |
5342 | """ | |
5343 | Get() -> Clipboard | |
5344 | ||
5345 | Returns global instance (wxTheClipboard) of the object. | |
5346 | """ | |
5347 | return _misc_.Clipboard_Get(*args, **kwargs) | |
5348 | ||
5349 | Get = staticmethod(Get) | |
1bd55598 RD |
5350 | Clipboard_swigregister = _misc_.Clipboard_swigregister |
5351 | Clipboard_swigregister(Clipboard) | |
d55e5bfc | 5352 | |
1bd55598 RD |
5353 | def Clipboard_Get(*args): |
5354 | """ | |
a001823c RD |
5355 | Clipboard_Get() -> Clipboard |
5356 | ||
5357 | Returns global instance (wxTheClipboard) of the object. | |
5358 | """ | |
1bd55598 | 5359 | return _misc_.Clipboard_Get(*args) |
a001823c RD |
5360 | |
5361 | class _wxPyDelayedInitWrapper(object): | |
5362 | def __init__(self, initfunc, *args, **kwargs): | |
5363 | self._initfunc = initfunc | |
5364 | self._args = args | |
5365 | self._kwargs = kwargs | |
5366 | self._instance = None | |
5367 | def _checkInstance(self): | |
5368 | if self._instance is None: | |
943e8dfd RD |
5369 | if wx.GetApp(): |
5370 | self._instance = self._initfunc(*self._args, **self._kwargs) | |
a001823c RD |
5371 | def __getattr__(self, name): |
5372 | self._checkInstance() | |
5373 | return getattr(self._instance, name) | |
5374 | def __repr__(self): | |
5375 | self._checkInstance() | |
5376 | return repr(self._instance) | |
5377 | TheClipboard = _wxPyDelayedInitWrapper(Clipboard.Get) | |
5378 | ||
d55e5bfc RD |
5379 | class ClipboardLocker(object): |
5380 | """ | |
d6c14a4c RD |
5381 | A helpful class for opening the clipboard and automatically |
5382 | closing it when the locker is destroyed. | |
d55e5bfc | 5383 | """ |
1bd55598 RD |
5384 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5385 | __repr__ = _swig_repr | |
5386 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5387 | """ |
5388 | __init__(self, Clipboard clipboard=None) -> ClipboardLocker | |
5389 | ||
d6c14a4c RD |
5390 | A helpful class for opening the clipboard and automatically |
5391 | closing it when the locker is destroyed. | |
d55e5bfc | 5392 | """ |
1bd55598 RD |
5393 | _misc_.ClipboardLocker_swiginit(self,_misc_.new_ClipboardLocker(*args, **kwargs)) |
5394 | __swig_destroy__ = _misc_.delete_ClipboardLocker | |
5395 | __del__ = lambda self : None; | |
d55e5bfc RD |
5396 | def __nonzero__(*args, **kwargs): |
5397 | """ | |
5398 | __nonzero__(self) -> bool | |
5399 | ||
5400 | A ClipboardLocker instance evaluates to True if the clipboard was | |
5401 | successfully opened. | |
5402 | """ | |
5403 | return _misc_.ClipboardLocker___nonzero__(*args, **kwargs) | |
5404 | ||
1bd55598 RD |
5405 | ClipboardLocker_swigregister = _misc_.ClipboardLocker_swigregister |
5406 | ClipboardLocker_swigregister(ClipboardLocker) | |
d55e5bfc RD |
5407 | |
5408 | #--------------------------------------------------------------------------- | |
5409 | ||
5410 | class VideoMode(object): | |
5411 | """A simple struct containing video mode parameters for a display""" | |
1bd55598 RD |
5412 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5413 | __repr__ = _swig_repr | |
5414 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5415 | """ |
5416 | __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode | |
5417 | ||
5418 | A simple struct containing video mode parameters for a display | |
5419 | """ | |
1bd55598 RD |
5420 | _misc_.VideoMode_swiginit(self,_misc_.new_VideoMode(*args, **kwargs)) |
5421 | __swig_destroy__ = _misc_.delete_VideoMode | |
5422 | __del__ = lambda self : None; | |
d55e5bfc RD |
5423 | def Matches(*args, **kwargs): |
5424 | """ | |
5425 | Matches(self, VideoMode other) -> bool | |
5426 | ||
f52cbe90 RD |
5427 | Returns True if this mode matches the other one in the sense that all |
5428 | non-zero fields of the other mode have the same value in this | |
d55e5bfc RD |
5429 | one (except for refresh which is allowed to have a greater value) |
5430 | """ | |
5431 | return _misc_.VideoMode_Matches(*args, **kwargs) | |
5432 | ||
5433 | def GetWidth(*args, **kwargs): | |
5434 | """ | |
5435 | GetWidth(self) -> int | |
5436 | ||
15817c7e | 5437 | Returns the screen width in pixels (e.g. 640*480), 0 means unspecified |
d55e5bfc RD |
5438 | """ |
5439 | return _misc_.VideoMode_GetWidth(*args, **kwargs) | |
5440 | ||
5441 | def GetHeight(*args, **kwargs): | |
5442 | """ | |
5443 | GetHeight(self) -> int | |
5444 | ||
f52cbe90 | 5445 | Returns the screen height in pixels (e.g. 640*480), 0 means unspecified |
d55e5bfc RD |
5446 | """ |
5447 | return _misc_.VideoMode_GetHeight(*args, **kwargs) | |
5448 | ||
5449 | def GetDepth(*args, **kwargs): | |
5450 | """ | |
5451 | GetDepth(self) -> int | |
5452 | ||
15817c7e RD |
5453 | Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0 |
5454 | means unspecified/known | |
d55e5bfc RD |
5455 | """ |
5456 | return _misc_.VideoMode_GetDepth(*args, **kwargs) | |
5457 | ||
5458 | def IsOk(*args, **kwargs): | |
5459 | """ | |
5460 | IsOk(self) -> bool | |
5461 | ||
5462 | returns true if the object has been initialized | |
5463 | """ | |
5464 | return _misc_.VideoMode_IsOk(*args, **kwargs) | |
5465 | ||
5466 | def __nonzero__(self): return self.IsOk() | |
5467 | def __eq__(*args, **kwargs): | |
5468 | """__eq__(self, VideoMode other) -> bool""" | |
5469 | return _misc_.VideoMode___eq__(*args, **kwargs) | |
5470 | ||
5471 | def __ne__(*args, **kwargs): | |
5472 | """__ne__(self, VideoMode other) -> bool""" | |
5473 | return _misc_.VideoMode___ne__(*args, **kwargs) | |
5474 | ||
5475 | w = property(_misc_.VideoMode_w_get, _misc_.VideoMode_w_set) | |
5476 | h = property(_misc_.VideoMode_h_get, _misc_.VideoMode_h_set) | |
5477 | bpp = property(_misc_.VideoMode_bpp_get, _misc_.VideoMode_bpp_set) | |
5478 | refresh = property(_misc_.VideoMode_refresh_get, _misc_.VideoMode_refresh_set) | |
1bd55598 RD |
5479 | VideoMode_swigregister = _misc_.VideoMode_swigregister |
5480 | VideoMode_swigregister(VideoMode) | |
d55e5bfc RD |
5481 | |
5482 | class Display(object): | |
5483 | """Represents a display/monitor attached to the system""" | |
1bd55598 RD |
5484 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5485 | __repr__ = _swig_repr | |
5486 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5487 | """ |
5488 | __init__(self, size_t index=0) -> Display | |
5489 | ||
15817c7e RD |
5490 | Set up a Display instance with the specified display. The displays |
5491 | are numbered from 0 to GetCount() - 1, 0 is always the primary display | |
5492 | and the only one which is always supported | |
d55e5bfc | 5493 | """ |
1bd55598 RD |
5494 | _misc_.Display_swiginit(self,_misc_.new_Display(*args, **kwargs)) |
5495 | __swig_destroy__ = _misc_.delete_Display | |
5496 | __del__ = lambda self : None; | |
d55e5bfc RD |
5497 | def GetCount(*args, **kwargs): |
5498 | """ | |
d6c14a4c | 5499 | GetCount() -> size_t |
d55e5bfc RD |
5500 | |
5501 | Return the number of available displays. | |
5502 | """ | |
5503 | return _misc_.Display_GetCount(*args, **kwargs) | |
5504 | ||
5505 | GetCount = staticmethod(GetCount) | |
5506 | def GetFromPoint(*args, **kwargs): | |
5507 | """ | |
d6c14a4c | 5508 | GetFromPoint(Point pt) -> int |
d55e5bfc | 5509 | |
15817c7e RD |
5510 | Find the display where the given point lies, return wx.NOT_FOUND if it |
5511 | doesn't belong to any display | |
d55e5bfc RD |
5512 | """ |
5513 | return _misc_.Display_GetFromPoint(*args, **kwargs) | |
5514 | ||
5515 | GetFromPoint = staticmethod(GetFromPoint) | |
5516 | def GetFromWindow(*args, **kwargs): | |
5517 | """ | |
d6c14a4c | 5518 | GetFromWindow(Window window) -> int |
d55e5bfc | 5519 | |
15817c7e RD |
5520 | Find the display where the given window lies, return wx.NOT_FOUND if |
5521 | it is not shown at all. | |
d55e5bfc RD |
5522 | """ |
5523 | return _misc_.Display_GetFromWindow(*args, **kwargs) | |
5524 | ||
5525 | GetFromWindow = staticmethod(GetFromWindow) | |
5526 | def IsOk(*args, **kwargs): | |
5527 | """ | |
5528 | IsOk(self) -> bool | |
5529 | ||
5530 | Return true if the object was initialized successfully | |
5531 | """ | |
5532 | return _misc_.Display_IsOk(*args, **kwargs) | |
5533 | ||
5534 | def __nonzero__(self): return self.IsOk() | |
5535 | def GetGeometry(*args, **kwargs): | |
5536 | """ | |
5537 | GetGeometry(self) -> Rect | |
5538 | ||
15817c7e RD |
5539 | Returns the bounding rectangle of the display whose index was passed |
5540 | to the constructor. | |
d55e5bfc RD |
5541 | """ |
5542 | return _misc_.Display_GetGeometry(*args, **kwargs) | |
5543 | ||
f52cbe90 RD |
5544 | def GetClientArea(*args, **kwargs): |
5545 | """ | |
5546 | GetClientArea(self) -> Rect | |
5547 | ||
5548 | Returns the bounding rectangle the client area of the display, | |
5549 | i.e., without taskbars and such. | |
5550 | """ | |
5551 | return _misc_.Display_GetClientArea(*args, **kwargs) | |
5552 | ||
d55e5bfc RD |
5553 | def GetName(*args, **kwargs): |
5554 | """ | |
5555 | GetName(self) -> String | |
5556 | ||
5557 | Returns the display's name. A name is not available on all platforms. | |
5558 | """ | |
5559 | return _misc_.Display_GetName(*args, **kwargs) | |
5560 | ||
5561 | def IsPrimary(*args, **kwargs): | |
5562 | """ | |
5563 | IsPrimary(self) -> bool | |
5564 | ||
f52cbe90 | 5565 | Returns True if the display is the primary display. The primary |
d55e5bfc RD |
5566 | display is the one whose index is 0. |
5567 | """ | |
5568 | return _misc_.Display_IsPrimary(*args, **kwargs) | |
5569 | ||
5570 | def GetModes(*args, **kwargs): | |
5571 | """ | |
5572 | GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...] | |
5573 | ||
15817c7e RD |
5574 | Enumerate all video modes supported by this display matching the given |
5575 | one (in the sense of VideoMode.Match()). | |
d55e5bfc | 5576 | |
15817c7e RD |
5577 | As any mode matches the default value of the argument and there is |
5578 | always at least one video mode supported by display, the returned | |
5579 | array is only empty for the default value of the argument if this | |
5580 | function is not supported at all on this platform. | |
d55e5bfc RD |
5581 | """ |
5582 | return _misc_.Display_GetModes(*args, **kwargs) | |
5583 | ||
5584 | def GetCurrentMode(*args, **kwargs): | |
5585 | """ | |
5586 | GetCurrentMode(self) -> VideoMode | |
5587 | ||
5588 | Get the current video mode. | |
5589 | """ | |
5590 | return _misc_.Display_GetCurrentMode(*args, **kwargs) | |
5591 | ||
5592 | def ChangeMode(*args, **kwargs): | |
5593 | """ | |
5594 | ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool | |
5595 | ||
03837c5c RD |
5596 | Changes the video mode of this display to the mode specified in the |
5597 | mode parameter. | |
5598 | ||
5599 | If wx.DefaultVideoMode is passed in as the mode parameter, the defined | |
5600 | behaviour is that wx.Display will reset the video mode to the default | |
5601 | mode used by the display. On Windows, the behavior is normal. | |
5602 | However, there are differences on other platforms. On Unix variations | |
5603 | using X11 extensions it should behave as defined, but some | |
5604 | irregularities may occur. | |
5605 | ||
5606 | On wxMac passing in wx.DefaultVideoMode as the mode parameter does | |
5607 | nothing. This happens because Carbon no longer has access to | |
5608 | DMUseScreenPrefs, an undocumented function that changed the video mode | |
5609 | to the system default by using the system's 'scrn' resource. | |
5610 | ||
5611 | Returns True if succeeded, False otherwise | |
d55e5bfc RD |
5612 | """ |
5613 | return _misc_.Display_ChangeMode(*args, **kwargs) | |
5614 | ||
5615 | def ResetMode(*args, **kwargs): | |
5616 | """ | |
5617 | ResetMode(self) | |
5618 | ||
5619 | Restore the default video mode (just a more readable synonym) | |
5620 | """ | |
5621 | return _misc_.Display_ResetMode(*args, **kwargs) | |
5622 | ||
1bd55598 RD |
5623 | Display_swigregister = _misc_.Display_swigregister |
5624 | Display_swigregister(Display) | |
d55e5bfc RD |
5625 | DefaultVideoMode = cvar.DefaultVideoMode |
5626 | ||
1bd55598 RD |
5627 | def Display_GetCount(*args): |
5628 | """ | |
d55e5bfc RD |
5629 | Display_GetCount() -> size_t |
5630 | ||
5631 | Return the number of available displays. | |
5632 | """ | |
1bd55598 | 5633 | return _misc_.Display_GetCount(*args) |
d55e5bfc RD |
5634 | |
5635 | def Display_GetFromPoint(*args, **kwargs): | |
1bd55598 | 5636 | """ |
d55e5bfc RD |
5637 | Display_GetFromPoint(Point pt) -> int |
5638 | ||
15817c7e RD |
5639 | Find the display where the given point lies, return wx.NOT_FOUND if it |
5640 | doesn't belong to any display | |
d55e5bfc | 5641 | """ |
1bd55598 | 5642 | return _misc_.Display_GetFromPoint(*args, **kwargs) |
d55e5bfc RD |
5643 | |
5644 | def Display_GetFromWindow(*args, **kwargs): | |
1bd55598 | 5645 | """ |
d55e5bfc RD |
5646 | Display_GetFromWindow(Window window) -> int |
5647 | ||
15817c7e RD |
5648 | Find the display where the given window lies, return wx.NOT_FOUND if |
5649 | it is not shown at all. | |
d55e5bfc | 5650 | """ |
1bd55598 | 5651 | return _misc_.Display_GetFromWindow(*args, **kwargs) |
d55e5bfc | 5652 | |
070c48b4 RD |
5653 | #--------------------------------------------------------------------------- |
5654 | ||
5655 | class StandardPaths(object): | |
5656 | """ | |
e9d6f3a4 RD |
5657 | wx.StandardPaths returns standard locations in the file system and |
5658 | should be used by programs to find their data files in a portable way. | |
070c48b4 RD |
5659 | |
5660 | In the description of the methods below, the example return values are | |
5661 | given for the Unix, Windows and Mac OS X systems, however please note | |
e9d6f3a4 RD |
5662 | that these are just examples and the actual values may differ. For |
5663 | example, under Windows the system administrator may change the | |
070c48b4 RD |
5664 | standard directories locations, i.e. the Windows directory may be |
5665 | named W:\Win2003 instead of the default C:\Windows. | |
5666 | ||
5667 | The strings appname and username should be replaced with the value | |
5668 | returned by `wx.App.GetAppName` and the name of the currently logged | |
5669 | in user, respectively. The string prefix is only used under Unix and | |
5670 | is /usr/local by default but may be changed using `SetInstallPrefix`. | |
5671 | ||
5672 | The directories returned by the methods of this class may or may not | |
5673 | exist. If they don't exist, it's up to the caller to create them, | |
e9d6f3a4 | 5674 | wx.StandardPaths doesn't do it. |
070c48b4 RD |
5675 | |
5676 | Finally note that these functions only work with standardly packaged | |
5677 | applications. I.e. under Unix you should follow the standard | |
5678 | installation conventions and under Mac you should create your | |
5679 | application bundle according to the Apple guidelines. Again, this | |
5680 | class doesn't help you to do it. | |
5681 | """ | |
1bd55598 RD |
5682 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5683 | def __init__(self): raise AttributeError, "No constructor defined" | |
5684 | __repr__ = _swig_repr | |
e9d6f3a4 RD |
5685 | ResourceCat_None = _misc_.StandardPaths_ResourceCat_None |
5686 | ResourceCat_Messages = _misc_.StandardPaths_ResourceCat_Messages | |
5687 | ResourceCat_Max = _misc_.StandardPaths_ResourceCat_Max | |
070c48b4 RD |
5688 | def Get(*args, **kwargs): |
5689 | """ | |
5690 | Get() -> StandardPaths | |
5691 | ||
8fb0e70a | 5692 | Return the global standard paths singleton |
070c48b4 RD |
5693 | """ |
5694 | return _misc_.StandardPaths_Get(*args, **kwargs) | |
5695 | ||
5696 | Get = staticmethod(Get) | |
5697 | def GetConfigDir(*args, **kwargs): | |
5698 | """ | |
5699 | GetConfigDir(self) -> String | |
5700 | ||
5701 | Return the directory with system config files: /etc under Unix, | |
8fb0e70a | 5702 | 'c:\Documents and Settings\All Users\Application Data' under Windows, |
070c48b4 RD |
5703 | /Library/Preferences for Mac |
5704 | """ | |
5705 | return _misc_.StandardPaths_GetConfigDir(*args, **kwargs) | |
5706 | ||
5707 | def GetUserConfigDir(*args, **kwargs): | |
5708 | """ | |
5709 | GetUserConfigDir(self) -> String | |
5710 | ||
5711 | Return the directory for the user config files: $HOME under Unix, | |
8fb0e70a | 5712 | 'c:\Documents and Settings\username' under Windows, and |
070c48b4 RD |
5713 | ~/Library/Preferences under Mac |
5714 | ||
5715 | Only use this if you have a single file to put there, otherwise | |
5716 | `GetUserDataDir` is more appropriate | |
5717 | """ | |
5718 | return _misc_.StandardPaths_GetUserConfigDir(*args, **kwargs) | |
5719 | ||
5720 | def GetDataDir(*args, **kwargs): | |
5721 | """ | |
5722 | GetDataDir(self) -> String | |
5723 | ||
5724 | Return the location of the application's global, (i.e. not | |
5725 | user-specific,) data files: prefix/share/appname under Unix, | |
8fb0e70a | 5726 | 'c:\Program Files\appname' under Windows, |
070c48b4 RD |
5727 | appname.app/Contents/SharedSupport app bundle directory under Mac. |
5728 | """ | |
5729 | return _misc_.StandardPaths_GetDataDir(*args, **kwargs) | |
5730 | ||
5731 | def GetLocalDataDir(*args, **kwargs): | |
5732 | """ | |
5733 | GetLocalDataDir(self) -> String | |
5734 | ||
5735 | Return the location for application data files which are | |
5736 | host-specific. Same as `GetDataDir` except under Unix where it is | |
5737 | /etc/appname | |
5738 | """ | |
5739 | return _misc_.StandardPaths_GetLocalDataDir(*args, **kwargs) | |
5740 | ||
5741 | def GetUserDataDir(*args, **kwargs): | |
5742 | """ | |
5743 | GetUserDataDir(self) -> String | |
5744 | ||
5745 | Return the directory for the user-dependent application data files: | |
5746 | $HOME/.appname under Unix, c:\Documents and | |
8fb0e70a | 5747 | Settings\username\Application Data\appname under Windows and |
070c48b4 RD |
5748 | ~/Library/Application Support/appname under Mac |
5749 | """ | |
5750 | return _misc_.StandardPaths_GetUserDataDir(*args, **kwargs) | |
5751 | ||
5752 | def GetUserLocalDataDir(*args, **kwargs): | |
5753 | """ | |
5754 | GetUserLocalDataDir(self) -> String | |
5755 | ||
5756 | Return the directory for user data files which shouldn't be shared | |
5757 | with the other machines | |
5758 | ||
5759 | Same as `GetUserDataDir` for all platforms except Windows where it is | |
8fb0e70a | 5760 | the 'Local Settings\Application Data\appname' directory. |
070c48b4 RD |
5761 | """ |
5762 | return _misc_.StandardPaths_GetUserLocalDataDir(*args, **kwargs) | |
5763 | ||
5764 | def GetPluginsDir(*args, **kwargs): | |
5765 | """ | |
5766 | GetPluginsDir(self) -> String | |
5767 | ||
5768 | Return the directory where the loadable modules (plugins) live: | |
5769 | prefix/lib/appname under Unix, program directory under Windows and | |
5770 | Contents/Plugins app bundle subdirectory under Mac | |
5771 | """ | |
5772 | return _misc_.StandardPaths_GetPluginsDir(*args, **kwargs) | |
5773 | ||
e9d6f3a4 RD |
5774 | def GetResourcesDir(*args, **kwargs): |
5775 | """ | |
5776 | GetResourcesDir(self) -> String | |
5777 | ||
5778 | Get resources directory. Resources are auxiliary files used by the | |
5779 | application and include things like image and sound files. | |
5780 | ||
5781 | Same as `GetDataDir` for all platforms except Mac where it returns | |
5782 | Contents/Resources subdirectory of the app bundle. | |
5783 | """ | |
5784 | return _misc_.StandardPaths_GetResourcesDir(*args, **kwargs) | |
5785 | ||
5786 | def GetLocalizedResourcesDir(*args, **kwargs): | |
5787 | """ | |
5788 | GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String | |
5789 | ||
5790 | Get localized resources directory containing the resource files of the | |
5791 | specified category for the given language. | |
5792 | ||
5793 | In general this is just GetResourcesDir()/lang under Windows and Unix | |
5794 | and GetResourcesDir()/lang.lproj under Mac but is something quite | |
5795 | different under Unix for the message catalog category (namely the | |
5796 | standard prefix/share/locale/lang/LC_MESSAGES.) | |
5797 | """ | |
5798 | return _misc_.StandardPaths_GetLocalizedResourcesDir(*args, **kwargs) | |
5799 | ||
da91cb0f RD |
5800 | def GetDocumentsDir(*args, **kwargs): |
5801 | """ | |
5802 | GetDocumentsDir(self) -> String | |
5803 | ||
5804 | Return the Documents directory for the current user. | |
5805 | ||
5806 | C:\Documents and Settings\username\Documents under Windows, | |
5807 | $HOME under Unix and ~/Documents under Mac | |
5808 | """ | |
5809 | return _misc_.StandardPaths_GetDocumentsDir(*args, **kwargs) | |
5810 | ||
070c48b4 | 5811 | def SetInstallPrefix(*args, **kwargs): |
8fb0e70a RD |
5812 | """ |
5813 | SetInstallPrefix(self, String prefix) | |
5814 | ||
5815 | Set the program installation directory which is /usr/local by default. | |
5816 | This value will be used by other methods such as `GetDataDir` and | |
5817 | `GetPluginsDir` as the prefix for what they return. (This function | |
5818 | only has meaning on Unix systems.) | |
5819 | """ | |
070c48b4 RD |
5820 | return _misc_.StandardPaths_SetInstallPrefix(*args, **kwargs) |
5821 | ||
5822 | def GetInstallPrefix(*args, **kwargs): | |
8fb0e70a RD |
5823 | """ |
5824 | GetInstallPrefix(self) -> String | |
5825 | ||
5826 | Get the program installation prefix. The default is the prefix where | |
5827 | Python is installed. (This function only has meaning on Unix systems.) | |
5828 | """ | |
070c48b4 RD |
5829 | return _misc_.StandardPaths_GetInstallPrefix(*args, **kwargs) |
5830 | ||
1bd55598 RD |
5831 | StandardPaths_swigregister = _misc_.StandardPaths_swigregister |
5832 | StandardPaths_swigregister(StandardPaths) | |
070c48b4 | 5833 | |
1bd55598 RD |
5834 | def StandardPaths_Get(*args): |
5835 | """ | |
070c48b4 RD |
5836 | StandardPaths_Get() -> StandardPaths |
5837 | ||
8fb0e70a | 5838 | Return the global standard paths singleton |
070c48b4 | 5839 | """ |
1bd55598 | 5840 | return _misc_.StandardPaths_Get(*args) |
070c48b4 | 5841 | |
d55e5bfc | 5842 | |
32fe5131 | 5843 |