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