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