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
)
298 STOCK_NOFLAGS
= _misc_
.STOCK_NOFLAGS
299 STOCK_WITH_MNEMONIC
= _misc_
.STOCK_WITH_MNEMONIC
300 STOCK_WITH_ACCELERATOR
= _misc_
.STOCK_WITH_ACCELERATOR
302 def GetStockLabel(*args
, **kwargs
):
303 """GetStockLabel(int id, long flags=STOCK_WITH_MNEMONIC) -> String"""
304 return _misc_
.GetStockLabel(*args
, **kwargs
)
305 STOCK_MENU
= _misc_
.STOCK_MENU
307 def GetStockHelpString(*args
, **kwargs
):
308 """GetStockHelpString(int id, int client=STOCK_MENU) -> String"""
309 return _misc_
.GetStockHelpString(*args
, **kwargs
)
313 return _misc_
.Bell(*args
)
315 def EndBusyCursor(*args
):
316 """EndBusyCursor()"""
317 return _misc_
.EndBusyCursor(*args
)
319 def GetElapsedTime(*args
, **kwargs
):
320 """GetElapsedTime(bool resetTimer=True) -> long"""
321 return _misc_
.GetElapsedTime(*args
, **kwargs
)
322 GetElapsedTime
= wx
._deprecated
(GetElapsedTime
)
325 """IsBusy() -> bool"""
326 return _misc_
.IsBusy(*args
)
329 """Now() -> String"""
330 return _misc_
.Now(*args
)
332 def Shell(*args
, **kwargs
):
333 """Shell(String command=EmptyString) -> bool"""
334 return _misc_
.Shell(*args
, **kwargs
)
336 def StartTimer(*args
):
338 return _misc_
.StartTimer(*args
)
340 def GetOsVersion(*args
):
341 """GetOsVersion() -> (platform, major, minor)"""
342 return _misc_
.GetOsVersion(*args
)
344 def GetOsDescription(*args
):
345 """GetOsDescription() -> String"""
346 return _misc_
.GetOsDescription(*args
)
348 def IsPlatformLittleEndian(*args
):
349 """IsPlatformLittleEndian() -> bool"""
350 return _misc_
.IsPlatformLittleEndian(*args
)
352 def IsPlatform64Bit(*args
):
353 """IsPlatform64Bit() -> bool"""
354 return _misc_
.IsPlatform64Bit(*args
)
356 def GetFreeMemory(*args
):
357 """GetFreeMemory() -> wxMemorySize"""
358 return _misc_
.GetFreeMemory(*args
)
359 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
360 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
362 def Shutdown(*args
, **kwargs
):
363 """Shutdown(int wFlags) -> bool"""
364 return _misc_
.Shutdown(*args
, **kwargs
)
366 def Sleep(*args
, **kwargs
):
367 """Sleep(int secs)"""
368 return _misc_
.Sleep(*args
, **kwargs
)
370 def MilliSleep(*args
, **kwargs
):
371 """MilliSleep(unsigned long milliseconds)"""
372 return _misc_
.MilliSleep(*args
, **kwargs
)
374 def MicroSleep(*args
, **kwargs
):
375 """MicroSleep(unsigned long microseconds)"""
376 return _misc_
.MicroSleep(*args
, **kwargs
)
379 def EnableTopLevelWindows(*args
, **kwargs
):
380 """EnableTopLevelWindows(bool enable)"""
381 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
383 def StripMenuCodes(*args
, **kwargs
):
384 """StripMenuCodes(String in) -> String"""
385 return _misc_
.StripMenuCodes(*args
, **kwargs
)
387 def GetEmailAddress(*args
):
388 """GetEmailAddress() -> String"""
389 return _misc_
.GetEmailAddress(*args
)
391 def GetHostName(*args
):
392 """GetHostName() -> String"""
393 return _misc_
.GetHostName(*args
)
395 def GetFullHostName(*args
):
396 """GetFullHostName() -> String"""
397 return _misc_
.GetFullHostName(*args
)
399 def GetUserId(*args
):
400 """GetUserId() -> String"""
401 return _misc_
.GetUserId(*args
)
403 def GetUserName(*args
):
404 """GetUserName() -> String"""
405 return _misc_
.GetUserName(*args
)
407 def GetHomeDir(*args
):
408 """GetHomeDir() -> String"""
409 return _misc_
.GetHomeDir(*args
)
411 def GetUserHome(*args
, **kwargs
):
412 """GetUserHome(String user=EmptyString) -> String"""
413 return _misc_
.GetUserHome(*args
, **kwargs
)
415 def GetProcessId(*args
):
416 """GetProcessId() -> unsigned long"""
417 return _misc_
.GetProcessId(*args
)
421 return _misc_
.Trap(*args
)
423 def FileSelector(*args
, **kwargs
):
425 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
426 String default_filename=EmptyString,
427 String default_extension=EmptyString,
428 String wildcard=FileSelectorDefaultWildcardStr,
429 int flags=0, Window parent=None, int x=-1,
432 return _misc_
.FileSelector(*args
, **kwargs
)
434 def LoadFileSelector(*args
, **kwargs
):
436 LoadFileSelector(String what, String extension, String default_name=EmptyString,
437 Window parent=None) -> String
439 return _misc_
.LoadFileSelector(*args
, **kwargs
)
441 def SaveFileSelector(*args
, **kwargs
):
443 SaveFileSelector(String what, String extension, String default_name=EmptyString,
444 Window parent=None) -> String
446 return _misc_
.SaveFileSelector(*args
, **kwargs
)
448 def DirSelector(*args
, **kwargs
):
450 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
451 long style=wxDD_DEFAULT_STYLE,
452 Point pos=DefaultPosition, Window parent=None) -> String
454 return _misc_
.DirSelector(*args
, **kwargs
)
456 def GetTextFromUser(*args
, **kwargs
):
458 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
460 int x=-1, int y=-1, bool centre=True) -> String
462 return _misc_
.GetTextFromUser(*args
, **kwargs
)
464 def GetPasswordFromUser(*args
, **kwargs
):
466 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
467 Window parent=None) -> String
469 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
471 def GetSingleChoice(*args
, **kwargs
):
473 GetSingleChoice(String message, String caption, int choices, Window parent=None,
474 int x=-1, int y=-1, bool centre=True,
475 int width=150, int height=200) -> String
477 return _misc_
.GetSingleChoice(*args
, **kwargs
)
479 def GetSingleChoiceIndex(*args
, **kwargs
):
481 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
482 int x=-1, int y=-1, bool centre=True,
483 int width=150, int height=200) -> int
485 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
487 def MessageBox(*args
, **kwargs
):
489 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
490 Window parent=None, int x=-1,
493 return _misc_
.MessageBox(*args
, **kwargs
)
495 def GetNumberFromUser(*args
, **kwargs
):
497 GetNumberFromUser(String message, String prompt, String caption, long value,
498 long min=0, long max=100, Window parent=None,
499 Point pos=DefaultPosition) -> long
501 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
503 def ColourDisplay(*args
):
504 """ColourDisplay() -> bool"""
505 return _misc_
.ColourDisplay(*args
)
507 def DisplayDepth(*args
):
508 """DisplayDepth() -> int"""
509 return _misc_
.DisplayDepth(*args
)
511 def GetDisplayDepth(*args
):
512 """GetDisplayDepth() -> int"""
513 return _misc_
.GetDisplayDepth(*args
)
515 def DisplaySize(*args
):
516 """DisplaySize() -> (width, height)"""
517 return _misc_
.DisplaySize(*args
)
519 def GetDisplaySize(*args
):
520 """GetDisplaySize() -> Size"""
521 return _misc_
.GetDisplaySize(*args
)
523 def DisplaySizeMM(*args
):
524 """DisplaySizeMM() -> (width, height)"""
525 return _misc_
.DisplaySizeMM(*args
)
527 def GetDisplaySizeMM(*args
):
528 """GetDisplaySizeMM() -> Size"""
529 return _misc_
.GetDisplaySizeMM(*args
)
531 def ClientDisplayRect(*args
):
532 """ClientDisplayRect() -> (x, y, width, height)"""
533 return _misc_
.ClientDisplayRect(*args
)
535 def GetClientDisplayRect(*args
):
536 """GetClientDisplayRect() -> Rect"""
537 return _misc_
.GetClientDisplayRect(*args
)
539 def SetCursor(*args
, **kwargs
):
540 """SetCursor(Cursor cursor)"""
541 return _misc_
.SetCursor(*args
, **kwargs
)
543 def GetXDisplay(*args
):
545 GetXDisplay() -> void
547 Returns a swigified pointer to the X11 display. Returns None on
550 return _misc_
.GetXDisplay(*args
)
552 def BeginBusyCursor(*args
, **kwargs
):
553 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
554 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
556 def GetMousePosition(*args
):
558 GetMousePosition() -> Point
560 Get the current mouse position on the screen.
562 return _misc_
.GetMousePosition(*args
)
564 def FindWindowAtPointer(*args
):
566 FindWindowAtPointer() -> Window
568 Returns the window currently under the mouse pointer, if it belongs to
569 this application. Otherwise it returns None.
571 return _misc_
.FindWindowAtPointer(*args
)
573 def GetActiveWindow(*args
):
575 GetActiveWindow() -> Window
577 Get the currently active window of this application, or None
579 return _misc_
.GetActiveWindow(*args
)
581 def GenericFindWindowAtPoint(*args
, **kwargs
):
582 """GenericFindWindowAtPoint(Point pt) -> Window"""
583 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
585 def FindWindowAtPoint(*args
, **kwargs
):
586 """FindWindowAtPoint(Point pt) -> Window"""
587 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
589 def GetTopLevelParent(*args
, **kwargs
):
590 """GetTopLevelParent(Window win) -> Window"""
591 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
593 def LaunchDefaultBrowser(*args
, **kwargs
):
595 LaunchDefaultBrowser(String url) -> bool
597 Launches the user's default browser and tells it to open the location
598 at ``url``. Returns ``True`` if the application was successfully
601 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
603 def GetKeyState(*args
, **kwargs
):
605 GetKeyState(int key) -> bool
607 Get the state of a key (true if pressed or toggled on, false if not.)
608 This is generally most useful getting the state of the modifier or
609 toggle keys. On some platforms those may be the only keys that this
610 function is able to detect.
613 return _misc_
.GetKeyState(*args
, **kwargs
)
614 class MouseState(object):
616 `wx.MouseState` is used to hold information about mouse button and
617 modifier key states and is what is returned from `wx.GetMouseState`.
619 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
620 __repr__
= _swig_repr
621 def __init__(self
, *args
, **kwargs
):
623 __init__(self) -> MouseState
625 `wx.MouseState` is used to hold information about mouse button and
626 modifier key states and is what is returned from `wx.GetMouseState`.
628 _misc_
.MouseState_swiginit(self
,_misc_
.new_MouseState(*args
, **kwargs
))
629 __swig_destroy__
= _misc_
.delete_MouseState
630 __del__
= lambda self
: None;
631 def GetX(*args
, **kwargs
):
632 """GetX(self) -> int"""
633 return _misc_
.MouseState_GetX(*args
, **kwargs
)
635 def GetY(*args
, **kwargs
):
636 """GetY(self) -> int"""
637 return _misc_
.MouseState_GetY(*args
, **kwargs
)
639 def LeftDown(*args
, **kwargs
):
640 """LeftDown(self) -> bool"""
641 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
643 def MiddleDown(*args
, **kwargs
):
644 """MiddleDown(self) -> bool"""
645 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
647 def RightDown(*args
, **kwargs
):
648 """RightDown(self) -> bool"""
649 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
651 def ControlDown(*args
, **kwargs
):
652 """ControlDown(self) -> bool"""
653 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
655 def ShiftDown(*args
, **kwargs
):
656 """ShiftDown(self) -> bool"""
657 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
659 def AltDown(*args
, **kwargs
):
660 """AltDown(self) -> bool"""
661 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
663 def MetaDown(*args
, **kwargs
):
664 """MetaDown(self) -> bool"""
665 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
667 def CmdDown(*args
, **kwargs
):
668 """CmdDown(self) -> bool"""
669 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
671 def SetX(*args
, **kwargs
):
672 """SetX(self, int x)"""
673 return _misc_
.MouseState_SetX(*args
, **kwargs
)
675 def SetY(*args
, **kwargs
):
676 """SetY(self, int y)"""
677 return _misc_
.MouseState_SetY(*args
, **kwargs
)
679 def SetLeftDown(*args
, **kwargs
):
680 """SetLeftDown(self, bool down)"""
681 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
683 def SetMiddleDown(*args
, **kwargs
):
684 """SetMiddleDown(self, bool down)"""
685 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
687 def SetRightDown(*args
, **kwargs
):
688 """SetRightDown(self, bool down)"""
689 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
691 def SetControlDown(*args
, **kwargs
):
692 """SetControlDown(self, bool down)"""
693 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
695 def SetShiftDown(*args
, **kwargs
):
696 """SetShiftDown(self, bool down)"""
697 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
699 def SetAltDown(*args
, **kwargs
):
700 """SetAltDown(self, bool down)"""
701 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
703 def SetMetaDown(*args
, **kwargs
):
704 """SetMetaDown(self, bool down)"""
705 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
707 x
= property(GetX
, SetX
)
708 y
= property(GetY
, SetY
)
709 leftDown
= property(LeftDown
, SetLeftDown
)
710 middleDown
= property(MiddleDown
, SetMiddleDown
)
711 rightDown
= property(RightDown
, SetRightDown
)
712 controlDown
= property(ControlDown
, SetControlDown
)
713 shiftDown
= property(ShiftDown
, SetShiftDown
)
714 altDown
= property(AltDown
, SetAltDown
)
715 metaDown
= property(MetaDown
, SetMetaDown
)
716 cmdDown
= property(CmdDown
)
718 _misc_
.MouseState_swigregister(MouseState
)
719 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
720 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
721 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
724 def GetMouseState(*args
):
726 GetMouseState() -> MouseState
728 Returns the current state of the mouse. Returns an instance of a
729 `wx.MouseState` object that contains the current position of the mouse
730 pointer in screen coordinants, as well as boolean values indicating
731 the up/down status of the mouse buttons and the modifier keys.
733 return _misc_
.GetMouseState(*args
)
735 def WakeUpMainThread(*args
):
736 """WakeUpMainThread()"""
737 return _misc_
.WakeUpMainThread(*args
)
739 def MutexGuiEnter(*args
):
740 """MutexGuiEnter()"""
741 return _misc_
.MutexGuiEnter(*args
)
743 def MutexGuiLeave(*args
):
744 """MutexGuiLeave()"""
745 return _misc_
.MutexGuiLeave(*args
)
746 class MutexGuiLocker(object):
747 """Proxy of C++ MutexGuiLocker class"""
748 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
749 __repr__
= _swig_repr
750 def __init__(self
, *args
, **kwargs
):
751 """__init__(self) -> MutexGuiLocker"""
752 _misc_
.MutexGuiLocker_swiginit(self
,_misc_
.new_MutexGuiLocker(*args
, **kwargs
))
753 __swig_destroy__
= _misc_
.delete_MutexGuiLocker
754 __del__
= lambda self
: None;
755 _misc_
.MutexGuiLocker_swigregister(MutexGuiLocker
)
758 def Thread_IsMain(*args
):
759 """Thread_IsMain() -> bool"""
760 return _misc_
.Thread_IsMain(*args
)
761 #---------------------------------------------------------------------------
763 class ToolTip(_core
.Object
):
764 """Proxy of C++ ToolTip class"""
765 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
766 __repr__
= _swig_repr
767 def __init__(self
, *args
, **kwargs
):
768 """__init__(self, String tip) -> ToolTip"""
769 _misc_
.ToolTip_swiginit(self
,_misc_
.new_ToolTip(*args
, **kwargs
))
770 __swig_destroy__
= _misc_
.delete_ToolTip
771 __del__
= lambda self
: None;
772 def SetTip(*args
, **kwargs
):
773 """SetTip(self, String tip)"""
774 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
776 def GetTip(*args
, **kwargs
):
777 """GetTip(self) -> String"""
778 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
780 def GetWindow(*args
, **kwargs
):
781 """GetWindow(self) -> Window"""
782 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
784 def Enable(*args
, **kwargs
):
785 """Enable(bool flag)"""
786 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
788 Enable
= staticmethod(Enable
)
789 def SetDelay(*args
, **kwargs
):
790 """SetDelay(long milliseconds)"""
791 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
793 SetDelay
= staticmethod(SetDelay
)
794 Tip
= property(GetTip
,SetTip
,doc
="See `GetTip` and `SetTip`")
795 Window
= property(GetWindow
,doc
="See `GetWindow`")
796 _misc_
.ToolTip_swigregister(ToolTip
)
798 def ToolTip_Enable(*args
, **kwargs
):
799 """ToolTip_Enable(bool flag)"""
800 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
802 def ToolTip_SetDelay(*args
, **kwargs
):
803 """ToolTip_SetDelay(long milliseconds)"""
804 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
807 """Proxy of C++ Caret class"""
808 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
809 __repr__
= _swig_repr
810 def __init__(self
, *args
, **kwargs
):
811 """__init__(self, Window window, Size size) -> Caret"""
812 _misc_
.Caret_swiginit(self
,_misc_
.new_Caret(*args
, **kwargs
))
813 __swig_destroy__
= _misc_
.delete_Caret
814 __del__
= lambda self
: None;
815 def Destroy(*args
, **kwargs
):
819 Deletes the C++ object this Python object is a proxy for.
821 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
825 def IsOk(*args
, **kwargs
):
826 """IsOk(self) -> bool"""
827 return _misc_
.Caret_IsOk(*args
, **kwargs
)
829 def IsVisible(*args
, **kwargs
):
830 """IsVisible(self) -> bool"""
831 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
833 def GetPosition(*args
, **kwargs
):
834 """GetPosition(self) -> Point"""
835 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
837 def GetPositionTuple(*args
, **kwargs
):
838 """GetPositionTuple() -> (x,y)"""
839 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
841 def GetSize(*args
, **kwargs
):
842 """GetSize(self) -> Size"""
843 return _misc_
.Caret_GetSize(*args
, **kwargs
)
845 def GetSizeTuple(*args
, **kwargs
):
846 """GetSizeTuple() -> (width, height)"""
847 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
849 def GetWindow(*args
, **kwargs
):
850 """GetWindow(self) -> Window"""
851 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
853 def MoveXY(*args
, **kwargs
):
854 """MoveXY(self, int x, int y)"""
855 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
857 def Move(*args
, **kwargs
):
858 """Move(self, Point pt)"""
859 return _misc_
.Caret_Move(*args
, **kwargs
)
861 def SetSizeWH(*args
, **kwargs
):
862 """SetSizeWH(self, int width, int height)"""
863 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
865 def SetSize(*args
, **kwargs
):
866 """SetSize(self, Size size)"""
867 return _misc_
.Caret_SetSize(*args
, **kwargs
)
869 def Show(*args
, **kwargs
):
870 """Show(self, int show=True)"""
871 return _misc_
.Caret_Show(*args
, **kwargs
)
873 def Hide(*args
, **kwargs
):
875 return _misc_
.Caret_Hide(*args
, **kwargs
)
877 def __nonzero__(self
): return self
.IsOk()
878 def GetBlinkTime(*args
, **kwargs
):
879 """GetBlinkTime() -> int"""
880 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
882 GetBlinkTime
= staticmethod(GetBlinkTime
)
883 def SetBlinkTime(*args
, **kwargs
):
884 """SetBlinkTime(int milliseconds)"""
885 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
887 SetBlinkTime
= staticmethod(SetBlinkTime
)
888 Position
= property(GetPosition
,doc
="See `GetPosition`")
889 Size
= property(GetSize
,SetSize
,doc
="See `GetSize` and `SetSize`")
890 Window
= property(GetWindow
,doc
="See `GetWindow`")
891 _misc_
.Caret_swigregister(Caret
)
893 def Caret_GetBlinkTime(*args
):
894 """Caret_GetBlinkTime() -> int"""
895 return _misc_
.Caret_GetBlinkTime(*args
)
897 def Caret_SetBlinkTime(*args
, **kwargs
):
898 """Caret_SetBlinkTime(int milliseconds)"""
899 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
901 class BusyCursor(object):
902 """Proxy of C++ BusyCursor class"""
903 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
904 __repr__
= _swig_repr
905 def __init__(self
, *args
, **kwargs
):
906 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
907 _misc_
.BusyCursor_swiginit(self
,_misc_
.new_BusyCursor(*args
, **kwargs
))
908 __swig_destroy__
= _misc_
.delete_BusyCursor
909 __del__
= lambda self
: None;
910 _misc_
.BusyCursor_swigregister(BusyCursor
)
912 class WindowDisabler(object):
913 """Proxy of C++ WindowDisabler class"""
914 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
915 __repr__
= _swig_repr
916 def __init__(self
, *args
, **kwargs
):
917 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
918 _misc_
.WindowDisabler_swiginit(self
,_misc_
.new_WindowDisabler(*args
, **kwargs
))
919 __swig_destroy__
= _misc_
.delete_WindowDisabler
920 __del__
= lambda self
: None;
921 _misc_
.WindowDisabler_swigregister(WindowDisabler
)
923 class BusyInfo(_core
.Object
):
924 """Proxy of C++ BusyInfo class"""
925 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
926 __repr__
= _swig_repr
927 def __init__(self
, *args
, **kwargs
):
928 """__init__(self, String message) -> BusyInfo"""
929 _misc_
.BusyInfo_swiginit(self
,_misc_
.new_BusyInfo(*args
, **kwargs
))
930 __swig_destroy__
= _misc_
.delete_BusyInfo
931 __del__
= lambda self
: None;
932 def Destroy(self
): pass
933 _misc_
.BusyInfo_swigregister(BusyInfo
)
935 class StopWatch(object):
936 """Proxy of C++ StopWatch class"""
937 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
938 __repr__
= _swig_repr
939 def __init__(self
, *args
, **kwargs
):
940 """__init__(self) -> StopWatch"""
941 _misc_
.StopWatch_swiginit(self
,_misc_
.new_StopWatch(*args
, **kwargs
))
942 def Start(*args
, **kwargs
):
943 """Start(self, long t0=0)"""
944 return _misc_
.StopWatch_Start(*args
, **kwargs
)
946 def Pause(*args
, **kwargs
):
948 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
950 def Resume(*args
, **kwargs
):
952 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
954 def Time(*args
, **kwargs
):
955 """Time(self) -> long"""
956 return _misc_
.StopWatch_Time(*args
, **kwargs
)
958 _misc_
.StopWatch_swigregister(StopWatch
)
960 class FileHistory(_core
.Object
):
961 """Proxy of C++ FileHistory class"""
962 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
963 __repr__
= _swig_repr
964 def __init__(self
, *args
, **kwargs
):
965 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
966 _misc_
.FileHistory_swiginit(self
,_misc_
.new_FileHistory(*args
, **kwargs
))
967 __swig_destroy__
= _misc_
.delete_FileHistory
968 __del__
= lambda self
: None;
969 def AddFileToHistory(*args
, **kwargs
):
970 """AddFileToHistory(self, String file)"""
971 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
973 def RemoveFileFromHistory(*args
, **kwargs
):
974 """RemoveFileFromHistory(self, int i)"""
975 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
977 def GetMaxFiles(*args
, **kwargs
):
978 """GetMaxFiles(self) -> int"""
979 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
981 def UseMenu(*args
, **kwargs
):
982 """UseMenu(self, Menu menu)"""
983 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
985 def RemoveMenu(*args
, **kwargs
):
986 """RemoveMenu(self, Menu menu)"""
987 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
989 def Load(*args
, **kwargs
):
990 """Load(self, ConfigBase config)"""
991 return _misc_
.FileHistory_Load(*args
, **kwargs
)
993 def Save(*args
, **kwargs
):
994 """Save(self, ConfigBase config)"""
995 return _misc_
.FileHistory_Save(*args
, **kwargs
)
997 def AddFilesToMenu(*args
, **kwargs
):
998 """AddFilesToMenu(self)"""
999 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
1001 def AddFilesToThisMenu(*args
, **kwargs
):
1002 """AddFilesToThisMenu(self, Menu menu)"""
1003 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
1005 def GetHistoryFile(*args
, **kwargs
):
1006 """GetHistoryFile(self, int i) -> String"""
1007 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
1009 def GetCount(*args
, **kwargs
):
1010 """GetCount(self) -> int"""
1011 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
1013 GetNoHistoryFiles
= GetCount
1014 Count
= property(GetCount
,doc
="See `GetCount`")
1015 HistoryFile
= property(GetHistoryFile
,doc
="See `GetHistoryFile`")
1016 MaxFiles
= property(GetMaxFiles
,doc
="See `GetMaxFiles`")
1017 NoHistoryFiles
= property(GetNoHistoryFiles
,doc
="See `GetNoHistoryFiles`")
1018 _misc_
.FileHistory_swigregister(FileHistory
)
1020 class SingleInstanceChecker(object):
1021 """Proxy of C++ SingleInstanceChecker class"""
1022 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1023 __repr__
= _swig_repr
1024 def __init__(self
, *args
, **kwargs
):
1025 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1026 _misc_
.SingleInstanceChecker_swiginit(self
,_misc_
.new_SingleInstanceChecker(*args
, **kwargs
))
1027 __swig_destroy__
= _misc_
.delete_SingleInstanceChecker
1028 __del__
= lambda self
: None;
1029 def Create(*args
, **kwargs
):
1030 """Create(self, String name, String path=EmptyString) -> bool"""
1031 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1033 def IsAnotherRunning(*args
, **kwargs
):
1034 """IsAnotherRunning(self) -> bool"""
1035 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1037 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1039 def PreSingleInstanceChecker(*args
, **kwargs
):
1040 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1041 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1044 #---------------------------------------------------------------------------
1046 OS_UNKNOWN
= _misc_
.OS_UNKNOWN
1047 OS_MAC_OS
= _misc_
.OS_MAC_OS
1048 OS_MAC_OSX_DARWIN
= _misc_
.OS_MAC_OSX_DARWIN
1049 OS_MAC
= _misc_
.OS_MAC
1050 OS_WINDOWS_9X
= _misc_
.OS_WINDOWS_9X
1051 OS_WINDOWS_NT
= _misc_
.OS_WINDOWS_NT
1052 OS_WINDOWS_MICRO
= _misc_
.OS_WINDOWS_MICRO
1053 OS_WINDOWS_CE
= _misc_
.OS_WINDOWS_CE
1054 OS_WINDOWS
= _misc_
.OS_WINDOWS
1055 OS_UNIX_LINUX
= _misc_
.OS_UNIX_LINUX
1056 OS_UNIX_FREEBSD
= _misc_
.OS_UNIX_FREEBSD
1057 OS_UNIX_OPENBSD
= _misc_
.OS_UNIX_OPENBSD
1058 OS_UNIX_NETBSD
= _misc_
.OS_UNIX_NETBSD
1059 OS_UNIX_SOLARIS
= _misc_
.OS_UNIX_SOLARIS
1060 OS_UNIX_AIX
= _misc_
.OS_UNIX_AIX
1061 OS_UNIX_HPUX
= _misc_
.OS_UNIX_HPUX
1062 OS_UNIX
= _misc_
.OS_UNIX
1063 OS_DOS
= _misc_
.OS_DOS
1064 OS_OS2
= _misc_
.OS_OS2
1065 PORT_UNKNOWN
= _misc_
.PORT_UNKNOWN
1066 PORT_BASE
= _misc_
.PORT_BASE
1067 PORT_MSW
= _misc_
.PORT_MSW
1068 PORT_MOTIF
= _misc_
.PORT_MOTIF
1069 PORT_GTK
= _misc_
.PORT_GTK
1070 PORT_MGL
= _misc_
.PORT_MGL
1071 PORT_X11
= _misc_
.PORT_X11
1072 PORT_PM
= _misc_
.PORT_PM
1073 PORT_OS2
= _misc_
.PORT_OS2
1074 PORT_MAC
= _misc_
.PORT_MAC
1075 PORT_COCOA
= _misc_
.PORT_COCOA
1076 PORT_WINCE
= _misc_
.PORT_WINCE
1077 PORT_PALMOS
= _misc_
.PORT_PALMOS
1078 PORT_DFB
= _misc_
.PORT_DFB
1079 ARCH_INVALID
= _misc_
.ARCH_INVALID
1080 ARCH_32
= _misc_
.ARCH_32
1081 ARCH_64
= _misc_
.ARCH_64
1082 ARCH_MAX
= _misc_
.ARCH_MAX
1083 ENDIAN_INVALID
= _misc_
.ENDIAN_INVALID
1084 ENDIAN_BIG
= _misc_
.ENDIAN_BIG
1085 ENDIAN_LITTLE
= _misc_
.ENDIAN_LITTLE
1086 ENDIAN_PDP
= _misc_
.ENDIAN_PDP
1087 ENDIAN_MAX
= _misc_
.ENDIAN_MAX
1088 class PlatformInformation(object):
1089 """Proxy of C++ PlatformInformation class"""
1090 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1091 __repr__
= _swig_repr
1092 def __init__(self
, *args
, **kwargs
):
1093 """__init__(self) -> PlatformInformation"""
1094 _misc_
.PlatformInformation_swiginit(self
,_misc_
.new_PlatformInformation(*args
, **kwargs
))
1095 def __eq__(*args
, **kwargs
):
1096 """__eq__(self, PlatformInformation t) -> bool"""
1097 return _misc_
.PlatformInformation___eq__(*args
, **kwargs
)
1099 def __ne__(*args
, **kwargs
):
1100 """__ne__(self, PlatformInformation t) -> bool"""
1101 return _misc_
.PlatformInformation___ne__(*args
, **kwargs
)
1103 def GetOSMajorVersion(*args
, **kwargs
):
1104 """GetOSMajorVersion(self) -> int"""
1105 return _misc_
.PlatformInformation_GetOSMajorVersion(*args
, **kwargs
)
1107 def GetOSMinorVersion(*args
, **kwargs
):
1108 """GetOSMinorVersion(self) -> int"""
1109 return _misc_
.PlatformInformation_GetOSMinorVersion(*args
, **kwargs
)
1111 def CheckOSVersion(*args
, **kwargs
):
1112 """CheckOSVersion(self, int major, int minor) -> bool"""
1113 return _misc_
.PlatformInformation_CheckOSVersion(*args
, **kwargs
)
1115 def GetToolkitMajorVersion(*args
, **kwargs
):
1116 """GetToolkitMajorVersion(self) -> int"""
1117 return _misc_
.PlatformInformation_GetToolkitMajorVersion(*args
, **kwargs
)
1119 def GetToolkitMinorVersion(*args
, **kwargs
):
1120 """GetToolkitMinorVersion(self) -> int"""
1121 return _misc_
.PlatformInformation_GetToolkitMinorVersion(*args
, **kwargs
)
1123 def CheckToolkitVersion(*args
, **kwargs
):
1124 """CheckToolkitVersion(self, int major, int minor) -> bool"""
1125 return _misc_
.PlatformInformation_CheckToolkitVersion(*args
, **kwargs
)
1127 def IsUsingUniversalWidgets(*args
, **kwargs
):
1128 """IsUsingUniversalWidgets(self) -> bool"""
1129 return _misc_
.PlatformInformation_IsUsingUniversalWidgets(*args
, **kwargs
)
1131 def GetOperatingSystemId(*args
, **kwargs
):
1132 """GetOperatingSystemId(self) -> int"""
1133 return _misc_
.PlatformInformation_GetOperatingSystemId(*args
, **kwargs
)
1135 def GetPortId(*args
, **kwargs
):
1136 """GetPortId(self) -> int"""
1137 return _misc_
.PlatformInformation_GetPortId(*args
, **kwargs
)
1139 def GetArchitecture(*args
, **kwargs
):
1140 """GetArchitecture(self) -> int"""
1141 return _misc_
.PlatformInformation_GetArchitecture(*args
, **kwargs
)
1143 def GetEndianness(*args
, **kwargs
):
1144 """GetEndianness(self) -> int"""
1145 return _misc_
.PlatformInformation_GetEndianness(*args
, **kwargs
)
1147 def GetOperatingSystemFamilyName(*args
, **kwargs
):
1148 """GetOperatingSystemFamilyName(self) -> String"""
1149 return _misc_
.PlatformInformation_GetOperatingSystemFamilyName(*args
, **kwargs
)
1151 def GetOperatingSystemIdName(*args
, **kwargs
):
1152 """GetOperatingSystemIdName(self) -> String"""
1153 return _misc_
.PlatformInformation_GetOperatingSystemIdName(*args
, **kwargs
)
1155 def GetPortIdName(*args
, **kwargs
):
1156 """GetPortIdName(self) -> String"""
1157 return _misc_
.PlatformInformation_GetPortIdName(*args
, **kwargs
)
1159 def GetPortIdShortName(*args
, **kwargs
):
1160 """GetPortIdShortName(self) -> String"""
1161 return _misc_
.PlatformInformation_GetPortIdShortName(*args
, **kwargs
)
1163 def GetArchName(*args
, **kwargs
):
1164 """GetArchName(self) -> String"""
1165 return _misc_
.PlatformInformation_GetArchName(*args
, **kwargs
)
1167 def GetEndiannessName(*args
, **kwargs
):
1168 """GetEndiannessName(self) -> String"""
1169 return _misc_
.PlatformInformation_GetEndiannessName(*args
, **kwargs
)
1171 def SetOSVersion(*args
, **kwargs
):
1172 """SetOSVersion(self, int major, int minor)"""
1173 return _misc_
.PlatformInformation_SetOSVersion(*args
, **kwargs
)
1175 def SetToolkitVersion(*args
, **kwargs
):
1176 """SetToolkitVersion(self, int major, int minor)"""
1177 return _misc_
.PlatformInformation_SetToolkitVersion(*args
, **kwargs
)
1179 def SetOperatingSystemId(*args
, **kwargs
):
1180 """SetOperatingSystemId(self, int n)"""
1181 return _misc_
.PlatformInformation_SetOperatingSystemId(*args
, **kwargs
)
1183 def SetPortId(*args
, **kwargs
):
1184 """SetPortId(self, int n)"""
1185 return _misc_
.PlatformInformation_SetPortId(*args
, **kwargs
)
1187 def SetArchitecture(*args
, **kwargs
):
1188 """SetArchitecture(self, int n)"""
1189 return _misc_
.PlatformInformation_SetArchitecture(*args
, **kwargs
)
1191 def SetEndianness(*args
, **kwargs
):
1192 """SetEndianness(self, int n)"""
1193 return _misc_
.PlatformInformation_SetEndianness(*args
, **kwargs
)
1195 def IsOk(*args
, **kwargs
):
1196 """IsOk(self) -> bool"""
1197 return _misc_
.PlatformInformation_IsOk(*args
, **kwargs
)
1199 ArchName
= property(GetArchName
,doc
="See `GetArchName`")
1200 Architecture
= property(GetArchitecture
,SetArchitecture
,doc
="See `GetArchitecture` and `SetArchitecture`")
1201 Endianness
= property(GetEndianness
,SetEndianness
,doc
="See `GetEndianness` and `SetEndianness`")
1202 EndiannessName
= property(GetEndiannessName
,doc
="See `GetEndiannessName`")
1203 OSMajorVersion
= property(GetOSMajorVersion
,doc
="See `GetOSMajorVersion`")
1204 OSMinorVersion
= property(GetOSMinorVersion
,doc
="See `GetOSMinorVersion`")
1205 OperatingSystemFamilyName
= property(GetOperatingSystemFamilyName
,doc
="See `GetOperatingSystemFamilyName`")
1206 OperatingSystemId
= property(GetOperatingSystemId
,SetOperatingSystemId
,doc
="See `GetOperatingSystemId` and `SetOperatingSystemId`")
1207 OperatingSystemIdName
= property(GetOperatingSystemIdName
,doc
="See `GetOperatingSystemIdName`")
1208 PortId
= property(GetPortId
,SetPortId
,doc
="See `GetPortId` and `SetPortId`")
1209 PortIdName
= property(GetPortIdName
,doc
="See `GetPortIdName`")
1210 PortIdShortName
= property(GetPortIdShortName
,doc
="See `GetPortIdShortName`")
1211 ToolkitMajorVersion
= property(GetToolkitMajorVersion
,doc
="See `GetToolkitMajorVersion`")
1212 ToolkitMinorVersion
= property(GetToolkitMinorVersion
,doc
="See `GetToolkitMinorVersion`")
1213 _misc_
.PlatformInformation_swigregister(PlatformInformation
)
1216 def DrawWindowOnDC(*args
, **kwargs
):
1217 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1218 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1219 #---------------------------------------------------------------------------
1221 class TipProvider(object):
1222 """Proxy of C++ TipProvider class"""
1223 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1224 def __init__(self
): raise AttributeError, "No constructor defined"
1225 __repr__
= _swig_repr
1226 __swig_destroy__
= _misc_
.delete_TipProvider
1227 __del__
= lambda self
: None;
1228 def GetTip(*args
, **kwargs
):
1229 """GetTip(self) -> String"""
1230 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1232 def GetCurrentTip(*args
, **kwargs
):
1233 """GetCurrentTip(self) -> size_t"""
1234 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1236 def PreprocessTip(*args
, **kwargs
):
1237 """PreprocessTip(self, String tip) -> String"""
1238 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1240 CurrentTip
= property(GetCurrentTip
,doc
="See `GetCurrentTip`")
1241 Tip
= property(GetTip
,doc
="See `GetTip`")
1242 _misc_
.TipProvider_swigregister(TipProvider
)
1244 class PyTipProvider(TipProvider
):
1245 """Proxy of C++ PyTipProvider class"""
1246 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1247 __repr__
= _swig_repr
1248 def __init__(self
, *args
, **kwargs
):
1249 """__init__(self, size_t currentTip) -> PyTipProvider"""
1250 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1251 self
._setCallbackInfo
(self
, PyTipProvider
)
1253 def _setCallbackInfo(*args
, **kwargs
):
1254 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1255 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1257 _misc_
.PyTipProvider_swigregister(PyTipProvider
)
1260 def ShowTip(*args
, **kwargs
):
1261 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1262 return _misc_
.ShowTip(*args
, **kwargs
)
1264 def CreateFileTipProvider(*args
, **kwargs
):
1265 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1266 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1267 #---------------------------------------------------------------------------
1269 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1270 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1271 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1272 class Timer(_core
.EvtHandler
):
1273 """Proxy of C++ Timer class"""
1274 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1275 __repr__
= _swig_repr
1276 def __init__(self
, *args
, **kwargs
):
1277 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1278 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1279 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1281 __swig_destroy__
= _misc_
.delete_Timer
1282 __del__
= lambda self
: None;
1283 def _setCallbackInfo(*args
, **kwargs
):
1284 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1285 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1287 def SetOwner(*args
, **kwargs
):
1288 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1289 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1291 def GetOwner(*args
, **kwargs
):
1292 """GetOwner(self) -> EvtHandler"""
1293 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1295 def Start(*args
, **kwargs
):
1296 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1297 return _misc_
.Timer_Start(*args
, **kwargs
)
1299 def Stop(*args
, **kwargs
):
1301 return _misc_
.Timer_Stop(*args
, **kwargs
)
1303 def Notify(*args
, **kwargs
):
1305 return _misc_
.Timer_Notify(*args
, **kwargs
)
1307 def IsRunning(*args
, **kwargs
):
1308 """IsRunning(self) -> bool"""
1309 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1311 def GetInterval(*args
, **kwargs
):
1312 """GetInterval(self) -> int"""
1313 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1315 def GetId(*args
, **kwargs
):
1316 """GetId(self) -> int"""
1317 return _misc_
.Timer_GetId(*args
, **kwargs
)
1319 def IsOneShot(*args
, **kwargs
):
1320 """IsOneShot(self) -> bool"""
1321 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1324 """NO-OP: Timers must be destroyed by normal reference counting"""
1327 Id
= property(GetId
,doc
="See `GetId`")
1328 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1329 Owner
= property(GetOwner
,SetOwner
,doc
="See `GetOwner` and `SetOwner`")
1330 _misc_
.Timer_swigregister(Timer
)
1332 # For backwards compatibility with 2.4
1333 class PyTimer(Timer
):
1334 def __init__(self
, notify
):
1335 Timer
.__init
__(self
)
1336 self
.notify
= notify
1343 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1346 class TimerEvent(_core
.Event
):
1347 """Proxy of C++ TimerEvent class"""
1348 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1349 __repr__
= _swig_repr
1350 def __init__(self
, *args
, **kwargs
):
1351 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1352 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1353 def GetInterval(*args
, **kwargs
):
1354 """GetInterval(self) -> int"""
1355 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1357 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1358 _misc_
.TimerEvent_swigregister(TimerEvent
)
1360 class TimerRunner(object):
1361 """Proxy of C++ TimerRunner class"""
1362 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1363 __repr__
= _swig_repr
1364 def __init__(self
, *args
):
1366 __init__(self, wxTimer timer) -> TimerRunner
1367 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1369 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1370 __swig_destroy__
= _misc_
.delete_TimerRunner
1371 __del__
= lambda self
: None;
1372 def Start(*args
, **kwargs
):
1373 """Start(self, int milli, bool oneShot=False)"""
1374 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1376 _misc_
.TimerRunner_swigregister(TimerRunner
)
1378 #---------------------------------------------------------------------------
1380 LOG_FatalError
= _misc_
.LOG_FatalError
1381 LOG_Error
= _misc_
.LOG_Error
1382 LOG_Warning
= _misc_
.LOG_Warning
1383 LOG_Message
= _misc_
.LOG_Message
1384 LOG_Status
= _misc_
.LOG_Status
1385 LOG_Info
= _misc_
.LOG_Info
1386 LOG_Debug
= _misc_
.LOG_Debug
1387 LOG_Trace
= _misc_
.LOG_Trace
1388 LOG_Progress
= _misc_
.LOG_Progress
1389 LOG_User
= _misc_
.LOG_User
1390 LOG_Max
= _misc_
.LOG_Max
1391 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1392 TRACE_Messages
= _misc_
.TRACE_Messages
1393 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1394 TRACE_RefCount
= _misc_
.TRACE_RefCount
1395 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1396 TraceMemAlloc
= _misc_
.TraceMemAlloc
1397 TraceMessages
= _misc_
.TraceMessages
1398 TraceResAlloc
= _misc_
.TraceResAlloc
1399 TraceRefCount
= _misc_
.TraceRefCount
1400 TraceOleCalls
= _misc_
.TraceOleCalls
1402 """Proxy of C++ Log class"""
1403 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1404 __repr__
= _swig_repr
1405 def __init__(self
, *args
, **kwargs
):
1406 """__init__(self) -> Log"""
1407 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1408 __swig_destroy__
= _misc_
.delete_Log
1409 __del__
= lambda self
: None;
1410 def IsEnabled(*args
, **kwargs
):
1411 """IsEnabled() -> bool"""
1412 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1414 IsEnabled
= staticmethod(IsEnabled
)
1415 def EnableLogging(*args
, **kwargs
):
1416 """EnableLogging(bool doIt=True) -> bool"""
1417 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1419 EnableLogging
= staticmethod(EnableLogging
)
1420 def OnLog(*args
, **kwargs
):
1421 """OnLog(LogLevel level, wxChar szString, time_t t)"""
1422 return _misc_
.Log_OnLog(*args
, **kwargs
)
1424 OnLog
= staticmethod(OnLog
)
1425 def Flush(*args
, **kwargs
):
1427 return _misc_
.Log_Flush(*args
, **kwargs
)
1429 def FlushActive(*args
, **kwargs
):
1431 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1433 FlushActive
= staticmethod(FlushActive
)
1434 def GetActiveTarget(*args
, **kwargs
):
1435 """GetActiveTarget() -> Log"""
1436 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1438 GetActiveTarget
= staticmethod(GetActiveTarget
)
1439 def SetActiveTarget(*args
, **kwargs
):
1440 """SetActiveTarget(Log pLogger) -> Log"""
1441 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1443 SetActiveTarget
= staticmethod(SetActiveTarget
)
1444 def Suspend(*args
, **kwargs
):
1446 return _misc_
.Log_Suspend(*args
, **kwargs
)
1448 Suspend
= staticmethod(Suspend
)
1449 def Resume(*args
, **kwargs
):
1451 return _misc_
.Log_Resume(*args
, **kwargs
)
1453 Resume
= staticmethod(Resume
)
1454 def SetVerbose(*args
, **kwargs
):
1455 """SetVerbose(bool bVerbose=True)"""
1456 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1458 SetVerbose
= staticmethod(SetVerbose
)
1459 def SetLogLevel(*args
, **kwargs
):
1460 """SetLogLevel(LogLevel logLevel)"""
1461 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1463 SetLogLevel
= staticmethod(SetLogLevel
)
1464 def DontCreateOnDemand(*args
, **kwargs
):
1465 """DontCreateOnDemand()"""
1466 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1468 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1469 def SetRepetitionCounting(*args
, **kwargs
):
1470 """SetRepetitionCounting(bool bRepetCounting=True)"""
1471 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1473 SetRepetitionCounting
= staticmethod(SetRepetitionCounting
)
1474 def GetRepetitionCounting(*args
, **kwargs
):
1475 """GetRepetitionCounting() -> bool"""
1476 return _misc_
.Log_GetRepetitionCounting(*args
, **kwargs
)
1478 GetRepetitionCounting
= staticmethod(GetRepetitionCounting
)
1479 def SetTraceMask(*args
, **kwargs
):
1480 """SetTraceMask(TraceMask ulMask)"""
1481 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1483 SetTraceMask
= staticmethod(SetTraceMask
)
1484 def AddTraceMask(*args
, **kwargs
):
1485 """AddTraceMask(String str)"""
1486 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1488 AddTraceMask
= staticmethod(AddTraceMask
)
1489 def RemoveTraceMask(*args
, **kwargs
):
1490 """RemoveTraceMask(String str)"""
1491 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1493 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1494 def ClearTraceMasks(*args
, **kwargs
):
1495 """ClearTraceMasks()"""
1496 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1498 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1499 def GetTraceMasks(*args
, **kwargs
):
1500 """GetTraceMasks() -> wxArrayString"""
1501 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1503 GetTraceMasks
= staticmethod(GetTraceMasks
)
1504 def SetTimestamp(*args
, **kwargs
):
1505 """SetTimestamp(wxChar ts)"""
1506 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1508 SetTimestamp
= staticmethod(SetTimestamp
)
1509 def GetVerbose(*args
, **kwargs
):
1510 """GetVerbose() -> bool"""
1511 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1513 GetVerbose
= staticmethod(GetVerbose
)
1514 def GetTraceMask(*args
, **kwargs
):
1515 """GetTraceMask() -> TraceMask"""
1516 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1518 GetTraceMask
= staticmethod(GetTraceMask
)
1519 def IsAllowedTraceMask(*args
, **kwargs
):
1520 """IsAllowedTraceMask(wxChar mask) -> bool"""
1521 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1523 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1524 def GetLogLevel(*args
, **kwargs
):
1525 """GetLogLevel() -> LogLevel"""
1526 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1528 GetLogLevel
= staticmethod(GetLogLevel
)
1529 def GetTimestamp(*args
, **kwargs
):
1530 """GetTimestamp() -> wxChar"""
1531 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1533 GetTimestamp
= staticmethod(GetTimestamp
)
1534 def TimeStamp(*args
, **kwargs
):
1535 """TimeStamp() -> String"""
1536 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1538 TimeStamp
= staticmethod(TimeStamp
)
1539 def Destroy(*args
, **kwargs
):
1541 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1545 _misc_
.Log_swigregister(Log
)
1547 def Log_IsEnabled(*args
):
1548 """Log_IsEnabled() -> bool"""
1549 return _misc_
.Log_IsEnabled(*args
)
1551 def Log_EnableLogging(*args
, **kwargs
):
1552 """Log_EnableLogging(bool doIt=True) -> bool"""
1553 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1555 def Log_OnLog(*args
, **kwargs
):
1556 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1557 return _misc_
.Log_OnLog(*args
, **kwargs
)
1559 def Log_FlushActive(*args
):
1560 """Log_FlushActive()"""
1561 return _misc_
.Log_FlushActive(*args
)
1563 def Log_GetActiveTarget(*args
):
1564 """Log_GetActiveTarget() -> Log"""
1565 return _misc_
.Log_GetActiveTarget(*args
)
1567 def Log_SetActiveTarget(*args
, **kwargs
):
1568 """Log_SetActiveTarget(Log pLogger) -> Log"""
1569 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1571 def Log_Suspend(*args
):
1573 return _misc_
.Log_Suspend(*args
)
1575 def Log_Resume(*args
):
1577 return _misc_
.Log_Resume(*args
)
1579 def Log_SetVerbose(*args
, **kwargs
):
1580 """Log_SetVerbose(bool bVerbose=True)"""
1581 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1583 def Log_SetLogLevel(*args
, **kwargs
):
1584 """Log_SetLogLevel(LogLevel logLevel)"""
1585 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1587 def Log_DontCreateOnDemand(*args
):
1588 """Log_DontCreateOnDemand()"""
1589 return _misc_
.Log_DontCreateOnDemand(*args
)
1591 def Log_SetRepetitionCounting(*args
, **kwargs
):
1592 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1593 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1595 def Log_GetRepetitionCounting(*args
):
1596 """Log_GetRepetitionCounting() -> bool"""
1597 return _misc_
.Log_GetRepetitionCounting(*args
)
1599 def Log_SetTraceMask(*args
, **kwargs
):
1600 """Log_SetTraceMask(TraceMask ulMask)"""
1601 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1603 def Log_AddTraceMask(*args
, **kwargs
):
1604 """Log_AddTraceMask(String str)"""
1605 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1607 def Log_RemoveTraceMask(*args
, **kwargs
):
1608 """Log_RemoveTraceMask(String str)"""
1609 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1611 def Log_ClearTraceMasks(*args
):
1612 """Log_ClearTraceMasks()"""
1613 return _misc_
.Log_ClearTraceMasks(*args
)
1615 def Log_GetTraceMasks(*args
):
1616 """Log_GetTraceMasks() -> wxArrayString"""
1617 return _misc_
.Log_GetTraceMasks(*args
)
1619 def Log_SetTimestamp(*args
, **kwargs
):
1620 """Log_SetTimestamp(wxChar ts)"""
1621 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1623 def Log_GetVerbose(*args
):
1624 """Log_GetVerbose() -> bool"""
1625 return _misc_
.Log_GetVerbose(*args
)
1627 def Log_GetTraceMask(*args
):
1628 """Log_GetTraceMask() -> TraceMask"""
1629 return _misc_
.Log_GetTraceMask(*args
)
1631 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1632 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1633 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1635 def Log_GetLogLevel(*args
):
1636 """Log_GetLogLevel() -> LogLevel"""
1637 return _misc_
.Log_GetLogLevel(*args
)
1639 def Log_GetTimestamp(*args
):
1640 """Log_GetTimestamp() -> wxChar"""
1641 return _misc_
.Log_GetTimestamp(*args
)
1643 def Log_TimeStamp(*args
):
1644 """Log_TimeStamp() -> String"""
1645 return _misc_
.Log_TimeStamp(*args
)
1647 class LogStderr(Log
):
1648 """Proxy of C++ LogStderr class"""
1649 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1650 __repr__
= _swig_repr
1651 def __init__(self
, *args
, **kwargs
):
1652 """__init__(self) -> LogStderr"""
1653 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1654 _misc_
.LogStderr_swigregister(LogStderr
)
1656 class LogTextCtrl(Log
):
1657 """Proxy of C++ LogTextCtrl class"""
1658 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1659 __repr__
= _swig_repr
1660 def __init__(self
, *args
, **kwargs
):
1661 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1662 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1663 _misc_
.LogTextCtrl_swigregister(LogTextCtrl
)
1666 """Proxy of C++ LogGui class"""
1667 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1668 __repr__
= _swig_repr
1669 def __init__(self
, *args
, **kwargs
):
1670 """__init__(self) -> LogGui"""
1671 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1672 _misc_
.LogGui_swigregister(LogGui
)
1674 class LogWindow(Log
):
1675 """Proxy of C++ LogWindow class"""
1676 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1677 __repr__
= _swig_repr
1678 def __init__(self
, *args
, **kwargs
):
1679 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1680 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1681 def Show(*args
, **kwargs
):
1682 """Show(self, bool bShow=True)"""
1683 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1685 def GetFrame(*args
, **kwargs
):
1686 """GetFrame(self) -> wxFrame"""
1687 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1689 def GetOldLog(*args
, **kwargs
):
1690 """GetOldLog(self) -> Log"""
1691 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1693 def IsPassingMessages(*args
, **kwargs
):
1694 """IsPassingMessages(self) -> bool"""
1695 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1697 def PassMessages(*args
, **kwargs
):
1698 """PassMessages(self, bool bDoPass)"""
1699 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1701 Frame
= property(GetFrame
,doc
="See `GetFrame`")
1702 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1703 _misc_
.LogWindow_swigregister(LogWindow
)
1705 class LogChain(Log
):
1706 """Proxy of C++ LogChain class"""
1707 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1708 __repr__
= _swig_repr
1709 def __init__(self
, *args
, **kwargs
):
1710 """__init__(self, Log logger) -> LogChain"""
1711 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1712 def SetLog(*args
, **kwargs
):
1713 """SetLog(self, Log logger)"""
1714 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1716 def PassMessages(*args
, **kwargs
):
1717 """PassMessages(self, bool bDoPass)"""
1718 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1720 def IsPassingMessages(*args
, **kwargs
):
1721 """IsPassingMessages(self) -> bool"""
1722 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1724 def GetOldLog(*args
, **kwargs
):
1725 """GetOldLog(self) -> Log"""
1726 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1728 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1729 _misc_
.LogChain_swigregister(LogChain
)
1731 class LogBuffer(Log
):
1732 """Proxy of C++ LogBuffer class"""
1733 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1734 __repr__
= _swig_repr
1735 def __init__(self
, *args
, **kwargs
):
1736 """__init__(self) -> LogBuffer"""
1737 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1738 def GetBuffer(*args
, **kwargs
):
1739 """GetBuffer(self) -> String"""
1740 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1742 Buffer
= property(GetBuffer
,doc
="See `GetBuffer`")
1743 _misc_
.LogBuffer_swigregister(LogBuffer
)
1746 def SysErrorCode(*args
):
1747 """SysErrorCode() -> unsigned long"""
1748 return _misc_
.SysErrorCode(*args
)
1750 def SysErrorMsg(*args
, **kwargs
):
1751 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1752 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1754 def LogFatalError(*args
, **kwargs
):
1755 """LogFatalError(String msg)"""
1756 return _misc_
.LogFatalError(*args
, **kwargs
)
1758 def LogError(*args
, **kwargs
):
1759 """LogError(String msg)"""
1760 return _misc_
.LogError(*args
, **kwargs
)
1762 def LogWarning(*args
, **kwargs
):
1763 """LogWarning(String msg)"""
1764 return _misc_
.LogWarning(*args
, **kwargs
)
1766 def LogMessage(*args
, **kwargs
):
1767 """LogMessage(String msg)"""
1768 return _misc_
.LogMessage(*args
, **kwargs
)
1770 def LogInfo(*args
, **kwargs
):
1771 """LogInfo(String msg)"""
1772 return _misc_
.LogInfo(*args
, **kwargs
)
1774 def LogDebug(*args
, **kwargs
):
1775 """LogDebug(String msg)"""
1776 return _misc_
.LogDebug(*args
, **kwargs
)
1778 def LogVerbose(*args
, **kwargs
):
1779 """LogVerbose(String msg)"""
1780 return _misc_
.LogVerbose(*args
, **kwargs
)
1782 def LogStatus(*args
, **kwargs
):
1783 """LogStatus(String msg)"""
1784 return _misc_
.LogStatus(*args
, **kwargs
)
1786 def LogStatusFrame(*args
, **kwargs
):
1787 """LogStatusFrame(wxFrame pFrame, String msg)"""
1788 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1790 def LogSysError(*args
, **kwargs
):
1791 """LogSysError(String msg)"""
1792 return _misc_
.LogSysError(*args
, **kwargs
)
1794 def LogGeneric(*args
, **kwargs
):
1795 """LogGeneric(unsigned long level, String msg)"""
1796 return _misc_
.LogGeneric(*args
, **kwargs
)
1798 def SafeShowMessage(*args
, **kwargs
):
1799 """SafeShowMessage(String title, String text)"""
1800 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1801 class LogNull(object):
1802 """Proxy of C++ LogNull class"""
1803 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1804 __repr__
= _swig_repr
1805 def __init__(self
, *args
, **kwargs
):
1806 """__init__(self) -> LogNull"""
1807 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1808 __swig_destroy__
= _misc_
.delete_LogNull
1809 __del__
= lambda self
: None;
1810 _misc_
.LogNull_swigregister(LogNull
)
1812 def LogTrace(*args
):
1814 LogTrace(unsigned long mask, String msg)
1815 LogTrace(String mask, String msg)
1817 return _misc_
.LogTrace(*args
)
1820 """Proxy of C++ PyLog class"""
1821 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1822 __repr__
= _swig_repr
1823 def __init__(self
, *args
, **kwargs
):
1824 """__init__(self) -> PyLog"""
1825 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1826 self
._setCallbackInfo
(self
, PyLog
)
1828 def _setCallbackInfo(*args
, **kwargs
):
1829 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1830 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1832 _misc_
.PyLog_swigregister(PyLog
)
1834 #---------------------------------------------------------------------------
1836 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1837 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1838 KILL_OK
= _misc_
.KILL_OK
1839 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1840 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1841 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1842 KILL_ERROR
= _misc_
.KILL_ERROR
1843 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1844 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1845 SIGNONE
= _misc_
.SIGNONE
1846 SIGHUP
= _misc_
.SIGHUP
1847 SIGINT
= _misc_
.SIGINT
1848 SIGQUIT
= _misc_
.SIGQUIT
1849 SIGILL
= _misc_
.SIGILL
1850 SIGTRAP
= _misc_
.SIGTRAP
1851 SIGABRT
= _misc_
.SIGABRT
1852 SIGIOT
= _misc_
.SIGIOT
1853 SIGEMT
= _misc_
.SIGEMT
1854 SIGFPE
= _misc_
.SIGFPE
1855 SIGKILL
= _misc_
.SIGKILL
1856 SIGBUS
= _misc_
.SIGBUS
1857 SIGSEGV
= _misc_
.SIGSEGV
1858 SIGSYS
= _misc_
.SIGSYS
1859 SIGPIPE
= _misc_
.SIGPIPE
1860 SIGALRM
= _misc_
.SIGALRM
1861 SIGTERM
= _misc_
.SIGTERM
1862 class Process(_core
.EvtHandler
):
1863 """Proxy of C++ Process class"""
1864 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1865 __repr__
= _swig_repr
1866 def Kill(*args
, **kwargs
):
1867 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1868 return _misc_
.Process_Kill(*args
, **kwargs
)
1870 Kill
= staticmethod(Kill
)
1871 def Exists(*args
, **kwargs
):
1872 """Exists(int pid) -> bool"""
1873 return _misc_
.Process_Exists(*args
, **kwargs
)
1875 Exists
= staticmethod(Exists
)
1876 def Open(*args
, **kwargs
):
1877 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1878 return _misc_
.Process_Open(*args
, **kwargs
)
1880 Open
= staticmethod(Open
)
1881 def __init__(self
, *args
, **kwargs
):
1882 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1883 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1884 self
._setCallbackInfo
(self
, Process
)
1886 def _setCallbackInfo(*args
, **kwargs
):
1887 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1888 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1890 def OnTerminate(*args
, **kwargs
):
1891 """OnTerminate(self, int pid, int status)"""
1892 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1894 def base_OnTerminate(*args
, **kw
):
1895 return Process
.OnTerminate(*args
, **kw
)
1896 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1897 "Please use Process.OnTerminate instead.")
1899 def Redirect(*args
, **kwargs
):
1900 """Redirect(self)"""
1901 return _misc_
.Process_Redirect(*args
, **kwargs
)
1903 def IsRedirected(*args
, **kwargs
):
1904 """IsRedirected(self) -> bool"""
1905 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1907 def Detach(*args
, **kwargs
):
1909 return _misc_
.Process_Detach(*args
, **kwargs
)
1911 def GetInputStream(*args
, **kwargs
):
1912 """GetInputStream(self) -> InputStream"""
1913 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1915 def GetErrorStream(*args
, **kwargs
):
1916 """GetErrorStream(self) -> InputStream"""
1917 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1919 def GetOutputStream(*args
, **kwargs
):
1920 """GetOutputStream(self) -> OutputStream"""
1921 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1923 def CloseOutput(*args
, **kwargs
):
1924 """CloseOutput(self)"""
1925 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1927 def IsInputOpened(*args
, **kwargs
):
1928 """IsInputOpened(self) -> bool"""
1929 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1931 def IsInputAvailable(*args
, **kwargs
):
1932 """IsInputAvailable(self) -> bool"""
1933 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1935 def IsErrorAvailable(*args
, **kwargs
):
1936 """IsErrorAvailable(self) -> bool"""
1937 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1939 ErrorStream
= property(GetErrorStream
,doc
="See `GetErrorStream`")
1940 InputStream
= property(GetInputStream
,doc
="See `GetInputStream`")
1941 OutputStream
= property(GetOutputStream
,doc
="See `GetOutputStream`")
1942 InputOpened
= property(IsInputOpened
)
1943 InputAvailable
= property(IsInputAvailable
)
1944 ErrorAvailable
= property(IsErrorAvailable
)
1945 _misc_
.Process_swigregister(Process
)
1947 def Process_Kill(*args
, **kwargs
):
1948 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1949 return _misc_
.Process_Kill(*args
, **kwargs
)
1951 def Process_Exists(*args
, **kwargs
):
1952 """Process_Exists(int pid) -> bool"""
1953 return _misc_
.Process_Exists(*args
, **kwargs
)
1955 def Process_Open(*args
, **kwargs
):
1956 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1957 return _misc_
.Process_Open(*args
, **kwargs
)
1959 class ProcessEvent(_core
.Event
):
1960 """Proxy of C++ ProcessEvent class"""
1961 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1962 __repr__
= _swig_repr
1963 def __init__(self
, *args
, **kwargs
):
1964 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1965 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1966 def GetPid(*args
, **kwargs
):
1967 """GetPid(self) -> int"""
1968 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1970 def GetExitCode(*args
, **kwargs
):
1971 """GetExitCode(self) -> int"""
1972 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1974 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1975 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1976 ExitCode
= property(GetExitCode
,doc
="See `GetExitCode`")
1977 Pid
= property(GetPid
,doc
="See `GetPid`")
1978 _misc_
.ProcessEvent_swigregister(ProcessEvent
)
1980 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1981 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1983 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1984 EXEC_SYNC
= _misc_
.EXEC_SYNC
1985 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1986 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1987 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1989 def Execute(*args
, **kwargs
):
1990 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1991 return _misc_
.Execute(*args
, **kwargs
)
1993 def Kill(*args
, **kwargs
):
1994 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1995 return _misc_
.Kill(*args
, **kwargs
)
1996 #---------------------------------------------------------------------------
1998 JOYSTICK1
= _misc_
.JOYSTICK1
1999 JOYSTICK2
= _misc_
.JOYSTICK2
2000 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
2001 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
2002 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
2003 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
2004 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
2005 class Joystick(object):
2006 """Proxy of C++ Joystick class"""
2007 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2008 __repr__
= _swig_repr
2009 def __init__(self
, *args
, **kwargs
):
2010 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
2011 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
2012 __swig_destroy__
= _misc_
.delete_Joystick
2013 __del__
= lambda self
: None;
2014 def GetPosition(*args
, **kwargs
):
2015 """GetPosition(self) -> Point"""
2016 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
2018 def GetZPosition(*args
, **kwargs
):
2019 """GetZPosition(self) -> int"""
2020 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
2022 def GetButtonState(*args
, **kwargs
):
2023 """GetButtonState(self) -> int"""
2024 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
2026 def GetPOVPosition(*args
, **kwargs
):
2027 """GetPOVPosition(self) -> int"""
2028 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
2030 def GetPOVCTSPosition(*args
, **kwargs
):
2031 """GetPOVCTSPosition(self) -> int"""
2032 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
2034 def GetRudderPosition(*args
, **kwargs
):
2035 """GetRudderPosition(self) -> int"""
2036 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
2038 def GetUPosition(*args
, **kwargs
):
2039 """GetUPosition(self) -> int"""
2040 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
2042 def GetVPosition(*args
, **kwargs
):
2043 """GetVPosition(self) -> int"""
2044 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
2046 def GetMovementThreshold(*args
, **kwargs
):
2047 """GetMovementThreshold(self) -> int"""
2048 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
2050 def SetMovementThreshold(*args
, **kwargs
):
2051 """SetMovementThreshold(self, int threshold)"""
2052 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
2054 def IsOk(*args
, **kwargs
):
2055 """IsOk(self) -> bool"""
2056 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
2058 def GetNumberJoysticks(*args
, **kwargs
):
2059 """GetNumberJoysticks(self) -> int"""
2060 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
2062 def GetManufacturerId(*args
, **kwargs
):
2063 """GetManufacturerId(self) -> int"""
2064 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
2066 def GetProductId(*args
, **kwargs
):
2067 """GetProductId(self) -> int"""
2068 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
2070 def GetProductName(*args
, **kwargs
):
2071 """GetProductName(self) -> String"""
2072 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
2074 def GetXMin(*args
, **kwargs
):
2075 """GetXMin(self) -> int"""
2076 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
2078 def GetYMin(*args
, **kwargs
):
2079 """GetYMin(self) -> int"""
2080 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
2082 def GetZMin(*args
, **kwargs
):
2083 """GetZMin(self) -> int"""
2084 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
2086 def GetXMax(*args
, **kwargs
):
2087 """GetXMax(self) -> int"""
2088 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
2090 def GetYMax(*args
, **kwargs
):
2091 """GetYMax(self) -> int"""
2092 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
2094 def GetZMax(*args
, **kwargs
):
2095 """GetZMax(self) -> int"""
2096 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
2098 def GetNumberButtons(*args
, **kwargs
):
2099 """GetNumberButtons(self) -> int"""
2100 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
2102 def GetNumberAxes(*args
, **kwargs
):
2103 """GetNumberAxes(self) -> int"""
2104 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
2106 def GetMaxButtons(*args
, **kwargs
):
2107 """GetMaxButtons(self) -> int"""
2108 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
2110 def GetMaxAxes(*args
, **kwargs
):
2111 """GetMaxAxes(self) -> int"""
2112 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
2114 def GetPollingMin(*args
, **kwargs
):
2115 """GetPollingMin(self) -> int"""
2116 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
2118 def GetPollingMax(*args
, **kwargs
):
2119 """GetPollingMax(self) -> int"""
2120 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
2122 def GetRudderMin(*args
, **kwargs
):
2123 """GetRudderMin(self) -> int"""
2124 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
2126 def GetRudderMax(*args
, **kwargs
):
2127 """GetRudderMax(self) -> int"""
2128 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
2130 def GetUMin(*args
, **kwargs
):
2131 """GetUMin(self) -> int"""
2132 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
2134 def GetUMax(*args
, **kwargs
):
2135 """GetUMax(self) -> int"""
2136 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
2138 def GetVMin(*args
, **kwargs
):
2139 """GetVMin(self) -> int"""
2140 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
2142 def GetVMax(*args
, **kwargs
):
2143 """GetVMax(self) -> int"""
2144 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
2146 def HasRudder(*args
, **kwargs
):
2147 """HasRudder(self) -> bool"""
2148 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
2150 def HasZ(*args
, **kwargs
):
2151 """HasZ(self) -> bool"""
2152 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
2154 def HasU(*args
, **kwargs
):
2155 """HasU(self) -> bool"""
2156 return _misc_
.Joystick_HasU(*args
, **kwargs
)
2158 def HasV(*args
, **kwargs
):
2159 """HasV(self) -> bool"""
2160 return _misc_
.Joystick_HasV(*args
, **kwargs
)
2162 def HasPOV(*args
, **kwargs
):
2163 """HasPOV(self) -> bool"""
2164 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
2166 def HasPOV4Dir(*args
, **kwargs
):
2167 """HasPOV4Dir(self) -> bool"""
2168 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
2170 def HasPOVCTS(*args
, **kwargs
):
2171 """HasPOVCTS(self) -> bool"""
2172 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
2174 def SetCapture(*args
, **kwargs
):
2175 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2176 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2178 def ReleaseCapture(*args
, **kwargs
):
2179 """ReleaseCapture(self) -> bool"""
2180 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2182 def __nonzero__(self
): return self
.IsOk()
2183 ButtonState
= property(GetButtonState
,doc
="See `GetButtonState`")
2184 ManufacturerId
= property(GetManufacturerId
,doc
="See `GetManufacturerId`")
2185 MaxAxes
= property(GetMaxAxes
,doc
="See `GetMaxAxes`")
2186 MaxButtons
= property(GetMaxButtons
,doc
="See `GetMaxButtons`")
2187 MovementThreshold
= property(GetMovementThreshold
,SetMovementThreshold
,doc
="See `GetMovementThreshold` and `SetMovementThreshold`")
2188 NumberAxes
= property(GetNumberAxes
,doc
="See `GetNumberAxes`")
2189 NumberButtons
= property(GetNumberButtons
,doc
="See `GetNumberButtons`")
2190 NumberJoysticks
= property(GetNumberJoysticks
,doc
="See `GetNumberJoysticks`")
2191 POVCTSPosition
= property(GetPOVCTSPosition
,doc
="See `GetPOVCTSPosition`")
2192 POVPosition
= property(GetPOVPosition
,doc
="See `GetPOVPosition`")
2193 PollingMax
= property(GetPollingMax
,doc
="See `GetPollingMax`")
2194 PollingMin
= property(GetPollingMin
,doc
="See `GetPollingMin`")
2195 Position
= property(GetPosition
,doc
="See `GetPosition`")
2196 ProductId
= property(GetProductId
,doc
="See `GetProductId`")
2197 ProductName
= property(GetProductName
,doc
="See `GetProductName`")
2198 RudderMax
= property(GetRudderMax
,doc
="See `GetRudderMax`")
2199 RudderMin
= property(GetRudderMin
,doc
="See `GetRudderMin`")
2200 RudderPosition
= property(GetRudderPosition
,doc
="See `GetRudderPosition`")
2201 UMax
= property(GetUMax
,doc
="See `GetUMax`")
2202 UMin
= property(GetUMin
,doc
="See `GetUMin`")
2203 UPosition
= property(GetUPosition
,doc
="See `GetUPosition`")
2204 VMax
= property(GetVMax
,doc
="See `GetVMax`")
2205 VMin
= property(GetVMin
,doc
="See `GetVMin`")
2206 VPosition
= property(GetVPosition
,doc
="See `GetVPosition`")
2207 XMax
= property(GetXMax
,doc
="See `GetXMax`")
2208 XMin
= property(GetXMin
,doc
="See `GetXMin`")
2209 YMax
= property(GetYMax
,doc
="See `GetYMax`")
2210 YMin
= property(GetYMin
,doc
="See `GetYMin`")
2211 ZMax
= property(GetZMax
,doc
="See `GetZMax`")
2212 ZMin
= property(GetZMin
,doc
="See `GetZMin`")
2213 ZPosition
= property(GetZPosition
,doc
="See `GetZPosition`")
2214 _misc_
.Joystick_swigregister(Joystick
)
2216 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2217 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2218 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2219 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2220 class JoystickEvent(_core
.Event
):
2221 """Proxy of C++ JoystickEvent class"""
2222 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2223 __repr__
= _swig_repr
2224 def __init__(self
, *args
, **kwargs
):
2226 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2227 int change=0) -> JoystickEvent
2229 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
2230 def GetPosition(*args
, **kwargs
):
2231 """GetPosition(self) -> Point"""
2232 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2234 def GetZPosition(*args
, **kwargs
):
2235 """GetZPosition(self) -> int"""
2236 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2238 def GetButtonState(*args
, **kwargs
):
2239 """GetButtonState(self) -> int"""
2240 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2242 def GetButtonChange(*args
, **kwargs
):
2243 """GetButtonChange(self) -> int"""
2244 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2246 def GetJoystick(*args
, **kwargs
):
2247 """GetJoystick(self) -> int"""
2248 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2250 def SetJoystick(*args
, **kwargs
):
2251 """SetJoystick(self, int stick)"""
2252 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2254 def SetButtonState(*args
, **kwargs
):
2255 """SetButtonState(self, int state)"""
2256 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2258 def SetButtonChange(*args
, **kwargs
):
2259 """SetButtonChange(self, int change)"""
2260 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2262 def SetPosition(*args
, **kwargs
):
2263 """SetPosition(self, Point pos)"""
2264 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2266 def SetZPosition(*args
, **kwargs
):
2267 """SetZPosition(self, int zPos)"""
2268 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2270 def IsButton(*args
, **kwargs
):
2271 """IsButton(self) -> bool"""
2272 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2274 def IsMove(*args
, **kwargs
):
2275 """IsMove(self) -> bool"""
2276 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2278 def IsZMove(*args
, **kwargs
):
2279 """IsZMove(self) -> bool"""
2280 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2282 def ButtonDown(*args
, **kwargs
):
2283 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2284 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2286 def ButtonUp(*args
, **kwargs
):
2287 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2288 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2290 def ButtonIsDown(*args
, **kwargs
):
2291 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2292 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2294 m_pos
= property(GetPosition
, SetPosition
)
2295 m_zPosition
= property(GetZPosition
, SetZPosition
)
2296 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2297 m_buttonState
= property(GetButtonState
, SetButtonState
)
2298 m_joyStick
= property(GetJoystick
, SetJoystick
)
2300 ButtonChange
= property(GetButtonChange
,SetButtonChange
,doc
="See `GetButtonChange` and `SetButtonChange`")
2301 ButtonState
= property(GetButtonState
,SetButtonState
,doc
="See `GetButtonState` and `SetButtonState`")
2302 Joystick
= property(GetJoystick
,SetJoystick
,doc
="See `GetJoystick` and `SetJoystick`")
2303 Position
= property(GetPosition
,SetPosition
,doc
="See `GetPosition` and `SetPosition`")
2304 ZPosition
= property(GetZPosition
,SetZPosition
,doc
="See `GetZPosition` and `SetZPosition`")
2305 _misc_
.JoystickEvent_swigregister(JoystickEvent
)
2307 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2308 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2309 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2310 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2312 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2313 wxEVT_JOY_BUTTON_UP
,
2319 #---------------------------------------------------------------------------
2321 SOUND_SYNC
= _misc_
.SOUND_SYNC
2322 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2323 SOUND_LOOP
= _misc_
.SOUND_LOOP
2324 class Sound(object):
2325 """Proxy of C++ Sound class"""
2326 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2327 __repr__
= _swig_repr
2328 def __init__(self
, *args
, **kwargs
):
2329 """__init__(self, String fileName=EmptyString) -> Sound"""
2330 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2331 __swig_destroy__
= _misc_
.delete_Sound
2332 __del__
= lambda self
: None;
2333 def Create(*args
, **kwargs
):
2334 """Create(self, String fileName) -> bool"""
2335 return _misc_
.Sound_Create(*args
, **kwargs
)
2337 def CreateFromData(*args
, **kwargs
):
2338 """CreateFromData(self, PyObject data) -> bool"""
2339 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2341 def IsOk(*args
, **kwargs
):
2342 """IsOk(self) -> bool"""
2343 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2345 def Play(*args
, **kwargs
):
2346 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2347 return _misc_
.Sound_Play(*args
, **kwargs
)
2349 def PlaySound(*args
, **kwargs
):
2350 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2351 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2353 PlaySound
= staticmethod(PlaySound
)
2354 def Stop(*args
, **kwargs
):
2356 return _misc_
.Sound_Stop(*args
, **kwargs
)
2358 Stop
= staticmethod(Stop
)
2359 def __nonzero__(self
): return self
.IsOk()
2360 _misc_
.Sound_swigregister(Sound
)
2362 def SoundFromData(*args
, **kwargs
):
2363 """SoundFromData(PyObject data) -> Sound"""
2364 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2367 def Sound_PlaySound(*args
, **kwargs
):
2368 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2369 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2371 def Sound_Stop(*args
):
2373 return _misc_
.Sound_Stop(*args
)
2375 #---------------------------------------------------------------------------
2377 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2378 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2379 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2380 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2381 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2382 class FileTypeInfo(object):
2383 """Proxy of C++ FileTypeInfo class"""
2384 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2385 __repr__
= _swig_repr
2386 def __init__(self
, *args
, **kwargs
):
2387 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2388 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2389 def IsValid(*args
, **kwargs
):
2390 """IsValid(self) -> bool"""
2391 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2393 def SetIcon(*args
, **kwargs
):
2394 """SetIcon(self, String iconFile, int iconIndex=0)"""
2395 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2397 def SetShortDesc(*args
, **kwargs
):
2398 """SetShortDesc(self, String shortDesc)"""
2399 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2401 def GetMimeType(*args
, **kwargs
):
2402 """GetMimeType(self) -> String"""
2403 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2405 def GetOpenCommand(*args
, **kwargs
):
2406 """GetOpenCommand(self) -> String"""
2407 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2409 def GetPrintCommand(*args
, **kwargs
):
2410 """GetPrintCommand(self) -> String"""
2411 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2413 def GetShortDesc(*args
, **kwargs
):
2414 """GetShortDesc(self) -> String"""
2415 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2417 def GetDescription(*args
, **kwargs
):
2418 """GetDescription(self) -> String"""
2419 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2421 def GetExtensions(*args
, **kwargs
):
2422 """GetExtensions(self) -> wxArrayString"""
2423 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2425 def GetExtensionsCount(*args
, **kwargs
):
2426 """GetExtensionsCount(self) -> size_t"""
2427 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2429 def GetIconFile(*args
, **kwargs
):
2430 """GetIconFile(self) -> String"""
2431 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2433 def GetIconIndex(*args
, **kwargs
):
2434 """GetIconIndex(self) -> int"""
2435 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2437 Description
= property(GetDescription
,doc
="See `GetDescription`")
2438 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2439 ExtensionsCount
= property(GetExtensionsCount
,doc
="See `GetExtensionsCount`")
2440 IconFile
= property(GetIconFile
,doc
="See `GetIconFile`")
2441 IconIndex
= property(GetIconIndex
,doc
="See `GetIconIndex`")
2442 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2443 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2444 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2445 ShortDesc
= property(GetShortDesc
,SetShortDesc
,doc
="See `GetShortDesc` and `SetShortDesc`")
2446 _misc_
.FileTypeInfo_swigregister(FileTypeInfo
)
2448 def FileTypeInfoSequence(*args
, **kwargs
):
2449 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2450 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2453 def NullFileTypeInfo(*args
, **kwargs
):
2454 """NullFileTypeInfo() -> FileTypeInfo"""
2455 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2458 class FileType(object):
2459 """Proxy of C++ FileType class"""
2460 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2461 __repr__
= _swig_repr
2462 def __init__(self
, *args
, **kwargs
):
2463 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2464 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2465 __swig_destroy__
= _misc_
.delete_FileType
2466 __del__
= lambda self
: None;
2467 def GetMimeType(*args
, **kwargs
):
2468 """GetMimeType(self) -> PyObject"""
2469 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2471 def GetMimeTypes(*args
, **kwargs
):
2472 """GetMimeTypes(self) -> PyObject"""
2473 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2475 def GetExtensions(*args
, **kwargs
):
2476 """GetExtensions(self) -> PyObject"""
2477 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2479 def GetIcon(*args
, **kwargs
):
2480 """GetIcon(self) -> Icon"""
2481 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2483 def GetIconInfo(*args
, **kwargs
):
2484 """GetIconInfo(self) -> PyObject"""
2485 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2487 def GetDescription(*args
, **kwargs
):
2488 """GetDescription(self) -> PyObject"""
2489 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2491 def GetOpenCommand(*args
, **kwargs
):
2492 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2493 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2495 def GetPrintCommand(*args
, **kwargs
):
2496 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2497 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2499 def GetAllCommands(*args
, **kwargs
):
2500 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2501 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2503 def SetCommand(*args
, **kwargs
):
2504 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2505 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2507 def SetDefaultIcon(*args
, **kwargs
):
2508 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2509 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2511 def Unassociate(*args
, **kwargs
):
2512 """Unassociate(self) -> bool"""
2513 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2515 def ExpandCommand(*args
, **kwargs
):
2516 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2517 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2519 ExpandCommand
= staticmethod(ExpandCommand
)
2520 AllCommands
= property(GetAllCommands
,doc
="See `GetAllCommands`")
2521 Description
= property(GetDescription
,doc
="See `GetDescription`")
2522 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2523 Icon
= property(GetIcon
,doc
="See `GetIcon`")
2524 IconInfo
= property(GetIconInfo
,doc
="See `GetIconInfo`")
2525 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2526 MimeTypes
= property(GetMimeTypes
,doc
="See `GetMimeTypes`")
2527 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2528 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2529 _misc_
.FileType_swigregister(FileType
)
2531 def FileType_ExpandCommand(*args
, **kwargs
):
2532 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2533 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2535 class MimeTypesManager(object):
2536 """Proxy of C++ MimeTypesManager class"""
2537 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2538 __repr__
= _swig_repr
2539 def IsOfType(*args
, **kwargs
):
2540 """IsOfType(String mimeType, String wildcard) -> bool"""
2541 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2543 IsOfType
= staticmethod(IsOfType
)
2544 def __init__(self
, *args
, **kwargs
):
2545 """__init__(self) -> MimeTypesManager"""
2546 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2547 def Initialize(*args
, **kwargs
):
2548 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2549 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2551 def ClearData(*args
, **kwargs
):
2552 """ClearData(self)"""
2553 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2555 def GetFileTypeFromExtension(*args
, **kwargs
):
2556 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2557 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2559 def GetFileTypeFromMimeType(*args
, **kwargs
):
2560 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2561 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2563 def ReadMailcap(*args
, **kwargs
):
2564 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2565 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2567 def ReadMimeTypes(*args
, **kwargs
):
2568 """ReadMimeTypes(self, String filename) -> bool"""
2569 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2571 def EnumAllFileTypes(*args
, **kwargs
):
2572 """EnumAllFileTypes(self) -> PyObject"""
2573 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2575 def AddFallback(*args
, **kwargs
):
2576 """AddFallback(self, FileTypeInfo ft)"""
2577 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2579 def Associate(*args
, **kwargs
):
2580 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2581 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2583 def Unassociate(*args
, **kwargs
):
2584 """Unassociate(self, FileType ft) -> bool"""
2585 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2587 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2588 __del__
= lambda self
: None;
2589 _misc_
.MimeTypesManager_swigregister(MimeTypesManager
)
2590 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2592 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2593 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2594 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2596 #---------------------------------------------------------------------------
2598 class ArtProvider(object):
2600 The wx.ArtProvider class is used to customize the look of wxWidgets
2601 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2602 in the standard file dialog), it does not use hard-coded resource but
2603 asks wx.ArtProvider for it instead. This way the users can plug in
2604 their own wx.ArtProvider class and easily replace standard art with
2605 his/her own version. It is easy thing to do: all that is needed is
2606 to derive a class from wx.ArtProvider, override it's CreateBitmap
2607 method and register the provider with wx.ArtProvider.PushProvider::
2609 class MyArtProvider(wx.ArtProvider):
2611 wx.ArtProvider.__init__(self)
2613 def CreateBitmap(self, artid, client, size):
2618 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2619 __repr__
= _swig_repr
2620 def __init__(self
, *args
, **kwargs
):
2622 __init__(self) -> ArtProvider
2624 The wx.ArtProvider class is used to customize the look of wxWidgets
2625 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2626 in the standard file dialog), it does not use hard-coded resource but
2627 asks wx.ArtProvider for it instead. This way the users can plug in
2628 their own wx.ArtProvider class and easily replace standard art with
2629 his/her own version. It is easy thing to do: all that is needed is
2630 to derive a class from wx.ArtProvider, override it's CreateBitmap
2631 method and register the provider with wx.ArtProvider.PushProvider::
2633 class MyArtProvider(wx.ArtProvider):
2635 wx.ArtProvider.__init__(self)
2637 def CreateBitmap(self, artid, client, size):
2642 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2643 self
._setCallbackInfo
(self
, ArtProvider
)
2645 __swig_destroy__
= _misc_
.delete_ArtProvider
2646 __del__
= lambda self
: None;
2647 def _setCallbackInfo(*args
, **kwargs
):
2648 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2649 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2651 def PushProvider(*args
, **kwargs
):
2653 PushProvider(ArtProvider provider)
2655 Add new provider to the top of providers stack.
2657 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2659 PushProvider
= staticmethod(PushProvider
)
2660 def InsertProvider(*args
, **kwargs
):
2662 InsertProvider(ArtProvider provider)
2664 Add new provider to the bottom of providers stack.
2666 return _misc_
.ArtProvider_InsertProvider(*args
, **kwargs
)
2668 InsertProvider
= staticmethod(InsertProvider
)
2669 def PopProvider(*args
, **kwargs
):
2671 PopProvider() -> bool
2673 Remove latest added provider and delete it.
2675 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2677 PopProvider
= staticmethod(PopProvider
)
2678 def RemoveProvider(*args
, **kwargs
):
2680 RemoveProvider(ArtProvider provider) -> bool
2682 Remove provider. The provider must have been added previously! The
2683 provider is _not_ deleted.
2685 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2689 RemoveProvider
= staticmethod(RemoveProvider
)
2690 def GetBitmap(*args
, **kwargs
):
2692 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2694 Query the providers for bitmap with given ID and return it. Return
2695 wx.NullBitmap if no provider provides it.
2697 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2699 GetBitmap
= staticmethod(GetBitmap
)
2700 def GetIcon(*args
, **kwargs
):
2702 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2704 Query the providers for icon with given ID and return it. Return
2705 wx.NullIcon if no provider provides it.
2707 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2709 GetIcon
= staticmethod(GetIcon
)
2710 def GetSizeHint(*args
, **kwargs
):
2712 GetSizeHint(String client, bool platform_dependent=False) -> Size
2714 Get the size hint of an icon from a specific Art Client, queries the
2715 topmost provider if platform_dependent = false
2717 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2719 GetSizeHint
= staticmethod(GetSizeHint
)
2720 def Destroy(*args
, **kwargs
):
2722 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2726 _misc_
.ArtProvider_swigregister(ArtProvider
)
2727 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2728 ART_MENU
= cvar
.ART_MENU
2729 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2730 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2731 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2732 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2733 ART_BUTTON
= cvar
.ART_BUTTON
2734 ART_OTHER
= cvar
.ART_OTHER
2735 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2736 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2737 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2738 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2739 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2740 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2741 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2742 ART_GO_BACK
= cvar
.ART_GO_BACK
2743 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2744 ART_GO_UP
= cvar
.ART_GO_UP
2745 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2746 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2747 ART_GO_HOME
= cvar
.ART_GO_HOME
2748 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2749 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2750 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2751 ART_PRINT
= cvar
.ART_PRINT
2752 ART_HELP
= cvar
.ART_HELP
2753 ART_TIP
= cvar
.ART_TIP
2754 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2755 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2756 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2757 ART_HARDDISK
= cvar
.ART_HARDDISK
2758 ART_FLOPPY
= cvar
.ART_FLOPPY
2759 ART_CDROM
= cvar
.ART_CDROM
2760 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2761 ART_FOLDER
= cvar
.ART_FOLDER
2762 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2763 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2764 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2765 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2766 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2767 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2768 ART_ERROR
= cvar
.ART_ERROR
2769 ART_QUESTION
= cvar
.ART_QUESTION
2770 ART_WARNING
= cvar
.ART_WARNING
2771 ART_INFORMATION
= cvar
.ART_INFORMATION
2772 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2773 ART_COPY
= cvar
.ART_COPY
2774 ART_CUT
= cvar
.ART_CUT
2775 ART_PASTE
= cvar
.ART_PASTE
2776 ART_DELETE
= cvar
.ART_DELETE
2777 ART_NEW
= cvar
.ART_NEW
2778 ART_UNDO
= cvar
.ART_UNDO
2779 ART_REDO
= cvar
.ART_REDO
2780 ART_QUIT
= cvar
.ART_QUIT
2781 ART_FIND
= cvar
.ART_FIND
2782 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2784 def ArtProvider_PushProvider(*args
, **kwargs
):
2786 ArtProvider_PushProvider(ArtProvider provider)
2788 Add new provider to the top of providers stack.
2790 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2792 def ArtProvider_InsertProvider(*args
, **kwargs
):
2794 ArtProvider_InsertProvider(ArtProvider provider)
2796 Add new provider to the bottom of providers stack.
2798 return _misc_
.ArtProvider_InsertProvider(*args
, **kwargs
)
2800 def ArtProvider_PopProvider(*args
):
2802 ArtProvider_PopProvider() -> bool
2804 Remove latest added provider and delete it.
2806 return _misc_
.ArtProvider_PopProvider(*args
)
2808 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2810 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2812 Remove provider. The provider must have been added previously! The
2813 provider is _not_ deleted.
2815 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2819 def ArtProvider_GetBitmap(*args
, **kwargs
):
2821 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2823 Query the providers for bitmap with given ID and return it. Return
2824 wx.NullBitmap if no provider provides it.
2826 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2828 def ArtProvider_GetIcon(*args
, **kwargs
):
2830 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2832 Query the providers for icon with given ID and return it. Return
2833 wx.NullIcon if no provider provides it.
2835 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2837 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2839 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2841 Get the size hint of an icon from a specific Art Client, queries the
2842 topmost provider if platform_dependent = false
2844 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2846 #---------------------------------------------------------------------------
2848 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2849 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2850 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2851 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2852 class ConfigBase(object):
2854 wx.ConfigBase class defines the basic interface of all config
2855 classes. It can not be used by itself (it is an abstract base class)
2856 and you will always use one of its derivations: wx.Config or
2859 wx.ConfigBase organizes the items in a tree-like structure, modeled
2860 after the Unix/Dos filesystem. There are groups that act like
2861 directories and entries, key/value pairs that act like files. There
2862 is always one current group given by the current path. As in the file
2863 system case, to specify a key in the config class you must use a path
2864 to it. Config classes also support the notion of the current group,
2865 which makes it possible to use relative paths.
2867 Keys are pairs "key_name = value" where value may be of string,
2868 integer floating point or boolean, you can not store binary data
2869 without first encoding it as a string. For performance reasons items
2870 should be kept small, no more than a couple kilobytes.
2873 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2874 def __init__(self
): raise AttributeError, "No constructor defined"
2875 __repr__
= _swig_repr
2876 __swig_destroy__
= _misc_
.delete_ConfigBase
2877 __del__
= lambda self
: None;
2878 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2879 Type_String
= _misc_
.ConfigBase_Type_String
2880 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2881 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2882 Type_Float
= _misc_
.ConfigBase_Type_Float
2883 def Set(*args
, **kwargs
):
2885 Set(ConfigBase config) -> ConfigBase
2887 Sets the global config object (the one returned by Get) and returns a
2888 reference to the previous global config object.
2890 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2892 Set
= staticmethod(Set
)
2893 def Get(*args
, **kwargs
):
2895 Get(bool createOnDemand=True) -> ConfigBase
2897 Returns the current global config object, creating one if neccessary.
2899 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2901 Get
= staticmethod(Get
)
2902 def Create(*args
, **kwargs
):
2904 Create() -> ConfigBase
2906 Create and return a new global config object. This function will
2907 create the "best" implementation of wx.Config available for the
2910 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2912 Create
= staticmethod(Create
)
2913 def DontCreateOnDemand(*args
, **kwargs
):
2915 DontCreateOnDemand()
2917 Should Get() try to create a new log object if there isn't a current
2920 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2922 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2923 def SetPath(*args
, **kwargs
):
2925 SetPath(self, String path)
2927 Set current path: if the first character is '/', it's the absolute
2928 path, otherwise it's a relative path. '..' is supported. If the
2929 strPath doesn't exist it is created.
2931 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2933 def GetPath(*args
, **kwargs
):
2935 GetPath(self) -> String
2937 Retrieve the current path (always as absolute path)
2939 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2941 def GetFirstGroup(*args
, **kwargs
):
2943 GetFirstGroup() -> (more, value, index)
2945 Allows enumerating the subgroups in a config object. Returns a tuple
2946 containing a flag indicating there are more items, the name of the
2947 current item, and an index to pass to GetNextGroup to fetch the next
2950 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2952 def GetNextGroup(*args
, **kwargs
):
2954 GetNextGroup(long index) -> (more, value, index)
2956 Allows enumerating the subgroups in a config object. Returns a tuple
2957 containing a flag indicating there are more items, the name of the
2958 current item, and an index to pass to GetNextGroup to fetch the next
2961 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2963 def GetFirstEntry(*args
, **kwargs
):
2965 GetFirstEntry() -> (more, value, index)
2967 Allows enumerating the entries in the current group in a config
2968 object. Returns a tuple containing a flag indicating there are more
2969 items, the name of the current item, and an index to pass to
2970 GetNextGroup to fetch the next item.
2972 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2974 def GetNextEntry(*args
, **kwargs
):
2976 GetNextEntry(long index) -> (more, value, index)
2978 Allows enumerating the entries in the current group in a config
2979 object. Returns a tuple containing a flag indicating there are more
2980 items, the name of the current item, and an index to pass to
2981 GetNextGroup to fetch the next item.
2983 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2985 def GetNumberOfEntries(*args
, **kwargs
):
2987 GetNumberOfEntries(self, bool recursive=False) -> size_t
2989 Get the number of entries in the current group, with or without its
2992 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2994 def GetNumberOfGroups(*args
, **kwargs
):
2996 GetNumberOfGroups(self, bool recursive=False) -> size_t
2998 Get the number of subgroups in the current group, with or without its
3001 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
3003 def HasGroup(*args
, **kwargs
):
3005 HasGroup(self, String name) -> bool
3007 Returns True if the group by this name exists
3009 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
3011 def HasEntry(*args
, **kwargs
):
3013 HasEntry(self, String name) -> bool
3015 Returns True if the entry by this name exists
3017 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
3019 def Exists(*args
, **kwargs
):
3021 Exists(self, String name) -> bool
3023 Returns True if either a group or an entry with a given name exists
3025 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
3027 def GetEntryType(*args
, **kwargs
):
3029 GetEntryType(self, String name) -> int
3031 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
3033 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
3035 def Read(*args
, **kwargs
):
3037 Read(self, String key, String defaultVal=EmptyString) -> String
3039 Returns the value of key if it exists, defaultVal otherwise.
3041 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
3043 def ReadInt(*args
, **kwargs
):
3045 ReadInt(self, String key, long defaultVal=0) -> long
3047 Returns the value of key if it exists, defaultVal otherwise.
3049 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
3051 def ReadFloat(*args
, **kwargs
):
3053 ReadFloat(self, String key, double defaultVal=0.0) -> double
3055 Returns the value of key if it exists, defaultVal otherwise.
3057 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
3059 def ReadBool(*args
, **kwargs
):
3061 ReadBool(self, String key, bool defaultVal=False) -> bool
3063 Returns the value of key if it exists, defaultVal otherwise.
3065 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
3067 def Write(*args
, **kwargs
):
3069 Write(self, String key, String value) -> bool
3071 write the value (return True on success)
3073 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
3075 def WriteInt(*args
, **kwargs
):
3077 WriteInt(self, String key, long value) -> bool
3079 write the value (return True on success)
3081 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
3083 def WriteFloat(*args
, **kwargs
):
3085 WriteFloat(self, String key, double value) -> bool
3087 write the value (return True on success)
3089 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
3091 def WriteBool(*args
, **kwargs
):
3093 WriteBool(self, String key, bool value) -> bool
3095 write the value (return True on success)
3097 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
3099 def Flush(*args
, **kwargs
):
3101 Flush(self, bool currentOnly=False) -> bool
3103 permanently writes all changes
3105 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
3107 def RenameEntry(*args
, **kwargs
):
3109 RenameEntry(self, String oldName, String newName) -> bool
3111 Rename an entry. Returns False on failure (probably because the new
3112 name is already taken by an existing entry)
3114 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
3116 def RenameGroup(*args
, **kwargs
):
3118 RenameGroup(self, String oldName, String newName) -> bool
3120 Rename a group. Returns False on failure (probably because the new
3121 name is already taken by an existing entry)
3123 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
3125 def DeleteEntry(*args
, **kwargs
):
3127 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3129 Deletes the specified entry and the group it belongs to if it was the
3130 last key in it and the second parameter is True
3132 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
3134 def DeleteGroup(*args
, **kwargs
):
3136 DeleteGroup(self, String key) -> bool
3138 Delete the group (with all subgroups)
3140 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
3142 def DeleteAll(*args
, **kwargs
):
3144 DeleteAll(self) -> bool
3146 Delete the whole underlying object (disk file, registry key, ...)
3147 primarly intended for use by deinstallation routine.
3149 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
3151 def SetExpandEnvVars(*args
, **kwargs
):
3153 SetExpandEnvVars(self, bool doIt=True)
3155 We can automatically expand environment variables in the config
3156 entries this option is on by default, you can turn it on/off at any
3159 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
3161 def IsExpandingEnvVars(*args
, **kwargs
):
3163 IsExpandingEnvVars(self) -> bool
3165 Are we currently expanding environment variables?
3167 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
3169 def SetRecordDefaults(*args
, **kwargs
):
3171 SetRecordDefaults(self, bool doIt=True)
3173 Set whether the config objec should record default values.
3175 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
3177 def IsRecordingDefaults(*args
, **kwargs
):
3179 IsRecordingDefaults(self) -> bool
3181 Are we currently recording default values?
3183 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
3185 def ExpandEnvVars(*args
, **kwargs
):
3187 ExpandEnvVars(self, String str) -> String
3189 Expand any environment variables in str and return the result
3191 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
3193 def GetAppName(*args
, **kwargs
):
3194 """GetAppName(self) -> String"""
3195 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3197 def GetVendorName(*args
, **kwargs
):
3198 """GetVendorName(self) -> String"""
3199 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3201 def SetAppName(*args
, **kwargs
):
3202 """SetAppName(self, String appName)"""
3203 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3205 def SetVendorName(*args
, **kwargs
):
3206 """SetVendorName(self, String vendorName)"""
3207 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3209 def SetStyle(*args
, **kwargs
):
3210 """SetStyle(self, long style)"""
3211 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3213 def GetStyle(*args
, **kwargs
):
3214 """GetStyle(self) -> long"""
3215 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3217 AppName
= property(GetAppName
,SetAppName
,doc
="See `GetAppName` and `SetAppName`")
3218 EntryType
= property(GetEntryType
,doc
="See `GetEntryType`")
3219 FirstEntry
= property(GetFirstEntry
,doc
="See `GetFirstEntry`")
3220 FirstGroup
= property(GetFirstGroup
,doc
="See `GetFirstGroup`")
3221 NextEntry
= property(GetNextEntry
,doc
="See `GetNextEntry`")
3222 NextGroup
= property(GetNextGroup
,doc
="See `GetNextGroup`")
3223 NumberOfEntries
= property(GetNumberOfEntries
,doc
="See `GetNumberOfEntries`")
3224 NumberOfGroups
= property(GetNumberOfGroups
,doc
="See `GetNumberOfGroups`")
3225 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
3226 Style
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")
3227 VendorName
= property(GetVendorName
,SetVendorName
,doc
="See `GetVendorName` and `SetVendorName`")
3228 _misc_
.ConfigBase_swigregister(ConfigBase
)
3230 def ConfigBase_Set(*args
, **kwargs
):
3232 ConfigBase_Set(ConfigBase config) -> ConfigBase
3234 Sets the global config object (the one returned by Get) and returns a
3235 reference to the previous global config object.
3237 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3239 def ConfigBase_Get(*args
, **kwargs
):
3241 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3243 Returns the current global config object, creating one if neccessary.
3245 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3247 def ConfigBase_Create(*args
):
3249 ConfigBase_Create() -> ConfigBase
3251 Create and return a new global config object. This function will
3252 create the "best" implementation of wx.Config available for the
3255 return _misc_
.ConfigBase_Create(*args
)
3257 def ConfigBase_DontCreateOnDemand(*args
):
3259 ConfigBase_DontCreateOnDemand()
3261 Should Get() try to create a new log object if there isn't a current
3264 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
3266 class Config(ConfigBase
):
3268 This ConfigBase-derived class will use the registry on Windows,
3269 and will be a wx.FileConfig on other platforms.
3271 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3272 __repr__
= _swig_repr
3273 def __init__(self
, *args
, **kwargs
):
3275 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3276 String localFilename=EmptyString, String globalFilename=EmptyString,
3277 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3279 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
3280 __swig_destroy__
= _misc_
.delete_Config
3281 __del__
= lambda self
: None;
3282 _misc_
.Config_swigregister(Config
)
3284 class FileConfig(ConfigBase
):
3285 """This config class will use a file for storage on all platforms."""
3286 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3287 __repr__
= _swig_repr
3288 def __init__(self
, *args
, **kwargs
):
3290 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3291 String localFilename=EmptyString, String globalFilename=EmptyString,
3292 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3294 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3295 __swig_destroy__
= _misc_
.delete_FileConfig
3296 __del__
= lambda self
: None;
3297 _misc_
.FileConfig_swigregister(FileConfig
)
3299 class ConfigPathChanger(object):
3301 A handy little class which changes current path to the path of given
3302 entry and restores it in the destructoir: so if you declare a local
3303 variable of this type, you work in the entry directory and the path is
3304 automatically restored when the function returns.
3306 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3307 __repr__
= _swig_repr
3308 def __init__(self
, *args
, **kwargs
):
3309 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3310 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3311 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3312 __del__
= lambda self
: None;
3313 def Name(*args
, **kwargs
):
3315 Name(self) -> String
3319 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3321 _misc_
.ConfigPathChanger_swigregister(ConfigPathChanger
)
3324 def ExpandEnvVars(*args
, **kwargs
):
3326 ExpandEnvVars(String sz) -> String
3328 Replace environment variables ($SOMETHING) with their values. The
3329 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3330 characters and '_' only. '$' must be escaped ('\$') in order to be
3333 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3334 #---------------------------------------------------------------------------
3336 class DateTime(object):
3337 """Proxy of C++ DateTime class"""
3338 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3339 __repr__
= _swig_repr
3340 Local
= _misc_
.DateTime_Local
3341 GMT_12
= _misc_
.DateTime_GMT_12
3342 GMT_11
= _misc_
.DateTime_GMT_11
3343 GMT_10
= _misc_
.DateTime_GMT_10
3344 GMT_9
= _misc_
.DateTime_GMT_9
3345 GMT_8
= _misc_
.DateTime_GMT_8
3346 GMT_7
= _misc_
.DateTime_GMT_7
3347 GMT_6
= _misc_
.DateTime_GMT_6
3348 GMT_5
= _misc_
.DateTime_GMT_5
3349 GMT_4
= _misc_
.DateTime_GMT_4
3350 GMT_3
= _misc_
.DateTime_GMT_3
3351 GMT_2
= _misc_
.DateTime_GMT_2
3352 GMT_1
= _misc_
.DateTime_GMT_1
3353 GMT0
= _misc_
.DateTime_GMT0
3354 GMT1
= _misc_
.DateTime_GMT1
3355 GMT2
= _misc_
.DateTime_GMT2
3356 GMT3
= _misc_
.DateTime_GMT3
3357 GMT4
= _misc_
.DateTime_GMT4
3358 GMT5
= _misc_
.DateTime_GMT5
3359 GMT6
= _misc_
.DateTime_GMT6
3360 GMT7
= _misc_
.DateTime_GMT7
3361 GMT8
= _misc_
.DateTime_GMT8
3362 GMT9
= _misc_
.DateTime_GMT9
3363 GMT10
= _misc_
.DateTime_GMT10
3364 GMT11
= _misc_
.DateTime_GMT11
3365 GMT12
= _misc_
.DateTime_GMT12
3366 WET
= _misc_
.DateTime_WET
3367 WEST
= _misc_
.DateTime_WEST
3368 CET
= _misc_
.DateTime_CET
3369 CEST
= _misc_
.DateTime_CEST
3370 EET
= _misc_
.DateTime_EET
3371 EEST
= _misc_
.DateTime_EEST
3372 MSK
= _misc_
.DateTime_MSK
3373 MSD
= _misc_
.DateTime_MSD
3374 AST
= _misc_
.DateTime_AST
3375 ADT
= _misc_
.DateTime_ADT
3376 EST
= _misc_
.DateTime_EST
3377 EDT
= _misc_
.DateTime_EDT
3378 CST
= _misc_
.DateTime_CST
3379 CDT
= _misc_
.DateTime_CDT
3380 MST
= _misc_
.DateTime_MST
3381 MDT
= _misc_
.DateTime_MDT
3382 PST
= _misc_
.DateTime_PST
3383 PDT
= _misc_
.DateTime_PDT
3384 HST
= _misc_
.DateTime_HST
3385 AKST
= _misc_
.DateTime_AKST
3386 AKDT
= _misc_
.DateTime_AKDT
3387 A_WST
= _misc_
.DateTime_A_WST
3388 A_CST
= _misc_
.DateTime_A_CST
3389 A_EST
= _misc_
.DateTime_A_EST
3390 A_ESST
= _misc_
.DateTime_A_ESST
3391 UTC
= _misc_
.DateTime_UTC
3392 Gregorian
= _misc_
.DateTime_Gregorian
3393 Julian
= _misc_
.DateTime_Julian
3394 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3395 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3396 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3397 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3398 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3399 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3400 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3401 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3402 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3403 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3404 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3405 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3406 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3407 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3408 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3409 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3410 Gr_China
= _misc_
.DateTime_Gr_China
3411 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3412 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3413 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3414 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3415 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3416 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3417 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3418 Gr_France
= _misc_
.DateTime_Gr_France
3419 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3420 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3421 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3422 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3423 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3424 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3425 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3426 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3427 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3428 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3429 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3430 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3431 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3432 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3433 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3434 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3435 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3436 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3437 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3438 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3439 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3440 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3441 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3442 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3443 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3444 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3445 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3446 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3447 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3448 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3449 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3450 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3451 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3452 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3453 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3454 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3455 Gr_USA
= _misc_
.DateTime_Gr_USA
3456 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3457 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3458 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3459 Country_Default
= _misc_
.DateTime_Country_Default
3460 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3461 Country_EEC
= _misc_
.DateTime_Country_EEC
3462 France
= _misc_
.DateTime_France
3463 Germany
= _misc_
.DateTime_Germany
3464 UK
= _misc_
.DateTime_UK
3465 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3466 Russia
= _misc_
.DateTime_Russia
3467 USA
= _misc_
.DateTime_USA
3468 Jan
= _misc_
.DateTime_Jan
3469 Feb
= _misc_
.DateTime_Feb
3470 Mar
= _misc_
.DateTime_Mar
3471 Apr
= _misc_
.DateTime_Apr
3472 May
= _misc_
.DateTime_May
3473 Jun
= _misc_
.DateTime_Jun
3474 Jul
= _misc_
.DateTime_Jul
3475 Aug
= _misc_
.DateTime_Aug
3476 Sep
= _misc_
.DateTime_Sep
3477 Oct
= _misc_
.DateTime_Oct
3478 Nov
= _misc_
.DateTime_Nov
3479 Dec
= _misc_
.DateTime_Dec
3480 Inv_Month
= _misc_
.DateTime_Inv_Month
3481 Sun
= _misc_
.DateTime_Sun
3482 Mon
= _misc_
.DateTime_Mon
3483 Tue
= _misc_
.DateTime_Tue
3484 Wed
= _misc_
.DateTime_Wed
3485 Thu
= _misc_
.DateTime_Thu
3486 Fri
= _misc_
.DateTime_Fri
3487 Sat
= _misc_
.DateTime_Sat
3488 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3489 Inv_Year
= _misc_
.DateTime_Inv_Year
3490 Name_Full
= _misc_
.DateTime_Name_Full
3491 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3492 Default_First
= _misc_
.DateTime_Default_First
3493 Monday_First
= _misc_
.DateTime_Monday_First
3494 Sunday_First
= _misc_
.DateTime_Sunday_First
3495 def SetCountry(*args
, **kwargs
):
3496 """SetCountry(int country)"""
3497 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3499 SetCountry
= staticmethod(SetCountry
)
3500 def GetCountry(*args
, **kwargs
):
3501 """GetCountry() -> int"""
3502 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3504 GetCountry
= staticmethod(GetCountry
)
3505 def IsWestEuropeanCountry(*args
, **kwargs
):
3506 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3507 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3509 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3510 def GetCurrentYear(*args
, **kwargs
):
3511 """GetCurrentYear(int cal=Gregorian) -> int"""
3512 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3514 GetCurrentYear
= staticmethod(GetCurrentYear
)
3515 def ConvertYearToBC(*args
, **kwargs
):
3516 """ConvertYearToBC(int year) -> int"""
3517 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3519 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3520 def GetCurrentMonth(*args
, **kwargs
):
3521 """GetCurrentMonth(int cal=Gregorian) -> int"""
3522 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3524 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3525 def IsLeapYear(*args
, **kwargs
):
3526 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3527 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3529 IsLeapYear
= staticmethod(IsLeapYear
)
3530 def GetCentury(*args
, **kwargs
):
3531 """GetCentury(int year=Inv_Year) -> int"""
3532 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3534 GetCentury
= staticmethod(GetCentury
)
3535 def GetNumberOfDaysinYear(*args
, **kwargs
):
3536 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3537 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3539 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3540 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3541 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3542 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3544 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3545 def GetMonthName(*args
, **kwargs
):
3546 """GetMonthName(int month, int flags=Name_Full) -> String"""
3547 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3549 GetMonthName
= staticmethod(GetMonthName
)
3550 def GetWeekDayName(*args
, **kwargs
):
3551 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3552 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3554 GetWeekDayName
= staticmethod(GetWeekDayName
)
3555 def GetAmPmStrings(*args
, **kwargs
):
3557 GetAmPmStrings() -> (am, pm)
3559 Get the AM and PM strings in the current locale (may be empty)
3561 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3563 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3564 def IsDSTApplicable(*args
, **kwargs
):
3565 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3566 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3568 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3569 def GetBeginDST(*args
, **kwargs
):
3570 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3571 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3573 GetBeginDST
= staticmethod(GetBeginDST
)
3574 def GetEndDST(*args
, **kwargs
):
3575 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3576 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3578 GetEndDST
= staticmethod(GetEndDST
)
3579 def Now(*args
, **kwargs
):
3580 """Now() -> DateTime"""
3581 return _misc_
.DateTime_Now(*args
, **kwargs
)
3583 Now
= staticmethod(Now
)
3584 def UNow(*args
, **kwargs
):
3585 """UNow() -> DateTime"""
3586 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3588 UNow
= staticmethod(UNow
)
3589 def Today(*args
, **kwargs
):
3590 """Today() -> DateTime"""
3591 return _misc_
.DateTime_Today(*args
, **kwargs
)
3593 Today
= staticmethod(Today
)
3594 def __init__(self
, *args
, **kwargs
):
3595 """__init__(self) -> DateTime"""
3596 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3597 __swig_destroy__
= _misc_
.delete_DateTime
3598 __del__
= lambda self
: None;
3599 def SetToCurrent(*args
, **kwargs
):
3600 """SetToCurrent(self) -> DateTime"""
3601 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3603 def SetTimeT(*args
, **kwargs
):
3604 """SetTimeT(self, time_t timet) -> DateTime"""
3605 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3607 def SetJDN(*args
, **kwargs
):
3608 """SetJDN(self, double jdn) -> DateTime"""
3609 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3611 def SetHMS(*args
, **kwargs
):
3612 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3613 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3615 def Set(*args
, **kwargs
):
3617 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3618 int minute=0, int second=0, int millisec=0) -> DateTime
3620 return _misc_
.DateTime_Set(*args
, **kwargs
)
3622 def ResetTime(*args
, **kwargs
):
3623 """ResetTime(self) -> DateTime"""
3624 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3626 def SetYear(*args
, **kwargs
):
3627 """SetYear(self, int year) -> DateTime"""
3628 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3630 def SetMonth(*args
, **kwargs
):
3631 """SetMonth(self, int month) -> DateTime"""
3632 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3634 def SetDay(*args
, **kwargs
):
3635 """SetDay(self, int day) -> DateTime"""
3636 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3638 def SetHour(*args
, **kwargs
):
3639 """SetHour(self, int hour) -> DateTime"""
3640 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3642 def SetMinute(*args
, **kwargs
):
3643 """SetMinute(self, int minute) -> DateTime"""
3644 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3646 def SetSecond(*args
, **kwargs
):
3647 """SetSecond(self, int second) -> DateTime"""
3648 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3650 def SetMillisecond(*args
, **kwargs
):
3651 """SetMillisecond(self, int millisecond) -> DateTime"""
3652 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3654 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3655 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3656 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3658 def GetWeekDayInSameWeek(*args
, **kwargs
):
3659 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3660 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3662 def SetToNextWeekDay(*args
, **kwargs
):
3663 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3664 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3666 def GetNextWeekDay(*args
, **kwargs
):
3667 """GetNextWeekDay(self, int weekday) -> DateTime"""
3668 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3670 def SetToPrevWeekDay(*args
, **kwargs
):
3671 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3672 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3674 def GetPrevWeekDay(*args
, **kwargs
):
3675 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3676 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3678 def SetToWeekDay(*args
, **kwargs
):
3679 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3680 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3682 def SetToLastWeekDay(*args
, **kwargs
):
3683 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3684 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3686 def GetLastWeekDay(*args
, **kwargs
):
3687 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3688 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3690 def SetToTheWeek(*args
, **kwargs
):
3691 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3692 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3694 def GetWeek(*args
, **kwargs
):
3695 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3696 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3698 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3699 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3701 def SetToWeekOfYear(*args
, **kwargs
):
3702 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3703 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3705 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3706 def SetToLastMonthDay(*args
, **kwargs
):
3707 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3708 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3710 def GetLastMonthDay(*args
, **kwargs
):
3711 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3712 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3714 def SetToYearDay(*args
, **kwargs
):
3715 """SetToYearDay(self, int yday) -> DateTime"""
3716 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3718 def GetYearDay(*args
, **kwargs
):
3719 """GetYearDay(self, int yday) -> DateTime"""
3720 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3722 def GetJulianDayNumber(*args
, **kwargs
):
3723 """GetJulianDayNumber(self) -> double"""
3724 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3726 def GetJDN(*args
, **kwargs
):
3727 """GetJDN(self) -> double"""
3728 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3730 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3731 """GetModifiedJulianDayNumber(self) -> double"""
3732 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3734 def GetMJD(*args
, **kwargs
):
3735 """GetMJD(self) -> double"""
3736 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3738 def GetRataDie(*args
, **kwargs
):
3739 """GetRataDie(self) -> double"""
3740 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3742 def ToTimezone(*args
, **kwargs
):
3743 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3744 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3746 def MakeTimezone(*args
, **kwargs
):
3747 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3748 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3750 def FromTimezone(*args
, **kwargs
):
3751 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3752 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3754 def MakeFromTimezone(*args
, **kwargs
):
3755 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3756 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3758 def ToUTC(*args
, **kwargs
):
3759 """ToUTC(self, bool noDST=False) -> DateTime"""
3760 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3762 def MakeUTC(*args
, **kwargs
):
3763 """MakeUTC(self, bool noDST=False) -> DateTime"""
3764 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3766 def ToGMT(*args
, **kwargs
):
3767 """ToGMT(self, bool noDST=False) -> DateTime"""
3768 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3770 def MakeGMT(*args
, **kwargs
):
3771 """MakeGMT(self, bool noDST=False) -> DateTime"""
3772 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3774 def FromUTC(*args
, **kwargs
):
3775 """FromUTC(self, bool noDST=False) -> DateTime"""
3776 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3778 def MakeFromUTC(*args
, **kwargs
):
3779 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3780 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3782 def IsDST(*args
, **kwargs
):
3783 """IsDST(self, int country=Country_Default) -> int"""
3784 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3786 def IsValid(*args
, **kwargs
):
3787 """IsValid(self) -> bool"""
3788 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3791 def __nonzero__(self
): return self
.Ok()
3792 def GetTicks(*args
, **kwargs
):
3793 """GetTicks(self) -> time_t"""
3794 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3796 def GetYear(*args
, **kwargs
):
3797 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3798 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3800 def GetMonth(*args
, **kwargs
):
3801 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3802 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3804 def GetDay(*args
, **kwargs
):
3805 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3806 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3808 def GetWeekDay(*args
, **kwargs
):
3809 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3810 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3812 def GetHour(*args
, **kwargs
):
3813 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3814 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3816 def GetMinute(*args
, **kwargs
):
3817 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3818 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3820 def GetSecond(*args
, **kwargs
):
3821 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3822 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3824 def GetMillisecond(*args
, **kwargs
):
3825 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3826 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3828 def GetDayOfYear(*args
, **kwargs
):
3829 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3830 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3832 def GetWeekOfYear(*args
, **kwargs
):
3833 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3834 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3836 def GetWeekOfMonth(*args
, **kwargs
):
3837 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3838 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3840 def IsWorkDay(*args
, **kwargs
):
3841 """IsWorkDay(self, int country=Country_Default) -> bool"""
3842 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3844 def IsEqualTo(*args
, **kwargs
):
3845 """IsEqualTo(self, DateTime datetime) -> bool"""
3846 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3848 def IsEarlierThan(*args
, **kwargs
):
3849 """IsEarlierThan(self, DateTime datetime) -> bool"""
3850 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3852 def IsLaterThan(*args
, **kwargs
):
3853 """IsLaterThan(self, DateTime datetime) -> bool"""
3854 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3856 def IsStrictlyBetween(*args
, **kwargs
):
3857 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3858 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3860 def IsBetween(*args
, **kwargs
):
3861 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3862 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3864 def IsSameDate(*args
, **kwargs
):
3865 """IsSameDate(self, DateTime dt) -> bool"""
3866 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3868 def IsSameTime(*args
, **kwargs
):
3869 """IsSameTime(self, DateTime dt) -> bool"""
3870 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3872 def IsEqualUpTo(*args
, **kwargs
):
3873 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3874 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3876 def AddTS(*args
, **kwargs
):
3877 """AddTS(self, TimeSpan diff) -> DateTime"""
3878 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3880 def AddDS(*args
, **kwargs
):
3881 """AddDS(self, DateSpan diff) -> DateTime"""
3882 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3884 def SubtractTS(*args
, **kwargs
):
3885 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3886 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3888 def SubtractDS(*args
, **kwargs
):
3889 """SubtractDS(self, DateSpan diff) -> DateTime"""
3890 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3892 def Subtract(*args
, **kwargs
):
3893 """Subtract(self, DateTime dt) -> TimeSpan"""
3894 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3896 def __iadd__(*args
):
3898 __iadd__(self, TimeSpan diff) -> DateTime
3899 __iadd__(self, DateSpan diff) -> DateTime
3901 return _misc_
.DateTime___iadd__(*args
)
3903 def __isub__(*args
):
3905 __isub__(self, TimeSpan diff) -> DateTime
3906 __isub__(self, DateSpan diff) -> DateTime
3908 return _misc_
.DateTime___isub__(*args
)
3912 __add__(self, TimeSpan other) -> DateTime
3913 __add__(self, DateSpan other) -> DateTime
3915 return _misc_
.DateTime___add__(*args
)
3919 __sub__(self, DateTime other) -> TimeSpan
3920 __sub__(self, TimeSpan other) -> DateTime
3921 __sub__(self, DateSpan other) -> DateTime
3923 return _misc_
.DateTime___sub__(*args
)
3925 def __lt__(*args
, **kwargs
):
3926 """__lt__(self, DateTime other) -> bool"""
3927 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3929 def __le__(*args
, **kwargs
):
3930 """__le__(self, DateTime other) -> bool"""
3931 return _misc_
.DateTime___le__(*args
, **kwargs
)
3933 def __gt__(*args
, **kwargs
):
3934 """__gt__(self, DateTime other) -> bool"""
3935 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3937 def __ge__(*args
, **kwargs
):
3938 """__ge__(self, DateTime other) -> bool"""
3939 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3941 def __eq__(*args
, **kwargs
):
3942 """__eq__(self, DateTime other) -> bool"""
3943 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3945 def __ne__(*args
, **kwargs
):
3946 """__ne__(self, DateTime other) -> bool"""
3947 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3949 def ParseRfc822Date(*args
, **kwargs
):
3950 """ParseRfc822Date(self, String date) -> int"""
3951 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3953 def ParseFormat(*args
, **kwargs
):
3954 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3955 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3957 def ParseDateTime(*args
, **kwargs
):
3958 """ParseDateTime(self, String datetime) -> int"""
3959 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3961 def ParseDate(*args
, **kwargs
):
3962 """ParseDate(self, String date) -> int"""
3963 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3965 def ParseTime(*args
, **kwargs
):
3966 """ParseTime(self, String time) -> int"""
3967 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3969 def Format(*args
, **kwargs
):
3970 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3971 return _misc_
.DateTime_Format(*args
, **kwargs
)
3973 def FormatDate(*args
, **kwargs
):
3974 """FormatDate(self) -> String"""
3975 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3977 def FormatTime(*args
, **kwargs
):
3978 """FormatTime(self) -> String"""
3979 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3981 def FormatISODate(*args
, **kwargs
):
3982 """FormatISODate(self) -> String"""
3983 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3985 def FormatISOTime(*args
, **kwargs
):
3986 """FormatISOTime(self) -> String"""
3987 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3991 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3992 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
3994 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3997 return self
.Format().encode(wx
.GetDefaultPyEncoding())
3999 return "INVALID DateTime"
4001 Day
= property(GetDay
,SetDay
,doc
="See `GetDay` and `SetDay`")
4002 DayOfYear
= property(GetDayOfYear
,doc
="See `GetDayOfYear`")
4003 Hour
= property(GetHour
,SetHour
,doc
="See `GetHour` and `SetHour`")
4004 JDN
= property(GetJDN
,SetJDN
,doc
="See `GetJDN` and `SetJDN`")
4005 JulianDayNumber
= property(GetJulianDayNumber
,doc
="See `GetJulianDayNumber`")
4006 LastMonthDay
= property(GetLastMonthDay
,doc
="See `GetLastMonthDay`")
4007 LastWeekDay
= property(GetLastWeekDay
,doc
="See `GetLastWeekDay`")
4008 MJD
= property(GetMJD
,doc
="See `GetMJD`")
4009 Millisecond
= property(GetMillisecond
,SetMillisecond
,doc
="See `GetMillisecond` and `SetMillisecond`")
4010 Minute
= property(GetMinute
,SetMinute
,doc
="See `GetMinute` and `SetMinute`")
4011 ModifiedJulianDayNumber
= property(GetModifiedJulianDayNumber
,doc
="See `GetModifiedJulianDayNumber`")
4012 Month
= property(GetMonth
,SetMonth
,doc
="See `GetMonth` and `SetMonth`")
4013 NextWeekDay
= property(GetNextWeekDay
,doc
="See `GetNextWeekDay`")
4014 PrevWeekDay
= property(GetPrevWeekDay
,doc
="See `GetPrevWeekDay`")
4015 RataDie
= property(GetRataDie
,doc
="See `GetRataDie`")
4016 Second
= property(GetSecond
,SetSecond
,doc
="See `GetSecond` and `SetSecond`")
4017 Ticks
= property(GetTicks
,doc
="See `GetTicks`")
4018 Week
= property(GetWeek
,doc
="See `GetWeek`")
4019 WeekDay
= property(GetWeekDay
,doc
="See `GetWeekDay`")
4020 WeekDayInSameWeek
= property(GetWeekDayInSameWeek
,doc
="See `GetWeekDayInSameWeek`")
4021 WeekOfMonth
= property(GetWeekOfMonth
,doc
="See `GetWeekOfMonth`")
4022 WeekOfYear
= property(GetWeekOfYear
,doc
="See `GetWeekOfYear`")
4023 Year
= property(GetYear
,SetYear
,doc
="See `GetYear` and `SetYear`")
4024 YearDay
= property(GetYearDay
,doc
="See `GetYearDay`")
4025 _misc_
.DateTime_swigregister(DateTime
)
4026 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
4027 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
4029 def DateTime_SetCountry(*args
, **kwargs
):
4030 """DateTime_SetCountry(int country)"""
4031 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
4033 def DateTime_GetCountry(*args
):
4034 """DateTime_GetCountry() -> int"""
4035 return _misc_
.DateTime_GetCountry(*args
)
4037 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
4038 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
4039 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
4041 def DateTime_GetCurrentYear(*args
, **kwargs
):
4042 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
4043 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
4045 def DateTime_ConvertYearToBC(*args
, **kwargs
):
4046 """DateTime_ConvertYearToBC(int year) -> int"""
4047 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
4049 def DateTime_GetCurrentMonth(*args
, **kwargs
):
4050 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
4051 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
4053 def DateTime_IsLeapYear(*args
, **kwargs
):
4054 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
4055 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
4057 def DateTime_GetCentury(*args
, **kwargs
):
4058 """DateTime_GetCentury(int year=Inv_Year) -> int"""
4059 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
4061 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
4062 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
4063 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
4065 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
4066 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
4067 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
4069 def DateTime_GetMonthName(*args
, **kwargs
):
4070 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
4071 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
4073 def DateTime_GetWeekDayName(*args
, **kwargs
):
4074 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
4075 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
4077 def DateTime_GetAmPmStrings(*args
):
4079 GetAmPmStrings() -> (am, pm)
4081 Get the AM and PM strings in the current locale (may be empty)
4083 return _misc_
.DateTime_GetAmPmStrings(*args
)
4085 def DateTime_IsDSTApplicable(*args
, **kwargs
):
4086 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
4087 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
4089 def DateTime_GetBeginDST(*args
, **kwargs
):
4090 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4091 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
4093 def DateTime_GetEndDST(*args
, **kwargs
):
4094 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4095 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
4097 def DateTime_Now(*args
):
4098 """DateTime_Now() -> DateTime"""
4099 return _misc_
.DateTime_Now(*args
)
4101 def DateTime_UNow(*args
):
4102 """DateTime_UNow() -> DateTime"""
4103 return _misc_
.DateTime_UNow(*args
)
4105 def DateTime_Today(*args
):
4106 """DateTime_Today() -> DateTime"""
4107 return _misc_
.DateTime_Today(*args
)
4109 def DateTimeFromTimeT(*args
, **kwargs
):
4110 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4111 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
4114 def DateTimeFromJDN(*args
, **kwargs
):
4115 """DateTimeFromJDN(double jdn) -> DateTime"""
4116 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
4119 def DateTimeFromHMS(*args
, **kwargs
):
4120 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4121 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
4124 def DateTimeFromDMY(*args
, **kwargs
):
4126 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4127 int minute=0, int second=0, int millisec=0) -> DateTime
4129 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
4132 def DateTimeFromDateTime(*args
, **kwargs
):
4133 """DateTimeFromDateTime(DateTime date) -> DateTime"""
4134 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
4137 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
4138 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4139 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
4141 class TimeSpan(object):
4142 """Proxy of C++ TimeSpan class"""
4143 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4144 __repr__
= _swig_repr
4145 def Milliseconds(*args
, **kwargs
):
4146 """Milliseconds(long ms) -> TimeSpan"""
4147 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4149 Milliseconds
= staticmethod(Milliseconds
)
4150 def Millisecond(*args
, **kwargs
):
4151 """Millisecond() -> TimeSpan"""
4152 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
4154 Millisecond
= staticmethod(Millisecond
)
4155 def Seconds(*args
, **kwargs
):
4156 """Seconds(long sec) -> TimeSpan"""
4157 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4159 Seconds
= staticmethod(Seconds
)
4160 def Second(*args
, **kwargs
):
4161 """Second() -> TimeSpan"""
4162 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4164 Second
= staticmethod(Second
)
4165 def Minutes(*args
, **kwargs
):
4166 """Minutes(long min) -> TimeSpan"""
4167 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4169 Minutes
= staticmethod(Minutes
)
4170 def Minute(*args
, **kwargs
):
4171 """Minute() -> TimeSpan"""
4172 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4174 Minute
= staticmethod(Minute
)
4175 def Hours(*args
, **kwargs
):
4176 """Hours(long hours) -> TimeSpan"""
4177 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4179 Hours
= staticmethod(Hours
)
4180 def Hour(*args
, **kwargs
):
4181 """Hour() -> TimeSpan"""
4182 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4184 Hour
= staticmethod(Hour
)
4185 def Days(*args
, **kwargs
):
4186 """Days(long days) -> TimeSpan"""
4187 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4189 Days
= staticmethod(Days
)
4190 def Day(*args
, **kwargs
):
4191 """Day() -> TimeSpan"""
4192 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4194 Day
= staticmethod(Day
)
4195 def Weeks(*args
, **kwargs
):
4196 """Weeks(long days) -> TimeSpan"""
4197 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4199 Weeks
= staticmethod(Weeks
)
4200 def Week(*args
, **kwargs
):
4201 """Week() -> TimeSpan"""
4202 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4204 Week
= staticmethod(Week
)
4205 def __init__(self
, *args
, **kwargs
):
4206 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4207 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
4208 __swig_destroy__
= _misc_
.delete_TimeSpan
4209 __del__
= lambda self
: None;
4210 def Add(*args
, **kwargs
):
4211 """Add(self, TimeSpan diff) -> TimeSpan"""
4212 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
4214 def Subtract(*args
, **kwargs
):
4215 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4216 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4218 def Multiply(*args
, **kwargs
):
4219 """Multiply(self, int n) -> TimeSpan"""
4220 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4222 def Neg(*args
, **kwargs
):
4223 """Neg(self) -> TimeSpan"""
4224 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4226 def Abs(*args
, **kwargs
):
4227 """Abs(self) -> TimeSpan"""
4228 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4230 def __iadd__(*args
, **kwargs
):
4231 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4232 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4234 def __isub__(*args
, **kwargs
):
4235 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4236 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4238 def __imul__(*args
, **kwargs
):
4239 """__imul__(self, int n) -> TimeSpan"""
4240 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4242 def __neg__(*args
, **kwargs
):
4243 """__neg__(self) -> TimeSpan"""
4244 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4246 def __add__(*args
, **kwargs
):
4247 """__add__(self, TimeSpan other) -> TimeSpan"""
4248 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4250 def __sub__(*args
, **kwargs
):
4251 """__sub__(self, TimeSpan other) -> TimeSpan"""
4252 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4254 def __mul__(*args
, **kwargs
):
4255 """__mul__(self, int n) -> TimeSpan"""
4256 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4258 def __rmul__(*args
, **kwargs
):
4259 """__rmul__(self, int n) -> TimeSpan"""
4260 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4262 def __lt__(*args
, **kwargs
):
4263 """__lt__(self, TimeSpan other) -> bool"""
4264 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4266 def __le__(*args
, **kwargs
):
4267 """__le__(self, TimeSpan other) -> bool"""
4268 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4270 def __gt__(*args
, **kwargs
):
4271 """__gt__(self, TimeSpan other) -> bool"""
4272 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4274 def __ge__(*args
, **kwargs
):
4275 """__ge__(self, TimeSpan other) -> bool"""
4276 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4278 def __eq__(*args
, **kwargs
):
4279 """__eq__(self, TimeSpan other) -> bool"""
4280 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4282 def __ne__(*args
, **kwargs
):
4283 """__ne__(self, TimeSpan other) -> bool"""
4284 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4286 def IsNull(*args
, **kwargs
):
4287 """IsNull(self) -> bool"""
4288 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4290 def IsPositive(*args
, **kwargs
):
4291 """IsPositive(self) -> bool"""
4292 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4294 def IsNegative(*args
, **kwargs
):
4295 """IsNegative(self) -> bool"""
4296 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4298 def IsEqualTo(*args
, **kwargs
):
4299 """IsEqualTo(self, TimeSpan ts) -> bool"""
4300 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4302 def IsLongerThan(*args
, **kwargs
):
4303 """IsLongerThan(self, TimeSpan ts) -> bool"""
4304 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4306 def IsShorterThan(*args
, **kwargs
):
4307 """IsShorterThan(self, TimeSpan t) -> bool"""
4308 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4310 def GetWeeks(*args
, **kwargs
):
4311 """GetWeeks(self) -> int"""
4312 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4314 def GetDays(*args
, **kwargs
):
4315 """GetDays(self) -> int"""
4316 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4318 def GetHours(*args
, **kwargs
):
4319 """GetHours(self) -> int"""
4320 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4322 def GetMinutes(*args
, **kwargs
):
4323 """GetMinutes(self) -> int"""
4324 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4326 def GetSeconds(*args
, **kwargs
):
4327 """GetSeconds(self) -> wxLongLong"""
4328 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4330 def GetMilliseconds(*args
, **kwargs
):
4331 """GetMilliseconds(self) -> wxLongLong"""
4332 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4334 def Format(*args
, **kwargs
):
4335 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4336 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4339 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4340 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4342 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4344 Days
= property(GetDays
,doc
="See `GetDays`")
4345 Hours
= property(GetHours
,doc
="See `GetHours`")
4346 Milliseconds
= property(GetMilliseconds
,doc
="See `GetMilliseconds`")
4347 Minutes
= property(GetMinutes
,doc
="See `GetMinutes`")
4348 Seconds
= property(GetSeconds
,doc
="See `GetSeconds`")
4349 Weeks
= property(GetWeeks
,doc
="See `GetWeeks`")
4350 _misc_
.TimeSpan_swigregister(TimeSpan
)
4352 def TimeSpan_Milliseconds(*args
, **kwargs
):
4353 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4354 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4356 def TimeSpan_Millisecond(*args
):
4357 """TimeSpan_Millisecond() -> TimeSpan"""
4358 return _misc_
.TimeSpan_Millisecond(*args
)
4360 def TimeSpan_Seconds(*args
, **kwargs
):
4361 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4362 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4364 def TimeSpan_Second(*args
):
4365 """TimeSpan_Second() -> TimeSpan"""
4366 return _misc_
.TimeSpan_Second(*args
)
4368 def TimeSpan_Minutes(*args
, **kwargs
):
4369 """TimeSpan_Minutes(long min) -> TimeSpan"""
4370 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4372 def TimeSpan_Minute(*args
):
4373 """TimeSpan_Minute() -> TimeSpan"""
4374 return _misc_
.TimeSpan_Minute(*args
)
4376 def TimeSpan_Hours(*args
, **kwargs
):
4377 """TimeSpan_Hours(long hours) -> TimeSpan"""
4378 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4380 def TimeSpan_Hour(*args
):
4381 """TimeSpan_Hour() -> TimeSpan"""
4382 return _misc_
.TimeSpan_Hour(*args
)
4384 def TimeSpan_Days(*args
, **kwargs
):
4385 """TimeSpan_Days(long days) -> TimeSpan"""
4386 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4388 def TimeSpan_Day(*args
):
4389 """TimeSpan_Day() -> TimeSpan"""
4390 return _misc_
.TimeSpan_Day(*args
)
4392 def TimeSpan_Weeks(*args
, **kwargs
):
4393 """TimeSpan_Weeks(long days) -> TimeSpan"""
4394 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4396 def TimeSpan_Week(*args
):
4397 """TimeSpan_Week() -> TimeSpan"""
4398 return _misc_
.TimeSpan_Week(*args
)
4400 class DateSpan(object):
4401 """Proxy of C++ DateSpan class"""
4402 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4403 __repr__
= _swig_repr
4404 def __init__(self
, *args
, **kwargs
):
4405 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4406 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4407 __swig_destroy__
= _misc_
.delete_DateSpan
4408 __del__
= lambda self
: None;
4409 def Days(*args
, **kwargs
):
4410 """Days(int days) -> DateSpan"""
4411 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4413 Days
= staticmethod(Days
)
4414 def Day(*args
, **kwargs
):
4415 """Day() -> DateSpan"""
4416 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4418 Day
= staticmethod(Day
)
4419 def Weeks(*args
, **kwargs
):
4420 """Weeks(int weeks) -> DateSpan"""
4421 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4423 Weeks
= staticmethod(Weeks
)
4424 def Week(*args
, **kwargs
):
4425 """Week() -> DateSpan"""
4426 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4428 Week
= staticmethod(Week
)
4429 def Months(*args
, **kwargs
):
4430 """Months(int mon) -> DateSpan"""
4431 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4433 Months
= staticmethod(Months
)
4434 def Month(*args
, **kwargs
):
4435 """Month() -> DateSpan"""
4436 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4438 Month
= staticmethod(Month
)
4439 def Years(*args
, **kwargs
):
4440 """Years(int years) -> DateSpan"""
4441 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4443 Years
= staticmethod(Years
)
4444 def Year(*args
, **kwargs
):
4445 """Year() -> DateSpan"""
4446 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4448 Year
= staticmethod(Year
)
4449 def SetYears(*args
, **kwargs
):
4450 """SetYears(self, int n) -> DateSpan"""
4451 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4453 def SetMonths(*args
, **kwargs
):
4454 """SetMonths(self, int n) -> DateSpan"""
4455 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4457 def SetWeeks(*args
, **kwargs
):
4458 """SetWeeks(self, int n) -> DateSpan"""
4459 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4461 def SetDays(*args
, **kwargs
):
4462 """SetDays(self, int n) -> DateSpan"""
4463 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4465 def GetYears(*args
, **kwargs
):
4466 """GetYears(self) -> int"""
4467 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4469 def GetMonths(*args
, **kwargs
):
4470 """GetMonths(self) -> int"""
4471 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4473 def GetWeeks(*args
, **kwargs
):
4474 """GetWeeks(self) -> int"""
4475 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4477 def GetDays(*args
, **kwargs
):
4478 """GetDays(self) -> int"""
4479 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4481 def GetTotalDays(*args
, **kwargs
):
4482 """GetTotalDays(self) -> int"""
4483 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4485 def Add(*args
, **kwargs
):
4486 """Add(self, DateSpan other) -> DateSpan"""
4487 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4489 def Subtract(*args
, **kwargs
):
4490 """Subtract(self, DateSpan other) -> DateSpan"""
4491 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4493 def Neg(*args
, **kwargs
):
4494 """Neg(self) -> DateSpan"""
4495 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4497 def Multiply(*args
, **kwargs
):
4498 """Multiply(self, int factor) -> DateSpan"""
4499 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4501 def __iadd__(*args
, **kwargs
):
4502 """__iadd__(self, DateSpan other) -> DateSpan"""
4503 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4505 def __isub__(*args
, **kwargs
):
4506 """__isub__(self, DateSpan other) -> DateSpan"""
4507 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4509 def __neg__(*args
, **kwargs
):
4510 """__neg__(self) -> DateSpan"""
4511 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4513 def __imul__(*args
, **kwargs
):
4514 """__imul__(self, int factor) -> DateSpan"""
4515 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4517 def __add__(*args
, **kwargs
):
4518 """__add__(self, DateSpan other) -> DateSpan"""
4519 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4521 def __sub__(*args
, **kwargs
):
4522 """__sub__(self, DateSpan other) -> DateSpan"""
4523 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4525 def __mul__(*args
, **kwargs
):
4526 """__mul__(self, int n) -> DateSpan"""
4527 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4529 def __rmul__(*args
, **kwargs
):
4530 """__rmul__(self, int n) -> DateSpan"""
4531 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4533 def __eq__(*args
, **kwargs
):
4534 """__eq__(self, DateSpan other) -> bool"""
4535 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4537 def __ne__(*args
, **kwargs
):
4538 """__ne__(self, DateSpan other) -> bool"""
4539 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4541 Days
= property(GetDays
,SetDays
,doc
="See `GetDays` and `SetDays`")
4542 Months
= property(GetMonths
,SetMonths
,doc
="See `GetMonths` and `SetMonths`")
4543 TotalDays
= property(GetTotalDays
,doc
="See `GetTotalDays`")
4544 Weeks
= property(GetWeeks
,SetWeeks
,doc
="See `GetWeeks` and `SetWeeks`")
4545 Years
= property(GetYears
,SetYears
,doc
="See `GetYears` and `SetYears`")
4546 _misc_
.DateSpan_swigregister(DateSpan
)
4548 def DateSpan_Days(*args
, **kwargs
):
4549 """DateSpan_Days(int days) -> DateSpan"""
4550 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4552 def DateSpan_Day(*args
):
4553 """DateSpan_Day() -> DateSpan"""
4554 return _misc_
.DateSpan_Day(*args
)
4556 def DateSpan_Weeks(*args
, **kwargs
):
4557 """DateSpan_Weeks(int weeks) -> DateSpan"""
4558 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4560 def DateSpan_Week(*args
):
4561 """DateSpan_Week() -> DateSpan"""
4562 return _misc_
.DateSpan_Week(*args
)
4564 def DateSpan_Months(*args
, **kwargs
):
4565 """DateSpan_Months(int mon) -> DateSpan"""
4566 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4568 def DateSpan_Month(*args
):
4569 """DateSpan_Month() -> DateSpan"""
4570 return _misc_
.DateSpan_Month(*args
)
4572 def DateSpan_Years(*args
, **kwargs
):
4573 """DateSpan_Years(int years) -> DateSpan"""
4574 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4576 def DateSpan_Year(*args
):
4577 """DateSpan_Year() -> DateSpan"""
4578 return _misc_
.DateSpan_Year(*args
)
4581 def GetLocalTime(*args
):
4582 """GetLocalTime() -> long"""
4583 return _misc_
.GetLocalTime(*args
)
4585 def GetUTCTime(*args
):
4586 """GetUTCTime() -> long"""
4587 return _misc_
.GetUTCTime(*args
)
4589 def GetCurrentTime(*args
):
4590 """GetCurrentTime() -> long"""
4591 return _misc_
.GetCurrentTime(*args
)
4593 def GetLocalTimeMillis(*args
):
4594 """GetLocalTimeMillis() -> wxLongLong"""
4595 return _misc_
.GetLocalTimeMillis(*args
)
4596 #---------------------------------------------------------------------------
4598 DF_INVALID
= _misc_
.DF_INVALID
4599 DF_TEXT
= _misc_
.DF_TEXT
4600 DF_BITMAP
= _misc_
.DF_BITMAP
4601 DF_METAFILE
= _misc_
.DF_METAFILE
4602 DF_SYLK
= _misc_
.DF_SYLK
4603 DF_DIF
= _misc_
.DF_DIF
4604 DF_TIFF
= _misc_
.DF_TIFF
4605 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4606 DF_DIB
= _misc_
.DF_DIB
4607 DF_PALETTE
= _misc_
.DF_PALETTE
4608 DF_PENDATA
= _misc_
.DF_PENDATA
4609 DF_RIFF
= _misc_
.DF_RIFF
4610 DF_WAVE
= _misc_
.DF_WAVE
4611 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4612 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4613 DF_FILENAME
= _misc_
.DF_FILENAME
4614 DF_LOCALE
= _misc_
.DF_LOCALE
4615 DF_PRIVATE
= _misc_
.DF_PRIVATE
4616 DF_HTML
= _misc_
.DF_HTML
4617 DF_MAX
= _misc_
.DF_MAX
4618 class DataFormat(object):
4620 A wx.DataFormat is an encapsulation of a platform-specific format
4621 handle which is used by the system for the clipboard and drag and drop
4622 operations. The applications are usually only interested in, for
4623 example, pasting data from the clipboard only if the data is in a
4624 format the program understands. A data format is is used to uniquely
4625 identify this format.
4627 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4628 __repr__
= _swig_repr
4629 def __init__(self
, *args
, **kwargs
):
4631 __init__(self, int type) -> DataFormat
4633 Constructs a data format object for one of the standard data formats
4634 or an empty data object (use SetType or SetId later in this case)
4636 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4637 __swig_destroy__
= _misc_
.delete_DataFormat
4638 __del__
= lambda self
: None;
4641 __eq__(self, int format) -> bool
4642 __eq__(self, DataFormat format) -> bool
4644 return _misc_
.DataFormat___eq__(*args
)
4648 __ne__(self, int format) -> bool
4649 __ne__(self, DataFormat format) -> bool
4651 return _misc_
.DataFormat___ne__(*args
)
4653 def SetType(*args
, **kwargs
):
4655 SetType(self, int format)
4657 Sets the format to the given value, which should be one of wx.DF_XXX
4660 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4662 def GetType(*args
, **kwargs
):
4664 GetType(self) -> int
4666 Returns the platform-specific number identifying the format.
4668 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4670 def GetId(*args
, **kwargs
):
4672 GetId(self) -> String
4674 Returns the name of a custom format (this function will fail for a
4677 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4679 def SetId(*args
, **kwargs
):
4681 SetId(self, String format)
4683 Sets the format to be the custom format identified by the given name.
4685 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4687 Id
= property(GetId
,SetId
,doc
="See `GetId` and `SetId`")
4688 Type
= property(GetType
,SetType
,doc
="See `GetType` and `SetType`")
4689 _misc_
.DataFormat_swigregister(DataFormat
)
4690 DefaultDateTime
= cvar
.DefaultDateTime
4692 def CustomDataFormat(*args
, **kwargs
):
4694 CustomDataFormat(String format) -> DataFormat
4696 Constructs a data format object for a custom format identified by its
4699 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4702 class DataObject(object):
4704 A wx.DataObject represents data that can be copied to or from the
4705 clipboard, or dragged and dropped. The important thing about
4706 wx.DataObject is that this is a 'smart' piece of data unlike usual
4707 'dumb' data containers such as memory buffers or files. Being 'smart'
4708 here means that the data object itself should know what data formats
4709 it supports and how to render itself in each of supported formats.
4711 **NOTE**: This class is an abstract base class and can not be used
4712 directly from Python. If you need a custom type of data object then
4713 you should instead derive from `wx.PyDataObjectSimple` or use
4714 `wx.CustomDataObject`.
4717 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4718 def __init__(self
): raise AttributeError, "No constructor defined"
4719 __repr__
= _swig_repr
4720 Get
= _misc_
.DataObject_Get
4721 Set
= _misc_
.DataObject_Set
4722 Both
= _misc_
.DataObject_Both
4723 __swig_destroy__
= _misc_
.delete_DataObject
4724 __del__
= lambda self
: None;
4725 def GetPreferredFormat(*args
, **kwargs
):
4727 GetPreferredFormat(self, int dir=Get) -> DataFormat
4729 Returns the preferred format for either rendering the data (if dir is
4730 Get, its default value) or for setting it. Usually this will be the
4731 native format of the wx.DataObject.
4733 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4735 def GetFormatCount(*args
, **kwargs
):
4737 GetFormatCount(self, int dir=Get) -> size_t
4739 Returns the number of available formats for rendering or setting the
4742 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4744 def IsSupported(*args
, **kwargs
):
4746 IsSupported(self, DataFormat format, int dir=Get) -> bool
4748 Returns True if this format is supported.
4750 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4752 def GetDataSize(*args
, **kwargs
):
4754 GetDataSize(self, DataFormat format) -> size_t
4756 Get the (total) size of data for the given format
4758 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4760 def GetAllFormats(*args
, **kwargs
):
4762 GetAllFormats(self, int dir=Get) -> [formats]
4764 Returns a list of all the wx.DataFormats that this dataobject supports
4765 in the given direction.
4767 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4769 def GetDataHere(*args
, **kwargs
):
4771 GetDataHere(self, DataFormat format) -> String
4773 Get the data bytes in the specified format, returns None on failure.
4775 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4777 def SetData(*args
, **kwargs
):
4779 SetData(self, DataFormat format, String data) -> bool
4781 Set the data in the specified format from the bytes in the the data string.
4784 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4786 AllFormats
= property(GetAllFormats
,doc
="See `GetAllFormats`")
4787 DataHere
= property(GetDataHere
,doc
="See `GetDataHere`")
4788 DataSize
= property(GetDataSize
,doc
="See `GetDataSize`")
4789 FormatCount
= property(GetFormatCount
,doc
="See `GetFormatCount`")
4790 PreferredFormat
= property(GetPreferredFormat
,doc
="See `GetPreferredFormat`")
4791 _misc_
.DataObject_swigregister(DataObject
)
4792 FormatInvalid
= cvar
.FormatInvalid
4794 class DataObjectSimple(DataObject
):
4796 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4797 format. This is the simplest possible `wx.DataObject` implementation.
4799 This is still an "abstract base class" meaning that you can't use it
4800 directly. You either need to use one of the predefined base classes,
4801 or derive your own class from `wx.PyDataObjectSimple`.
4804 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4805 __repr__
= _swig_repr
4806 def __init__(self
, *args
, **kwargs
):
4808 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4810 Constructor accepts the supported format (none by default) which may
4811 also be set later with `SetFormat`.
4813 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4814 def GetFormat(*args
, **kwargs
):
4816 GetFormat(self) -> DataFormat
4818 Returns the (one and only one) format supported by this object. It is
4819 assumed that the format is supported in both directions.
4821 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4823 def SetFormat(*args
, **kwargs
):
4825 SetFormat(self, DataFormat format)
4827 Sets the supported format.
4829 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4831 def GetDataSize(*args
, **kwargs
):
4833 GetDataSize(self) -> size_t
4835 Get the size of our data.
4837 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4839 def GetDataHere(*args
, **kwargs
):
4841 GetDataHere(self) -> String
4843 Returns the data bytes from the data object as a string, returns None
4844 on failure. Must be implemented in the derived class if the object
4845 supports rendering its data.
4847 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4849 def SetData(*args
, **kwargs
):
4851 SetData(self, String data) -> bool
4853 Copy the data value to the data object. Must be implemented in the
4854 derived class if the object supports setting its data.
4857 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4859 Format
= property(GetFormat
,SetFormat
,doc
="See `GetFormat` and `SetFormat`")
4860 _misc_
.DataObjectSimple_swigregister(DataObjectSimple
)
4862 class PyDataObjectSimple(DataObjectSimple
):
4864 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4865 Python-aware and knows how to reflect calls to its C++ virtual methods
4866 to methods in the Python derived class. You should derive from this
4867 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4868 need to create your own simple single-format type of `wx.DataObject`.
4871 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4872 __repr__
= _swig_repr
4873 def __init__(self
, *args
, **kwargs
):
4875 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4877 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4878 Python-aware and knows how to reflect calls to its C++ virtual methods
4879 to methods in the Python derived class. You should derive from this
4880 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4881 need to create your own simple single-format type of `wx.DataObject`.
4884 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4885 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4887 def _setCallbackInfo(*args
, **kwargs
):
4888 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4889 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4891 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4893 class DataObjectComposite(DataObject
):
4895 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4896 which may be sued to support multiple formats. It contains several
4897 'wx.DataObjectSimple` objects and supports any format supported by at
4898 least one of them. Only one of these data objects is *preferred* (the
4899 first one if not explicitly changed by using the second parameter of
4900 `Add`) and its format determines the preferred format of the composite
4901 data object as well.
4903 See `wx.DataObject` documentation for the reasons why you might prefer
4904 to use wx.DataObject directly instead of wx.DataObjectComposite for
4908 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4909 __repr__
= _swig_repr
4910 def __init__(self
, *args
, **kwargs
):
4912 __init__(self) -> DataObjectComposite
4914 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4915 which may be sued to support multiple formats. It contains several
4916 'wx.DataObjectSimple` objects and supports any format supported by at
4917 least one of them. Only one of these data objects is *preferred* (the
4918 first one if not explicitly changed by using the second parameter of
4919 `Add`) and its format determines the preferred format of the composite
4920 data object as well.
4922 See `wx.DataObject` documentation for the reasons why you might prefer
4923 to use wx.DataObject directly instead of wx.DataObjectComposite for
4927 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4928 def Add(*args
, **kwargs
):
4930 Add(self, DataObjectSimple dataObject, bool preferred=False)
4932 Adds the dataObject to the list of supported objects and it becomes
4933 the preferred object if preferred is True.
4935 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4937 def GetReceivedFormat(*args
, **kwargs
):
4939 GetReceivedFormat(self) -> DataFormat
4941 Report the format passed to the `SetData` method. This should be the
4942 format of the data object within the composite that recieved data from
4943 the clipboard or the DnD operation. You can use this method to find
4944 out what kind of data object was recieved.
4946 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
4948 ReceivedFormat
= property(GetReceivedFormat
,doc
="See `GetReceivedFormat`")
4949 _misc_
.DataObjectComposite_swigregister(DataObjectComposite
)
4951 class TextDataObject(DataObjectSimple
):
4953 wx.TextDataObject is a specialization of `wx.DataObject` for text
4954 data. It can be used without change to paste data into the `wx.Clipboard`
4955 or a `wx.DropSource`.
4957 Alternativly, you may wish to derive a new class from the
4958 `wx.PyTextDataObject` class for providing text on-demand in order to
4959 minimize memory consumption when offering data in several formats,
4960 such as plain text and RTF, because by default the text is stored in a
4961 string in this class, but it might as well be generated on demand when
4962 requested. For this, `GetTextLength` and `GetText` will have to be
4965 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4966 __repr__
= _swig_repr
4967 def __init__(self
, *args
, **kwargs
):
4969 __init__(self, String text=EmptyString) -> TextDataObject
4971 Constructor, may be used to initialise the text (otherwise `SetText`
4972 should be used later).
4974 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4975 def GetTextLength(*args
, **kwargs
):
4977 GetTextLength(self) -> size_t
4979 Returns the data size. By default, returns the size of the text data
4980 set in the constructor or using `SetText`. This can be overridden (via
4981 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4982 recommended to return the text length plus 1 for a trailing zero, but
4983 this is not strictly required.
4985 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4987 def GetText(*args
, **kwargs
):
4989 GetText(self) -> String
4991 Returns the text associated with the data object.
4993 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4995 def SetText(*args
, **kwargs
):
4997 SetText(self, String text)
4999 Sets the text associated with the data object. This method is called
5000 when the data object receives the data and, by default, copies the
5001 text into the member variable. If you want to process the text on the
5002 fly you may wish to override this function (via
5003 `wx.PyTextDataObject`.)
5005 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
5007 Text
= property(GetText
,SetText
,doc
="See `GetText` and `SetText`")
5008 TextLength
= property(GetTextLength
,doc
="See `GetTextLength`")
5009 _misc_
.TextDataObject_swigregister(TextDataObject
)
5011 class PyTextDataObject(TextDataObject
):
5013 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5014 Python-aware and knows how to reflect calls to its C++ virtual methods
5015 to methods in the Python derived class. You should derive from this
5016 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5017 want to be able to provide text on demand instead of preloading it
5018 into the data object.
5020 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5021 __repr__
= _swig_repr
5022 def __init__(self
, *args
, **kwargs
):
5024 __init__(self, String text=EmptyString) -> PyTextDataObject
5026 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5027 Python-aware and knows how to reflect calls to its C++ virtual methods
5028 to methods in the Python derived class. You should derive from this
5029 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5030 want to be able to provide text on demand instead of preloading it
5031 into the data object.
5033 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
5034 self
._setCallbackInfo
(self
, PyTextDataObject
)
5036 def _setCallbackInfo(*args
, **kwargs
):
5037 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5038 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
5040 _misc_
.PyTextDataObject_swigregister(PyTextDataObject
)
5042 class BitmapDataObject(DataObjectSimple
):
5044 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
5045 data. It can be used without change to paste data into the `wx.Clipboard`
5046 or a `wx.DropSource`.
5049 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5050 __repr__
= _swig_repr
5051 def __init__(self
, *args
, **kwargs
):
5053 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
5055 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
5058 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
5059 def GetBitmap(*args
, **kwargs
):
5061 GetBitmap(self) -> Bitmap
5063 Returns the bitmap associated with the data object. You may wish to
5064 override this method (by deriving from `wx.PyBitmapDataObject`) when
5065 offering data on-demand, but this is not required by wxWidgets'
5066 internals. Use this method to get data in bitmap form from the
5069 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
5071 def SetBitmap(*args
, **kwargs
):
5073 SetBitmap(self, Bitmap bitmap)
5075 Sets the bitmap associated with the data object. This method is called
5076 when the data object receives data. Usually there will be no reason to
5077 override this function.
5079 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
5081 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
5082 _misc_
.BitmapDataObject_swigregister(BitmapDataObject
)
5084 class PyBitmapDataObject(BitmapDataObject
):
5086 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5087 Python-aware and knows how to reflect calls to its C++ virtual methods
5088 to methods in the Python derived class. To be able to provide bitmap
5089 data on demand derive from this class and overload `GetBitmap`.
5091 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5092 __repr__
= _swig_repr
5093 def __init__(self
, *args
, **kwargs
):
5095 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
5097 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5098 Python-aware and knows how to reflect calls to its C++ virtual methods
5099 to methods in the Python derived class. To be able to provide bitmap
5100 data on demand derive from this class and overload `GetBitmap`.
5102 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
5103 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
5105 def _setCallbackInfo(*args
, **kwargs
):
5106 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5107 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
5109 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObject
)
5111 class FileDataObject(DataObjectSimple
):
5113 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
5114 file names. The program works with it just as if it were a list of
5115 absolute file names, but internally it uses the same format as
5116 Explorer and other compatible programs under Windows or GNOME/KDE
5117 filemanager under Unix which makes it possible to receive files from
5118 them using this class.
5120 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5121 __repr__
= _swig_repr
5122 def __init__(self
, *args
, **kwargs
):
5123 """__init__(self) -> FileDataObject"""
5124 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
5125 def GetFilenames(*args
, **kwargs
):
5127 GetFilenames(self) -> [names]
5129 Returns a list of file names.
5131 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
5133 def AddFile(*args
, **kwargs
):
5135 AddFile(self, String filename)
5137 Adds a file to the list of files represented by this data object.
5139 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5141 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
5142 _misc_
.FileDataObject_swigregister(FileDataObject
)
5144 class CustomDataObject(DataObjectSimple
):
5146 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5147 some application-specific data in arbitrary format. Python strings
5148 are used for getting and setting data, but any picklable object can
5149 easily be transfered via strings. A copy of the data is stored in the
5152 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5153 __repr__
= _swig_repr
5154 def __init__(self
, *args
):
5156 __init__(self, DataFormat format) -> CustomDataObject
5157 __init__(self, String formatName) -> CustomDataObject
5158 __init__(self) -> CustomDataObject
5160 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5161 some application-specific data in arbitrary format. Python strings
5162 are used for getting and setting data, but any picklable object can
5163 easily be transfered via strings. A copy of the data is stored in the
5166 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
5167 def SetData(*args
, **kwargs
):
5169 SetData(self, String data) -> bool
5171 Copy the data value to the data object.
5173 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5176 def GetSize(*args
, **kwargs
):
5178 GetSize(self) -> size_t
5180 Get the size of the data.
5182 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5184 def GetData(*args
, **kwargs
):
5186 GetData(self) -> String
5188 Returns the data bytes from the data object as a string.
5190 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5192 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5193 Size
= property(GetSize
,doc
="See `GetSize`")
5194 _misc_
.CustomDataObject_swigregister(CustomDataObject
)
5196 class URLDataObject(DataObject
):
5198 This data object holds a URL in a format that is compatible with some
5199 browsers such that it is able to be dragged to or from them.
5201 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5202 __repr__
= _swig_repr
5203 def __init__(self
, *args
, **kwargs
):
5205 __init__(self, String url=EmptyString) -> URLDataObject
5207 This data object holds a URL in a format that is compatible with some
5208 browsers such that it is able to be dragged to or from them.
5210 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
5211 def GetURL(*args
, **kwargs
):
5213 GetURL(self) -> String
5215 Returns a string containing the current URL.
5217 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5219 def SetURL(*args
, **kwargs
):
5221 SetURL(self, String url)
5225 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5227 URL
= property(GetURL
,SetURL
,doc
="See `GetURL` and `SetURL`")
5228 _misc_
.URLDataObject_swigregister(URLDataObject
)
5230 class MetafileDataObject(DataObjectSimple
):
5231 """Proxy of C++ MetafileDataObject class"""
5232 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5233 __repr__
= _swig_repr
5234 def __init__(self
, *args
, **kwargs
):
5235 """__init__(self) -> MetafileDataObject"""
5236 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
5237 def SetMetafile(*args
, **kwargs
):
5238 """SetMetafile(self, wxMetafile metafile)"""
5239 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
5241 def GetMetafile(*args
, **kwargs
):
5242 """GetMetafile(self) -> wxMetafile"""
5243 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
5245 _misc_
.MetafileDataObject_swigregister(MetafileDataObject
)
5247 #---------------------------------------------------------------------------
5249 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5250 Drag_AllowMove
= _misc_
.Drag_AllowMove
5251 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5252 DragError
= _misc_
.DragError
5253 DragNone
= _misc_
.DragNone
5254 DragCopy
= _misc_
.DragCopy
5255 DragMove
= _misc_
.DragMove
5256 DragLink
= _misc_
.DragLink
5257 DragCancel
= _misc_
.DragCancel
5259 def IsDragResultOk(*args
, **kwargs
):
5260 """IsDragResultOk(int res) -> bool"""
5261 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5262 class DropSource(object):
5263 """Proxy of C++ DropSource class"""
5264 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5265 __repr__
= _swig_repr
5266 def __init__(self
, *args
, **kwargs
):
5268 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
5269 Cursor none=wxNullCursor) -> DropSource
5271 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
5272 self
._setCallbackInfo
(self
, DropSource
, 0)
5274 def _setCallbackInfo(*args
, **kwargs
):
5275 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5276 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5278 __swig_destroy__
= _misc_
.delete_DropSource
5279 __del__
= lambda self
: None;
5280 def SetData(*args
, **kwargs
):
5281 """SetData(self, DataObject data)"""
5282 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5284 def GetDataObject(*args
, **kwargs
):
5285 """GetDataObject(self) -> DataObject"""
5286 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5288 def SetCursor(*args
, **kwargs
):
5289 """SetCursor(self, int res, Cursor cursor)"""
5290 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5292 def DoDragDrop(*args
, **kwargs
):
5293 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5294 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5296 def GiveFeedback(*args
, **kwargs
):
5297 """GiveFeedback(self, int effect) -> bool"""
5298 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
5300 def base_GiveFeedback(*args
, **kw
):
5301 return DropSource
.GiveFeedback(*args
, **kw
)
5302 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
5303 "Please use DropSource.GiveFeedback instead.")
5305 DataObject
= property(GetDataObject
,SetData
,doc
="See `GetDataObject` and `SetData`")
5306 _misc_
.DropSource_swigregister(DropSource
)
5308 def DROP_ICON(filename
):
5310 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5311 ``filename``. This function is useful with the `wx.DropSource` class
5312 which, depending on platform accepts either a icon or a cursor.
5314 img
= wx
.Image(filename
)
5315 if wx
.Platform
== '__WXGTK__':
5316 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
5318 return wx
.CursorFromImage(img
)
5320 class DropTarget(object):
5321 """Proxy of C++ DropTarget class"""
5322 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5323 __repr__
= _swig_repr
5324 def __init__(self
, *args
, **kwargs
):
5325 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5326 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5327 self
._setCallbackInfo
(self
, DropTarget
)
5329 def _setCallbackInfo(*args
, **kwargs
):
5330 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5331 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5333 __swig_destroy__
= _misc_
.delete_DropTarget
5334 __del__
= lambda self
: None;
5335 def GetDataObject(*args
, **kwargs
):
5336 """GetDataObject(self) -> DataObject"""
5337 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5339 def SetDataObject(*args
, **kwargs
):
5340 """SetDataObject(self, DataObject dataObject)"""
5341 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5343 def OnEnter(*args
, **kwargs
):
5344 """OnEnter(self, int x, int y, int def) -> int"""
5345 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5347 def OnDragOver(*args
, **kwargs
):
5348 """OnDragOver(self, int x, int y, int def) -> int"""
5349 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5351 def OnLeave(*args
, **kwargs
):
5353 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5355 def OnDrop(*args
, **kwargs
):
5356 """OnDrop(self, int x, int y) -> bool"""
5357 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5359 def base_OnEnter(*args
, **kw
):
5360 return DropTarget
.OnEnter(*args
, **kw
)
5361 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5362 "Please use DropTarget.OnEnter instead.")
5364 def base_OnDragOver(*args
, **kw
):
5365 return DropTarget
.OnDragOver(*args
, **kw
)
5366 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5367 "Please use DropTarget.OnDragOver instead.")
5369 def base_OnLeave(*args
, **kw
):
5370 return DropTarget
.OnLeave(*args
, **kw
)
5371 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5372 "Please use DropTarget.OnLeave instead.")
5374 def base_OnDrop(*args
, **kw
):
5375 return DropTarget
.OnDrop(*args
, **kw
)
5376 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5377 "Please use DropTarget.OnDrop instead.")
5379 def GetData(*args
, **kwargs
):
5380 """GetData(self) -> bool"""
5381 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5383 def SetDefaultAction(*args
, **kwargs
):
5384 """SetDefaultAction(self, int action)"""
5385 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5387 def GetDefaultAction(*args
, **kwargs
):
5388 """GetDefaultAction(self) -> int"""
5389 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5391 Data
= property(GetData
,doc
="See `GetData`")
5392 DataObject
= property(GetDataObject
,SetDataObject
,doc
="See `GetDataObject` and `SetDataObject`")
5393 DefaultAction
= property(GetDefaultAction
,SetDefaultAction
,doc
="See `GetDefaultAction` and `SetDefaultAction`")
5394 _misc_
.DropTarget_swigregister(DropTarget
)
5396 PyDropTarget
= DropTarget
5397 class TextDropTarget(DropTarget
):
5398 """Proxy of C++ TextDropTarget class"""
5399 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5400 __repr__
= _swig_repr
5401 def __init__(self
, *args
, **kwargs
):
5402 """__init__(self) -> TextDropTarget"""
5403 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5404 self
._setCallbackInfo
(self
, TextDropTarget
)
5406 def _setCallbackInfo(*args
, **kwargs
):
5407 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5408 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5410 def OnDropText(*args
, **kwargs
):
5411 """OnDropText(self, int x, int y, String text) -> bool"""
5412 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5414 def OnEnter(*args
, **kwargs
):
5415 """OnEnter(self, int x, int y, int def) -> int"""
5416 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5418 def OnDragOver(*args
, **kwargs
):
5419 """OnDragOver(self, int x, int y, int def) -> int"""
5420 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5422 def OnLeave(*args
, **kwargs
):
5424 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5426 def OnDrop(*args
, **kwargs
):
5427 """OnDrop(self, int x, int y) -> bool"""
5428 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5430 def OnData(*args
, **kwargs
):
5431 """OnData(self, int x, int y, int def) -> int"""
5432 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5434 def base_OnDropText(*args
, **kw
):
5435 return TextDropTarget
.OnDropText(*args
, **kw
)
5436 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5437 "Please use TextDropTarget.OnDropText instead.")
5439 def base_OnEnter(*args
, **kw
):
5440 return TextDropTarget
.OnEnter(*args
, **kw
)
5441 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5442 "Please use TextDropTarget.OnEnter instead.")
5444 def base_OnDragOver(*args
, **kw
):
5445 return TextDropTarget
.OnDragOver(*args
, **kw
)
5446 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5447 "Please use TextDropTarget.OnDragOver instead.")
5449 def base_OnLeave(*args
, **kw
):
5450 return TextDropTarget
.OnLeave(*args
, **kw
)
5451 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5452 "Please use TextDropTarget.OnLeave instead.")
5454 def base_OnDrop(*args
, **kw
):
5455 return TextDropTarget
.OnDrop(*args
, **kw
)
5456 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5457 "Please use TextDropTarget.OnDrop instead.")
5459 def base_OnData(*args
, **kw
):
5460 return TextDropTarget
.OnData(*args
, **kw
)
5461 base_OnData
= wx
._deprecated
(base_OnData
,
5462 "Please use TextDropTarget.OnData instead.")
5464 _misc_
.TextDropTarget_swigregister(TextDropTarget
)
5466 class FileDropTarget(DropTarget
):
5467 """Proxy of C++ FileDropTarget class"""
5468 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5469 __repr__
= _swig_repr
5470 def __init__(self
, *args
, **kwargs
):
5471 """__init__(self) -> FileDropTarget"""
5472 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5473 self
._setCallbackInfo
(self
, FileDropTarget
)
5475 def _setCallbackInfo(*args
, **kwargs
):
5476 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5477 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5479 def OnDropFiles(*args
, **kwargs
):
5480 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5481 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5483 def OnEnter(*args
, **kwargs
):
5484 """OnEnter(self, int x, int y, int def) -> int"""
5485 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5487 def OnDragOver(*args
, **kwargs
):
5488 """OnDragOver(self, int x, int y, int def) -> int"""
5489 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5491 def OnLeave(*args
, **kwargs
):
5493 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5495 def OnDrop(*args
, **kwargs
):
5496 """OnDrop(self, int x, int y) -> bool"""
5497 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5499 def OnData(*args
, **kwargs
):
5500 """OnData(self, int x, int y, int def) -> int"""
5501 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5503 def base_OnDropFiles(*args
, **kw
):
5504 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5505 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5506 "Please use FileDropTarget.OnDropFiles instead.")
5508 def base_OnEnter(*args
, **kw
):
5509 return FileDropTarget
.OnEnter(*args
, **kw
)
5510 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5511 "Please use FileDropTarget.OnEnter instead.")
5513 def base_OnDragOver(*args
, **kw
):
5514 return FileDropTarget
.OnDragOver(*args
, **kw
)
5515 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5516 "Please use FileDropTarget.OnDragOver instead.")
5518 def base_OnLeave(*args
, **kw
):
5519 return FileDropTarget
.OnLeave(*args
, **kw
)
5520 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5521 "Please use FileDropTarget.OnLeave instead.")
5523 def base_OnDrop(*args
, **kw
):
5524 return FileDropTarget
.OnDrop(*args
, **kw
)
5525 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5526 "Please use FileDropTarget.OnDrop instead.")
5528 def base_OnData(*args
, **kw
):
5529 return FileDropTarget
.OnData(*args
, **kw
)
5530 base_OnData
= wx
._deprecated
(base_OnData
,
5531 "Please use FileDropTarget.OnData instead.")
5533 _misc_
.FileDropTarget_swigregister(FileDropTarget
)
5535 #---------------------------------------------------------------------------
5537 class Clipboard(_core
.Object
):
5539 wx.Clipboard represents the system clipboard and provides methods to
5540 copy data to it or paste data from it. Normally, you should only use
5541 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5544 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5545 clipboard. If this operation returns True, you now own the
5546 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5547 to retrieve data from the clipboard. Call `Close` to close the
5548 clipboard and relinquish ownership. You should keep the clipboard open
5551 :see: `wx.DataObject`
5554 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5555 __repr__
= _swig_repr
5556 def __init__(self
, *args
, **kwargs
):
5557 """__init__(self) -> Clipboard"""
5558 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5559 __swig_destroy__
= _misc_
.delete_Clipboard
5560 __del__
= lambda self
: None;
5561 def Open(*args
, **kwargs
):
5565 Call this function to open the clipboard before calling SetData and
5566 GetData. Call Close when you have finished with the clipboard. You
5567 should keep the clipboard open for only a very short time. Returns
5570 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5572 def Close(*args
, **kwargs
):
5576 Closes the clipboard.
5578 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5580 def IsOpened(*args
, **kwargs
):
5582 IsOpened(self) -> bool
5584 Query whether the clipboard is opened
5586 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5588 def AddData(*args
, **kwargs
):
5590 AddData(self, DataObject data) -> bool
5592 Call this function to add the data object to the clipboard. You may
5593 call this function repeatedly after having cleared the clipboard.
5594 After this function has been called, the clipboard owns the data, so
5595 do not delete the data explicitly.
5597 :see: `wx.DataObject`
5599 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5601 def SetData(*args
, **kwargs
):
5603 SetData(self, DataObject data) -> bool
5605 Set the clipboard data, this is the same as `Clear` followed by
5608 :see: `wx.DataObject`
5610 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5612 def IsSupported(*args
, **kwargs
):
5614 IsSupported(self, DataFormat format) -> bool
5616 Returns True if the given format is available in the data object(s) on
5619 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5621 def GetData(*args
, **kwargs
):
5623 GetData(self, DataObject data) -> bool
5625 Call this function to fill data with data on the clipboard, if
5626 available in the required format. Returns true on success.
5628 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5630 def Clear(*args
, **kwargs
):
5634 Clears data from the clipboard object and also the system's clipboard
5637 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5639 def Flush(*args
, **kwargs
):
5643 Flushes the clipboard: this means that the data which is currently on
5644 clipboard will stay available even after the application exits,
5645 possibly eating memory, otherwise the clipboard will be emptied on
5646 exit. Returns False if the operation is unsuccesful for any reason.
5648 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5650 def UsePrimarySelection(*args
, **kwargs
):
5652 UsePrimarySelection(self, bool primary=True)
5654 On platforms supporting it (the X11 based platforms), selects the
5655 so called PRIMARY SELECTION as the clipboard as opposed to the
5656 normal clipboard, if primary is True.
5658 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5660 def Get(*args
, **kwargs
):
5664 Returns global instance (wxTheClipboard) of the object.
5666 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5668 Get
= staticmethod(Get
)
5669 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5670 _misc_
.Clipboard_swigregister(Clipboard
)
5672 def Clipboard_Get(*args
):
5674 Clipboard_Get() -> Clipboard
5676 Returns global instance (wxTheClipboard) of the object.
5678 return _misc_
.Clipboard_Get(*args
)
5680 class _wxPyDelayedInitWrapper(object):
5681 def __init__(self
, initfunc
, *args
, **kwargs
):
5682 self
._initfunc
= initfunc
5684 self
._kwargs
= kwargs
5685 self
._instance
= None
5686 def _checkInstance(self
):
5687 if self
._instance
is None:
5689 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5690 def __getattr__(self
, name
):
5691 self
._checkInstance
()
5692 return getattr(self
._instance
, name
)
5694 self
._checkInstance
()
5695 return repr(self
._instance
)
5696 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5698 class ClipboardLocker(object):
5700 A helpful class for opening the clipboard and automatically
5701 closing it when the locker is destroyed.
5703 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5704 __repr__
= _swig_repr
5705 def __init__(self
, *args
, **kwargs
):
5707 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5709 A helpful class for opening the clipboard and automatically
5710 closing it when the locker is destroyed.
5712 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5713 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5714 __del__
= lambda self
: None;
5715 def __nonzero__(*args
, **kwargs
):
5717 __nonzero__(self) -> bool
5719 A ClipboardLocker instance evaluates to True if the clipboard was
5720 successfully opened.
5722 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5724 _misc_
.ClipboardLocker_swigregister(ClipboardLocker
)
5726 #---------------------------------------------------------------------------
5728 class VideoMode(object):
5729 """A simple struct containing video mode parameters for a display"""
5730 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5731 __repr__
= _swig_repr
5732 def __init__(self
, *args
, **kwargs
):
5734 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5736 A simple struct containing video mode parameters for a display
5738 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5739 __swig_destroy__
= _misc_
.delete_VideoMode
5740 __del__
= lambda self
: None;
5741 def Matches(*args
, **kwargs
):
5743 Matches(self, VideoMode other) -> bool
5745 Returns True if this mode matches the other one in the sense that all
5746 non-zero fields of the other mode have the same value in this
5747 one (except for refresh which is allowed to have a greater value)
5749 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5751 def GetWidth(*args
, **kwargs
):
5753 GetWidth(self) -> int
5755 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5757 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5759 def GetHeight(*args
, **kwargs
):
5761 GetHeight(self) -> int
5763 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5765 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5767 def GetDepth(*args
, **kwargs
):
5769 GetDepth(self) -> int
5771 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5772 means unspecified/known
5774 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5776 def IsOk(*args
, **kwargs
):
5780 returns true if the object has been initialized
5782 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5784 def __nonzero__(self
): return self
.IsOk()
5785 def __eq__(*args
, **kwargs
):
5786 """__eq__(self, VideoMode other) -> bool"""
5787 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5789 def __ne__(*args
, **kwargs
):
5790 """__ne__(self, VideoMode other) -> bool"""
5791 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5793 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5794 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5795 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5796 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5797 Depth
= property(GetDepth
,doc
="See `GetDepth`")
5798 Height
= property(GetHeight
,doc
="See `GetHeight`")
5799 Width
= property(GetWidth
,doc
="See `GetWidth`")
5800 _misc_
.VideoMode_swigregister(VideoMode
)
5802 class Display(object):
5803 """Represents a display/monitor attached to the system"""
5804 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5805 __repr__
= _swig_repr
5806 def __init__(self
, *args
, **kwargs
):
5808 __init__(self, size_t index=0) -> Display
5810 Set up a Display instance with the specified display. The displays
5811 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5812 and the only one which is always supported
5814 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5815 __swig_destroy__
= _misc_
.delete_Display
5816 __del__
= lambda self
: None;
5817 def GetCount(*args
, **kwargs
):
5819 GetCount() -> size_t
5821 Return the number of available displays.
5823 return _misc_
.Display_GetCount(*args
, **kwargs
)
5825 GetCount
= staticmethod(GetCount
)
5826 def GetFromPoint(*args
, **kwargs
):
5828 GetFromPoint(Point pt) -> int
5830 Find the display where the given point lies, return wx.NOT_FOUND if it
5831 doesn't belong to any display
5833 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5835 GetFromPoint
= staticmethod(GetFromPoint
)
5836 def GetFromWindow(*args
, **kwargs
):
5838 GetFromWindow(Window window) -> int
5840 Find the display where the given window lies, return wx.NOT_FOUND if
5841 it is not shown at all.
5843 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5845 GetFromWindow
= staticmethod(GetFromWindow
)
5846 def IsOk(*args
, **kwargs
):
5850 Return true if the object was initialized successfully
5852 return _misc_
.Display_IsOk(*args
, **kwargs
)
5854 def __nonzero__(self
): return self
.IsOk()
5855 def GetGeometry(*args
, **kwargs
):
5857 GetGeometry(self) -> Rect
5859 Returns the bounding rectangle of the display whose index was passed
5862 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5864 def GetClientArea(*args
, **kwargs
):
5866 GetClientArea(self) -> Rect
5868 Returns the bounding rectangle the client area of the display,
5869 i.e., without taskbars and such.
5871 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5873 def GetName(*args
, **kwargs
):
5875 GetName(self) -> String
5877 Returns the display's name. A name is not available on all platforms.
5879 return _misc_
.Display_GetName(*args
, **kwargs
)
5881 def IsPrimary(*args
, **kwargs
):
5883 IsPrimary(self) -> bool
5885 Returns True if the display is the primary display. The primary
5886 display is the one whose index is 0.
5888 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5890 def GetModes(*args
, **kwargs
):
5892 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5894 Enumerate all video modes supported by this display matching the given
5895 one (in the sense of VideoMode.Match()).
5897 As any mode matches the default value of the argument and there is
5898 always at least one video mode supported by display, the returned
5899 array is only empty for the default value of the argument if this
5900 function is not supported at all on this platform.
5902 return _misc_
.Display_GetModes(*args
, **kwargs
)
5904 def GetCurrentMode(*args
, **kwargs
):
5906 GetCurrentMode(self) -> VideoMode
5908 Get the current video mode.
5910 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5912 def ChangeMode(*args
, **kwargs
):
5914 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5916 Changes the video mode of this display to the mode specified in the
5919 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5920 behaviour is that wx.Display will reset the video mode to the default
5921 mode used by the display. On Windows, the behavior is normal.
5922 However, there are differences on other platforms. On Unix variations
5923 using X11 extensions it should behave as defined, but some
5924 irregularities may occur.
5926 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5927 nothing. This happens because Carbon no longer has access to
5928 DMUseScreenPrefs, an undocumented function that changed the video mode
5929 to the system default by using the system's 'scrn' resource.
5931 Returns True if succeeded, False otherwise
5933 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5935 def ResetMode(*args
, **kwargs
):
5939 Restore the default video mode (just a more readable synonym)
5941 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5943 ClientArea
= property(GetClientArea
,doc
="See `GetClientArea`")
5944 CurrentMode
= property(GetCurrentMode
,doc
="See `GetCurrentMode`")
5945 Geometry
= property(GetGeometry
,doc
="See `GetGeometry`")
5946 Modes
= property(GetModes
,doc
="See `GetModes`")
5947 Name
= property(GetName
,doc
="See `GetName`")
5948 _misc_
.Display_swigregister(Display
)
5949 DefaultVideoMode
= cvar
.DefaultVideoMode
5951 def Display_GetCount(*args
):
5953 Display_GetCount() -> size_t
5955 Return the number of available displays.
5957 return _misc_
.Display_GetCount(*args
)
5959 def Display_GetFromPoint(*args
, **kwargs
):
5961 Display_GetFromPoint(Point pt) -> int
5963 Find the display where the given point lies, return wx.NOT_FOUND if it
5964 doesn't belong to any display
5966 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5968 def Display_GetFromWindow(*args
, **kwargs
):
5970 Display_GetFromWindow(Window window) -> int
5972 Find the display where the given window lies, return wx.NOT_FOUND if
5973 it is not shown at all.
5975 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5977 #---------------------------------------------------------------------------
5979 class StandardPaths(object):
5981 wx.StandardPaths returns standard locations in the file system and
5982 should be used by programs to find their data files in a portable way.
5984 In the description of the methods below, the example return values are
5985 given for the Unix, Windows and Mac OS X systems, however please note
5986 that these are just examples and the actual values may differ. For
5987 example, under Windows the system administrator may change the
5988 standard directories locations, i.e. the Windows directory may be
5989 named W:\Win2003 instead of the default C:\Windows.
5991 The strings appname and username should be replaced with the value
5992 returned by `wx.App.GetAppName` and the name of the currently logged
5993 in user, respectively. The string prefix is only used under Unix and
5994 is /usr/local by default but may be changed using `SetInstallPrefix`.
5996 The directories returned by the methods of this class may or may not
5997 exist. If they don't exist, it's up to the caller to create them,
5998 wx.StandardPaths doesn't do it.
6000 Finally note that these functions only work with standardly packaged
6001 applications. I.e. under Unix you should follow the standard
6002 installation conventions and under Mac you should create your
6003 application bundle according to the Apple guidelines. Again, this
6004 class doesn't help you to do it.
6006 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6007 def __init__(self
): raise AttributeError, "No constructor defined"
6008 __repr__
= _swig_repr
6009 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
6010 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
6011 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
6012 def Get(*args
, **kwargs
):
6014 Get() -> StandardPaths
6016 Return the global standard paths singleton
6018 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
6020 Get
= staticmethod(Get
)
6021 def GetConfigDir(*args
, **kwargs
):
6023 GetConfigDir(self) -> String
6025 Return the directory with system config files: /etc under Unix,
6026 'c:\Documents and Settings\All Users\Application Data' under Windows,
6027 /Library/Preferences for Mac
6029 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
6031 def GetUserConfigDir(*args
, **kwargs
):
6033 GetUserConfigDir(self) -> String
6035 Return the directory for the user config files: $HOME under Unix,
6036 'c:\Documents and Settings\username' under Windows, and
6037 ~/Library/Preferences under Mac
6039 Only use this if you have a single file to put there, otherwise
6040 `GetUserDataDir` is more appropriate
6042 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
6044 def GetDataDir(*args
, **kwargs
):
6046 GetDataDir(self) -> String
6048 Return the location of the application's global, (i.e. not
6049 user-specific,) data files: prefix/share/appname under Unix,
6050 'c:\Program Files\appname' under Windows,
6051 appname.app/Contents/SharedSupport app bundle directory under Mac.
6053 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
6055 def GetLocalDataDir(*args
, **kwargs
):
6057 GetLocalDataDir(self) -> String
6059 Return the location for application data files which are
6060 host-specific. Same as `GetDataDir` except under Unix where it is
6063 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
6065 def GetUserDataDir(*args
, **kwargs
):
6067 GetUserDataDir(self) -> String
6069 Return the directory for the user-dependent application data files:
6070 $HOME/.appname under Unix, c:\Documents and
6071 Settings\username\Application Data\appname under Windows and
6072 ~/Library/Application Support/appname under Mac
6074 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
6076 def GetUserLocalDataDir(*args
, **kwargs
):
6078 GetUserLocalDataDir(self) -> String
6080 Return the directory for user data files which shouldn't be shared
6081 with the other machines
6083 Same as `GetUserDataDir` for all platforms except Windows where it is
6084 the 'Local Settings\Application Data\appname' directory.
6086 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
6088 def GetPluginsDir(*args
, **kwargs
):
6090 GetPluginsDir(self) -> String
6092 Return the directory where the loadable modules (plugins) live:
6093 prefix/lib/appname under Unix, program directory under Windows and
6094 Contents/Plugins app bundle subdirectory under Mac
6096 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
6098 def GetResourcesDir(*args
, **kwargs
):
6100 GetResourcesDir(self) -> String
6102 Get resources directory. Resources are auxiliary files used by the
6103 application and include things like image and sound files.
6105 Same as `GetDataDir` for all platforms except Mac where it returns
6106 Contents/Resources subdirectory of the app bundle.
6108 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
6110 def GetLocalizedResourcesDir(*args
, **kwargs
):
6112 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
6114 Get localized resources directory containing the resource files of the
6115 specified category for the given language.
6117 In general this is just GetResourcesDir()/lang under Windows and Unix
6118 and GetResourcesDir()/lang.lproj under Mac but is something quite
6119 different under Unix for the message catalog category (namely the
6120 standard prefix/share/locale/lang/LC_MESSAGES.)
6122 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
6124 def GetDocumentsDir(*args
, **kwargs
):
6126 GetDocumentsDir(self) -> String
6128 Return the Documents directory for the current user.
6130 C:\Documents and Settings\username\Documents under Windows,
6131 $HOME under Unix and ~/Documents under Mac
6133 return _misc_
.StandardPaths_GetDocumentsDir(*args
, **kwargs
)
6135 def SetInstallPrefix(*args
, **kwargs
):
6137 SetInstallPrefix(self, String prefix)
6139 Set the program installation directory which is /usr/local by default.
6140 This value will be used by other methods such as `GetDataDir` and
6141 `GetPluginsDir` as the prefix for what they return. (This function
6142 only has meaning on Unix systems.)
6144 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
6146 def GetInstallPrefix(*args
, **kwargs
):
6148 GetInstallPrefix(self) -> String
6150 Get the program installation prefix. The default is the prefix where
6151 Python is installed. (This function only has meaning on Unix systems.)
6153 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
6155 _misc_
.StandardPaths_swigregister(StandardPaths
)
6157 def StandardPaths_Get(*args
):
6159 StandardPaths_Get() -> StandardPaths
6161 Return the global standard paths singleton
6163 return _misc_
.StandardPaths_Get(*args
)
6165 #---------------------------------------------------------------------------
6167 POWER_SOCKET
= _misc_
.POWER_SOCKET
6168 POWER_BATTERY
= _misc_
.POWER_BATTERY
6169 POWER_UNKNOWN
= _misc_
.POWER_UNKNOWN
6170 BATTERY_NORMAL_STATE
= _misc_
.BATTERY_NORMAL_STATE
6171 BATTERY_LOW_STATE
= _misc_
.BATTERY_LOW_STATE
6172 BATTERY_CRITICAL_STATE
= _misc_
.BATTERY_CRITICAL_STATE
6173 BATTERY_SHUTDOWN_STATE
= _misc_
.BATTERY_SHUTDOWN_STATE
6174 BATTERY_UNKNOWN_STATE
= _misc_
.BATTERY_UNKNOWN_STATE
6175 class PowerEvent(_core
.Event
):
6177 wx.PowerEvent is generated when the system online status changes.
6178 Currently this is only implemented for Windows.
6180 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6181 __repr__
= _swig_repr
6182 def __init__(self
, *args
, **kwargs
):
6184 __init__(self, EventType evtType) -> PowerEvent
6186 wx.PowerEvent is generated when the system online status changes.
6187 Currently this is only implemented for Windows.
6189 _misc_
.PowerEvent_swiginit(self
,_misc_
.new_PowerEvent(*args
, **kwargs
))
6190 def Veto(*args
, **kwargs
):
6192 return _misc_
.PowerEvent_Veto(*args
, **kwargs
)
6194 def IsVetoed(*args
, **kwargs
):
6195 """IsVetoed(self) -> bool"""
6196 return _misc_
.PowerEvent_IsVetoed(*args
, **kwargs
)
6198 _misc_
.PowerEvent_swigregister(PowerEvent
)
6200 wxEVT_POWER_SUSPENDING
= _misc_
.wxEVT_POWER_SUSPENDING
6201 wxEVT_POWER_SUSPENDED
= _misc_
.wxEVT_POWER_SUSPENDED
6202 wxEVT_POWER_SUSPEND_CANCEL
= _misc_
.wxEVT_POWER_SUSPEND_CANCEL
6203 wxEVT_POWER_RESUME
= _misc_
.wxEVT_POWER_RESUME
6204 EVT_POWER_SUSPENDING
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDING
, 1 )
6205 EVT_POWER_SUSPENDED
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDED
, 1 )
6206 EVT_POWER_SUSPEND_CANCEL
= wx
.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL
, 1 )
6207 EVT_POWER_RESUME
= wx
.PyEventBinder( wxEVT_POWER_RESUME
, 1 )
6210 def GetPowerType(*args
):
6212 GetPowerType() -> int
6214 return the current system power state: online or offline
6216 return _misc_
.GetPowerType(*args
)
6218 def GetBatteryState(*args
):
6220 GetBatteryState() -> int
6222 return approximate battery state
6224 return _misc_
.GetBatteryState(*args
)