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