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