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