1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
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
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
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
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
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
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
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"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
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
)
159 GetColour
= staticmethod(GetColour
)
160 def GetFont(*args
, **kwargs
):
161 """GetFont(int index) -> Font"""
162 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
164 GetFont
= staticmethod(GetFont
)
165 def GetMetric(*args
, **kwargs
):
166 """GetMetric(int index, Window win=None) -> int"""
167 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
169 GetMetric
= staticmethod(GetMetric
)
170 def HasFeature(*args
, **kwargs
):
171 """HasFeature(int index) -> bool"""
172 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
174 HasFeature
= staticmethod(HasFeature
)
175 def GetScreenType(*args
, **kwargs
):
176 """GetScreenType() -> int"""
177 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
179 GetScreenType
= staticmethod(GetScreenType
)
180 def SetScreenType(*args
, **kwargs
):
181 """SetScreenType(int screen)"""
182 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
184 SetScreenType
= staticmethod(SetScreenType
)
185 _misc_
.SystemSettings_swigregister(SystemSettings
)
187 def SystemSettings_GetColour(*args
, **kwargs
):
188 """SystemSettings_GetColour(int index) -> Colour"""
189 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
191 def SystemSettings_GetFont(*args
, **kwargs
):
192 """SystemSettings_GetFont(int index) -> Font"""
193 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
195 def SystemSettings_GetMetric(*args
, **kwargs
):
196 """SystemSettings_GetMetric(int index, Window win=None) -> int"""
197 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
199 def SystemSettings_HasFeature(*args
, **kwargs
):
200 """SystemSettings_HasFeature(int index) -> bool"""
201 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
203 def SystemSettings_GetScreenType(*args
):
204 """SystemSettings_GetScreenType() -> int"""
205 return _misc_
.SystemSettings_GetScreenType(*args
)
207 def SystemSettings_SetScreenType(*args
, **kwargs
):
208 """SystemSettings_SetScreenType(int screen)"""
209 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
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
)
222 SetOption
= staticmethod(SetOption
)
223 def SetOptionInt(*args
, **kwargs
):
224 """SetOptionInt(String name, int value)"""
225 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
227 SetOptionInt
= staticmethod(SetOptionInt
)
228 def GetOption(*args
, **kwargs
):
229 """GetOption(String name) -> String"""
230 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
232 GetOption
= staticmethod(GetOption
)
233 def GetOptionInt(*args
, **kwargs
):
234 """GetOptionInt(String name) -> int"""
235 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
237 GetOptionInt
= staticmethod(GetOptionInt
)
238 def HasOption(*args
, **kwargs
):
239 """HasOption(String name) -> bool"""
240 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
242 HasOption
= staticmethod(HasOption
)
243 def IsFalse(*args
, **kwargs
):
244 """IsFalse(String name) -> bool"""
245 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
247 IsFalse
= staticmethod(IsFalse
)
248 _misc_
.SystemOptions_swigregister(SystemOptions
)
250 WINDOW_DEFAULT_VARIANT
= cvar
.WINDOW_DEFAULT_VARIANT
252 def SystemOptions_SetOption(*args
, **kwargs
):
253 """SystemOptions_SetOption(String name, String value)"""
254 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
256 def SystemOptions_SetOptionInt(*args
, **kwargs
):
257 """SystemOptions_SetOptionInt(String name, int value)"""
258 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
260 def SystemOptions_GetOption(*args
, **kwargs
):
261 """SystemOptions_GetOption(String name) -> String"""
262 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
264 def SystemOptions_GetOptionInt(*args
, **kwargs
):
265 """SystemOptions_GetOptionInt(String name) -> int"""
266 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
268 def SystemOptions_HasOption(*args
, **kwargs
):
269 """SystemOptions_HasOption(String name) -> bool"""
270 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
272 def SystemOptions_IsFalse(*args
, **kwargs
):
273 """SystemOptions_IsFalse(String name) -> bool"""
274 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
276 #---------------------------------------------------------------------------
280 """NewId() -> long"""
281 return _misc_
.NewId(*args
)
283 def RegisterId(*args
, **kwargs
):
284 """RegisterId(long id)"""
285 return _misc_
.RegisterId(*args
, **kwargs
)
287 def GetCurrentId(*args
):
288 """GetCurrentId() -> long"""
289 return _misc_
.GetCurrentId(*args
)
291 def IsStockID(*args
, **kwargs
):
292 """IsStockID(int id) -> bool"""
293 return _misc_
.IsStockID(*args
, **kwargs
)
295 def IsStockLabel(*args
, **kwargs
):
296 """IsStockLabel(int id, String label) -> bool"""
297 return _misc_
.IsStockLabel(*args
, **kwargs
)
299 def GetStockLabel(*args
, **kwargs
):
300 """GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String"""
301 return _misc_
.GetStockLabel(*args
, **kwargs
)
305 return _misc_
.Bell(*args
)
307 def EndBusyCursor(*args
):
308 """EndBusyCursor()"""
309 return _misc_
.EndBusyCursor(*args
)
311 def GetElapsedTime(*args
, **kwargs
):
312 """GetElapsedTime(bool resetTimer=True) -> long"""
313 return _misc_
.GetElapsedTime(*args
, **kwargs
)
314 GetElapsedTime
= wx
._deprecated
(GetElapsedTime
)
317 """IsBusy() -> bool"""
318 return _misc_
.IsBusy(*args
)
321 """Now() -> String"""
322 return _misc_
.Now(*args
)
324 def Shell(*args
, **kwargs
):
325 """Shell(String command=EmptyString) -> bool"""
326 return _misc_
.Shell(*args
, **kwargs
)
328 def StartTimer(*args
):
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
338 MAC_DARWIN
= _misc_
.MAC_DARWIN
341 GTK_WIN32
= _misc_
.GTK_WIN32
342 GTK_OS2
= _misc_
.GTK_OS2
343 GTK_BEOS
= _misc_
.GTK_BEOS
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
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
358 MGL_WIN32
= _misc_
.MGL_WIN32
359 MGL_OS2
= _misc_
.MGL_OS2
360 MGL_DOS
= _misc_
.MGL_DOS
361 WINDOWS_OS2
= _misc_
.WINDOWS_OS2
364 PALMOS
= _misc_
.PALMOS
367 def GetOsVersion(*args
):
368 """GetOsVersion() -> (platform, major, minor)"""
369 return _misc_
.GetOsVersion(*args
)
371 def GetOsDescription(*args
):
372 """GetOsDescription() -> String"""
373 return _misc_
.GetOsDescription(*args
)
375 def GetFreeMemory(*args
):
376 """GetFreeMemory() -> wxMemorySize"""
377 return _misc_
.GetFreeMemory(*args
)
378 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
379 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
381 def Shutdown(*args
, **kwargs
):
382 """Shutdown(int wFlags) -> bool"""
383 return _misc_
.Shutdown(*args
, **kwargs
)
385 def Sleep(*args
, **kwargs
):
386 """Sleep(int secs)"""
387 return _misc_
.Sleep(*args
, **kwargs
)
389 def MilliSleep(*args
, **kwargs
):
390 """MilliSleep(unsigned long milliseconds)"""
391 return _misc_
.MilliSleep(*args
, **kwargs
)
393 def MicroSleep(*args
, **kwargs
):
394 """MicroSleep(unsigned long microseconds)"""
395 return _misc_
.MicroSleep(*args
, **kwargs
)
398 def EnableTopLevelWindows(*args
, **kwargs
):
399 """EnableTopLevelWindows(bool enable)"""
400 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
402 def StripMenuCodes(*args
, **kwargs
):
403 """StripMenuCodes(String in) -> String"""
404 return _misc_
.StripMenuCodes(*args
, **kwargs
)
406 def GetEmailAddress(*args
):
407 """GetEmailAddress() -> String"""
408 return _misc_
.GetEmailAddress(*args
)
410 def GetHostName(*args
):
411 """GetHostName() -> String"""
412 return _misc_
.GetHostName(*args
)
414 def GetFullHostName(*args
):
415 """GetFullHostName() -> String"""
416 return _misc_
.GetFullHostName(*args
)
418 def GetUserId(*args
):
419 """GetUserId() -> String"""
420 return _misc_
.GetUserId(*args
)
422 def GetUserName(*args
):
423 """GetUserName() -> String"""
424 return _misc_
.GetUserName(*args
)
426 def GetHomeDir(*args
):
427 """GetHomeDir() -> String"""
428 return _misc_
.GetHomeDir(*args
)
430 def GetUserHome(*args
, **kwargs
):
431 """GetUserHome(String user=EmptyString) -> String"""
432 return _misc_
.GetUserHome(*args
, **kwargs
)
434 def GetProcessId(*args
):
435 """GetProcessId() -> unsigned long"""
436 return _misc_
.GetProcessId(*args
)
440 return _misc_
.Trap(*args
)
442 def FileSelector(*args
, **kwargs
):
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,
451 return _misc_
.FileSelector(*args
, **kwargs
)
453 def LoadFileSelector(*args
, **kwargs
):
455 LoadFileSelector(String what, String extension, String default_name=EmptyString,
456 Window parent=None) -> String
458 return _misc_
.LoadFileSelector(*args
, **kwargs
)
460 def SaveFileSelector(*args
, **kwargs
):
462 SaveFileSelector(String what, String extension, String default_name=EmptyString,
463 Window parent=None) -> String
465 return _misc_
.SaveFileSelector(*args
, **kwargs
)
467 def DirSelector(*args
, **kwargs
):
469 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
470 long style=wxDD_DEFAULT_STYLE,
471 Point pos=DefaultPosition, Window parent=None) -> String
473 return _misc_
.DirSelector(*args
, **kwargs
)
475 def GetTextFromUser(*args
, **kwargs
):
477 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
479 int x=-1, int y=-1, bool centre=True) -> String
481 return _misc_
.GetTextFromUser(*args
, **kwargs
)
483 def GetPasswordFromUser(*args
, **kwargs
):
485 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
486 Window parent=None) -> String
488 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
490 def GetSingleChoice(*args
, **kwargs
):
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
496 return _misc_
.GetSingleChoice(*args
, **kwargs
)
498 def GetSingleChoiceIndex(*args
, **kwargs
):
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
504 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
506 def MessageBox(*args
, **kwargs
):
508 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
509 Window parent=None, int x=-1,
512 return _misc_
.MessageBox(*args
, **kwargs
)
514 def GetNumberFromUser(*args
, **kwargs
):
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
520 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
522 def ColourDisplay(*args
):
523 """ColourDisplay() -> bool"""
524 return _misc_
.ColourDisplay(*args
)
526 def DisplayDepth(*args
):
527 """DisplayDepth() -> int"""
528 return _misc_
.DisplayDepth(*args
)
530 def GetDisplayDepth(*args
):
531 """GetDisplayDepth() -> int"""
532 return _misc_
.GetDisplayDepth(*args
)
534 def DisplaySize(*args
):
535 """DisplaySize() -> (width, height)"""
536 return _misc_
.DisplaySize(*args
)
538 def GetDisplaySize(*args
):
539 """GetDisplaySize() -> Size"""
540 return _misc_
.GetDisplaySize(*args
)
542 def DisplaySizeMM(*args
):
543 """DisplaySizeMM() -> (width, height)"""
544 return _misc_
.DisplaySizeMM(*args
)
546 def GetDisplaySizeMM(*args
):
547 """GetDisplaySizeMM() -> Size"""
548 return _misc_
.GetDisplaySizeMM(*args
)
550 def ClientDisplayRect(*args
):
551 """ClientDisplayRect() -> (x, y, width, height)"""
552 return _misc_
.ClientDisplayRect(*args
)
554 def GetClientDisplayRect(*args
):
555 """GetClientDisplayRect() -> Rect"""
556 return _misc_
.GetClientDisplayRect(*args
)
558 def SetCursor(*args
, **kwargs
):
559 """SetCursor(Cursor cursor)"""
560 return _misc_
.SetCursor(*args
, **kwargs
)
562 def GetXDisplay(*args
):
564 GetXDisplay() -> void
566 Returns a swigified pointer to the X11 display. Returns None on
569 return _misc_
.GetXDisplay(*args
)
571 def BeginBusyCursor(*args
, **kwargs
):
572 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
573 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
575 def GetMousePosition(*args
):
577 GetMousePosition() -> Point
579 Get the current mouse position on the screen.
581 return _misc_
.GetMousePosition(*args
)
583 def FindWindowAtPointer(*args
):
585 FindWindowAtPointer() -> Window
587 Returns the window currently under the mouse pointer, if it belongs to
588 this application. Otherwise it returns None.
590 return _misc_
.FindWindowAtPointer(*args
)
592 def GetActiveWindow(*args
):
594 GetActiveWindow() -> Window
596 Get the currently active window of this application, or None
598 return _misc_
.GetActiveWindow(*args
)
600 def GenericFindWindowAtPoint(*args
, **kwargs
):
601 """GenericFindWindowAtPoint(Point pt) -> Window"""
602 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
604 def FindWindowAtPoint(*args
, **kwargs
):
605 """FindWindowAtPoint(Point pt) -> Window"""
606 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
608 def GetTopLevelParent(*args
, **kwargs
):
609 """GetTopLevelParent(Window win) -> Window"""
610 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
612 def LaunchDefaultBrowser(*args
, **kwargs
):
614 LaunchDefaultBrowser(String url) -> bool
616 Launches the user's default browser and tells it to open the location
617 at ``url``. Returns ``True`` if the application was successfully
620 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
622 def GetKeyState(*args
, **kwargs
):
624 GetKeyState(int key) -> bool
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.
632 return _misc_
.GetKeyState(*args
, **kwargs
)
633 class MouseState(object):
635 `wx.MouseState` is used to hold information about mouse button and
636 modifier key states and is what is returned from `wx.GetMouseState`.
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
):
642 __init__(self) -> MouseState
644 `wx.MouseState` is used to hold information about mouse button and
645 modifier key states and is what is returned from `wx.GetMouseState`.
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
)
654 def GetY(*args
, **kwargs
):
655 """GetY(self) -> int"""
656 return _misc_
.MouseState_GetY(*args
, **kwargs
)
658 def LeftDown(*args
, **kwargs
):
659 """LeftDown(self) -> bool"""
660 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
662 def MiddleDown(*args
, **kwargs
):
663 """MiddleDown(self) -> bool"""
664 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
666 def RightDown(*args
, **kwargs
):
667 """RightDown(self) -> bool"""
668 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
670 def ControlDown(*args
, **kwargs
):
671 """ControlDown(self) -> bool"""
672 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
674 def ShiftDown(*args
, **kwargs
):
675 """ShiftDown(self) -> bool"""
676 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
678 def AltDown(*args
, **kwargs
):
679 """AltDown(self) -> bool"""
680 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
682 def MetaDown(*args
, **kwargs
):
683 """MetaDown(self) -> bool"""
684 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
686 def CmdDown(*args
, **kwargs
):
687 """CmdDown(self) -> bool"""
688 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
690 def SetX(*args
, **kwargs
):
691 """SetX(self, int x)"""
692 return _misc_
.MouseState_SetX(*args
, **kwargs
)
694 def SetY(*args
, **kwargs
):
695 """SetY(self, int y)"""
696 return _misc_
.MouseState_SetY(*args
, **kwargs
)
698 def SetLeftDown(*args
, **kwargs
):
699 """SetLeftDown(self, bool down)"""
700 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
702 def SetMiddleDown(*args
, **kwargs
):
703 """SetMiddleDown(self, bool down)"""
704 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
706 def SetRightDown(*args
, **kwargs
):
707 """SetRightDown(self, bool down)"""
708 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
710 def SetControlDown(*args
, **kwargs
):
711 """SetControlDown(self, bool down)"""
712 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
714 def SetShiftDown(*args
, **kwargs
):
715 """SetShiftDown(self, bool down)"""
716 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
718 def SetAltDown(*args
, **kwargs
):
719 """SetAltDown(self, bool down)"""
720 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
722 def SetMetaDown(*args
, **kwargs
):
723 """SetMetaDown(self, bool down)"""
724 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
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
)
737 _misc_
.MouseState_swigregister(MouseState
)
738 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
739 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
740 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
743 def GetMouseState(*args
):
745 GetMouseState() -> MouseState
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.
752 return _misc_
.GetMouseState(*args
)
754 def WakeUpMainThread(*args
):
755 """WakeUpMainThread()"""
756 return _misc_
.WakeUpMainThread(*args
)
758 def MutexGuiEnter(*args
):
759 """MutexGuiEnter()"""
760 return _misc_
.MutexGuiEnter(*args
)
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
)
777 def Thread_IsMain(*args
):
778 """Thread_IsMain() -> bool"""
779 return _misc_
.Thread_IsMain(*args
)
780 #---------------------------------------------------------------------------
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
)
795 def GetTip(*args
, **kwargs
):
796 """GetTip(self) -> String"""
797 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
799 def GetWindow(*args
, **kwargs
):
800 """GetWindow(self) -> Window"""
801 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
803 def Enable(*args
, **kwargs
):
804 """Enable(bool flag)"""
805 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
807 Enable
= staticmethod(Enable
)
808 def SetDelay(*args
, **kwargs
):
809 """SetDelay(long milliseconds)"""
810 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
812 SetDelay
= staticmethod(SetDelay
)
813 _misc_
.ToolTip_swigregister(ToolTip
)
815 def ToolTip_Enable(*args
, **kwargs
):
816 """ToolTip_Enable(bool flag)"""
817 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
819 def ToolTip_SetDelay(*args
, **kwargs
):
820 """ToolTip_SetDelay(long milliseconds)"""
821 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
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
):
836 Deletes the C++ object this Python object is a proxy for.
838 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
842 def IsOk(*args
, **kwargs
):
843 """IsOk(self) -> bool"""
844 return _misc_
.Caret_IsOk(*args
, **kwargs
)
846 def IsVisible(*args
, **kwargs
):
847 """IsVisible(self) -> bool"""
848 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
850 def GetPosition(*args
, **kwargs
):
851 """GetPosition(self) -> Point"""
852 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
854 def GetPositionTuple(*args
, **kwargs
):
855 """GetPositionTuple() -> (x,y)"""
856 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
858 def GetSize(*args
, **kwargs
):
859 """GetSize(self) -> Size"""
860 return _misc_
.Caret_GetSize(*args
, **kwargs
)
862 def GetSizeTuple(*args
, **kwargs
):
863 """GetSizeTuple() -> (width, height)"""
864 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
866 def GetWindow(*args
, **kwargs
):
867 """GetWindow(self) -> Window"""
868 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
870 def MoveXY(*args
, **kwargs
):
871 """MoveXY(self, int x, int y)"""
872 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
874 def Move(*args
, **kwargs
):
875 """Move(self, Point pt)"""
876 return _misc_
.Caret_Move(*args
, **kwargs
)
878 def SetSizeWH(*args
, **kwargs
):
879 """SetSizeWH(self, int width, int height)"""
880 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
882 def SetSize(*args
, **kwargs
):
883 """SetSize(self, Size size)"""
884 return _misc_
.Caret_SetSize(*args
, **kwargs
)
886 def Show(*args
, **kwargs
):
887 """Show(self, int show=True)"""
888 return _misc_
.Caret_Show(*args
, **kwargs
)
890 def Hide(*args
, **kwargs
):
892 return _misc_
.Caret_Hide(*args
, **kwargs
)
894 def __nonzero__(self
): return self
.IsOk()
895 def GetBlinkTime(*args
, **kwargs
):
896 """GetBlinkTime() -> int"""
897 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
899 GetBlinkTime
= staticmethod(GetBlinkTime
)
900 def SetBlinkTime(*args
, **kwargs
):
901 """SetBlinkTime(int milliseconds)"""
902 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
904 SetBlinkTime
= staticmethod(SetBlinkTime
)
905 _misc_
.Caret_swigregister(Caret
)
907 def Caret_GetBlinkTime(*args
):
908 """Caret_GetBlinkTime() -> int"""
909 return _misc_
.Caret_GetBlinkTime(*args
)
911 def Caret_SetBlinkTime(*args
, **kwargs
):
912 """Caret_SetBlinkTime(int milliseconds)"""
913 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
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
)
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
)
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
)
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
)
960 def Pause(*args
, **kwargs
):
962 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
964 def Resume(*args
, **kwargs
):
966 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
968 def Time(*args
, **kwargs
):
969 """Time(self) -> long"""
970 return _misc_
.StopWatch_Time(*args
, **kwargs
)
972 _misc_
.StopWatch_swigregister(StopWatch
)
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
)
987 def RemoveFileFromHistory(*args
, **kwargs
):
988 """RemoveFileFromHistory(self, int i)"""
989 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
991 def GetMaxFiles(*args
, **kwargs
):
992 """GetMaxFiles(self) -> int"""
993 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
995 def UseMenu(*args
, **kwargs
):
996 """UseMenu(self, Menu menu)"""
997 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
999 def RemoveMenu(*args
, **kwargs
):
1000 """RemoveMenu(self, Menu menu)"""
1001 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
1003 def Load(*args
, **kwargs
):
1004 """Load(self, ConfigBase config)"""
1005 return _misc_
.FileHistory_Load(*args
, **kwargs
)
1007 def Save(*args
, **kwargs
):
1008 """Save(self, ConfigBase config)"""
1009 return _misc_
.FileHistory_Save(*args
, **kwargs
)
1011 def AddFilesToMenu(*args
, **kwargs
):
1012 """AddFilesToMenu(self)"""
1013 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
1015 def AddFilesToThisMenu(*args
, **kwargs
):
1016 """AddFilesToThisMenu(self, Menu menu)"""
1017 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
1019 def GetHistoryFile(*args
, **kwargs
):
1020 """GetHistoryFile(self, int i) -> String"""
1021 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
1023 def GetCount(*args
, **kwargs
):
1024 """GetCount(self) -> int"""
1025 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
1027 GetNoHistoryFiles
= GetCount
1028 _misc_
.FileHistory_swigregister(FileHistory
)
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
)
1043 def IsAnotherRunning(*args
, **kwargs
):
1044 """IsAnotherRunning(self) -> bool"""
1045 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1047 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1049 def PreSingleInstanceChecker(*args
, **kwargs
):
1050 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1051 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1055 def DrawWindowOnDC(*args
, **kwargs
):
1056 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1057 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1058 #---------------------------------------------------------------------------
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
)
1071 def GetCurrentTip(*args
, **kwargs
):
1072 """GetCurrentTip(self) -> size_t"""
1073 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1075 def PreprocessTip(*args
, **kwargs
):
1076 """PreprocessTip(self, String tip) -> String"""
1077 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1079 _misc_
.TipProvider_swigregister(TipProvider
)
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
)
1090 def _setCallbackInfo(*args
, **kwargs
):
1091 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1092 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1094 _misc_
.PyTipProvider_swigregister(PyTipProvider
)
1097 def ShowTip(*args
, **kwargs
):
1098 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1099 return _misc_
.ShowTip(*args
, **kwargs
)
1101 def CreateFileTipProvider(*args
, **kwargs
):
1102 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1103 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1104 #---------------------------------------------------------------------------
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)
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
)
1124 def SetOwner(*args
, **kwargs
):
1125 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1126 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1128 def GetOwner(*args
, **kwargs
):
1129 """GetOwner(self) -> EvtHandler"""
1130 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1132 def Start(*args
, **kwargs
):
1133 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1134 return _misc_
.Timer_Start(*args
, **kwargs
)
1136 def Stop(*args
, **kwargs
):
1138 return _misc_
.Timer_Stop(*args
, **kwargs
)
1140 def Notify(*args
, **kwargs
):
1142 return _misc_
.Timer_Notify(*args
, **kwargs
)
1144 def IsRunning(*args
, **kwargs
):
1145 """IsRunning(self) -> bool"""
1146 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1148 def GetInterval(*args
, **kwargs
):
1149 """GetInterval(self) -> int"""
1150 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1152 def GetId(*args
, **kwargs
):
1153 """GetId(self) -> int"""
1154 return _misc_
.Timer_GetId(*args
, **kwargs
)
1156 def IsOneShot(*args
, **kwargs
):
1157 """IsOneShot(self) -> bool"""
1158 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1161 """NO-OP: Timers must be destroyed by normal reference counting"""
1164 _misc_
.Timer_swigregister(Timer
)
1166 # For backwards compatibility with 2.4
1167 class PyTimer(Timer
):
1168 def __init__(self
, notify
):
1169 Timer
.__init
__(self
)
1170 self
.notify
= notify
1177 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
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
)
1191 _misc_
.TimerEvent_swigregister(TimerEvent
)
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
):
1199 __init__(self, wxTimer timer) -> TimerRunner
1200 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
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
)
1209 _misc_
.TimerRunner_swigregister(TimerRunner
)
1211 #---------------------------------------------------------------------------
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
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
)
1247 IsEnabled
= staticmethod(IsEnabled
)
1248 def EnableLogging(*args
, **kwargs
):
1249 """EnableLogging(bool doIt=True) -> bool"""
1250 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
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
)
1257 OnLog
= staticmethod(OnLog
)
1258 def Flush(*args
, **kwargs
):
1260 return _misc_
.Log_Flush(*args
, **kwargs
)
1262 def FlushActive(*args
, **kwargs
):
1264 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1266 FlushActive
= staticmethod(FlushActive
)
1267 def GetActiveTarget(*args
, **kwargs
):
1268 """GetActiveTarget() -> Log"""
1269 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1271 GetActiveTarget
= staticmethod(GetActiveTarget
)
1272 def SetActiveTarget(*args
, **kwargs
):
1273 """SetActiveTarget(Log pLogger) -> Log"""
1274 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1276 SetActiveTarget
= staticmethod(SetActiveTarget
)
1277 def Suspend(*args
, **kwargs
):
1279 return _misc_
.Log_Suspend(*args
, **kwargs
)
1281 Suspend
= staticmethod(Suspend
)
1282 def Resume(*args
, **kwargs
):
1284 return _misc_
.Log_Resume(*args
, **kwargs
)
1286 Resume
= staticmethod(Resume
)
1287 def SetVerbose(*args
, **kwargs
):
1288 """SetVerbose(bool bVerbose=True)"""
1289 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1291 SetVerbose
= staticmethod(SetVerbose
)
1292 def SetLogLevel(*args
, **kwargs
):
1293 """SetLogLevel(LogLevel logLevel)"""
1294 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1296 SetLogLevel
= staticmethod(SetLogLevel
)
1297 def DontCreateOnDemand(*args
, **kwargs
):
1298 """DontCreateOnDemand()"""
1299 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1301 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1302 def SetRepetitionCounting(*args
, **kwargs
):
1303 """SetRepetitionCounting(bool bRepetCounting=True)"""
1304 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1306 SetRepetitionCounting
= staticmethod(SetRepetitionCounting
)
1307 def GetRepetitionCounting(*args
, **kwargs
):
1308 """GetRepetitionCounting() -> bool"""
1309 return _misc_
.Log_GetRepetitionCounting(*args
, **kwargs
)
1311 GetRepetitionCounting
= staticmethod(GetRepetitionCounting
)
1312 def SetTraceMask(*args
, **kwargs
):
1313 """SetTraceMask(TraceMask ulMask)"""
1314 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1316 SetTraceMask
= staticmethod(SetTraceMask
)
1317 def AddTraceMask(*args
, **kwargs
):
1318 """AddTraceMask(String str)"""
1319 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1321 AddTraceMask
= staticmethod(AddTraceMask
)
1322 def RemoveTraceMask(*args
, **kwargs
):
1323 """RemoveTraceMask(String str)"""
1324 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1326 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1327 def ClearTraceMasks(*args
, **kwargs
):
1328 """ClearTraceMasks()"""
1329 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1331 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1332 def GetTraceMasks(*args
, **kwargs
):
1333 """GetTraceMasks() -> wxArrayString"""
1334 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1336 GetTraceMasks
= staticmethod(GetTraceMasks
)
1337 def SetTimestamp(*args
, **kwargs
):
1338 """SetTimestamp(wxChar ts)"""
1339 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1341 SetTimestamp
= staticmethod(SetTimestamp
)
1342 def GetVerbose(*args
, **kwargs
):
1343 """GetVerbose() -> bool"""
1344 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1346 GetVerbose
= staticmethod(GetVerbose
)
1347 def GetTraceMask(*args
, **kwargs
):
1348 """GetTraceMask() -> TraceMask"""
1349 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1351 GetTraceMask
= staticmethod(GetTraceMask
)
1352 def IsAllowedTraceMask(*args
, **kwargs
):
1353 """IsAllowedTraceMask(wxChar mask) -> bool"""
1354 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1356 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1357 def GetLogLevel(*args
, **kwargs
):
1358 """GetLogLevel() -> LogLevel"""
1359 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1361 GetLogLevel
= staticmethod(GetLogLevel
)
1362 def GetTimestamp(*args
, **kwargs
):
1363 """GetTimestamp() -> wxChar"""
1364 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1366 GetTimestamp
= staticmethod(GetTimestamp
)
1367 def TimeStamp(*args
, **kwargs
):
1368 """TimeStamp() -> String"""
1369 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1371 TimeStamp
= staticmethod(TimeStamp
)
1372 def Destroy(*args
, **kwargs
):
1374 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1378 _misc_
.Log_swigregister(Log
)
1380 def Log_IsEnabled(*args
):
1381 """Log_IsEnabled() -> bool"""
1382 return _misc_
.Log_IsEnabled(*args
)
1384 def Log_EnableLogging(*args
, **kwargs
):
1385 """Log_EnableLogging(bool doIt=True) -> bool"""
1386 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1388 def Log_OnLog(*args
, **kwargs
):
1389 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1390 return _misc_
.Log_OnLog(*args
, **kwargs
)
1392 def Log_FlushActive(*args
):
1393 """Log_FlushActive()"""
1394 return _misc_
.Log_FlushActive(*args
)
1396 def Log_GetActiveTarget(*args
):
1397 """Log_GetActiveTarget() -> Log"""
1398 return _misc_
.Log_GetActiveTarget(*args
)
1400 def Log_SetActiveTarget(*args
, **kwargs
):
1401 """Log_SetActiveTarget(Log pLogger) -> Log"""
1402 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1404 def Log_Suspend(*args
):
1406 return _misc_
.Log_Suspend(*args
)
1408 def Log_Resume(*args
):
1410 return _misc_
.Log_Resume(*args
)
1412 def Log_SetVerbose(*args
, **kwargs
):
1413 """Log_SetVerbose(bool bVerbose=True)"""
1414 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1416 def Log_SetLogLevel(*args
, **kwargs
):
1417 """Log_SetLogLevel(LogLevel logLevel)"""
1418 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1420 def Log_DontCreateOnDemand(*args
):
1421 """Log_DontCreateOnDemand()"""
1422 return _misc_
.Log_DontCreateOnDemand(*args
)
1424 def Log_SetRepetitionCounting(*args
, **kwargs
):
1425 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1426 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1428 def Log_GetRepetitionCounting(*args
):
1429 """Log_GetRepetitionCounting() -> bool"""
1430 return _misc_
.Log_GetRepetitionCounting(*args
)
1432 def Log_SetTraceMask(*args
, **kwargs
):
1433 """Log_SetTraceMask(TraceMask ulMask)"""
1434 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1436 def Log_AddTraceMask(*args
, **kwargs
):
1437 """Log_AddTraceMask(String str)"""
1438 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1440 def Log_RemoveTraceMask(*args
, **kwargs
):
1441 """Log_RemoveTraceMask(String str)"""
1442 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1444 def Log_ClearTraceMasks(*args
):
1445 """Log_ClearTraceMasks()"""
1446 return _misc_
.Log_ClearTraceMasks(*args
)
1448 def Log_GetTraceMasks(*args
):
1449 """Log_GetTraceMasks() -> wxArrayString"""
1450 return _misc_
.Log_GetTraceMasks(*args
)
1452 def Log_SetTimestamp(*args
, **kwargs
):
1453 """Log_SetTimestamp(wxChar ts)"""
1454 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1456 def Log_GetVerbose(*args
):
1457 """Log_GetVerbose() -> bool"""
1458 return _misc_
.Log_GetVerbose(*args
)
1460 def Log_GetTraceMask(*args
):
1461 """Log_GetTraceMask() -> TraceMask"""
1462 return _misc_
.Log_GetTraceMask(*args
)
1464 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1465 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1466 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1468 def Log_GetLogLevel(*args
):
1469 """Log_GetLogLevel() -> LogLevel"""
1470 return _misc_
.Log_GetLogLevel(*args
)
1472 def Log_GetTimestamp(*args
):
1473 """Log_GetTimestamp() -> wxChar"""
1474 return _misc_
.Log_GetTimestamp(*args
)
1476 def Log_TimeStamp(*args
):
1477 """Log_TimeStamp() -> String"""
1478 return _misc_
.Log_TimeStamp(*args
)
1480 class LogStderr(Log
):
1481 """Proxy of C++ LogStderr 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) -> LogStderr"""
1486 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1487 _misc_
.LogStderr_swigregister(LogStderr
)
1489 class LogTextCtrl(Log
):
1490 """Proxy of C++ LogTextCtrl 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, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1495 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1496 _misc_
.LogTextCtrl_swigregister(LogTextCtrl
)
1499 """Proxy of C++ LogGui class"""
1500 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1501 __repr__
= _swig_repr
1502 def __init__(self
, *args
, **kwargs
):
1503 """__init__(self) -> LogGui"""
1504 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1505 _misc_
.LogGui_swigregister(LogGui
)
1507 class LogWindow(Log
):
1508 """Proxy of C++ LogWindow class"""
1509 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1510 __repr__
= _swig_repr
1511 def __init__(self
, *args
, **kwargs
):
1512 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1513 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1514 def Show(*args
, **kwargs
):
1515 """Show(self, bool bShow=True)"""
1516 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1518 def GetFrame(*args
, **kwargs
):
1519 """GetFrame(self) -> wxFrame"""
1520 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1522 def GetOldLog(*args
, **kwargs
):
1523 """GetOldLog(self) -> Log"""
1524 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1526 def IsPassingMessages(*args
, **kwargs
):
1527 """IsPassingMessages(self) -> bool"""
1528 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1530 def PassMessages(*args
, **kwargs
):
1531 """PassMessages(self, bool bDoPass)"""
1532 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1534 _misc_
.LogWindow_swigregister(LogWindow
)
1536 class LogChain(Log
):
1537 """Proxy of C++ LogChain class"""
1538 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1539 __repr__
= _swig_repr
1540 def __init__(self
, *args
, **kwargs
):
1541 """__init__(self, Log logger) -> LogChain"""
1542 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1543 def SetLog(*args
, **kwargs
):
1544 """SetLog(self, Log logger)"""
1545 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1547 def PassMessages(*args
, **kwargs
):
1548 """PassMessages(self, bool bDoPass)"""
1549 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1551 def IsPassingMessages(*args
, **kwargs
):
1552 """IsPassingMessages(self) -> bool"""
1553 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1555 def GetOldLog(*args
, **kwargs
):
1556 """GetOldLog(self) -> Log"""
1557 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1559 _misc_
.LogChain_swigregister(LogChain
)
1561 class LogBuffer(Log
):
1562 """Proxy of C++ LogBuffer class"""
1563 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1564 __repr__
= _swig_repr
1565 def __init__(self
, *args
, **kwargs
):
1566 """__init__(self) -> LogBuffer"""
1567 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1568 def GetBuffer(*args
, **kwargs
):
1569 """GetBuffer(self) -> String"""
1570 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1572 _misc_
.LogBuffer_swigregister(LogBuffer
)
1575 def SysErrorCode(*args
):
1576 """SysErrorCode() -> unsigned long"""
1577 return _misc_
.SysErrorCode(*args
)
1579 def SysErrorMsg(*args
, **kwargs
):
1580 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1581 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1583 def LogFatalError(*args
, **kwargs
):
1584 """LogFatalError(String msg)"""
1585 return _misc_
.LogFatalError(*args
, **kwargs
)
1587 def LogError(*args
, **kwargs
):
1588 """LogError(String msg)"""
1589 return _misc_
.LogError(*args
, **kwargs
)
1591 def LogWarning(*args
, **kwargs
):
1592 """LogWarning(String msg)"""
1593 return _misc_
.LogWarning(*args
, **kwargs
)
1595 def LogMessage(*args
, **kwargs
):
1596 """LogMessage(String msg)"""
1597 return _misc_
.LogMessage(*args
, **kwargs
)
1599 def LogInfo(*args
, **kwargs
):
1600 """LogInfo(String msg)"""
1601 return _misc_
.LogInfo(*args
, **kwargs
)
1603 def LogDebug(*args
, **kwargs
):
1604 """LogDebug(String msg)"""
1605 return _misc_
.LogDebug(*args
, **kwargs
)
1607 def LogVerbose(*args
, **kwargs
):
1608 """LogVerbose(String msg)"""
1609 return _misc_
.LogVerbose(*args
, **kwargs
)
1611 def LogStatus(*args
, **kwargs
):
1612 """LogStatus(String msg)"""
1613 return _misc_
.LogStatus(*args
, **kwargs
)
1615 def LogStatusFrame(*args
, **kwargs
):
1616 """LogStatusFrame(wxFrame pFrame, String msg)"""
1617 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1619 def LogSysError(*args
, **kwargs
):
1620 """LogSysError(String msg)"""
1621 return _misc_
.LogSysError(*args
, **kwargs
)
1623 def LogGeneric(*args
, **kwargs
):
1624 """LogGeneric(unsigned long level, String msg)"""
1625 return _misc_
.LogGeneric(*args
, **kwargs
)
1627 def SafeShowMessage(*args
, **kwargs
):
1628 """SafeShowMessage(String title, String text)"""
1629 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1630 class LogNull(object):
1631 """Proxy of C++ LogNull 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) -> LogNull"""
1636 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1637 __swig_destroy__
= _misc_
.delete_LogNull
1638 __del__
= lambda self
: None;
1639 _misc_
.LogNull_swigregister(LogNull
)
1641 def LogTrace(*args
):
1643 LogTrace(unsigned long mask, String msg)
1644 LogTrace(String mask, String msg)
1646 return _misc_
.LogTrace(*args
)
1649 """Proxy of C++ PyLog class"""
1650 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1651 __repr__
= _swig_repr
1652 def __init__(self
, *args
, **kwargs
):
1653 """__init__(self) -> PyLog"""
1654 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1655 self
._setCallbackInfo
(self
, PyLog
)
1657 def _setCallbackInfo(*args
, **kwargs
):
1658 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1659 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1661 _misc_
.PyLog_swigregister(PyLog
)
1663 #---------------------------------------------------------------------------
1665 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1666 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1667 KILL_OK
= _misc_
.KILL_OK
1668 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1669 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1670 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1671 KILL_ERROR
= _misc_
.KILL_ERROR
1672 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1673 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1674 SIGNONE
= _misc_
.SIGNONE
1675 SIGHUP
= _misc_
.SIGHUP
1676 SIGINT
= _misc_
.SIGINT
1677 SIGQUIT
= _misc_
.SIGQUIT
1678 SIGILL
= _misc_
.SIGILL
1679 SIGTRAP
= _misc_
.SIGTRAP
1680 SIGABRT
= _misc_
.SIGABRT
1681 SIGIOT
= _misc_
.SIGIOT
1682 SIGEMT
= _misc_
.SIGEMT
1683 SIGFPE
= _misc_
.SIGFPE
1684 SIGKILL
= _misc_
.SIGKILL
1685 SIGBUS
= _misc_
.SIGBUS
1686 SIGSEGV
= _misc_
.SIGSEGV
1687 SIGSYS
= _misc_
.SIGSYS
1688 SIGPIPE
= _misc_
.SIGPIPE
1689 SIGALRM
= _misc_
.SIGALRM
1690 SIGTERM
= _misc_
.SIGTERM
1691 class Process(_core
.EvtHandler
):
1692 """Proxy of C++ Process class"""
1693 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1694 __repr__
= _swig_repr
1695 def Kill(*args
, **kwargs
):
1696 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1697 return _misc_
.Process_Kill(*args
, **kwargs
)
1699 Kill
= staticmethod(Kill
)
1700 def Exists(*args
, **kwargs
):
1701 """Exists(int pid) -> bool"""
1702 return _misc_
.Process_Exists(*args
, **kwargs
)
1704 Exists
= staticmethod(Exists
)
1705 def Open(*args
, **kwargs
):
1706 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1707 return _misc_
.Process_Open(*args
, **kwargs
)
1709 Open
= staticmethod(Open
)
1710 def __init__(self
, *args
, **kwargs
):
1711 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1712 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1713 self
._setCallbackInfo
(self
, Process
)
1715 def _setCallbackInfo(*args
, **kwargs
):
1716 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1717 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1719 def OnTerminate(*args
, **kwargs
):
1720 """OnTerminate(self, int pid, int status)"""
1721 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1723 def base_OnTerminate(*args
, **kw
):
1724 return Process
.OnTerminate(*args
, **kw
)
1725 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1726 "Please use Process.OnTerminate instead.")
1728 def Redirect(*args
, **kwargs
):
1729 """Redirect(self)"""
1730 return _misc_
.Process_Redirect(*args
, **kwargs
)
1732 def IsRedirected(*args
, **kwargs
):
1733 """IsRedirected(self) -> bool"""
1734 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1736 def Detach(*args
, **kwargs
):
1738 return _misc_
.Process_Detach(*args
, **kwargs
)
1740 def GetInputStream(*args
, **kwargs
):
1741 """GetInputStream(self) -> InputStream"""
1742 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1744 def GetErrorStream(*args
, **kwargs
):
1745 """GetErrorStream(self) -> InputStream"""
1746 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1748 def GetOutputStream(*args
, **kwargs
):
1749 """GetOutputStream(self) -> OutputStream"""
1750 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1752 def CloseOutput(*args
, **kwargs
):
1753 """CloseOutput(self)"""
1754 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1756 def IsInputOpened(*args
, **kwargs
):
1757 """IsInputOpened(self) -> bool"""
1758 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1760 def IsInputAvailable(*args
, **kwargs
):
1761 """IsInputAvailable(self) -> bool"""
1762 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1764 def IsErrorAvailable(*args
, **kwargs
):
1765 """IsErrorAvailable(self) -> bool"""
1766 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1768 _misc_
.Process_swigregister(Process
)
1770 def Process_Kill(*args
, **kwargs
):
1771 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1772 return _misc_
.Process_Kill(*args
, **kwargs
)
1774 def Process_Exists(*args
, **kwargs
):
1775 """Process_Exists(int pid) -> bool"""
1776 return _misc_
.Process_Exists(*args
, **kwargs
)
1778 def Process_Open(*args
, **kwargs
):
1779 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1780 return _misc_
.Process_Open(*args
, **kwargs
)
1782 class ProcessEvent(_core
.Event
):
1783 """Proxy of C++ ProcessEvent class"""
1784 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1785 __repr__
= _swig_repr
1786 def __init__(self
, *args
, **kwargs
):
1787 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1788 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1789 def GetPid(*args
, **kwargs
):
1790 """GetPid(self) -> int"""
1791 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1793 def GetExitCode(*args
, **kwargs
):
1794 """GetExitCode(self) -> int"""
1795 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1797 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1798 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1799 _misc_
.ProcessEvent_swigregister(ProcessEvent
)
1801 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1802 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1804 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1805 EXEC_SYNC
= _misc_
.EXEC_SYNC
1806 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1807 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1808 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1810 def Execute(*args
, **kwargs
):
1811 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1812 return _misc_
.Execute(*args
, **kwargs
)
1814 def Kill(*args
, **kwargs
):
1815 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1816 return _misc_
.Kill(*args
, **kwargs
)
1817 #---------------------------------------------------------------------------
1819 JOYSTICK1
= _misc_
.JOYSTICK1
1820 JOYSTICK2
= _misc_
.JOYSTICK2
1821 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1822 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1823 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1824 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1825 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1826 class Joystick(object):
1827 """Proxy of C++ Joystick class"""
1828 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1829 __repr__
= _swig_repr
1830 def __init__(self
, *args
, **kwargs
):
1831 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1832 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
1833 __swig_destroy__
= _misc_
.delete_Joystick
1834 __del__
= lambda self
: None;
1835 def GetPosition(*args
, **kwargs
):
1836 """GetPosition(self) -> Point"""
1837 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1839 def GetZPosition(*args
, **kwargs
):
1840 """GetZPosition(self) -> int"""
1841 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1843 def GetButtonState(*args
, **kwargs
):
1844 """GetButtonState(self) -> int"""
1845 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1847 def GetPOVPosition(*args
, **kwargs
):
1848 """GetPOVPosition(self) -> int"""
1849 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1851 def GetPOVCTSPosition(*args
, **kwargs
):
1852 """GetPOVCTSPosition(self) -> int"""
1853 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1855 def GetRudderPosition(*args
, **kwargs
):
1856 """GetRudderPosition(self) -> int"""
1857 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1859 def GetUPosition(*args
, **kwargs
):
1860 """GetUPosition(self) -> int"""
1861 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1863 def GetVPosition(*args
, **kwargs
):
1864 """GetVPosition(self) -> int"""
1865 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1867 def GetMovementThreshold(*args
, **kwargs
):
1868 """GetMovementThreshold(self) -> int"""
1869 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1871 def SetMovementThreshold(*args
, **kwargs
):
1872 """SetMovementThreshold(self, int threshold)"""
1873 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1875 def IsOk(*args
, **kwargs
):
1876 """IsOk(self) -> bool"""
1877 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1879 def GetNumberJoysticks(*args
, **kwargs
):
1880 """GetNumberJoysticks(self) -> int"""
1881 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1883 def GetManufacturerId(*args
, **kwargs
):
1884 """GetManufacturerId(self) -> int"""
1885 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1887 def GetProductId(*args
, **kwargs
):
1888 """GetProductId(self) -> int"""
1889 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1891 def GetProductName(*args
, **kwargs
):
1892 """GetProductName(self) -> String"""
1893 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1895 def GetXMin(*args
, **kwargs
):
1896 """GetXMin(self) -> int"""
1897 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1899 def GetYMin(*args
, **kwargs
):
1900 """GetYMin(self) -> int"""
1901 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1903 def GetZMin(*args
, **kwargs
):
1904 """GetZMin(self) -> int"""
1905 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1907 def GetXMax(*args
, **kwargs
):
1908 """GetXMax(self) -> int"""
1909 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1911 def GetYMax(*args
, **kwargs
):
1912 """GetYMax(self) -> int"""
1913 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1915 def GetZMax(*args
, **kwargs
):
1916 """GetZMax(self) -> int"""
1917 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1919 def GetNumberButtons(*args
, **kwargs
):
1920 """GetNumberButtons(self) -> int"""
1921 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1923 def GetNumberAxes(*args
, **kwargs
):
1924 """GetNumberAxes(self) -> int"""
1925 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1927 def GetMaxButtons(*args
, **kwargs
):
1928 """GetMaxButtons(self) -> int"""
1929 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1931 def GetMaxAxes(*args
, **kwargs
):
1932 """GetMaxAxes(self) -> int"""
1933 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1935 def GetPollingMin(*args
, **kwargs
):
1936 """GetPollingMin(self) -> int"""
1937 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1939 def GetPollingMax(*args
, **kwargs
):
1940 """GetPollingMax(self) -> int"""
1941 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1943 def GetRudderMin(*args
, **kwargs
):
1944 """GetRudderMin(self) -> int"""
1945 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1947 def GetRudderMax(*args
, **kwargs
):
1948 """GetRudderMax(self) -> int"""
1949 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1951 def GetUMin(*args
, **kwargs
):
1952 """GetUMin(self) -> int"""
1953 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1955 def GetUMax(*args
, **kwargs
):
1956 """GetUMax(self) -> int"""
1957 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1959 def GetVMin(*args
, **kwargs
):
1960 """GetVMin(self) -> int"""
1961 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1963 def GetVMax(*args
, **kwargs
):
1964 """GetVMax(self) -> int"""
1965 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1967 def HasRudder(*args
, **kwargs
):
1968 """HasRudder(self) -> bool"""
1969 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1971 def HasZ(*args
, **kwargs
):
1972 """HasZ(self) -> bool"""
1973 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1975 def HasU(*args
, **kwargs
):
1976 """HasU(self) -> bool"""
1977 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1979 def HasV(*args
, **kwargs
):
1980 """HasV(self) -> bool"""
1981 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1983 def HasPOV(*args
, **kwargs
):
1984 """HasPOV(self) -> bool"""
1985 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1987 def HasPOV4Dir(*args
, **kwargs
):
1988 """HasPOV4Dir(self) -> bool"""
1989 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1991 def HasPOVCTS(*args
, **kwargs
):
1992 """HasPOVCTS(self) -> bool"""
1993 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1995 def SetCapture(*args
, **kwargs
):
1996 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1997 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
1999 def ReleaseCapture(*args
, **kwargs
):
2000 """ReleaseCapture(self) -> bool"""
2001 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2003 def __nonzero__(self
): return self
.IsOk()
2004 _misc_
.Joystick_swigregister(Joystick
)
2006 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2007 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2008 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2009 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2010 class JoystickEvent(_core
.Event
):
2011 """Proxy of C++ JoystickEvent class"""
2012 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2013 __repr__
= _swig_repr
2014 def __init__(self
, *args
, **kwargs
):
2016 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2017 int change=0) -> JoystickEvent
2019 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
2020 def GetPosition(*args
, **kwargs
):
2021 """GetPosition(self) -> Point"""
2022 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2024 def GetZPosition(*args
, **kwargs
):
2025 """GetZPosition(self) -> int"""
2026 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2028 def GetButtonState(*args
, **kwargs
):
2029 """GetButtonState(self) -> int"""
2030 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2032 def GetButtonChange(*args
, **kwargs
):
2033 """GetButtonChange(self) -> int"""
2034 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2036 def GetJoystick(*args
, **kwargs
):
2037 """GetJoystick(self) -> int"""
2038 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2040 def SetJoystick(*args
, **kwargs
):
2041 """SetJoystick(self, int stick)"""
2042 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2044 def SetButtonState(*args
, **kwargs
):
2045 """SetButtonState(self, int state)"""
2046 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2048 def SetButtonChange(*args
, **kwargs
):
2049 """SetButtonChange(self, int change)"""
2050 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2052 def SetPosition(*args
, **kwargs
):
2053 """SetPosition(self, Point pos)"""
2054 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2056 def SetZPosition(*args
, **kwargs
):
2057 """SetZPosition(self, int zPos)"""
2058 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2060 def IsButton(*args
, **kwargs
):
2061 """IsButton(self) -> bool"""
2062 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2064 def IsMove(*args
, **kwargs
):
2065 """IsMove(self) -> bool"""
2066 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2068 def IsZMove(*args
, **kwargs
):
2069 """IsZMove(self) -> bool"""
2070 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2072 def ButtonDown(*args
, **kwargs
):
2073 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2074 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2076 def ButtonUp(*args
, **kwargs
):
2077 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2078 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2080 def ButtonIsDown(*args
, **kwargs
):
2081 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2082 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2084 m_pos
= property(GetPosition
, SetPosition
)
2085 m_zPosition
= property(GetZPosition
, SetZPosition
)
2086 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2087 m_buttonState
= property(GetButtonState
, SetButtonState
)
2088 m_joyStick
= property(GetJoystick
, SetJoystick
)
2090 _misc_
.JoystickEvent_swigregister(JoystickEvent
)
2092 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2093 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2094 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2095 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2097 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2098 wxEVT_JOY_BUTTON_UP
,
2104 #---------------------------------------------------------------------------
2106 SOUND_SYNC
= _misc_
.SOUND_SYNC
2107 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2108 SOUND_LOOP
= _misc_
.SOUND_LOOP
2109 class Sound(object):
2110 """Proxy of C++ Sound class"""
2111 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2112 __repr__
= _swig_repr
2113 def __init__(self
, *args
, **kwargs
):
2114 """__init__(self, String fileName=EmptyString) -> Sound"""
2115 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2116 __swig_destroy__
= _misc_
.delete_Sound
2117 __del__
= lambda self
: None;
2118 def Create(*args
, **kwargs
):
2119 """Create(self, String fileName) -> bool"""
2120 return _misc_
.Sound_Create(*args
, **kwargs
)
2122 def CreateFromData(*args
, **kwargs
):
2123 """CreateFromData(self, PyObject data) -> bool"""
2124 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2126 def IsOk(*args
, **kwargs
):
2127 """IsOk(self) -> bool"""
2128 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2130 def Play(*args
, **kwargs
):
2131 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2132 return _misc_
.Sound_Play(*args
, **kwargs
)
2134 def PlaySound(*args
, **kwargs
):
2135 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2136 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2138 PlaySound
= staticmethod(PlaySound
)
2139 def Stop(*args
, **kwargs
):
2141 return _misc_
.Sound_Stop(*args
, **kwargs
)
2143 Stop
= staticmethod(Stop
)
2144 def __nonzero__(self
): return self
.IsOk()
2145 _misc_
.Sound_swigregister(Sound
)
2147 def SoundFromData(*args
, **kwargs
):
2148 """SoundFromData(PyObject data) -> Sound"""
2149 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2152 def Sound_PlaySound(*args
, **kwargs
):
2153 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2154 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2156 def Sound_Stop(*args
):
2158 return _misc_
.Sound_Stop(*args
)
2160 #---------------------------------------------------------------------------
2162 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2163 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2164 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2165 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2166 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2167 class FileTypeInfo(object):
2168 """Proxy of C++ FileTypeInfo class"""
2169 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2170 __repr__
= _swig_repr
2171 def __init__(self
, *args
, **kwargs
):
2172 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2173 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2174 def IsValid(*args
, **kwargs
):
2175 """IsValid(self) -> bool"""
2176 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2178 def SetIcon(*args
, **kwargs
):
2179 """SetIcon(self, String iconFile, int iconIndex=0)"""
2180 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2182 def SetShortDesc(*args
, **kwargs
):
2183 """SetShortDesc(self, String shortDesc)"""
2184 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2186 def GetMimeType(*args
, **kwargs
):
2187 """GetMimeType(self) -> String"""
2188 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2190 def GetOpenCommand(*args
, **kwargs
):
2191 """GetOpenCommand(self) -> String"""
2192 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2194 def GetPrintCommand(*args
, **kwargs
):
2195 """GetPrintCommand(self) -> String"""
2196 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2198 def GetShortDesc(*args
, **kwargs
):
2199 """GetShortDesc(self) -> String"""
2200 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2202 def GetDescription(*args
, **kwargs
):
2203 """GetDescription(self) -> String"""
2204 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2206 def GetExtensions(*args
, **kwargs
):
2207 """GetExtensions(self) -> wxArrayString"""
2208 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2210 def GetExtensionsCount(*args
, **kwargs
):
2211 """GetExtensionsCount(self) -> size_t"""
2212 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2214 def GetIconFile(*args
, **kwargs
):
2215 """GetIconFile(self) -> String"""
2216 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2218 def GetIconIndex(*args
, **kwargs
):
2219 """GetIconIndex(self) -> int"""
2220 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2222 _misc_
.FileTypeInfo_swigregister(FileTypeInfo
)
2224 def FileTypeInfoSequence(*args
, **kwargs
):
2225 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2226 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2229 def NullFileTypeInfo(*args
, **kwargs
):
2230 """NullFileTypeInfo() -> FileTypeInfo"""
2231 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2234 class FileType(object):
2235 """Proxy of C++ FileType class"""
2236 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2237 __repr__
= _swig_repr
2238 def __init__(self
, *args
, **kwargs
):
2239 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2240 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2241 __swig_destroy__
= _misc_
.delete_FileType
2242 __del__
= lambda self
: None;
2243 def GetMimeType(*args
, **kwargs
):
2244 """GetMimeType(self) -> PyObject"""
2245 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2247 def GetMimeTypes(*args
, **kwargs
):
2248 """GetMimeTypes(self) -> PyObject"""
2249 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2251 def GetExtensions(*args
, **kwargs
):
2252 """GetExtensions(self) -> PyObject"""
2253 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2255 def GetIcon(*args
, **kwargs
):
2256 """GetIcon(self) -> Icon"""
2257 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2259 def GetIconInfo(*args
, **kwargs
):
2260 """GetIconInfo(self) -> PyObject"""
2261 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2263 def GetDescription(*args
, **kwargs
):
2264 """GetDescription(self) -> PyObject"""
2265 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2267 def GetOpenCommand(*args
, **kwargs
):
2268 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2269 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2271 def GetPrintCommand(*args
, **kwargs
):
2272 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2273 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2275 def GetAllCommands(*args
, **kwargs
):
2276 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2277 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2279 def SetCommand(*args
, **kwargs
):
2280 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2281 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2283 def SetDefaultIcon(*args
, **kwargs
):
2284 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2285 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2287 def Unassociate(*args
, **kwargs
):
2288 """Unassociate(self) -> bool"""
2289 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2291 def ExpandCommand(*args
, **kwargs
):
2292 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2293 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2295 ExpandCommand
= staticmethod(ExpandCommand
)
2296 _misc_
.FileType_swigregister(FileType
)
2298 def FileType_ExpandCommand(*args
, **kwargs
):
2299 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2300 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2302 class MimeTypesManager(object):
2303 """Proxy of C++ MimeTypesManager class"""
2304 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2305 __repr__
= _swig_repr
2306 def IsOfType(*args
, **kwargs
):
2307 """IsOfType(String mimeType, String wildcard) -> bool"""
2308 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2310 IsOfType
= staticmethod(IsOfType
)
2311 def __init__(self
, *args
, **kwargs
):
2312 """__init__(self) -> MimeTypesManager"""
2313 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2314 def Initialize(*args
, **kwargs
):
2315 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2316 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2318 def ClearData(*args
, **kwargs
):
2319 """ClearData(self)"""
2320 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2322 def GetFileTypeFromExtension(*args
, **kwargs
):
2323 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2324 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2326 def GetFileTypeFromMimeType(*args
, **kwargs
):
2327 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2328 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2330 def ReadMailcap(*args
, **kwargs
):
2331 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2332 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2334 def ReadMimeTypes(*args
, **kwargs
):
2335 """ReadMimeTypes(self, String filename) -> bool"""
2336 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2338 def EnumAllFileTypes(*args
, **kwargs
):
2339 """EnumAllFileTypes(self) -> PyObject"""
2340 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2342 def AddFallback(*args
, **kwargs
):
2343 """AddFallback(self, FileTypeInfo ft)"""
2344 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2346 def Associate(*args
, **kwargs
):
2347 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2348 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2350 def Unassociate(*args
, **kwargs
):
2351 """Unassociate(self, FileType ft) -> bool"""
2352 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2354 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2355 __del__
= lambda self
: None;
2356 _misc_
.MimeTypesManager_swigregister(MimeTypesManager
)
2357 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2359 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2360 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2361 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2363 #---------------------------------------------------------------------------
2365 class ArtProvider(object):
2367 The wx.ArtProvider class is used to customize the look of wxWidgets
2368 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2369 in the standard file dialog), it does not use hard-coded resource but
2370 asks wx.ArtProvider for it instead. This way the users can plug in
2371 their own wx.ArtProvider class and easily replace standard art with
2372 his/her own version. It is easy thing to do: all that is needed is
2373 to derive a class from wx.ArtProvider, override it's CreateBitmap
2374 method and register the provider with wx.ArtProvider.PushProvider::
2376 class MyArtProvider(wx.ArtProvider):
2378 wx.ArtProvider.__init__(self)
2380 def CreateBitmap(self, artid, client, size):
2385 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2386 __repr__
= _swig_repr
2387 def __init__(self
, *args
, **kwargs
):
2389 __init__(self) -> ArtProvider
2391 The wx.ArtProvider class is used to customize the look of wxWidgets
2392 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2393 in the standard file dialog), it does not use hard-coded resource but
2394 asks wx.ArtProvider for it instead. This way the users can plug in
2395 their own wx.ArtProvider class and easily replace standard art with
2396 his/her own version. It is easy thing to do: all that is needed is
2397 to derive a class from wx.ArtProvider, override it's CreateBitmap
2398 method and register the provider with wx.ArtProvider.PushProvider::
2400 class MyArtProvider(wx.ArtProvider):
2402 wx.ArtProvider.__init__(self)
2404 def CreateBitmap(self, artid, client, size):
2409 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2410 self
._setCallbackInfo
(self
, ArtProvider
)
2412 __swig_destroy__
= _misc_
.delete_ArtProvider
2413 __del__
= lambda self
: None;
2414 def _setCallbackInfo(*args
, **kwargs
):
2415 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2416 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2418 def PushProvider(*args
, **kwargs
):
2420 PushProvider(ArtProvider provider)
2422 Add new provider to the top of providers stack.
2424 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2426 PushProvider
= staticmethod(PushProvider
)
2427 def PopProvider(*args
, **kwargs
):
2429 PopProvider() -> bool
2431 Remove latest added provider and delete it.
2433 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2435 PopProvider
= staticmethod(PopProvider
)
2436 def RemoveProvider(*args
, **kwargs
):
2438 RemoveProvider(ArtProvider provider) -> bool
2440 Remove provider. The provider must have been added previously! The
2441 provider is _not_ deleted.
2443 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2447 RemoveProvider
= staticmethod(RemoveProvider
)
2448 def GetBitmap(*args
, **kwargs
):
2450 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2452 Query the providers for bitmap with given ID and return it. Return
2453 wx.NullBitmap if no provider provides it.
2455 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2457 GetBitmap
= staticmethod(GetBitmap
)
2458 def GetIcon(*args
, **kwargs
):
2460 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2462 Query the providers for icon with given ID and return it. Return
2463 wx.NullIcon if no provider provides it.
2465 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2467 GetIcon
= staticmethod(GetIcon
)
2468 def GetSizeHint(*args
, **kwargs
):
2470 GetSizeHint(String client, bool platform_dependent=False) -> Size
2472 Get the size hint of an icon from a specific Art Client, queries the
2473 topmost provider if platform_dependent = false
2475 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2477 GetSizeHint
= staticmethod(GetSizeHint
)
2478 def Destroy(*args
, **kwargs
):
2480 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2484 _misc_
.ArtProvider_swigregister(ArtProvider
)
2485 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2486 ART_MENU
= cvar
.ART_MENU
2487 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2488 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2489 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2490 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2491 ART_BUTTON
= cvar
.ART_BUTTON
2492 ART_OTHER
= cvar
.ART_OTHER
2493 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2494 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2495 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2496 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2497 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2498 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2499 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2500 ART_GO_BACK
= cvar
.ART_GO_BACK
2501 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2502 ART_GO_UP
= cvar
.ART_GO_UP
2503 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2504 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2505 ART_GO_HOME
= cvar
.ART_GO_HOME
2506 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2507 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2508 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2509 ART_PRINT
= cvar
.ART_PRINT
2510 ART_HELP
= cvar
.ART_HELP
2511 ART_TIP
= cvar
.ART_TIP
2512 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2513 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2514 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2515 ART_HARDDISK
= cvar
.ART_HARDDISK
2516 ART_FLOPPY
= cvar
.ART_FLOPPY
2517 ART_CDROM
= cvar
.ART_CDROM
2518 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2519 ART_FOLDER
= cvar
.ART_FOLDER
2520 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2521 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2522 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2523 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2524 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2525 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2526 ART_ERROR
= cvar
.ART_ERROR
2527 ART_QUESTION
= cvar
.ART_QUESTION
2528 ART_WARNING
= cvar
.ART_WARNING
2529 ART_INFORMATION
= cvar
.ART_INFORMATION
2530 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2531 ART_COPY
= cvar
.ART_COPY
2532 ART_CUT
= cvar
.ART_CUT
2533 ART_PASTE
= cvar
.ART_PASTE
2534 ART_DELETE
= cvar
.ART_DELETE
2535 ART_NEW
= cvar
.ART_NEW
2536 ART_UNDO
= cvar
.ART_UNDO
2537 ART_REDO
= cvar
.ART_REDO
2538 ART_QUIT
= cvar
.ART_QUIT
2539 ART_FIND
= cvar
.ART_FIND
2540 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2542 def ArtProvider_PushProvider(*args
, **kwargs
):
2544 ArtProvider_PushProvider(ArtProvider provider)
2546 Add new provider to the top of providers stack.
2548 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2550 def ArtProvider_PopProvider(*args
):
2552 ArtProvider_PopProvider() -> bool
2554 Remove latest added provider and delete it.
2556 return _misc_
.ArtProvider_PopProvider(*args
)
2558 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2560 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2562 Remove provider. The provider must have been added previously! The
2563 provider is _not_ deleted.
2565 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2569 def ArtProvider_GetBitmap(*args
, **kwargs
):
2571 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2573 Query the providers for bitmap with given ID and return it. Return
2574 wx.NullBitmap if no provider provides it.
2576 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2578 def ArtProvider_GetIcon(*args
, **kwargs
):
2580 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2582 Query the providers for icon with given ID and return it. Return
2583 wx.NullIcon if no provider provides it.
2585 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2587 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2589 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2591 Get the size hint of an icon from a specific Art Client, queries the
2592 topmost provider if platform_dependent = false
2594 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2596 #---------------------------------------------------------------------------
2598 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2599 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2600 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2601 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2602 class ConfigBase(object):
2604 wx.ConfigBase class defines the basic interface of all config
2605 classes. It can not be used by itself (it is an abstract base class)
2606 and you will always use one of its derivations: wx.Config or
2609 wx.ConfigBase organizes the items in a tree-like structure, modeled
2610 after the Unix/Dos filesystem. There are groups that act like
2611 directories and entries, key/value pairs that act like files. There
2612 is always one current group given by the current path. As in the file
2613 system case, to specify a key in the config class you must use a path
2614 to it. Config classes also support the notion of the current group,
2615 which makes it possible to use relative paths.
2617 Keys are pairs "key_name = value" where value may be of string,
2618 integer floating point or boolean, you can not store binary data
2619 without first encoding it as a string. For performance reasons items
2620 should be kept small, no more than a couple kilobytes.
2623 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2624 def __init__(self
): raise AttributeError, "No constructor defined"
2625 __repr__
= _swig_repr
2626 __swig_destroy__
= _misc_
.delete_ConfigBase
2627 __del__
= lambda self
: None;
2628 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2629 Type_String
= _misc_
.ConfigBase_Type_String
2630 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2631 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2632 Type_Float
= _misc_
.ConfigBase_Type_Float
2633 def Set(*args
, **kwargs
):
2635 Set(ConfigBase config) -> ConfigBase
2637 Sets the global config object (the one returned by Get) and returns a
2638 reference to the previous global config object.
2640 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2642 Set
= staticmethod(Set
)
2643 def Get(*args
, **kwargs
):
2645 Get(bool createOnDemand=True) -> ConfigBase
2647 Returns the current global config object, creating one if neccessary.
2649 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2651 Get
= staticmethod(Get
)
2652 def Create(*args
, **kwargs
):
2654 Create() -> ConfigBase
2656 Create and return a new global config object. This function will
2657 create the "best" implementation of wx.Config available for the
2660 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2662 Create
= staticmethod(Create
)
2663 def DontCreateOnDemand(*args
, **kwargs
):
2665 DontCreateOnDemand()
2667 Should Get() try to create a new log object if there isn't a current
2670 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2672 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2673 def SetPath(*args
, **kwargs
):
2675 SetPath(self, String path)
2677 Set current path: if the first character is '/', it's the absolute
2678 path, otherwise it's a relative path. '..' is supported. If the
2679 strPath doesn't exist it is created.
2681 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2683 def GetPath(*args
, **kwargs
):
2685 GetPath(self) -> String
2687 Retrieve the current path (always as absolute path)
2689 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2691 def GetFirstGroup(*args
, **kwargs
):
2693 GetFirstGroup() -> (more, value, index)
2695 Allows enumerating the subgroups in a config object. Returns a tuple
2696 containing a flag indicating there are more items, the name of the
2697 current item, and an index to pass to GetNextGroup to fetch the next
2700 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2702 def GetNextGroup(*args
, **kwargs
):
2704 GetNextGroup(long index) -> (more, value, index)
2706 Allows enumerating the subgroups in a config object. Returns a tuple
2707 containing a flag indicating there are more items, the name of the
2708 current item, and an index to pass to GetNextGroup to fetch the next
2711 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2713 def GetFirstEntry(*args
, **kwargs
):
2715 GetFirstEntry() -> (more, value, index)
2717 Allows enumerating the entries in the current group in a config
2718 object. Returns a tuple containing a flag indicating there are more
2719 items, the name of the current item, and an index to pass to
2720 GetNextGroup to fetch the next item.
2722 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2724 def GetNextEntry(*args
, **kwargs
):
2726 GetNextEntry(long index) -> (more, value, index)
2728 Allows enumerating the entries in the current group in a config
2729 object. Returns a tuple containing a flag indicating there are more
2730 items, the name of the current item, and an index to pass to
2731 GetNextGroup to fetch the next item.
2733 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2735 def GetNumberOfEntries(*args
, **kwargs
):
2737 GetNumberOfEntries(self, bool recursive=False) -> size_t
2739 Get the number of entries in the current group, with or without its
2742 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2744 def GetNumberOfGroups(*args
, **kwargs
):
2746 GetNumberOfGroups(self, bool recursive=False) -> size_t
2748 Get the number of subgroups in the current group, with or without its
2751 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2753 def HasGroup(*args
, **kwargs
):
2755 HasGroup(self, String name) -> bool
2757 Returns True if the group by this name exists
2759 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2761 def HasEntry(*args
, **kwargs
):
2763 HasEntry(self, String name) -> bool
2765 Returns True if the entry by this name exists
2767 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2769 def Exists(*args
, **kwargs
):
2771 Exists(self, String name) -> bool
2773 Returns True if either a group or an entry with a given name exists
2775 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2777 def GetEntryType(*args
, **kwargs
):
2779 GetEntryType(self, String name) -> int
2781 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2783 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2785 def Read(*args
, **kwargs
):
2787 Read(self, String key, String defaultVal=EmptyString) -> String
2789 Returns the value of key if it exists, defaultVal otherwise.
2791 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2793 def ReadInt(*args
, **kwargs
):
2795 ReadInt(self, String key, long defaultVal=0) -> long
2797 Returns the value of key if it exists, defaultVal otherwise.
2799 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2801 def ReadFloat(*args
, **kwargs
):
2803 ReadFloat(self, String key, double defaultVal=0.0) -> double
2805 Returns the value of key if it exists, defaultVal otherwise.
2807 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2809 def ReadBool(*args
, **kwargs
):
2811 ReadBool(self, String key, bool defaultVal=False) -> bool
2813 Returns the value of key if it exists, defaultVal otherwise.
2815 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2817 def Write(*args
, **kwargs
):
2819 Write(self, String key, String value) -> bool
2821 write the value (return True on success)
2823 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2825 def WriteInt(*args
, **kwargs
):
2827 WriteInt(self, String key, long value) -> bool
2829 write the value (return True on success)
2831 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2833 def WriteFloat(*args
, **kwargs
):
2835 WriteFloat(self, String key, double value) -> bool
2837 write the value (return True on success)
2839 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2841 def WriteBool(*args
, **kwargs
):
2843 WriteBool(self, String key, bool value) -> bool
2845 write the value (return True on success)
2847 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2849 def Flush(*args
, **kwargs
):
2851 Flush(self, bool currentOnly=False) -> bool
2853 permanently writes all changes
2855 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2857 def RenameEntry(*args
, **kwargs
):
2859 RenameEntry(self, String oldName, String newName) -> bool
2861 Rename an entry. Returns False on failure (probably because the new
2862 name is already taken by an existing entry)
2864 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2866 def RenameGroup(*args
, **kwargs
):
2868 RenameGroup(self, String oldName, String newName) -> bool
2870 Rename a group. Returns False on failure (probably because the new
2871 name is already taken by an existing entry)
2873 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2875 def DeleteEntry(*args
, **kwargs
):
2877 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2879 Deletes the specified entry and the group it belongs to if it was the
2880 last key in it and the second parameter is True
2882 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2884 def DeleteGroup(*args
, **kwargs
):
2886 DeleteGroup(self, String key) -> bool
2888 Delete the group (with all subgroups)
2890 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2892 def DeleteAll(*args
, **kwargs
):
2894 DeleteAll(self) -> bool
2896 Delete the whole underlying object (disk file, registry key, ...)
2897 primarly intended for use by deinstallation routine.
2899 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2901 def SetExpandEnvVars(*args
, **kwargs
):
2903 SetExpandEnvVars(self, bool doIt=True)
2905 We can automatically expand environment variables in the config
2906 entries this option is on by default, you can turn it on/off at any
2909 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2911 def IsExpandingEnvVars(*args
, **kwargs
):
2913 IsExpandingEnvVars(self) -> bool
2915 Are we currently expanding environment variables?
2917 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2919 def SetRecordDefaults(*args
, **kwargs
):
2921 SetRecordDefaults(self, bool doIt=True)
2923 Set whether the config objec should record default values.
2925 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2927 def IsRecordingDefaults(*args
, **kwargs
):
2929 IsRecordingDefaults(self) -> bool
2931 Are we currently recording default values?
2933 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2935 def ExpandEnvVars(*args
, **kwargs
):
2937 ExpandEnvVars(self, String str) -> String
2939 Expand any environment variables in str and return the result
2941 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2943 def GetAppName(*args
, **kwargs
):
2944 """GetAppName(self) -> String"""
2945 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
2947 def GetVendorName(*args
, **kwargs
):
2948 """GetVendorName(self) -> String"""
2949 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
2951 def SetAppName(*args
, **kwargs
):
2952 """SetAppName(self, String appName)"""
2953 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
2955 def SetVendorName(*args
, **kwargs
):
2956 """SetVendorName(self, String vendorName)"""
2957 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
2959 def SetStyle(*args
, **kwargs
):
2960 """SetStyle(self, long style)"""
2961 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
2963 def GetStyle(*args
, **kwargs
):
2964 """GetStyle(self) -> long"""
2965 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
2967 _misc_
.ConfigBase_swigregister(ConfigBase
)
2969 def ConfigBase_Set(*args
, **kwargs
):
2971 ConfigBase_Set(ConfigBase config) -> ConfigBase
2973 Sets the global config object (the one returned by Get) and returns a
2974 reference to the previous global config object.
2976 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2978 def ConfigBase_Get(*args
, **kwargs
):
2980 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
2982 Returns the current global config object, creating one if neccessary.
2984 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2986 def ConfigBase_Create(*args
):
2988 ConfigBase_Create() -> ConfigBase
2990 Create and return a new global config object. This function will
2991 create the "best" implementation of wx.Config available for the
2994 return _misc_
.ConfigBase_Create(*args
)
2996 def ConfigBase_DontCreateOnDemand(*args
):
2998 ConfigBase_DontCreateOnDemand()
3000 Should Get() try to create a new log object if there isn't a current
3003 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
3005 class Config(ConfigBase
):
3007 This ConfigBase-derived class will use the registry on Windows,
3008 and will be a wx.FileConfig on other platforms.
3010 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3011 __repr__
= _swig_repr
3012 def __init__(self
, *args
, **kwargs
):
3014 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3015 String localFilename=EmptyString, String globalFilename=EmptyString,
3016 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3018 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
3019 __swig_destroy__
= _misc_
.delete_Config
3020 __del__
= lambda self
: None;
3021 _misc_
.Config_swigregister(Config
)
3023 class FileConfig(ConfigBase
):
3024 """This config class will use a file for storage on all platforms."""
3025 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3026 __repr__
= _swig_repr
3027 def __init__(self
, *args
, **kwargs
):
3029 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3030 String localFilename=EmptyString, String globalFilename=EmptyString,
3031 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3033 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3034 __swig_destroy__
= _misc_
.delete_FileConfig
3035 __del__
= lambda self
: None;
3036 _misc_
.FileConfig_swigregister(FileConfig
)
3038 class ConfigPathChanger(object):
3040 A handy little class which changes current path to the path of given
3041 entry and restores it in the destructoir: so if you declare a local
3042 variable of this type, you work in the entry directory and the path is
3043 automatically restored when the function returns.
3045 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3046 __repr__
= _swig_repr
3047 def __init__(self
, *args
, **kwargs
):
3048 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3049 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3050 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3051 __del__
= lambda self
: None;
3052 def Name(*args
, **kwargs
):
3054 Name(self) -> String
3058 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3060 _misc_
.ConfigPathChanger_swigregister(ConfigPathChanger
)
3063 def ExpandEnvVars(*args
, **kwargs
):
3065 ExpandEnvVars(String sz) -> String
3067 Replace environment variables ($SOMETHING) with their values. The
3068 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3069 characters and '_' only. '$' must be escaped ('\$') in order to be
3072 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3073 #---------------------------------------------------------------------------
3075 class DateTime(object):
3076 """Proxy of C++ DateTime class"""
3077 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3078 __repr__
= _swig_repr
3079 Local
= _misc_
.DateTime_Local
3080 GMT_12
= _misc_
.DateTime_GMT_12
3081 GMT_11
= _misc_
.DateTime_GMT_11
3082 GMT_10
= _misc_
.DateTime_GMT_10
3083 GMT_9
= _misc_
.DateTime_GMT_9
3084 GMT_8
= _misc_
.DateTime_GMT_8
3085 GMT_7
= _misc_
.DateTime_GMT_7
3086 GMT_6
= _misc_
.DateTime_GMT_6
3087 GMT_5
= _misc_
.DateTime_GMT_5
3088 GMT_4
= _misc_
.DateTime_GMT_4
3089 GMT_3
= _misc_
.DateTime_GMT_3
3090 GMT_2
= _misc_
.DateTime_GMT_2
3091 GMT_1
= _misc_
.DateTime_GMT_1
3092 GMT0
= _misc_
.DateTime_GMT0
3093 GMT1
= _misc_
.DateTime_GMT1
3094 GMT2
= _misc_
.DateTime_GMT2
3095 GMT3
= _misc_
.DateTime_GMT3
3096 GMT4
= _misc_
.DateTime_GMT4
3097 GMT5
= _misc_
.DateTime_GMT5
3098 GMT6
= _misc_
.DateTime_GMT6
3099 GMT7
= _misc_
.DateTime_GMT7
3100 GMT8
= _misc_
.DateTime_GMT8
3101 GMT9
= _misc_
.DateTime_GMT9
3102 GMT10
= _misc_
.DateTime_GMT10
3103 GMT11
= _misc_
.DateTime_GMT11
3104 GMT12
= _misc_
.DateTime_GMT12
3105 WET
= _misc_
.DateTime_WET
3106 WEST
= _misc_
.DateTime_WEST
3107 CET
= _misc_
.DateTime_CET
3108 CEST
= _misc_
.DateTime_CEST
3109 EET
= _misc_
.DateTime_EET
3110 EEST
= _misc_
.DateTime_EEST
3111 MSK
= _misc_
.DateTime_MSK
3112 MSD
= _misc_
.DateTime_MSD
3113 AST
= _misc_
.DateTime_AST
3114 ADT
= _misc_
.DateTime_ADT
3115 EST
= _misc_
.DateTime_EST
3116 EDT
= _misc_
.DateTime_EDT
3117 CST
= _misc_
.DateTime_CST
3118 CDT
= _misc_
.DateTime_CDT
3119 MST
= _misc_
.DateTime_MST
3120 MDT
= _misc_
.DateTime_MDT
3121 PST
= _misc_
.DateTime_PST
3122 PDT
= _misc_
.DateTime_PDT
3123 HST
= _misc_
.DateTime_HST
3124 AKST
= _misc_
.DateTime_AKST
3125 AKDT
= _misc_
.DateTime_AKDT
3126 A_WST
= _misc_
.DateTime_A_WST
3127 A_CST
= _misc_
.DateTime_A_CST
3128 A_EST
= _misc_
.DateTime_A_EST
3129 A_ESST
= _misc_
.DateTime_A_ESST
3130 UTC
= _misc_
.DateTime_UTC
3131 Gregorian
= _misc_
.DateTime_Gregorian
3132 Julian
= _misc_
.DateTime_Julian
3133 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3134 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3135 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3136 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3137 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3138 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3139 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3140 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3141 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3142 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3143 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3144 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3145 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3146 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3147 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3148 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3149 Gr_China
= _misc_
.DateTime_Gr_China
3150 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3151 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3152 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3153 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3154 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3155 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3156 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3157 Gr_France
= _misc_
.DateTime_Gr_France
3158 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3159 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3160 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3161 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3162 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3163 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3164 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3165 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3166 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3167 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3168 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3169 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3170 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3171 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3172 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3173 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3174 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3175 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3176 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3177 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3178 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3179 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3180 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3181 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3182 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3183 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3184 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3185 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3186 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3187 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3188 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3189 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3190 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3191 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3192 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3193 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3194 Gr_USA
= _misc_
.DateTime_Gr_USA
3195 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3196 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3197 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3198 Country_Default
= _misc_
.DateTime_Country_Default
3199 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3200 Country_EEC
= _misc_
.DateTime_Country_EEC
3201 France
= _misc_
.DateTime_France
3202 Germany
= _misc_
.DateTime_Germany
3203 UK
= _misc_
.DateTime_UK
3204 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3205 Russia
= _misc_
.DateTime_Russia
3206 USA
= _misc_
.DateTime_USA
3207 Jan
= _misc_
.DateTime_Jan
3208 Feb
= _misc_
.DateTime_Feb
3209 Mar
= _misc_
.DateTime_Mar
3210 Apr
= _misc_
.DateTime_Apr
3211 May
= _misc_
.DateTime_May
3212 Jun
= _misc_
.DateTime_Jun
3213 Jul
= _misc_
.DateTime_Jul
3214 Aug
= _misc_
.DateTime_Aug
3215 Sep
= _misc_
.DateTime_Sep
3216 Oct
= _misc_
.DateTime_Oct
3217 Nov
= _misc_
.DateTime_Nov
3218 Dec
= _misc_
.DateTime_Dec
3219 Inv_Month
= _misc_
.DateTime_Inv_Month
3220 Sun
= _misc_
.DateTime_Sun
3221 Mon
= _misc_
.DateTime_Mon
3222 Tue
= _misc_
.DateTime_Tue
3223 Wed
= _misc_
.DateTime_Wed
3224 Thu
= _misc_
.DateTime_Thu
3225 Fri
= _misc_
.DateTime_Fri
3226 Sat
= _misc_
.DateTime_Sat
3227 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3228 Inv_Year
= _misc_
.DateTime_Inv_Year
3229 Name_Full
= _misc_
.DateTime_Name_Full
3230 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3231 Default_First
= _misc_
.DateTime_Default_First
3232 Monday_First
= _misc_
.DateTime_Monday_First
3233 Sunday_First
= _misc_
.DateTime_Sunday_First
3234 def SetCountry(*args
, **kwargs
):
3235 """SetCountry(int country)"""
3236 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3238 SetCountry
= staticmethod(SetCountry
)
3239 def GetCountry(*args
, **kwargs
):
3240 """GetCountry() -> int"""
3241 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3243 GetCountry
= staticmethod(GetCountry
)
3244 def IsWestEuropeanCountry(*args
, **kwargs
):
3245 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3246 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3248 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3249 def GetCurrentYear(*args
, **kwargs
):
3250 """GetCurrentYear(int cal=Gregorian) -> int"""
3251 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3253 GetCurrentYear
= staticmethod(GetCurrentYear
)
3254 def ConvertYearToBC(*args
, **kwargs
):
3255 """ConvertYearToBC(int year) -> int"""
3256 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3258 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3259 def GetCurrentMonth(*args
, **kwargs
):
3260 """GetCurrentMonth(int cal=Gregorian) -> int"""
3261 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3263 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3264 def IsLeapYear(*args
, **kwargs
):
3265 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3266 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3268 IsLeapYear
= staticmethod(IsLeapYear
)
3269 def GetCentury(*args
, **kwargs
):
3270 """GetCentury(int year=Inv_Year) -> int"""
3271 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3273 GetCentury
= staticmethod(GetCentury
)
3274 def GetNumberOfDaysinYear(*args
, **kwargs
):
3275 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3276 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3278 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3279 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3280 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3281 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3283 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3284 def GetMonthName(*args
, **kwargs
):
3285 """GetMonthName(int month, int flags=Name_Full) -> String"""
3286 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3288 GetMonthName
= staticmethod(GetMonthName
)
3289 def GetWeekDayName(*args
, **kwargs
):
3290 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3291 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3293 GetWeekDayName
= staticmethod(GetWeekDayName
)
3294 def GetAmPmStrings(*args
, **kwargs
):
3296 GetAmPmStrings() -> (am, pm)
3298 Get the AM and PM strings in the current locale (may be empty)
3300 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3302 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3303 def IsDSTApplicable(*args
, **kwargs
):
3304 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3305 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3307 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3308 def GetBeginDST(*args
, **kwargs
):
3309 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3310 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3312 GetBeginDST
= staticmethod(GetBeginDST
)
3313 def GetEndDST(*args
, **kwargs
):
3314 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3315 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3317 GetEndDST
= staticmethod(GetEndDST
)
3318 def Now(*args
, **kwargs
):
3319 """Now() -> DateTime"""
3320 return _misc_
.DateTime_Now(*args
, **kwargs
)
3322 Now
= staticmethod(Now
)
3323 def UNow(*args
, **kwargs
):
3324 """UNow() -> DateTime"""
3325 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3327 UNow
= staticmethod(UNow
)
3328 def Today(*args
, **kwargs
):
3329 """Today() -> DateTime"""
3330 return _misc_
.DateTime_Today(*args
, **kwargs
)
3332 Today
= staticmethod(Today
)
3333 def __init__(self
, *args
, **kwargs
):
3334 """__init__(self) -> DateTime"""
3335 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3336 __swig_destroy__
= _misc_
.delete_DateTime
3337 __del__
= lambda self
: None;
3338 def SetToCurrent(*args
, **kwargs
):
3339 """SetToCurrent(self) -> DateTime"""
3340 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3342 def SetTimeT(*args
, **kwargs
):
3343 """SetTimeT(self, time_t timet) -> DateTime"""
3344 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3346 def SetJDN(*args
, **kwargs
):
3347 """SetJDN(self, double jdn) -> DateTime"""
3348 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3350 def SetHMS(*args
, **kwargs
):
3351 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3352 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3354 def Set(*args
, **kwargs
):
3356 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3357 int minute=0, int second=0, int millisec=0) -> DateTime
3359 return _misc_
.DateTime_Set(*args
, **kwargs
)
3361 def ResetTime(*args
, **kwargs
):
3362 """ResetTime(self) -> DateTime"""
3363 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3365 def SetYear(*args
, **kwargs
):
3366 """SetYear(self, int year) -> DateTime"""
3367 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3369 def SetMonth(*args
, **kwargs
):
3370 """SetMonth(self, int month) -> DateTime"""
3371 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3373 def SetDay(*args
, **kwargs
):
3374 """SetDay(self, int day) -> DateTime"""
3375 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3377 def SetHour(*args
, **kwargs
):
3378 """SetHour(self, int hour) -> DateTime"""
3379 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3381 def SetMinute(*args
, **kwargs
):
3382 """SetMinute(self, int minute) -> DateTime"""
3383 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3385 def SetSecond(*args
, **kwargs
):
3386 """SetSecond(self, int second) -> DateTime"""
3387 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3389 def SetMillisecond(*args
, **kwargs
):
3390 """SetMillisecond(self, int millisecond) -> DateTime"""
3391 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3393 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3394 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3395 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3397 def GetWeekDayInSameWeek(*args
, **kwargs
):
3398 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3399 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3401 def SetToNextWeekDay(*args
, **kwargs
):
3402 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3403 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3405 def GetNextWeekDay(*args
, **kwargs
):
3406 """GetNextWeekDay(self, int weekday) -> DateTime"""
3407 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3409 def SetToPrevWeekDay(*args
, **kwargs
):
3410 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3411 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3413 def GetPrevWeekDay(*args
, **kwargs
):
3414 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3415 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3417 def SetToWeekDay(*args
, **kwargs
):
3418 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3419 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3421 def SetToLastWeekDay(*args
, **kwargs
):
3422 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3423 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3425 def GetLastWeekDay(*args
, **kwargs
):
3426 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3427 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3429 def SetToTheWeek(*args
, **kwargs
):
3430 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3431 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3433 def GetWeek(*args
, **kwargs
):
3434 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3435 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3437 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3438 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3440 def SetToWeekOfYear(*args
, **kwargs
):
3441 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3442 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3444 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3445 def SetToLastMonthDay(*args
, **kwargs
):
3446 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3447 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3449 def GetLastMonthDay(*args
, **kwargs
):
3450 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3451 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3453 def SetToYearDay(*args
, **kwargs
):
3454 """SetToYearDay(self, int yday) -> DateTime"""
3455 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3457 def GetYearDay(*args
, **kwargs
):
3458 """GetYearDay(self, int yday) -> DateTime"""
3459 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3461 def GetJulianDayNumber(*args
, **kwargs
):
3462 """GetJulianDayNumber(self) -> double"""
3463 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3465 def GetJDN(*args
, **kwargs
):
3466 """GetJDN(self) -> double"""
3467 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3469 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3470 """GetModifiedJulianDayNumber(self) -> double"""
3471 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3473 def GetMJD(*args
, **kwargs
):
3474 """GetMJD(self) -> double"""
3475 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3477 def GetRataDie(*args
, **kwargs
):
3478 """GetRataDie(self) -> double"""
3479 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3481 def ToTimezone(*args
, **kwargs
):
3482 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3483 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3485 def MakeTimezone(*args
, **kwargs
):
3486 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3487 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3489 def FromTimezone(*args
, **kwargs
):
3490 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3491 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3493 def MakeFromTimezone(*args
, **kwargs
):
3494 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3495 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3497 def ToUTC(*args
, **kwargs
):
3498 """ToUTC(self, bool noDST=False) -> DateTime"""
3499 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3501 def MakeUTC(*args
, **kwargs
):
3502 """MakeUTC(self, bool noDST=False) -> DateTime"""
3503 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3505 def ToGMT(*args
, **kwargs
):
3506 """ToGMT(self, bool noDST=False) -> DateTime"""
3507 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3509 def MakeGMT(*args
, **kwargs
):
3510 """MakeGMT(self, bool noDST=False) -> DateTime"""
3511 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3513 def FromUTC(*args
, **kwargs
):
3514 """FromUTC(self, bool noDST=False) -> DateTime"""
3515 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3517 def MakeFromUTC(*args
, **kwargs
):
3518 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3519 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3521 def IsDST(*args
, **kwargs
):
3522 """IsDST(self, int country=Country_Default) -> int"""
3523 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3525 def IsValid(*args
, **kwargs
):
3526 """IsValid(self) -> bool"""
3527 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3530 def __nonzero__(self
): return self
.Ok()
3531 def GetTicks(*args
, **kwargs
):
3532 """GetTicks(self) -> time_t"""
3533 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3535 def GetYear(*args
, **kwargs
):
3536 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3537 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3539 def GetMonth(*args
, **kwargs
):
3540 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3541 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3543 def GetDay(*args
, **kwargs
):
3544 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3545 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3547 def GetWeekDay(*args
, **kwargs
):
3548 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3549 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3551 def GetHour(*args
, **kwargs
):
3552 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3553 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3555 def GetMinute(*args
, **kwargs
):
3556 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3557 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3559 def GetSecond(*args
, **kwargs
):
3560 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3561 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3563 def GetMillisecond(*args
, **kwargs
):
3564 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3565 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3567 def GetDayOfYear(*args
, **kwargs
):
3568 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3569 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3571 def GetWeekOfYear(*args
, **kwargs
):
3572 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3573 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3575 def GetWeekOfMonth(*args
, **kwargs
):
3576 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3577 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3579 def IsWorkDay(*args
, **kwargs
):
3580 """IsWorkDay(self, int country=Country_Default) -> bool"""
3581 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3583 def IsEqualTo(*args
, **kwargs
):
3584 """IsEqualTo(self, DateTime datetime) -> bool"""
3585 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3587 def IsEarlierThan(*args
, **kwargs
):
3588 """IsEarlierThan(self, DateTime datetime) -> bool"""
3589 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3591 def IsLaterThan(*args
, **kwargs
):
3592 """IsLaterThan(self, DateTime datetime) -> bool"""
3593 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3595 def IsStrictlyBetween(*args
, **kwargs
):
3596 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3597 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3599 def IsBetween(*args
, **kwargs
):
3600 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3601 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3603 def IsSameDate(*args
, **kwargs
):
3604 """IsSameDate(self, DateTime dt) -> bool"""
3605 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3607 def IsSameTime(*args
, **kwargs
):
3608 """IsSameTime(self, DateTime dt) -> bool"""
3609 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3611 def IsEqualUpTo(*args
, **kwargs
):
3612 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3613 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3615 def AddTS(*args
, **kwargs
):
3616 """AddTS(self, TimeSpan diff) -> DateTime"""
3617 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3619 def AddDS(*args
, **kwargs
):
3620 """AddDS(self, DateSpan diff) -> DateTime"""
3621 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3623 def SubtractTS(*args
, **kwargs
):
3624 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3625 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3627 def SubtractDS(*args
, **kwargs
):
3628 """SubtractDS(self, DateSpan diff) -> DateTime"""
3629 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3631 def Subtract(*args
, **kwargs
):
3632 """Subtract(self, DateTime dt) -> TimeSpan"""
3633 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3635 def __iadd__(*args
):
3637 __iadd__(self, TimeSpan diff) -> DateTime
3638 __iadd__(self, DateSpan diff) -> DateTime
3640 return _misc_
.DateTime___iadd__(*args
)
3642 def __isub__(*args
):
3644 __isub__(self, TimeSpan diff) -> DateTime
3645 __isub__(self, DateSpan diff) -> DateTime
3647 return _misc_
.DateTime___isub__(*args
)
3651 __add__(self, TimeSpan other) -> DateTime
3652 __add__(self, DateSpan other) -> DateTime
3654 return _misc_
.DateTime___add__(*args
)
3658 __sub__(self, DateTime other) -> TimeSpan
3659 __sub__(self, TimeSpan other) -> DateTime
3660 __sub__(self, DateSpan other) -> DateTime
3662 return _misc_
.DateTime___sub__(*args
)
3664 def __lt__(*args
, **kwargs
):
3665 """__lt__(self, DateTime other) -> bool"""
3666 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3668 def __le__(*args
, **kwargs
):
3669 """__le__(self, DateTime other) -> bool"""
3670 return _misc_
.DateTime___le__(*args
, **kwargs
)
3672 def __gt__(*args
, **kwargs
):
3673 """__gt__(self, DateTime other) -> bool"""
3674 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3676 def __ge__(*args
, **kwargs
):
3677 """__ge__(self, DateTime other) -> bool"""
3678 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3680 def __eq__(*args
, **kwargs
):
3681 """__eq__(self, DateTime other) -> bool"""
3682 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3684 def __ne__(*args
, **kwargs
):
3685 """__ne__(self, DateTime other) -> bool"""
3686 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3688 def ParseRfc822Date(*args
, **kwargs
):
3689 """ParseRfc822Date(self, String date) -> int"""
3690 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3692 def ParseFormat(*args
, **kwargs
):
3693 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3694 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3696 def ParseDateTime(*args
, **kwargs
):
3697 """ParseDateTime(self, String datetime) -> int"""
3698 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3700 def ParseDate(*args
, **kwargs
):
3701 """ParseDate(self, String date) -> int"""
3702 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3704 def ParseTime(*args
, **kwargs
):
3705 """ParseTime(self, String time) -> int"""
3706 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3708 def Format(*args
, **kwargs
):
3709 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3710 return _misc_
.DateTime_Format(*args
, **kwargs
)
3712 def FormatDate(*args
, **kwargs
):
3713 """FormatDate(self) -> String"""
3714 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3716 def FormatTime(*args
, **kwargs
):
3717 """FormatTime(self) -> String"""
3718 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3720 def FormatISODate(*args
, **kwargs
):
3721 """FormatISODate(self) -> String"""
3722 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3724 def FormatISOTime(*args
, **kwargs
):
3725 """FormatISOTime(self) -> String"""
3726 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3730 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3731 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
3733 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3736 return self
.Format().encode(wx
.GetDefaultPyEncoding())
3738 return "INVALID DateTime"
3740 _misc_
.DateTime_swigregister(DateTime
)
3741 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
3742 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
3744 def DateTime_SetCountry(*args
, **kwargs
):
3745 """DateTime_SetCountry(int country)"""
3746 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3748 def DateTime_GetCountry(*args
):
3749 """DateTime_GetCountry() -> int"""
3750 return _misc_
.DateTime_GetCountry(*args
)
3752 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3753 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3754 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3756 def DateTime_GetCurrentYear(*args
, **kwargs
):
3757 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3758 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3760 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3761 """DateTime_ConvertYearToBC(int year) -> int"""
3762 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3764 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3765 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3766 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3768 def DateTime_IsLeapYear(*args
, **kwargs
):
3769 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3770 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3772 def DateTime_GetCentury(*args
, **kwargs
):
3773 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3774 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3776 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3777 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3778 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3780 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3781 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3782 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3784 def DateTime_GetMonthName(*args
, **kwargs
):
3785 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3786 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3788 def DateTime_GetWeekDayName(*args
, **kwargs
):
3789 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3790 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3792 def DateTime_GetAmPmStrings(*args
):
3794 GetAmPmStrings() -> (am, pm)
3796 Get the AM and PM strings in the current locale (may be empty)
3798 return _misc_
.DateTime_GetAmPmStrings(*args
)
3800 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3801 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3802 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3804 def DateTime_GetBeginDST(*args
, **kwargs
):
3805 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3806 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3808 def DateTime_GetEndDST(*args
, **kwargs
):
3809 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3810 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3812 def DateTime_Now(*args
):
3813 """DateTime_Now() -> DateTime"""
3814 return _misc_
.DateTime_Now(*args
)
3816 def DateTime_UNow(*args
):
3817 """DateTime_UNow() -> DateTime"""
3818 return _misc_
.DateTime_UNow(*args
)
3820 def DateTime_Today(*args
):
3821 """DateTime_Today() -> DateTime"""
3822 return _misc_
.DateTime_Today(*args
)
3824 def DateTimeFromTimeT(*args
, **kwargs
):
3825 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3826 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3829 def DateTimeFromJDN(*args
, **kwargs
):
3830 """DateTimeFromJDN(double jdn) -> DateTime"""
3831 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3834 def DateTimeFromHMS(*args
, **kwargs
):
3835 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3836 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3839 def DateTimeFromDMY(*args
, **kwargs
):
3841 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3842 int minute=0, int second=0, int millisec=0) -> DateTime
3844 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3847 def DateTimeFromDateTime(*args
, **kwargs
):
3848 """DateTimeFromDateTime(DateTime date) -> DateTime"""
3849 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
3852 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
3853 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3854 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3856 class TimeSpan(object):
3857 """Proxy of C++ TimeSpan class"""
3858 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3859 __repr__
= _swig_repr
3860 def Milliseconds(*args
, **kwargs
):
3861 """Milliseconds(long ms) -> TimeSpan"""
3862 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
3864 Milliseconds
= staticmethod(Milliseconds
)
3865 def Millisecond(*args
, **kwargs
):
3866 """Millisecond() -> TimeSpan"""
3867 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
3869 Millisecond
= staticmethod(Millisecond
)
3870 def Seconds(*args
, **kwargs
):
3871 """Seconds(long sec) -> TimeSpan"""
3872 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3874 Seconds
= staticmethod(Seconds
)
3875 def Second(*args
, **kwargs
):
3876 """Second() -> TimeSpan"""
3877 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3879 Second
= staticmethod(Second
)
3880 def Minutes(*args
, **kwargs
):
3881 """Minutes(long min) -> TimeSpan"""
3882 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3884 Minutes
= staticmethod(Minutes
)
3885 def Minute(*args
, **kwargs
):
3886 """Minute() -> TimeSpan"""
3887 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3889 Minute
= staticmethod(Minute
)
3890 def Hours(*args
, **kwargs
):
3891 """Hours(long hours) -> TimeSpan"""
3892 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3894 Hours
= staticmethod(Hours
)
3895 def Hour(*args
, **kwargs
):
3896 """Hour() -> TimeSpan"""
3897 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3899 Hour
= staticmethod(Hour
)
3900 def Days(*args
, **kwargs
):
3901 """Days(long days) -> TimeSpan"""
3902 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3904 Days
= staticmethod(Days
)
3905 def Day(*args
, **kwargs
):
3906 """Day() -> TimeSpan"""
3907 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3909 Day
= staticmethod(Day
)
3910 def Weeks(*args
, **kwargs
):
3911 """Weeks(long days) -> TimeSpan"""
3912 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3914 Weeks
= staticmethod(Weeks
)
3915 def Week(*args
, **kwargs
):
3916 """Week() -> TimeSpan"""
3917 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3919 Week
= staticmethod(Week
)
3920 def __init__(self
, *args
, **kwargs
):
3921 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3922 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
3923 __swig_destroy__
= _misc_
.delete_TimeSpan
3924 __del__
= lambda self
: None;
3925 def Add(*args
, **kwargs
):
3926 """Add(self, TimeSpan diff) -> TimeSpan"""
3927 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3929 def Subtract(*args
, **kwargs
):
3930 """Subtract(self, TimeSpan diff) -> TimeSpan"""
3931 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
3933 def Multiply(*args
, **kwargs
):
3934 """Multiply(self, int n) -> TimeSpan"""
3935 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
3937 def Neg(*args
, **kwargs
):
3938 """Neg(self) -> TimeSpan"""
3939 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
3941 def Abs(*args
, **kwargs
):
3942 """Abs(self) -> TimeSpan"""
3943 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
3945 def __iadd__(*args
, **kwargs
):
3946 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
3947 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
3949 def __isub__(*args
, **kwargs
):
3950 """__isub__(self, TimeSpan diff) -> TimeSpan"""
3951 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
3953 def __imul__(*args
, **kwargs
):
3954 """__imul__(self, int n) -> TimeSpan"""
3955 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
3957 def __neg__(*args
, **kwargs
):
3958 """__neg__(self) -> TimeSpan"""
3959 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
3961 def __add__(*args
, **kwargs
):
3962 """__add__(self, TimeSpan other) -> TimeSpan"""
3963 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
3965 def __sub__(*args
, **kwargs
):
3966 """__sub__(self, TimeSpan other) -> TimeSpan"""
3967 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
3969 def __mul__(*args
, **kwargs
):
3970 """__mul__(self, int n) -> TimeSpan"""
3971 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
3973 def __rmul__(*args
, **kwargs
):
3974 """__rmul__(self, int n) -> TimeSpan"""
3975 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
3977 def __lt__(*args
, **kwargs
):
3978 """__lt__(self, TimeSpan other) -> bool"""
3979 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
3981 def __le__(*args
, **kwargs
):
3982 """__le__(self, TimeSpan other) -> bool"""
3983 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
3985 def __gt__(*args
, **kwargs
):
3986 """__gt__(self, TimeSpan other) -> bool"""
3987 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
3989 def __ge__(*args
, **kwargs
):
3990 """__ge__(self, TimeSpan other) -> bool"""
3991 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
3993 def __eq__(*args
, **kwargs
):
3994 """__eq__(self, TimeSpan other) -> bool"""
3995 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
3997 def __ne__(*args
, **kwargs
):
3998 """__ne__(self, TimeSpan other) -> bool"""
3999 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4001 def IsNull(*args
, **kwargs
):
4002 """IsNull(self) -> bool"""
4003 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4005 def IsPositive(*args
, **kwargs
):
4006 """IsPositive(self) -> bool"""
4007 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4009 def IsNegative(*args
, **kwargs
):
4010 """IsNegative(self) -> bool"""
4011 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4013 def IsEqualTo(*args
, **kwargs
):
4014 """IsEqualTo(self, TimeSpan ts) -> bool"""
4015 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4017 def IsLongerThan(*args
, **kwargs
):
4018 """IsLongerThan(self, TimeSpan ts) -> bool"""
4019 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4021 def IsShorterThan(*args
, **kwargs
):
4022 """IsShorterThan(self, TimeSpan t) -> bool"""
4023 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4025 def GetWeeks(*args
, **kwargs
):
4026 """GetWeeks(self) -> int"""
4027 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4029 def GetDays(*args
, **kwargs
):
4030 """GetDays(self) -> int"""
4031 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4033 def GetHours(*args
, **kwargs
):
4034 """GetHours(self) -> int"""
4035 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4037 def GetMinutes(*args
, **kwargs
):
4038 """GetMinutes(self) -> int"""
4039 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4041 def GetSeconds(*args
, **kwargs
):
4042 """GetSeconds(self) -> wxLongLong"""
4043 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4045 def GetMilliseconds(*args
, **kwargs
):
4046 """GetMilliseconds(self) -> wxLongLong"""
4047 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4049 def Format(*args
, **kwargs
):
4050 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4051 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4054 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4055 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4057 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4059 _misc_
.TimeSpan_swigregister(TimeSpan
)
4061 def TimeSpan_Milliseconds(*args
, **kwargs
):
4062 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4063 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4065 def TimeSpan_Millisecond(*args
):
4066 """TimeSpan_Millisecond() -> TimeSpan"""
4067 return _misc_
.TimeSpan_Millisecond(*args
)
4069 def TimeSpan_Seconds(*args
, **kwargs
):
4070 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4071 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4073 def TimeSpan_Second(*args
):
4074 """TimeSpan_Second() -> TimeSpan"""
4075 return _misc_
.TimeSpan_Second(*args
)
4077 def TimeSpan_Minutes(*args
, **kwargs
):
4078 """TimeSpan_Minutes(long min) -> TimeSpan"""
4079 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4081 def TimeSpan_Minute(*args
):
4082 """TimeSpan_Minute() -> TimeSpan"""
4083 return _misc_
.TimeSpan_Minute(*args
)
4085 def TimeSpan_Hours(*args
, **kwargs
):
4086 """TimeSpan_Hours(long hours) -> TimeSpan"""
4087 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4089 def TimeSpan_Hour(*args
):
4090 """TimeSpan_Hour() -> TimeSpan"""
4091 return _misc_
.TimeSpan_Hour(*args
)
4093 def TimeSpan_Days(*args
, **kwargs
):
4094 """TimeSpan_Days(long days) -> TimeSpan"""
4095 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4097 def TimeSpan_Day(*args
):
4098 """TimeSpan_Day() -> TimeSpan"""
4099 return _misc_
.TimeSpan_Day(*args
)
4101 def TimeSpan_Weeks(*args
, **kwargs
):
4102 """TimeSpan_Weeks(long days) -> TimeSpan"""
4103 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4105 def TimeSpan_Week(*args
):
4106 """TimeSpan_Week() -> TimeSpan"""
4107 return _misc_
.TimeSpan_Week(*args
)
4109 class DateSpan(object):
4110 """Proxy of C++ DateSpan class"""
4111 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4112 __repr__
= _swig_repr
4113 def __init__(self
, *args
, **kwargs
):
4114 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4115 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4116 __swig_destroy__
= _misc_
.delete_DateSpan
4117 __del__
= lambda self
: None;
4118 def Days(*args
, **kwargs
):
4119 """Days(int days) -> DateSpan"""
4120 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4122 Days
= staticmethod(Days
)
4123 def Day(*args
, **kwargs
):
4124 """Day() -> DateSpan"""
4125 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4127 Day
= staticmethod(Day
)
4128 def Weeks(*args
, **kwargs
):
4129 """Weeks(int weeks) -> DateSpan"""
4130 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4132 Weeks
= staticmethod(Weeks
)
4133 def Week(*args
, **kwargs
):
4134 """Week() -> DateSpan"""
4135 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4137 Week
= staticmethod(Week
)
4138 def Months(*args
, **kwargs
):
4139 """Months(int mon) -> DateSpan"""
4140 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4142 Months
= staticmethod(Months
)
4143 def Month(*args
, **kwargs
):
4144 """Month() -> DateSpan"""
4145 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4147 Month
= staticmethod(Month
)
4148 def Years(*args
, **kwargs
):
4149 """Years(int years) -> DateSpan"""
4150 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4152 Years
= staticmethod(Years
)
4153 def Year(*args
, **kwargs
):
4154 """Year() -> DateSpan"""
4155 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4157 Year
= staticmethod(Year
)
4158 def SetYears(*args
, **kwargs
):
4159 """SetYears(self, int n) -> DateSpan"""
4160 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4162 def SetMonths(*args
, **kwargs
):
4163 """SetMonths(self, int n) -> DateSpan"""
4164 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4166 def SetWeeks(*args
, **kwargs
):
4167 """SetWeeks(self, int n) -> DateSpan"""
4168 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4170 def SetDays(*args
, **kwargs
):
4171 """SetDays(self, int n) -> DateSpan"""
4172 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4174 def GetYears(*args
, **kwargs
):
4175 """GetYears(self) -> int"""
4176 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4178 def GetMonths(*args
, **kwargs
):
4179 """GetMonths(self) -> int"""
4180 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4182 def GetWeeks(*args
, **kwargs
):
4183 """GetWeeks(self) -> int"""
4184 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4186 def GetDays(*args
, **kwargs
):
4187 """GetDays(self) -> int"""
4188 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4190 def GetTotalDays(*args
, **kwargs
):
4191 """GetTotalDays(self) -> int"""
4192 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4194 def Add(*args
, **kwargs
):
4195 """Add(self, DateSpan other) -> DateSpan"""
4196 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4198 def Subtract(*args
, **kwargs
):
4199 """Subtract(self, DateSpan other) -> DateSpan"""
4200 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4202 def Neg(*args
, **kwargs
):
4203 """Neg(self) -> DateSpan"""
4204 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4206 def Multiply(*args
, **kwargs
):
4207 """Multiply(self, int factor) -> DateSpan"""
4208 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4210 def __iadd__(*args
, **kwargs
):
4211 """__iadd__(self, DateSpan other) -> DateSpan"""
4212 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4214 def __isub__(*args
, **kwargs
):
4215 """__isub__(self, DateSpan other) -> DateSpan"""
4216 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4218 def __neg__(*args
, **kwargs
):
4219 """__neg__(self) -> DateSpan"""
4220 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4222 def __imul__(*args
, **kwargs
):
4223 """__imul__(self, int factor) -> DateSpan"""
4224 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4226 def __add__(*args
, **kwargs
):
4227 """__add__(self, DateSpan other) -> DateSpan"""
4228 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4230 def __sub__(*args
, **kwargs
):
4231 """__sub__(self, DateSpan other) -> DateSpan"""
4232 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4234 def __mul__(*args
, **kwargs
):
4235 """__mul__(self, int n) -> DateSpan"""
4236 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4238 def __rmul__(*args
, **kwargs
):
4239 """__rmul__(self, int n) -> DateSpan"""
4240 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4242 def __eq__(*args
, **kwargs
):
4243 """__eq__(self, DateSpan other) -> bool"""
4244 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4246 def __ne__(*args
, **kwargs
):
4247 """__ne__(self, DateSpan other) -> bool"""
4248 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4250 _misc_
.DateSpan_swigregister(DateSpan
)
4252 def DateSpan_Days(*args
, **kwargs
):
4253 """DateSpan_Days(int days) -> DateSpan"""
4254 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4256 def DateSpan_Day(*args
):
4257 """DateSpan_Day() -> DateSpan"""
4258 return _misc_
.DateSpan_Day(*args
)
4260 def DateSpan_Weeks(*args
, **kwargs
):
4261 """DateSpan_Weeks(int weeks) -> DateSpan"""
4262 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4264 def DateSpan_Week(*args
):
4265 """DateSpan_Week() -> DateSpan"""
4266 return _misc_
.DateSpan_Week(*args
)
4268 def DateSpan_Months(*args
, **kwargs
):
4269 """DateSpan_Months(int mon) -> DateSpan"""
4270 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4272 def DateSpan_Month(*args
):
4273 """DateSpan_Month() -> DateSpan"""
4274 return _misc_
.DateSpan_Month(*args
)
4276 def DateSpan_Years(*args
, **kwargs
):
4277 """DateSpan_Years(int years) -> DateSpan"""
4278 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4280 def DateSpan_Year(*args
):
4281 """DateSpan_Year() -> DateSpan"""
4282 return _misc_
.DateSpan_Year(*args
)
4285 def GetLocalTime(*args
):
4286 """GetLocalTime() -> long"""
4287 return _misc_
.GetLocalTime(*args
)
4289 def GetUTCTime(*args
):
4290 """GetUTCTime() -> long"""
4291 return _misc_
.GetUTCTime(*args
)
4293 def GetCurrentTime(*args
):
4294 """GetCurrentTime() -> long"""
4295 return _misc_
.GetCurrentTime(*args
)
4297 def GetLocalTimeMillis(*args
):
4298 """GetLocalTimeMillis() -> wxLongLong"""
4299 return _misc_
.GetLocalTimeMillis(*args
)
4300 #---------------------------------------------------------------------------
4302 DF_INVALID
= _misc_
.DF_INVALID
4303 DF_TEXT
= _misc_
.DF_TEXT
4304 DF_BITMAP
= _misc_
.DF_BITMAP
4305 DF_METAFILE
= _misc_
.DF_METAFILE
4306 DF_SYLK
= _misc_
.DF_SYLK
4307 DF_DIF
= _misc_
.DF_DIF
4308 DF_TIFF
= _misc_
.DF_TIFF
4309 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4310 DF_DIB
= _misc_
.DF_DIB
4311 DF_PALETTE
= _misc_
.DF_PALETTE
4312 DF_PENDATA
= _misc_
.DF_PENDATA
4313 DF_RIFF
= _misc_
.DF_RIFF
4314 DF_WAVE
= _misc_
.DF_WAVE
4315 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4316 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4317 DF_FILENAME
= _misc_
.DF_FILENAME
4318 DF_LOCALE
= _misc_
.DF_LOCALE
4319 DF_PRIVATE
= _misc_
.DF_PRIVATE
4320 DF_HTML
= _misc_
.DF_HTML
4321 DF_MAX
= _misc_
.DF_MAX
4322 class DataFormat(object):
4324 A wx.DataFormat is an encapsulation of a platform-specific format
4325 handle which is used by the system for the clipboard and drag and drop
4326 operations. The applications are usually only interested in, for
4327 example, pasting data from the clipboard only if the data is in a
4328 format the program understands. A data format is is used to uniquely
4329 identify this format.
4331 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4332 __repr__
= _swig_repr
4333 def __init__(self
, *args
, **kwargs
):
4335 __init__(self, int type) -> DataFormat
4337 Constructs a data format object for one of the standard data formats
4338 or an empty data object (use SetType or SetId later in this case)
4340 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4341 __swig_destroy__
= _misc_
.delete_DataFormat
4342 __del__
= lambda self
: None;
4345 __eq__(self, int format) -> bool
4346 __eq__(self, DataFormat format) -> bool
4348 return _misc_
.DataFormat___eq__(*args
)
4352 __ne__(self, int format) -> bool
4353 __ne__(self, DataFormat format) -> bool
4355 return _misc_
.DataFormat___ne__(*args
)
4357 def SetType(*args
, **kwargs
):
4359 SetType(self, int format)
4361 Sets the format to the given value, which should be one of wx.DF_XXX
4364 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4366 def GetType(*args
, **kwargs
):
4368 GetType(self) -> int
4370 Returns the platform-specific number identifying the format.
4372 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4374 def GetId(*args
, **kwargs
):
4376 GetId(self) -> String
4378 Returns the name of a custom format (this function will fail for a
4381 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4383 def SetId(*args
, **kwargs
):
4385 SetId(self, String format)
4387 Sets the format to be the custom format identified by the given name.
4389 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4391 _misc_
.DataFormat_swigregister(DataFormat
)
4392 DefaultDateTime
= cvar
.DefaultDateTime
4394 def CustomDataFormat(*args
, **kwargs
):
4396 CustomDataFormat(String format) -> DataFormat
4398 Constructs a data format object for a custom format identified by its
4401 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4404 class DataObject(object):
4406 A wx.DataObject represents data that can be copied to or from the
4407 clipboard, or dragged and dropped. The important thing about
4408 wx.DataObject is that this is a 'smart' piece of data unlike usual
4409 'dumb' data containers such as memory buffers or files. Being 'smart'
4410 here means that the data object itself should know what data formats
4411 it supports and how to render itself in each of supported formats.
4413 **NOTE**: This class is an abstract base class and can not be used
4414 directly from Python. If you need a custom type of data object then
4415 you should instead derive from `wx.PyDataObjectSimple` or use
4416 `wx.CustomDataObject`.
4419 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4420 def __init__(self
): raise AttributeError, "No constructor defined"
4421 __repr__
= _swig_repr
4422 Get
= _misc_
.DataObject_Get
4423 Set
= _misc_
.DataObject_Set
4424 Both
= _misc_
.DataObject_Both
4425 __swig_destroy__
= _misc_
.delete_DataObject
4426 __del__
= lambda self
: None;
4427 def GetPreferredFormat(*args
, **kwargs
):
4429 GetPreferredFormat(self, int dir=Get) -> DataFormat
4431 Returns the preferred format for either rendering the data (if dir is
4432 Get, its default value) or for setting it. Usually this will be the
4433 native format of the wx.DataObject.
4435 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4437 def GetFormatCount(*args
, **kwargs
):
4439 GetFormatCount(self, int dir=Get) -> size_t
4441 Returns the number of available formats for rendering or setting the
4444 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4446 def IsSupported(*args
, **kwargs
):
4448 IsSupported(self, DataFormat format, int dir=Get) -> bool
4450 Returns True if this format is supported.
4452 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4454 def GetDataSize(*args
, **kwargs
):
4456 GetDataSize(self, DataFormat format) -> size_t
4458 Get the (total) size of data for the given format
4460 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4462 def GetAllFormats(*args
, **kwargs
):
4464 GetAllFormats(self, int dir=Get) -> [formats]
4466 Returns a list of all the wx.DataFormats that this dataobject supports
4467 in the given direction.
4469 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4471 def GetDataHere(*args
, **kwargs
):
4473 GetDataHere(self, DataFormat format) -> String
4475 Get the data bytes in the specified format, returns None on failure.
4477 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4479 def SetData(*args
, **kwargs
):
4481 SetData(self, DataFormat format, String data) -> bool
4483 Set the data in the specified format from the bytes in the the data string.
4486 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4488 _misc_
.DataObject_swigregister(DataObject
)
4489 FormatInvalid
= cvar
.FormatInvalid
4491 class DataObjectSimple(DataObject
):
4493 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4494 format. This is the simplest possible `wx.DataObject` implementation.
4496 This is still an "abstract base class" meaning that you can't use it
4497 directly. You either need to use one of the predefined base classes,
4498 or derive your own class from `wx.PyDataObjectSimple`.
4501 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4502 __repr__
= _swig_repr
4503 def __init__(self
, *args
, **kwargs
):
4505 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4507 Constructor accepts the supported format (none by default) which may
4508 also be set later with `SetFormat`.
4510 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4511 def GetFormat(*args
, **kwargs
):
4513 GetFormat(self) -> DataFormat
4515 Returns the (one and only one) format supported by this object. It is
4516 assumed that the format is supported in both directions.
4518 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4520 def SetFormat(*args
, **kwargs
):
4522 SetFormat(self, DataFormat format)
4524 Sets the supported format.
4526 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4528 def GetDataSize(*args
, **kwargs
):
4530 GetDataSize(self) -> size_t
4532 Get the size of our data.
4534 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4536 def GetDataHere(*args
, **kwargs
):
4538 GetDataHere(self) -> String
4540 Returns the data bytes from the data object as a string, returns None
4541 on failure. Must be implemented in the derived class if the object
4542 supports rendering its data.
4544 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4546 def SetData(*args
, **kwargs
):
4548 SetData(self, String data) -> bool
4550 Copy the data value to the data object. Must be implemented in the
4551 derived class if the object supports setting its data.
4554 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4556 _misc_
.DataObjectSimple_swigregister(DataObjectSimple
)
4558 class PyDataObjectSimple(DataObjectSimple
):
4560 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4561 Python-aware and knows how to reflect calls to its C++ virtual methods
4562 to methods in the Python derived class. You should derive from this
4563 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4564 need to create your own simple single-format type of `wx.DataObject`.
4567 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4568 __repr__
= _swig_repr
4569 def __init__(self
, *args
, **kwargs
):
4571 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4573 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4574 Python-aware and knows how to reflect calls to its C++ virtual methods
4575 to methods in the Python derived class. You should derive from this
4576 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4577 need to create your own simple single-format type of `wx.DataObject`.
4580 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4581 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4583 def _setCallbackInfo(*args
, **kwargs
):
4584 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4585 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4587 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4589 class DataObjectComposite(DataObject
):
4591 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4592 which may be sued to support multiple formats. It contains several
4593 'wx.DataObjectSimple` objects and supports any format supported by at
4594 least one of them. Only one of these data objects is *preferred* (the
4595 first one if not explicitly changed by using the second parameter of
4596 `Add`) and its format determines the preferred format of the composite
4597 data object as well.
4599 See `wx.DataObject` documentation for the reasons why you might prefer
4600 to use wx.DataObject directly instead of wx.DataObjectComposite for
4604 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4605 __repr__
= _swig_repr
4606 def __init__(self
, *args
, **kwargs
):
4608 __init__(self) -> DataObjectComposite
4610 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4611 which may be sued to support multiple formats. It contains several
4612 'wx.DataObjectSimple` objects and supports any format supported by at
4613 least one of them. Only one of these data objects is *preferred* (the
4614 first one if not explicitly changed by using the second parameter of
4615 `Add`) and its format determines the preferred format of the composite
4616 data object as well.
4618 See `wx.DataObject` documentation for the reasons why you might prefer
4619 to use wx.DataObject directly instead of wx.DataObjectComposite for
4623 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4624 def Add(*args
, **kwargs
):
4626 Add(self, DataObjectSimple dataObject, bool preferred=False)
4628 Adds the dataObject to the list of supported objects and it becomes
4629 the preferred object if preferred is True.
4631 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4633 def GetReceivedFormat(*args
, **kwargs
):
4635 GetReceivedFormat(self) -> DataFormat
4637 Report the format passed to the `SetData` method. This should be the
4638 format of the data object within the composite that recieved data from
4639 the clipboard or the DnD operation. You can use this method to find
4640 out what kind of data object was recieved.
4642 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
4644 _misc_
.DataObjectComposite_swigregister(DataObjectComposite
)
4646 class TextDataObject(DataObjectSimple
):
4648 wx.TextDataObject is a specialization of `wx.DataObject` for text
4649 data. It can be used without change to paste data into the `wx.Clipboard`
4650 or a `wx.DropSource`.
4652 Alternativly, you may wish to derive a new class from the
4653 `wx.PyTextDataObject` class for providing text on-demand in order to
4654 minimize memory consumption when offering data in several formats,
4655 such as plain text and RTF, because by default the text is stored in a
4656 string in this class, but it might as well be generated on demand when
4657 requested. For this, `GetTextLength` and `GetText` will have to be
4660 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4661 __repr__
= _swig_repr
4662 def __init__(self
, *args
, **kwargs
):
4664 __init__(self, String text=EmptyString) -> TextDataObject
4666 Constructor, may be used to initialise the text (otherwise `SetText`
4667 should be used later).
4669 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4670 def GetTextLength(*args
, **kwargs
):
4672 GetTextLength(self) -> size_t
4674 Returns the data size. By default, returns the size of the text data
4675 set in the constructor or using `SetText`. This can be overridden (via
4676 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4677 recommended to return the text length plus 1 for a trailing zero, but
4678 this is not strictly required.
4680 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4682 def GetText(*args
, **kwargs
):
4684 GetText(self) -> String
4686 Returns the text associated with the data object.
4688 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4690 def SetText(*args
, **kwargs
):
4692 SetText(self, String text)
4694 Sets the text associated with the data object. This method is called
4695 when the data object receives the data and, by default, copies the
4696 text into the member variable. If you want to process the text on the
4697 fly you may wish to override this function (via
4698 `wx.PyTextDataObject`.)
4700 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4702 _misc_
.TextDataObject_swigregister(TextDataObject
)
4704 class PyTextDataObject(TextDataObject
):
4706 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4707 Python-aware and knows how to reflect calls to its C++ virtual methods
4708 to methods in the Python derived class. You should derive from this
4709 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4710 want to be able to provide text on demand instead of preloading it
4711 into the data object.
4713 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4714 __repr__
= _swig_repr
4715 def __init__(self
, *args
, **kwargs
):
4717 __init__(self, String text=EmptyString) -> PyTextDataObject
4719 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4720 Python-aware and knows how to reflect calls to its C++ virtual methods
4721 to methods in the Python derived class. You should derive from this
4722 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4723 want to be able to provide text on demand instead of preloading it
4724 into the data object.
4726 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
4727 self
._setCallbackInfo
(self
, PyTextDataObject
)
4729 def _setCallbackInfo(*args
, **kwargs
):
4730 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4731 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4733 _misc_
.PyTextDataObject_swigregister(PyTextDataObject
)
4735 class BitmapDataObject(DataObjectSimple
):
4737 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
4738 data. It can be used without change to paste data into the `wx.Clipboard`
4739 or a `wx.DropSource`.
4742 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4743 __repr__
= _swig_repr
4744 def __init__(self
, *args
, **kwargs
):
4746 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
4748 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
4751 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
4752 def GetBitmap(*args
, **kwargs
):
4754 GetBitmap(self) -> Bitmap
4756 Returns the bitmap associated with the data object. You may wish to
4757 override this method (by deriving from `wx.PyBitmapDataObject`) when
4758 offering data on-demand, but this is not required by wxWidgets'
4759 internals. Use this method to get data in bitmap form from the
4762 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4764 def SetBitmap(*args
, **kwargs
):
4766 SetBitmap(self, Bitmap bitmap)
4768 Sets the bitmap associated with the data object. This method is called
4769 when the data object receives data. Usually there will be no reason to
4770 override this function.
4772 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4774 _misc_
.BitmapDataObject_swigregister(BitmapDataObject
)
4776 class PyBitmapDataObject(BitmapDataObject
):
4778 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4779 Python-aware and knows how to reflect calls to its C++ virtual methods
4780 to methods in the Python derived class. To be able to provide bitmap
4781 data on demand derive from this class and overload `GetBitmap`.
4783 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4784 __repr__
= _swig_repr
4785 def __init__(self
, *args
, **kwargs
):
4787 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
4789 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4790 Python-aware and knows how to reflect calls to its C++ virtual methods
4791 to methods in the Python derived class. To be able to provide bitmap
4792 data on demand derive from this class and overload `GetBitmap`.
4794 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
4795 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4797 def _setCallbackInfo(*args
, **kwargs
):
4798 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4799 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4801 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObject
)
4803 class FileDataObject(DataObjectSimple
):
4805 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
4806 file names. The program works with it just as if it were a list of
4807 absolute file names, but internally it uses the same format as
4808 Explorer and other compatible programs under Windows or GNOME/KDE
4809 filemanager under Unix which makes it possible to receive files from
4810 them using this class.
4812 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4813 __repr__
= _swig_repr
4814 def __init__(self
, *args
, **kwargs
):
4815 """__init__(self) -> FileDataObject"""
4816 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
4817 def GetFilenames(*args
, **kwargs
):
4819 GetFilenames(self) -> [names]
4821 Returns a list of file names.
4823 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4825 def AddFile(*args
, **kwargs
):
4827 AddFile(self, String filename)
4829 Adds a file to the list of files represented by this data object.
4831 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
4833 _misc_
.FileDataObject_swigregister(FileDataObject
)
4835 class CustomDataObject(DataObjectSimple
):
4837 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
4838 some application-specific data in arbitrary format. Python strings
4839 are used for getting and setting data, but any picklable object can
4840 easily be transfered via strings. A copy of the data is stored in the
4843 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4844 __repr__
= _swig_repr
4845 def __init__(self
, *args
):
4847 __init__(self, DataFormat format) -> CustomDataObject
4848 __init__(self, String formatName) -> CustomDataObject
4849 __init__(self) -> CustomDataObject
4851 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
4852 some application-specific data in arbitrary format. Python strings
4853 are used for getting and setting data, but any picklable object can
4854 easily be transfered via strings. A copy of the data is stored in the
4857 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
4858 def SetData(*args
, **kwargs
):
4860 SetData(self, String data) -> bool
4862 Copy the data value to the data object.
4864 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
4867 def GetSize(*args
, **kwargs
):
4869 GetSize(self) -> size_t
4871 Get the size of the data.
4873 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
4875 def GetData(*args
, **kwargs
):
4877 GetData(self) -> String
4879 Returns the data bytes from the data object as a string.
4881 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
4883 _misc_
.CustomDataObject_swigregister(CustomDataObject
)
4885 class URLDataObject(DataObject
):
4887 This data object holds a URL in a format that is compatible with some
4888 browsers such that it is able to be dragged to or from them.
4890 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4891 __repr__
= _swig_repr
4892 def __init__(self
, *args
, **kwargs
):
4894 __init__(self) -> URLDataObject
4896 This data object holds a URL in a format that is compatible with some
4897 browsers such that it is able to be dragged to or from them.
4899 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
4900 def GetURL(*args
, **kwargs
):
4902 GetURL(self) -> String
4904 Returns a string containing the current URL.
4906 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
4908 def SetURL(*args
, **kwargs
):
4910 SetURL(self, String url)
4914 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
4916 _misc_
.URLDataObject_swigregister(URLDataObject
)
4918 class MetafileDataObject(DataObjectSimple
):
4919 """Proxy of C++ MetafileDataObject class"""
4920 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4921 __repr__
= _swig_repr
4922 def __init__(self
, *args
, **kwargs
):
4923 """__init__(self) -> MetafileDataObject"""
4924 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
4925 _misc_
.MetafileDataObject_swigregister(MetafileDataObject
)
4927 #---------------------------------------------------------------------------
4929 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
4930 Drag_AllowMove
= _misc_
.Drag_AllowMove
4931 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
4932 DragError
= _misc_
.DragError
4933 DragNone
= _misc_
.DragNone
4934 DragCopy
= _misc_
.DragCopy
4935 DragMove
= _misc_
.DragMove
4936 DragLink
= _misc_
.DragLink
4937 DragCancel
= _misc_
.DragCancel
4939 def IsDragResultOk(*args
, **kwargs
):
4940 """IsDragResultOk(int res) -> bool"""
4941 return _misc_
.IsDragResultOk(*args
, **kwargs
)
4942 class DropSource(object):
4943 """Proxy of C++ DropSource class"""
4944 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4945 __repr__
= _swig_repr
4946 def __init__(self
, *args
, **kwargs
):
4948 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
4949 Icon none=wxNullIcon) -> DropSource
4951 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
4952 self
._setCallbackInfo
(self
, DropSource
, 0)
4954 def _setCallbackInfo(*args
, **kwargs
):
4955 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
4956 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
4958 __swig_destroy__
= _misc_
.delete_DropSource
4959 __del__
= lambda self
: None;
4960 def SetData(*args
, **kwargs
):
4961 """SetData(self, DataObject data)"""
4962 return _misc_
.DropSource_SetData(*args
, **kwargs
)
4964 def GetDataObject(*args
, **kwargs
):
4965 """GetDataObject(self) -> DataObject"""
4966 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
4968 def SetCursor(*args
, **kwargs
):
4969 """SetCursor(self, int res, Cursor cursor)"""
4970 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
4972 def DoDragDrop(*args
, **kwargs
):
4973 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
4974 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
4976 def GiveFeedback(*args
, **kwargs
):
4977 """GiveFeedback(self, int effect) -> bool"""
4978 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
4980 def base_GiveFeedback(*args
, **kw
):
4981 return DropSource
.GiveFeedback(*args
, **kw
)
4982 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
4983 "Please use DropSource.GiveFeedback instead.")
4985 _misc_
.DropSource_swigregister(DropSource
)
4987 def DROP_ICON(filename
):
4989 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
4990 ``filename``. This function is useful with the `wx.DropSource` class
4991 which, depending on platform accepts either a icon or a cursor.
4993 img
= wx
.Image(filename
)
4994 if wx
.Platform
== '__WXGTK__':
4995 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
4997 return wx
.CursorFromImage(img
)
4999 class DropTarget(object):
5000 """Proxy of C++ DropTarget class"""
5001 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5002 __repr__
= _swig_repr
5003 def __init__(self
, *args
, **kwargs
):
5004 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5005 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5006 self
._setCallbackInfo
(self
, DropTarget
)
5008 def _setCallbackInfo(*args
, **kwargs
):
5009 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5010 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5012 __swig_destroy__
= _misc_
.delete_DropTarget
5013 __del__
= lambda self
: None;
5014 def GetDataObject(*args
, **kwargs
):
5015 """GetDataObject(self) -> DataObject"""
5016 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5018 def SetDataObject(*args
, **kwargs
):
5019 """SetDataObject(self, DataObject dataObject)"""
5020 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5022 def OnEnter(*args
, **kwargs
):
5023 """OnEnter(self, int x, int y, int def) -> int"""
5024 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5026 def OnDragOver(*args
, **kwargs
):
5027 """OnDragOver(self, int x, int y, int def) -> int"""
5028 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5030 def OnLeave(*args
, **kwargs
):
5032 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5034 def OnDrop(*args
, **kwargs
):
5035 """OnDrop(self, int x, int y) -> bool"""
5036 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5038 def base_OnEnter(*args
, **kw
):
5039 return DropTarget
.OnEnter(*args
, **kw
)
5040 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5041 "Please use DropTarget.OnEnter instead.")
5043 def base_OnDragOver(*args
, **kw
):
5044 return DropTarget
.OnDragOver(*args
, **kw
)
5045 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5046 "Please use DropTarget.OnDragOver instead.")
5048 def base_OnLeave(*args
, **kw
):
5049 return DropTarget
.OnLeave(*args
, **kw
)
5050 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5051 "Please use DropTarget.OnLeave instead.")
5053 def base_OnDrop(*args
, **kw
):
5054 return DropTarget
.OnDrop(*args
, **kw
)
5055 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5056 "Please use DropTarget.OnDrop instead.")
5058 def GetData(*args
, **kwargs
):
5059 """GetData(self) -> bool"""
5060 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5062 def SetDefaultAction(*args
, **kwargs
):
5063 """SetDefaultAction(self, int action)"""
5064 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5066 def GetDefaultAction(*args
, **kwargs
):
5067 """GetDefaultAction(self) -> int"""
5068 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5070 _misc_
.DropTarget_swigregister(DropTarget
)
5072 PyDropTarget
= DropTarget
5073 class TextDropTarget(DropTarget
):
5074 """Proxy of C++ TextDropTarget class"""
5075 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5076 __repr__
= _swig_repr
5077 def __init__(self
, *args
, **kwargs
):
5078 """__init__(self) -> TextDropTarget"""
5079 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5080 self
._setCallbackInfo
(self
, TextDropTarget
)
5082 def _setCallbackInfo(*args
, **kwargs
):
5083 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5084 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5086 def OnDropText(*args
, **kwargs
):
5087 """OnDropText(self, int x, int y, String text) -> bool"""
5088 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5090 def OnEnter(*args
, **kwargs
):
5091 """OnEnter(self, int x, int y, int def) -> int"""
5092 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5094 def OnDragOver(*args
, **kwargs
):
5095 """OnDragOver(self, int x, int y, int def) -> int"""
5096 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5098 def OnLeave(*args
, **kwargs
):
5100 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5102 def OnDrop(*args
, **kwargs
):
5103 """OnDrop(self, int x, int y) -> bool"""
5104 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5106 def OnData(*args
, **kwargs
):
5107 """OnData(self, int x, int y, int def) -> int"""
5108 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5110 def base_OnDropText(*args
, **kw
):
5111 return TextDropTarget
.OnDropText(*args
, **kw
)
5112 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5113 "Please use TextDropTarget.OnDropText instead.")
5115 def base_OnEnter(*args
, **kw
):
5116 return TextDropTarget
.OnEnter(*args
, **kw
)
5117 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5118 "Please use TextDropTarget.OnEnter instead.")
5120 def base_OnDragOver(*args
, **kw
):
5121 return TextDropTarget
.OnDragOver(*args
, **kw
)
5122 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5123 "Please use TextDropTarget.OnDragOver instead.")
5125 def base_OnLeave(*args
, **kw
):
5126 return TextDropTarget
.OnLeave(*args
, **kw
)
5127 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5128 "Please use TextDropTarget.OnLeave instead.")
5130 def base_OnDrop(*args
, **kw
):
5131 return TextDropTarget
.OnDrop(*args
, **kw
)
5132 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5133 "Please use TextDropTarget.OnDrop instead.")
5135 def base_OnData(*args
, **kw
):
5136 return TextDropTarget
.OnData(*args
, **kw
)
5137 base_OnData
= wx
._deprecated
(base_OnData
,
5138 "Please use TextDropTarget.OnData instead.")
5140 _misc_
.TextDropTarget_swigregister(TextDropTarget
)
5142 class FileDropTarget(DropTarget
):
5143 """Proxy of C++ FileDropTarget class"""
5144 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5145 __repr__
= _swig_repr
5146 def __init__(self
, *args
, **kwargs
):
5147 """__init__(self) -> FileDropTarget"""
5148 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5149 self
._setCallbackInfo
(self
, FileDropTarget
)
5151 def _setCallbackInfo(*args
, **kwargs
):
5152 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5153 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5155 def OnDropFiles(*args
, **kwargs
):
5156 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5157 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5159 def OnEnter(*args
, **kwargs
):
5160 """OnEnter(self, int x, int y, int def) -> int"""
5161 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5163 def OnDragOver(*args
, **kwargs
):
5164 """OnDragOver(self, int x, int y, int def) -> int"""
5165 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5167 def OnLeave(*args
, **kwargs
):
5169 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5171 def OnDrop(*args
, **kwargs
):
5172 """OnDrop(self, int x, int y) -> bool"""
5173 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5175 def OnData(*args
, **kwargs
):
5176 """OnData(self, int x, int y, int def) -> int"""
5177 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5179 def base_OnDropFiles(*args
, **kw
):
5180 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5181 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5182 "Please use FileDropTarget.OnDropFiles instead.")
5184 def base_OnEnter(*args
, **kw
):
5185 return FileDropTarget
.OnEnter(*args
, **kw
)
5186 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5187 "Please use FileDropTarget.OnEnter instead.")
5189 def base_OnDragOver(*args
, **kw
):
5190 return FileDropTarget
.OnDragOver(*args
, **kw
)
5191 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5192 "Please use FileDropTarget.OnDragOver instead.")
5194 def base_OnLeave(*args
, **kw
):
5195 return FileDropTarget
.OnLeave(*args
, **kw
)
5196 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5197 "Please use FileDropTarget.OnLeave instead.")
5199 def base_OnDrop(*args
, **kw
):
5200 return FileDropTarget
.OnDrop(*args
, **kw
)
5201 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5202 "Please use FileDropTarget.OnDrop instead.")
5204 def base_OnData(*args
, **kw
):
5205 return FileDropTarget
.OnData(*args
, **kw
)
5206 base_OnData
= wx
._deprecated
(base_OnData
,
5207 "Please use FileDropTarget.OnData instead.")
5209 _misc_
.FileDropTarget_swigregister(FileDropTarget
)
5211 #---------------------------------------------------------------------------
5213 class Clipboard(_core
.Object
):
5215 wx.Clipboard represents the system clipboard and provides methods to
5216 copy data to it or paste data from it. Normally, you should only use
5217 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5220 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5221 clipboard. If this operation returns True, you now own the
5222 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5223 to retrieve data from the clipboard. Call `Close` to close the
5224 clipboard and relinquish ownership. You should keep the clipboard open
5227 :see: `wx.DataObject`
5230 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5231 __repr__
= _swig_repr
5232 def __init__(self
, *args
, **kwargs
):
5233 """__init__(self) -> Clipboard"""
5234 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5235 __swig_destroy__
= _misc_
.delete_Clipboard
5236 __del__
= lambda self
: None;
5237 def Open(*args
, **kwargs
):
5241 Call this function to open the clipboard before calling SetData and
5242 GetData. Call Close when you have finished with the clipboard. You
5243 should keep the clipboard open for only a very short time. Returns
5246 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5248 def Close(*args
, **kwargs
):
5252 Closes the clipboard.
5254 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5256 def IsOpened(*args
, **kwargs
):
5258 IsOpened(self) -> bool
5260 Query whether the clipboard is opened
5262 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5264 def AddData(*args
, **kwargs
):
5266 AddData(self, DataObject data) -> bool
5268 Call this function to add the data object to the clipboard. You may
5269 call this function repeatedly after having cleared the clipboard.
5270 After this function has been called, the clipboard owns the data, so
5271 do not delete the data explicitly.
5273 :see: `wx.DataObject`
5275 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5277 def SetData(*args
, **kwargs
):
5279 SetData(self, DataObject data) -> bool
5281 Set the clipboard data, this is the same as `Clear` followed by
5284 :see: `wx.DataObject`
5286 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5288 def IsSupported(*args
, **kwargs
):
5290 IsSupported(self, DataFormat format) -> bool
5292 Returns True if the given format is available in the data object(s) on
5295 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5297 def GetData(*args
, **kwargs
):
5299 GetData(self, DataObject data) -> bool
5301 Call this function to fill data with data on the clipboard, if
5302 available in the required format. Returns true on success.
5304 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5306 def Clear(*args
, **kwargs
):
5310 Clears data from the clipboard object and also the system's clipboard
5313 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5315 def Flush(*args
, **kwargs
):
5319 Flushes the clipboard: this means that the data which is currently on
5320 clipboard will stay available even after the application exits,
5321 possibly eating memory, otherwise the clipboard will be emptied on
5322 exit. Returns False if the operation is unsuccesful for any reason.
5324 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5326 def UsePrimarySelection(*args
, **kwargs
):
5328 UsePrimarySelection(self, bool primary=True)
5330 On platforms supporting it (the X11 based platforms), selects the
5331 so called PRIMARY SELECTION as the clipboard as opposed to the
5332 normal clipboard, if primary is True.
5334 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5336 def Get(*args
, **kwargs
):
5340 Returns global instance (wxTheClipboard) of the object.
5342 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5344 Get
= staticmethod(Get
)
5345 _misc_
.Clipboard_swigregister(Clipboard
)
5347 def Clipboard_Get(*args
):
5349 Clipboard_Get() -> Clipboard
5351 Returns global instance (wxTheClipboard) of the object.
5353 return _misc_
.Clipboard_Get(*args
)
5355 class _wxPyDelayedInitWrapper(object):
5356 def __init__(self
, initfunc
, *args
, **kwargs
):
5357 self
._initfunc
= initfunc
5359 self
._kwargs
= kwargs
5360 self
._instance
= None
5361 def _checkInstance(self
):
5362 if self
._instance
is None:
5364 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5365 def __getattr__(self
, name
):
5366 self
._checkInstance
()
5367 return getattr(self
._instance
, name
)
5369 self
._checkInstance
()
5370 return repr(self
._instance
)
5371 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5373 class ClipboardLocker(object):
5375 A helpful class for opening the clipboard and automatically
5376 closing it when the locker is destroyed.
5378 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5379 __repr__
= _swig_repr
5380 def __init__(self
, *args
, **kwargs
):
5382 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5384 A helpful class for opening the clipboard and automatically
5385 closing it when the locker is destroyed.
5387 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5388 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5389 __del__
= lambda self
: None;
5390 def __nonzero__(*args
, **kwargs
):
5392 __nonzero__(self) -> bool
5394 A ClipboardLocker instance evaluates to True if the clipboard was
5395 successfully opened.
5397 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5399 _misc_
.ClipboardLocker_swigregister(ClipboardLocker
)
5401 #---------------------------------------------------------------------------
5403 class VideoMode(object):
5404 """A simple struct containing video mode parameters for a display"""
5405 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5406 __repr__
= _swig_repr
5407 def __init__(self
, *args
, **kwargs
):
5409 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5411 A simple struct containing video mode parameters for a display
5413 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5414 __swig_destroy__
= _misc_
.delete_VideoMode
5415 __del__
= lambda self
: None;
5416 def Matches(*args
, **kwargs
):
5418 Matches(self, VideoMode other) -> bool
5420 Returns True if this mode matches the other one in the sense that all
5421 non-zero fields of the other mode have the same value in this
5422 one (except for refresh which is allowed to have a greater value)
5424 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5426 def GetWidth(*args
, **kwargs
):
5428 GetWidth(self) -> int
5430 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5432 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5434 def GetHeight(*args
, **kwargs
):
5436 GetHeight(self) -> int
5438 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5440 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5442 def GetDepth(*args
, **kwargs
):
5444 GetDepth(self) -> int
5446 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5447 means unspecified/known
5449 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5451 def IsOk(*args
, **kwargs
):
5455 returns true if the object has been initialized
5457 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5459 def __nonzero__(self
): return self
.IsOk()
5460 def __eq__(*args
, **kwargs
):
5461 """__eq__(self, VideoMode other) -> bool"""
5462 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5464 def __ne__(*args
, **kwargs
):
5465 """__ne__(self, VideoMode other) -> bool"""
5466 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5468 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5469 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5470 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5471 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5472 _misc_
.VideoMode_swigregister(VideoMode
)
5474 class Display(object):
5475 """Represents a display/monitor attached to the system"""
5476 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5477 __repr__
= _swig_repr
5478 def __init__(self
, *args
, **kwargs
):
5480 __init__(self, size_t index=0) -> Display
5482 Set up a Display instance with the specified display. The displays
5483 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5484 and the only one which is always supported
5486 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5487 __swig_destroy__
= _misc_
.delete_Display
5488 __del__
= lambda self
: None;
5489 def GetCount(*args
, **kwargs
):
5491 GetCount() -> size_t
5493 Return the number of available displays.
5495 return _misc_
.Display_GetCount(*args
, **kwargs
)
5497 GetCount
= staticmethod(GetCount
)
5498 def GetFromPoint(*args
, **kwargs
):
5500 GetFromPoint(Point pt) -> int
5502 Find the display where the given point lies, return wx.NOT_FOUND if it
5503 doesn't belong to any display
5505 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5507 GetFromPoint
= staticmethod(GetFromPoint
)
5508 def GetFromWindow(*args
, **kwargs
):
5510 GetFromWindow(Window window) -> int
5512 Find the display where the given window lies, return wx.NOT_FOUND if
5513 it is not shown at all.
5515 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5517 GetFromWindow
= staticmethod(GetFromWindow
)
5518 def IsOk(*args
, **kwargs
):
5522 Return true if the object was initialized successfully
5524 return _misc_
.Display_IsOk(*args
, **kwargs
)
5526 def __nonzero__(self
): return self
.IsOk()
5527 def GetGeometry(*args
, **kwargs
):
5529 GetGeometry(self) -> Rect
5531 Returns the bounding rectangle of the display whose index was passed
5534 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5536 def GetClientArea(*args
, **kwargs
):
5538 GetClientArea(self) -> Rect
5540 Returns the bounding rectangle the client area of the display,
5541 i.e., without taskbars and such.
5543 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5545 def GetName(*args
, **kwargs
):
5547 GetName(self) -> String
5549 Returns the display's name. A name is not available on all platforms.
5551 return _misc_
.Display_GetName(*args
, **kwargs
)
5553 def IsPrimary(*args
, **kwargs
):
5555 IsPrimary(self) -> bool
5557 Returns True if the display is the primary display. The primary
5558 display is the one whose index is 0.
5560 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5562 def GetModes(*args
, **kwargs
):
5564 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5566 Enumerate all video modes supported by this display matching the given
5567 one (in the sense of VideoMode.Match()).
5569 As any mode matches the default value of the argument and there is
5570 always at least one video mode supported by display, the returned
5571 array is only empty for the default value of the argument if this
5572 function is not supported at all on this platform.
5574 return _misc_
.Display_GetModes(*args
, **kwargs
)
5576 def GetCurrentMode(*args
, **kwargs
):
5578 GetCurrentMode(self) -> VideoMode
5580 Get the current video mode.
5582 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5584 def ChangeMode(*args
, **kwargs
):
5586 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5588 Changes the video mode of this display to the mode specified in the
5591 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5592 behaviour is that wx.Display will reset the video mode to the default
5593 mode used by the display. On Windows, the behavior is normal.
5594 However, there are differences on other platforms. On Unix variations
5595 using X11 extensions it should behave as defined, but some
5596 irregularities may occur.
5598 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5599 nothing. This happens because Carbon no longer has access to
5600 DMUseScreenPrefs, an undocumented function that changed the video mode
5601 to the system default by using the system's 'scrn' resource.
5603 Returns True if succeeded, False otherwise
5605 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5607 def ResetMode(*args
, **kwargs
):
5611 Restore the default video mode (just a more readable synonym)
5613 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5615 _misc_
.Display_swigregister(Display
)
5616 DefaultVideoMode
= cvar
.DefaultVideoMode
5618 def Display_GetCount(*args
):
5620 Display_GetCount() -> size_t
5622 Return the number of available displays.
5624 return _misc_
.Display_GetCount(*args
)
5626 def Display_GetFromPoint(*args
, **kwargs
):
5628 Display_GetFromPoint(Point pt) -> int
5630 Find the display where the given point lies, return wx.NOT_FOUND if it
5631 doesn't belong to any display
5633 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5635 def Display_GetFromWindow(*args
, **kwargs
):
5637 Display_GetFromWindow(Window window) -> int
5639 Find the display where the given window lies, return wx.NOT_FOUND if
5640 it is not shown at all.
5642 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5644 #---------------------------------------------------------------------------
5646 class StandardPaths(object):
5648 wx.StandardPaths returns standard locations in the file system and
5649 should be used by programs to find their data files in a portable way.
5651 In the description of the methods below, the example return values are
5652 given for the Unix, Windows and Mac OS X systems, however please note
5653 that these are just examples and the actual values may differ. For
5654 example, under Windows the system administrator may change the
5655 standard directories locations, i.e. the Windows directory may be
5656 named W:\Win2003 instead of the default C:\Windows.
5658 The strings appname and username should be replaced with the value
5659 returned by `wx.App.GetAppName` and the name of the currently logged
5660 in user, respectively. The string prefix is only used under Unix and
5661 is /usr/local by default but may be changed using `SetInstallPrefix`.
5663 The directories returned by the methods of this class may or may not
5664 exist. If they don't exist, it's up to the caller to create them,
5665 wx.StandardPaths doesn't do it.
5667 Finally note that these functions only work with standardly packaged
5668 applications. I.e. under Unix you should follow the standard
5669 installation conventions and under Mac you should create your
5670 application bundle according to the Apple guidelines. Again, this
5671 class doesn't help you to do it.
5673 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5674 def __init__(self
): raise AttributeError, "No constructor defined"
5675 __repr__
= _swig_repr
5676 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
5677 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
5678 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
5679 def Get(*args
, **kwargs
):
5681 Get() -> StandardPaths
5683 Return the global standard paths singleton
5685 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
5687 Get
= staticmethod(Get
)
5688 def GetConfigDir(*args
, **kwargs
):
5690 GetConfigDir(self) -> String
5692 Return the directory with system config files: /etc under Unix,
5693 'c:\Documents and Settings\All Users\Application Data' under Windows,
5694 /Library/Preferences for Mac
5696 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
5698 def GetUserConfigDir(*args
, **kwargs
):
5700 GetUserConfigDir(self) -> String
5702 Return the directory for the user config files: $HOME under Unix,
5703 'c:\Documents and Settings\username' under Windows, and
5704 ~/Library/Preferences under Mac
5706 Only use this if you have a single file to put there, otherwise
5707 `GetUserDataDir` is more appropriate
5709 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
5711 def GetDataDir(*args
, **kwargs
):
5713 GetDataDir(self) -> String
5715 Return the location of the application's global, (i.e. not
5716 user-specific,) data files: prefix/share/appname under Unix,
5717 'c:\Program Files\appname' under Windows,
5718 appname.app/Contents/SharedSupport app bundle directory under Mac.
5720 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
5722 def GetLocalDataDir(*args
, **kwargs
):
5724 GetLocalDataDir(self) -> String
5726 Return the location for application data files which are
5727 host-specific. Same as `GetDataDir` except under Unix where it is
5730 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
5732 def GetUserDataDir(*args
, **kwargs
):
5734 GetUserDataDir(self) -> String
5736 Return the directory for the user-dependent application data files:
5737 $HOME/.appname under Unix, c:\Documents and
5738 Settings\username\Application Data\appname under Windows and
5739 ~/Library/Application Support/appname under Mac
5741 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
5743 def GetUserLocalDataDir(*args
, **kwargs
):
5745 GetUserLocalDataDir(self) -> String
5747 Return the directory for user data files which shouldn't be shared
5748 with the other machines
5750 Same as `GetUserDataDir` for all platforms except Windows where it is
5751 the 'Local Settings\Application Data\appname' directory.
5753 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
5755 def GetPluginsDir(*args
, **kwargs
):
5757 GetPluginsDir(self) -> String
5759 Return the directory where the loadable modules (plugins) live:
5760 prefix/lib/appname under Unix, program directory under Windows and
5761 Contents/Plugins app bundle subdirectory under Mac
5763 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
5765 def GetResourcesDir(*args
, **kwargs
):
5767 GetResourcesDir(self) -> String
5769 Get resources directory. Resources are auxiliary files used by the
5770 application and include things like image and sound files.
5772 Same as `GetDataDir` for all platforms except Mac where it returns
5773 Contents/Resources subdirectory of the app bundle.
5775 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
5777 def GetLocalizedResourcesDir(*args
, **kwargs
):
5779 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
5781 Get localized resources directory containing the resource files of the
5782 specified category for the given language.
5784 In general this is just GetResourcesDir()/lang under Windows and Unix
5785 and GetResourcesDir()/lang.lproj under Mac but is something quite
5786 different under Unix for the message catalog category (namely the
5787 standard prefix/share/locale/lang/LC_MESSAGES.)
5789 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
5791 def GetDocumentsDir(*args
, **kwargs
):
5793 GetDocumentsDir(self) -> String
5795 Return the Documents directory for the current user.
5797 C:\Documents and Settings\username\Documents under Windows,
5798 $HOME under Unix and ~/Documents under Mac
5800 return _misc_
.StandardPaths_GetDocumentsDir(*args
, **kwargs
)
5802 def SetInstallPrefix(*args
, **kwargs
):
5804 SetInstallPrefix(self, String prefix)
5806 Set the program installation directory which is /usr/local by default.
5807 This value will be used by other methods such as `GetDataDir` and
5808 `GetPluginsDir` as the prefix for what they return. (This function
5809 only has meaning on Unix systems.)
5811 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
5813 def GetInstallPrefix(*args
, **kwargs
):
5815 GetInstallPrefix(self) -> String
5817 Get the program installation prefix. The default is the prefix where
5818 Python is installed. (This function only has meaning on Unix systems.)
5820 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
5822 _misc_
.StandardPaths_swigregister(StandardPaths
)
5824 def StandardPaths_Get(*args
):
5826 StandardPaths_Get() -> StandardPaths
5828 Return the global standard paths singleton
5830 return _misc_
.StandardPaths_Get(*args
)
5832 #---------------------------------------------------------------------------
5834 POWER_SOCKET
= _misc_
.POWER_SOCKET
5835 POWER_BATTERY
= _misc_
.POWER_BATTERY
5836 POWER_UNKNOWN
= _misc_
.POWER_UNKNOWN
5837 BATTERY_NORMAL_STATE
= _misc_
.BATTERY_NORMAL_STATE
5838 BATTERY_LOW_STATE
= _misc_
.BATTERY_LOW_STATE
5839 BATTERY_CRITICAL_STATE
= _misc_
.BATTERY_CRITICAL_STATE
5840 BATTERY_SHUTDOWN_STATE
= _misc_
.BATTERY_SHUTDOWN_STATE
5841 BATTERY_UNKNOWN_STATE
= _misc_
.BATTERY_UNKNOWN_STATE
5842 class PowerEvent(_core
.Event
):
5844 wx.PowerEvent is generated when the system online status changes.
5845 Currently this is only implemented for Windows.
5847 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5848 __repr__
= _swig_repr
5849 def __init__(self
, *args
, **kwargs
):
5851 __init__(self, EventType evtType) -> PowerEvent
5853 wx.PowerEvent is generated when the system online status changes.
5854 Currently this is only implemented for Windows.
5856 _misc_
.PowerEvent_swiginit(self
,_misc_
.new_PowerEvent(*args
, **kwargs
))
5857 def Veto(*args
, **kwargs
):
5859 return _misc_
.PowerEvent_Veto(*args
, **kwargs
)
5861 def IsVetoed(*args
, **kwargs
):
5862 """IsVetoed(self) -> bool"""
5863 return _misc_
.PowerEvent_IsVetoed(*args
, **kwargs
)
5865 _misc_
.PowerEvent_swigregister(PowerEvent
)
5867 wxEVT_POWER_SUSPENDING
= _misc_
.wxEVT_POWER_SUSPENDING
5868 wxEVT_POWER_SUSPENDED
= _misc_
.wxEVT_POWER_SUSPENDED
5869 wxEVT_POWER_SUSPEND_CANCEL
= _misc_
.wxEVT_POWER_SUSPEND_CANCEL
5870 wxEVT_POWER_RESUME
= _misc_
.wxEVT_POWER_RESUME
5871 EVT_POWER_SUSPENDING
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDING
, 1 )
5872 EVT_POWER_SUSPENDED
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDED
, 1 )
5873 EVT_POWER_SUSPEND_CANCEL
= wx
.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL
, 1 )
5874 EVT_POWER_RESUME
= wx
.PyEventBinder( wxEVT_POWER_RESUME
, 1 )
5877 def GetPowerType(*args
):
5879 GetPowerType() -> int
5881 return the current system power state: online or offline
5883 return _misc_
.GetPowerType(*args
)
5885 def GetBatteryState(*args
):
5887 GetBatteryState() -> int
5889 return approximate battery state
5891 return _misc_
.GetBatteryState(*args
)