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