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 GetToolkitMajorVersion(*args
, **kwargs
):
1112 """GetToolkitMajorVersion(self) -> int"""
1113 return _misc_
.PlatformInformation_GetToolkitMajorVersion(*args
, **kwargs
)
1115 def GetToolkitMinorVersion(*args
, **kwargs
):
1116 """GetToolkitMinorVersion(self) -> int"""
1117 return _misc_
.PlatformInformation_GetToolkitMinorVersion(*args
, **kwargs
)
1119 def IsUsingUniversalWidgets(*args
, **kwargs
):
1120 """IsUsingUniversalWidgets(self) -> bool"""
1121 return _misc_
.PlatformInformation_IsUsingUniversalWidgets(*args
, **kwargs
)
1123 def GetOperatingSystemId(*args
, **kwargs
):
1124 """GetOperatingSystemId(self) -> int"""
1125 return _misc_
.PlatformInformation_GetOperatingSystemId(*args
, **kwargs
)
1127 def GetPortId(*args
, **kwargs
):
1128 """GetPortId(self) -> int"""
1129 return _misc_
.PlatformInformation_GetPortId(*args
, **kwargs
)
1131 def GetArchitecture(*args
, **kwargs
):
1132 """GetArchitecture(self) -> int"""
1133 return _misc_
.PlatformInformation_GetArchitecture(*args
, **kwargs
)
1135 def GetEndianness(*args
, **kwargs
):
1136 """GetEndianness(self) -> int"""
1137 return _misc_
.PlatformInformation_GetEndianness(*args
, **kwargs
)
1139 def GetOperatingSystemFamilyName(*args
, **kwargs
):
1140 """GetOperatingSystemFamilyName(self) -> String"""
1141 return _misc_
.PlatformInformation_GetOperatingSystemFamilyName(*args
, **kwargs
)
1143 def GetOperatingSystemIdName(*args
, **kwargs
):
1144 """GetOperatingSystemIdName(self) -> String"""
1145 return _misc_
.PlatformInformation_GetOperatingSystemIdName(*args
, **kwargs
)
1147 def GetPortIdName(*args
, **kwargs
):
1148 """GetPortIdName(self) -> String"""
1149 return _misc_
.PlatformInformation_GetPortIdName(*args
, **kwargs
)
1151 def GetPortIdShortName(*args
, **kwargs
):
1152 """GetPortIdShortName(self) -> String"""
1153 return _misc_
.PlatformInformation_GetPortIdShortName(*args
, **kwargs
)
1155 def GetArchName(*args
, **kwargs
):
1156 """GetArchName(self) -> String"""
1157 return _misc_
.PlatformInformation_GetArchName(*args
, **kwargs
)
1159 def GetEndiannessName(*args
, **kwargs
):
1160 """GetEndiannessName(self) -> String"""
1161 return _misc_
.PlatformInformation_GetEndiannessName(*args
, **kwargs
)
1163 def SetOSVersion(*args
, **kwargs
):
1164 """SetOSVersion(self, int major, int minor)"""
1165 return _misc_
.PlatformInformation_SetOSVersion(*args
, **kwargs
)
1167 def SetToolkitVersion(*args
, **kwargs
):
1168 """SetToolkitVersion(self, int major, int minor)"""
1169 return _misc_
.PlatformInformation_SetToolkitVersion(*args
, **kwargs
)
1171 def SetOperatingSystemId(*args
, **kwargs
):
1172 """SetOperatingSystemId(self, int n)"""
1173 return _misc_
.PlatformInformation_SetOperatingSystemId(*args
, **kwargs
)
1175 def SetPortId(*args
, **kwargs
):
1176 """SetPortId(self, int n)"""
1177 return _misc_
.PlatformInformation_SetPortId(*args
, **kwargs
)
1179 def SetArchitecture(*args
, **kwargs
):
1180 """SetArchitecture(self, int n)"""
1181 return _misc_
.PlatformInformation_SetArchitecture(*args
, **kwargs
)
1183 def SetEndianness(*args
, **kwargs
):
1184 """SetEndianness(self, int n)"""
1185 return _misc_
.PlatformInformation_SetEndianness(*args
, **kwargs
)
1187 def IsOk(*args
, **kwargs
):
1188 """IsOk(self) -> bool"""
1189 return _misc_
.PlatformInformation_IsOk(*args
, **kwargs
)
1191 ArchName
= property(GetArchName
,doc
="See `GetArchName`")
1192 Architecture
= property(GetArchitecture
,SetArchitecture
,doc
="See `GetArchitecture` and `SetArchitecture`")
1193 Endianness
= property(GetEndianness
,SetEndianness
,doc
="See `GetEndianness` and `SetEndianness`")
1194 EndiannessName
= property(GetEndiannessName
,doc
="See `GetEndiannessName`")
1195 OSMajorVersion
= property(GetOSMajorVersion
,doc
="See `GetOSMajorVersion`")
1196 OSMinorVersion
= property(GetOSMinorVersion
,doc
="See `GetOSMinorVersion`")
1197 OperatingSystemFamilyName
= property(GetOperatingSystemFamilyName
,doc
="See `GetOperatingSystemFamilyName`")
1198 OperatingSystemId
= property(GetOperatingSystemId
,SetOperatingSystemId
,doc
="See `GetOperatingSystemId` and `SetOperatingSystemId`")
1199 OperatingSystemIdName
= property(GetOperatingSystemIdName
,doc
="See `GetOperatingSystemIdName`")
1200 PortId
= property(GetPortId
,SetPortId
,doc
="See `GetPortId` and `SetPortId`")
1201 PortIdName
= property(GetPortIdName
,doc
="See `GetPortIdName`")
1202 PortIdShortName
= property(GetPortIdShortName
,doc
="See `GetPortIdShortName`")
1203 ToolkitMajorVersion
= property(GetToolkitMajorVersion
,doc
="See `GetToolkitMajorVersion`")
1204 ToolkitMinorVersion
= property(GetToolkitMinorVersion
,doc
="See `GetToolkitMinorVersion`")
1205 _misc_
.PlatformInformation_swigregister(PlatformInformation
)
1208 def DrawWindowOnDC(*args
, **kwargs
):
1209 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1210 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1211 #---------------------------------------------------------------------------
1213 class TipProvider(object):
1214 """Proxy of C++ TipProvider class"""
1215 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1216 def __init__(self
): raise AttributeError, "No constructor defined"
1217 __repr__
= _swig_repr
1218 __swig_destroy__
= _misc_
.delete_TipProvider
1219 __del__
= lambda self
: None;
1220 def GetTip(*args
, **kwargs
):
1221 """GetTip(self) -> String"""
1222 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1224 def GetCurrentTip(*args
, **kwargs
):
1225 """GetCurrentTip(self) -> size_t"""
1226 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1228 def PreprocessTip(*args
, **kwargs
):
1229 """PreprocessTip(self, String tip) -> String"""
1230 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1232 CurrentTip
= property(GetCurrentTip
,doc
="See `GetCurrentTip`")
1233 Tip
= property(GetTip
,doc
="See `GetTip`")
1234 _misc_
.TipProvider_swigregister(TipProvider
)
1236 class PyTipProvider(TipProvider
):
1237 """Proxy of C++ PyTipProvider class"""
1238 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1239 __repr__
= _swig_repr
1240 def __init__(self
, *args
, **kwargs
):
1241 """__init__(self, size_t currentTip) -> PyTipProvider"""
1242 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1243 self
._setCallbackInfo
(self
, PyTipProvider
)
1245 def _setCallbackInfo(*args
, **kwargs
):
1246 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1247 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1249 _misc_
.PyTipProvider_swigregister(PyTipProvider
)
1252 def ShowTip(*args
, **kwargs
):
1253 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1254 return _misc_
.ShowTip(*args
, **kwargs
)
1256 def CreateFileTipProvider(*args
, **kwargs
):
1257 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1258 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1259 #---------------------------------------------------------------------------
1261 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1262 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1263 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1264 class Timer(_core
.EvtHandler
):
1265 """Proxy of C++ Timer class"""
1266 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1267 __repr__
= _swig_repr
1268 def __init__(self
, *args
, **kwargs
):
1269 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1270 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1271 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1273 __swig_destroy__
= _misc_
.delete_Timer
1274 __del__
= lambda self
: None;
1275 def _setCallbackInfo(*args
, **kwargs
):
1276 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1277 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1279 def SetOwner(*args
, **kwargs
):
1280 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1281 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1283 def GetOwner(*args
, **kwargs
):
1284 """GetOwner(self) -> EvtHandler"""
1285 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1287 def Start(*args
, **kwargs
):
1288 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1289 return _misc_
.Timer_Start(*args
, **kwargs
)
1291 def Stop(*args
, **kwargs
):
1293 return _misc_
.Timer_Stop(*args
, **kwargs
)
1295 def Notify(*args
, **kwargs
):
1297 return _misc_
.Timer_Notify(*args
, **kwargs
)
1299 def IsRunning(*args
, **kwargs
):
1300 """IsRunning(self) -> bool"""
1301 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1303 def GetInterval(*args
, **kwargs
):
1304 """GetInterval(self) -> int"""
1305 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1307 def GetId(*args
, **kwargs
):
1308 """GetId(self) -> int"""
1309 return _misc_
.Timer_GetId(*args
, **kwargs
)
1311 def IsOneShot(*args
, **kwargs
):
1312 """IsOneShot(self) -> bool"""
1313 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1316 """NO-OP: Timers must be destroyed by normal reference counting"""
1319 Id
= property(GetId
,doc
="See `GetId`")
1320 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1321 Owner
= property(GetOwner
,SetOwner
,doc
="See `GetOwner` and `SetOwner`")
1322 _misc_
.Timer_swigregister(Timer
)
1324 # For backwards compatibility with 2.4
1325 class PyTimer(Timer
):
1326 def __init__(self
, notify
):
1327 Timer
.__init
__(self
)
1328 self
.notify
= notify
1335 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1338 class TimerEvent(_core
.Event
):
1339 """Proxy of C++ TimerEvent class"""
1340 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1341 __repr__
= _swig_repr
1342 def __init__(self
, *args
, **kwargs
):
1343 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1344 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1345 def GetInterval(*args
, **kwargs
):
1346 """GetInterval(self) -> int"""
1347 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1349 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1350 _misc_
.TimerEvent_swigregister(TimerEvent
)
1352 class TimerRunner(object):
1353 """Proxy of C++ TimerRunner class"""
1354 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1355 __repr__
= _swig_repr
1356 def __init__(self
, *args
):
1358 __init__(self, wxTimer timer) -> TimerRunner
1359 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1361 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1362 __swig_destroy__
= _misc_
.delete_TimerRunner
1363 __del__
= lambda self
: None;
1364 def Start(*args
, **kwargs
):
1365 """Start(self, int milli, bool oneShot=False)"""
1366 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1368 _misc_
.TimerRunner_swigregister(TimerRunner
)
1370 #---------------------------------------------------------------------------
1372 LOG_FatalError
= _misc_
.LOG_FatalError
1373 LOG_Error
= _misc_
.LOG_Error
1374 LOG_Warning
= _misc_
.LOG_Warning
1375 LOG_Message
= _misc_
.LOG_Message
1376 LOG_Status
= _misc_
.LOG_Status
1377 LOG_Info
= _misc_
.LOG_Info
1378 LOG_Debug
= _misc_
.LOG_Debug
1379 LOG_Trace
= _misc_
.LOG_Trace
1380 LOG_Progress
= _misc_
.LOG_Progress
1381 LOG_User
= _misc_
.LOG_User
1382 LOG_Max
= _misc_
.LOG_Max
1383 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1384 TRACE_Messages
= _misc_
.TRACE_Messages
1385 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1386 TRACE_RefCount
= _misc_
.TRACE_RefCount
1387 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1388 TraceMemAlloc
= _misc_
.TraceMemAlloc
1389 TraceMessages
= _misc_
.TraceMessages
1390 TraceResAlloc
= _misc_
.TraceResAlloc
1391 TraceRefCount
= _misc_
.TraceRefCount
1392 TraceOleCalls
= _misc_
.TraceOleCalls
1394 """Proxy of C++ Log class"""
1395 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1396 __repr__
= _swig_repr
1397 def __init__(self
, *args
, **kwargs
):
1398 """__init__(self) -> Log"""
1399 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1400 __swig_destroy__
= _misc_
.delete_Log
1401 __del__
= lambda self
: None;
1402 def IsEnabled(*args
, **kwargs
):
1403 """IsEnabled() -> bool"""
1404 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1406 IsEnabled
= staticmethod(IsEnabled
)
1407 def EnableLogging(*args
, **kwargs
):
1408 """EnableLogging(bool doIt=True) -> bool"""
1409 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1411 EnableLogging
= staticmethod(EnableLogging
)
1412 def OnLog(*args
, **kwargs
):
1413 """OnLog(LogLevel level, wxChar szString, time_t t)"""
1414 return _misc_
.Log_OnLog(*args
, **kwargs
)
1416 OnLog
= staticmethod(OnLog
)
1417 def Flush(*args
, **kwargs
):
1419 return _misc_
.Log_Flush(*args
, **kwargs
)
1421 def FlushActive(*args
, **kwargs
):
1423 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1425 FlushActive
= staticmethod(FlushActive
)
1426 def GetActiveTarget(*args
, **kwargs
):
1427 """GetActiveTarget() -> Log"""
1428 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1430 GetActiveTarget
= staticmethod(GetActiveTarget
)
1431 def SetActiveTarget(*args
, **kwargs
):
1432 """SetActiveTarget(Log pLogger) -> Log"""
1433 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1435 SetActiveTarget
= staticmethod(SetActiveTarget
)
1436 def Suspend(*args
, **kwargs
):
1438 return _misc_
.Log_Suspend(*args
, **kwargs
)
1440 Suspend
= staticmethod(Suspend
)
1441 def Resume(*args
, **kwargs
):
1443 return _misc_
.Log_Resume(*args
, **kwargs
)
1445 Resume
= staticmethod(Resume
)
1446 def SetVerbose(*args
, **kwargs
):
1447 """SetVerbose(bool bVerbose=True)"""
1448 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1450 SetVerbose
= staticmethod(SetVerbose
)
1451 def SetLogLevel(*args
, **kwargs
):
1452 """SetLogLevel(LogLevel logLevel)"""
1453 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1455 SetLogLevel
= staticmethod(SetLogLevel
)
1456 def DontCreateOnDemand(*args
, **kwargs
):
1457 """DontCreateOnDemand()"""
1458 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1460 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1461 def SetRepetitionCounting(*args
, **kwargs
):
1462 """SetRepetitionCounting(bool bRepetCounting=True)"""
1463 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1465 SetRepetitionCounting
= staticmethod(SetRepetitionCounting
)
1466 def GetRepetitionCounting(*args
, **kwargs
):
1467 """GetRepetitionCounting() -> bool"""
1468 return _misc_
.Log_GetRepetitionCounting(*args
, **kwargs
)
1470 GetRepetitionCounting
= staticmethod(GetRepetitionCounting
)
1471 def SetTraceMask(*args
, **kwargs
):
1472 """SetTraceMask(TraceMask ulMask)"""
1473 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1475 SetTraceMask
= staticmethod(SetTraceMask
)
1476 def AddTraceMask(*args
, **kwargs
):
1477 """AddTraceMask(String str)"""
1478 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1480 AddTraceMask
= staticmethod(AddTraceMask
)
1481 def RemoveTraceMask(*args
, **kwargs
):
1482 """RemoveTraceMask(String str)"""
1483 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1485 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1486 def ClearTraceMasks(*args
, **kwargs
):
1487 """ClearTraceMasks()"""
1488 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1490 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1491 def GetTraceMasks(*args
, **kwargs
):
1492 """GetTraceMasks() -> wxArrayString"""
1493 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1495 GetTraceMasks
= staticmethod(GetTraceMasks
)
1496 def SetTimestamp(*args
, **kwargs
):
1497 """SetTimestamp(wxChar ts)"""
1498 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1500 SetTimestamp
= staticmethod(SetTimestamp
)
1501 def GetVerbose(*args
, **kwargs
):
1502 """GetVerbose() -> bool"""
1503 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1505 GetVerbose
= staticmethod(GetVerbose
)
1506 def GetTraceMask(*args
, **kwargs
):
1507 """GetTraceMask() -> TraceMask"""
1508 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1510 GetTraceMask
= staticmethod(GetTraceMask
)
1511 def IsAllowedTraceMask(*args
, **kwargs
):
1512 """IsAllowedTraceMask(wxChar mask) -> bool"""
1513 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1515 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1516 def GetLogLevel(*args
, **kwargs
):
1517 """GetLogLevel() -> LogLevel"""
1518 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1520 GetLogLevel
= staticmethod(GetLogLevel
)
1521 def GetTimestamp(*args
, **kwargs
):
1522 """GetTimestamp() -> wxChar"""
1523 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1525 GetTimestamp
= staticmethod(GetTimestamp
)
1526 def TimeStamp(*args
, **kwargs
):
1527 """TimeStamp() -> String"""
1528 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1530 TimeStamp
= staticmethod(TimeStamp
)
1531 def Destroy(*args
, **kwargs
):
1533 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1537 _misc_
.Log_swigregister(Log
)
1539 def Log_IsEnabled(*args
):
1540 """Log_IsEnabled() -> bool"""
1541 return _misc_
.Log_IsEnabled(*args
)
1543 def Log_EnableLogging(*args
, **kwargs
):
1544 """Log_EnableLogging(bool doIt=True) -> bool"""
1545 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1547 def Log_OnLog(*args
, **kwargs
):
1548 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1549 return _misc_
.Log_OnLog(*args
, **kwargs
)
1551 def Log_FlushActive(*args
):
1552 """Log_FlushActive()"""
1553 return _misc_
.Log_FlushActive(*args
)
1555 def Log_GetActiveTarget(*args
):
1556 """Log_GetActiveTarget() -> Log"""
1557 return _misc_
.Log_GetActiveTarget(*args
)
1559 def Log_SetActiveTarget(*args
, **kwargs
):
1560 """Log_SetActiveTarget(Log pLogger) -> Log"""
1561 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1563 def Log_Suspend(*args
):
1565 return _misc_
.Log_Suspend(*args
)
1567 def Log_Resume(*args
):
1569 return _misc_
.Log_Resume(*args
)
1571 def Log_SetVerbose(*args
, **kwargs
):
1572 """Log_SetVerbose(bool bVerbose=True)"""
1573 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1575 def Log_SetLogLevel(*args
, **kwargs
):
1576 """Log_SetLogLevel(LogLevel logLevel)"""
1577 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1579 def Log_DontCreateOnDemand(*args
):
1580 """Log_DontCreateOnDemand()"""
1581 return _misc_
.Log_DontCreateOnDemand(*args
)
1583 def Log_SetRepetitionCounting(*args
, **kwargs
):
1584 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1585 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1587 def Log_GetRepetitionCounting(*args
):
1588 """Log_GetRepetitionCounting() -> bool"""
1589 return _misc_
.Log_GetRepetitionCounting(*args
)
1591 def Log_SetTraceMask(*args
, **kwargs
):
1592 """Log_SetTraceMask(TraceMask ulMask)"""
1593 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1595 def Log_AddTraceMask(*args
, **kwargs
):
1596 """Log_AddTraceMask(String str)"""
1597 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1599 def Log_RemoveTraceMask(*args
, **kwargs
):
1600 """Log_RemoveTraceMask(String str)"""
1601 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1603 def Log_ClearTraceMasks(*args
):
1604 """Log_ClearTraceMasks()"""
1605 return _misc_
.Log_ClearTraceMasks(*args
)
1607 def Log_GetTraceMasks(*args
):
1608 """Log_GetTraceMasks() -> wxArrayString"""
1609 return _misc_
.Log_GetTraceMasks(*args
)
1611 def Log_SetTimestamp(*args
, **kwargs
):
1612 """Log_SetTimestamp(wxChar ts)"""
1613 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1615 def Log_GetVerbose(*args
):
1616 """Log_GetVerbose() -> bool"""
1617 return _misc_
.Log_GetVerbose(*args
)
1619 def Log_GetTraceMask(*args
):
1620 """Log_GetTraceMask() -> TraceMask"""
1621 return _misc_
.Log_GetTraceMask(*args
)
1623 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1624 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1625 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1627 def Log_GetLogLevel(*args
):
1628 """Log_GetLogLevel() -> LogLevel"""
1629 return _misc_
.Log_GetLogLevel(*args
)
1631 def Log_GetTimestamp(*args
):
1632 """Log_GetTimestamp() -> wxChar"""
1633 return _misc_
.Log_GetTimestamp(*args
)
1635 def Log_TimeStamp(*args
):
1636 """Log_TimeStamp() -> String"""
1637 return _misc_
.Log_TimeStamp(*args
)
1639 class LogStderr(Log
):
1640 """Proxy of C++ LogStderr class"""
1641 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1642 __repr__
= _swig_repr
1643 def __init__(self
, *args
, **kwargs
):
1644 """__init__(self) -> LogStderr"""
1645 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1646 _misc_
.LogStderr_swigregister(LogStderr
)
1648 class LogTextCtrl(Log
):
1649 """Proxy of C++ LogTextCtrl class"""
1650 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1651 __repr__
= _swig_repr
1652 def __init__(self
, *args
, **kwargs
):
1653 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1654 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1655 _misc_
.LogTextCtrl_swigregister(LogTextCtrl
)
1658 """Proxy of C++ LogGui class"""
1659 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1660 __repr__
= _swig_repr
1661 def __init__(self
, *args
, **kwargs
):
1662 """__init__(self) -> LogGui"""
1663 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1664 _misc_
.LogGui_swigregister(LogGui
)
1666 class LogWindow(Log
):
1667 """Proxy of C++ LogWindow class"""
1668 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1669 __repr__
= _swig_repr
1670 def __init__(self
, *args
, **kwargs
):
1671 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1672 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1673 def Show(*args
, **kwargs
):
1674 """Show(self, bool bShow=True)"""
1675 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1677 def GetFrame(*args
, **kwargs
):
1678 """GetFrame(self) -> wxFrame"""
1679 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1681 def GetOldLog(*args
, **kwargs
):
1682 """GetOldLog(self) -> Log"""
1683 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1685 def IsPassingMessages(*args
, **kwargs
):
1686 """IsPassingMessages(self) -> bool"""
1687 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1689 def PassMessages(*args
, **kwargs
):
1690 """PassMessages(self, bool bDoPass)"""
1691 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1693 Frame
= property(GetFrame
,doc
="See `GetFrame`")
1694 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1695 _misc_
.LogWindow_swigregister(LogWindow
)
1697 class LogChain(Log
):
1698 """Proxy of C++ LogChain class"""
1699 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1700 __repr__
= _swig_repr
1701 def __init__(self
, *args
, **kwargs
):
1702 """__init__(self, Log logger) -> LogChain"""
1703 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1704 def SetLog(*args
, **kwargs
):
1705 """SetLog(self, Log logger)"""
1706 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1708 def PassMessages(*args
, **kwargs
):
1709 """PassMessages(self, bool bDoPass)"""
1710 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1712 def IsPassingMessages(*args
, **kwargs
):
1713 """IsPassingMessages(self) -> bool"""
1714 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1716 def GetOldLog(*args
, **kwargs
):
1717 """GetOldLog(self) -> Log"""
1718 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1720 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1721 _misc_
.LogChain_swigregister(LogChain
)
1723 class LogBuffer(Log
):
1724 """Proxy of C++ LogBuffer class"""
1725 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1726 __repr__
= _swig_repr
1727 def __init__(self
, *args
, **kwargs
):
1728 """__init__(self) -> LogBuffer"""
1729 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1730 def GetBuffer(*args
, **kwargs
):
1731 """GetBuffer(self) -> String"""
1732 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1734 Buffer
= property(GetBuffer
,doc
="See `GetBuffer`")
1735 _misc_
.LogBuffer_swigregister(LogBuffer
)
1738 def SysErrorCode(*args
):
1739 """SysErrorCode() -> unsigned long"""
1740 return _misc_
.SysErrorCode(*args
)
1742 def SysErrorMsg(*args
, **kwargs
):
1743 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1744 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1746 def LogFatalError(*args
, **kwargs
):
1747 """LogFatalError(String msg)"""
1748 return _misc_
.LogFatalError(*args
, **kwargs
)
1750 def LogError(*args
, **kwargs
):
1751 """LogError(String msg)"""
1752 return _misc_
.LogError(*args
, **kwargs
)
1754 def LogWarning(*args
, **kwargs
):
1755 """LogWarning(String msg)"""
1756 return _misc_
.LogWarning(*args
, **kwargs
)
1758 def LogMessage(*args
, **kwargs
):
1759 """LogMessage(String msg)"""
1760 return _misc_
.LogMessage(*args
, **kwargs
)
1762 def LogInfo(*args
, **kwargs
):
1763 """LogInfo(String msg)"""
1764 return _misc_
.LogInfo(*args
, **kwargs
)
1766 def LogDebug(*args
, **kwargs
):
1767 """LogDebug(String msg)"""
1768 return _misc_
.LogDebug(*args
, **kwargs
)
1770 def LogVerbose(*args
, **kwargs
):
1771 """LogVerbose(String msg)"""
1772 return _misc_
.LogVerbose(*args
, **kwargs
)
1774 def LogStatus(*args
, **kwargs
):
1775 """LogStatus(String msg)"""
1776 return _misc_
.LogStatus(*args
, **kwargs
)
1778 def LogStatusFrame(*args
, **kwargs
):
1779 """LogStatusFrame(wxFrame pFrame, String msg)"""
1780 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1782 def LogSysError(*args
, **kwargs
):
1783 """LogSysError(String msg)"""
1784 return _misc_
.LogSysError(*args
, **kwargs
)
1786 def LogGeneric(*args
, **kwargs
):
1787 """LogGeneric(unsigned long level, String msg)"""
1788 return _misc_
.LogGeneric(*args
, **kwargs
)
1790 def SafeShowMessage(*args
, **kwargs
):
1791 """SafeShowMessage(String title, String text)"""
1792 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1793 class LogNull(object):
1794 """Proxy of C++ LogNull class"""
1795 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1796 __repr__
= _swig_repr
1797 def __init__(self
, *args
, **kwargs
):
1798 """__init__(self) -> LogNull"""
1799 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1800 __swig_destroy__
= _misc_
.delete_LogNull
1801 __del__
= lambda self
: None;
1802 _misc_
.LogNull_swigregister(LogNull
)
1804 def LogTrace(*args
):
1806 LogTrace(unsigned long mask, String msg)
1807 LogTrace(String mask, String msg)
1809 return _misc_
.LogTrace(*args
)
1812 """Proxy of C++ PyLog class"""
1813 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1814 __repr__
= _swig_repr
1815 def __init__(self
, *args
, **kwargs
):
1816 """__init__(self) -> PyLog"""
1817 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1818 self
._setCallbackInfo
(self
, PyLog
)
1820 def _setCallbackInfo(*args
, **kwargs
):
1821 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1822 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1824 _misc_
.PyLog_swigregister(PyLog
)
1826 #---------------------------------------------------------------------------
1828 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1829 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1830 KILL_OK
= _misc_
.KILL_OK
1831 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1832 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1833 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1834 KILL_ERROR
= _misc_
.KILL_ERROR
1835 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1836 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1837 SIGNONE
= _misc_
.SIGNONE
1838 SIGHUP
= _misc_
.SIGHUP
1839 SIGINT
= _misc_
.SIGINT
1840 SIGQUIT
= _misc_
.SIGQUIT
1841 SIGILL
= _misc_
.SIGILL
1842 SIGTRAP
= _misc_
.SIGTRAP
1843 SIGABRT
= _misc_
.SIGABRT
1844 SIGIOT
= _misc_
.SIGIOT
1845 SIGEMT
= _misc_
.SIGEMT
1846 SIGFPE
= _misc_
.SIGFPE
1847 SIGKILL
= _misc_
.SIGKILL
1848 SIGBUS
= _misc_
.SIGBUS
1849 SIGSEGV
= _misc_
.SIGSEGV
1850 SIGSYS
= _misc_
.SIGSYS
1851 SIGPIPE
= _misc_
.SIGPIPE
1852 SIGALRM
= _misc_
.SIGALRM
1853 SIGTERM
= _misc_
.SIGTERM
1854 class Process(_core
.EvtHandler
):
1855 """Proxy of C++ Process class"""
1856 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1857 __repr__
= _swig_repr
1858 def Kill(*args
, **kwargs
):
1859 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1860 return _misc_
.Process_Kill(*args
, **kwargs
)
1862 Kill
= staticmethod(Kill
)
1863 def Exists(*args
, **kwargs
):
1864 """Exists(int pid) -> bool"""
1865 return _misc_
.Process_Exists(*args
, **kwargs
)
1867 Exists
= staticmethod(Exists
)
1868 def Open(*args
, **kwargs
):
1869 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1870 return _misc_
.Process_Open(*args
, **kwargs
)
1872 Open
= staticmethod(Open
)
1873 def __init__(self
, *args
, **kwargs
):
1874 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1875 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1876 self
._setCallbackInfo
(self
, Process
)
1878 def _setCallbackInfo(*args
, **kwargs
):
1879 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1880 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1882 def OnTerminate(*args
, **kwargs
):
1883 """OnTerminate(self, int pid, int status)"""
1884 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1886 def base_OnTerminate(*args
, **kw
):
1887 return Process
.OnTerminate(*args
, **kw
)
1888 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1889 "Please use Process.OnTerminate instead.")
1891 def Redirect(*args
, **kwargs
):
1892 """Redirect(self)"""
1893 return _misc_
.Process_Redirect(*args
, **kwargs
)
1895 def IsRedirected(*args
, **kwargs
):
1896 """IsRedirected(self) -> bool"""
1897 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1899 def Detach(*args
, **kwargs
):
1901 return _misc_
.Process_Detach(*args
, **kwargs
)
1903 def GetInputStream(*args
, **kwargs
):
1904 """GetInputStream(self) -> InputStream"""
1905 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1907 def GetErrorStream(*args
, **kwargs
):
1908 """GetErrorStream(self) -> InputStream"""
1909 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1911 def GetOutputStream(*args
, **kwargs
):
1912 """GetOutputStream(self) -> OutputStream"""
1913 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1915 def CloseOutput(*args
, **kwargs
):
1916 """CloseOutput(self)"""
1917 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1919 def IsInputOpened(*args
, **kwargs
):
1920 """IsInputOpened(self) -> bool"""
1921 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1923 def IsInputAvailable(*args
, **kwargs
):
1924 """IsInputAvailable(self) -> bool"""
1925 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1927 def IsErrorAvailable(*args
, **kwargs
):
1928 """IsErrorAvailable(self) -> bool"""
1929 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1931 ErrorStream
= property(GetErrorStream
,doc
="See `GetErrorStream`")
1932 InputStream
= property(GetInputStream
,doc
="See `GetInputStream`")
1933 OutputStream
= property(GetOutputStream
,doc
="See `GetOutputStream`")
1934 InputOpened
= property(IsInputOpened
)
1935 InputAvailable
= property(IsInputAvailable
)
1936 ErrorAvailable
= property(IsErrorAvailable
)
1937 _misc_
.Process_swigregister(Process
)
1939 def Process_Kill(*args
, **kwargs
):
1940 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1941 return _misc_
.Process_Kill(*args
, **kwargs
)
1943 def Process_Exists(*args
, **kwargs
):
1944 """Process_Exists(int pid) -> bool"""
1945 return _misc_
.Process_Exists(*args
, **kwargs
)
1947 def Process_Open(*args
, **kwargs
):
1948 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1949 return _misc_
.Process_Open(*args
, **kwargs
)
1951 class ProcessEvent(_core
.Event
):
1952 """Proxy of C++ ProcessEvent class"""
1953 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1954 __repr__
= _swig_repr
1955 def __init__(self
, *args
, **kwargs
):
1956 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1957 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1958 def GetPid(*args
, **kwargs
):
1959 """GetPid(self) -> int"""
1960 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1962 def GetExitCode(*args
, **kwargs
):
1963 """GetExitCode(self) -> int"""
1964 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1966 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1967 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1968 ExitCode
= property(GetExitCode
,doc
="See `GetExitCode`")
1969 Pid
= property(GetPid
,doc
="See `GetPid`")
1970 _misc_
.ProcessEvent_swigregister(ProcessEvent
)
1972 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1973 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1975 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1976 EXEC_SYNC
= _misc_
.EXEC_SYNC
1977 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1978 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1979 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1981 def Execute(*args
, **kwargs
):
1982 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1983 return _misc_
.Execute(*args
, **kwargs
)
1985 def Kill(*args
, **kwargs
):
1986 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1987 return _misc_
.Kill(*args
, **kwargs
)
1988 #---------------------------------------------------------------------------
1990 JOYSTICK1
= _misc_
.JOYSTICK1
1991 JOYSTICK2
= _misc_
.JOYSTICK2
1992 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1993 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1994 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1995 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1996 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1997 class Joystick(object):
1998 """Proxy of C++ Joystick class"""
1999 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2000 __repr__
= _swig_repr
2001 def __init__(self
, *args
, **kwargs
):
2002 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
2003 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
2004 __swig_destroy__
= _misc_
.delete_Joystick
2005 __del__
= lambda self
: None;
2006 def GetPosition(*args
, **kwargs
):
2007 """GetPosition(self) -> Point"""
2008 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
2010 def GetZPosition(*args
, **kwargs
):
2011 """GetZPosition(self) -> int"""
2012 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
2014 def GetButtonState(*args
, **kwargs
):
2015 """GetButtonState(self) -> int"""
2016 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
2018 def GetPOVPosition(*args
, **kwargs
):
2019 """GetPOVPosition(self) -> int"""
2020 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
2022 def GetPOVCTSPosition(*args
, **kwargs
):
2023 """GetPOVCTSPosition(self) -> int"""
2024 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
2026 def GetRudderPosition(*args
, **kwargs
):
2027 """GetRudderPosition(self) -> int"""
2028 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
2030 def GetUPosition(*args
, **kwargs
):
2031 """GetUPosition(self) -> int"""
2032 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
2034 def GetVPosition(*args
, **kwargs
):
2035 """GetVPosition(self) -> int"""
2036 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
2038 def GetMovementThreshold(*args
, **kwargs
):
2039 """GetMovementThreshold(self) -> int"""
2040 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
2042 def SetMovementThreshold(*args
, **kwargs
):
2043 """SetMovementThreshold(self, int threshold)"""
2044 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
2046 def IsOk(*args
, **kwargs
):
2047 """IsOk(self) -> bool"""
2048 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
2050 def GetNumberJoysticks(*args
, **kwargs
):
2051 """GetNumberJoysticks(self) -> int"""
2052 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
2054 def GetManufacturerId(*args
, **kwargs
):
2055 """GetManufacturerId(self) -> int"""
2056 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
2058 def GetProductId(*args
, **kwargs
):
2059 """GetProductId(self) -> int"""
2060 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
2062 def GetProductName(*args
, **kwargs
):
2063 """GetProductName(self) -> String"""
2064 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
2066 def GetXMin(*args
, **kwargs
):
2067 """GetXMin(self) -> int"""
2068 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
2070 def GetYMin(*args
, **kwargs
):
2071 """GetYMin(self) -> int"""
2072 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
2074 def GetZMin(*args
, **kwargs
):
2075 """GetZMin(self) -> int"""
2076 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
2078 def GetXMax(*args
, **kwargs
):
2079 """GetXMax(self) -> int"""
2080 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
2082 def GetYMax(*args
, **kwargs
):
2083 """GetYMax(self) -> int"""
2084 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
2086 def GetZMax(*args
, **kwargs
):
2087 """GetZMax(self) -> int"""
2088 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
2090 def GetNumberButtons(*args
, **kwargs
):
2091 """GetNumberButtons(self) -> int"""
2092 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
2094 def GetNumberAxes(*args
, **kwargs
):
2095 """GetNumberAxes(self) -> int"""
2096 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
2098 def GetMaxButtons(*args
, **kwargs
):
2099 """GetMaxButtons(self) -> int"""
2100 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
2102 def GetMaxAxes(*args
, **kwargs
):
2103 """GetMaxAxes(self) -> int"""
2104 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
2106 def GetPollingMin(*args
, **kwargs
):
2107 """GetPollingMin(self) -> int"""
2108 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
2110 def GetPollingMax(*args
, **kwargs
):
2111 """GetPollingMax(self) -> int"""
2112 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
2114 def GetRudderMin(*args
, **kwargs
):
2115 """GetRudderMin(self) -> int"""
2116 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
2118 def GetRudderMax(*args
, **kwargs
):
2119 """GetRudderMax(self) -> int"""
2120 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
2122 def GetUMin(*args
, **kwargs
):
2123 """GetUMin(self) -> int"""
2124 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
2126 def GetUMax(*args
, **kwargs
):
2127 """GetUMax(self) -> int"""
2128 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
2130 def GetVMin(*args
, **kwargs
):
2131 """GetVMin(self) -> int"""
2132 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
2134 def GetVMax(*args
, **kwargs
):
2135 """GetVMax(self) -> int"""
2136 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
2138 def HasRudder(*args
, **kwargs
):
2139 """HasRudder(self) -> bool"""
2140 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
2142 def HasZ(*args
, **kwargs
):
2143 """HasZ(self) -> bool"""
2144 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
2146 def HasU(*args
, **kwargs
):
2147 """HasU(self) -> bool"""
2148 return _misc_
.Joystick_HasU(*args
, **kwargs
)
2150 def HasV(*args
, **kwargs
):
2151 """HasV(self) -> bool"""
2152 return _misc_
.Joystick_HasV(*args
, **kwargs
)
2154 def HasPOV(*args
, **kwargs
):
2155 """HasPOV(self) -> bool"""
2156 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
2158 def HasPOV4Dir(*args
, **kwargs
):
2159 """HasPOV4Dir(self) -> bool"""
2160 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
2162 def HasPOVCTS(*args
, **kwargs
):
2163 """HasPOVCTS(self) -> bool"""
2164 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
2166 def SetCapture(*args
, **kwargs
):
2167 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2168 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2170 def ReleaseCapture(*args
, **kwargs
):
2171 """ReleaseCapture(self) -> bool"""
2172 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2174 def __nonzero__(self
): return self
.IsOk()
2175 ButtonState
= property(GetButtonState
,doc
="See `GetButtonState`")
2176 ManufacturerId
= property(GetManufacturerId
,doc
="See `GetManufacturerId`")
2177 MaxAxes
= property(GetMaxAxes
,doc
="See `GetMaxAxes`")
2178 MaxButtons
= property(GetMaxButtons
,doc
="See `GetMaxButtons`")
2179 MovementThreshold
= property(GetMovementThreshold
,SetMovementThreshold
,doc
="See `GetMovementThreshold` and `SetMovementThreshold`")
2180 NumberAxes
= property(GetNumberAxes
,doc
="See `GetNumberAxes`")
2181 NumberButtons
= property(GetNumberButtons
,doc
="See `GetNumberButtons`")
2182 NumberJoysticks
= property(GetNumberJoysticks
,doc
="See `GetNumberJoysticks`")
2183 POVCTSPosition
= property(GetPOVCTSPosition
,doc
="See `GetPOVCTSPosition`")
2184 POVPosition
= property(GetPOVPosition
,doc
="See `GetPOVPosition`")
2185 PollingMax
= property(GetPollingMax
,doc
="See `GetPollingMax`")
2186 PollingMin
= property(GetPollingMin
,doc
="See `GetPollingMin`")
2187 Position
= property(GetPosition
,doc
="See `GetPosition`")
2188 ProductId
= property(GetProductId
,doc
="See `GetProductId`")
2189 ProductName
= property(GetProductName
,doc
="See `GetProductName`")
2190 RudderMax
= property(GetRudderMax
,doc
="See `GetRudderMax`")
2191 RudderMin
= property(GetRudderMin
,doc
="See `GetRudderMin`")
2192 RudderPosition
= property(GetRudderPosition
,doc
="See `GetRudderPosition`")
2193 UMax
= property(GetUMax
,doc
="See `GetUMax`")
2194 UMin
= property(GetUMin
,doc
="See `GetUMin`")
2195 UPosition
= property(GetUPosition
,doc
="See `GetUPosition`")
2196 VMax
= property(GetVMax
,doc
="See `GetVMax`")
2197 VMin
= property(GetVMin
,doc
="See `GetVMin`")
2198 VPosition
= property(GetVPosition
,doc
="See `GetVPosition`")
2199 XMax
= property(GetXMax
,doc
="See `GetXMax`")
2200 XMin
= property(GetXMin
,doc
="See `GetXMin`")
2201 YMax
= property(GetYMax
,doc
="See `GetYMax`")
2202 YMin
= property(GetYMin
,doc
="See `GetYMin`")
2203 ZMax
= property(GetZMax
,doc
="See `GetZMax`")
2204 ZMin
= property(GetZMin
,doc
="See `GetZMin`")
2205 ZPosition
= property(GetZPosition
,doc
="See `GetZPosition`")
2206 _misc_
.Joystick_swigregister(Joystick
)
2208 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2209 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2210 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2211 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2212 class JoystickEvent(_core
.Event
):
2213 """Proxy of C++ JoystickEvent class"""
2214 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2215 __repr__
= _swig_repr
2216 def __init__(self
, *args
, **kwargs
):
2218 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2219 int change=0) -> JoystickEvent
2221 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
2222 def GetPosition(*args
, **kwargs
):
2223 """GetPosition(self) -> Point"""
2224 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2226 def GetZPosition(*args
, **kwargs
):
2227 """GetZPosition(self) -> int"""
2228 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2230 def GetButtonState(*args
, **kwargs
):
2231 """GetButtonState(self) -> int"""
2232 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2234 def GetButtonChange(*args
, **kwargs
):
2235 """GetButtonChange(self) -> int"""
2236 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2238 def GetJoystick(*args
, **kwargs
):
2239 """GetJoystick(self) -> int"""
2240 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2242 def SetJoystick(*args
, **kwargs
):
2243 """SetJoystick(self, int stick)"""
2244 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2246 def SetButtonState(*args
, **kwargs
):
2247 """SetButtonState(self, int state)"""
2248 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2250 def SetButtonChange(*args
, **kwargs
):
2251 """SetButtonChange(self, int change)"""
2252 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2254 def SetPosition(*args
, **kwargs
):
2255 """SetPosition(self, Point pos)"""
2256 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2258 def SetZPosition(*args
, **kwargs
):
2259 """SetZPosition(self, int zPos)"""
2260 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2262 def IsButton(*args
, **kwargs
):
2263 """IsButton(self) -> bool"""
2264 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2266 def IsMove(*args
, **kwargs
):
2267 """IsMove(self) -> bool"""
2268 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2270 def IsZMove(*args
, **kwargs
):
2271 """IsZMove(self) -> bool"""
2272 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2274 def ButtonDown(*args
, **kwargs
):
2275 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2276 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2278 def ButtonUp(*args
, **kwargs
):
2279 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2280 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2282 def ButtonIsDown(*args
, **kwargs
):
2283 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2284 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2286 m_pos
= property(GetPosition
, SetPosition
)
2287 m_zPosition
= property(GetZPosition
, SetZPosition
)
2288 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2289 m_buttonState
= property(GetButtonState
, SetButtonState
)
2290 m_joyStick
= property(GetJoystick
, SetJoystick
)
2292 ButtonChange
= property(GetButtonChange
,SetButtonChange
,doc
="See `GetButtonChange` and `SetButtonChange`")
2293 ButtonState
= property(GetButtonState
,SetButtonState
,doc
="See `GetButtonState` and `SetButtonState`")
2294 Joystick
= property(GetJoystick
,SetJoystick
,doc
="See `GetJoystick` and `SetJoystick`")
2295 Position
= property(GetPosition
,SetPosition
,doc
="See `GetPosition` and `SetPosition`")
2296 ZPosition
= property(GetZPosition
,SetZPosition
,doc
="See `GetZPosition` and `SetZPosition`")
2297 _misc_
.JoystickEvent_swigregister(JoystickEvent
)
2299 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2300 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2301 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2302 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2304 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2305 wxEVT_JOY_BUTTON_UP
,
2311 #---------------------------------------------------------------------------
2313 SOUND_SYNC
= _misc_
.SOUND_SYNC
2314 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2315 SOUND_LOOP
= _misc_
.SOUND_LOOP
2316 class Sound(object):
2317 """Proxy of C++ Sound class"""
2318 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2319 __repr__
= _swig_repr
2320 def __init__(self
, *args
, **kwargs
):
2321 """__init__(self, String fileName=EmptyString) -> Sound"""
2322 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2323 __swig_destroy__
= _misc_
.delete_Sound
2324 __del__
= lambda self
: None;
2325 def Create(*args
, **kwargs
):
2326 """Create(self, String fileName) -> bool"""
2327 return _misc_
.Sound_Create(*args
, **kwargs
)
2329 def CreateFromData(*args
, **kwargs
):
2330 """CreateFromData(self, PyObject data) -> bool"""
2331 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2333 def IsOk(*args
, **kwargs
):
2334 """IsOk(self) -> bool"""
2335 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2337 def Play(*args
, **kwargs
):
2338 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2339 return _misc_
.Sound_Play(*args
, **kwargs
)
2341 def PlaySound(*args
, **kwargs
):
2342 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2343 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2345 PlaySound
= staticmethod(PlaySound
)
2346 def Stop(*args
, **kwargs
):
2348 return _misc_
.Sound_Stop(*args
, **kwargs
)
2350 Stop
= staticmethod(Stop
)
2351 def __nonzero__(self
): return self
.IsOk()
2352 _misc_
.Sound_swigregister(Sound
)
2354 def SoundFromData(*args
, **kwargs
):
2355 """SoundFromData(PyObject data) -> Sound"""
2356 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2359 def Sound_PlaySound(*args
, **kwargs
):
2360 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2361 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2363 def Sound_Stop(*args
):
2365 return _misc_
.Sound_Stop(*args
)
2367 #---------------------------------------------------------------------------
2369 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2370 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2371 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2372 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2373 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2374 class FileTypeInfo(object):
2375 """Proxy of C++ FileTypeInfo class"""
2376 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2377 __repr__
= _swig_repr
2378 def __init__(self
, *args
, **kwargs
):
2379 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2380 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2381 def IsValid(*args
, **kwargs
):
2382 """IsValid(self) -> bool"""
2383 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2385 def SetIcon(*args
, **kwargs
):
2386 """SetIcon(self, String iconFile, int iconIndex=0)"""
2387 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2389 def SetShortDesc(*args
, **kwargs
):
2390 """SetShortDesc(self, String shortDesc)"""
2391 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2393 def GetMimeType(*args
, **kwargs
):
2394 """GetMimeType(self) -> String"""
2395 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2397 def GetOpenCommand(*args
, **kwargs
):
2398 """GetOpenCommand(self) -> String"""
2399 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2401 def GetPrintCommand(*args
, **kwargs
):
2402 """GetPrintCommand(self) -> String"""
2403 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2405 def GetShortDesc(*args
, **kwargs
):
2406 """GetShortDesc(self) -> String"""
2407 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2409 def GetDescription(*args
, **kwargs
):
2410 """GetDescription(self) -> String"""
2411 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2413 def GetExtensions(*args
, **kwargs
):
2414 """GetExtensions(self) -> wxArrayString"""
2415 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2417 def GetExtensionsCount(*args
, **kwargs
):
2418 """GetExtensionsCount(self) -> size_t"""
2419 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2421 def GetIconFile(*args
, **kwargs
):
2422 """GetIconFile(self) -> String"""
2423 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2425 def GetIconIndex(*args
, **kwargs
):
2426 """GetIconIndex(self) -> int"""
2427 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2429 Description
= property(GetDescription
,doc
="See `GetDescription`")
2430 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2431 ExtensionsCount
= property(GetExtensionsCount
,doc
="See `GetExtensionsCount`")
2432 IconFile
= property(GetIconFile
,doc
="See `GetIconFile`")
2433 IconIndex
= property(GetIconIndex
,doc
="See `GetIconIndex`")
2434 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2435 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2436 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2437 ShortDesc
= property(GetShortDesc
,SetShortDesc
,doc
="See `GetShortDesc` and `SetShortDesc`")
2438 _misc_
.FileTypeInfo_swigregister(FileTypeInfo
)
2440 def FileTypeInfoSequence(*args
, **kwargs
):
2441 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2442 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2445 def NullFileTypeInfo(*args
, **kwargs
):
2446 """NullFileTypeInfo() -> FileTypeInfo"""
2447 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2450 class FileType(object):
2451 """Proxy of C++ FileType class"""
2452 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2453 __repr__
= _swig_repr
2454 def __init__(self
, *args
, **kwargs
):
2455 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2456 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2457 __swig_destroy__
= _misc_
.delete_FileType
2458 __del__
= lambda self
: None;
2459 def GetMimeType(*args
, **kwargs
):
2460 """GetMimeType(self) -> PyObject"""
2461 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2463 def GetMimeTypes(*args
, **kwargs
):
2464 """GetMimeTypes(self) -> PyObject"""
2465 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2467 def GetExtensions(*args
, **kwargs
):
2468 """GetExtensions(self) -> PyObject"""
2469 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2471 def GetIcon(*args
, **kwargs
):
2472 """GetIcon(self) -> Icon"""
2473 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2475 def GetIconInfo(*args
, **kwargs
):
2476 """GetIconInfo(self) -> PyObject"""
2477 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2479 def GetDescription(*args
, **kwargs
):
2480 """GetDescription(self) -> PyObject"""
2481 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2483 def GetOpenCommand(*args
, **kwargs
):
2484 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2485 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2487 def GetPrintCommand(*args
, **kwargs
):
2488 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2489 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2491 def GetAllCommands(*args
, **kwargs
):
2492 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2493 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2495 def SetCommand(*args
, **kwargs
):
2496 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2497 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2499 def SetDefaultIcon(*args
, **kwargs
):
2500 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2501 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2503 def Unassociate(*args
, **kwargs
):
2504 """Unassociate(self) -> bool"""
2505 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2507 def ExpandCommand(*args
, **kwargs
):
2508 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2509 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2511 ExpandCommand
= staticmethod(ExpandCommand
)
2512 AllCommands
= property(GetAllCommands
,doc
="See `GetAllCommands`")
2513 Description
= property(GetDescription
,doc
="See `GetDescription`")
2514 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2515 Icon
= property(GetIcon
,doc
="See `GetIcon`")
2516 IconInfo
= property(GetIconInfo
,doc
="See `GetIconInfo`")
2517 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2518 MimeTypes
= property(GetMimeTypes
,doc
="See `GetMimeTypes`")
2519 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2520 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2521 _misc_
.FileType_swigregister(FileType
)
2523 def FileType_ExpandCommand(*args
, **kwargs
):
2524 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2525 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2527 class MimeTypesManager(object):
2528 """Proxy of C++ MimeTypesManager class"""
2529 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2530 __repr__
= _swig_repr
2531 def IsOfType(*args
, **kwargs
):
2532 """IsOfType(String mimeType, String wildcard) -> bool"""
2533 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2535 IsOfType
= staticmethod(IsOfType
)
2536 def __init__(self
, *args
, **kwargs
):
2537 """__init__(self) -> MimeTypesManager"""
2538 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2539 def Initialize(*args
, **kwargs
):
2540 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2541 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2543 def ClearData(*args
, **kwargs
):
2544 """ClearData(self)"""
2545 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2547 def GetFileTypeFromExtension(*args
, **kwargs
):
2548 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2549 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2551 def GetFileTypeFromMimeType(*args
, **kwargs
):
2552 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2553 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2555 def ReadMailcap(*args
, **kwargs
):
2556 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2557 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2559 def ReadMimeTypes(*args
, **kwargs
):
2560 """ReadMimeTypes(self, String filename) -> bool"""
2561 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2563 def EnumAllFileTypes(*args
, **kwargs
):
2564 """EnumAllFileTypes(self) -> PyObject"""
2565 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2567 def AddFallback(*args
, **kwargs
):
2568 """AddFallback(self, FileTypeInfo ft)"""
2569 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2571 def Associate(*args
, **kwargs
):
2572 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2573 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2575 def Unassociate(*args
, **kwargs
):
2576 """Unassociate(self, FileType ft) -> bool"""
2577 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2579 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2580 __del__
= lambda self
: None;
2581 _misc_
.MimeTypesManager_swigregister(MimeTypesManager
)
2582 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2584 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2585 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2586 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2588 #---------------------------------------------------------------------------
2590 class ArtProvider(object):
2592 The wx.ArtProvider class is used to customize the look of wxWidgets
2593 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2594 in the standard file dialog), it does not use hard-coded resource but
2595 asks wx.ArtProvider for it instead. This way the users can plug in
2596 their own wx.ArtProvider class and easily replace standard art with
2597 his/her own version. It is easy thing to do: all that is needed is
2598 to derive a class from wx.ArtProvider, override it's CreateBitmap
2599 method and register the provider with wx.ArtProvider.PushProvider::
2601 class MyArtProvider(wx.ArtProvider):
2603 wx.ArtProvider.__init__(self)
2605 def CreateBitmap(self, artid, client, size):
2610 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2611 __repr__
= _swig_repr
2612 def __init__(self
, *args
, **kwargs
):
2614 __init__(self) -> ArtProvider
2616 The wx.ArtProvider class is used to customize the look of wxWidgets
2617 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2618 in the standard file dialog), it does not use hard-coded resource but
2619 asks wx.ArtProvider for it instead. This way the users can plug in
2620 their own wx.ArtProvider class and easily replace standard art with
2621 his/her own version. It is easy thing to do: all that is needed is
2622 to derive a class from wx.ArtProvider, override it's CreateBitmap
2623 method and register the provider with wx.ArtProvider.PushProvider::
2625 class MyArtProvider(wx.ArtProvider):
2627 wx.ArtProvider.__init__(self)
2629 def CreateBitmap(self, artid, client, size):
2634 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2635 self
._setCallbackInfo
(self
, ArtProvider
)
2637 __swig_destroy__
= _misc_
.delete_ArtProvider
2638 __del__
= lambda self
: None;
2639 def _setCallbackInfo(*args
, **kwargs
):
2640 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2641 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2643 def PushProvider(*args
, **kwargs
):
2645 PushProvider(ArtProvider provider)
2647 Add new provider to the top of providers stack.
2649 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2651 PushProvider
= staticmethod(PushProvider
)
2652 def InsertProvider(*args
, **kwargs
):
2654 InsertProvider(ArtProvider provider)
2656 Add new provider to the bottom of providers stack.
2658 return _misc_
.ArtProvider_InsertProvider(*args
, **kwargs
)
2660 InsertProvider
= staticmethod(InsertProvider
)
2661 def PopProvider(*args
, **kwargs
):
2663 PopProvider() -> bool
2665 Remove latest added provider and delete it.
2667 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2669 PopProvider
= staticmethod(PopProvider
)
2670 def RemoveProvider(*args
, **kwargs
):
2672 RemoveProvider(ArtProvider provider) -> bool
2674 Remove provider. The provider must have been added previously! The
2675 provider is _not_ deleted.
2677 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2681 RemoveProvider
= staticmethod(RemoveProvider
)
2682 def GetBitmap(*args
, **kwargs
):
2684 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2686 Query the providers for bitmap with given ID and return it. Return
2687 wx.NullBitmap if no provider provides it.
2689 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2691 GetBitmap
= staticmethod(GetBitmap
)
2692 def GetIcon(*args
, **kwargs
):
2694 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2696 Query the providers for icon with given ID and return it. Return
2697 wx.NullIcon if no provider provides it.
2699 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2701 GetIcon
= staticmethod(GetIcon
)
2702 def GetSizeHint(*args
, **kwargs
):
2704 GetSizeHint(String client, bool platform_dependent=False) -> Size
2706 Get the size hint of an icon from a specific Art Client, queries the
2707 topmost provider if platform_dependent = false
2709 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2711 GetSizeHint
= staticmethod(GetSizeHint
)
2712 def Destroy(*args
, **kwargs
):
2714 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2718 _misc_
.ArtProvider_swigregister(ArtProvider
)
2719 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2720 ART_MENU
= cvar
.ART_MENU
2721 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2722 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2723 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2724 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2725 ART_BUTTON
= cvar
.ART_BUTTON
2726 ART_OTHER
= cvar
.ART_OTHER
2727 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2728 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2729 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2730 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2731 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2732 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2733 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2734 ART_GO_BACK
= cvar
.ART_GO_BACK
2735 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2736 ART_GO_UP
= cvar
.ART_GO_UP
2737 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2738 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2739 ART_GO_HOME
= cvar
.ART_GO_HOME
2740 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2741 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2742 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2743 ART_PRINT
= cvar
.ART_PRINT
2744 ART_HELP
= cvar
.ART_HELP
2745 ART_TIP
= cvar
.ART_TIP
2746 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2747 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2748 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2749 ART_HARDDISK
= cvar
.ART_HARDDISK
2750 ART_FLOPPY
= cvar
.ART_FLOPPY
2751 ART_CDROM
= cvar
.ART_CDROM
2752 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2753 ART_FOLDER
= cvar
.ART_FOLDER
2754 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2755 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2756 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2757 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2758 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2759 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2760 ART_ERROR
= cvar
.ART_ERROR
2761 ART_QUESTION
= cvar
.ART_QUESTION
2762 ART_WARNING
= cvar
.ART_WARNING
2763 ART_INFORMATION
= cvar
.ART_INFORMATION
2764 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2765 ART_COPY
= cvar
.ART_COPY
2766 ART_CUT
= cvar
.ART_CUT
2767 ART_PASTE
= cvar
.ART_PASTE
2768 ART_DELETE
= cvar
.ART_DELETE
2769 ART_NEW
= cvar
.ART_NEW
2770 ART_UNDO
= cvar
.ART_UNDO
2771 ART_REDO
= cvar
.ART_REDO
2772 ART_QUIT
= cvar
.ART_QUIT
2773 ART_FIND
= cvar
.ART_FIND
2774 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2776 def ArtProvider_PushProvider(*args
, **kwargs
):
2778 ArtProvider_PushProvider(ArtProvider provider)
2780 Add new provider to the top of providers stack.
2782 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2784 def ArtProvider_InsertProvider(*args
, **kwargs
):
2786 ArtProvider_InsertProvider(ArtProvider provider)
2788 Add new provider to the bottom of providers stack.
2790 return _misc_
.ArtProvider_InsertProvider(*args
, **kwargs
)
2792 def ArtProvider_PopProvider(*args
):
2794 ArtProvider_PopProvider() -> bool
2796 Remove latest added provider and delete it.
2798 return _misc_
.ArtProvider_PopProvider(*args
)
2800 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2802 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2804 Remove provider. The provider must have been added previously! The
2805 provider is _not_ deleted.
2807 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2811 def ArtProvider_GetBitmap(*args
, **kwargs
):
2813 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2815 Query the providers for bitmap with given ID and return it. Return
2816 wx.NullBitmap if no provider provides it.
2818 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2820 def ArtProvider_GetIcon(*args
, **kwargs
):
2822 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2824 Query the providers for icon with given ID and return it. Return
2825 wx.NullIcon if no provider provides it.
2827 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2829 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2831 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2833 Get the size hint of an icon from a specific Art Client, queries the
2834 topmost provider if platform_dependent = false
2836 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2838 #---------------------------------------------------------------------------
2840 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2841 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2842 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2843 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2844 class ConfigBase(object):
2846 wx.ConfigBase class defines the basic interface of all config
2847 classes. It can not be used by itself (it is an abstract base class)
2848 and you will always use one of its derivations: wx.Config or
2851 wx.ConfigBase organizes the items in a tree-like structure, modeled
2852 after the Unix/Dos filesystem. There are groups that act like
2853 directories and entries, key/value pairs that act like files. There
2854 is always one current group given by the current path. As in the file
2855 system case, to specify a key in the config class you must use a path
2856 to it. Config classes also support the notion of the current group,
2857 which makes it possible to use relative paths.
2859 Keys are pairs "key_name = value" where value may be of string,
2860 integer floating point or boolean, you can not store binary data
2861 without first encoding it as a string. For performance reasons items
2862 should be kept small, no more than a couple kilobytes.
2865 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2866 def __init__(self
): raise AttributeError, "No constructor defined"
2867 __repr__
= _swig_repr
2868 __swig_destroy__
= _misc_
.delete_ConfigBase
2869 __del__
= lambda self
: None;
2870 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2871 Type_String
= _misc_
.ConfigBase_Type_String
2872 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2873 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2874 Type_Float
= _misc_
.ConfigBase_Type_Float
2875 def Set(*args
, **kwargs
):
2877 Set(ConfigBase config) -> ConfigBase
2879 Sets the global config object (the one returned by Get) and returns a
2880 reference to the previous global config object.
2882 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2884 Set
= staticmethod(Set
)
2885 def Get(*args
, **kwargs
):
2887 Get(bool createOnDemand=True) -> ConfigBase
2889 Returns the current global config object, creating one if neccessary.
2891 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2893 Get
= staticmethod(Get
)
2894 def Create(*args
, **kwargs
):
2896 Create() -> ConfigBase
2898 Create and return a new global config object. This function will
2899 create the "best" implementation of wx.Config available for the
2902 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2904 Create
= staticmethod(Create
)
2905 def DontCreateOnDemand(*args
, **kwargs
):
2907 DontCreateOnDemand()
2909 Should Get() try to create a new log object if there isn't a current
2912 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2914 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2915 def SetPath(*args
, **kwargs
):
2917 SetPath(self, String path)
2919 Set current path: if the first character is '/', it's the absolute
2920 path, otherwise it's a relative path. '..' is supported. If the
2921 strPath doesn't exist it is created.
2923 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2925 def GetPath(*args
, **kwargs
):
2927 GetPath(self) -> String
2929 Retrieve the current path (always as absolute path)
2931 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2933 def GetFirstGroup(*args
, **kwargs
):
2935 GetFirstGroup() -> (more, value, index)
2937 Allows enumerating the subgroups in a config object. Returns a tuple
2938 containing a flag indicating there are more items, the name of the
2939 current item, and an index to pass to GetNextGroup to fetch the next
2942 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2944 def GetNextGroup(*args
, **kwargs
):
2946 GetNextGroup(long index) -> (more, value, index)
2948 Allows enumerating the subgroups in a config object. Returns a tuple
2949 containing a flag indicating there are more items, the name of the
2950 current item, and an index to pass to GetNextGroup to fetch the next
2953 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2955 def GetFirstEntry(*args
, **kwargs
):
2957 GetFirstEntry() -> (more, value, index)
2959 Allows enumerating the entries in the current group in a config
2960 object. Returns a tuple containing a flag indicating there are more
2961 items, the name of the current item, and an index to pass to
2962 GetNextGroup to fetch the next item.
2964 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2966 def GetNextEntry(*args
, **kwargs
):
2968 GetNextEntry(long index) -> (more, value, index)
2970 Allows enumerating the entries in the current group in a config
2971 object. Returns a tuple containing a flag indicating there are more
2972 items, the name of the current item, and an index to pass to
2973 GetNextGroup to fetch the next item.
2975 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2977 def GetNumberOfEntries(*args
, **kwargs
):
2979 GetNumberOfEntries(self, bool recursive=False) -> size_t
2981 Get the number of entries in the current group, with or without its
2984 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2986 def GetNumberOfGroups(*args
, **kwargs
):
2988 GetNumberOfGroups(self, bool recursive=False) -> size_t
2990 Get the number of subgroups in the current group, with or without its
2993 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2995 def HasGroup(*args
, **kwargs
):
2997 HasGroup(self, String name) -> bool
2999 Returns True if the group by this name exists
3001 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
3003 def HasEntry(*args
, **kwargs
):
3005 HasEntry(self, String name) -> bool
3007 Returns True if the entry by this name exists
3009 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
3011 def Exists(*args
, **kwargs
):
3013 Exists(self, String name) -> bool
3015 Returns True if either a group or an entry with a given name exists
3017 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
3019 def GetEntryType(*args
, **kwargs
):
3021 GetEntryType(self, String name) -> int
3023 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
3025 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
3027 def Read(*args
, **kwargs
):
3029 Read(self, String key, String defaultVal=EmptyString) -> String
3031 Returns the value of key if it exists, defaultVal otherwise.
3033 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
3035 def ReadInt(*args
, **kwargs
):
3037 ReadInt(self, String key, long defaultVal=0) -> long
3039 Returns the value of key if it exists, defaultVal otherwise.
3041 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
3043 def ReadFloat(*args
, **kwargs
):
3045 ReadFloat(self, String key, double defaultVal=0.0) -> double
3047 Returns the value of key if it exists, defaultVal otherwise.
3049 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
3051 def ReadBool(*args
, **kwargs
):
3053 ReadBool(self, String key, bool defaultVal=False) -> bool
3055 Returns the value of key if it exists, defaultVal otherwise.
3057 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
3059 def Write(*args
, **kwargs
):
3061 Write(self, String key, String value) -> bool
3063 write the value (return True on success)
3065 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
3067 def WriteInt(*args
, **kwargs
):
3069 WriteInt(self, String key, long value) -> bool
3071 write the value (return True on success)
3073 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
3075 def WriteFloat(*args
, **kwargs
):
3077 WriteFloat(self, String key, double value) -> bool
3079 write the value (return True on success)
3081 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
3083 def WriteBool(*args
, **kwargs
):
3085 WriteBool(self, String key, bool value) -> bool
3087 write the value (return True on success)
3089 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
3091 def Flush(*args
, **kwargs
):
3093 Flush(self, bool currentOnly=False) -> bool
3095 permanently writes all changes
3097 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
3099 def RenameEntry(*args
, **kwargs
):
3101 RenameEntry(self, String oldName, String newName) -> bool
3103 Rename an entry. Returns False on failure (probably because the new
3104 name is already taken by an existing entry)
3106 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
3108 def RenameGroup(*args
, **kwargs
):
3110 RenameGroup(self, String oldName, String newName) -> bool
3112 Rename a group. Returns False on failure (probably because the new
3113 name is already taken by an existing entry)
3115 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
3117 def DeleteEntry(*args
, **kwargs
):
3119 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3121 Deletes the specified entry and the group it belongs to if it was the
3122 last key in it and the second parameter is True
3124 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
3126 def DeleteGroup(*args
, **kwargs
):
3128 DeleteGroup(self, String key) -> bool
3130 Delete the group (with all subgroups)
3132 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
3134 def DeleteAll(*args
, **kwargs
):
3136 DeleteAll(self) -> bool
3138 Delete the whole underlying object (disk file, registry key, ...)
3139 primarly intended for use by deinstallation routine.
3141 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
3143 def SetExpandEnvVars(*args
, **kwargs
):
3145 SetExpandEnvVars(self, bool doIt=True)
3147 We can automatically expand environment variables in the config
3148 entries this option is on by default, you can turn it on/off at any
3151 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
3153 def IsExpandingEnvVars(*args
, **kwargs
):
3155 IsExpandingEnvVars(self) -> bool
3157 Are we currently expanding environment variables?
3159 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
3161 def SetRecordDefaults(*args
, **kwargs
):
3163 SetRecordDefaults(self, bool doIt=True)
3165 Set whether the config objec should record default values.
3167 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
3169 def IsRecordingDefaults(*args
, **kwargs
):
3171 IsRecordingDefaults(self) -> bool
3173 Are we currently recording default values?
3175 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
3177 def ExpandEnvVars(*args
, **kwargs
):
3179 ExpandEnvVars(self, String str) -> String
3181 Expand any environment variables in str and return the result
3183 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
3185 def GetAppName(*args
, **kwargs
):
3186 """GetAppName(self) -> String"""
3187 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3189 def GetVendorName(*args
, **kwargs
):
3190 """GetVendorName(self) -> String"""
3191 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3193 def SetAppName(*args
, **kwargs
):
3194 """SetAppName(self, String appName)"""
3195 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3197 def SetVendorName(*args
, **kwargs
):
3198 """SetVendorName(self, String vendorName)"""
3199 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3201 def SetStyle(*args
, **kwargs
):
3202 """SetStyle(self, long style)"""
3203 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3205 def GetStyle(*args
, **kwargs
):
3206 """GetStyle(self) -> long"""
3207 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3209 AppName
= property(GetAppName
,SetAppName
,doc
="See `GetAppName` and `SetAppName`")
3210 EntryType
= property(GetEntryType
,doc
="See `GetEntryType`")
3211 FirstEntry
= property(GetFirstEntry
,doc
="See `GetFirstEntry`")
3212 FirstGroup
= property(GetFirstGroup
,doc
="See `GetFirstGroup`")
3213 NextEntry
= property(GetNextEntry
,doc
="See `GetNextEntry`")
3214 NextGroup
= property(GetNextGroup
,doc
="See `GetNextGroup`")
3215 NumberOfEntries
= property(GetNumberOfEntries
,doc
="See `GetNumberOfEntries`")
3216 NumberOfGroups
= property(GetNumberOfGroups
,doc
="See `GetNumberOfGroups`")
3217 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
3218 Style
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")
3219 VendorName
= property(GetVendorName
,SetVendorName
,doc
="See `GetVendorName` and `SetVendorName`")
3220 _misc_
.ConfigBase_swigregister(ConfigBase
)
3222 def ConfigBase_Set(*args
, **kwargs
):
3224 ConfigBase_Set(ConfigBase config) -> ConfigBase
3226 Sets the global config object (the one returned by Get) and returns a
3227 reference to the previous global config object.
3229 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3231 def ConfigBase_Get(*args
, **kwargs
):
3233 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3235 Returns the current global config object, creating one if neccessary.
3237 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3239 def ConfigBase_Create(*args
):
3241 ConfigBase_Create() -> ConfigBase
3243 Create and return a new global config object. This function will
3244 create the "best" implementation of wx.Config available for the
3247 return _misc_
.ConfigBase_Create(*args
)
3249 def ConfigBase_DontCreateOnDemand(*args
):
3251 ConfigBase_DontCreateOnDemand()
3253 Should Get() try to create a new log object if there isn't a current
3256 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
3258 class Config(ConfigBase
):
3260 This ConfigBase-derived class will use the registry on Windows,
3261 and will be a wx.FileConfig on other platforms.
3263 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3264 __repr__
= _swig_repr
3265 def __init__(self
, *args
, **kwargs
):
3267 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3268 String localFilename=EmptyString, String globalFilename=EmptyString,
3269 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3271 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
3272 __swig_destroy__
= _misc_
.delete_Config
3273 __del__
= lambda self
: None;
3274 _misc_
.Config_swigregister(Config
)
3276 class FileConfig(ConfigBase
):
3277 """This config class will use a file for storage on all platforms."""
3278 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3279 __repr__
= _swig_repr
3280 def __init__(self
, *args
, **kwargs
):
3282 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3283 String localFilename=EmptyString, String globalFilename=EmptyString,
3284 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3286 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3287 __swig_destroy__
= _misc_
.delete_FileConfig
3288 __del__
= lambda self
: None;
3289 _misc_
.FileConfig_swigregister(FileConfig
)
3291 class ConfigPathChanger(object):
3293 A handy little class which changes current path to the path of given
3294 entry and restores it in the destructoir: so if you declare a local
3295 variable of this type, you work in the entry directory and the path is
3296 automatically restored when the function returns.
3298 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3299 __repr__
= _swig_repr
3300 def __init__(self
, *args
, **kwargs
):
3301 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3302 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3303 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3304 __del__
= lambda self
: None;
3305 def Name(*args
, **kwargs
):
3307 Name(self) -> String
3311 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3313 _misc_
.ConfigPathChanger_swigregister(ConfigPathChanger
)
3316 def ExpandEnvVars(*args
, **kwargs
):
3318 ExpandEnvVars(String sz) -> String
3320 Replace environment variables ($SOMETHING) with their values. The
3321 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3322 characters and '_' only. '$' must be escaped ('\$') in order to be
3325 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3326 #---------------------------------------------------------------------------
3328 class DateTime(object):
3329 """Proxy of C++ DateTime class"""
3330 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3331 __repr__
= _swig_repr
3332 Local
= _misc_
.DateTime_Local
3333 GMT_12
= _misc_
.DateTime_GMT_12
3334 GMT_11
= _misc_
.DateTime_GMT_11
3335 GMT_10
= _misc_
.DateTime_GMT_10
3336 GMT_9
= _misc_
.DateTime_GMT_9
3337 GMT_8
= _misc_
.DateTime_GMT_8
3338 GMT_7
= _misc_
.DateTime_GMT_7
3339 GMT_6
= _misc_
.DateTime_GMT_6
3340 GMT_5
= _misc_
.DateTime_GMT_5
3341 GMT_4
= _misc_
.DateTime_GMT_4
3342 GMT_3
= _misc_
.DateTime_GMT_3
3343 GMT_2
= _misc_
.DateTime_GMT_2
3344 GMT_1
= _misc_
.DateTime_GMT_1
3345 GMT0
= _misc_
.DateTime_GMT0
3346 GMT1
= _misc_
.DateTime_GMT1
3347 GMT2
= _misc_
.DateTime_GMT2
3348 GMT3
= _misc_
.DateTime_GMT3
3349 GMT4
= _misc_
.DateTime_GMT4
3350 GMT5
= _misc_
.DateTime_GMT5
3351 GMT6
= _misc_
.DateTime_GMT6
3352 GMT7
= _misc_
.DateTime_GMT7
3353 GMT8
= _misc_
.DateTime_GMT8
3354 GMT9
= _misc_
.DateTime_GMT9
3355 GMT10
= _misc_
.DateTime_GMT10
3356 GMT11
= _misc_
.DateTime_GMT11
3357 GMT12
= _misc_
.DateTime_GMT12
3358 WET
= _misc_
.DateTime_WET
3359 WEST
= _misc_
.DateTime_WEST
3360 CET
= _misc_
.DateTime_CET
3361 CEST
= _misc_
.DateTime_CEST
3362 EET
= _misc_
.DateTime_EET
3363 EEST
= _misc_
.DateTime_EEST
3364 MSK
= _misc_
.DateTime_MSK
3365 MSD
= _misc_
.DateTime_MSD
3366 AST
= _misc_
.DateTime_AST
3367 ADT
= _misc_
.DateTime_ADT
3368 EST
= _misc_
.DateTime_EST
3369 EDT
= _misc_
.DateTime_EDT
3370 CST
= _misc_
.DateTime_CST
3371 CDT
= _misc_
.DateTime_CDT
3372 MST
= _misc_
.DateTime_MST
3373 MDT
= _misc_
.DateTime_MDT
3374 PST
= _misc_
.DateTime_PST
3375 PDT
= _misc_
.DateTime_PDT
3376 HST
= _misc_
.DateTime_HST
3377 AKST
= _misc_
.DateTime_AKST
3378 AKDT
= _misc_
.DateTime_AKDT
3379 A_WST
= _misc_
.DateTime_A_WST
3380 A_CST
= _misc_
.DateTime_A_CST
3381 A_EST
= _misc_
.DateTime_A_EST
3382 A_ESST
= _misc_
.DateTime_A_ESST
3383 UTC
= _misc_
.DateTime_UTC
3384 Gregorian
= _misc_
.DateTime_Gregorian
3385 Julian
= _misc_
.DateTime_Julian
3386 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3387 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3388 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3389 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3390 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3391 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3392 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3393 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3394 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3395 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3396 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3397 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3398 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3399 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3400 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3401 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3402 Gr_China
= _misc_
.DateTime_Gr_China
3403 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3404 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3405 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3406 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3407 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3408 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3409 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3410 Gr_France
= _misc_
.DateTime_Gr_France
3411 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3412 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3413 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3414 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3415 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3416 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3417 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3418 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3419 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3420 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3421 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3422 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3423 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3424 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3425 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3426 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3427 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3428 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3429 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3430 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3431 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3432 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3433 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3434 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3435 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3436 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3437 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3438 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3439 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3440 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3441 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3442 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3443 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3444 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3445 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3446 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3447 Gr_USA
= _misc_
.DateTime_Gr_USA
3448 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3449 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3450 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3451 Country_Default
= _misc_
.DateTime_Country_Default
3452 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3453 Country_EEC
= _misc_
.DateTime_Country_EEC
3454 France
= _misc_
.DateTime_France
3455 Germany
= _misc_
.DateTime_Germany
3456 UK
= _misc_
.DateTime_UK
3457 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3458 Russia
= _misc_
.DateTime_Russia
3459 USA
= _misc_
.DateTime_USA
3460 Jan
= _misc_
.DateTime_Jan
3461 Feb
= _misc_
.DateTime_Feb
3462 Mar
= _misc_
.DateTime_Mar
3463 Apr
= _misc_
.DateTime_Apr
3464 May
= _misc_
.DateTime_May
3465 Jun
= _misc_
.DateTime_Jun
3466 Jul
= _misc_
.DateTime_Jul
3467 Aug
= _misc_
.DateTime_Aug
3468 Sep
= _misc_
.DateTime_Sep
3469 Oct
= _misc_
.DateTime_Oct
3470 Nov
= _misc_
.DateTime_Nov
3471 Dec
= _misc_
.DateTime_Dec
3472 Inv_Month
= _misc_
.DateTime_Inv_Month
3473 Sun
= _misc_
.DateTime_Sun
3474 Mon
= _misc_
.DateTime_Mon
3475 Tue
= _misc_
.DateTime_Tue
3476 Wed
= _misc_
.DateTime_Wed
3477 Thu
= _misc_
.DateTime_Thu
3478 Fri
= _misc_
.DateTime_Fri
3479 Sat
= _misc_
.DateTime_Sat
3480 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3481 Inv_Year
= _misc_
.DateTime_Inv_Year
3482 Name_Full
= _misc_
.DateTime_Name_Full
3483 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3484 Default_First
= _misc_
.DateTime_Default_First
3485 Monday_First
= _misc_
.DateTime_Monday_First
3486 Sunday_First
= _misc_
.DateTime_Sunday_First
3487 def SetCountry(*args
, **kwargs
):
3488 """SetCountry(int country)"""
3489 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3491 SetCountry
= staticmethod(SetCountry
)
3492 def GetCountry(*args
, **kwargs
):
3493 """GetCountry() -> int"""
3494 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3496 GetCountry
= staticmethod(GetCountry
)
3497 def IsWestEuropeanCountry(*args
, **kwargs
):
3498 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3499 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3501 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3502 def GetCurrentYear(*args
, **kwargs
):
3503 """GetCurrentYear(int cal=Gregorian) -> int"""
3504 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3506 GetCurrentYear
= staticmethod(GetCurrentYear
)
3507 def ConvertYearToBC(*args
, **kwargs
):
3508 """ConvertYearToBC(int year) -> int"""
3509 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3511 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3512 def GetCurrentMonth(*args
, **kwargs
):
3513 """GetCurrentMonth(int cal=Gregorian) -> int"""
3514 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3516 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3517 def IsLeapYear(*args
, **kwargs
):
3518 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3519 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3521 IsLeapYear
= staticmethod(IsLeapYear
)
3522 def GetCentury(*args
, **kwargs
):
3523 """GetCentury(int year=Inv_Year) -> int"""
3524 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3526 GetCentury
= staticmethod(GetCentury
)
3527 def GetNumberOfDaysinYear(*args
, **kwargs
):
3528 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3529 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3531 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3532 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3533 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3534 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3536 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3537 def GetMonthName(*args
, **kwargs
):
3538 """GetMonthName(int month, int flags=Name_Full) -> String"""
3539 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3541 GetMonthName
= staticmethod(GetMonthName
)
3542 def GetWeekDayName(*args
, **kwargs
):
3543 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3544 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3546 GetWeekDayName
= staticmethod(GetWeekDayName
)
3547 def GetAmPmStrings(*args
, **kwargs
):
3549 GetAmPmStrings() -> (am, pm)
3551 Get the AM and PM strings in the current locale (may be empty)
3553 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3555 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3556 def IsDSTApplicable(*args
, **kwargs
):
3557 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3558 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3560 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3561 def GetBeginDST(*args
, **kwargs
):
3562 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3563 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3565 GetBeginDST
= staticmethod(GetBeginDST
)
3566 def GetEndDST(*args
, **kwargs
):
3567 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3568 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3570 GetEndDST
= staticmethod(GetEndDST
)
3571 def Now(*args
, **kwargs
):
3572 """Now() -> DateTime"""
3573 return _misc_
.DateTime_Now(*args
, **kwargs
)
3575 Now
= staticmethod(Now
)
3576 def UNow(*args
, **kwargs
):
3577 """UNow() -> DateTime"""
3578 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3580 UNow
= staticmethod(UNow
)
3581 def Today(*args
, **kwargs
):
3582 """Today() -> DateTime"""
3583 return _misc_
.DateTime_Today(*args
, **kwargs
)
3585 Today
= staticmethod(Today
)
3586 def __init__(self
, *args
, **kwargs
):
3587 """__init__(self) -> DateTime"""
3588 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3589 __swig_destroy__
= _misc_
.delete_DateTime
3590 __del__
= lambda self
: None;
3591 def SetToCurrent(*args
, **kwargs
):
3592 """SetToCurrent(self) -> DateTime"""
3593 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3595 def SetTimeT(*args
, **kwargs
):
3596 """SetTimeT(self, time_t timet) -> DateTime"""
3597 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3599 def SetJDN(*args
, **kwargs
):
3600 """SetJDN(self, double jdn) -> DateTime"""
3601 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3603 def SetHMS(*args
, **kwargs
):
3604 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3605 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3607 def Set(*args
, **kwargs
):
3609 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3610 int minute=0, int second=0, int millisec=0) -> DateTime
3612 return _misc_
.DateTime_Set(*args
, **kwargs
)
3614 def ResetTime(*args
, **kwargs
):
3615 """ResetTime(self) -> DateTime"""
3616 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3618 def SetYear(*args
, **kwargs
):
3619 """SetYear(self, int year) -> DateTime"""
3620 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3622 def SetMonth(*args
, **kwargs
):
3623 """SetMonth(self, int month) -> DateTime"""
3624 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3626 def SetDay(*args
, **kwargs
):
3627 """SetDay(self, int day) -> DateTime"""
3628 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3630 def SetHour(*args
, **kwargs
):
3631 """SetHour(self, int hour) -> DateTime"""
3632 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3634 def SetMinute(*args
, **kwargs
):
3635 """SetMinute(self, int minute) -> DateTime"""
3636 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3638 def SetSecond(*args
, **kwargs
):
3639 """SetSecond(self, int second) -> DateTime"""
3640 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3642 def SetMillisecond(*args
, **kwargs
):
3643 """SetMillisecond(self, int millisecond) -> DateTime"""
3644 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3646 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3647 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3648 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3650 def GetWeekDayInSameWeek(*args
, **kwargs
):
3651 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3652 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3654 def SetToNextWeekDay(*args
, **kwargs
):
3655 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3656 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3658 def GetNextWeekDay(*args
, **kwargs
):
3659 """GetNextWeekDay(self, int weekday) -> DateTime"""
3660 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3662 def SetToPrevWeekDay(*args
, **kwargs
):
3663 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3664 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3666 def GetPrevWeekDay(*args
, **kwargs
):
3667 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3668 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3670 def SetToWeekDay(*args
, **kwargs
):
3671 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3672 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3674 def SetToLastWeekDay(*args
, **kwargs
):
3675 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3676 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3678 def GetLastWeekDay(*args
, **kwargs
):
3679 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3680 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3682 def SetToTheWeek(*args
, **kwargs
):
3683 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3684 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3686 def GetWeek(*args
, **kwargs
):
3687 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3688 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3690 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3691 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3693 def SetToWeekOfYear(*args
, **kwargs
):
3694 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3695 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3697 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3698 def SetToLastMonthDay(*args
, **kwargs
):
3699 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3700 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3702 def GetLastMonthDay(*args
, **kwargs
):
3703 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3704 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3706 def SetToYearDay(*args
, **kwargs
):
3707 """SetToYearDay(self, int yday) -> DateTime"""
3708 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3710 def GetYearDay(*args
, **kwargs
):
3711 """GetYearDay(self, int yday) -> DateTime"""
3712 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3714 def GetJulianDayNumber(*args
, **kwargs
):
3715 """GetJulianDayNumber(self) -> double"""
3716 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3718 def GetJDN(*args
, **kwargs
):
3719 """GetJDN(self) -> double"""
3720 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3722 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3723 """GetModifiedJulianDayNumber(self) -> double"""
3724 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3726 def GetMJD(*args
, **kwargs
):
3727 """GetMJD(self) -> double"""
3728 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3730 def GetRataDie(*args
, **kwargs
):
3731 """GetRataDie(self) -> double"""
3732 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3734 def ToTimezone(*args
, **kwargs
):
3735 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3736 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3738 def MakeTimezone(*args
, **kwargs
):
3739 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3740 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3742 def FromTimezone(*args
, **kwargs
):
3743 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3744 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3746 def MakeFromTimezone(*args
, **kwargs
):
3747 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3748 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3750 def ToUTC(*args
, **kwargs
):
3751 """ToUTC(self, bool noDST=False) -> DateTime"""
3752 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3754 def MakeUTC(*args
, **kwargs
):
3755 """MakeUTC(self, bool noDST=False) -> DateTime"""
3756 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3758 def ToGMT(*args
, **kwargs
):
3759 """ToGMT(self, bool noDST=False) -> DateTime"""
3760 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3762 def MakeGMT(*args
, **kwargs
):
3763 """MakeGMT(self, bool noDST=False) -> DateTime"""
3764 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3766 def FromUTC(*args
, **kwargs
):
3767 """FromUTC(self, bool noDST=False) -> DateTime"""
3768 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3770 def MakeFromUTC(*args
, **kwargs
):
3771 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3772 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3774 def IsDST(*args
, **kwargs
):
3775 """IsDST(self, int country=Country_Default) -> int"""
3776 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3778 def IsValid(*args
, **kwargs
):
3779 """IsValid(self) -> bool"""
3780 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3783 def __nonzero__(self
): return self
.Ok()
3784 def GetTicks(*args
, **kwargs
):
3785 """GetTicks(self) -> time_t"""
3786 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3788 def GetYear(*args
, **kwargs
):
3789 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3790 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3792 def GetMonth(*args
, **kwargs
):
3793 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3794 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3796 def GetDay(*args
, **kwargs
):
3797 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3798 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3800 def GetWeekDay(*args
, **kwargs
):
3801 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3802 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3804 def GetHour(*args
, **kwargs
):
3805 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3806 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3808 def GetMinute(*args
, **kwargs
):
3809 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3810 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3812 def GetSecond(*args
, **kwargs
):
3813 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3814 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3816 def GetMillisecond(*args
, **kwargs
):
3817 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3818 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3820 def GetDayOfYear(*args
, **kwargs
):
3821 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3822 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3824 def GetWeekOfYear(*args
, **kwargs
):
3825 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3826 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3828 def GetWeekOfMonth(*args
, **kwargs
):
3829 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3830 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3832 def IsWorkDay(*args
, **kwargs
):
3833 """IsWorkDay(self, int country=Country_Default) -> bool"""
3834 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3836 def IsEqualTo(*args
, **kwargs
):
3837 """IsEqualTo(self, DateTime datetime) -> bool"""
3838 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3840 def IsEarlierThan(*args
, **kwargs
):
3841 """IsEarlierThan(self, DateTime datetime) -> bool"""
3842 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3844 def IsLaterThan(*args
, **kwargs
):
3845 """IsLaterThan(self, DateTime datetime) -> bool"""
3846 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3848 def IsStrictlyBetween(*args
, **kwargs
):
3849 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3850 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3852 def IsBetween(*args
, **kwargs
):
3853 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3854 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3856 def IsSameDate(*args
, **kwargs
):
3857 """IsSameDate(self, DateTime dt) -> bool"""
3858 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3860 def IsSameTime(*args
, **kwargs
):
3861 """IsSameTime(self, DateTime dt) -> bool"""
3862 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3864 def IsEqualUpTo(*args
, **kwargs
):
3865 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3866 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3868 def AddTS(*args
, **kwargs
):
3869 """AddTS(self, TimeSpan diff) -> DateTime"""
3870 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3872 def AddDS(*args
, **kwargs
):
3873 """AddDS(self, DateSpan diff) -> DateTime"""
3874 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3876 def SubtractTS(*args
, **kwargs
):
3877 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3878 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3880 def SubtractDS(*args
, **kwargs
):
3881 """SubtractDS(self, DateSpan diff) -> DateTime"""
3882 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3884 def Subtract(*args
, **kwargs
):
3885 """Subtract(self, DateTime dt) -> TimeSpan"""
3886 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3888 def __iadd__(*args
):
3890 __iadd__(self, TimeSpan diff) -> DateTime
3891 __iadd__(self, DateSpan diff) -> DateTime
3893 return _misc_
.DateTime___iadd__(*args
)
3895 def __isub__(*args
):
3897 __isub__(self, TimeSpan diff) -> DateTime
3898 __isub__(self, DateSpan diff) -> DateTime
3900 return _misc_
.DateTime___isub__(*args
)
3904 __add__(self, TimeSpan other) -> DateTime
3905 __add__(self, DateSpan other) -> DateTime
3907 return _misc_
.DateTime___add__(*args
)
3911 __sub__(self, DateTime other) -> TimeSpan
3912 __sub__(self, TimeSpan other) -> DateTime
3913 __sub__(self, DateSpan other) -> DateTime
3915 return _misc_
.DateTime___sub__(*args
)
3917 def __lt__(*args
, **kwargs
):
3918 """__lt__(self, DateTime other) -> bool"""
3919 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3921 def __le__(*args
, **kwargs
):
3922 """__le__(self, DateTime other) -> bool"""
3923 return _misc_
.DateTime___le__(*args
, **kwargs
)
3925 def __gt__(*args
, **kwargs
):
3926 """__gt__(self, DateTime other) -> bool"""
3927 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3929 def __ge__(*args
, **kwargs
):
3930 """__ge__(self, DateTime other) -> bool"""
3931 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3933 def __eq__(*args
, **kwargs
):
3934 """__eq__(self, DateTime other) -> bool"""
3935 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3937 def __ne__(*args
, **kwargs
):
3938 """__ne__(self, DateTime other) -> bool"""
3939 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3941 def ParseRfc822Date(*args
, **kwargs
):
3942 """ParseRfc822Date(self, String date) -> int"""
3943 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3945 def ParseFormat(*args
, **kwargs
):
3946 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3947 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3949 def ParseDateTime(*args
, **kwargs
):
3950 """ParseDateTime(self, String datetime) -> int"""
3951 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3953 def ParseDate(*args
, **kwargs
):
3954 """ParseDate(self, String date) -> int"""
3955 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3957 def ParseTime(*args
, **kwargs
):
3958 """ParseTime(self, String time) -> int"""
3959 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3961 def Format(*args
, **kwargs
):
3962 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3963 return _misc_
.DateTime_Format(*args
, **kwargs
)
3965 def FormatDate(*args
, **kwargs
):
3966 """FormatDate(self) -> String"""
3967 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3969 def FormatTime(*args
, **kwargs
):
3970 """FormatTime(self) -> String"""
3971 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3973 def FormatISODate(*args
, **kwargs
):
3974 """FormatISODate(self) -> String"""
3975 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3977 def FormatISOTime(*args
, **kwargs
):
3978 """FormatISOTime(self) -> String"""
3979 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3983 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3984 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
3986 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3989 return self
.Format().encode(wx
.GetDefaultPyEncoding())
3991 return "INVALID DateTime"
3993 Day
= property(GetDay
,SetDay
,doc
="See `GetDay` and `SetDay`")
3994 DayOfYear
= property(GetDayOfYear
,doc
="See `GetDayOfYear`")
3995 Hour
= property(GetHour
,SetHour
,doc
="See `GetHour` and `SetHour`")
3996 JDN
= property(GetJDN
,SetJDN
,doc
="See `GetJDN` and `SetJDN`")
3997 JulianDayNumber
= property(GetJulianDayNumber
,doc
="See `GetJulianDayNumber`")
3998 LastMonthDay
= property(GetLastMonthDay
,doc
="See `GetLastMonthDay`")
3999 LastWeekDay
= property(GetLastWeekDay
,doc
="See `GetLastWeekDay`")
4000 MJD
= property(GetMJD
,doc
="See `GetMJD`")
4001 Millisecond
= property(GetMillisecond
,SetMillisecond
,doc
="See `GetMillisecond` and `SetMillisecond`")
4002 Minute
= property(GetMinute
,SetMinute
,doc
="See `GetMinute` and `SetMinute`")
4003 ModifiedJulianDayNumber
= property(GetModifiedJulianDayNumber
,doc
="See `GetModifiedJulianDayNumber`")
4004 Month
= property(GetMonth
,SetMonth
,doc
="See `GetMonth` and `SetMonth`")
4005 NextWeekDay
= property(GetNextWeekDay
,doc
="See `GetNextWeekDay`")
4006 PrevWeekDay
= property(GetPrevWeekDay
,doc
="See `GetPrevWeekDay`")
4007 RataDie
= property(GetRataDie
,doc
="See `GetRataDie`")
4008 Second
= property(GetSecond
,SetSecond
,doc
="See `GetSecond` and `SetSecond`")
4009 Ticks
= property(GetTicks
,doc
="See `GetTicks`")
4010 Week
= property(GetWeek
,doc
="See `GetWeek`")
4011 WeekDay
= property(GetWeekDay
,doc
="See `GetWeekDay`")
4012 WeekDayInSameWeek
= property(GetWeekDayInSameWeek
,doc
="See `GetWeekDayInSameWeek`")
4013 WeekOfMonth
= property(GetWeekOfMonth
,doc
="See `GetWeekOfMonth`")
4014 WeekOfYear
= property(GetWeekOfYear
,doc
="See `GetWeekOfYear`")
4015 Year
= property(GetYear
,SetYear
,doc
="See `GetYear` and `SetYear`")
4016 YearDay
= property(GetYearDay
,doc
="See `GetYearDay`")
4017 _misc_
.DateTime_swigregister(DateTime
)
4018 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
4019 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
4021 def DateTime_SetCountry(*args
, **kwargs
):
4022 """DateTime_SetCountry(int country)"""
4023 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
4025 def DateTime_GetCountry(*args
):
4026 """DateTime_GetCountry() -> int"""
4027 return _misc_
.DateTime_GetCountry(*args
)
4029 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
4030 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
4031 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
4033 def DateTime_GetCurrentYear(*args
, **kwargs
):
4034 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
4035 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
4037 def DateTime_ConvertYearToBC(*args
, **kwargs
):
4038 """DateTime_ConvertYearToBC(int year) -> int"""
4039 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
4041 def DateTime_GetCurrentMonth(*args
, **kwargs
):
4042 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
4043 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
4045 def DateTime_IsLeapYear(*args
, **kwargs
):
4046 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
4047 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
4049 def DateTime_GetCentury(*args
, **kwargs
):
4050 """DateTime_GetCentury(int year=Inv_Year) -> int"""
4051 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
4053 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
4054 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
4055 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
4057 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
4058 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
4059 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
4061 def DateTime_GetMonthName(*args
, **kwargs
):
4062 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
4063 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
4065 def DateTime_GetWeekDayName(*args
, **kwargs
):
4066 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
4067 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
4069 def DateTime_GetAmPmStrings(*args
):
4071 GetAmPmStrings() -> (am, pm)
4073 Get the AM and PM strings in the current locale (may be empty)
4075 return _misc_
.DateTime_GetAmPmStrings(*args
)
4077 def DateTime_IsDSTApplicable(*args
, **kwargs
):
4078 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
4079 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
4081 def DateTime_GetBeginDST(*args
, **kwargs
):
4082 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4083 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
4085 def DateTime_GetEndDST(*args
, **kwargs
):
4086 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4087 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
4089 def DateTime_Now(*args
):
4090 """DateTime_Now() -> DateTime"""
4091 return _misc_
.DateTime_Now(*args
)
4093 def DateTime_UNow(*args
):
4094 """DateTime_UNow() -> DateTime"""
4095 return _misc_
.DateTime_UNow(*args
)
4097 def DateTime_Today(*args
):
4098 """DateTime_Today() -> DateTime"""
4099 return _misc_
.DateTime_Today(*args
)
4101 def DateTimeFromTimeT(*args
, **kwargs
):
4102 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4103 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
4106 def DateTimeFromJDN(*args
, **kwargs
):
4107 """DateTimeFromJDN(double jdn) -> DateTime"""
4108 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
4111 def DateTimeFromHMS(*args
, **kwargs
):
4112 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4113 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
4116 def DateTimeFromDMY(*args
, **kwargs
):
4118 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4119 int minute=0, int second=0, int millisec=0) -> DateTime
4121 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
4124 def DateTimeFromDateTime(*args
, **kwargs
):
4125 """DateTimeFromDateTime(DateTime date) -> DateTime"""
4126 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
4129 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
4130 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4131 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
4133 class TimeSpan(object):
4134 """Proxy of C++ TimeSpan class"""
4135 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4136 __repr__
= _swig_repr
4137 def Milliseconds(*args
, **kwargs
):
4138 """Milliseconds(long ms) -> TimeSpan"""
4139 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4141 Milliseconds
= staticmethod(Milliseconds
)
4142 def Millisecond(*args
, **kwargs
):
4143 """Millisecond() -> TimeSpan"""
4144 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
4146 Millisecond
= staticmethod(Millisecond
)
4147 def Seconds(*args
, **kwargs
):
4148 """Seconds(long sec) -> TimeSpan"""
4149 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4151 Seconds
= staticmethod(Seconds
)
4152 def Second(*args
, **kwargs
):
4153 """Second() -> TimeSpan"""
4154 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4156 Second
= staticmethod(Second
)
4157 def Minutes(*args
, **kwargs
):
4158 """Minutes(long min) -> TimeSpan"""
4159 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4161 Minutes
= staticmethod(Minutes
)
4162 def Minute(*args
, **kwargs
):
4163 """Minute() -> TimeSpan"""
4164 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4166 Minute
= staticmethod(Minute
)
4167 def Hours(*args
, **kwargs
):
4168 """Hours(long hours) -> TimeSpan"""
4169 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4171 Hours
= staticmethod(Hours
)
4172 def Hour(*args
, **kwargs
):
4173 """Hour() -> TimeSpan"""
4174 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4176 Hour
= staticmethod(Hour
)
4177 def Days(*args
, **kwargs
):
4178 """Days(long days) -> TimeSpan"""
4179 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4181 Days
= staticmethod(Days
)
4182 def Day(*args
, **kwargs
):
4183 """Day() -> TimeSpan"""
4184 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4186 Day
= staticmethod(Day
)
4187 def Weeks(*args
, **kwargs
):
4188 """Weeks(long days) -> TimeSpan"""
4189 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4191 Weeks
= staticmethod(Weeks
)
4192 def Week(*args
, **kwargs
):
4193 """Week() -> TimeSpan"""
4194 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4196 Week
= staticmethod(Week
)
4197 def __init__(self
, *args
, **kwargs
):
4198 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4199 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
4200 __swig_destroy__
= _misc_
.delete_TimeSpan
4201 __del__
= lambda self
: None;
4202 def Add(*args
, **kwargs
):
4203 """Add(self, TimeSpan diff) -> TimeSpan"""
4204 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
4206 def Subtract(*args
, **kwargs
):
4207 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4208 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4210 def Multiply(*args
, **kwargs
):
4211 """Multiply(self, int n) -> TimeSpan"""
4212 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4214 def Neg(*args
, **kwargs
):
4215 """Neg(self) -> TimeSpan"""
4216 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4218 def Abs(*args
, **kwargs
):
4219 """Abs(self) -> TimeSpan"""
4220 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4222 def __iadd__(*args
, **kwargs
):
4223 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4224 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4226 def __isub__(*args
, **kwargs
):
4227 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4228 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4230 def __imul__(*args
, **kwargs
):
4231 """__imul__(self, int n) -> TimeSpan"""
4232 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4234 def __neg__(*args
, **kwargs
):
4235 """__neg__(self) -> TimeSpan"""
4236 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4238 def __add__(*args
, **kwargs
):
4239 """__add__(self, TimeSpan other) -> TimeSpan"""
4240 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4242 def __sub__(*args
, **kwargs
):
4243 """__sub__(self, TimeSpan other) -> TimeSpan"""
4244 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4246 def __mul__(*args
, **kwargs
):
4247 """__mul__(self, int n) -> TimeSpan"""
4248 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4250 def __rmul__(*args
, **kwargs
):
4251 """__rmul__(self, int n) -> TimeSpan"""
4252 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4254 def __lt__(*args
, **kwargs
):
4255 """__lt__(self, TimeSpan other) -> bool"""
4256 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4258 def __le__(*args
, **kwargs
):
4259 """__le__(self, TimeSpan other) -> bool"""
4260 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4262 def __gt__(*args
, **kwargs
):
4263 """__gt__(self, TimeSpan other) -> bool"""
4264 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4266 def __ge__(*args
, **kwargs
):
4267 """__ge__(self, TimeSpan other) -> bool"""
4268 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4270 def __eq__(*args
, **kwargs
):
4271 """__eq__(self, TimeSpan other) -> bool"""
4272 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4274 def __ne__(*args
, **kwargs
):
4275 """__ne__(self, TimeSpan other) -> bool"""
4276 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4278 def IsNull(*args
, **kwargs
):
4279 """IsNull(self) -> bool"""
4280 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4282 def IsPositive(*args
, **kwargs
):
4283 """IsPositive(self) -> bool"""
4284 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4286 def IsNegative(*args
, **kwargs
):
4287 """IsNegative(self) -> bool"""
4288 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4290 def IsEqualTo(*args
, **kwargs
):
4291 """IsEqualTo(self, TimeSpan ts) -> bool"""
4292 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4294 def IsLongerThan(*args
, **kwargs
):
4295 """IsLongerThan(self, TimeSpan ts) -> bool"""
4296 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4298 def IsShorterThan(*args
, **kwargs
):
4299 """IsShorterThan(self, TimeSpan t) -> bool"""
4300 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4302 def GetWeeks(*args
, **kwargs
):
4303 """GetWeeks(self) -> int"""
4304 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4306 def GetDays(*args
, **kwargs
):
4307 """GetDays(self) -> int"""
4308 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4310 def GetHours(*args
, **kwargs
):
4311 """GetHours(self) -> int"""
4312 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4314 def GetMinutes(*args
, **kwargs
):
4315 """GetMinutes(self) -> int"""
4316 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4318 def GetSeconds(*args
, **kwargs
):
4319 """GetSeconds(self) -> wxLongLong"""
4320 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4322 def GetMilliseconds(*args
, **kwargs
):
4323 """GetMilliseconds(self) -> wxLongLong"""
4324 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4326 def Format(*args
, **kwargs
):
4327 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4328 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4331 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4332 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4334 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4336 Days
= property(GetDays
,doc
="See `GetDays`")
4337 Hours
= property(GetHours
,doc
="See `GetHours`")
4338 Milliseconds
= property(GetMilliseconds
,doc
="See `GetMilliseconds`")
4339 Minutes
= property(GetMinutes
,doc
="See `GetMinutes`")
4340 Seconds
= property(GetSeconds
,doc
="See `GetSeconds`")
4341 Weeks
= property(GetWeeks
,doc
="See `GetWeeks`")
4342 _misc_
.TimeSpan_swigregister(TimeSpan
)
4344 def TimeSpan_Milliseconds(*args
, **kwargs
):
4345 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4346 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4348 def TimeSpan_Millisecond(*args
):
4349 """TimeSpan_Millisecond() -> TimeSpan"""
4350 return _misc_
.TimeSpan_Millisecond(*args
)
4352 def TimeSpan_Seconds(*args
, **kwargs
):
4353 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4354 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4356 def TimeSpan_Second(*args
):
4357 """TimeSpan_Second() -> TimeSpan"""
4358 return _misc_
.TimeSpan_Second(*args
)
4360 def TimeSpan_Minutes(*args
, **kwargs
):
4361 """TimeSpan_Minutes(long min) -> TimeSpan"""
4362 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4364 def TimeSpan_Minute(*args
):
4365 """TimeSpan_Minute() -> TimeSpan"""
4366 return _misc_
.TimeSpan_Minute(*args
)
4368 def TimeSpan_Hours(*args
, **kwargs
):
4369 """TimeSpan_Hours(long hours) -> TimeSpan"""
4370 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4372 def TimeSpan_Hour(*args
):
4373 """TimeSpan_Hour() -> TimeSpan"""
4374 return _misc_
.TimeSpan_Hour(*args
)
4376 def TimeSpan_Days(*args
, **kwargs
):
4377 """TimeSpan_Days(long days) -> TimeSpan"""
4378 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4380 def TimeSpan_Day(*args
):
4381 """TimeSpan_Day() -> TimeSpan"""
4382 return _misc_
.TimeSpan_Day(*args
)
4384 def TimeSpan_Weeks(*args
, **kwargs
):
4385 """TimeSpan_Weeks(long days) -> TimeSpan"""
4386 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4388 def TimeSpan_Week(*args
):
4389 """TimeSpan_Week() -> TimeSpan"""
4390 return _misc_
.TimeSpan_Week(*args
)
4392 class DateSpan(object):
4393 """Proxy of C++ DateSpan class"""
4394 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4395 __repr__
= _swig_repr
4396 def __init__(self
, *args
, **kwargs
):
4397 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4398 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4399 __swig_destroy__
= _misc_
.delete_DateSpan
4400 __del__
= lambda self
: None;
4401 def Days(*args
, **kwargs
):
4402 """Days(int days) -> DateSpan"""
4403 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4405 Days
= staticmethod(Days
)
4406 def Day(*args
, **kwargs
):
4407 """Day() -> DateSpan"""
4408 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4410 Day
= staticmethod(Day
)
4411 def Weeks(*args
, **kwargs
):
4412 """Weeks(int weeks) -> DateSpan"""
4413 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4415 Weeks
= staticmethod(Weeks
)
4416 def Week(*args
, **kwargs
):
4417 """Week() -> DateSpan"""
4418 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4420 Week
= staticmethod(Week
)
4421 def Months(*args
, **kwargs
):
4422 """Months(int mon) -> DateSpan"""
4423 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4425 Months
= staticmethod(Months
)
4426 def Month(*args
, **kwargs
):
4427 """Month() -> DateSpan"""
4428 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4430 Month
= staticmethod(Month
)
4431 def Years(*args
, **kwargs
):
4432 """Years(int years) -> DateSpan"""
4433 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4435 Years
= staticmethod(Years
)
4436 def Year(*args
, **kwargs
):
4437 """Year() -> DateSpan"""
4438 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4440 Year
= staticmethod(Year
)
4441 def SetYears(*args
, **kwargs
):
4442 """SetYears(self, int n) -> DateSpan"""
4443 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4445 def SetMonths(*args
, **kwargs
):
4446 """SetMonths(self, int n) -> DateSpan"""
4447 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4449 def SetWeeks(*args
, **kwargs
):
4450 """SetWeeks(self, int n) -> DateSpan"""
4451 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4453 def SetDays(*args
, **kwargs
):
4454 """SetDays(self, int n) -> DateSpan"""
4455 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4457 def GetYears(*args
, **kwargs
):
4458 """GetYears(self) -> int"""
4459 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4461 def GetMonths(*args
, **kwargs
):
4462 """GetMonths(self) -> int"""
4463 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4465 def GetWeeks(*args
, **kwargs
):
4466 """GetWeeks(self) -> int"""
4467 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4469 def GetDays(*args
, **kwargs
):
4470 """GetDays(self) -> int"""
4471 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4473 def GetTotalDays(*args
, **kwargs
):
4474 """GetTotalDays(self) -> int"""
4475 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4477 def Add(*args
, **kwargs
):
4478 """Add(self, DateSpan other) -> DateSpan"""
4479 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4481 def Subtract(*args
, **kwargs
):
4482 """Subtract(self, DateSpan other) -> DateSpan"""
4483 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4485 def Neg(*args
, **kwargs
):
4486 """Neg(self) -> DateSpan"""
4487 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4489 def Multiply(*args
, **kwargs
):
4490 """Multiply(self, int factor) -> DateSpan"""
4491 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4493 def __iadd__(*args
, **kwargs
):
4494 """__iadd__(self, DateSpan other) -> DateSpan"""
4495 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4497 def __isub__(*args
, **kwargs
):
4498 """__isub__(self, DateSpan other) -> DateSpan"""
4499 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4501 def __neg__(*args
, **kwargs
):
4502 """__neg__(self) -> DateSpan"""
4503 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4505 def __imul__(*args
, **kwargs
):
4506 """__imul__(self, int factor) -> DateSpan"""
4507 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4509 def __add__(*args
, **kwargs
):
4510 """__add__(self, DateSpan other) -> DateSpan"""
4511 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4513 def __sub__(*args
, **kwargs
):
4514 """__sub__(self, DateSpan other) -> DateSpan"""
4515 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4517 def __mul__(*args
, **kwargs
):
4518 """__mul__(self, int n) -> DateSpan"""
4519 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4521 def __rmul__(*args
, **kwargs
):
4522 """__rmul__(self, int n) -> DateSpan"""
4523 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4525 def __eq__(*args
, **kwargs
):
4526 """__eq__(self, DateSpan other) -> bool"""
4527 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4529 def __ne__(*args
, **kwargs
):
4530 """__ne__(self, DateSpan other) -> bool"""
4531 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4533 Days
= property(GetDays
,SetDays
,doc
="See `GetDays` and `SetDays`")
4534 Months
= property(GetMonths
,SetMonths
,doc
="See `GetMonths` and `SetMonths`")
4535 TotalDays
= property(GetTotalDays
,doc
="See `GetTotalDays`")
4536 Weeks
= property(GetWeeks
,SetWeeks
,doc
="See `GetWeeks` and `SetWeeks`")
4537 Years
= property(GetYears
,SetYears
,doc
="See `GetYears` and `SetYears`")
4538 _misc_
.DateSpan_swigregister(DateSpan
)
4540 def DateSpan_Days(*args
, **kwargs
):
4541 """DateSpan_Days(int days) -> DateSpan"""
4542 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4544 def DateSpan_Day(*args
):
4545 """DateSpan_Day() -> DateSpan"""
4546 return _misc_
.DateSpan_Day(*args
)
4548 def DateSpan_Weeks(*args
, **kwargs
):
4549 """DateSpan_Weeks(int weeks) -> DateSpan"""
4550 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4552 def DateSpan_Week(*args
):
4553 """DateSpan_Week() -> DateSpan"""
4554 return _misc_
.DateSpan_Week(*args
)
4556 def DateSpan_Months(*args
, **kwargs
):
4557 """DateSpan_Months(int mon) -> DateSpan"""
4558 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4560 def DateSpan_Month(*args
):
4561 """DateSpan_Month() -> DateSpan"""
4562 return _misc_
.DateSpan_Month(*args
)
4564 def DateSpan_Years(*args
, **kwargs
):
4565 """DateSpan_Years(int years) -> DateSpan"""
4566 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4568 def DateSpan_Year(*args
):
4569 """DateSpan_Year() -> DateSpan"""
4570 return _misc_
.DateSpan_Year(*args
)
4573 def GetLocalTime(*args
):
4574 """GetLocalTime() -> long"""
4575 return _misc_
.GetLocalTime(*args
)
4577 def GetUTCTime(*args
):
4578 """GetUTCTime() -> long"""
4579 return _misc_
.GetUTCTime(*args
)
4581 def GetCurrentTime(*args
):
4582 """GetCurrentTime() -> long"""
4583 return _misc_
.GetCurrentTime(*args
)
4585 def GetLocalTimeMillis(*args
):
4586 """GetLocalTimeMillis() -> wxLongLong"""
4587 return _misc_
.GetLocalTimeMillis(*args
)
4588 #---------------------------------------------------------------------------
4590 DF_INVALID
= _misc_
.DF_INVALID
4591 DF_TEXT
= _misc_
.DF_TEXT
4592 DF_BITMAP
= _misc_
.DF_BITMAP
4593 DF_METAFILE
= _misc_
.DF_METAFILE
4594 DF_SYLK
= _misc_
.DF_SYLK
4595 DF_DIF
= _misc_
.DF_DIF
4596 DF_TIFF
= _misc_
.DF_TIFF
4597 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4598 DF_DIB
= _misc_
.DF_DIB
4599 DF_PALETTE
= _misc_
.DF_PALETTE
4600 DF_PENDATA
= _misc_
.DF_PENDATA
4601 DF_RIFF
= _misc_
.DF_RIFF
4602 DF_WAVE
= _misc_
.DF_WAVE
4603 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4604 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4605 DF_FILENAME
= _misc_
.DF_FILENAME
4606 DF_LOCALE
= _misc_
.DF_LOCALE
4607 DF_PRIVATE
= _misc_
.DF_PRIVATE
4608 DF_HTML
= _misc_
.DF_HTML
4609 DF_MAX
= _misc_
.DF_MAX
4610 class DataFormat(object):
4612 A wx.DataFormat is an encapsulation of a platform-specific format
4613 handle which is used by the system for the clipboard and drag and drop
4614 operations. The applications are usually only interested in, for
4615 example, pasting data from the clipboard only if the data is in a
4616 format the program understands. A data format is is used to uniquely
4617 identify this format.
4619 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4620 __repr__
= _swig_repr
4621 def __init__(self
, *args
, **kwargs
):
4623 __init__(self, int type) -> DataFormat
4625 Constructs a data format object for one of the standard data formats
4626 or an empty data object (use SetType or SetId later in this case)
4628 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4629 __swig_destroy__
= _misc_
.delete_DataFormat
4630 __del__
= lambda self
: None;
4633 __eq__(self, int format) -> bool
4634 __eq__(self, DataFormat format) -> bool
4636 return _misc_
.DataFormat___eq__(*args
)
4640 __ne__(self, int format) -> bool
4641 __ne__(self, DataFormat format) -> bool
4643 return _misc_
.DataFormat___ne__(*args
)
4645 def SetType(*args
, **kwargs
):
4647 SetType(self, int format)
4649 Sets the format to the given value, which should be one of wx.DF_XXX
4652 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4654 def GetType(*args
, **kwargs
):
4656 GetType(self) -> int
4658 Returns the platform-specific number identifying the format.
4660 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4662 def GetId(*args
, **kwargs
):
4664 GetId(self) -> String
4666 Returns the name of a custom format (this function will fail for a
4669 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4671 def SetId(*args
, **kwargs
):
4673 SetId(self, String format)
4675 Sets the format to be the custom format identified by the given name.
4677 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4679 Id
= property(GetId
,SetId
,doc
="See `GetId` and `SetId`")
4680 Type
= property(GetType
,SetType
,doc
="See `GetType` and `SetType`")
4681 _misc_
.DataFormat_swigregister(DataFormat
)
4682 DefaultDateTime
= cvar
.DefaultDateTime
4684 def CustomDataFormat(*args
, **kwargs
):
4686 CustomDataFormat(String format) -> DataFormat
4688 Constructs a data format object for a custom format identified by its
4691 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4694 class DataObject(object):
4696 A wx.DataObject represents data that can be copied to or from the
4697 clipboard, or dragged and dropped. The important thing about
4698 wx.DataObject is that this is a 'smart' piece of data unlike usual
4699 'dumb' data containers such as memory buffers or files. Being 'smart'
4700 here means that the data object itself should know what data formats
4701 it supports and how to render itself in each of supported formats.
4703 **NOTE**: This class is an abstract base class and can not be used
4704 directly from Python. If you need a custom type of data object then
4705 you should instead derive from `wx.PyDataObjectSimple` or use
4706 `wx.CustomDataObject`.
4709 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4710 def __init__(self
): raise AttributeError, "No constructor defined"
4711 __repr__
= _swig_repr
4712 Get
= _misc_
.DataObject_Get
4713 Set
= _misc_
.DataObject_Set
4714 Both
= _misc_
.DataObject_Both
4715 __swig_destroy__
= _misc_
.delete_DataObject
4716 __del__
= lambda self
: None;
4717 def GetPreferredFormat(*args
, **kwargs
):
4719 GetPreferredFormat(self, int dir=Get) -> DataFormat
4721 Returns the preferred format for either rendering the data (if dir is
4722 Get, its default value) or for setting it. Usually this will be the
4723 native format of the wx.DataObject.
4725 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4727 def GetFormatCount(*args
, **kwargs
):
4729 GetFormatCount(self, int dir=Get) -> size_t
4731 Returns the number of available formats for rendering or setting the
4734 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4736 def IsSupported(*args
, **kwargs
):
4738 IsSupported(self, DataFormat format, int dir=Get) -> bool
4740 Returns True if this format is supported.
4742 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4744 def GetDataSize(*args
, **kwargs
):
4746 GetDataSize(self, DataFormat format) -> size_t
4748 Get the (total) size of data for the given format
4750 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4752 def GetAllFormats(*args
, **kwargs
):
4754 GetAllFormats(self, int dir=Get) -> [formats]
4756 Returns a list of all the wx.DataFormats that this dataobject supports
4757 in the given direction.
4759 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4761 def GetDataHere(*args
, **kwargs
):
4763 GetDataHere(self, DataFormat format) -> String
4765 Get the data bytes in the specified format, returns None on failure.
4767 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4769 def SetData(*args
, **kwargs
):
4771 SetData(self, DataFormat format, String data) -> bool
4773 Set the data in the specified format from the bytes in the the data string.
4776 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4778 AllFormats
= property(GetAllFormats
,doc
="See `GetAllFormats`")
4779 DataHere
= property(GetDataHere
,doc
="See `GetDataHere`")
4780 DataSize
= property(GetDataSize
,doc
="See `GetDataSize`")
4781 FormatCount
= property(GetFormatCount
,doc
="See `GetFormatCount`")
4782 PreferredFormat
= property(GetPreferredFormat
,doc
="See `GetPreferredFormat`")
4783 _misc_
.DataObject_swigregister(DataObject
)
4784 FormatInvalid
= cvar
.FormatInvalid
4786 class DataObjectSimple(DataObject
):
4788 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4789 format. This is the simplest possible `wx.DataObject` implementation.
4791 This is still an "abstract base class" meaning that you can't use it
4792 directly. You either need to use one of the predefined base classes,
4793 or derive your own class from `wx.PyDataObjectSimple`.
4796 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4797 __repr__
= _swig_repr
4798 def __init__(self
, *args
, **kwargs
):
4800 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4802 Constructor accepts the supported format (none by default) which may
4803 also be set later with `SetFormat`.
4805 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4806 def GetFormat(*args
, **kwargs
):
4808 GetFormat(self) -> DataFormat
4810 Returns the (one and only one) format supported by this object. It is
4811 assumed that the format is supported in both directions.
4813 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4815 def SetFormat(*args
, **kwargs
):
4817 SetFormat(self, DataFormat format)
4819 Sets the supported format.
4821 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4823 def GetDataSize(*args
, **kwargs
):
4825 GetDataSize(self) -> size_t
4827 Get the size of our data.
4829 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4831 def GetDataHere(*args
, **kwargs
):
4833 GetDataHere(self) -> String
4835 Returns the data bytes from the data object as a string, returns None
4836 on failure. Must be implemented in the derived class if the object
4837 supports rendering its data.
4839 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4841 def SetData(*args
, **kwargs
):
4843 SetData(self, String data) -> bool
4845 Copy the data value to the data object. Must be implemented in the
4846 derived class if the object supports setting its data.
4849 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4851 Format
= property(GetFormat
,SetFormat
,doc
="See `GetFormat` and `SetFormat`")
4852 _misc_
.DataObjectSimple_swigregister(DataObjectSimple
)
4854 class PyDataObjectSimple(DataObjectSimple
):
4856 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4857 Python-aware and knows how to reflect calls to its C++ virtual methods
4858 to methods in the Python derived class. You should derive from this
4859 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4860 need to create your own simple single-format type of `wx.DataObject`.
4863 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4864 __repr__
= _swig_repr
4865 def __init__(self
, *args
, **kwargs
):
4867 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4869 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4870 Python-aware and knows how to reflect calls to its C++ virtual methods
4871 to methods in the Python derived class. You should derive from this
4872 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4873 need to create your own simple single-format type of `wx.DataObject`.
4876 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4877 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4879 def _setCallbackInfo(*args
, **kwargs
):
4880 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4881 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4883 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4885 class DataObjectComposite(DataObject
):
4887 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4888 which may be sued to support multiple formats. It contains several
4889 'wx.DataObjectSimple` objects and supports any format supported by at
4890 least one of them. Only one of these data objects is *preferred* (the
4891 first one if not explicitly changed by using the second parameter of
4892 `Add`) and its format determines the preferred format of the composite
4893 data object as well.
4895 See `wx.DataObject` documentation for the reasons why you might prefer
4896 to use wx.DataObject directly instead of wx.DataObjectComposite for
4900 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4901 __repr__
= _swig_repr
4902 def __init__(self
, *args
, **kwargs
):
4904 __init__(self) -> DataObjectComposite
4906 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4907 which may be sued to support multiple formats. It contains several
4908 'wx.DataObjectSimple` objects and supports any format supported by at
4909 least one of them. Only one of these data objects is *preferred* (the
4910 first one if not explicitly changed by using the second parameter of
4911 `Add`) and its format determines the preferred format of the composite
4912 data object as well.
4914 See `wx.DataObject` documentation for the reasons why you might prefer
4915 to use wx.DataObject directly instead of wx.DataObjectComposite for
4919 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4920 def Add(*args
, **kwargs
):
4922 Add(self, DataObjectSimple dataObject, bool preferred=False)
4924 Adds the dataObject to the list of supported objects and it becomes
4925 the preferred object if preferred is True.
4927 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4929 def GetReceivedFormat(*args
, **kwargs
):
4931 GetReceivedFormat(self) -> DataFormat
4933 Report the format passed to the `SetData` method. This should be the
4934 format of the data object within the composite that recieved data from
4935 the clipboard or the DnD operation. You can use this method to find
4936 out what kind of data object was recieved.
4938 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
4940 ReceivedFormat
= property(GetReceivedFormat
,doc
="See `GetReceivedFormat`")
4941 _misc_
.DataObjectComposite_swigregister(DataObjectComposite
)
4943 class TextDataObject(DataObjectSimple
):
4945 wx.TextDataObject is a specialization of `wx.DataObject` for text
4946 data. It can be used without change to paste data into the `wx.Clipboard`
4947 or a `wx.DropSource`.
4949 Alternativly, you may wish to derive a new class from the
4950 `wx.PyTextDataObject` class for providing text on-demand in order to
4951 minimize memory consumption when offering data in several formats,
4952 such as plain text and RTF, because by default the text is stored in a
4953 string in this class, but it might as well be generated on demand when
4954 requested. For this, `GetTextLength` and `GetText` will have to be
4957 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4958 __repr__
= _swig_repr
4959 def __init__(self
, *args
, **kwargs
):
4961 __init__(self, String text=EmptyString) -> TextDataObject
4963 Constructor, may be used to initialise the text (otherwise `SetText`
4964 should be used later).
4966 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4967 def GetTextLength(*args
, **kwargs
):
4969 GetTextLength(self) -> size_t
4971 Returns the data size. By default, returns the size of the text data
4972 set in the constructor or using `SetText`. This can be overridden (via
4973 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4974 recommended to return the text length plus 1 for a trailing zero, but
4975 this is not strictly required.
4977 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4979 def GetText(*args
, **kwargs
):
4981 GetText(self) -> String
4983 Returns the text associated with the data object.
4985 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4987 def SetText(*args
, **kwargs
):
4989 SetText(self, String text)
4991 Sets the text associated with the data object. This method is called
4992 when the data object receives the data and, by default, copies the
4993 text into the member variable. If you want to process the text on the
4994 fly you may wish to override this function (via
4995 `wx.PyTextDataObject`.)
4997 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4999 Text
= property(GetText
,SetText
,doc
="See `GetText` and `SetText`")
5000 TextLength
= property(GetTextLength
,doc
="See `GetTextLength`")
5001 _misc_
.TextDataObject_swigregister(TextDataObject
)
5003 class PyTextDataObject(TextDataObject
):
5005 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5006 Python-aware and knows how to reflect calls to its C++ virtual methods
5007 to methods in the Python derived class. You should derive from this
5008 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5009 want to be able to provide text on demand instead of preloading it
5010 into the data object.
5012 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5013 __repr__
= _swig_repr
5014 def __init__(self
, *args
, **kwargs
):
5016 __init__(self, String text=EmptyString) -> PyTextDataObject
5018 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5019 Python-aware and knows how to reflect calls to its C++ virtual methods
5020 to methods in the Python derived class. You should derive from this
5021 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5022 want to be able to provide text on demand instead of preloading it
5023 into the data object.
5025 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
5026 self
._setCallbackInfo
(self
, PyTextDataObject
)
5028 def _setCallbackInfo(*args
, **kwargs
):
5029 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5030 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
5032 _misc_
.PyTextDataObject_swigregister(PyTextDataObject
)
5034 class BitmapDataObject(DataObjectSimple
):
5036 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
5037 data. It can be used without change to paste data into the `wx.Clipboard`
5038 or a `wx.DropSource`.
5041 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5042 __repr__
= _swig_repr
5043 def __init__(self
, *args
, **kwargs
):
5045 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
5047 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
5050 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
5051 def GetBitmap(*args
, **kwargs
):
5053 GetBitmap(self) -> Bitmap
5055 Returns the bitmap associated with the data object. You may wish to
5056 override this method (by deriving from `wx.PyBitmapDataObject`) when
5057 offering data on-demand, but this is not required by wxWidgets'
5058 internals. Use this method to get data in bitmap form from the
5061 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
5063 def SetBitmap(*args
, **kwargs
):
5065 SetBitmap(self, Bitmap bitmap)
5067 Sets the bitmap associated with the data object. This method is called
5068 when the data object receives data. Usually there will be no reason to
5069 override this function.
5071 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
5073 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
5074 _misc_
.BitmapDataObject_swigregister(BitmapDataObject
)
5076 class PyBitmapDataObject(BitmapDataObject
):
5078 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5079 Python-aware and knows how to reflect calls to its C++ virtual methods
5080 to methods in the Python derived class. To be able to provide bitmap
5081 data on demand derive from this class and overload `GetBitmap`.
5083 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5084 __repr__
= _swig_repr
5085 def __init__(self
, *args
, **kwargs
):
5087 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
5089 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5090 Python-aware and knows how to reflect calls to its C++ virtual methods
5091 to methods in the Python derived class. To be able to provide bitmap
5092 data on demand derive from this class and overload `GetBitmap`.
5094 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
5095 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
5097 def _setCallbackInfo(*args
, **kwargs
):
5098 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5099 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
5101 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObject
)
5103 class FileDataObject(DataObjectSimple
):
5105 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
5106 file names. The program works with it just as if it were a list of
5107 absolute file names, but internally it uses the same format as
5108 Explorer and other compatible programs under Windows or GNOME/KDE
5109 filemanager under Unix which makes it possible to receive files from
5110 them using this class.
5112 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5113 __repr__
= _swig_repr
5114 def __init__(self
, *args
, **kwargs
):
5115 """__init__(self) -> FileDataObject"""
5116 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
5117 def GetFilenames(*args
, **kwargs
):
5119 GetFilenames(self) -> [names]
5121 Returns a list of file names.
5123 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
5125 def AddFile(*args
, **kwargs
):
5127 AddFile(self, String filename)
5129 Adds a file to the list of files represented by this data object.
5131 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5133 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
5134 _misc_
.FileDataObject_swigregister(FileDataObject
)
5136 class CustomDataObject(DataObjectSimple
):
5138 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5139 some application-specific data in arbitrary format. Python strings
5140 are used for getting and setting data, but any picklable object can
5141 easily be transfered via strings. A copy of the data is stored in the
5144 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5145 __repr__
= _swig_repr
5146 def __init__(self
, *args
):
5148 __init__(self, DataFormat format) -> CustomDataObject
5149 __init__(self, String formatName) -> CustomDataObject
5150 __init__(self) -> CustomDataObject
5152 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5153 some application-specific data in arbitrary format. Python strings
5154 are used for getting and setting data, but any picklable object can
5155 easily be transfered via strings. A copy of the data is stored in the
5158 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
5159 def SetData(*args
, **kwargs
):
5161 SetData(self, String data) -> bool
5163 Copy the data value to the data object.
5165 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5168 def GetSize(*args
, **kwargs
):
5170 GetSize(self) -> size_t
5172 Get the size of the data.
5174 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5176 def GetData(*args
, **kwargs
):
5178 GetData(self) -> String
5180 Returns the data bytes from the data object as a string.
5182 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5184 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5185 Size
= property(GetSize
,doc
="See `GetSize`")
5186 _misc_
.CustomDataObject_swigregister(CustomDataObject
)
5188 class URLDataObject(DataObject
):
5190 This data object holds a URL in a format that is compatible with some
5191 browsers such that it is able to be dragged to or from them.
5193 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5194 __repr__
= _swig_repr
5195 def __init__(self
, *args
, **kwargs
):
5197 __init__(self, String url=EmptyString) -> URLDataObject
5199 This data object holds a URL in a format that is compatible with some
5200 browsers such that it is able to be dragged to or from them.
5202 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
5203 def GetURL(*args
, **kwargs
):
5205 GetURL(self) -> String
5207 Returns a string containing the current URL.
5209 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5211 def SetURL(*args
, **kwargs
):
5213 SetURL(self, String url)
5217 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5219 _misc_
.URLDataObject_swigregister(URLDataObject
)
5221 class MetafileDataObject(DataObjectSimple
):
5222 """Proxy of C++ MetafileDataObject class"""
5223 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5224 __repr__
= _swig_repr
5225 def __init__(self
, *args
, **kwargs
):
5226 """__init__(self) -> MetafileDataObject"""
5227 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
5228 _misc_
.MetafileDataObject_swigregister(MetafileDataObject
)
5230 #---------------------------------------------------------------------------
5232 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5233 Drag_AllowMove
= _misc_
.Drag_AllowMove
5234 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5235 DragError
= _misc_
.DragError
5236 DragNone
= _misc_
.DragNone
5237 DragCopy
= _misc_
.DragCopy
5238 DragMove
= _misc_
.DragMove
5239 DragLink
= _misc_
.DragLink
5240 DragCancel
= _misc_
.DragCancel
5242 def IsDragResultOk(*args
, **kwargs
):
5243 """IsDragResultOk(int res) -> bool"""
5244 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5245 class DropSource(object):
5246 """Proxy of C++ DropSource class"""
5247 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5248 __repr__
= _swig_repr
5249 def __init__(self
, *args
, **kwargs
):
5251 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
5252 Icon none=wxNullIcon) -> DropSource
5254 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
5255 self
._setCallbackInfo
(self
, DropSource
, 0)
5257 def _setCallbackInfo(*args
, **kwargs
):
5258 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5259 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5261 __swig_destroy__
= _misc_
.delete_DropSource
5262 __del__
= lambda self
: None;
5263 def SetData(*args
, **kwargs
):
5264 """SetData(self, DataObject data)"""
5265 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5267 def GetDataObject(*args
, **kwargs
):
5268 """GetDataObject(self) -> DataObject"""
5269 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5271 def SetCursor(*args
, **kwargs
):
5272 """SetCursor(self, int res, Cursor cursor)"""
5273 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5275 def DoDragDrop(*args
, **kwargs
):
5276 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5277 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5279 def GiveFeedback(*args
, **kwargs
):
5280 """GiveFeedback(self, int effect) -> bool"""
5281 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
5283 def base_GiveFeedback(*args
, **kw
):
5284 return DropSource
.GiveFeedback(*args
, **kw
)
5285 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
5286 "Please use DropSource.GiveFeedback instead.")
5288 DataObject
= property(GetDataObject
,SetData
,doc
="See `GetDataObject` and `SetData`")
5289 _misc_
.DropSource_swigregister(DropSource
)
5291 def DROP_ICON(filename
):
5293 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5294 ``filename``. This function is useful with the `wx.DropSource` class
5295 which, depending on platform accepts either a icon or a cursor.
5297 img
= wx
.Image(filename
)
5298 if wx
.Platform
== '__WXGTK__':
5299 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
5301 return wx
.CursorFromImage(img
)
5303 class DropTarget(object):
5304 """Proxy of C++ DropTarget class"""
5305 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5306 __repr__
= _swig_repr
5307 def __init__(self
, *args
, **kwargs
):
5308 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5309 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5310 self
._setCallbackInfo
(self
, DropTarget
)
5312 def _setCallbackInfo(*args
, **kwargs
):
5313 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5314 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5316 __swig_destroy__
= _misc_
.delete_DropTarget
5317 __del__
= lambda self
: None;
5318 def GetDataObject(*args
, **kwargs
):
5319 """GetDataObject(self) -> DataObject"""
5320 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5322 def SetDataObject(*args
, **kwargs
):
5323 """SetDataObject(self, DataObject dataObject)"""
5324 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5326 def OnEnter(*args
, **kwargs
):
5327 """OnEnter(self, int x, int y, int def) -> int"""
5328 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5330 def OnDragOver(*args
, **kwargs
):
5331 """OnDragOver(self, int x, int y, int def) -> int"""
5332 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5334 def OnLeave(*args
, **kwargs
):
5336 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5338 def OnDrop(*args
, **kwargs
):
5339 """OnDrop(self, int x, int y) -> bool"""
5340 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5342 def base_OnEnter(*args
, **kw
):
5343 return DropTarget
.OnEnter(*args
, **kw
)
5344 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5345 "Please use DropTarget.OnEnter instead.")
5347 def base_OnDragOver(*args
, **kw
):
5348 return DropTarget
.OnDragOver(*args
, **kw
)
5349 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5350 "Please use DropTarget.OnDragOver instead.")
5352 def base_OnLeave(*args
, **kw
):
5353 return DropTarget
.OnLeave(*args
, **kw
)
5354 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5355 "Please use DropTarget.OnLeave instead.")
5357 def base_OnDrop(*args
, **kw
):
5358 return DropTarget
.OnDrop(*args
, **kw
)
5359 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5360 "Please use DropTarget.OnDrop instead.")
5362 def GetData(*args
, **kwargs
):
5363 """GetData(self) -> bool"""
5364 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5366 def SetDefaultAction(*args
, **kwargs
):
5367 """SetDefaultAction(self, int action)"""
5368 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5370 def GetDefaultAction(*args
, **kwargs
):
5371 """GetDefaultAction(self) -> int"""
5372 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5374 Data
= property(GetData
,doc
="See `GetData`")
5375 DataObject
= property(GetDataObject
,SetDataObject
,doc
="See `GetDataObject` and `SetDataObject`")
5376 DefaultAction
= property(GetDefaultAction
,SetDefaultAction
,doc
="See `GetDefaultAction` and `SetDefaultAction`")
5377 _misc_
.DropTarget_swigregister(DropTarget
)
5379 PyDropTarget
= DropTarget
5380 class TextDropTarget(DropTarget
):
5381 """Proxy of C++ TextDropTarget class"""
5382 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5383 __repr__
= _swig_repr
5384 def __init__(self
, *args
, **kwargs
):
5385 """__init__(self) -> TextDropTarget"""
5386 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5387 self
._setCallbackInfo
(self
, TextDropTarget
)
5389 def _setCallbackInfo(*args
, **kwargs
):
5390 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5391 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5393 def OnDropText(*args
, **kwargs
):
5394 """OnDropText(self, int x, int y, String text) -> bool"""
5395 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5397 def OnEnter(*args
, **kwargs
):
5398 """OnEnter(self, int x, int y, int def) -> int"""
5399 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5401 def OnDragOver(*args
, **kwargs
):
5402 """OnDragOver(self, int x, int y, int def) -> int"""
5403 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5405 def OnLeave(*args
, **kwargs
):
5407 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5409 def OnDrop(*args
, **kwargs
):
5410 """OnDrop(self, int x, int y) -> bool"""
5411 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5413 def OnData(*args
, **kwargs
):
5414 """OnData(self, int x, int y, int def) -> int"""
5415 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5417 def base_OnDropText(*args
, **kw
):
5418 return TextDropTarget
.OnDropText(*args
, **kw
)
5419 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5420 "Please use TextDropTarget.OnDropText instead.")
5422 def base_OnEnter(*args
, **kw
):
5423 return TextDropTarget
.OnEnter(*args
, **kw
)
5424 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5425 "Please use TextDropTarget.OnEnter instead.")
5427 def base_OnDragOver(*args
, **kw
):
5428 return TextDropTarget
.OnDragOver(*args
, **kw
)
5429 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5430 "Please use TextDropTarget.OnDragOver instead.")
5432 def base_OnLeave(*args
, **kw
):
5433 return TextDropTarget
.OnLeave(*args
, **kw
)
5434 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5435 "Please use TextDropTarget.OnLeave instead.")
5437 def base_OnDrop(*args
, **kw
):
5438 return TextDropTarget
.OnDrop(*args
, **kw
)
5439 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5440 "Please use TextDropTarget.OnDrop instead.")
5442 def base_OnData(*args
, **kw
):
5443 return TextDropTarget
.OnData(*args
, **kw
)
5444 base_OnData
= wx
._deprecated
(base_OnData
,
5445 "Please use TextDropTarget.OnData instead.")
5447 _misc_
.TextDropTarget_swigregister(TextDropTarget
)
5449 class FileDropTarget(DropTarget
):
5450 """Proxy of C++ FileDropTarget class"""
5451 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5452 __repr__
= _swig_repr
5453 def __init__(self
, *args
, **kwargs
):
5454 """__init__(self) -> FileDropTarget"""
5455 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5456 self
._setCallbackInfo
(self
, FileDropTarget
)
5458 def _setCallbackInfo(*args
, **kwargs
):
5459 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5460 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5462 def OnDropFiles(*args
, **kwargs
):
5463 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5464 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5466 def OnEnter(*args
, **kwargs
):
5467 """OnEnter(self, int x, int y, int def) -> int"""
5468 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5470 def OnDragOver(*args
, **kwargs
):
5471 """OnDragOver(self, int x, int y, int def) -> int"""
5472 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5474 def OnLeave(*args
, **kwargs
):
5476 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5478 def OnDrop(*args
, **kwargs
):
5479 """OnDrop(self, int x, int y) -> bool"""
5480 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5482 def OnData(*args
, **kwargs
):
5483 """OnData(self, int x, int y, int def) -> int"""
5484 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5486 def base_OnDropFiles(*args
, **kw
):
5487 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5488 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5489 "Please use FileDropTarget.OnDropFiles instead.")
5491 def base_OnEnter(*args
, **kw
):
5492 return FileDropTarget
.OnEnter(*args
, **kw
)
5493 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5494 "Please use FileDropTarget.OnEnter instead.")
5496 def base_OnDragOver(*args
, **kw
):
5497 return FileDropTarget
.OnDragOver(*args
, **kw
)
5498 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5499 "Please use FileDropTarget.OnDragOver instead.")
5501 def base_OnLeave(*args
, **kw
):
5502 return FileDropTarget
.OnLeave(*args
, **kw
)
5503 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5504 "Please use FileDropTarget.OnLeave instead.")
5506 def base_OnDrop(*args
, **kw
):
5507 return FileDropTarget
.OnDrop(*args
, **kw
)
5508 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5509 "Please use FileDropTarget.OnDrop instead.")
5511 def base_OnData(*args
, **kw
):
5512 return FileDropTarget
.OnData(*args
, **kw
)
5513 base_OnData
= wx
._deprecated
(base_OnData
,
5514 "Please use FileDropTarget.OnData instead.")
5516 _misc_
.FileDropTarget_swigregister(FileDropTarget
)
5518 #---------------------------------------------------------------------------
5520 class Clipboard(_core
.Object
):
5522 wx.Clipboard represents the system clipboard and provides methods to
5523 copy data to it or paste data from it. Normally, you should only use
5524 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5527 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5528 clipboard. If this operation returns True, you now own the
5529 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5530 to retrieve data from the clipboard. Call `Close` to close the
5531 clipboard and relinquish ownership. You should keep the clipboard open
5534 :see: `wx.DataObject`
5537 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5538 __repr__
= _swig_repr
5539 def __init__(self
, *args
, **kwargs
):
5540 """__init__(self) -> Clipboard"""
5541 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5542 __swig_destroy__
= _misc_
.delete_Clipboard
5543 __del__
= lambda self
: None;
5544 def Open(*args
, **kwargs
):
5548 Call this function to open the clipboard before calling SetData and
5549 GetData. Call Close when you have finished with the clipboard. You
5550 should keep the clipboard open for only a very short time. Returns
5553 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5555 def Close(*args
, **kwargs
):
5559 Closes the clipboard.
5561 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5563 def IsOpened(*args
, **kwargs
):
5565 IsOpened(self) -> bool
5567 Query whether the clipboard is opened
5569 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5571 def AddData(*args
, **kwargs
):
5573 AddData(self, DataObject data) -> bool
5575 Call this function to add the data object to the clipboard. You may
5576 call this function repeatedly after having cleared the clipboard.
5577 After this function has been called, the clipboard owns the data, so
5578 do not delete the data explicitly.
5580 :see: `wx.DataObject`
5582 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5584 def SetData(*args
, **kwargs
):
5586 SetData(self, DataObject data) -> bool
5588 Set the clipboard data, this is the same as `Clear` followed by
5591 :see: `wx.DataObject`
5593 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5595 def IsSupported(*args
, **kwargs
):
5597 IsSupported(self, DataFormat format) -> bool
5599 Returns True if the given format is available in the data object(s) on
5602 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5604 def GetData(*args
, **kwargs
):
5606 GetData(self, DataObject data) -> bool
5608 Call this function to fill data with data on the clipboard, if
5609 available in the required format. Returns true on success.
5611 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5613 def Clear(*args
, **kwargs
):
5617 Clears data from the clipboard object and also the system's clipboard
5620 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5622 def Flush(*args
, **kwargs
):
5626 Flushes the clipboard: this means that the data which is currently on
5627 clipboard will stay available even after the application exits,
5628 possibly eating memory, otherwise the clipboard will be emptied on
5629 exit. Returns False if the operation is unsuccesful for any reason.
5631 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5633 def UsePrimarySelection(*args
, **kwargs
):
5635 UsePrimarySelection(self, bool primary=True)
5637 On platforms supporting it (the X11 based platforms), selects the
5638 so called PRIMARY SELECTION as the clipboard as opposed to the
5639 normal clipboard, if primary is True.
5641 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5643 def Get(*args
, **kwargs
):
5647 Returns global instance (wxTheClipboard) of the object.
5649 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5651 Get
= staticmethod(Get
)
5652 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5653 _misc_
.Clipboard_swigregister(Clipboard
)
5655 def Clipboard_Get(*args
):
5657 Clipboard_Get() -> Clipboard
5659 Returns global instance (wxTheClipboard) of the object.
5661 return _misc_
.Clipboard_Get(*args
)
5663 class _wxPyDelayedInitWrapper(object):
5664 def __init__(self
, initfunc
, *args
, **kwargs
):
5665 self
._initfunc
= initfunc
5667 self
._kwargs
= kwargs
5668 self
._instance
= None
5669 def _checkInstance(self
):
5670 if self
._instance
is None:
5672 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5673 def __getattr__(self
, name
):
5674 self
._checkInstance
()
5675 return getattr(self
._instance
, name
)
5677 self
._checkInstance
()
5678 return repr(self
._instance
)
5679 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5681 class ClipboardLocker(object):
5683 A helpful class for opening the clipboard and automatically
5684 closing it when the locker is destroyed.
5686 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5687 __repr__
= _swig_repr
5688 def __init__(self
, *args
, **kwargs
):
5690 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5692 A helpful class for opening the clipboard and automatically
5693 closing it when the locker is destroyed.
5695 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5696 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5697 __del__
= lambda self
: None;
5698 def __nonzero__(*args
, **kwargs
):
5700 __nonzero__(self) -> bool
5702 A ClipboardLocker instance evaluates to True if the clipboard was
5703 successfully opened.
5705 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5707 _misc_
.ClipboardLocker_swigregister(ClipboardLocker
)
5709 #---------------------------------------------------------------------------
5711 class VideoMode(object):
5712 """A simple struct containing video mode parameters for a display"""
5713 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5714 __repr__
= _swig_repr
5715 def __init__(self
, *args
, **kwargs
):
5717 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5719 A simple struct containing video mode parameters for a display
5721 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5722 __swig_destroy__
= _misc_
.delete_VideoMode
5723 __del__
= lambda self
: None;
5724 def Matches(*args
, **kwargs
):
5726 Matches(self, VideoMode other) -> bool
5728 Returns True if this mode matches the other one in the sense that all
5729 non-zero fields of the other mode have the same value in this
5730 one (except for refresh which is allowed to have a greater value)
5732 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5734 def GetWidth(*args
, **kwargs
):
5736 GetWidth(self) -> int
5738 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5740 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5742 def GetHeight(*args
, **kwargs
):
5744 GetHeight(self) -> int
5746 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5748 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5750 def GetDepth(*args
, **kwargs
):
5752 GetDepth(self) -> int
5754 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5755 means unspecified/known
5757 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5759 def IsOk(*args
, **kwargs
):
5763 returns true if the object has been initialized
5765 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5767 def __nonzero__(self
): return self
.IsOk()
5768 def __eq__(*args
, **kwargs
):
5769 """__eq__(self, VideoMode other) -> bool"""
5770 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5772 def __ne__(*args
, **kwargs
):
5773 """__ne__(self, VideoMode other) -> bool"""
5774 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5776 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5777 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5778 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5779 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5780 _misc_
.VideoMode_swigregister(VideoMode
)
5782 class Display(object):
5783 """Represents a display/monitor attached to the system"""
5784 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5785 __repr__
= _swig_repr
5786 def __init__(self
, *args
, **kwargs
):
5788 __init__(self, size_t index=0) -> Display
5790 Set up a Display instance with the specified display. The displays
5791 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5792 and the only one which is always supported
5794 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5795 __swig_destroy__
= _misc_
.delete_Display
5796 __del__
= lambda self
: None;
5797 def GetCount(*args
, **kwargs
):
5799 GetCount() -> size_t
5801 Return the number of available displays.
5803 return _misc_
.Display_GetCount(*args
, **kwargs
)
5805 GetCount
= staticmethod(GetCount
)
5806 def GetFromPoint(*args
, **kwargs
):
5808 GetFromPoint(Point pt) -> int
5810 Find the display where the given point lies, return wx.NOT_FOUND if it
5811 doesn't belong to any display
5813 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5815 GetFromPoint
= staticmethod(GetFromPoint
)
5816 def GetFromWindow(*args
, **kwargs
):
5818 GetFromWindow(Window window) -> int
5820 Find the display where the given window lies, return wx.NOT_FOUND if
5821 it is not shown at all.
5823 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5825 GetFromWindow
= staticmethod(GetFromWindow
)
5826 def IsOk(*args
, **kwargs
):
5830 Return true if the object was initialized successfully
5832 return _misc_
.Display_IsOk(*args
, **kwargs
)
5834 def __nonzero__(self
): return self
.IsOk()
5835 def GetGeometry(*args
, **kwargs
):
5837 GetGeometry(self) -> Rect
5839 Returns the bounding rectangle of the display whose index was passed
5842 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5844 def GetClientArea(*args
, **kwargs
):
5846 GetClientArea(self) -> Rect
5848 Returns the bounding rectangle the client area of the display,
5849 i.e., without taskbars and such.
5851 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5853 def GetName(*args
, **kwargs
):
5855 GetName(self) -> String
5857 Returns the display's name. A name is not available on all platforms.
5859 return _misc_
.Display_GetName(*args
, **kwargs
)
5861 def IsPrimary(*args
, **kwargs
):
5863 IsPrimary(self) -> bool
5865 Returns True if the display is the primary display. The primary
5866 display is the one whose index is 0.
5868 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5870 def GetModes(*args
, **kwargs
):
5872 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5874 Enumerate all video modes supported by this display matching the given
5875 one (in the sense of VideoMode.Match()).
5877 As any mode matches the default value of the argument and there is
5878 always at least one video mode supported by display, the returned
5879 array is only empty for the default value of the argument if this
5880 function is not supported at all on this platform.
5882 return _misc_
.Display_GetModes(*args
, **kwargs
)
5884 def GetCurrentMode(*args
, **kwargs
):
5886 GetCurrentMode(self) -> VideoMode
5888 Get the current video mode.
5890 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5892 def ChangeMode(*args
, **kwargs
):
5894 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5896 Changes the video mode of this display to the mode specified in the
5899 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5900 behaviour is that wx.Display will reset the video mode to the default
5901 mode used by the display. On Windows, the behavior is normal.
5902 However, there are differences on other platforms. On Unix variations
5903 using X11 extensions it should behave as defined, but some
5904 irregularities may occur.
5906 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5907 nothing. This happens because Carbon no longer has access to
5908 DMUseScreenPrefs, an undocumented function that changed the video mode
5909 to the system default by using the system's 'scrn' resource.
5911 Returns True if succeeded, False otherwise
5913 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5915 def ResetMode(*args
, **kwargs
):
5919 Restore the default video mode (just a more readable synonym)
5921 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5923 ClientArea
= property(GetClientArea
,doc
="See `GetClientArea`")
5924 CurrentMode
= property(GetCurrentMode
,doc
="See `GetCurrentMode`")
5925 Geometry
= property(GetGeometry
,doc
="See `GetGeometry`")
5926 Modes
= property(GetModes
,doc
="See `GetModes`")
5927 Name
= property(GetName
,doc
="See `GetName`")
5928 _misc_
.Display_swigregister(Display
)
5929 DefaultVideoMode
= cvar
.DefaultVideoMode
5931 def Display_GetCount(*args
):
5933 Display_GetCount() -> size_t
5935 Return the number of available displays.
5937 return _misc_
.Display_GetCount(*args
)
5939 def Display_GetFromPoint(*args
, **kwargs
):
5941 Display_GetFromPoint(Point pt) -> int
5943 Find the display where the given point lies, return wx.NOT_FOUND if it
5944 doesn't belong to any display
5946 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5948 def Display_GetFromWindow(*args
, **kwargs
):
5950 Display_GetFromWindow(Window window) -> int
5952 Find the display where the given window lies, return wx.NOT_FOUND if
5953 it is not shown at all.
5955 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5957 #---------------------------------------------------------------------------
5959 class StandardPaths(object):
5961 wx.StandardPaths returns standard locations in the file system and
5962 should be used by programs to find their data files in a portable way.
5964 In the description of the methods below, the example return values are
5965 given for the Unix, Windows and Mac OS X systems, however please note
5966 that these are just examples and the actual values may differ. For
5967 example, under Windows the system administrator may change the
5968 standard directories locations, i.e. the Windows directory may be
5969 named W:\Win2003 instead of the default C:\Windows.
5971 The strings appname and username should be replaced with the value
5972 returned by `wx.App.GetAppName` and the name of the currently logged
5973 in user, respectively. The string prefix is only used under Unix and
5974 is /usr/local by default but may be changed using `SetInstallPrefix`.
5976 The directories returned by the methods of this class may or may not
5977 exist. If they don't exist, it's up to the caller to create them,
5978 wx.StandardPaths doesn't do it.
5980 Finally note that these functions only work with standardly packaged
5981 applications. I.e. under Unix you should follow the standard
5982 installation conventions and under Mac you should create your
5983 application bundle according to the Apple guidelines. Again, this
5984 class doesn't help you to do it.
5986 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5987 def __init__(self
): raise AttributeError, "No constructor defined"
5988 __repr__
= _swig_repr
5989 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
5990 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
5991 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
5992 def Get(*args
, **kwargs
):
5994 Get() -> StandardPaths
5996 Return the global standard paths singleton
5998 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
6000 Get
= staticmethod(Get
)
6001 def GetConfigDir(*args
, **kwargs
):
6003 GetConfigDir(self) -> String
6005 Return the directory with system config files: /etc under Unix,
6006 'c:\Documents and Settings\All Users\Application Data' under Windows,
6007 /Library/Preferences for Mac
6009 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
6011 def GetUserConfigDir(*args
, **kwargs
):
6013 GetUserConfigDir(self) -> String
6015 Return the directory for the user config files: $HOME under Unix,
6016 'c:\Documents and Settings\username' under Windows, and
6017 ~/Library/Preferences under Mac
6019 Only use this if you have a single file to put there, otherwise
6020 `GetUserDataDir` is more appropriate
6022 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
6024 def GetDataDir(*args
, **kwargs
):
6026 GetDataDir(self) -> String
6028 Return the location of the application's global, (i.e. not
6029 user-specific,) data files: prefix/share/appname under Unix,
6030 'c:\Program Files\appname' under Windows,
6031 appname.app/Contents/SharedSupport app bundle directory under Mac.
6033 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
6035 def GetLocalDataDir(*args
, **kwargs
):
6037 GetLocalDataDir(self) -> String
6039 Return the location for application data files which are
6040 host-specific. Same as `GetDataDir` except under Unix where it is
6043 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
6045 def GetUserDataDir(*args
, **kwargs
):
6047 GetUserDataDir(self) -> String
6049 Return the directory for the user-dependent application data files:
6050 $HOME/.appname under Unix, c:\Documents and
6051 Settings\username\Application Data\appname under Windows and
6052 ~/Library/Application Support/appname under Mac
6054 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
6056 def GetUserLocalDataDir(*args
, **kwargs
):
6058 GetUserLocalDataDir(self) -> String
6060 Return the directory for user data files which shouldn't be shared
6061 with the other machines
6063 Same as `GetUserDataDir` for all platforms except Windows where it is
6064 the 'Local Settings\Application Data\appname' directory.
6066 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
6068 def GetPluginsDir(*args
, **kwargs
):
6070 GetPluginsDir(self) -> String
6072 Return the directory where the loadable modules (plugins) live:
6073 prefix/lib/appname under Unix, program directory under Windows and
6074 Contents/Plugins app bundle subdirectory under Mac
6076 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
6078 def GetResourcesDir(*args
, **kwargs
):
6080 GetResourcesDir(self) -> String
6082 Get resources directory. Resources are auxiliary files used by the
6083 application and include things like image and sound files.
6085 Same as `GetDataDir` for all platforms except Mac where it returns
6086 Contents/Resources subdirectory of the app bundle.
6088 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
6090 def GetLocalizedResourcesDir(*args
, **kwargs
):
6092 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
6094 Get localized resources directory containing the resource files of the
6095 specified category for the given language.
6097 In general this is just GetResourcesDir()/lang under Windows and Unix
6098 and GetResourcesDir()/lang.lproj under Mac but is something quite
6099 different under Unix for the message catalog category (namely the
6100 standard prefix/share/locale/lang/LC_MESSAGES.)
6102 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
6104 def GetDocumentsDir(*args
, **kwargs
):
6106 GetDocumentsDir(self) -> String
6108 Return the Documents directory for the current user.
6110 C:\Documents and Settings\username\Documents under Windows,
6111 $HOME under Unix and ~/Documents under Mac
6113 return _misc_
.StandardPaths_GetDocumentsDir(*args
, **kwargs
)
6115 def SetInstallPrefix(*args
, **kwargs
):
6117 SetInstallPrefix(self, String prefix)
6119 Set the program installation directory which is /usr/local by default.
6120 This value will be used by other methods such as `GetDataDir` and
6121 `GetPluginsDir` as the prefix for what they return. (This function
6122 only has meaning on Unix systems.)
6124 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
6126 def GetInstallPrefix(*args
, **kwargs
):
6128 GetInstallPrefix(self) -> String
6130 Get the program installation prefix. The default is the prefix where
6131 Python is installed. (This function only has meaning on Unix systems.)
6133 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
6135 _misc_
.StandardPaths_swigregister(StandardPaths
)
6137 def StandardPaths_Get(*args
):
6139 StandardPaths_Get() -> StandardPaths
6141 Return the global standard paths singleton
6143 return _misc_
.StandardPaths_Get(*args
)
6145 #---------------------------------------------------------------------------
6147 POWER_SOCKET
= _misc_
.POWER_SOCKET
6148 POWER_BATTERY
= _misc_
.POWER_BATTERY
6149 POWER_UNKNOWN
= _misc_
.POWER_UNKNOWN
6150 BATTERY_NORMAL_STATE
= _misc_
.BATTERY_NORMAL_STATE
6151 BATTERY_LOW_STATE
= _misc_
.BATTERY_LOW_STATE
6152 BATTERY_CRITICAL_STATE
= _misc_
.BATTERY_CRITICAL_STATE
6153 BATTERY_SHUTDOWN_STATE
= _misc_
.BATTERY_SHUTDOWN_STATE
6154 BATTERY_UNKNOWN_STATE
= _misc_
.BATTERY_UNKNOWN_STATE
6155 class PowerEvent(_core
.Event
):
6157 wx.PowerEvent is generated when the system online status changes.
6158 Currently this is only implemented for Windows.
6160 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6161 __repr__
= _swig_repr
6162 def __init__(self
, *args
, **kwargs
):
6164 __init__(self, EventType evtType) -> PowerEvent
6166 wx.PowerEvent is generated when the system online status changes.
6167 Currently this is only implemented for Windows.
6169 _misc_
.PowerEvent_swiginit(self
,_misc_
.new_PowerEvent(*args
, **kwargs
))
6170 def Veto(*args
, **kwargs
):
6172 return _misc_
.PowerEvent_Veto(*args
, **kwargs
)
6174 def IsVetoed(*args
, **kwargs
):
6175 """IsVetoed(self) -> bool"""
6176 return _misc_
.PowerEvent_IsVetoed(*args
, **kwargs
)
6178 _misc_
.PowerEvent_swigregister(PowerEvent
)
6180 wxEVT_POWER_SUSPENDING
= _misc_
.wxEVT_POWER_SUSPENDING
6181 wxEVT_POWER_SUSPENDED
= _misc_
.wxEVT_POWER_SUSPENDED
6182 wxEVT_POWER_SUSPEND_CANCEL
= _misc_
.wxEVT_POWER_SUSPEND_CANCEL
6183 wxEVT_POWER_RESUME
= _misc_
.wxEVT_POWER_RESUME
6184 EVT_POWER_SUSPENDING
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDING
, 1 )
6185 EVT_POWER_SUSPENDED
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDED
, 1 )
6186 EVT_POWER_SUSPEND_CANCEL
= wx
.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL
, 1 )
6187 EVT_POWER_RESUME
= wx
.PyEventBinder( wxEVT_POWER_RESUME
, 1 )
6190 def GetPowerType(*args
):
6192 GetPowerType() -> int
6194 return the current system power state: online or offline
6196 return _misc_
.GetPowerType(*args
)
6198 def GetBatteryState(*args
):
6200 GetBatteryState() -> int
6202 return approximate battery state
6204 return _misc_
.GetBatteryState(*args
)