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