1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 SYS_OEM_FIXED_FONT
= _misc_
.SYS_OEM_FIXED_FONT
59 SYS_ANSI_FIXED_FONT
= _misc_
.SYS_ANSI_FIXED_FONT
60 SYS_ANSI_VAR_FONT
= _misc_
.SYS_ANSI_VAR_FONT
61 SYS_SYSTEM_FONT
= _misc_
.SYS_SYSTEM_FONT
62 SYS_DEVICE_DEFAULT_FONT
= _misc_
.SYS_DEVICE_DEFAULT_FONT
63 SYS_DEFAULT_PALETTE
= _misc_
.SYS_DEFAULT_PALETTE
64 SYS_SYSTEM_FIXED_FONT
= _misc_
.SYS_SYSTEM_FIXED_FONT
65 SYS_DEFAULT_GUI_FONT
= _misc_
.SYS_DEFAULT_GUI_FONT
66 SYS_ICONTITLE_FONT
= _misc_
.SYS_ICONTITLE_FONT
67 SYS_COLOUR_SCROLLBAR
= _misc_
.SYS_COLOUR_SCROLLBAR
68 SYS_COLOUR_BACKGROUND
= _misc_
.SYS_COLOUR_BACKGROUND
69 SYS_COLOUR_DESKTOP
= _misc_
.SYS_COLOUR_DESKTOP
70 SYS_COLOUR_ACTIVECAPTION
= _misc_
.SYS_COLOUR_ACTIVECAPTION
71 SYS_COLOUR_INACTIVECAPTION
= _misc_
.SYS_COLOUR_INACTIVECAPTION
72 SYS_COLOUR_MENU
= _misc_
.SYS_COLOUR_MENU
73 SYS_COLOUR_WINDOW
= _misc_
.SYS_COLOUR_WINDOW
74 SYS_COLOUR_WINDOWFRAME
= _misc_
.SYS_COLOUR_WINDOWFRAME
75 SYS_COLOUR_MENUTEXT
= _misc_
.SYS_COLOUR_MENUTEXT
76 SYS_COLOUR_WINDOWTEXT
= _misc_
.SYS_COLOUR_WINDOWTEXT
77 SYS_COLOUR_CAPTIONTEXT
= _misc_
.SYS_COLOUR_CAPTIONTEXT
78 SYS_COLOUR_ACTIVEBORDER
= _misc_
.SYS_COLOUR_ACTIVEBORDER
79 SYS_COLOUR_INACTIVEBORDER
= _misc_
.SYS_COLOUR_INACTIVEBORDER
80 SYS_COLOUR_APPWORKSPACE
= _misc_
.SYS_COLOUR_APPWORKSPACE
81 SYS_COLOUR_HIGHLIGHT
= _misc_
.SYS_COLOUR_HIGHLIGHT
82 SYS_COLOUR_HIGHLIGHTTEXT
= _misc_
.SYS_COLOUR_HIGHLIGHTTEXT
83 SYS_COLOUR_BTNFACE
= _misc_
.SYS_COLOUR_BTNFACE
84 SYS_COLOUR_3DFACE
= _misc_
.SYS_COLOUR_3DFACE
85 SYS_COLOUR_BTNSHADOW
= _misc_
.SYS_COLOUR_BTNSHADOW
86 SYS_COLOUR_3DSHADOW
= _misc_
.SYS_COLOUR_3DSHADOW
87 SYS_COLOUR_GRAYTEXT
= _misc_
.SYS_COLOUR_GRAYTEXT
88 SYS_COLOUR_BTNTEXT
= _misc_
.SYS_COLOUR_BTNTEXT
89 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc_
.SYS_COLOUR_INACTIVECAPTIONTEXT
90 SYS_COLOUR_BTNHIGHLIGHT
= _misc_
.SYS_COLOUR_BTNHIGHLIGHT
91 SYS_COLOUR_BTNHILIGHT
= _misc_
.SYS_COLOUR_BTNHILIGHT
92 SYS_COLOUR_3DHIGHLIGHT
= _misc_
.SYS_COLOUR_3DHIGHLIGHT
93 SYS_COLOUR_3DHILIGHT
= _misc_
.SYS_COLOUR_3DHILIGHT
94 SYS_COLOUR_3DDKSHADOW
= _misc_
.SYS_COLOUR_3DDKSHADOW
95 SYS_COLOUR_3DLIGHT
= _misc_
.SYS_COLOUR_3DLIGHT
96 SYS_COLOUR_INFOTEXT
= _misc_
.SYS_COLOUR_INFOTEXT
97 SYS_COLOUR_INFOBK
= _misc_
.SYS_COLOUR_INFOBK
98 SYS_COLOUR_LISTBOX
= _misc_
.SYS_COLOUR_LISTBOX
99 SYS_COLOUR_HOTLIGHT
= _misc_
.SYS_COLOUR_HOTLIGHT
100 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTACTIVECAPTION
101 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTINACTIVECAPTION
102 SYS_COLOUR_MENUHILIGHT
= _misc_
.SYS_COLOUR_MENUHILIGHT
103 SYS_COLOUR_MENUBAR
= _misc_
.SYS_COLOUR_MENUBAR
104 SYS_COLOUR_MAX
= _misc_
.SYS_COLOUR_MAX
105 SYS_MOUSE_BUTTONS
= _misc_
.SYS_MOUSE_BUTTONS
106 SYS_BORDER_X
= _misc_
.SYS_BORDER_X
107 SYS_BORDER_Y
= _misc_
.SYS_BORDER_Y
108 SYS_CURSOR_X
= _misc_
.SYS_CURSOR_X
109 SYS_CURSOR_Y
= _misc_
.SYS_CURSOR_Y
110 SYS_DCLICK_X
= _misc_
.SYS_DCLICK_X
111 SYS_DCLICK_Y
= _misc_
.SYS_DCLICK_Y
112 SYS_DRAG_X
= _misc_
.SYS_DRAG_X
113 SYS_DRAG_Y
= _misc_
.SYS_DRAG_Y
114 SYS_EDGE_X
= _misc_
.SYS_EDGE_X
115 SYS_EDGE_Y
= _misc_
.SYS_EDGE_Y
116 SYS_HSCROLL_ARROW_X
= _misc_
.SYS_HSCROLL_ARROW_X
117 SYS_HSCROLL_ARROW_Y
= _misc_
.SYS_HSCROLL_ARROW_Y
118 SYS_HTHUMB_X
= _misc_
.SYS_HTHUMB_X
119 SYS_ICON_X
= _misc_
.SYS_ICON_X
120 SYS_ICON_Y
= _misc_
.SYS_ICON_Y
121 SYS_ICONSPACING_X
= _misc_
.SYS_ICONSPACING_X
122 SYS_ICONSPACING_Y
= _misc_
.SYS_ICONSPACING_Y
123 SYS_WINDOWMIN_X
= _misc_
.SYS_WINDOWMIN_X
124 SYS_WINDOWMIN_Y
= _misc_
.SYS_WINDOWMIN_Y
125 SYS_SCREEN_X
= _misc_
.SYS_SCREEN_X
126 SYS_SCREEN_Y
= _misc_
.SYS_SCREEN_Y
127 SYS_FRAMESIZE_X
= _misc_
.SYS_FRAMESIZE_X
128 SYS_FRAMESIZE_Y
= _misc_
.SYS_FRAMESIZE_Y
129 SYS_SMALLICON_X
= _misc_
.SYS_SMALLICON_X
130 SYS_SMALLICON_Y
= _misc_
.SYS_SMALLICON_Y
131 SYS_HSCROLL_Y
= _misc_
.SYS_HSCROLL_Y
132 SYS_VSCROLL_X
= _misc_
.SYS_VSCROLL_X
133 SYS_VSCROLL_ARROW_X
= _misc_
.SYS_VSCROLL_ARROW_X
134 SYS_VSCROLL_ARROW_Y
= _misc_
.SYS_VSCROLL_ARROW_Y
135 SYS_VTHUMB_Y
= _misc_
.SYS_VTHUMB_Y
136 SYS_CAPTION_Y
= _misc_
.SYS_CAPTION_Y
137 SYS_MENU_Y
= _misc_
.SYS_MENU_Y
138 SYS_NETWORK_PRESENT
= _misc_
.SYS_NETWORK_PRESENT
139 SYS_PENWINDOWS_PRESENT
= _misc_
.SYS_PENWINDOWS_PRESENT
140 SYS_SHOW_SOUNDS
= _misc_
.SYS_SHOW_SOUNDS
141 SYS_SWAP_BUTTONS
= _misc_
.SYS_SWAP_BUTTONS
142 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc_
.SYS_CAN_DRAW_FRAME_DECORATIONS
143 SYS_CAN_ICONIZE_FRAME
= _misc_
.SYS_CAN_ICONIZE_FRAME
144 SYS_TABLET_PRESENT
= _misc_
.SYS_TABLET_PRESENT
145 SYS_SCREEN_NONE
= _misc_
.SYS_SCREEN_NONE
146 SYS_SCREEN_TINY
= _misc_
.SYS_SCREEN_TINY
147 SYS_SCREEN_PDA
= _misc_
.SYS_SCREEN_PDA
148 SYS_SCREEN_SMALL
= _misc_
.SYS_SCREEN_SMALL
149 SYS_SCREEN_DESKTOP
= _misc_
.SYS_SCREEN_DESKTOP
150 class SystemSettings(object):
151 """Proxy of C++ SystemSettings class"""
152 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
153 def __init__(self
): raise AttributeError, "No constructor defined"
154 __repr__
= _swig_repr
155 def GetColour(*args
, **kwargs
):
156 """GetColour(int index) -> Colour"""
157 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
159 GetColour
= staticmethod(GetColour
)
160 def GetFont(*args
, **kwargs
):
161 """GetFont(int index) -> Font"""
162 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
164 GetFont
= staticmethod(GetFont
)
165 def GetMetric(*args
, **kwargs
):
166 """GetMetric(int index, Window win=None) -> int"""
167 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
169 GetMetric
= staticmethod(GetMetric
)
170 def HasFeature(*args
, **kwargs
):
171 """HasFeature(int index) -> bool"""
172 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
174 HasFeature
= staticmethod(HasFeature
)
175 def GetScreenType(*args
, **kwargs
):
176 """GetScreenType() -> int"""
177 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
179 GetScreenType
= staticmethod(GetScreenType
)
180 def SetScreenType(*args
, **kwargs
):
181 """SetScreenType(int screen)"""
182 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
184 SetScreenType
= staticmethod(SetScreenType
)
185 _misc_
.SystemSettings_swigregister(SystemSettings
)
187 def SystemSettings_GetColour(*args
, **kwargs
):
188 """SystemSettings_GetColour(int index) -> Colour"""
189 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
191 def SystemSettings_GetFont(*args
, **kwargs
):
192 """SystemSettings_GetFont(int index) -> Font"""
193 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
195 def SystemSettings_GetMetric(*args
, **kwargs
):
196 """SystemSettings_GetMetric(int index, Window win=None) -> int"""
197 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
199 def SystemSettings_HasFeature(*args
, **kwargs
):
200 """SystemSettings_HasFeature(int index) -> bool"""
201 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
203 def SystemSettings_GetScreenType(*args
):
204 """SystemSettings_GetScreenType() -> int"""
205 return _misc_
.SystemSettings_GetScreenType(*args
)
207 def SystemSettings_SetScreenType(*args
, **kwargs
):
208 """SystemSettings_SetScreenType(int screen)"""
209 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
211 class SystemOptions(_core
.Object
):
212 """Proxy of C++ SystemOptions class"""
213 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
214 __repr__
= _swig_repr
215 def __init__(self
, *args
, **kwargs
):
216 """__init__(self) -> SystemOptions"""
217 _misc_
.SystemOptions_swiginit(self
,_misc_
.new_SystemOptions(*args
, **kwargs
))
218 def SetOption(*args
, **kwargs
):
219 """SetOption(String name, String value)"""
220 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
222 SetOption
= staticmethod(SetOption
)
223 def SetOptionInt(*args
, **kwargs
):
224 """SetOptionInt(String name, int value)"""
225 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
227 SetOptionInt
= staticmethod(SetOptionInt
)
228 def GetOption(*args
, **kwargs
):
229 """GetOption(String name) -> String"""
230 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
232 GetOption
= staticmethod(GetOption
)
233 def GetOptionInt(*args
, **kwargs
):
234 """GetOptionInt(String name) -> int"""
235 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
237 GetOptionInt
= staticmethod(GetOptionInt
)
238 def HasOption(*args
, **kwargs
):
239 """HasOption(String name) -> bool"""
240 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
242 HasOption
= staticmethod(HasOption
)
243 def IsFalse(*args
, **kwargs
):
244 """IsFalse(String name) -> bool"""
245 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
247 IsFalse
= staticmethod(IsFalse
)
248 _misc_
.SystemOptions_swigregister(SystemOptions
)
250 WINDOW_DEFAULT_VARIANT
= cvar
.WINDOW_DEFAULT_VARIANT
252 def SystemOptions_SetOption(*args
, **kwargs
):
253 """SystemOptions_SetOption(String name, String value)"""
254 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
256 def SystemOptions_SetOptionInt(*args
, **kwargs
):
257 """SystemOptions_SetOptionInt(String name, int value)"""
258 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
260 def SystemOptions_GetOption(*args
, **kwargs
):
261 """SystemOptions_GetOption(String name) -> String"""
262 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
264 def SystemOptions_GetOptionInt(*args
, **kwargs
):
265 """SystemOptions_GetOptionInt(String name) -> int"""
266 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
268 def SystemOptions_HasOption(*args
, **kwargs
):
269 """SystemOptions_HasOption(String name) -> bool"""
270 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
272 def SystemOptions_IsFalse(*args
, **kwargs
):
273 """SystemOptions_IsFalse(String name) -> bool"""
274 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
276 #---------------------------------------------------------------------------
280 """NewId() -> long"""
281 return _misc_
.NewId(*args
)
283 def RegisterId(*args
, **kwargs
):
284 """RegisterId(long id)"""
285 return _misc_
.RegisterId(*args
, **kwargs
)
287 def GetCurrentId(*args
):
288 """GetCurrentId() -> long"""
289 return _misc_
.GetCurrentId(*args
)
291 def IsStockID(*args
, **kwargs
):
292 """IsStockID(int id) -> bool"""
293 return _misc_
.IsStockID(*args
, **kwargs
)
295 def IsStockLabel(*args
, **kwargs
):
296 """IsStockLabel(int id, String label) -> bool"""
297 return _misc_
.IsStockLabel(*args
, **kwargs
)
299 def GetStockLabel(*args
, **kwargs
):
300 """GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String"""
301 return _misc_
.GetStockLabel(*args
, **kwargs
)
305 return _misc_
.Bell(*args
)
307 def EndBusyCursor(*args
):
308 """EndBusyCursor()"""
309 return _misc_
.EndBusyCursor(*args
)
311 def GetElapsedTime(*args
, **kwargs
):
312 """GetElapsedTime(bool resetTimer=True) -> long"""
313 return _misc_
.GetElapsedTime(*args
, **kwargs
)
314 GetElapsedTime
= wx
._deprecated
(GetElapsedTime
)
317 """IsBusy() -> bool"""
318 return _misc_
.IsBusy(*args
)
321 """Now() -> String"""
322 return _misc_
.Now(*args
)
324 def Shell(*args
, **kwargs
):
325 """Shell(String command=EmptyString) -> bool"""
326 return _misc_
.Shell(*args
, **kwargs
)
328 def StartTimer(*args
):
330 return _misc_
.StartTimer(*args
)
332 def GetOsVersion(*args
):
333 """GetOsVersion() -> (platform, major, minor)"""
334 return _misc_
.GetOsVersion(*args
)
336 def GetOsDescription(*args
):
337 """GetOsDescription() -> String"""
338 return _misc_
.GetOsDescription(*args
)
340 def IsPlatformLittleEndian(*args
):
341 """IsPlatformLittleEndian() -> bool"""
342 return _misc_
.IsPlatformLittleEndian(*args
)
344 def IsPlatform64Bit(*args
):
345 """IsPlatform64Bit() -> bool"""
346 return _misc_
.IsPlatform64Bit(*args
)
348 def GetFreeMemory(*args
):
349 """GetFreeMemory() -> wxMemorySize"""
350 return _misc_
.GetFreeMemory(*args
)
351 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
352 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
354 def Shutdown(*args
, **kwargs
):
355 """Shutdown(int wFlags) -> bool"""
356 return _misc_
.Shutdown(*args
, **kwargs
)
358 def Sleep(*args
, **kwargs
):
359 """Sleep(int secs)"""
360 return _misc_
.Sleep(*args
, **kwargs
)
362 def MilliSleep(*args
, **kwargs
):
363 """MilliSleep(unsigned long milliseconds)"""
364 return _misc_
.MilliSleep(*args
, **kwargs
)
366 def MicroSleep(*args
, **kwargs
):
367 """MicroSleep(unsigned long microseconds)"""
368 return _misc_
.MicroSleep(*args
, **kwargs
)
371 def EnableTopLevelWindows(*args
, **kwargs
):
372 """EnableTopLevelWindows(bool enable)"""
373 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
375 def StripMenuCodes(*args
, **kwargs
):
376 """StripMenuCodes(String in) -> String"""
377 return _misc_
.StripMenuCodes(*args
, **kwargs
)
379 def GetEmailAddress(*args
):
380 """GetEmailAddress() -> String"""
381 return _misc_
.GetEmailAddress(*args
)
383 def GetHostName(*args
):
384 """GetHostName() -> String"""
385 return _misc_
.GetHostName(*args
)
387 def GetFullHostName(*args
):
388 """GetFullHostName() -> String"""
389 return _misc_
.GetFullHostName(*args
)
391 def GetUserId(*args
):
392 """GetUserId() -> String"""
393 return _misc_
.GetUserId(*args
)
395 def GetUserName(*args
):
396 """GetUserName() -> String"""
397 return _misc_
.GetUserName(*args
)
399 def GetHomeDir(*args
):
400 """GetHomeDir() -> String"""
401 return _misc_
.GetHomeDir(*args
)
403 def GetUserHome(*args
, **kwargs
):
404 """GetUserHome(String user=EmptyString) -> String"""
405 return _misc_
.GetUserHome(*args
, **kwargs
)
407 def GetProcessId(*args
):
408 """GetProcessId() -> unsigned long"""
409 return _misc_
.GetProcessId(*args
)
413 return _misc_
.Trap(*args
)
415 def FileSelector(*args
, **kwargs
):
417 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
418 String default_filename=EmptyString,
419 String default_extension=EmptyString,
420 String wildcard=FileSelectorDefaultWildcardStr,
421 int flags=0, Window parent=None, int x=-1,
424 return _misc_
.FileSelector(*args
, **kwargs
)
426 def LoadFileSelector(*args
, **kwargs
):
428 LoadFileSelector(String what, String extension, String default_name=EmptyString,
429 Window parent=None) -> String
431 return _misc_
.LoadFileSelector(*args
, **kwargs
)
433 def SaveFileSelector(*args
, **kwargs
):
435 SaveFileSelector(String what, String extension, String default_name=EmptyString,
436 Window parent=None) -> String
438 return _misc_
.SaveFileSelector(*args
, **kwargs
)
440 def DirSelector(*args
, **kwargs
):
442 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
443 long style=wxDD_DEFAULT_STYLE,
444 Point pos=DefaultPosition, Window parent=None) -> String
446 return _misc_
.DirSelector(*args
, **kwargs
)
448 def GetTextFromUser(*args
, **kwargs
):
450 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
452 int x=-1, int y=-1, bool centre=True) -> String
454 return _misc_
.GetTextFromUser(*args
, **kwargs
)
456 def GetPasswordFromUser(*args
, **kwargs
):
458 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
459 Window parent=None) -> String
461 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
463 def GetSingleChoice(*args
, **kwargs
):
465 GetSingleChoice(String message, String caption, int choices, Window parent=None,
466 int x=-1, int y=-1, bool centre=True,
467 int width=150, int height=200) -> String
469 return _misc_
.GetSingleChoice(*args
, **kwargs
)
471 def GetSingleChoiceIndex(*args
, **kwargs
):
473 GetSingleChoiceIndex(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) -> int
477 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
479 def MessageBox(*args
, **kwargs
):
481 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
482 Window parent=None, int x=-1,
485 return _misc_
.MessageBox(*args
, **kwargs
)
487 def GetNumberFromUser(*args
, **kwargs
):
489 GetNumberFromUser(String message, String prompt, String caption, long value,
490 long min=0, long max=100, Window parent=None,
491 Point pos=DefaultPosition) -> long
493 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
495 def ColourDisplay(*args
):
496 """ColourDisplay() -> bool"""
497 return _misc_
.ColourDisplay(*args
)
499 def DisplayDepth(*args
):
500 """DisplayDepth() -> int"""
501 return _misc_
.DisplayDepth(*args
)
503 def GetDisplayDepth(*args
):
504 """GetDisplayDepth() -> int"""
505 return _misc_
.GetDisplayDepth(*args
)
507 def DisplaySize(*args
):
508 """DisplaySize() -> (width, height)"""
509 return _misc_
.DisplaySize(*args
)
511 def GetDisplaySize(*args
):
512 """GetDisplaySize() -> Size"""
513 return _misc_
.GetDisplaySize(*args
)
515 def DisplaySizeMM(*args
):
516 """DisplaySizeMM() -> (width, height)"""
517 return _misc_
.DisplaySizeMM(*args
)
519 def GetDisplaySizeMM(*args
):
520 """GetDisplaySizeMM() -> Size"""
521 return _misc_
.GetDisplaySizeMM(*args
)
523 def ClientDisplayRect(*args
):
524 """ClientDisplayRect() -> (x, y, width, height)"""
525 return _misc_
.ClientDisplayRect(*args
)
527 def GetClientDisplayRect(*args
):
528 """GetClientDisplayRect() -> Rect"""
529 return _misc_
.GetClientDisplayRect(*args
)
531 def SetCursor(*args
, **kwargs
):
532 """SetCursor(Cursor cursor)"""
533 return _misc_
.SetCursor(*args
, **kwargs
)
535 def GetXDisplay(*args
):
537 GetXDisplay() -> void
539 Returns a swigified pointer to the X11 display. Returns None on
542 return _misc_
.GetXDisplay(*args
)
544 def BeginBusyCursor(*args
, **kwargs
):
545 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
546 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
548 def GetMousePosition(*args
):
550 GetMousePosition() -> Point
552 Get the current mouse position on the screen.
554 return _misc_
.GetMousePosition(*args
)
556 def FindWindowAtPointer(*args
):
558 FindWindowAtPointer() -> Window
560 Returns the window currently under the mouse pointer, if it belongs to
561 this application. Otherwise it returns None.
563 return _misc_
.FindWindowAtPointer(*args
)
565 def GetActiveWindow(*args
):
567 GetActiveWindow() -> Window
569 Get the currently active window of this application, or None
571 return _misc_
.GetActiveWindow(*args
)
573 def GenericFindWindowAtPoint(*args
, **kwargs
):
574 """GenericFindWindowAtPoint(Point pt) -> Window"""
575 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
577 def FindWindowAtPoint(*args
, **kwargs
):
578 """FindWindowAtPoint(Point pt) -> Window"""
579 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
581 def GetTopLevelParent(*args
, **kwargs
):
582 """GetTopLevelParent(Window win) -> Window"""
583 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
585 def LaunchDefaultBrowser(*args
, **kwargs
):
587 LaunchDefaultBrowser(String url) -> bool
589 Launches the user's default browser and tells it to open the location
590 at ``url``. Returns ``True`` if the application was successfully
593 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
595 def GetKeyState(*args
, **kwargs
):
597 GetKeyState(int key) -> bool
599 Get the state of a key (true if pressed or toggled on, false if not.)
600 This is generally most useful getting the state of the modifier or
601 toggle keys. On some platforms those may be the only keys that this
602 function is able to detect.
605 return _misc_
.GetKeyState(*args
, **kwargs
)
606 class MouseState(object):
608 `wx.MouseState` is used to hold information about mouse button and
609 modifier key states and is what is returned from `wx.GetMouseState`.
611 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
612 __repr__
= _swig_repr
613 def __init__(self
, *args
, **kwargs
):
615 __init__(self) -> MouseState
617 `wx.MouseState` is used to hold information about mouse button and
618 modifier key states and is what is returned from `wx.GetMouseState`.
620 _misc_
.MouseState_swiginit(self
,_misc_
.new_MouseState(*args
, **kwargs
))
621 __swig_destroy__
= _misc_
.delete_MouseState
622 __del__
= lambda self
: None;
623 def GetX(*args
, **kwargs
):
624 """GetX(self) -> int"""
625 return _misc_
.MouseState_GetX(*args
, **kwargs
)
627 def GetY(*args
, **kwargs
):
628 """GetY(self) -> int"""
629 return _misc_
.MouseState_GetY(*args
, **kwargs
)
631 def LeftDown(*args
, **kwargs
):
632 """LeftDown(self) -> bool"""
633 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
635 def MiddleDown(*args
, **kwargs
):
636 """MiddleDown(self) -> bool"""
637 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
639 def RightDown(*args
, **kwargs
):
640 """RightDown(self) -> bool"""
641 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
643 def ControlDown(*args
, **kwargs
):
644 """ControlDown(self) -> bool"""
645 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
647 def ShiftDown(*args
, **kwargs
):
648 """ShiftDown(self) -> bool"""
649 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
651 def AltDown(*args
, **kwargs
):
652 """AltDown(self) -> bool"""
653 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
655 def MetaDown(*args
, **kwargs
):
656 """MetaDown(self) -> bool"""
657 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
659 def CmdDown(*args
, **kwargs
):
660 """CmdDown(self) -> bool"""
661 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
663 def SetX(*args
, **kwargs
):
664 """SetX(self, int x)"""
665 return _misc_
.MouseState_SetX(*args
, **kwargs
)
667 def SetY(*args
, **kwargs
):
668 """SetY(self, int y)"""
669 return _misc_
.MouseState_SetY(*args
, **kwargs
)
671 def SetLeftDown(*args
, **kwargs
):
672 """SetLeftDown(self, bool down)"""
673 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
675 def SetMiddleDown(*args
, **kwargs
):
676 """SetMiddleDown(self, bool down)"""
677 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
679 def SetRightDown(*args
, **kwargs
):
680 """SetRightDown(self, bool down)"""
681 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
683 def SetControlDown(*args
, **kwargs
):
684 """SetControlDown(self, bool down)"""
685 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
687 def SetShiftDown(*args
, **kwargs
):
688 """SetShiftDown(self, bool down)"""
689 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
691 def SetAltDown(*args
, **kwargs
):
692 """SetAltDown(self, bool down)"""
693 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
695 def SetMetaDown(*args
, **kwargs
):
696 """SetMetaDown(self, bool down)"""
697 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
699 x
= property(GetX
, SetX
)
700 y
= property(GetY
, SetY
)
701 leftDown
= property(LeftDown
, SetLeftDown
)
702 middleDown
= property(MiddleDown
, SetMiddleDown
)
703 rightDown
= property(RightDown
, SetRightDown
)
704 controlDown
= property(ControlDown
, SetControlDown
)
705 shiftDown
= property(ShiftDown
, SetShiftDown
)
706 altDown
= property(AltDown
, SetAltDown
)
707 metaDown
= property(MetaDown
, SetMetaDown
)
708 cmdDown
= property(CmdDown
)
710 _misc_
.MouseState_swigregister(MouseState
)
711 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
712 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
713 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
716 def GetMouseState(*args
):
718 GetMouseState() -> MouseState
720 Returns the current state of the mouse. Returns an instance of a
721 `wx.MouseState` object that contains the current position of the mouse
722 pointer in screen coordinants, as well as boolean values indicating
723 the up/down status of the mouse buttons and the modifier keys.
725 return _misc_
.GetMouseState(*args
)
727 def WakeUpMainThread(*args
):
728 """WakeUpMainThread()"""
729 return _misc_
.WakeUpMainThread(*args
)
731 def MutexGuiEnter(*args
):
732 """MutexGuiEnter()"""
733 return _misc_
.MutexGuiEnter(*args
)
735 def MutexGuiLeave(*args
):
736 """MutexGuiLeave()"""
737 return _misc_
.MutexGuiLeave(*args
)
738 class MutexGuiLocker(object):
739 """Proxy of C++ MutexGuiLocker class"""
740 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
741 __repr__
= _swig_repr
742 def __init__(self
, *args
, **kwargs
):
743 """__init__(self) -> MutexGuiLocker"""
744 _misc_
.MutexGuiLocker_swiginit(self
,_misc_
.new_MutexGuiLocker(*args
, **kwargs
))
745 __swig_destroy__
= _misc_
.delete_MutexGuiLocker
746 __del__
= lambda self
: None;
747 _misc_
.MutexGuiLocker_swigregister(MutexGuiLocker
)
750 def Thread_IsMain(*args
):
751 """Thread_IsMain() -> bool"""
752 return _misc_
.Thread_IsMain(*args
)
753 #---------------------------------------------------------------------------
755 class ToolTip(_core
.Object
):
756 """Proxy of C++ ToolTip class"""
757 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
758 __repr__
= _swig_repr
759 def __init__(self
, *args
, **kwargs
):
760 """__init__(self, String tip) -> ToolTip"""
761 _misc_
.ToolTip_swiginit(self
,_misc_
.new_ToolTip(*args
, **kwargs
))
762 __swig_destroy__
= _misc_
.delete_ToolTip
763 __del__
= lambda self
: None;
764 def SetTip(*args
, **kwargs
):
765 """SetTip(self, String tip)"""
766 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
768 def GetTip(*args
, **kwargs
):
769 """GetTip(self) -> String"""
770 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
772 def GetWindow(*args
, **kwargs
):
773 """GetWindow(self) -> Window"""
774 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
776 def Enable(*args
, **kwargs
):
777 """Enable(bool flag)"""
778 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
780 Enable
= staticmethod(Enable
)
781 def SetDelay(*args
, **kwargs
):
782 """SetDelay(long milliseconds)"""
783 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
785 SetDelay
= staticmethod(SetDelay
)
786 _misc_
.ToolTip_swigregister(ToolTip
)
788 def ToolTip_Enable(*args
, **kwargs
):
789 """ToolTip_Enable(bool flag)"""
790 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
792 def ToolTip_SetDelay(*args
, **kwargs
):
793 """ToolTip_SetDelay(long milliseconds)"""
794 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
797 """Proxy of C++ Caret class"""
798 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
799 __repr__
= _swig_repr
800 def __init__(self
, *args
, **kwargs
):
801 """__init__(self, Window window, Size size) -> Caret"""
802 _misc_
.Caret_swiginit(self
,_misc_
.new_Caret(*args
, **kwargs
))
803 __swig_destroy__
= _misc_
.delete_Caret
804 __del__
= lambda self
: None;
805 def Destroy(*args
, **kwargs
):
809 Deletes the C++ object this Python object is a proxy for.
811 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
815 def IsOk(*args
, **kwargs
):
816 """IsOk(self) -> bool"""
817 return _misc_
.Caret_IsOk(*args
, **kwargs
)
819 def IsVisible(*args
, **kwargs
):
820 """IsVisible(self) -> bool"""
821 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
823 def GetPosition(*args
, **kwargs
):
824 """GetPosition(self) -> Point"""
825 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
827 def GetPositionTuple(*args
, **kwargs
):
828 """GetPositionTuple() -> (x,y)"""
829 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
831 def GetSize(*args
, **kwargs
):
832 """GetSize(self) -> Size"""
833 return _misc_
.Caret_GetSize(*args
, **kwargs
)
835 def GetSizeTuple(*args
, **kwargs
):
836 """GetSizeTuple() -> (width, height)"""
837 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
839 def GetWindow(*args
, **kwargs
):
840 """GetWindow(self) -> Window"""
841 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
843 def MoveXY(*args
, **kwargs
):
844 """MoveXY(self, int x, int y)"""
845 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
847 def Move(*args
, **kwargs
):
848 """Move(self, Point pt)"""
849 return _misc_
.Caret_Move(*args
, **kwargs
)
851 def SetSizeWH(*args
, **kwargs
):
852 """SetSizeWH(self, int width, int height)"""
853 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
855 def SetSize(*args
, **kwargs
):
856 """SetSize(self, Size size)"""
857 return _misc_
.Caret_SetSize(*args
, **kwargs
)
859 def Show(*args
, **kwargs
):
860 """Show(self, int show=True)"""
861 return _misc_
.Caret_Show(*args
, **kwargs
)
863 def Hide(*args
, **kwargs
):
865 return _misc_
.Caret_Hide(*args
, **kwargs
)
867 def __nonzero__(self
): return self
.IsOk()
868 def GetBlinkTime(*args
, **kwargs
):
869 """GetBlinkTime() -> int"""
870 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
872 GetBlinkTime
= staticmethod(GetBlinkTime
)
873 def SetBlinkTime(*args
, **kwargs
):
874 """SetBlinkTime(int milliseconds)"""
875 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
877 SetBlinkTime
= staticmethod(SetBlinkTime
)
878 Position
= property(GetPosition
,doc
="See `GetPosition`")
879 Size
= property(GetSize
,SetSize
,doc
="See `GetSize` and `SetSize`")
880 Window
= property(GetWindow
,doc
="See `GetWindow`")
881 _misc_
.Caret_swigregister(Caret
)
883 def Caret_GetBlinkTime(*args
):
884 """Caret_GetBlinkTime() -> int"""
885 return _misc_
.Caret_GetBlinkTime(*args
)
887 def Caret_SetBlinkTime(*args
, **kwargs
):
888 """Caret_SetBlinkTime(int milliseconds)"""
889 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
891 class BusyCursor(object):
892 """Proxy of C++ BusyCursor class"""
893 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
894 __repr__
= _swig_repr
895 def __init__(self
, *args
, **kwargs
):
896 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
897 _misc_
.BusyCursor_swiginit(self
,_misc_
.new_BusyCursor(*args
, **kwargs
))
898 __swig_destroy__
= _misc_
.delete_BusyCursor
899 __del__
= lambda self
: None;
900 _misc_
.BusyCursor_swigregister(BusyCursor
)
902 class WindowDisabler(object):
903 """Proxy of C++ WindowDisabler class"""
904 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
905 __repr__
= _swig_repr
906 def __init__(self
, *args
, **kwargs
):
907 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
908 _misc_
.WindowDisabler_swiginit(self
,_misc_
.new_WindowDisabler(*args
, **kwargs
))
909 __swig_destroy__
= _misc_
.delete_WindowDisabler
910 __del__
= lambda self
: None;
911 _misc_
.WindowDisabler_swigregister(WindowDisabler
)
913 class BusyInfo(_core
.Object
):
914 """Proxy of C++ BusyInfo class"""
915 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
916 __repr__
= _swig_repr
917 def __init__(self
, *args
, **kwargs
):
918 """__init__(self, String message) -> BusyInfo"""
919 _misc_
.BusyInfo_swiginit(self
,_misc_
.new_BusyInfo(*args
, **kwargs
))
920 __swig_destroy__
= _misc_
.delete_BusyInfo
921 __del__
= lambda self
: None;
922 def Destroy(self
): pass
923 _misc_
.BusyInfo_swigregister(BusyInfo
)
925 class StopWatch(object):
926 """Proxy of C++ StopWatch class"""
927 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
928 __repr__
= _swig_repr
929 def __init__(self
, *args
, **kwargs
):
930 """__init__(self) -> StopWatch"""
931 _misc_
.StopWatch_swiginit(self
,_misc_
.new_StopWatch(*args
, **kwargs
))
932 def Start(*args
, **kwargs
):
933 """Start(self, long t0=0)"""
934 return _misc_
.StopWatch_Start(*args
, **kwargs
)
936 def Pause(*args
, **kwargs
):
938 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
940 def Resume(*args
, **kwargs
):
942 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
944 def Time(*args
, **kwargs
):
945 """Time(self) -> long"""
946 return _misc_
.StopWatch_Time(*args
, **kwargs
)
948 _misc_
.StopWatch_swigregister(StopWatch
)
950 class FileHistory(_core
.Object
):
951 """Proxy of C++ FileHistory class"""
952 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
953 __repr__
= _swig_repr
954 def __init__(self
, *args
, **kwargs
):
955 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
956 _misc_
.FileHistory_swiginit(self
,_misc_
.new_FileHistory(*args
, **kwargs
))
957 __swig_destroy__
= _misc_
.delete_FileHistory
958 __del__
= lambda self
: None;
959 def AddFileToHistory(*args
, **kwargs
):
960 """AddFileToHistory(self, String file)"""
961 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
963 def RemoveFileFromHistory(*args
, **kwargs
):
964 """RemoveFileFromHistory(self, int i)"""
965 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
967 def GetMaxFiles(*args
, **kwargs
):
968 """GetMaxFiles(self) -> int"""
969 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
971 def UseMenu(*args
, **kwargs
):
972 """UseMenu(self, Menu menu)"""
973 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
975 def RemoveMenu(*args
, **kwargs
):
976 """RemoveMenu(self, Menu menu)"""
977 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
979 def Load(*args
, **kwargs
):
980 """Load(self, ConfigBase config)"""
981 return _misc_
.FileHistory_Load(*args
, **kwargs
)
983 def Save(*args
, **kwargs
):
984 """Save(self, ConfigBase config)"""
985 return _misc_
.FileHistory_Save(*args
, **kwargs
)
987 def AddFilesToMenu(*args
, **kwargs
):
988 """AddFilesToMenu(self)"""
989 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
991 def AddFilesToThisMenu(*args
, **kwargs
):
992 """AddFilesToThisMenu(self, Menu menu)"""
993 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
995 def GetHistoryFile(*args
, **kwargs
):
996 """GetHistoryFile(self, int i) -> String"""
997 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
999 def GetCount(*args
, **kwargs
):
1000 """GetCount(self) -> int"""
1001 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
1003 GetNoHistoryFiles
= GetCount
1004 _misc_
.FileHistory_swigregister(FileHistory
)
1006 class SingleInstanceChecker(object):
1007 """Proxy of C++ SingleInstanceChecker class"""
1008 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1009 __repr__
= _swig_repr
1010 def __init__(self
, *args
, **kwargs
):
1011 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1012 _misc_
.SingleInstanceChecker_swiginit(self
,_misc_
.new_SingleInstanceChecker(*args
, **kwargs
))
1013 __swig_destroy__
= _misc_
.delete_SingleInstanceChecker
1014 __del__
= lambda self
: None;
1015 def Create(*args
, **kwargs
):
1016 """Create(self, String name, String path=EmptyString) -> bool"""
1017 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1019 def IsAnotherRunning(*args
, **kwargs
):
1020 """IsAnotherRunning(self) -> bool"""
1021 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1023 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1025 def PreSingleInstanceChecker(*args
, **kwargs
):
1026 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1027 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1030 #---------------------------------------------------------------------------
1032 OS_UNKNOWN
= _misc_
.OS_UNKNOWN
1033 OS_MAC_OS
= _misc_
.OS_MAC_OS
1034 OS_MAC_OSX_DARWIN
= _misc_
.OS_MAC_OSX_DARWIN
1035 OS_MAC
= _misc_
.OS_MAC
1036 OS_WINDOWS_9X
= _misc_
.OS_WINDOWS_9X
1037 OS_WINDOWS_NT
= _misc_
.OS_WINDOWS_NT
1038 OS_WINDOWS_MICRO
= _misc_
.OS_WINDOWS_MICRO
1039 OS_WINDOWS_CE
= _misc_
.OS_WINDOWS_CE
1040 OS_WINDOWS
= _misc_
.OS_WINDOWS
1041 OS_UNIX_LINUX
= _misc_
.OS_UNIX_LINUX
1042 OS_UNIX_FREEBSD
= _misc_
.OS_UNIX_FREEBSD
1043 OS_UNIX_OPENBSD
= _misc_
.OS_UNIX_OPENBSD
1044 OS_UNIX_NETBSD
= _misc_
.OS_UNIX_NETBSD
1045 OS_UNIX_SOLARIS
= _misc_
.OS_UNIX_SOLARIS
1046 OS_UNIX_AIX
= _misc_
.OS_UNIX_AIX
1047 OS_UNIX_HPUX
= _misc_
.OS_UNIX_HPUX
1048 OS_UNIX
= _misc_
.OS_UNIX
1049 OS_DOS
= _misc_
.OS_DOS
1050 OS_OS2
= _misc_
.OS_OS2
1051 PORT_UNKNOWN
= _misc_
.PORT_UNKNOWN
1052 PORT_BASE
= _misc_
.PORT_BASE
1053 PORT_MSW
= _misc_
.PORT_MSW
1054 PORT_MOTIF
= _misc_
.PORT_MOTIF
1055 PORT_GTK
= _misc_
.PORT_GTK
1056 PORT_MGL
= _misc_
.PORT_MGL
1057 PORT_X11
= _misc_
.PORT_X11
1058 PORT_PM
= _misc_
.PORT_PM
1059 PORT_OS2
= _misc_
.PORT_OS2
1060 PORT_MAC
= _misc_
.PORT_MAC
1061 PORT_COCOA
= _misc_
.PORT_COCOA
1062 PORT_WINCE
= _misc_
.PORT_WINCE
1063 PORT_PALMOS
= _misc_
.PORT_PALMOS
1064 PORT_DFB
= _misc_
.PORT_DFB
1065 ARCH_INVALID
= _misc_
.ARCH_INVALID
1066 ARCH_32
= _misc_
.ARCH_32
1067 ARCH_64
= _misc_
.ARCH_64
1068 ARCH_MAX
= _misc_
.ARCH_MAX
1069 ENDIAN_INVALID
= _misc_
.ENDIAN_INVALID
1070 ENDIAN_BIG
= _misc_
.ENDIAN_BIG
1071 ENDIAN_LITTLE
= _misc_
.ENDIAN_LITTLE
1072 ENDIAN_PDP
= _misc_
.ENDIAN_PDP
1073 ENDIAN_MAX
= _misc_
.ENDIAN_MAX
1074 class PlatformInformation(object):
1075 """Proxy of C++ PlatformInformation class"""
1076 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1077 __repr__
= _swig_repr
1078 def __init__(self
, *args
, **kwargs
):
1079 """__init__(self) -> PlatformInformation"""
1080 _misc_
.PlatformInformation_swiginit(self
,_misc_
.new_PlatformInformation(*args
, **kwargs
))
1081 def __eq__(*args
, **kwargs
):
1082 """__eq__(self, PlatformInformation t) -> bool"""
1083 return _misc_
.PlatformInformation___eq__(*args
, **kwargs
)
1085 def __ne__(*args
, **kwargs
):
1086 """__ne__(self, PlatformInformation t) -> bool"""
1087 return _misc_
.PlatformInformation___ne__(*args
, **kwargs
)
1089 def GetOSMajorVersion(*args
, **kwargs
):
1090 """GetOSMajorVersion(self) -> int"""
1091 return _misc_
.PlatformInformation_GetOSMajorVersion(*args
, **kwargs
)
1093 def GetOSMinorVersion(*args
, **kwargs
):
1094 """GetOSMinorVersion(self) -> int"""
1095 return _misc_
.PlatformInformation_GetOSMinorVersion(*args
, **kwargs
)
1097 def GetToolkitMajorVersion(*args
, **kwargs
):
1098 """GetToolkitMajorVersion(self) -> int"""
1099 return _misc_
.PlatformInformation_GetToolkitMajorVersion(*args
, **kwargs
)
1101 def GetToolkitMinorVersion(*args
, **kwargs
):
1102 """GetToolkitMinorVersion(self) -> int"""
1103 return _misc_
.PlatformInformation_GetToolkitMinorVersion(*args
, **kwargs
)
1105 def IsUsingUniversalWidgets(*args
, **kwargs
):
1106 """IsUsingUniversalWidgets(self) -> bool"""
1107 return _misc_
.PlatformInformation_IsUsingUniversalWidgets(*args
, **kwargs
)
1109 def GetOperatingSystemId(*args
, **kwargs
):
1110 """GetOperatingSystemId(self) -> int"""
1111 return _misc_
.PlatformInformation_GetOperatingSystemId(*args
, **kwargs
)
1113 def GetPortId(*args
, **kwargs
):
1114 """GetPortId(self) -> int"""
1115 return _misc_
.PlatformInformation_GetPortId(*args
, **kwargs
)
1117 def GetArchitecture(*args
, **kwargs
):
1118 """GetArchitecture(self) -> int"""
1119 return _misc_
.PlatformInformation_GetArchitecture(*args
, **kwargs
)
1121 def GetEndianness(*args
, **kwargs
):
1122 """GetEndianness(self) -> int"""
1123 return _misc_
.PlatformInformation_GetEndianness(*args
, **kwargs
)
1125 def GetOperatingSystemFamilyName(*args
, **kwargs
):
1126 """GetOperatingSystemFamilyName(self) -> String"""
1127 return _misc_
.PlatformInformation_GetOperatingSystemFamilyName(*args
, **kwargs
)
1129 def GetOperatingSystemIdName(*args
, **kwargs
):
1130 """GetOperatingSystemIdName(self) -> String"""
1131 return _misc_
.PlatformInformation_GetOperatingSystemIdName(*args
, **kwargs
)
1133 def GetPortIdName(*args
, **kwargs
):
1134 """GetPortIdName(self) -> String"""
1135 return _misc_
.PlatformInformation_GetPortIdName(*args
, **kwargs
)
1137 def GetPortIdShortName(*args
, **kwargs
):
1138 """GetPortIdShortName(self) -> String"""
1139 return _misc_
.PlatformInformation_GetPortIdShortName(*args
, **kwargs
)
1141 def GetArchName(*args
, **kwargs
):
1142 """GetArchName(self) -> String"""
1143 return _misc_
.PlatformInformation_GetArchName(*args
, **kwargs
)
1145 def GetEndiannessName(*args
, **kwargs
):
1146 """GetEndiannessName(self) -> String"""
1147 return _misc_
.PlatformInformation_GetEndiannessName(*args
, **kwargs
)
1149 def SetOSVersion(*args
, **kwargs
):
1150 """SetOSVersion(self, int major, int minor)"""
1151 return _misc_
.PlatformInformation_SetOSVersion(*args
, **kwargs
)
1153 def SetToolkitVersion(*args
, **kwargs
):
1154 """SetToolkitVersion(self, int major, int minor)"""
1155 return _misc_
.PlatformInformation_SetToolkitVersion(*args
, **kwargs
)
1157 def SetOperatingSystemId(*args
, **kwargs
):
1158 """SetOperatingSystemId(self, int n)"""
1159 return _misc_
.PlatformInformation_SetOperatingSystemId(*args
, **kwargs
)
1161 def SetPortId(*args
, **kwargs
):
1162 """SetPortId(self, int n)"""
1163 return _misc_
.PlatformInformation_SetPortId(*args
, **kwargs
)
1165 def SetArchitecture(*args
, **kwargs
):
1166 """SetArchitecture(self, int n)"""
1167 return _misc_
.PlatformInformation_SetArchitecture(*args
, **kwargs
)
1169 def SetEndianness(*args
, **kwargs
):
1170 """SetEndianness(self, int n)"""
1171 return _misc_
.PlatformInformation_SetEndianness(*args
, **kwargs
)
1173 def IsOk(*args
, **kwargs
):
1174 """IsOk(self) -> bool"""
1175 return _misc_
.PlatformInformation_IsOk(*args
, **kwargs
)
1177 _misc_
.PlatformInformation_swigregister(PlatformInformation
)
1180 def DrawWindowOnDC(*args
, **kwargs
):
1181 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1182 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1183 #---------------------------------------------------------------------------
1185 class TipProvider(object):
1186 """Proxy of C++ TipProvider class"""
1187 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1188 def __init__(self
): raise AttributeError, "No constructor defined"
1189 __repr__
= _swig_repr
1190 __swig_destroy__
= _misc_
.delete_TipProvider
1191 __del__
= lambda self
: None;
1192 def GetTip(*args
, **kwargs
):
1193 """GetTip(self) -> String"""
1194 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1196 def GetCurrentTip(*args
, **kwargs
):
1197 """GetCurrentTip(self) -> size_t"""
1198 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1200 def PreprocessTip(*args
, **kwargs
):
1201 """PreprocessTip(self, String tip) -> String"""
1202 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1204 _misc_
.TipProvider_swigregister(TipProvider
)
1206 class PyTipProvider(TipProvider
):
1207 """Proxy of C++ PyTipProvider class"""
1208 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1209 __repr__
= _swig_repr
1210 def __init__(self
, *args
, **kwargs
):
1211 """__init__(self, size_t currentTip) -> PyTipProvider"""
1212 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1213 self
._setCallbackInfo
(self
, PyTipProvider
)
1215 def _setCallbackInfo(*args
, **kwargs
):
1216 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1217 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1219 _misc_
.PyTipProvider_swigregister(PyTipProvider
)
1222 def ShowTip(*args
, **kwargs
):
1223 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1224 return _misc_
.ShowTip(*args
, **kwargs
)
1226 def CreateFileTipProvider(*args
, **kwargs
):
1227 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1228 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1229 #---------------------------------------------------------------------------
1231 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1232 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1233 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1234 class Timer(_core
.EvtHandler
):
1235 """Proxy of C++ Timer class"""
1236 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1237 __repr__
= _swig_repr
1238 def __init__(self
, *args
, **kwargs
):
1239 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1240 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1241 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1243 __swig_destroy__
= _misc_
.delete_Timer
1244 __del__
= lambda self
: None;
1245 def _setCallbackInfo(*args
, **kwargs
):
1246 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1247 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1249 def SetOwner(*args
, **kwargs
):
1250 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1251 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1253 def GetOwner(*args
, **kwargs
):
1254 """GetOwner(self) -> EvtHandler"""
1255 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1257 def Start(*args
, **kwargs
):
1258 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1259 return _misc_
.Timer_Start(*args
, **kwargs
)
1261 def Stop(*args
, **kwargs
):
1263 return _misc_
.Timer_Stop(*args
, **kwargs
)
1265 def Notify(*args
, **kwargs
):
1267 return _misc_
.Timer_Notify(*args
, **kwargs
)
1269 def IsRunning(*args
, **kwargs
):
1270 """IsRunning(self) -> bool"""
1271 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1273 def GetInterval(*args
, **kwargs
):
1274 """GetInterval(self) -> int"""
1275 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1277 def GetId(*args
, **kwargs
):
1278 """GetId(self) -> int"""
1279 return _misc_
.Timer_GetId(*args
, **kwargs
)
1281 def IsOneShot(*args
, **kwargs
):
1282 """IsOneShot(self) -> bool"""
1283 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1286 """NO-OP: Timers must be destroyed by normal reference counting"""
1289 _misc_
.Timer_swigregister(Timer
)
1291 # For backwards compatibility with 2.4
1292 class PyTimer(Timer
):
1293 def __init__(self
, notify
):
1294 Timer
.__init
__(self
)
1295 self
.notify
= notify
1302 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1305 class TimerEvent(_core
.Event
):
1306 """Proxy of C++ TimerEvent class"""
1307 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1308 __repr__
= _swig_repr
1309 def __init__(self
, *args
, **kwargs
):
1310 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1311 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1312 def GetInterval(*args
, **kwargs
):
1313 """GetInterval(self) -> int"""
1314 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1316 _misc_
.TimerEvent_swigregister(TimerEvent
)
1318 class TimerRunner(object):
1319 """Proxy of C++ TimerRunner class"""
1320 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1321 __repr__
= _swig_repr
1322 def __init__(self
, *args
):
1324 __init__(self, wxTimer timer) -> TimerRunner
1325 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1327 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1328 __swig_destroy__
= _misc_
.delete_TimerRunner
1329 __del__
= lambda self
: None;
1330 def Start(*args
, **kwargs
):
1331 """Start(self, int milli, bool oneShot=False)"""
1332 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1334 _misc_
.TimerRunner_swigregister(TimerRunner
)
1336 #---------------------------------------------------------------------------
1338 LOG_FatalError
= _misc_
.LOG_FatalError
1339 LOG_Error
= _misc_
.LOG_Error
1340 LOG_Warning
= _misc_
.LOG_Warning
1341 LOG_Message
= _misc_
.LOG_Message
1342 LOG_Status
= _misc_
.LOG_Status
1343 LOG_Info
= _misc_
.LOG_Info
1344 LOG_Debug
= _misc_
.LOG_Debug
1345 LOG_Trace
= _misc_
.LOG_Trace
1346 LOG_Progress
= _misc_
.LOG_Progress
1347 LOG_User
= _misc_
.LOG_User
1348 LOG_Max
= _misc_
.LOG_Max
1349 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1350 TRACE_Messages
= _misc_
.TRACE_Messages
1351 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1352 TRACE_RefCount
= _misc_
.TRACE_RefCount
1353 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1354 TraceMemAlloc
= _misc_
.TraceMemAlloc
1355 TraceMessages
= _misc_
.TraceMessages
1356 TraceResAlloc
= _misc_
.TraceResAlloc
1357 TraceRefCount
= _misc_
.TraceRefCount
1358 TraceOleCalls
= _misc_
.TraceOleCalls
1360 """Proxy of C++ Log class"""
1361 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1362 __repr__
= _swig_repr
1363 def __init__(self
, *args
, **kwargs
):
1364 """__init__(self) -> Log"""
1365 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1366 __swig_destroy__
= _misc_
.delete_Log
1367 __del__
= lambda self
: None;
1368 def IsEnabled(*args
, **kwargs
):
1369 """IsEnabled() -> bool"""
1370 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1372 IsEnabled
= staticmethod(IsEnabled
)
1373 def EnableLogging(*args
, **kwargs
):
1374 """EnableLogging(bool doIt=True) -> bool"""
1375 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1377 EnableLogging
= staticmethod(EnableLogging
)
1378 def OnLog(*args
, **kwargs
):
1379 """OnLog(LogLevel level, wxChar szString, time_t t)"""
1380 return _misc_
.Log_OnLog(*args
, **kwargs
)
1382 OnLog
= staticmethod(OnLog
)
1383 def Flush(*args
, **kwargs
):
1385 return _misc_
.Log_Flush(*args
, **kwargs
)
1387 def FlushActive(*args
, **kwargs
):
1389 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1391 FlushActive
= staticmethod(FlushActive
)
1392 def GetActiveTarget(*args
, **kwargs
):
1393 """GetActiveTarget() -> Log"""
1394 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1396 GetActiveTarget
= staticmethod(GetActiveTarget
)
1397 def SetActiveTarget(*args
, **kwargs
):
1398 """SetActiveTarget(Log pLogger) -> Log"""
1399 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1401 SetActiveTarget
= staticmethod(SetActiveTarget
)
1402 def Suspend(*args
, **kwargs
):
1404 return _misc_
.Log_Suspend(*args
, **kwargs
)
1406 Suspend
= staticmethod(Suspend
)
1407 def Resume(*args
, **kwargs
):
1409 return _misc_
.Log_Resume(*args
, **kwargs
)
1411 Resume
= staticmethod(Resume
)
1412 def SetVerbose(*args
, **kwargs
):
1413 """SetVerbose(bool bVerbose=True)"""
1414 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1416 SetVerbose
= staticmethod(SetVerbose
)
1417 def SetLogLevel(*args
, **kwargs
):
1418 """SetLogLevel(LogLevel logLevel)"""
1419 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1421 SetLogLevel
= staticmethod(SetLogLevel
)
1422 def DontCreateOnDemand(*args
, **kwargs
):
1423 """DontCreateOnDemand()"""
1424 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1426 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1427 def SetRepetitionCounting(*args
, **kwargs
):
1428 """SetRepetitionCounting(bool bRepetCounting=True)"""
1429 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1431 SetRepetitionCounting
= staticmethod(SetRepetitionCounting
)
1432 def GetRepetitionCounting(*args
, **kwargs
):
1433 """GetRepetitionCounting() -> bool"""
1434 return _misc_
.Log_GetRepetitionCounting(*args
, **kwargs
)
1436 GetRepetitionCounting
= staticmethod(GetRepetitionCounting
)
1437 def SetTraceMask(*args
, **kwargs
):
1438 """SetTraceMask(TraceMask ulMask)"""
1439 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1441 SetTraceMask
= staticmethod(SetTraceMask
)
1442 def AddTraceMask(*args
, **kwargs
):
1443 """AddTraceMask(String str)"""
1444 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1446 AddTraceMask
= staticmethod(AddTraceMask
)
1447 def RemoveTraceMask(*args
, **kwargs
):
1448 """RemoveTraceMask(String str)"""
1449 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1451 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1452 def ClearTraceMasks(*args
, **kwargs
):
1453 """ClearTraceMasks()"""
1454 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1456 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1457 def GetTraceMasks(*args
, **kwargs
):
1458 """GetTraceMasks() -> wxArrayString"""
1459 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1461 GetTraceMasks
= staticmethod(GetTraceMasks
)
1462 def SetTimestamp(*args
, **kwargs
):
1463 """SetTimestamp(wxChar ts)"""
1464 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1466 SetTimestamp
= staticmethod(SetTimestamp
)
1467 def GetVerbose(*args
, **kwargs
):
1468 """GetVerbose() -> bool"""
1469 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1471 GetVerbose
= staticmethod(GetVerbose
)
1472 def GetTraceMask(*args
, **kwargs
):
1473 """GetTraceMask() -> TraceMask"""
1474 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1476 GetTraceMask
= staticmethod(GetTraceMask
)
1477 def IsAllowedTraceMask(*args
, **kwargs
):
1478 """IsAllowedTraceMask(wxChar mask) -> bool"""
1479 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1481 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1482 def GetLogLevel(*args
, **kwargs
):
1483 """GetLogLevel() -> LogLevel"""
1484 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1486 GetLogLevel
= staticmethod(GetLogLevel
)
1487 def GetTimestamp(*args
, **kwargs
):
1488 """GetTimestamp() -> wxChar"""
1489 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1491 GetTimestamp
= staticmethod(GetTimestamp
)
1492 def TimeStamp(*args
, **kwargs
):
1493 """TimeStamp() -> String"""
1494 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1496 TimeStamp
= staticmethod(TimeStamp
)
1497 def Destroy(*args
, **kwargs
):
1499 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1503 _misc_
.Log_swigregister(Log
)
1505 def Log_IsEnabled(*args
):
1506 """Log_IsEnabled() -> bool"""
1507 return _misc_
.Log_IsEnabled(*args
)
1509 def Log_EnableLogging(*args
, **kwargs
):
1510 """Log_EnableLogging(bool doIt=True) -> bool"""
1511 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1513 def Log_OnLog(*args
, **kwargs
):
1514 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1515 return _misc_
.Log_OnLog(*args
, **kwargs
)
1517 def Log_FlushActive(*args
):
1518 """Log_FlushActive()"""
1519 return _misc_
.Log_FlushActive(*args
)
1521 def Log_GetActiveTarget(*args
):
1522 """Log_GetActiveTarget() -> Log"""
1523 return _misc_
.Log_GetActiveTarget(*args
)
1525 def Log_SetActiveTarget(*args
, **kwargs
):
1526 """Log_SetActiveTarget(Log pLogger) -> Log"""
1527 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1529 def Log_Suspend(*args
):
1531 return _misc_
.Log_Suspend(*args
)
1533 def Log_Resume(*args
):
1535 return _misc_
.Log_Resume(*args
)
1537 def Log_SetVerbose(*args
, **kwargs
):
1538 """Log_SetVerbose(bool bVerbose=True)"""
1539 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1541 def Log_SetLogLevel(*args
, **kwargs
):
1542 """Log_SetLogLevel(LogLevel logLevel)"""
1543 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1545 def Log_DontCreateOnDemand(*args
):
1546 """Log_DontCreateOnDemand()"""
1547 return _misc_
.Log_DontCreateOnDemand(*args
)
1549 def Log_SetRepetitionCounting(*args
, **kwargs
):
1550 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1551 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1553 def Log_GetRepetitionCounting(*args
):
1554 """Log_GetRepetitionCounting() -> bool"""
1555 return _misc_
.Log_GetRepetitionCounting(*args
)
1557 def Log_SetTraceMask(*args
, **kwargs
):
1558 """Log_SetTraceMask(TraceMask ulMask)"""
1559 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1561 def Log_AddTraceMask(*args
, **kwargs
):
1562 """Log_AddTraceMask(String str)"""
1563 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1565 def Log_RemoveTraceMask(*args
, **kwargs
):
1566 """Log_RemoveTraceMask(String str)"""
1567 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1569 def Log_ClearTraceMasks(*args
):
1570 """Log_ClearTraceMasks()"""
1571 return _misc_
.Log_ClearTraceMasks(*args
)
1573 def Log_GetTraceMasks(*args
):
1574 """Log_GetTraceMasks() -> wxArrayString"""
1575 return _misc_
.Log_GetTraceMasks(*args
)
1577 def Log_SetTimestamp(*args
, **kwargs
):
1578 """Log_SetTimestamp(wxChar ts)"""
1579 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1581 def Log_GetVerbose(*args
):
1582 """Log_GetVerbose() -> bool"""
1583 return _misc_
.Log_GetVerbose(*args
)
1585 def Log_GetTraceMask(*args
):
1586 """Log_GetTraceMask() -> TraceMask"""
1587 return _misc_
.Log_GetTraceMask(*args
)
1589 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1590 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1591 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1593 def Log_GetLogLevel(*args
):
1594 """Log_GetLogLevel() -> LogLevel"""
1595 return _misc_
.Log_GetLogLevel(*args
)
1597 def Log_GetTimestamp(*args
):
1598 """Log_GetTimestamp() -> wxChar"""
1599 return _misc_
.Log_GetTimestamp(*args
)
1601 def Log_TimeStamp(*args
):
1602 """Log_TimeStamp() -> String"""
1603 return _misc_
.Log_TimeStamp(*args
)
1605 class LogStderr(Log
):
1606 """Proxy of C++ LogStderr class"""
1607 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1608 __repr__
= _swig_repr
1609 def __init__(self
, *args
, **kwargs
):
1610 """__init__(self) -> LogStderr"""
1611 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1612 _misc_
.LogStderr_swigregister(LogStderr
)
1614 class LogTextCtrl(Log
):
1615 """Proxy of C++ LogTextCtrl class"""
1616 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1617 __repr__
= _swig_repr
1618 def __init__(self
, *args
, **kwargs
):
1619 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1620 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1621 _misc_
.LogTextCtrl_swigregister(LogTextCtrl
)
1624 """Proxy of C++ LogGui class"""
1625 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1626 __repr__
= _swig_repr
1627 def __init__(self
, *args
, **kwargs
):
1628 """__init__(self) -> LogGui"""
1629 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1630 _misc_
.LogGui_swigregister(LogGui
)
1632 class LogWindow(Log
):
1633 """Proxy of C++ LogWindow class"""
1634 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1635 __repr__
= _swig_repr
1636 def __init__(self
, *args
, **kwargs
):
1637 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1638 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1639 def Show(*args
, **kwargs
):
1640 """Show(self, bool bShow=True)"""
1641 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1643 def GetFrame(*args
, **kwargs
):
1644 """GetFrame(self) -> wxFrame"""
1645 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1647 def GetOldLog(*args
, **kwargs
):
1648 """GetOldLog(self) -> Log"""
1649 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1651 def IsPassingMessages(*args
, **kwargs
):
1652 """IsPassingMessages(self) -> bool"""
1653 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1655 def PassMessages(*args
, **kwargs
):
1656 """PassMessages(self, bool bDoPass)"""
1657 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1659 _misc_
.LogWindow_swigregister(LogWindow
)
1661 class LogChain(Log
):
1662 """Proxy of C++ LogChain class"""
1663 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1664 __repr__
= _swig_repr
1665 def __init__(self
, *args
, **kwargs
):
1666 """__init__(self, Log logger) -> LogChain"""
1667 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1668 def SetLog(*args
, **kwargs
):
1669 """SetLog(self, Log logger)"""
1670 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1672 def PassMessages(*args
, **kwargs
):
1673 """PassMessages(self, bool bDoPass)"""
1674 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1676 def IsPassingMessages(*args
, **kwargs
):
1677 """IsPassingMessages(self) -> bool"""
1678 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1680 def GetOldLog(*args
, **kwargs
):
1681 """GetOldLog(self) -> Log"""
1682 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1684 _misc_
.LogChain_swigregister(LogChain
)
1686 class LogBuffer(Log
):
1687 """Proxy of C++ LogBuffer class"""
1688 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1689 __repr__
= _swig_repr
1690 def __init__(self
, *args
, **kwargs
):
1691 """__init__(self) -> LogBuffer"""
1692 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1693 def GetBuffer(*args
, **kwargs
):
1694 """GetBuffer(self) -> String"""
1695 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1697 _misc_
.LogBuffer_swigregister(LogBuffer
)
1700 def SysErrorCode(*args
):
1701 """SysErrorCode() -> unsigned long"""
1702 return _misc_
.SysErrorCode(*args
)
1704 def SysErrorMsg(*args
, **kwargs
):
1705 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1706 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1708 def LogFatalError(*args
, **kwargs
):
1709 """LogFatalError(String msg)"""
1710 return _misc_
.LogFatalError(*args
, **kwargs
)
1712 def LogError(*args
, **kwargs
):
1713 """LogError(String msg)"""
1714 return _misc_
.LogError(*args
, **kwargs
)
1716 def LogWarning(*args
, **kwargs
):
1717 """LogWarning(String msg)"""
1718 return _misc_
.LogWarning(*args
, **kwargs
)
1720 def LogMessage(*args
, **kwargs
):
1721 """LogMessage(String msg)"""
1722 return _misc_
.LogMessage(*args
, **kwargs
)
1724 def LogInfo(*args
, **kwargs
):
1725 """LogInfo(String msg)"""
1726 return _misc_
.LogInfo(*args
, **kwargs
)
1728 def LogDebug(*args
, **kwargs
):
1729 """LogDebug(String msg)"""
1730 return _misc_
.LogDebug(*args
, **kwargs
)
1732 def LogVerbose(*args
, **kwargs
):
1733 """LogVerbose(String msg)"""
1734 return _misc_
.LogVerbose(*args
, **kwargs
)
1736 def LogStatus(*args
, **kwargs
):
1737 """LogStatus(String msg)"""
1738 return _misc_
.LogStatus(*args
, **kwargs
)
1740 def LogStatusFrame(*args
, **kwargs
):
1741 """LogStatusFrame(wxFrame pFrame, String msg)"""
1742 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1744 def LogSysError(*args
, **kwargs
):
1745 """LogSysError(String msg)"""
1746 return _misc_
.LogSysError(*args
, **kwargs
)
1748 def LogGeneric(*args
, **kwargs
):
1749 """LogGeneric(unsigned long level, String msg)"""
1750 return _misc_
.LogGeneric(*args
, **kwargs
)
1752 def SafeShowMessage(*args
, **kwargs
):
1753 """SafeShowMessage(String title, String text)"""
1754 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1755 class LogNull(object):
1756 """Proxy of C++ LogNull class"""
1757 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1758 __repr__
= _swig_repr
1759 def __init__(self
, *args
, **kwargs
):
1760 """__init__(self) -> LogNull"""
1761 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1762 __swig_destroy__
= _misc_
.delete_LogNull
1763 __del__
= lambda self
: None;
1764 _misc_
.LogNull_swigregister(LogNull
)
1766 def LogTrace(*args
):
1768 LogTrace(unsigned long mask, String msg)
1769 LogTrace(String mask, String msg)
1771 return _misc_
.LogTrace(*args
)
1774 """Proxy of C++ PyLog class"""
1775 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1776 __repr__
= _swig_repr
1777 def __init__(self
, *args
, **kwargs
):
1778 """__init__(self) -> PyLog"""
1779 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1780 self
._setCallbackInfo
(self
, PyLog
)
1782 def _setCallbackInfo(*args
, **kwargs
):
1783 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1784 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1786 _misc_
.PyLog_swigregister(PyLog
)
1788 #---------------------------------------------------------------------------
1790 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1791 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1792 KILL_OK
= _misc_
.KILL_OK
1793 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1794 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1795 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1796 KILL_ERROR
= _misc_
.KILL_ERROR
1797 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1798 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1799 SIGNONE
= _misc_
.SIGNONE
1800 SIGHUP
= _misc_
.SIGHUP
1801 SIGINT
= _misc_
.SIGINT
1802 SIGQUIT
= _misc_
.SIGQUIT
1803 SIGILL
= _misc_
.SIGILL
1804 SIGTRAP
= _misc_
.SIGTRAP
1805 SIGABRT
= _misc_
.SIGABRT
1806 SIGIOT
= _misc_
.SIGIOT
1807 SIGEMT
= _misc_
.SIGEMT
1808 SIGFPE
= _misc_
.SIGFPE
1809 SIGKILL
= _misc_
.SIGKILL
1810 SIGBUS
= _misc_
.SIGBUS
1811 SIGSEGV
= _misc_
.SIGSEGV
1812 SIGSYS
= _misc_
.SIGSYS
1813 SIGPIPE
= _misc_
.SIGPIPE
1814 SIGALRM
= _misc_
.SIGALRM
1815 SIGTERM
= _misc_
.SIGTERM
1816 class Process(_core
.EvtHandler
):
1817 """Proxy of C++ Process class"""
1818 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1819 __repr__
= _swig_repr
1820 def Kill(*args
, **kwargs
):
1821 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1822 return _misc_
.Process_Kill(*args
, **kwargs
)
1824 Kill
= staticmethod(Kill
)
1825 def Exists(*args
, **kwargs
):
1826 """Exists(int pid) -> bool"""
1827 return _misc_
.Process_Exists(*args
, **kwargs
)
1829 Exists
= staticmethod(Exists
)
1830 def Open(*args
, **kwargs
):
1831 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1832 return _misc_
.Process_Open(*args
, **kwargs
)
1834 Open
= staticmethod(Open
)
1835 def __init__(self
, *args
, **kwargs
):
1836 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1837 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1838 self
._setCallbackInfo
(self
, Process
)
1840 def _setCallbackInfo(*args
, **kwargs
):
1841 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1842 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1844 def OnTerminate(*args
, **kwargs
):
1845 """OnTerminate(self, int pid, int status)"""
1846 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1848 def base_OnTerminate(*args
, **kw
):
1849 return Process
.OnTerminate(*args
, **kw
)
1850 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1851 "Please use Process.OnTerminate instead.")
1853 def Redirect(*args
, **kwargs
):
1854 """Redirect(self)"""
1855 return _misc_
.Process_Redirect(*args
, **kwargs
)
1857 def IsRedirected(*args
, **kwargs
):
1858 """IsRedirected(self) -> bool"""
1859 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1861 def Detach(*args
, **kwargs
):
1863 return _misc_
.Process_Detach(*args
, **kwargs
)
1865 def GetInputStream(*args
, **kwargs
):
1866 """GetInputStream(self) -> InputStream"""
1867 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1869 def GetErrorStream(*args
, **kwargs
):
1870 """GetErrorStream(self) -> InputStream"""
1871 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1873 def GetOutputStream(*args
, **kwargs
):
1874 """GetOutputStream(self) -> OutputStream"""
1875 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1877 def CloseOutput(*args
, **kwargs
):
1878 """CloseOutput(self)"""
1879 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1881 def IsInputOpened(*args
, **kwargs
):
1882 """IsInputOpened(self) -> bool"""
1883 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1885 def IsInputAvailable(*args
, **kwargs
):
1886 """IsInputAvailable(self) -> bool"""
1887 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1889 def IsErrorAvailable(*args
, **kwargs
):
1890 """IsErrorAvailable(self) -> bool"""
1891 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1893 _misc_
.Process_swigregister(Process
)
1895 def Process_Kill(*args
, **kwargs
):
1896 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1897 return _misc_
.Process_Kill(*args
, **kwargs
)
1899 def Process_Exists(*args
, **kwargs
):
1900 """Process_Exists(int pid) -> bool"""
1901 return _misc_
.Process_Exists(*args
, **kwargs
)
1903 def Process_Open(*args
, **kwargs
):
1904 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1905 return _misc_
.Process_Open(*args
, **kwargs
)
1907 class ProcessEvent(_core
.Event
):
1908 """Proxy of C++ ProcessEvent class"""
1909 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1910 __repr__
= _swig_repr
1911 def __init__(self
, *args
, **kwargs
):
1912 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1913 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1914 def GetPid(*args
, **kwargs
):
1915 """GetPid(self) -> int"""
1916 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1918 def GetExitCode(*args
, **kwargs
):
1919 """GetExitCode(self) -> int"""
1920 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1922 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1923 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1924 _misc_
.ProcessEvent_swigregister(ProcessEvent
)
1926 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1927 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1929 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1930 EXEC_SYNC
= _misc_
.EXEC_SYNC
1931 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1932 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1933 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1935 def Execute(*args
, **kwargs
):
1936 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1937 return _misc_
.Execute(*args
, **kwargs
)
1939 def Kill(*args
, **kwargs
):
1940 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1941 return _misc_
.Kill(*args
, **kwargs
)
1942 #---------------------------------------------------------------------------
1944 JOYSTICK1
= _misc_
.JOYSTICK1
1945 JOYSTICK2
= _misc_
.JOYSTICK2
1946 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1947 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1948 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1949 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1950 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1951 class Joystick(object):
1952 """Proxy of C++ Joystick 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 joystick=JOYSTICK1) -> Joystick"""
1957 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
1958 __swig_destroy__
= _misc_
.delete_Joystick
1959 __del__
= lambda self
: None;
1960 def GetPosition(*args
, **kwargs
):
1961 """GetPosition(self) -> Point"""
1962 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1964 def GetZPosition(*args
, **kwargs
):
1965 """GetZPosition(self) -> int"""
1966 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1968 def GetButtonState(*args
, **kwargs
):
1969 """GetButtonState(self) -> int"""
1970 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1972 def GetPOVPosition(*args
, **kwargs
):
1973 """GetPOVPosition(self) -> int"""
1974 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1976 def GetPOVCTSPosition(*args
, **kwargs
):
1977 """GetPOVCTSPosition(self) -> int"""
1978 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1980 def GetRudderPosition(*args
, **kwargs
):
1981 """GetRudderPosition(self) -> int"""
1982 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1984 def GetUPosition(*args
, **kwargs
):
1985 """GetUPosition(self) -> int"""
1986 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1988 def GetVPosition(*args
, **kwargs
):
1989 """GetVPosition(self) -> int"""
1990 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1992 def GetMovementThreshold(*args
, **kwargs
):
1993 """GetMovementThreshold(self) -> int"""
1994 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1996 def SetMovementThreshold(*args
, **kwargs
):
1997 """SetMovementThreshold(self, int threshold)"""
1998 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
2000 def IsOk(*args
, **kwargs
):
2001 """IsOk(self) -> bool"""
2002 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
2004 def GetNumberJoysticks(*args
, **kwargs
):
2005 """GetNumberJoysticks(self) -> int"""
2006 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
2008 def GetManufacturerId(*args
, **kwargs
):
2009 """GetManufacturerId(self) -> int"""
2010 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
2012 def GetProductId(*args
, **kwargs
):
2013 """GetProductId(self) -> int"""
2014 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
2016 def GetProductName(*args
, **kwargs
):
2017 """GetProductName(self) -> String"""
2018 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
2020 def GetXMin(*args
, **kwargs
):
2021 """GetXMin(self) -> int"""
2022 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
2024 def GetYMin(*args
, **kwargs
):
2025 """GetYMin(self) -> int"""
2026 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
2028 def GetZMin(*args
, **kwargs
):
2029 """GetZMin(self) -> int"""
2030 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
2032 def GetXMax(*args
, **kwargs
):
2033 """GetXMax(self) -> int"""
2034 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
2036 def GetYMax(*args
, **kwargs
):
2037 """GetYMax(self) -> int"""
2038 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
2040 def GetZMax(*args
, **kwargs
):
2041 """GetZMax(self) -> int"""
2042 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
2044 def GetNumberButtons(*args
, **kwargs
):
2045 """GetNumberButtons(self) -> int"""
2046 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
2048 def GetNumberAxes(*args
, **kwargs
):
2049 """GetNumberAxes(self) -> int"""
2050 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
2052 def GetMaxButtons(*args
, **kwargs
):
2053 """GetMaxButtons(self) -> int"""
2054 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
2056 def GetMaxAxes(*args
, **kwargs
):
2057 """GetMaxAxes(self) -> int"""
2058 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
2060 def GetPollingMin(*args
, **kwargs
):
2061 """GetPollingMin(self) -> int"""
2062 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
2064 def GetPollingMax(*args
, **kwargs
):
2065 """GetPollingMax(self) -> int"""
2066 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
2068 def GetRudderMin(*args
, **kwargs
):
2069 """GetRudderMin(self) -> int"""
2070 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
2072 def GetRudderMax(*args
, **kwargs
):
2073 """GetRudderMax(self) -> int"""
2074 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
2076 def GetUMin(*args
, **kwargs
):
2077 """GetUMin(self) -> int"""
2078 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
2080 def GetUMax(*args
, **kwargs
):
2081 """GetUMax(self) -> int"""
2082 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
2084 def GetVMin(*args
, **kwargs
):
2085 """GetVMin(self) -> int"""
2086 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
2088 def GetVMax(*args
, **kwargs
):
2089 """GetVMax(self) -> int"""
2090 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
2092 def HasRudder(*args
, **kwargs
):
2093 """HasRudder(self) -> bool"""
2094 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
2096 def HasZ(*args
, **kwargs
):
2097 """HasZ(self) -> bool"""
2098 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
2100 def HasU(*args
, **kwargs
):
2101 """HasU(self) -> bool"""
2102 return _misc_
.Joystick_HasU(*args
, **kwargs
)
2104 def HasV(*args
, **kwargs
):
2105 """HasV(self) -> bool"""
2106 return _misc_
.Joystick_HasV(*args
, **kwargs
)
2108 def HasPOV(*args
, **kwargs
):
2109 """HasPOV(self) -> bool"""
2110 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
2112 def HasPOV4Dir(*args
, **kwargs
):
2113 """HasPOV4Dir(self) -> bool"""
2114 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
2116 def HasPOVCTS(*args
, **kwargs
):
2117 """HasPOVCTS(self) -> bool"""
2118 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
2120 def SetCapture(*args
, **kwargs
):
2121 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2122 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2124 def ReleaseCapture(*args
, **kwargs
):
2125 """ReleaseCapture(self) -> bool"""
2126 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2128 def __nonzero__(self
): return self
.IsOk()
2129 _misc_
.Joystick_swigregister(Joystick
)
2131 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2132 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2133 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2134 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2135 class JoystickEvent(_core
.Event
):
2136 """Proxy of C++ JoystickEvent class"""
2137 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2138 __repr__
= _swig_repr
2139 def __init__(self
, *args
, **kwargs
):
2141 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2142 int change=0) -> JoystickEvent
2144 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
2145 def GetPosition(*args
, **kwargs
):
2146 """GetPosition(self) -> Point"""
2147 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2149 def GetZPosition(*args
, **kwargs
):
2150 """GetZPosition(self) -> int"""
2151 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2153 def GetButtonState(*args
, **kwargs
):
2154 """GetButtonState(self) -> int"""
2155 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2157 def GetButtonChange(*args
, **kwargs
):
2158 """GetButtonChange(self) -> int"""
2159 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2161 def GetJoystick(*args
, **kwargs
):
2162 """GetJoystick(self) -> int"""
2163 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2165 def SetJoystick(*args
, **kwargs
):
2166 """SetJoystick(self, int stick)"""
2167 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2169 def SetButtonState(*args
, **kwargs
):
2170 """SetButtonState(self, int state)"""
2171 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2173 def SetButtonChange(*args
, **kwargs
):
2174 """SetButtonChange(self, int change)"""
2175 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2177 def SetPosition(*args
, **kwargs
):
2178 """SetPosition(self, Point pos)"""
2179 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2181 def SetZPosition(*args
, **kwargs
):
2182 """SetZPosition(self, int zPos)"""
2183 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2185 def IsButton(*args
, **kwargs
):
2186 """IsButton(self) -> bool"""
2187 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2189 def IsMove(*args
, **kwargs
):
2190 """IsMove(self) -> bool"""
2191 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2193 def IsZMove(*args
, **kwargs
):
2194 """IsZMove(self) -> bool"""
2195 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2197 def ButtonDown(*args
, **kwargs
):
2198 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2199 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2201 def ButtonUp(*args
, **kwargs
):
2202 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2203 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2205 def ButtonIsDown(*args
, **kwargs
):
2206 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2207 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2209 m_pos
= property(GetPosition
, SetPosition
)
2210 m_zPosition
= property(GetZPosition
, SetZPosition
)
2211 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2212 m_buttonState
= property(GetButtonState
, SetButtonState
)
2213 m_joyStick
= property(GetJoystick
, SetJoystick
)
2215 _misc_
.JoystickEvent_swigregister(JoystickEvent
)
2217 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2218 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2219 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2220 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2222 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2223 wxEVT_JOY_BUTTON_UP
,
2229 #---------------------------------------------------------------------------
2231 SOUND_SYNC
= _misc_
.SOUND_SYNC
2232 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2233 SOUND_LOOP
= _misc_
.SOUND_LOOP
2234 class Sound(object):
2235 """Proxy of C++ Sound class"""
2236 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2237 __repr__
= _swig_repr
2238 def __init__(self
, *args
, **kwargs
):
2239 """__init__(self, String fileName=EmptyString) -> Sound"""
2240 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2241 __swig_destroy__
= _misc_
.delete_Sound
2242 __del__
= lambda self
: None;
2243 def Create(*args
, **kwargs
):
2244 """Create(self, String fileName) -> bool"""
2245 return _misc_
.Sound_Create(*args
, **kwargs
)
2247 def CreateFromData(*args
, **kwargs
):
2248 """CreateFromData(self, PyObject data) -> bool"""
2249 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2251 def IsOk(*args
, **kwargs
):
2252 """IsOk(self) -> bool"""
2253 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2255 def Play(*args
, **kwargs
):
2256 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2257 return _misc_
.Sound_Play(*args
, **kwargs
)
2259 def PlaySound(*args
, **kwargs
):
2260 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2261 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2263 PlaySound
= staticmethod(PlaySound
)
2264 def Stop(*args
, **kwargs
):
2266 return _misc_
.Sound_Stop(*args
, **kwargs
)
2268 Stop
= staticmethod(Stop
)
2269 def __nonzero__(self
): return self
.IsOk()
2270 _misc_
.Sound_swigregister(Sound
)
2272 def SoundFromData(*args
, **kwargs
):
2273 """SoundFromData(PyObject data) -> Sound"""
2274 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2277 def Sound_PlaySound(*args
, **kwargs
):
2278 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2279 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2281 def Sound_Stop(*args
):
2283 return _misc_
.Sound_Stop(*args
)
2285 #---------------------------------------------------------------------------
2287 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2288 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2289 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2290 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2291 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2292 class FileTypeInfo(object):
2293 """Proxy of C++ FileTypeInfo class"""
2294 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2295 __repr__
= _swig_repr
2296 def __init__(self
, *args
, **kwargs
):
2297 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2298 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2299 def IsValid(*args
, **kwargs
):
2300 """IsValid(self) -> bool"""
2301 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2303 def SetIcon(*args
, **kwargs
):
2304 """SetIcon(self, String iconFile, int iconIndex=0)"""
2305 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2307 def SetShortDesc(*args
, **kwargs
):
2308 """SetShortDesc(self, String shortDesc)"""
2309 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2311 def GetMimeType(*args
, **kwargs
):
2312 """GetMimeType(self) -> String"""
2313 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2315 def GetOpenCommand(*args
, **kwargs
):
2316 """GetOpenCommand(self) -> String"""
2317 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2319 def GetPrintCommand(*args
, **kwargs
):
2320 """GetPrintCommand(self) -> String"""
2321 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2323 def GetShortDesc(*args
, **kwargs
):
2324 """GetShortDesc(self) -> String"""
2325 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2327 def GetDescription(*args
, **kwargs
):
2328 """GetDescription(self) -> String"""
2329 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2331 def GetExtensions(*args
, **kwargs
):
2332 """GetExtensions(self) -> wxArrayString"""
2333 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2335 def GetExtensionsCount(*args
, **kwargs
):
2336 """GetExtensionsCount(self) -> size_t"""
2337 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2339 def GetIconFile(*args
, **kwargs
):
2340 """GetIconFile(self) -> String"""
2341 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2343 def GetIconIndex(*args
, **kwargs
):
2344 """GetIconIndex(self) -> int"""
2345 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2347 _misc_
.FileTypeInfo_swigregister(FileTypeInfo
)
2349 def FileTypeInfoSequence(*args
, **kwargs
):
2350 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2351 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2354 def NullFileTypeInfo(*args
, **kwargs
):
2355 """NullFileTypeInfo() -> FileTypeInfo"""
2356 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2359 class FileType(object):
2360 """Proxy of C++ FileType class"""
2361 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2362 __repr__
= _swig_repr
2363 def __init__(self
, *args
, **kwargs
):
2364 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2365 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2366 __swig_destroy__
= _misc_
.delete_FileType
2367 __del__
= lambda self
: None;
2368 def GetMimeType(*args
, **kwargs
):
2369 """GetMimeType(self) -> PyObject"""
2370 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2372 def GetMimeTypes(*args
, **kwargs
):
2373 """GetMimeTypes(self) -> PyObject"""
2374 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2376 def GetExtensions(*args
, **kwargs
):
2377 """GetExtensions(self) -> PyObject"""
2378 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2380 def GetIcon(*args
, **kwargs
):
2381 """GetIcon(self) -> Icon"""
2382 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2384 def GetIconInfo(*args
, **kwargs
):
2385 """GetIconInfo(self) -> PyObject"""
2386 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2388 def GetDescription(*args
, **kwargs
):
2389 """GetDescription(self) -> PyObject"""
2390 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2392 def GetOpenCommand(*args
, **kwargs
):
2393 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2394 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2396 def GetPrintCommand(*args
, **kwargs
):
2397 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2398 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2400 def GetAllCommands(*args
, **kwargs
):
2401 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2402 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2404 def SetCommand(*args
, **kwargs
):
2405 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2406 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2408 def SetDefaultIcon(*args
, **kwargs
):
2409 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2410 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2412 def Unassociate(*args
, **kwargs
):
2413 """Unassociate(self) -> bool"""
2414 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2416 def ExpandCommand(*args
, **kwargs
):
2417 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2418 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2420 ExpandCommand
= staticmethod(ExpandCommand
)
2421 _misc_
.FileType_swigregister(FileType
)
2423 def FileType_ExpandCommand(*args
, **kwargs
):
2424 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2425 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2427 class MimeTypesManager(object):
2428 """Proxy of C++ MimeTypesManager class"""
2429 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2430 __repr__
= _swig_repr
2431 def IsOfType(*args
, **kwargs
):
2432 """IsOfType(String mimeType, String wildcard) -> bool"""
2433 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2435 IsOfType
= staticmethod(IsOfType
)
2436 def __init__(self
, *args
, **kwargs
):
2437 """__init__(self) -> MimeTypesManager"""
2438 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2439 def Initialize(*args
, **kwargs
):
2440 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2441 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2443 def ClearData(*args
, **kwargs
):
2444 """ClearData(self)"""
2445 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2447 def GetFileTypeFromExtension(*args
, **kwargs
):
2448 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2449 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2451 def GetFileTypeFromMimeType(*args
, **kwargs
):
2452 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2453 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2455 def ReadMailcap(*args
, **kwargs
):
2456 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2457 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2459 def ReadMimeTypes(*args
, **kwargs
):
2460 """ReadMimeTypes(self, String filename) -> bool"""
2461 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2463 def EnumAllFileTypes(*args
, **kwargs
):
2464 """EnumAllFileTypes(self) -> PyObject"""
2465 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2467 def AddFallback(*args
, **kwargs
):
2468 """AddFallback(self, FileTypeInfo ft)"""
2469 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2471 def Associate(*args
, **kwargs
):
2472 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2473 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2475 def Unassociate(*args
, **kwargs
):
2476 """Unassociate(self, FileType ft) -> bool"""
2477 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2479 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2480 __del__
= lambda self
: None;
2481 _misc_
.MimeTypesManager_swigregister(MimeTypesManager
)
2482 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2484 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2485 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2486 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2488 #---------------------------------------------------------------------------
2490 class ArtProvider(object):
2492 The wx.ArtProvider class is used to customize the look of wxWidgets
2493 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2494 in the standard file dialog), it does not use hard-coded resource but
2495 asks wx.ArtProvider for it instead. This way the users can plug in
2496 their own wx.ArtProvider class and easily replace standard art with
2497 his/her own version. It is easy thing to do: all that is needed is
2498 to derive a class from wx.ArtProvider, override it's CreateBitmap
2499 method and register the provider with wx.ArtProvider.PushProvider::
2501 class MyArtProvider(wx.ArtProvider):
2503 wx.ArtProvider.__init__(self)
2505 def CreateBitmap(self, artid, client, size):
2510 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2511 __repr__
= _swig_repr
2512 def __init__(self
, *args
, **kwargs
):
2514 __init__(self) -> ArtProvider
2516 The wx.ArtProvider class is used to customize the look of wxWidgets
2517 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2518 in the standard file dialog), it does not use hard-coded resource but
2519 asks wx.ArtProvider for it instead. This way the users can plug in
2520 their own wx.ArtProvider class and easily replace standard art with
2521 his/her own version. It is easy thing to do: all that is needed is
2522 to derive a class from wx.ArtProvider, override it's CreateBitmap
2523 method and register the provider with wx.ArtProvider.PushProvider::
2525 class MyArtProvider(wx.ArtProvider):
2527 wx.ArtProvider.__init__(self)
2529 def CreateBitmap(self, artid, client, size):
2534 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2535 self
._setCallbackInfo
(self
, ArtProvider
)
2537 __swig_destroy__
= _misc_
.delete_ArtProvider
2538 __del__
= lambda self
: None;
2539 def _setCallbackInfo(*args
, **kwargs
):
2540 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2541 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2543 def PushProvider(*args
, **kwargs
):
2545 PushProvider(ArtProvider provider)
2547 Add new provider to the top of providers stack.
2549 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2551 PushProvider
= staticmethod(PushProvider
)
2552 def InsertProvider(*args
, **kwargs
):
2554 InsertProvider(ArtProvider provider)
2556 Add new provider to the bottom of providers stack.
2558 return _misc_
.ArtProvider_InsertProvider(*args
, **kwargs
)
2560 InsertProvider
= staticmethod(InsertProvider
)
2561 def PopProvider(*args
, **kwargs
):
2563 PopProvider() -> bool
2565 Remove latest added provider and delete it.
2567 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2569 PopProvider
= staticmethod(PopProvider
)
2570 def RemoveProvider(*args
, **kwargs
):
2572 RemoveProvider(ArtProvider provider) -> bool
2574 Remove provider. The provider must have been added previously! The
2575 provider is _not_ deleted.
2577 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2581 RemoveProvider
= staticmethod(RemoveProvider
)
2582 def GetBitmap(*args
, **kwargs
):
2584 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2586 Query the providers for bitmap with given ID and return it. Return
2587 wx.NullBitmap if no provider provides it.
2589 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2591 GetBitmap
= staticmethod(GetBitmap
)
2592 def GetIcon(*args
, **kwargs
):
2594 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2596 Query the providers for icon with given ID and return it. Return
2597 wx.NullIcon if no provider provides it.
2599 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2601 GetIcon
= staticmethod(GetIcon
)
2602 def GetSizeHint(*args
, **kwargs
):
2604 GetSizeHint(String client, bool platform_dependent=False) -> Size
2606 Get the size hint of an icon from a specific Art Client, queries the
2607 topmost provider if platform_dependent = false
2609 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2611 GetSizeHint
= staticmethod(GetSizeHint
)
2612 def Destroy(*args
, **kwargs
):
2614 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2618 _misc_
.ArtProvider_swigregister(ArtProvider
)
2619 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2620 ART_MENU
= cvar
.ART_MENU
2621 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2622 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2623 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2624 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2625 ART_BUTTON
= cvar
.ART_BUTTON
2626 ART_OTHER
= cvar
.ART_OTHER
2627 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2628 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2629 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2630 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2631 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2632 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2633 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2634 ART_GO_BACK
= cvar
.ART_GO_BACK
2635 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2636 ART_GO_UP
= cvar
.ART_GO_UP
2637 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2638 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2639 ART_GO_HOME
= cvar
.ART_GO_HOME
2640 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2641 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2642 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2643 ART_PRINT
= cvar
.ART_PRINT
2644 ART_HELP
= cvar
.ART_HELP
2645 ART_TIP
= cvar
.ART_TIP
2646 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2647 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2648 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2649 ART_HARDDISK
= cvar
.ART_HARDDISK
2650 ART_FLOPPY
= cvar
.ART_FLOPPY
2651 ART_CDROM
= cvar
.ART_CDROM
2652 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2653 ART_FOLDER
= cvar
.ART_FOLDER
2654 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2655 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2656 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2657 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2658 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2659 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2660 ART_ERROR
= cvar
.ART_ERROR
2661 ART_QUESTION
= cvar
.ART_QUESTION
2662 ART_WARNING
= cvar
.ART_WARNING
2663 ART_INFORMATION
= cvar
.ART_INFORMATION
2664 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2665 ART_COPY
= cvar
.ART_COPY
2666 ART_CUT
= cvar
.ART_CUT
2667 ART_PASTE
= cvar
.ART_PASTE
2668 ART_DELETE
= cvar
.ART_DELETE
2669 ART_NEW
= cvar
.ART_NEW
2670 ART_UNDO
= cvar
.ART_UNDO
2671 ART_REDO
= cvar
.ART_REDO
2672 ART_QUIT
= cvar
.ART_QUIT
2673 ART_FIND
= cvar
.ART_FIND
2674 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2676 def ArtProvider_PushProvider(*args
, **kwargs
):
2678 ArtProvider_PushProvider(ArtProvider provider)
2680 Add new provider to the top of providers stack.
2682 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2684 def ArtProvider_InsertProvider(*args
, **kwargs
):
2686 ArtProvider_InsertProvider(ArtProvider provider)
2688 Add new provider to the bottom of providers stack.
2690 return _misc_
.ArtProvider_InsertProvider(*args
, **kwargs
)
2692 def ArtProvider_PopProvider(*args
):
2694 ArtProvider_PopProvider() -> bool
2696 Remove latest added provider and delete it.
2698 return _misc_
.ArtProvider_PopProvider(*args
)
2700 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2702 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2704 Remove provider. The provider must have been added previously! The
2705 provider is _not_ deleted.
2707 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2711 def ArtProvider_GetBitmap(*args
, **kwargs
):
2713 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2715 Query the providers for bitmap with given ID and return it. Return
2716 wx.NullBitmap if no provider provides it.
2718 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2720 def ArtProvider_GetIcon(*args
, **kwargs
):
2722 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2724 Query the providers for icon with given ID and return it. Return
2725 wx.NullIcon if no provider provides it.
2727 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2729 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2731 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2733 Get the size hint of an icon from a specific Art Client, queries the
2734 topmost provider if platform_dependent = false
2736 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2738 #---------------------------------------------------------------------------
2740 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2741 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2742 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2743 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2744 class ConfigBase(object):
2746 wx.ConfigBase class defines the basic interface of all config
2747 classes. It can not be used by itself (it is an abstract base class)
2748 and you will always use one of its derivations: wx.Config or
2751 wx.ConfigBase organizes the items in a tree-like structure, modeled
2752 after the Unix/Dos filesystem. There are groups that act like
2753 directories and entries, key/value pairs that act like files. There
2754 is always one current group given by the current path. As in the file
2755 system case, to specify a key in the config class you must use a path
2756 to it. Config classes also support the notion of the current group,
2757 which makes it possible to use relative paths.
2759 Keys are pairs "key_name = value" where value may be of string,
2760 integer floating point or boolean, you can not store binary data
2761 without first encoding it as a string. For performance reasons items
2762 should be kept small, no more than a couple kilobytes.
2765 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2766 def __init__(self
): raise AttributeError, "No constructor defined"
2767 __repr__
= _swig_repr
2768 __swig_destroy__
= _misc_
.delete_ConfigBase
2769 __del__
= lambda self
: None;
2770 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2771 Type_String
= _misc_
.ConfigBase_Type_String
2772 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2773 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2774 Type_Float
= _misc_
.ConfigBase_Type_Float
2775 def Set(*args
, **kwargs
):
2777 Set(ConfigBase config) -> ConfigBase
2779 Sets the global config object (the one returned by Get) and returns a
2780 reference to the previous global config object.
2782 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2784 Set
= staticmethod(Set
)
2785 def Get(*args
, **kwargs
):
2787 Get(bool createOnDemand=True) -> ConfigBase
2789 Returns the current global config object, creating one if neccessary.
2791 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2793 Get
= staticmethod(Get
)
2794 def Create(*args
, **kwargs
):
2796 Create() -> ConfigBase
2798 Create and return a new global config object. This function will
2799 create the "best" implementation of wx.Config available for the
2802 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2804 Create
= staticmethod(Create
)
2805 def DontCreateOnDemand(*args
, **kwargs
):
2807 DontCreateOnDemand()
2809 Should Get() try to create a new log object if there isn't a current
2812 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2814 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2815 def SetPath(*args
, **kwargs
):
2817 SetPath(self, String path)
2819 Set current path: if the first character is '/', it's the absolute
2820 path, otherwise it's a relative path. '..' is supported. If the
2821 strPath doesn't exist it is created.
2823 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2825 def GetPath(*args
, **kwargs
):
2827 GetPath(self) -> String
2829 Retrieve the current path (always as absolute path)
2831 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2833 def GetFirstGroup(*args
, **kwargs
):
2835 GetFirstGroup() -> (more, value, index)
2837 Allows enumerating the subgroups in a config object. Returns a tuple
2838 containing a flag indicating there are more items, the name of the
2839 current item, and an index to pass to GetNextGroup to fetch the next
2842 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2844 def GetNextGroup(*args
, **kwargs
):
2846 GetNextGroup(long index) -> (more, value, index)
2848 Allows enumerating the subgroups in a config object. Returns a tuple
2849 containing a flag indicating there are more items, the name of the
2850 current item, and an index to pass to GetNextGroup to fetch the next
2853 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2855 def GetFirstEntry(*args
, **kwargs
):
2857 GetFirstEntry() -> (more, value, index)
2859 Allows enumerating the entries in the current group in a config
2860 object. Returns a tuple containing a flag indicating there are more
2861 items, the name of the current item, and an index to pass to
2862 GetNextGroup to fetch the next item.
2864 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2866 def GetNextEntry(*args
, **kwargs
):
2868 GetNextEntry(long index) -> (more, value, index)
2870 Allows enumerating the entries in the current group in a config
2871 object. Returns a tuple containing a flag indicating there are more
2872 items, the name of the current item, and an index to pass to
2873 GetNextGroup to fetch the next item.
2875 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2877 def GetNumberOfEntries(*args
, **kwargs
):
2879 GetNumberOfEntries(self, bool recursive=False) -> size_t
2881 Get the number of entries in the current group, with or without its
2884 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2886 def GetNumberOfGroups(*args
, **kwargs
):
2888 GetNumberOfGroups(self, bool recursive=False) -> size_t
2890 Get the number of subgroups in the current group, with or without its
2893 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2895 def HasGroup(*args
, **kwargs
):
2897 HasGroup(self, String name) -> bool
2899 Returns True if the group by this name exists
2901 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2903 def HasEntry(*args
, **kwargs
):
2905 HasEntry(self, String name) -> bool
2907 Returns True if the entry by this name exists
2909 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2911 def Exists(*args
, **kwargs
):
2913 Exists(self, String name) -> bool
2915 Returns True if either a group or an entry with a given name exists
2917 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2919 def GetEntryType(*args
, **kwargs
):
2921 GetEntryType(self, String name) -> int
2923 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2925 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2927 def Read(*args
, **kwargs
):
2929 Read(self, String key, String defaultVal=EmptyString) -> String
2931 Returns the value of key if it exists, defaultVal otherwise.
2933 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2935 def ReadInt(*args
, **kwargs
):
2937 ReadInt(self, String key, long defaultVal=0) -> long
2939 Returns the value of key if it exists, defaultVal otherwise.
2941 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2943 def ReadFloat(*args
, **kwargs
):
2945 ReadFloat(self, String key, double defaultVal=0.0) -> double
2947 Returns the value of key if it exists, defaultVal otherwise.
2949 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2951 def ReadBool(*args
, **kwargs
):
2953 ReadBool(self, String key, bool defaultVal=False) -> bool
2955 Returns the value of key if it exists, defaultVal otherwise.
2957 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2959 def Write(*args
, **kwargs
):
2961 Write(self, String key, String value) -> bool
2963 write the value (return True on success)
2965 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2967 def WriteInt(*args
, **kwargs
):
2969 WriteInt(self, String key, long value) -> bool
2971 write the value (return True on success)
2973 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2975 def WriteFloat(*args
, **kwargs
):
2977 WriteFloat(self, String key, double value) -> bool
2979 write the value (return True on success)
2981 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2983 def WriteBool(*args
, **kwargs
):
2985 WriteBool(self, String key, bool value) -> bool
2987 write the value (return True on success)
2989 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2991 def Flush(*args
, **kwargs
):
2993 Flush(self, bool currentOnly=False) -> bool
2995 permanently writes all changes
2997 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2999 def RenameEntry(*args
, **kwargs
):
3001 RenameEntry(self, String oldName, String newName) -> bool
3003 Rename an entry. Returns False on failure (probably because the new
3004 name is already taken by an existing entry)
3006 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
3008 def RenameGroup(*args
, **kwargs
):
3010 RenameGroup(self, String oldName, String newName) -> bool
3012 Rename a group. Returns False on failure (probably because the new
3013 name is already taken by an existing entry)
3015 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
3017 def DeleteEntry(*args
, **kwargs
):
3019 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3021 Deletes the specified entry and the group it belongs to if it was the
3022 last key in it and the second parameter is True
3024 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
3026 def DeleteGroup(*args
, **kwargs
):
3028 DeleteGroup(self, String key) -> bool
3030 Delete the group (with all subgroups)
3032 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
3034 def DeleteAll(*args
, **kwargs
):
3036 DeleteAll(self) -> bool
3038 Delete the whole underlying object (disk file, registry key, ...)
3039 primarly intended for use by deinstallation routine.
3041 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
3043 def SetExpandEnvVars(*args
, **kwargs
):
3045 SetExpandEnvVars(self, bool doIt=True)
3047 We can automatically expand environment variables in the config
3048 entries this option is on by default, you can turn it on/off at any
3051 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
3053 def IsExpandingEnvVars(*args
, **kwargs
):
3055 IsExpandingEnvVars(self) -> bool
3057 Are we currently expanding environment variables?
3059 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
3061 def SetRecordDefaults(*args
, **kwargs
):
3063 SetRecordDefaults(self, bool doIt=True)
3065 Set whether the config objec should record default values.
3067 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
3069 def IsRecordingDefaults(*args
, **kwargs
):
3071 IsRecordingDefaults(self) -> bool
3073 Are we currently recording default values?
3075 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
3077 def ExpandEnvVars(*args
, **kwargs
):
3079 ExpandEnvVars(self, String str) -> String
3081 Expand any environment variables in str and return the result
3083 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
3085 def GetAppName(*args
, **kwargs
):
3086 """GetAppName(self) -> String"""
3087 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3089 def GetVendorName(*args
, **kwargs
):
3090 """GetVendorName(self) -> String"""
3091 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3093 def SetAppName(*args
, **kwargs
):
3094 """SetAppName(self, String appName)"""
3095 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3097 def SetVendorName(*args
, **kwargs
):
3098 """SetVendorName(self, String vendorName)"""
3099 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3101 def SetStyle(*args
, **kwargs
):
3102 """SetStyle(self, long style)"""
3103 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3105 def GetStyle(*args
, **kwargs
):
3106 """GetStyle(self) -> long"""
3107 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3109 AppName
= property(GetAppName
,SetAppName
,doc
="See `GetAppName` and `SetAppName`")
3110 EntryType
= property(GetEntryType
,doc
="See `GetEntryType`")
3111 FirstEntry
= property(GetFirstEntry
,doc
="See `GetFirstEntry`")
3112 FirstGroup
= property(GetFirstGroup
,doc
="See `GetFirstGroup`")
3113 NextEntry
= property(GetNextEntry
,doc
="See `GetNextEntry`")
3114 NextGroup
= property(GetNextGroup
,doc
="See `GetNextGroup`")
3115 NumberOfEntries
= property(GetNumberOfEntries
,doc
="See `GetNumberOfEntries`")
3116 NumberOfGroups
= property(GetNumberOfGroups
,doc
="See `GetNumberOfGroups`")
3117 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
3118 Style
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")
3119 VendorName
= property(GetVendorName
,SetVendorName
,doc
="See `GetVendorName` and `SetVendorName`")
3120 _misc_
.ConfigBase_swigregister(ConfigBase
)
3122 def ConfigBase_Set(*args
, **kwargs
):
3124 ConfigBase_Set(ConfigBase config) -> ConfigBase
3126 Sets the global config object (the one returned by Get) and returns a
3127 reference to the previous global config object.
3129 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3131 def ConfigBase_Get(*args
, **kwargs
):
3133 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3135 Returns the current global config object, creating one if neccessary.
3137 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3139 def ConfigBase_Create(*args
):
3141 ConfigBase_Create() -> ConfigBase
3143 Create and return a new global config object. This function will
3144 create the "best" implementation of wx.Config available for the
3147 return _misc_
.ConfigBase_Create(*args
)
3149 def ConfigBase_DontCreateOnDemand(*args
):
3151 ConfigBase_DontCreateOnDemand()
3153 Should Get() try to create a new log object if there isn't a current
3156 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
3158 class Config(ConfigBase
):
3160 This ConfigBase-derived class will use the registry on Windows,
3161 and will be a wx.FileConfig on other platforms.
3163 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3164 __repr__
= _swig_repr
3165 def __init__(self
, *args
, **kwargs
):
3167 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3168 String localFilename=EmptyString, String globalFilename=EmptyString,
3169 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3171 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
3172 __swig_destroy__
= _misc_
.delete_Config
3173 __del__
= lambda self
: None;
3174 _misc_
.Config_swigregister(Config
)
3176 class FileConfig(ConfigBase
):
3177 """This config class will use a file for storage on all platforms."""
3178 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3179 __repr__
= _swig_repr
3180 def __init__(self
, *args
, **kwargs
):
3182 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3183 String localFilename=EmptyString, String globalFilename=EmptyString,
3184 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3186 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3187 __swig_destroy__
= _misc_
.delete_FileConfig
3188 __del__
= lambda self
: None;
3189 _misc_
.FileConfig_swigregister(FileConfig
)
3191 class ConfigPathChanger(object):
3193 A handy little class which changes current path to the path of given
3194 entry and restores it in the destructoir: so if you declare a local
3195 variable of this type, you work in the entry directory and the path is
3196 automatically restored when the function returns.
3198 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3199 __repr__
= _swig_repr
3200 def __init__(self
, *args
, **kwargs
):
3201 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3202 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3203 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3204 __del__
= lambda self
: None;
3205 def Name(*args
, **kwargs
):
3207 Name(self) -> String
3211 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3213 _misc_
.ConfigPathChanger_swigregister(ConfigPathChanger
)
3216 def ExpandEnvVars(*args
, **kwargs
):
3218 ExpandEnvVars(String sz) -> String
3220 Replace environment variables ($SOMETHING) with their values. The
3221 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3222 characters and '_' only. '$' must be escaped ('\$') in order to be
3225 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3226 #---------------------------------------------------------------------------
3228 class DateTime(object):
3229 """Proxy of C++ DateTime class"""
3230 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3231 __repr__
= _swig_repr
3232 Local
= _misc_
.DateTime_Local
3233 GMT_12
= _misc_
.DateTime_GMT_12
3234 GMT_11
= _misc_
.DateTime_GMT_11
3235 GMT_10
= _misc_
.DateTime_GMT_10
3236 GMT_9
= _misc_
.DateTime_GMT_9
3237 GMT_8
= _misc_
.DateTime_GMT_8
3238 GMT_7
= _misc_
.DateTime_GMT_7
3239 GMT_6
= _misc_
.DateTime_GMT_6
3240 GMT_5
= _misc_
.DateTime_GMT_5
3241 GMT_4
= _misc_
.DateTime_GMT_4
3242 GMT_3
= _misc_
.DateTime_GMT_3
3243 GMT_2
= _misc_
.DateTime_GMT_2
3244 GMT_1
= _misc_
.DateTime_GMT_1
3245 GMT0
= _misc_
.DateTime_GMT0
3246 GMT1
= _misc_
.DateTime_GMT1
3247 GMT2
= _misc_
.DateTime_GMT2
3248 GMT3
= _misc_
.DateTime_GMT3
3249 GMT4
= _misc_
.DateTime_GMT4
3250 GMT5
= _misc_
.DateTime_GMT5
3251 GMT6
= _misc_
.DateTime_GMT6
3252 GMT7
= _misc_
.DateTime_GMT7
3253 GMT8
= _misc_
.DateTime_GMT8
3254 GMT9
= _misc_
.DateTime_GMT9
3255 GMT10
= _misc_
.DateTime_GMT10
3256 GMT11
= _misc_
.DateTime_GMT11
3257 GMT12
= _misc_
.DateTime_GMT12
3258 WET
= _misc_
.DateTime_WET
3259 WEST
= _misc_
.DateTime_WEST
3260 CET
= _misc_
.DateTime_CET
3261 CEST
= _misc_
.DateTime_CEST
3262 EET
= _misc_
.DateTime_EET
3263 EEST
= _misc_
.DateTime_EEST
3264 MSK
= _misc_
.DateTime_MSK
3265 MSD
= _misc_
.DateTime_MSD
3266 AST
= _misc_
.DateTime_AST
3267 ADT
= _misc_
.DateTime_ADT
3268 EST
= _misc_
.DateTime_EST
3269 EDT
= _misc_
.DateTime_EDT
3270 CST
= _misc_
.DateTime_CST
3271 CDT
= _misc_
.DateTime_CDT
3272 MST
= _misc_
.DateTime_MST
3273 MDT
= _misc_
.DateTime_MDT
3274 PST
= _misc_
.DateTime_PST
3275 PDT
= _misc_
.DateTime_PDT
3276 HST
= _misc_
.DateTime_HST
3277 AKST
= _misc_
.DateTime_AKST
3278 AKDT
= _misc_
.DateTime_AKDT
3279 A_WST
= _misc_
.DateTime_A_WST
3280 A_CST
= _misc_
.DateTime_A_CST
3281 A_EST
= _misc_
.DateTime_A_EST
3282 A_ESST
= _misc_
.DateTime_A_ESST
3283 UTC
= _misc_
.DateTime_UTC
3284 Gregorian
= _misc_
.DateTime_Gregorian
3285 Julian
= _misc_
.DateTime_Julian
3286 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3287 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3288 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3289 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3290 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3291 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3292 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3293 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3294 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3295 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3296 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3297 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3298 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3299 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3300 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3301 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3302 Gr_China
= _misc_
.DateTime_Gr_China
3303 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3304 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3305 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3306 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3307 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3308 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3309 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3310 Gr_France
= _misc_
.DateTime_Gr_France
3311 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3312 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3313 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3314 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3315 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3316 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3317 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3318 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3319 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3320 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3321 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3322 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3323 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3324 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3325 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3326 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3327 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3328 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3329 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3330 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3331 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3332 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3333 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3334 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3335 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3336 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3337 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3338 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3339 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3340 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3341 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3342 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3343 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3344 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3345 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3346 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3347 Gr_USA
= _misc_
.DateTime_Gr_USA
3348 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3349 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3350 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3351 Country_Default
= _misc_
.DateTime_Country_Default
3352 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3353 Country_EEC
= _misc_
.DateTime_Country_EEC
3354 France
= _misc_
.DateTime_France
3355 Germany
= _misc_
.DateTime_Germany
3356 UK
= _misc_
.DateTime_UK
3357 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3358 Russia
= _misc_
.DateTime_Russia
3359 USA
= _misc_
.DateTime_USA
3360 Jan
= _misc_
.DateTime_Jan
3361 Feb
= _misc_
.DateTime_Feb
3362 Mar
= _misc_
.DateTime_Mar
3363 Apr
= _misc_
.DateTime_Apr
3364 May
= _misc_
.DateTime_May
3365 Jun
= _misc_
.DateTime_Jun
3366 Jul
= _misc_
.DateTime_Jul
3367 Aug
= _misc_
.DateTime_Aug
3368 Sep
= _misc_
.DateTime_Sep
3369 Oct
= _misc_
.DateTime_Oct
3370 Nov
= _misc_
.DateTime_Nov
3371 Dec
= _misc_
.DateTime_Dec
3372 Inv_Month
= _misc_
.DateTime_Inv_Month
3373 Sun
= _misc_
.DateTime_Sun
3374 Mon
= _misc_
.DateTime_Mon
3375 Tue
= _misc_
.DateTime_Tue
3376 Wed
= _misc_
.DateTime_Wed
3377 Thu
= _misc_
.DateTime_Thu
3378 Fri
= _misc_
.DateTime_Fri
3379 Sat
= _misc_
.DateTime_Sat
3380 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3381 Inv_Year
= _misc_
.DateTime_Inv_Year
3382 Name_Full
= _misc_
.DateTime_Name_Full
3383 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3384 Default_First
= _misc_
.DateTime_Default_First
3385 Monday_First
= _misc_
.DateTime_Monday_First
3386 Sunday_First
= _misc_
.DateTime_Sunday_First
3387 def SetCountry(*args
, **kwargs
):
3388 """SetCountry(int country)"""
3389 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3391 SetCountry
= staticmethod(SetCountry
)
3392 def GetCountry(*args
, **kwargs
):
3393 """GetCountry() -> int"""
3394 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3396 GetCountry
= staticmethod(GetCountry
)
3397 def IsWestEuropeanCountry(*args
, **kwargs
):
3398 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3399 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3401 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3402 def GetCurrentYear(*args
, **kwargs
):
3403 """GetCurrentYear(int cal=Gregorian) -> int"""
3404 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3406 GetCurrentYear
= staticmethod(GetCurrentYear
)
3407 def ConvertYearToBC(*args
, **kwargs
):
3408 """ConvertYearToBC(int year) -> int"""
3409 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3411 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3412 def GetCurrentMonth(*args
, **kwargs
):
3413 """GetCurrentMonth(int cal=Gregorian) -> int"""
3414 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3416 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3417 def IsLeapYear(*args
, **kwargs
):
3418 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3419 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3421 IsLeapYear
= staticmethod(IsLeapYear
)
3422 def GetCentury(*args
, **kwargs
):
3423 """GetCentury(int year=Inv_Year) -> int"""
3424 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3426 GetCentury
= staticmethod(GetCentury
)
3427 def GetNumberOfDaysinYear(*args
, **kwargs
):
3428 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3429 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3431 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3432 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3433 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3434 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3436 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3437 def GetMonthName(*args
, **kwargs
):
3438 """GetMonthName(int month, int flags=Name_Full) -> String"""
3439 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3441 GetMonthName
= staticmethod(GetMonthName
)
3442 def GetWeekDayName(*args
, **kwargs
):
3443 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3444 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3446 GetWeekDayName
= staticmethod(GetWeekDayName
)
3447 def GetAmPmStrings(*args
, **kwargs
):
3449 GetAmPmStrings() -> (am, pm)
3451 Get the AM and PM strings in the current locale (may be empty)
3453 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3455 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3456 def IsDSTApplicable(*args
, **kwargs
):
3457 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3458 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3460 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3461 def GetBeginDST(*args
, **kwargs
):
3462 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3463 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3465 GetBeginDST
= staticmethod(GetBeginDST
)
3466 def GetEndDST(*args
, **kwargs
):
3467 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3468 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3470 GetEndDST
= staticmethod(GetEndDST
)
3471 def Now(*args
, **kwargs
):
3472 """Now() -> DateTime"""
3473 return _misc_
.DateTime_Now(*args
, **kwargs
)
3475 Now
= staticmethod(Now
)
3476 def UNow(*args
, **kwargs
):
3477 """UNow() -> DateTime"""
3478 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3480 UNow
= staticmethod(UNow
)
3481 def Today(*args
, **kwargs
):
3482 """Today() -> DateTime"""
3483 return _misc_
.DateTime_Today(*args
, **kwargs
)
3485 Today
= staticmethod(Today
)
3486 def __init__(self
, *args
, **kwargs
):
3487 """__init__(self) -> DateTime"""
3488 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3489 __swig_destroy__
= _misc_
.delete_DateTime
3490 __del__
= lambda self
: None;
3491 def SetToCurrent(*args
, **kwargs
):
3492 """SetToCurrent(self) -> DateTime"""
3493 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3495 def SetTimeT(*args
, **kwargs
):
3496 """SetTimeT(self, time_t timet) -> DateTime"""
3497 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3499 def SetJDN(*args
, **kwargs
):
3500 """SetJDN(self, double jdn) -> DateTime"""
3501 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3503 def SetHMS(*args
, **kwargs
):
3504 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3505 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3507 def Set(*args
, **kwargs
):
3509 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3510 int minute=0, int second=0, int millisec=0) -> DateTime
3512 return _misc_
.DateTime_Set(*args
, **kwargs
)
3514 def ResetTime(*args
, **kwargs
):
3515 """ResetTime(self) -> DateTime"""
3516 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3518 def SetYear(*args
, **kwargs
):
3519 """SetYear(self, int year) -> DateTime"""
3520 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3522 def SetMonth(*args
, **kwargs
):
3523 """SetMonth(self, int month) -> DateTime"""
3524 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3526 def SetDay(*args
, **kwargs
):
3527 """SetDay(self, int day) -> DateTime"""
3528 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3530 def SetHour(*args
, **kwargs
):
3531 """SetHour(self, int hour) -> DateTime"""
3532 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3534 def SetMinute(*args
, **kwargs
):
3535 """SetMinute(self, int minute) -> DateTime"""
3536 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3538 def SetSecond(*args
, **kwargs
):
3539 """SetSecond(self, int second) -> DateTime"""
3540 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3542 def SetMillisecond(*args
, **kwargs
):
3543 """SetMillisecond(self, int millisecond) -> DateTime"""
3544 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3546 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3547 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3548 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3550 def GetWeekDayInSameWeek(*args
, **kwargs
):
3551 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3552 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3554 def SetToNextWeekDay(*args
, **kwargs
):
3555 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3556 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3558 def GetNextWeekDay(*args
, **kwargs
):
3559 """GetNextWeekDay(self, int weekday) -> DateTime"""
3560 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3562 def SetToPrevWeekDay(*args
, **kwargs
):
3563 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3564 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3566 def GetPrevWeekDay(*args
, **kwargs
):
3567 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3568 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3570 def SetToWeekDay(*args
, **kwargs
):
3571 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3572 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3574 def SetToLastWeekDay(*args
, **kwargs
):
3575 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3576 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3578 def GetLastWeekDay(*args
, **kwargs
):
3579 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3580 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3582 def SetToTheWeek(*args
, **kwargs
):
3583 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3584 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3586 def GetWeek(*args
, **kwargs
):
3587 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3588 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3590 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3591 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3593 def SetToWeekOfYear(*args
, **kwargs
):
3594 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3595 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3597 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3598 def SetToLastMonthDay(*args
, **kwargs
):
3599 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3600 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3602 def GetLastMonthDay(*args
, **kwargs
):
3603 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3604 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3606 def SetToYearDay(*args
, **kwargs
):
3607 """SetToYearDay(self, int yday) -> DateTime"""
3608 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3610 def GetYearDay(*args
, **kwargs
):
3611 """GetYearDay(self, int yday) -> DateTime"""
3612 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3614 def GetJulianDayNumber(*args
, **kwargs
):
3615 """GetJulianDayNumber(self) -> double"""
3616 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3618 def GetJDN(*args
, **kwargs
):
3619 """GetJDN(self) -> double"""
3620 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3622 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3623 """GetModifiedJulianDayNumber(self) -> double"""
3624 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3626 def GetMJD(*args
, **kwargs
):
3627 """GetMJD(self) -> double"""
3628 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3630 def GetRataDie(*args
, **kwargs
):
3631 """GetRataDie(self) -> double"""
3632 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3634 def ToTimezone(*args
, **kwargs
):
3635 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3636 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3638 def MakeTimezone(*args
, **kwargs
):
3639 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3640 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3642 def FromTimezone(*args
, **kwargs
):
3643 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3644 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3646 def MakeFromTimezone(*args
, **kwargs
):
3647 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3648 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3650 def ToUTC(*args
, **kwargs
):
3651 """ToUTC(self, bool noDST=False) -> DateTime"""
3652 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3654 def MakeUTC(*args
, **kwargs
):
3655 """MakeUTC(self, bool noDST=False) -> DateTime"""
3656 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3658 def ToGMT(*args
, **kwargs
):
3659 """ToGMT(self, bool noDST=False) -> DateTime"""
3660 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3662 def MakeGMT(*args
, **kwargs
):
3663 """MakeGMT(self, bool noDST=False) -> DateTime"""
3664 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3666 def FromUTC(*args
, **kwargs
):
3667 """FromUTC(self, bool noDST=False) -> DateTime"""
3668 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3670 def MakeFromUTC(*args
, **kwargs
):
3671 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3672 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3674 def IsDST(*args
, **kwargs
):
3675 """IsDST(self, int country=Country_Default) -> int"""
3676 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3678 def IsValid(*args
, **kwargs
):
3679 """IsValid(self) -> bool"""
3680 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3683 def __nonzero__(self
): return self
.Ok()
3684 def GetTicks(*args
, **kwargs
):
3685 """GetTicks(self) -> time_t"""
3686 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3688 def GetYear(*args
, **kwargs
):
3689 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3690 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3692 def GetMonth(*args
, **kwargs
):
3693 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3694 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3696 def GetDay(*args
, **kwargs
):
3697 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3698 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3700 def GetWeekDay(*args
, **kwargs
):
3701 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3702 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3704 def GetHour(*args
, **kwargs
):
3705 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3706 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3708 def GetMinute(*args
, **kwargs
):
3709 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3710 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3712 def GetSecond(*args
, **kwargs
):
3713 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3714 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3716 def GetMillisecond(*args
, **kwargs
):
3717 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3718 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3720 def GetDayOfYear(*args
, **kwargs
):
3721 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3722 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3724 def GetWeekOfYear(*args
, **kwargs
):
3725 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3726 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3728 def GetWeekOfMonth(*args
, **kwargs
):
3729 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3730 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3732 def IsWorkDay(*args
, **kwargs
):
3733 """IsWorkDay(self, int country=Country_Default) -> bool"""
3734 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3736 def IsEqualTo(*args
, **kwargs
):
3737 """IsEqualTo(self, DateTime datetime) -> bool"""
3738 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3740 def IsEarlierThan(*args
, **kwargs
):
3741 """IsEarlierThan(self, DateTime datetime) -> bool"""
3742 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3744 def IsLaterThan(*args
, **kwargs
):
3745 """IsLaterThan(self, DateTime datetime) -> bool"""
3746 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3748 def IsStrictlyBetween(*args
, **kwargs
):
3749 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3750 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3752 def IsBetween(*args
, **kwargs
):
3753 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3754 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3756 def IsSameDate(*args
, **kwargs
):
3757 """IsSameDate(self, DateTime dt) -> bool"""
3758 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3760 def IsSameTime(*args
, **kwargs
):
3761 """IsSameTime(self, DateTime dt) -> bool"""
3762 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3764 def IsEqualUpTo(*args
, **kwargs
):
3765 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3766 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3768 def AddTS(*args
, **kwargs
):
3769 """AddTS(self, TimeSpan diff) -> DateTime"""
3770 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3772 def AddDS(*args
, **kwargs
):
3773 """AddDS(self, DateSpan diff) -> DateTime"""
3774 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3776 def SubtractTS(*args
, **kwargs
):
3777 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3778 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3780 def SubtractDS(*args
, **kwargs
):
3781 """SubtractDS(self, DateSpan diff) -> DateTime"""
3782 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3784 def Subtract(*args
, **kwargs
):
3785 """Subtract(self, DateTime dt) -> TimeSpan"""
3786 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3788 def __iadd__(*args
):
3790 __iadd__(self, TimeSpan diff) -> DateTime
3791 __iadd__(self, DateSpan diff) -> DateTime
3793 return _misc_
.DateTime___iadd__(*args
)
3795 def __isub__(*args
):
3797 __isub__(self, TimeSpan diff) -> DateTime
3798 __isub__(self, DateSpan diff) -> DateTime
3800 return _misc_
.DateTime___isub__(*args
)
3804 __add__(self, TimeSpan other) -> DateTime
3805 __add__(self, DateSpan other) -> DateTime
3807 return _misc_
.DateTime___add__(*args
)
3811 __sub__(self, DateTime other) -> TimeSpan
3812 __sub__(self, TimeSpan other) -> DateTime
3813 __sub__(self, DateSpan other) -> DateTime
3815 return _misc_
.DateTime___sub__(*args
)
3817 def __lt__(*args
, **kwargs
):
3818 """__lt__(self, DateTime other) -> bool"""
3819 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3821 def __le__(*args
, **kwargs
):
3822 """__le__(self, DateTime other) -> bool"""
3823 return _misc_
.DateTime___le__(*args
, **kwargs
)
3825 def __gt__(*args
, **kwargs
):
3826 """__gt__(self, DateTime other) -> bool"""
3827 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3829 def __ge__(*args
, **kwargs
):
3830 """__ge__(self, DateTime other) -> bool"""
3831 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3833 def __eq__(*args
, **kwargs
):
3834 """__eq__(self, DateTime other) -> bool"""
3835 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3837 def __ne__(*args
, **kwargs
):
3838 """__ne__(self, DateTime other) -> bool"""
3839 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3841 def ParseRfc822Date(*args
, **kwargs
):
3842 """ParseRfc822Date(self, String date) -> int"""
3843 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3845 def ParseFormat(*args
, **kwargs
):
3846 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3847 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3849 def ParseDateTime(*args
, **kwargs
):
3850 """ParseDateTime(self, String datetime) -> int"""
3851 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3853 def ParseDate(*args
, **kwargs
):
3854 """ParseDate(self, String date) -> int"""
3855 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3857 def ParseTime(*args
, **kwargs
):
3858 """ParseTime(self, String time) -> int"""
3859 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3861 def Format(*args
, **kwargs
):
3862 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3863 return _misc_
.DateTime_Format(*args
, **kwargs
)
3865 def FormatDate(*args
, **kwargs
):
3866 """FormatDate(self) -> String"""
3867 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3869 def FormatTime(*args
, **kwargs
):
3870 """FormatTime(self) -> String"""
3871 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3873 def FormatISODate(*args
, **kwargs
):
3874 """FormatISODate(self) -> String"""
3875 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3877 def FormatISOTime(*args
, **kwargs
):
3878 """FormatISOTime(self) -> String"""
3879 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3883 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3884 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
3886 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3889 return self
.Format().encode(wx
.GetDefaultPyEncoding())
3891 return "INVALID DateTime"
3893 Day
= property(GetDay
,SetDay
,doc
="See `GetDay` and `SetDay`")
3894 DayOfYear
= property(GetDayOfYear
,doc
="See `GetDayOfYear`")
3895 Hour
= property(GetHour
,SetHour
,doc
="See `GetHour` and `SetHour`")
3896 JDN
= property(GetJDN
,SetJDN
,doc
="See `GetJDN` and `SetJDN`")
3897 JulianDayNumber
= property(GetJulianDayNumber
,doc
="See `GetJulianDayNumber`")
3898 LastMonthDay
= property(GetLastMonthDay
,doc
="See `GetLastMonthDay`")
3899 LastWeekDay
= property(GetLastWeekDay
,doc
="See `GetLastWeekDay`")
3900 MJD
= property(GetMJD
,doc
="See `GetMJD`")
3901 Millisecond
= property(GetMillisecond
,SetMillisecond
,doc
="See `GetMillisecond` and `SetMillisecond`")
3902 Minute
= property(GetMinute
,SetMinute
,doc
="See `GetMinute` and `SetMinute`")
3903 ModifiedJulianDayNumber
= property(GetModifiedJulianDayNumber
,doc
="See `GetModifiedJulianDayNumber`")
3904 Month
= property(GetMonth
,SetMonth
,doc
="See `GetMonth` and `SetMonth`")
3905 NextWeekDay
= property(GetNextWeekDay
,doc
="See `GetNextWeekDay`")
3906 PrevWeekDay
= property(GetPrevWeekDay
,doc
="See `GetPrevWeekDay`")
3907 RataDie
= property(GetRataDie
,doc
="See `GetRataDie`")
3908 Second
= property(GetSecond
,SetSecond
,doc
="See `GetSecond` and `SetSecond`")
3909 Ticks
= property(GetTicks
,doc
="See `GetTicks`")
3910 Week
= property(GetWeek
,doc
="See `GetWeek`")
3911 WeekDay
= property(GetWeekDay
,doc
="See `GetWeekDay`")
3912 WeekDayInSameWeek
= property(GetWeekDayInSameWeek
,doc
="See `GetWeekDayInSameWeek`")
3913 WeekOfMonth
= property(GetWeekOfMonth
,doc
="See `GetWeekOfMonth`")
3914 WeekOfYear
= property(GetWeekOfYear
,doc
="See `GetWeekOfYear`")
3915 Year
= property(GetYear
,SetYear
,doc
="See `GetYear` and `SetYear`")
3916 YearDay
= property(GetYearDay
,doc
="See `GetYearDay`")
3917 _misc_
.DateTime_swigregister(DateTime
)
3918 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
3919 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
3921 def DateTime_SetCountry(*args
, **kwargs
):
3922 """DateTime_SetCountry(int country)"""
3923 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3925 def DateTime_GetCountry(*args
):
3926 """DateTime_GetCountry() -> int"""
3927 return _misc_
.DateTime_GetCountry(*args
)
3929 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3930 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3931 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3933 def DateTime_GetCurrentYear(*args
, **kwargs
):
3934 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3935 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3937 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3938 """DateTime_ConvertYearToBC(int year) -> int"""
3939 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3941 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3942 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3943 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3945 def DateTime_IsLeapYear(*args
, **kwargs
):
3946 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3947 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3949 def DateTime_GetCentury(*args
, **kwargs
):
3950 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3951 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3953 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3954 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3955 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3957 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3958 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3959 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3961 def DateTime_GetMonthName(*args
, **kwargs
):
3962 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3963 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3965 def DateTime_GetWeekDayName(*args
, **kwargs
):
3966 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3967 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3969 def DateTime_GetAmPmStrings(*args
):
3971 GetAmPmStrings() -> (am, pm)
3973 Get the AM and PM strings in the current locale (may be empty)
3975 return _misc_
.DateTime_GetAmPmStrings(*args
)
3977 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3978 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3979 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3981 def DateTime_GetBeginDST(*args
, **kwargs
):
3982 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3983 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3985 def DateTime_GetEndDST(*args
, **kwargs
):
3986 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3987 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3989 def DateTime_Now(*args
):
3990 """DateTime_Now() -> DateTime"""
3991 return _misc_
.DateTime_Now(*args
)
3993 def DateTime_UNow(*args
):
3994 """DateTime_UNow() -> DateTime"""
3995 return _misc_
.DateTime_UNow(*args
)
3997 def DateTime_Today(*args
):
3998 """DateTime_Today() -> DateTime"""
3999 return _misc_
.DateTime_Today(*args
)
4001 def DateTimeFromTimeT(*args
, **kwargs
):
4002 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4003 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
4006 def DateTimeFromJDN(*args
, **kwargs
):
4007 """DateTimeFromJDN(double jdn) -> DateTime"""
4008 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
4011 def DateTimeFromHMS(*args
, **kwargs
):
4012 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4013 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
4016 def DateTimeFromDMY(*args
, **kwargs
):
4018 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4019 int minute=0, int second=0, int millisec=0) -> DateTime
4021 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
4024 def DateTimeFromDateTime(*args
, **kwargs
):
4025 """DateTimeFromDateTime(DateTime date) -> DateTime"""
4026 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
4029 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
4030 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4031 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
4033 class TimeSpan(object):
4034 """Proxy of C++ TimeSpan class"""
4035 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4036 __repr__
= _swig_repr
4037 def Milliseconds(*args
, **kwargs
):
4038 """Milliseconds(long ms) -> TimeSpan"""
4039 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4041 Milliseconds
= staticmethod(Milliseconds
)
4042 def Millisecond(*args
, **kwargs
):
4043 """Millisecond() -> TimeSpan"""
4044 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
4046 Millisecond
= staticmethod(Millisecond
)
4047 def Seconds(*args
, **kwargs
):
4048 """Seconds(long sec) -> TimeSpan"""
4049 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4051 Seconds
= staticmethod(Seconds
)
4052 def Second(*args
, **kwargs
):
4053 """Second() -> TimeSpan"""
4054 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4056 Second
= staticmethod(Second
)
4057 def Minutes(*args
, **kwargs
):
4058 """Minutes(long min) -> TimeSpan"""
4059 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4061 Minutes
= staticmethod(Minutes
)
4062 def Minute(*args
, **kwargs
):
4063 """Minute() -> TimeSpan"""
4064 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4066 Minute
= staticmethod(Minute
)
4067 def Hours(*args
, **kwargs
):
4068 """Hours(long hours) -> TimeSpan"""
4069 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4071 Hours
= staticmethod(Hours
)
4072 def Hour(*args
, **kwargs
):
4073 """Hour() -> TimeSpan"""
4074 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4076 Hour
= staticmethod(Hour
)
4077 def Days(*args
, **kwargs
):
4078 """Days(long days) -> TimeSpan"""
4079 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4081 Days
= staticmethod(Days
)
4082 def Day(*args
, **kwargs
):
4083 """Day() -> TimeSpan"""
4084 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4086 Day
= staticmethod(Day
)
4087 def Weeks(*args
, **kwargs
):
4088 """Weeks(long days) -> TimeSpan"""
4089 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4091 Weeks
= staticmethod(Weeks
)
4092 def Week(*args
, **kwargs
):
4093 """Week() -> TimeSpan"""
4094 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4096 Week
= staticmethod(Week
)
4097 def __init__(self
, *args
, **kwargs
):
4098 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4099 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
4100 __swig_destroy__
= _misc_
.delete_TimeSpan
4101 __del__
= lambda self
: None;
4102 def Add(*args
, **kwargs
):
4103 """Add(self, TimeSpan diff) -> TimeSpan"""
4104 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
4106 def Subtract(*args
, **kwargs
):
4107 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4108 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4110 def Multiply(*args
, **kwargs
):
4111 """Multiply(self, int n) -> TimeSpan"""
4112 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4114 def Neg(*args
, **kwargs
):
4115 """Neg(self) -> TimeSpan"""
4116 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4118 def Abs(*args
, **kwargs
):
4119 """Abs(self) -> TimeSpan"""
4120 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4122 def __iadd__(*args
, **kwargs
):
4123 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4124 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4126 def __isub__(*args
, **kwargs
):
4127 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4128 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4130 def __imul__(*args
, **kwargs
):
4131 """__imul__(self, int n) -> TimeSpan"""
4132 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4134 def __neg__(*args
, **kwargs
):
4135 """__neg__(self) -> TimeSpan"""
4136 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4138 def __add__(*args
, **kwargs
):
4139 """__add__(self, TimeSpan other) -> TimeSpan"""
4140 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4142 def __sub__(*args
, **kwargs
):
4143 """__sub__(self, TimeSpan other) -> TimeSpan"""
4144 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4146 def __mul__(*args
, **kwargs
):
4147 """__mul__(self, int n) -> TimeSpan"""
4148 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4150 def __rmul__(*args
, **kwargs
):
4151 """__rmul__(self, int n) -> TimeSpan"""
4152 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4154 def __lt__(*args
, **kwargs
):
4155 """__lt__(self, TimeSpan other) -> bool"""
4156 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4158 def __le__(*args
, **kwargs
):
4159 """__le__(self, TimeSpan other) -> bool"""
4160 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4162 def __gt__(*args
, **kwargs
):
4163 """__gt__(self, TimeSpan other) -> bool"""
4164 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4166 def __ge__(*args
, **kwargs
):
4167 """__ge__(self, TimeSpan other) -> bool"""
4168 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4170 def __eq__(*args
, **kwargs
):
4171 """__eq__(self, TimeSpan other) -> bool"""
4172 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4174 def __ne__(*args
, **kwargs
):
4175 """__ne__(self, TimeSpan other) -> bool"""
4176 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4178 def IsNull(*args
, **kwargs
):
4179 """IsNull(self) -> bool"""
4180 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4182 def IsPositive(*args
, **kwargs
):
4183 """IsPositive(self) -> bool"""
4184 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4186 def IsNegative(*args
, **kwargs
):
4187 """IsNegative(self) -> bool"""
4188 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4190 def IsEqualTo(*args
, **kwargs
):
4191 """IsEqualTo(self, TimeSpan ts) -> bool"""
4192 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4194 def IsLongerThan(*args
, **kwargs
):
4195 """IsLongerThan(self, TimeSpan ts) -> bool"""
4196 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4198 def IsShorterThan(*args
, **kwargs
):
4199 """IsShorterThan(self, TimeSpan t) -> bool"""
4200 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4202 def GetWeeks(*args
, **kwargs
):
4203 """GetWeeks(self) -> int"""
4204 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4206 def GetDays(*args
, **kwargs
):
4207 """GetDays(self) -> int"""
4208 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4210 def GetHours(*args
, **kwargs
):
4211 """GetHours(self) -> int"""
4212 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4214 def GetMinutes(*args
, **kwargs
):
4215 """GetMinutes(self) -> int"""
4216 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4218 def GetSeconds(*args
, **kwargs
):
4219 """GetSeconds(self) -> wxLongLong"""
4220 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4222 def GetMilliseconds(*args
, **kwargs
):
4223 """GetMilliseconds(self) -> wxLongLong"""
4224 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4226 def Format(*args
, **kwargs
):
4227 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4228 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4231 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4232 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4234 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4236 _misc_
.TimeSpan_swigregister(TimeSpan
)
4238 def TimeSpan_Milliseconds(*args
, **kwargs
):
4239 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4240 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4242 def TimeSpan_Millisecond(*args
):
4243 """TimeSpan_Millisecond() -> TimeSpan"""
4244 return _misc_
.TimeSpan_Millisecond(*args
)
4246 def TimeSpan_Seconds(*args
, **kwargs
):
4247 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4248 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4250 def TimeSpan_Second(*args
):
4251 """TimeSpan_Second() -> TimeSpan"""
4252 return _misc_
.TimeSpan_Second(*args
)
4254 def TimeSpan_Minutes(*args
, **kwargs
):
4255 """TimeSpan_Minutes(long min) -> TimeSpan"""
4256 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4258 def TimeSpan_Minute(*args
):
4259 """TimeSpan_Minute() -> TimeSpan"""
4260 return _misc_
.TimeSpan_Minute(*args
)
4262 def TimeSpan_Hours(*args
, **kwargs
):
4263 """TimeSpan_Hours(long hours) -> TimeSpan"""
4264 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4266 def TimeSpan_Hour(*args
):
4267 """TimeSpan_Hour() -> TimeSpan"""
4268 return _misc_
.TimeSpan_Hour(*args
)
4270 def TimeSpan_Days(*args
, **kwargs
):
4271 """TimeSpan_Days(long days) -> TimeSpan"""
4272 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4274 def TimeSpan_Day(*args
):
4275 """TimeSpan_Day() -> TimeSpan"""
4276 return _misc_
.TimeSpan_Day(*args
)
4278 def TimeSpan_Weeks(*args
, **kwargs
):
4279 """TimeSpan_Weeks(long days) -> TimeSpan"""
4280 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4282 def TimeSpan_Week(*args
):
4283 """TimeSpan_Week() -> TimeSpan"""
4284 return _misc_
.TimeSpan_Week(*args
)
4286 class DateSpan(object):
4287 """Proxy of C++ DateSpan class"""
4288 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4289 __repr__
= _swig_repr
4290 def __init__(self
, *args
, **kwargs
):
4291 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4292 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4293 __swig_destroy__
= _misc_
.delete_DateSpan
4294 __del__
= lambda self
: None;
4295 def Days(*args
, **kwargs
):
4296 """Days(int days) -> DateSpan"""
4297 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4299 Days
= staticmethod(Days
)
4300 def Day(*args
, **kwargs
):
4301 """Day() -> DateSpan"""
4302 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4304 Day
= staticmethod(Day
)
4305 def Weeks(*args
, **kwargs
):
4306 """Weeks(int weeks) -> DateSpan"""
4307 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4309 Weeks
= staticmethod(Weeks
)
4310 def Week(*args
, **kwargs
):
4311 """Week() -> DateSpan"""
4312 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4314 Week
= staticmethod(Week
)
4315 def Months(*args
, **kwargs
):
4316 """Months(int mon) -> DateSpan"""
4317 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4319 Months
= staticmethod(Months
)
4320 def Month(*args
, **kwargs
):
4321 """Month() -> DateSpan"""
4322 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4324 Month
= staticmethod(Month
)
4325 def Years(*args
, **kwargs
):
4326 """Years(int years) -> DateSpan"""
4327 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4329 Years
= staticmethod(Years
)
4330 def Year(*args
, **kwargs
):
4331 """Year() -> DateSpan"""
4332 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4334 Year
= staticmethod(Year
)
4335 def SetYears(*args
, **kwargs
):
4336 """SetYears(self, int n) -> DateSpan"""
4337 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4339 def SetMonths(*args
, **kwargs
):
4340 """SetMonths(self, int n) -> DateSpan"""
4341 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4343 def SetWeeks(*args
, **kwargs
):
4344 """SetWeeks(self, int n) -> DateSpan"""
4345 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4347 def SetDays(*args
, **kwargs
):
4348 """SetDays(self, int n) -> DateSpan"""
4349 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4351 def GetYears(*args
, **kwargs
):
4352 """GetYears(self) -> int"""
4353 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4355 def GetMonths(*args
, **kwargs
):
4356 """GetMonths(self) -> int"""
4357 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4359 def GetWeeks(*args
, **kwargs
):
4360 """GetWeeks(self) -> int"""
4361 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4363 def GetDays(*args
, **kwargs
):
4364 """GetDays(self) -> int"""
4365 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4367 def GetTotalDays(*args
, **kwargs
):
4368 """GetTotalDays(self) -> int"""
4369 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4371 def Add(*args
, **kwargs
):
4372 """Add(self, DateSpan other) -> DateSpan"""
4373 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4375 def Subtract(*args
, **kwargs
):
4376 """Subtract(self, DateSpan other) -> DateSpan"""
4377 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4379 def Neg(*args
, **kwargs
):
4380 """Neg(self) -> DateSpan"""
4381 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4383 def Multiply(*args
, **kwargs
):
4384 """Multiply(self, int factor) -> DateSpan"""
4385 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4387 def __iadd__(*args
, **kwargs
):
4388 """__iadd__(self, DateSpan other) -> DateSpan"""
4389 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4391 def __isub__(*args
, **kwargs
):
4392 """__isub__(self, DateSpan other) -> DateSpan"""
4393 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4395 def __neg__(*args
, **kwargs
):
4396 """__neg__(self) -> DateSpan"""
4397 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4399 def __imul__(*args
, **kwargs
):
4400 """__imul__(self, int factor) -> DateSpan"""
4401 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4403 def __add__(*args
, **kwargs
):
4404 """__add__(self, DateSpan other) -> DateSpan"""
4405 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4407 def __sub__(*args
, **kwargs
):
4408 """__sub__(self, DateSpan other) -> DateSpan"""
4409 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4411 def __mul__(*args
, **kwargs
):
4412 """__mul__(self, int n) -> DateSpan"""
4413 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4415 def __rmul__(*args
, **kwargs
):
4416 """__rmul__(self, int n) -> DateSpan"""
4417 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4419 def __eq__(*args
, **kwargs
):
4420 """__eq__(self, DateSpan other) -> bool"""
4421 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4423 def __ne__(*args
, **kwargs
):
4424 """__ne__(self, DateSpan other) -> bool"""
4425 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4427 Days
= property(GetDays
,SetDays
,doc
="See `GetDays` and `SetDays`")
4428 Months
= property(GetMonths
,SetMonths
,doc
="See `GetMonths` and `SetMonths`")
4429 TotalDays
= property(GetTotalDays
,doc
="See `GetTotalDays`")
4430 Weeks
= property(GetWeeks
,SetWeeks
,doc
="See `GetWeeks` and `SetWeeks`")
4431 Years
= property(GetYears
,SetYears
,doc
="See `GetYears` and `SetYears`")
4432 _misc_
.DateSpan_swigregister(DateSpan
)
4434 def DateSpan_Days(*args
, **kwargs
):
4435 """DateSpan_Days(int days) -> DateSpan"""
4436 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4438 def DateSpan_Day(*args
):
4439 """DateSpan_Day() -> DateSpan"""
4440 return _misc_
.DateSpan_Day(*args
)
4442 def DateSpan_Weeks(*args
, **kwargs
):
4443 """DateSpan_Weeks(int weeks) -> DateSpan"""
4444 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4446 def DateSpan_Week(*args
):
4447 """DateSpan_Week() -> DateSpan"""
4448 return _misc_
.DateSpan_Week(*args
)
4450 def DateSpan_Months(*args
, **kwargs
):
4451 """DateSpan_Months(int mon) -> DateSpan"""
4452 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4454 def DateSpan_Month(*args
):
4455 """DateSpan_Month() -> DateSpan"""
4456 return _misc_
.DateSpan_Month(*args
)
4458 def DateSpan_Years(*args
, **kwargs
):
4459 """DateSpan_Years(int years) -> DateSpan"""
4460 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4462 def DateSpan_Year(*args
):
4463 """DateSpan_Year() -> DateSpan"""
4464 return _misc_
.DateSpan_Year(*args
)
4467 def GetLocalTime(*args
):
4468 """GetLocalTime() -> long"""
4469 return _misc_
.GetLocalTime(*args
)
4471 def GetUTCTime(*args
):
4472 """GetUTCTime() -> long"""
4473 return _misc_
.GetUTCTime(*args
)
4475 def GetCurrentTime(*args
):
4476 """GetCurrentTime() -> long"""
4477 return _misc_
.GetCurrentTime(*args
)
4479 def GetLocalTimeMillis(*args
):
4480 """GetLocalTimeMillis() -> wxLongLong"""
4481 return _misc_
.GetLocalTimeMillis(*args
)
4482 #---------------------------------------------------------------------------
4484 DF_INVALID
= _misc_
.DF_INVALID
4485 DF_TEXT
= _misc_
.DF_TEXT
4486 DF_BITMAP
= _misc_
.DF_BITMAP
4487 DF_METAFILE
= _misc_
.DF_METAFILE
4488 DF_SYLK
= _misc_
.DF_SYLK
4489 DF_DIF
= _misc_
.DF_DIF
4490 DF_TIFF
= _misc_
.DF_TIFF
4491 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4492 DF_DIB
= _misc_
.DF_DIB
4493 DF_PALETTE
= _misc_
.DF_PALETTE
4494 DF_PENDATA
= _misc_
.DF_PENDATA
4495 DF_RIFF
= _misc_
.DF_RIFF
4496 DF_WAVE
= _misc_
.DF_WAVE
4497 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4498 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4499 DF_FILENAME
= _misc_
.DF_FILENAME
4500 DF_LOCALE
= _misc_
.DF_LOCALE
4501 DF_PRIVATE
= _misc_
.DF_PRIVATE
4502 DF_HTML
= _misc_
.DF_HTML
4503 DF_MAX
= _misc_
.DF_MAX
4504 class DataFormat(object):
4506 A wx.DataFormat is an encapsulation of a platform-specific format
4507 handle which is used by the system for the clipboard and drag and drop
4508 operations. The applications are usually only interested in, for
4509 example, pasting data from the clipboard only if the data is in a
4510 format the program understands. A data format is is used to uniquely
4511 identify this format.
4513 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4514 __repr__
= _swig_repr
4515 def __init__(self
, *args
, **kwargs
):
4517 __init__(self, int type) -> DataFormat
4519 Constructs a data format object for one of the standard data formats
4520 or an empty data object (use SetType or SetId later in this case)
4522 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4523 __swig_destroy__
= _misc_
.delete_DataFormat
4524 __del__
= lambda self
: None;
4527 __eq__(self, int format) -> bool
4528 __eq__(self, DataFormat format) -> bool
4530 return _misc_
.DataFormat___eq__(*args
)
4534 __ne__(self, int format) -> bool
4535 __ne__(self, DataFormat format) -> bool
4537 return _misc_
.DataFormat___ne__(*args
)
4539 def SetType(*args
, **kwargs
):
4541 SetType(self, int format)
4543 Sets the format to the given value, which should be one of wx.DF_XXX
4546 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4548 def GetType(*args
, **kwargs
):
4550 GetType(self) -> int
4552 Returns the platform-specific number identifying the format.
4554 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4556 def GetId(*args
, **kwargs
):
4558 GetId(self) -> String
4560 Returns the name of a custom format (this function will fail for a
4563 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4565 def SetId(*args
, **kwargs
):
4567 SetId(self, String format)
4569 Sets the format to be the custom format identified by the given name.
4571 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4573 Id
= property(GetId
,SetId
,doc
="See `GetId` and `SetId`")
4574 Type
= property(GetType
,SetType
,doc
="See `GetType` and `SetType`")
4575 _misc_
.DataFormat_swigregister(DataFormat
)
4576 DefaultDateTime
= cvar
.DefaultDateTime
4578 def CustomDataFormat(*args
, **kwargs
):
4580 CustomDataFormat(String format) -> DataFormat
4582 Constructs a data format object for a custom format identified by its
4585 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4588 class DataObject(object):
4590 A wx.DataObject represents data that can be copied to or from the
4591 clipboard, or dragged and dropped. The important thing about
4592 wx.DataObject is that this is a 'smart' piece of data unlike usual
4593 'dumb' data containers such as memory buffers or files. Being 'smart'
4594 here means that the data object itself should know what data formats
4595 it supports and how to render itself in each of supported formats.
4597 **NOTE**: This class is an abstract base class and can not be used
4598 directly from Python. If you need a custom type of data object then
4599 you should instead derive from `wx.PyDataObjectSimple` or use
4600 `wx.CustomDataObject`.
4603 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4604 def __init__(self
): raise AttributeError, "No constructor defined"
4605 __repr__
= _swig_repr
4606 Get
= _misc_
.DataObject_Get
4607 Set
= _misc_
.DataObject_Set
4608 Both
= _misc_
.DataObject_Both
4609 __swig_destroy__
= _misc_
.delete_DataObject
4610 __del__
= lambda self
: None;
4611 def GetPreferredFormat(*args
, **kwargs
):
4613 GetPreferredFormat(self, int dir=Get) -> DataFormat
4615 Returns the preferred format for either rendering the data (if dir is
4616 Get, its default value) or for setting it. Usually this will be the
4617 native format of the wx.DataObject.
4619 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4621 def GetFormatCount(*args
, **kwargs
):
4623 GetFormatCount(self, int dir=Get) -> size_t
4625 Returns the number of available formats for rendering or setting the
4628 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4630 def IsSupported(*args
, **kwargs
):
4632 IsSupported(self, DataFormat format, int dir=Get) -> bool
4634 Returns True if this format is supported.
4636 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4638 def GetDataSize(*args
, **kwargs
):
4640 GetDataSize(self, DataFormat format) -> size_t
4642 Get the (total) size of data for the given format
4644 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4646 def GetAllFormats(*args
, **kwargs
):
4648 GetAllFormats(self, int dir=Get) -> [formats]
4650 Returns a list of all the wx.DataFormats that this dataobject supports
4651 in the given direction.
4653 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4655 def GetDataHere(*args
, **kwargs
):
4657 GetDataHere(self, DataFormat format) -> String
4659 Get the data bytes in the specified format, returns None on failure.
4661 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4663 def SetData(*args
, **kwargs
):
4665 SetData(self, DataFormat format, String data) -> bool
4667 Set the data in the specified format from the bytes in the the data string.
4670 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4672 AllFormats
= property(GetAllFormats
,doc
="See `GetAllFormats`")
4673 DataHere
= property(GetDataHere
,doc
="See `GetDataHere`")
4674 DataSize
= property(GetDataSize
,doc
="See `GetDataSize`")
4675 FormatCount
= property(GetFormatCount
,doc
="See `GetFormatCount`")
4676 PreferredFormat
= property(GetPreferredFormat
,doc
="See `GetPreferredFormat`")
4677 _misc_
.DataObject_swigregister(DataObject
)
4678 FormatInvalid
= cvar
.FormatInvalid
4680 class DataObjectSimple(DataObject
):
4682 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4683 format. This is the simplest possible `wx.DataObject` implementation.
4685 This is still an "abstract base class" meaning that you can't use it
4686 directly. You either need to use one of the predefined base classes,
4687 or derive your own class from `wx.PyDataObjectSimple`.
4690 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4691 __repr__
= _swig_repr
4692 def __init__(self
, *args
, **kwargs
):
4694 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4696 Constructor accepts the supported format (none by default) which may
4697 also be set later with `SetFormat`.
4699 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4700 def GetFormat(*args
, **kwargs
):
4702 GetFormat(self) -> DataFormat
4704 Returns the (one and only one) format supported by this object. It is
4705 assumed that the format is supported in both directions.
4707 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4709 def SetFormat(*args
, **kwargs
):
4711 SetFormat(self, DataFormat format)
4713 Sets the supported format.
4715 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4717 def GetDataSize(*args
, **kwargs
):
4719 GetDataSize(self) -> size_t
4721 Get the size of our data.
4723 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4725 def GetDataHere(*args
, **kwargs
):
4727 GetDataHere(self) -> String
4729 Returns the data bytes from the data object as a string, returns None
4730 on failure. Must be implemented in the derived class if the object
4731 supports rendering its data.
4733 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4735 def SetData(*args
, **kwargs
):
4737 SetData(self, String data) -> bool
4739 Copy the data value to the data object. Must be implemented in the
4740 derived class if the object supports setting its data.
4743 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4745 Format
= property(GetFormat
,SetFormat
,doc
="See `GetFormat` and `SetFormat`")
4746 _misc_
.DataObjectSimple_swigregister(DataObjectSimple
)
4748 class PyDataObjectSimple(DataObjectSimple
):
4750 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4751 Python-aware and knows how to reflect calls to its C++ virtual methods
4752 to methods in the Python derived class. You should derive from this
4753 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4754 need to create your own simple single-format type of `wx.DataObject`.
4757 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4758 __repr__
= _swig_repr
4759 def __init__(self
, *args
, **kwargs
):
4761 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4763 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4764 Python-aware and knows how to reflect calls to its C++ virtual methods
4765 to methods in the Python derived class. You should derive from this
4766 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4767 need to create your own simple single-format type of `wx.DataObject`.
4770 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4771 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4773 def _setCallbackInfo(*args
, **kwargs
):
4774 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4775 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4777 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4779 class DataObjectComposite(DataObject
):
4781 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4782 which may be sued to support multiple formats. It contains several
4783 'wx.DataObjectSimple` objects and supports any format supported by at
4784 least one of them. Only one of these data objects is *preferred* (the
4785 first one if not explicitly changed by using the second parameter of
4786 `Add`) and its format determines the preferred format of the composite
4787 data object as well.
4789 See `wx.DataObject` documentation for the reasons why you might prefer
4790 to use wx.DataObject directly instead of wx.DataObjectComposite for
4794 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4795 __repr__
= _swig_repr
4796 def __init__(self
, *args
, **kwargs
):
4798 __init__(self) -> DataObjectComposite
4800 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4801 which may be sued to support multiple formats. It contains several
4802 'wx.DataObjectSimple` objects and supports any format supported by at
4803 least one of them. Only one of these data objects is *preferred* (the
4804 first one if not explicitly changed by using the second parameter of
4805 `Add`) and its format determines the preferred format of the composite
4806 data object as well.
4808 See `wx.DataObject` documentation for the reasons why you might prefer
4809 to use wx.DataObject directly instead of wx.DataObjectComposite for
4813 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4814 def Add(*args
, **kwargs
):
4816 Add(self, DataObjectSimple dataObject, bool preferred=False)
4818 Adds the dataObject to the list of supported objects and it becomes
4819 the preferred object if preferred is True.
4821 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4823 def GetReceivedFormat(*args
, **kwargs
):
4825 GetReceivedFormat(self) -> DataFormat
4827 Report the format passed to the `SetData` method. This should be the
4828 format of the data object within the composite that recieved data from
4829 the clipboard or the DnD operation. You can use this method to find
4830 out what kind of data object was recieved.
4832 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
4834 ReceivedFormat
= property(GetReceivedFormat
,doc
="See `GetReceivedFormat`")
4835 _misc_
.DataObjectComposite_swigregister(DataObjectComposite
)
4837 class TextDataObject(DataObjectSimple
):
4839 wx.TextDataObject is a specialization of `wx.DataObject` for text
4840 data. It can be used without change to paste data into the `wx.Clipboard`
4841 or a `wx.DropSource`.
4843 Alternativly, you may wish to derive a new class from the
4844 `wx.PyTextDataObject` class for providing text on-demand in order to
4845 minimize memory consumption when offering data in several formats,
4846 such as plain text and RTF, because by default the text is stored in a
4847 string in this class, but it might as well be generated on demand when
4848 requested. For this, `GetTextLength` and `GetText` will have to be
4851 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4852 __repr__
= _swig_repr
4853 def __init__(self
, *args
, **kwargs
):
4855 __init__(self, String text=EmptyString) -> TextDataObject
4857 Constructor, may be used to initialise the text (otherwise `SetText`
4858 should be used later).
4860 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4861 def GetTextLength(*args
, **kwargs
):
4863 GetTextLength(self) -> size_t
4865 Returns the data size. By default, returns the size of the text data
4866 set in the constructor or using `SetText`. This can be overridden (via
4867 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4868 recommended to return the text length plus 1 for a trailing zero, but
4869 this is not strictly required.
4871 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4873 def GetText(*args
, **kwargs
):
4875 GetText(self) -> String
4877 Returns the text associated with the data object.
4879 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4881 def SetText(*args
, **kwargs
):
4883 SetText(self, String text)
4885 Sets the text associated with the data object. This method is called
4886 when the data object receives the data and, by default, copies the
4887 text into the member variable. If you want to process the text on the
4888 fly you may wish to override this function (via
4889 `wx.PyTextDataObject`.)
4891 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4893 _misc_
.TextDataObject_swigregister(TextDataObject
)
4895 class PyTextDataObject(TextDataObject
):
4897 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4898 Python-aware and knows how to reflect calls to its C++ virtual methods
4899 to methods in the Python derived class. You should derive from this
4900 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4901 want to be able to provide text on demand instead of preloading it
4902 into the data object.
4904 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4905 __repr__
= _swig_repr
4906 def __init__(self
, *args
, **kwargs
):
4908 __init__(self, String text=EmptyString) -> PyTextDataObject
4910 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4911 Python-aware and knows how to reflect calls to its C++ virtual methods
4912 to methods in the Python derived class. You should derive from this
4913 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4914 want to be able to provide text on demand instead of preloading it
4915 into the data object.
4917 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
4918 self
._setCallbackInfo
(self
, PyTextDataObject
)
4920 def _setCallbackInfo(*args
, **kwargs
):
4921 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4922 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4924 _misc_
.PyTextDataObject_swigregister(PyTextDataObject
)
4926 class BitmapDataObject(DataObjectSimple
):
4928 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
4929 data. It can be used without change to paste data into the `wx.Clipboard`
4930 or a `wx.DropSource`.
4933 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4934 __repr__
= _swig_repr
4935 def __init__(self
, *args
, **kwargs
):
4937 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
4939 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
4942 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
4943 def GetBitmap(*args
, **kwargs
):
4945 GetBitmap(self) -> Bitmap
4947 Returns the bitmap associated with the data object. You may wish to
4948 override this method (by deriving from `wx.PyBitmapDataObject`) when
4949 offering data on-demand, but this is not required by wxWidgets'
4950 internals. Use this method to get data in bitmap form from the
4953 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4955 def SetBitmap(*args
, **kwargs
):
4957 SetBitmap(self, Bitmap bitmap)
4959 Sets the bitmap associated with the data object. This method is called
4960 when the data object receives data. Usually there will be no reason to
4961 override this function.
4963 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4965 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
4966 _misc_
.BitmapDataObject_swigregister(BitmapDataObject
)
4968 class PyBitmapDataObject(BitmapDataObject
):
4970 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4971 Python-aware and knows how to reflect calls to its C++ virtual methods
4972 to methods in the Python derived class. To be able to provide bitmap
4973 data on demand derive from this class and overload `GetBitmap`.
4975 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4976 __repr__
= _swig_repr
4977 def __init__(self
, *args
, **kwargs
):
4979 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
4981 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4982 Python-aware and knows how to reflect calls to its C++ virtual methods
4983 to methods in the Python derived class. To be able to provide bitmap
4984 data on demand derive from this class and overload `GetBitmap`.
4986 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
4987 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4989 def _setCallbackInfo(*args
, **kwargs
):
4990 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4991 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4993 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObject
)
4995 class FileDataObject(DataObjectSimple
):
4997 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
4998 file names. The program works with it just as if it were a list of
4999 absolute file names, but internally it uses the same format as
5000 Explorer and other compatible programs under Windows or GNOME/KDE
5001 filemanager under Unix which makes it possible to receive files from
5002 them using this class.
5004 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5005 __repr__
= _swig_repr
5006 def __init__(self
, *args
, **kwargs
):
5007 """__init__(self) -> FileDataObject"""
5008 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
5009 def GetFilenames(*args
, **kwargs
):
5011 GetFilenames(self) -> [names]
5013 Returns a list of file names.
5015 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
5017 def AddFile(*args
, **kwargs
):
5019 AddFile(self, String filename)
5021 Adds a file to the list of files represented by this data object.
5023 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5025 _misc_
.FileDataObject_swigregister(FileDataObject
)
5027 class CustomDataObject(DataObjectSimple
):
5029 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5030 some application-specific data in arbitrary format. Python strings
5031 are used for getting and setting data, but any picklable object can
5032 easily be transfered via strings. A copy of the data is stored in the
5035 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5036 __repr__
= _swig_repr
5037 def __init__(self
, *args
):
5039 __init__(self, DataFormat format) -> CustomDataObject
5040 __init__(self, String formatName) -> CustomDataObject
5041 __init__(self) -> CustomDataObject
5043 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5044 some application-specific data in arbitrary format. Python strings
5045 are used for getting and setting data, but any picklable object can
5046 easily be transfered via strings. A copy of the data is stored in the
5049 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
5050 def SetData(*args
, **kwargs
):
5052 SetData(self, String data) -> bool
5054 Copy the data value to the data object.
5056 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5059 def GetSize(*args
, **kwargs
):
5061 GetSize(self) -> size_t
5063 Get the size of the data.
5065 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5067 def GetData(*args
, **kwargs
):
5069 GetData(self) -> String
5071 Returns the data bytes from the data object as a string.
5073 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5075 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5076 Size
= property(GetSize
,doc
="See `GetSize`")
5077 _misc_
.CustomDataObject_swigregister(CustomDataObject
)
5079 class URLDataObject(DataObject
):
5081 This data object holds a URL in a format that is compatible with some
5082 browsers such that it is able to be dragged to or from them.
5084 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5085 __repr__
= _swig_repr
5086 def __init__(self
, *args
, **kwargs
):
5088 __init__(self, String url=EmptyString) -> URLDataObject
5090 This data object holds a URL in a format that is compatible with some
5091 browsers such that it is able to be dragged to or from them.
5093 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
5094 def GetURL(*args
, **kwargs
):
5096 GetURL(self) -> String
5098 Returns a string containing the current URL.
5100 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5102 def SetURL(*args
, **kwargs
):
5104 SetURL(self, String url)
5108 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5110 _misc_
.URLDataObject_swigregister(URLDataObject
)
5112 class MetafileDataObject(DataObjectSimple
):
5113 """Proxy of C++ MetafileDataObject class"""
5114 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5115 __repr__
= _swig_repr
5116 def __init__(self
, *args
, **kwargs
):
5117 """__init__(self) -> MetafileDataObject"""
5118 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
5119 def SetMetafile(*args
, **kwargs
):
5120 """SetMetafile(self, wxMetafile metafile)"""
5121 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
5123 def GetMetafile(*args
, **kwargs
):
5124 """GetMetafile(self) -> wxMetafile"""
5125 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
5127 _misc_
.MetafileDataObject_swigregister(MetafileDataObject
)
5129 #---------------------------------------------------------------------------
5131 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5132 Drag_AllowMove
= _misc_
.Drag_AllowMove
5133 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5134 DragError
= _misc_
.DragError
5135 DragNone
= _misc_
.DragNone
5136 DragCopy
= _misc_
.DragCopy
5137 DragMove
= _misc_
.DragMove
5138 DragLink
= _misc_
.DragLink
5139 DragCancel
= _misc_
.DragCancel
5141 def IsDragResultOk(*args
, **kwargs
):
5142 """IsDragResultOk(int res) -> bool"""
5143 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5144 class DropSource(object):
5145 """Proxy of C++ DropSource class"""
5146 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5147 __repr__
= _swig_repr
5148 def __init__(self
, *args
, **kwargs
):
5150 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
5151 Cursor none=wxNullCursor) -> DropSource
5153 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
5154 self
._setCallbackInfo
(self
, DropSource
, 0)
5156 def _setCallbackInfo(*args
, **kwargs
):
5157 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5158 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5160 __swig_destroy__
= _misc_
.delete_DropSource
5161 __del__
= lambda self
: None;
5162 def SetData(*args
, **kwargs
):
5163 """SetData(self, DataObject data)"""
5164 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5166 def GetDataObject(*args
, **kwargs
):
5167 """GetDataObject(self) -> DataObject"""
5168 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5170 def SetCursor(*args
, **kwargs
):
5171 """SetCursor(self, int res, Cursor cursor)"""
5172 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5174 def DoDragDrop(*args
, **kwargs
):
5175 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5176 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5178 def GiveFeedback(*args
, **kwargs
):
5179 """GiveFeedback(self, int effect) -> bool"""
5180 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
5182 def base_GiveFeedback(*args
, **kw
):
5183 return DropSource
.GiveFeedback(*args
, **kw
)
5184 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
5185 "Please use DropSource.GiveFeedback instead.")
5187 DataObject
= property(GetDataObject
,SetData
,doc
="See `GetDataObject` and `SetData`")
5188 _misc_
.DropSource_swigregister(DropSource
)
5190 def DROP_ICON(filename
):
5192 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5193 ``filename``. This function is useful with the `wx.DropSource` class
5194 which, depending on platform accepts either a icon or a cursor.
5196 img
= wx
.Image(filename
)
5197 if wx
.Platform
== '__WXGTK__':
5198 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
5200 return wx
.CursorFromImage(img
)
5202 class DropTarget(object):
5203 """Proxy of C++ DropTarget class"""
5204 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5205 __repr__
= _swig_repr
5206 def __init__(self
, *args
, **kwargs
):
5207 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5208 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5209 self
._setCallbackInfo
(self
, DropTarget
)
5211 def _setCallbackInfo(*args
, **kwargs
):
5212 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5213 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5215 __swig_destroy__
= _misc_
.delete_DropTarget
5216 __del__
= lambda self
: None;
5217 def GetDataObject(*args
, **kwargs
):
5218 """GetDataObject(self) -> DataObject"""
5219 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5221 def SetDataObject(*args
, **kwargs
):
5222 """SetDataObject(self, DataObject dataObject)"""
5223 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5225 def OnEnter(*args
, **kwargs
):
5226 """OnEnter(self, int x, int y, int def) -> int"""
5227 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5229 def OnDragOver(*args
, **kwargs
):
5230 """OnDragOver(self, int x, int y, int def) -> int"""
5231 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5233 def OnLeave(*args
, **kwargs
):
5235 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5237 def OnDrop(*args
, **kwargs
):
5238 """OnDrop(self, int x, int y) -> bool"""
5239 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5241 def base_OnEnter(*args
, **kw
):
5242 return DropTarget
.OnEnter(*args
, **kw
)
5243 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5244 "Please use DropTarget.OnEnter instead.")
5246 def base_OnDragOver(*args
, **kw
):
5247 return DropTarget
.OnDragOver(*args
, **kw
)
5248 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5249 "Please use DropTarget.OnDragOver instead.")
5251 def base_OnLeave(*args
, **kw
):
5252 return DropTarget
.OnLeave(*args
, **kw
)
5253 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5254 "Please use DropTarget.OnLeave instead.")
5256 def base_OnDrop(*args
, **kw
):
5257 return DropTarget
.OnDrop(*args
, **kw
)
5258 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5259 "Please use DropTarget.OnDrop instead.")
5261 def GetData(*args
, **kwargs
):
5262 """GetData(self) -> bool"""
5263 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5265 def SetDefaultAction(*args
, **kwargs
):
5266 """SetDefaultAction(self, int action)"""
5267 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5269 def GetDefaultAction(*args
, **kwargs
):
5270 """GetDefaultAction(self) -> int"""
5271 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5273 Data
= property(GetData
,doc
="See `GetData`")
5274 DataObject
= property(GetDataObject
,SetDataObject
,doc
="See `GetDataObject` and `SetDataObject`")
5275 DefaultAction
= property(GetDefaultAction
,SetDefaultAction
,doc
="See `GetDefaultAction` and `SetDefaultAction`")
5276 _misc_
.DropTarget_swigregister(DropTarget
)
5278 PyDropTarget
= DropTarget
5279 class TextDropTarget(DropTarget
):
5280 """Proxy of C++ TextDropTarget class"""
5281 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5282 __repr__
= _swig_repr
5283 def __init__(self
, *args
, **kwargs
):
5284 """__init__(self) -> TextDropTarget"""
5285 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5286 self
._setCallbackInfo
(self
, TextDropTarget
)
5288 def _setCallbackInfo(*args
, **kwargs
):
5289 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5290 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5292 def OnDropText(*args
, **kwargs
):
5293 """OnDropText(self, int x, int y, String text) -> bool"""
5294 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5296 def OnEnter(*args
, **kwargs
):
5297 """OnEnter(self, int x, int y, int def) -> int"""
5298 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5300 def OnDragOver(*args
, **kwargs
):
5301 """OnDragOver(self, int x, int y, int def) -> int"""
5302 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5304 def OnLeave(*args
, **kwargs
):
5306 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5308 def OnDrop(*args
, **kwargs
):
5309 """OnDrop(self, int x, int y) -> bool"""
5310 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5312 def OnData(*args
, **kwargs
):
5313 """OnData(self, int x, int y, int def) -> int"""
5314 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5316 def base_OnDropText(*args
, **kw
):
5317 return TextDropTarget
.OnDropText(*args
, **kw
)
5318 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5319 "Please use TextDropTarget.OnDropText instead.")
5321 def base_OnEnter(*args
, **kw
):
5322 return TextDropTarget
.OnEnter(*args
, **kw
)
5323 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5324 "Please use TextDropTarget.OnEnter instead.")
5326 def base_OnDragOver(*args
, **kw
):
5327 return TextDropTarget
.OnDragOver(*args
, **kw
)
5328 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5329 "Please use TextDropTarget.OnDragOver instead.")
5331 def base_OnLeave(*args
, **kw
):
5332 return TextDropTarget
.OnLeave(*args
, **kw
)
5333 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5334 "Please use TextDropTarget.OnLeave instead.")
5336 def base_OnDrop(*args
, **kw
):
5337 return TextDropTarget
.OnDrop(*args
, **kw
)
5338 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5339 "Please use TextDropTarget.OnDrop instead.")
5341 def base_OnData(*args
, **kw
):
5342 return TextDropTarget
.OnData(*args
, **kw
)
5343 base_OnData
= wx
._deprecated
(base_OnData
,
5344 "Please use TextDropTarget.OnData instead.")
5346 _misc_
.TextDropTarget_swigregister(TextDropTarget
)
5348 class FileDropTarget(DropTarget
):
5349 """Proxy of C++ FileDropTarget class"""
5350 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5351 __repr__
= _swig_repr
5352 def __init__(self
, *args
, **kwargs
):
5353 """__init__(self) -> FileDropTarget"""
5354 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5355 self
._setCallbackInfo
(self
, FileDropTarget
)
5357 def _setCallbackInfo(*args
, **kwargs
):
5358 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5359 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5361 def OnDropFiles(*args
, **kwargs
):
5362 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5363 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5365 def OnEnter(*args
, **kwargs
):
5366 """OnEnter(self, int x, int y, int def) -> int"""
5367 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5369 def OnDragOver(*args
, **kwargs
):
5370 """OnDragOver(self, int x, int y, int def) -> int"""
5371 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5373 def OnLeave(*args
, **kwargs
):
5375 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5377 def OnDrop(*args
, **kwargs
):
5378 """OnDrop(self, int x, int y) -> bool"""
5379 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5381 def OnData(*args
, **kwargs
):
5382 """OnData(self, int x, int y, int def) -> int"""
5383 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5385 def base_OnDropFiles(*args
, **kw
):
5386 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5387 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5388 "Please use FileDropTarget.OnDropFiles instead.")
5390 def base_OnEnter(*args
, **kw
):
5391 return FileDropTarget
.OnEnter(*args
, **kw
)
5392 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5393 "Please use FileDropTarget.OnEnter instead.")
5395 def base_OnDragOver(*args
, **kw
):
5396 return FileDropTarget
.OnDragOver(*args
, **kw
)
5397 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5398 "Please use FileDropTarget.OnDragOver instead.")
5400 def base_OnLeave(*args
, **kw
):
5401 return FileDropTarget
.OnLeave(*args
, **kw
)
5402 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5403 "Please use FileDropTarget.OnLeave instead.")
5405 def base_OnDrop(*args
, **kw
):
5406 return FileDropTarget
.OnDrop(*args
, **kw
)
5407 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5408 "Please use FileDropTarget.OnDrop instead.")
5410 def base_OnData(*args
, **kw
):
5411 return FileDropTarget
.OnData(*args
, **kw
)
5412 base_OnData
= wx
._deprecated
(base_OnData
,
5413 "Please use FileDropTarget.OnData instead.")
5415 _misc_
.FileDropTarget_swigregister(FileDropTarget
)
5417 #---------------------------------------------------------------------------
5419 class Clipboard(_core
.Object
):
5421 wx.Clipboard represents the system clipboard and provides methods to
5422 copy data to it or paste data from it. Normally, you should only use
5423 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5426 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5427 clipboard. If this operation returns True, you now own the
5428 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5429 to retrieve data from the clipboard. Call `Close` to close the
5430 clipboard and relinquish ownership. You should keep the clipboard open
5433 :see: `wx.DataObject`
5436 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5437 __repr__
= _swig_repr
5438 def __init__(self
, *args
, **kwargs
):
5439 """__init__(self) -> Clipboard"""
5440 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5441 __swig_destroy__
= _misc_
.delete_Clipboard
5442 __del__
= lambda self
: None;
5443 def Open(*args
, **kwargs
):
5447 Call this function to open the clipboard before calling SetData and
5448 GetData. Call Close when you have finished with the clipboard. You
5449 should keep the clipboard open for only a very short time. Returns
5452 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5454 def Close(*args
, **kwargs
):
5458 Closes the clipboard.
5460 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5462 def IsOpened(*args
, **kwargs
):
5464 IsOpened(self) -> bool
5466 Query whether the clipboard is opened
5468 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5470 def AddData(*args
, **kwargs
):
5472 AddData(self, DataObject data) -> bool
5474 Call this function to add the data object to the clipboard. You may
5475 call this function repeatedly after having cleared the clipboard.
5476 After this function has been called, the clipboard owns the data, so
5477 do not delete the data explicitly.
5479 :see: `wx.DataObject`
5481 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5483 def SetData(*args
, **kwargs
):
5485 SetData(self, DataObject data) -> bool
5487 Set the clipboard data, this is the same as `Clear` followed by
5490 :see: `wx.DataObject`
5492 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5494 def IsSupported(*args
, **kwargs
):
5496 IsSupported(self, DataFormat format) -> bool
5498 Returns True if the given format is available in the data object(s) on
5501 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5503 def GetData(*args
, **kwargs
):
5505 GetData(self, DataObject data) -> bool
5507 Call this function to fill data with data on the clipboard, if
5508 available in the required format. Returns true on success.
5510 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5512 def Clear(*args
, **kwargs
):
5516 Clears data from the clipboard object and also the system's clipboard
5519 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5521 def Flush(*args
, **kwargs
):
5525 Flushes the clipboard: this means that the data which is currently on
5526 clipboard will stay available even after the application exits,
5527 possibly eating memory, otherwise the clipboard will be emptied on
5528 exit. Returns False if the operation is unsuccesful for any reason.
5530 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5532 def UsePrimarySelection(*args
, **kwargs
):
5534 UsePrimarySelection(self, bool primary=True)
5536 On platforms supporting it (the X11 based platforms), selects the
5537 so called PRIMARY SELECTION as the clipboard as opposed to the
5538 normal clipboard, if primary is True.
5540 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5542 def Get(*args
, **kwargs
):
5546 Returns global instance (wxTheClipboard) of the object.
5548 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5550 Get
= staticmethod(Get
)
5551 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5552 _misc_
.Clipboard_swigregister(Clipboard
)
5554 def Clipboard_Get(*args
):
5556 Clipboard_Get() -> Clipboard
5558 Returns global instance (wxTheClipboard) of the object.
5560 return _misc_
.Clipboard_Get(*args
)
5562 class _wxPyDelayedInitWrapper(object):
5563 def __init__(self
, initfunc
, *args
, **kwargs
):
5564 self
._initfunc
= initfunc
5566 self
._kwargs
= kwargs
5567 self
._instance
= None
5568 def _checkInstance(self
):
5569 if self
._instance
is None:
5571 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5572 def __getattr__(self
, name
):
5573 self
._checkInstance
()
5574 return getattr(self
._instance
, name
)
5576 self
._checkInstance
()
5577 return repr(self
._instance
)
5578 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5580 class ClipboardLocker(object):
5582 A helpful class for opening the clipboard and automatically
5583 closing it when the locker is destroyed.
5585 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5586 __repr__
= _swig_repr
5587 def __init__(self
, *args
, **kwargs
):
5589 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5591 A helpful class for opening the clipboard and automatically
5592 closing it when the locker is destroyed.
5594 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5595 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5596 __del__
= lambda self
: None;
5597 def __nonzero__(*args
, **kwargs
):
5599 __nonzero__(self) -> bool
5601 A ClipboardLocker instance evaluates to True if the clipboard was
5602 successfully opened.
5604 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5606 _misc_
.ClipboardLocker_swigregister(ClipboardLocker
)
5608 #---------------------------------------------------------------------------
5610 class VideoMode(object):
5611 """A simple struct containing video mode parameters for a display"""
5612 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5613 __repr__
= _swig_repr
5614 def __init__(self
, *args
, **kwargs
):
5616 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5618 A simple struct containing video mode parameters for a display
5620 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5621 __swig_destroy__
= _misc_
.delete_VideoMode
5622 __del__
= lambda self
: None;
5623 def Matches(*args
, **kwargs
):
5625 Matches(self, VideoMode other) -> bool
5627 Returns True if this mode matches the other one in the sense that all
5628 non-zero fields of the other mode have the same value in this
5629 one (except for refresh which is allowed to have a greater value)
5631 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5633 def GetWidth(*args
, **kwargs
):
5635 GetWidth(self) -> int
5637 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5639 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5641 def GetHeight(*args
, **kwargs
):
5643 GetHeight(self) -> int
5645 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5647 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5649 def GetDepth(*args
, **kwargs
):
5651 GetDepth(self) -> int
5653 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5654 means unspecified/known
5656 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5658 def IsOk(*args
, **kwargs
):
5662 returns true if the object has been initialized
5664 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5666 def __nonzero__(self
): return self
.IsOk()
5667 def __eq__(*args
, **kwargs
):
5668 """__eq__(self, VideoMode other) -> bool"""
5669 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5671 def __ne__(*args
, **kwargs
):
5672 """__ne__(self, VideoMode other) -> bool"""
5673 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5675 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5676 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5677 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5678 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5679 _misc_
.VideoMode_swigregister(VideoMode
)
5681 class Display(object):
5682 """Represents a display/monitor attached to the system"""
5683 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5684 __repr__
= _swig_repr
5685 def __init__(self
, *args
, **kwargs
):
5687 __init__(self, size_t index=0) -> Display
5689 Set up a Display instance with the specified display. The displays
5690 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5691 and the only one which is always supported
5693 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5694 __swig_destroy__
= _misc_
.delete_Display
5695 __del__
= lambda self
: None;
5696 def GetCount(*args
, **kwargs
):
5698 GetCount() -> size_t
5700 Return the number of available displays.
5702 return _misc_
.Display_GetCount(*args
, **kwargs
)
5704 GetCount
= staticmethod(GetCount
)
5705 def GetFromPoint(*args
, **kwargs
):
5707 GetFromPoint(Point pt) -> int
5709 Find the display where the given point lies, return wx.NOT_FOUND if it
5710 doesn't belong to any display
5712 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5714 GetFromPoint
= staticmethod(GetFromPoint
)
5715 def GetFromWindow(*args
, **kwargs
):
5717 GetFromWindow(Window window) -> int
5719 Find the display where the given window lies, return wx.NOT_FOUND if
5720 it is not shown at all.
5722 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5724 GetFromWindow
= staticmethod(GetFromWindow
)
5725 def IsOk(*args
, **kwargs
):
5729 Return true if the object was initialized successfully
5731 return _misc_
.Display_IsOk(*args
, **kwargs
)
5733 def __nonzero__(self
): return self
.IsOk()
5734 def GetGeometry(*args
, **kwargs
):
5736 GetGeometry(self) -> Rect
5738 Returns the bounding rectangle of the display whose index was passed
5741 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5743 def GetClientArea(*args
, **kwargs
):
5745 GetClientArea(self) -> Rect
5747 Returns the bounding rectangle the client area of the display,
5748 i.e., without taskbars and such.
5750 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5752 def GetName(*args
, **kwargs
):
5754 GetName(self) -> String
5756 Returns the display's name. A name is not available on all platforms.
5758 return _misc_
.Display_GetName(*args
, **kwargs
)
5760 def IsPrimary(*args
, **kwargs
):
5762 IsPrimary(self) -> bool
5764 Returns True if the display is the primary display. The primary
5765 display is the one whose index is 0.
5767 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5769 def GetModes(*args
, **kwargs
):
5771 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5773 Enumerate all video modes supported by this display matching the given
5774 one (in the sense of VideoMode.Match()).
5776 As any mode matches the default value of the argument and there is
5777 always at least one video mode supported by display, the returned
5778 array is only empty for the default value of the argument if this
5779 function is not supported at all on this platform.
5781 return _misc_
.Display_GetModes(*args
, **kwargs
)
5783 def GetCurrentMode(*args
, **kwargs
):
5785 GetCurrentMode(self) -> VideoMode
5787 Get the current video mode.
5789 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5791 def ChangeMode(*args
, **kwargs
):
5793 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5795 Changes the video mode of this display to the mode specified in the
5798 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5799 behaviour is that wx.Display will reset the video mode to the default
5800 mode used by the display. On Windows, the behavior is normal.
5801 However, there are differences on other platforms. On Unix variations
5802 using X11 extensions it should behave as defined, but some
5803 irregularities may occur.
5805 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5806 nothing. This happens because Carbon no longer has access to
5807 DMUseScreenPrefs, an undocumented function that changed the video mode
5808 to the system default by using the system's 'scrn' resource.
5810 Returns True if succeeded, False otherwise
5812 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5814 def ResetMode(*args
, **kwargs
):
5818 Restore the default video mode (just a more readable synonym)
5820 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5822 ClientArea
= property(GetClientArea
,doc
="See `GetClientArea`")
5823 CurrentMode
= property(GetCurrentMode
,doc
="See `GetCurrentMode`")
5824 Geometry
= property(GetGeometry
,doc
="See `GetGeometry`")
5825 Modes
= property(GetModes
,doc
="See `GetModes`")
5826 Name
= property(GetName
,doc
="See `GetName`")
5827 _misc_
.Display_swigregister(Display
)
5828 DefaultVideoMode
= cvar
.DefaultVideoMode
5830 def Display_GetCount(*args
):
5832 Display_GetCount() -> size_t
5834 Return the number of available displays.
5836 return _misc_
.Display_GetCount(*args
)
5838 def Display_GetFromPoint(*args
, **kwargs
):
5840 Display_GetFromPoint(Point pt) -> int
5842 Find the display where the given point lies, return wx.NOT_FOUND if it
5843 doesn't belong to any display
5845 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5847 def Display_GetFromWindow(*args
, **kwargs
):
5849 Display_GetFromWindow(Window window) -> int
5851 Find the display where the given window lies, return wx.NOT_FOUND if
5852 it is not shown at all.
5854 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5856 #---------------------------------------------------------------------------
5858 class StandardPaths(object):
5860 wx.StandardPaths returns standard locations in the file system and
5861 should be used by programs to find their data files in a portable way.
5863 In the description of the methods below, the example return values are
5864 given for the Unix, Windows and Mac OS X systems, however please note
5865 that these are just examples and the actual values may differ. For
5866 example, under Windows the system administrator may change the
5867 standard directories locations, i.e. the Windows directory may be
5868 named W:\Win2003 instead of the default C:\Windows.
5870 The strings appname and username should be replaced with the value
5871 returned by `wx.App.GetAppName` and the name of the currently logged
5872 in user, respectively. The string prefix is only used under Unix and
5873 is /usr/local by default but may be changed using `SetInstallPrefix`.
5875 The directories returned by the methods of this class may or may not
5876 exist. If they don't exist, it's up to the caller to create them,
5877 wx.StandardPaths doesn't do it.
5879 Finally note that these functions only work with standardly packaged
5880 applications. I.e. under Unix you should follow the standard
5881 installation conventions and under Mac you should create your
5882 application bundle according to the Apple guidelines. Again, this
5883 class doesn't help you to do it.
5885 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5886 def __init__(self
): raise AttributeError, "No constructor defined"
5887 __repr__
= _swig_repr
5888 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
5889 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
5890 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
5891 def Get(*args
, **kwargs
):
5893 Get() -> StandardPaths
5895 Return the global standard paths singleton
5897 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
5899 Get
= staticmethod(Get
)
5900 def GetConfigDir(*args
, **kwargs
):
5902 GetConfigDir(self) -> String
5904 Return the directory with system config files: /etc under Unix,
5905 'c:\Documents and Settings\All Users\Application Data' under Windows,
5906 /Library/Preferences for Mac
5908 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
5910 def GetUserConfigDir(*args
, **kwargs
):
5912 GetUserConfigDir(self) -> String
5914 Return the directory for the user config files: $HOME under Unix,
5915 'c:\Documents and Settings\username' under Windows, and
5916 ~/Library/Preferences under Mac
5918 Only use this if you have a single file to put there, otherwise
5919 `GetUserDataDir` is more appropriate
5921 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
5923 def GetDataDir(*args
, **kwargs
):
5925 GetDataDir(self) -> String
5927 Return the location of the application's global, (i.e. not
5928 user-specific,) data files: prefix/share/appname under Unix,
5929 'c:\Program Files\appname' under Windows,
5930 appname.app/Contents/SharedSupport app bundle directory under Mac.
5932 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
5934 def GetLocalDataDir(*args
, **kwargs
):
5936 GetLocalDataDir(self) -> String
5938 Return the location for application data files which are
5939 host-specific. Same as `GetDataDir` except under Unix where it is
5942 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
5944 def GetUserDataDir(*args
, **kwargs
):
5946 GetUserDataDir(self) -> String
5948 Return the directory for the user-dependent application data files:
5949 $HOME/.appname under Unix, c:\Documents and
5950 Settings\username\Application Data\appname under Windows and
5951 ~/Library/Application Support/appname under Mac
5953 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
5955 def GetUserLocalDataDir(*args
, **kwargs
):
5957 GetUserLocalDataDir(self) -> String
5959 Return the directory for user data files which shouldn't be shared
5960 with the other machines
5962 Same as `GetUserDataDir` for all platforms except Windows where it is
5963 the 'Local Settings\Application Data\appname' directory.
5965 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
5967 def GetPluginsDir(*args
, **kwargs
):
5969 GetPluginsDir(self) -> String
5971 Return the directory where the loadable modules (plugins) live:
5972 prefix/lib/appname under Unix, program directory under Windows and
5973 Contents/Plugins app bundle subdirectory under Mac
5975 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
5977 def GetResourcesDir(*args
, **kwargs
):
5979 GetResourcesDir(self) -> String
5981 Get resources directory. Resources are auxiliary files used by the
5982 application and include things like image and sound files.
5984 Same as `GetDataDir` for all platforms except Mac where it returns
5985 Contents/Resources subdirectory of the app bundle.
5987 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
5989 def GetLocalizedResourcesDir(*args
, **kwargs
):
5991 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
5993 Get localized resources directory containing the resource files of the
5994 specified category for the given language.
5996 In general this is just GetResourcesDir()/lang under Windows and Unix
5997 and GetResourcesDir()/lang.lproj under Mac but is something quite
5998 different under Unix for the message catalog category (namely the
5999 standard prefix/share/locale/lang/LC_MESSAGES.)
6001 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
6003 def GetDocumentsDir(*args
, **kwargs
):
6005 GetDocumentsDir(self) -> String
6007 Return the Documents directory for the current user.
6009 C:\Documents and Settings\username\Documents under Windows,
6010 $HOME under Unix and ~/Documents under Mac
6012 return _misc_
.StandardPaths_GetDocumentsDir(*args
, **kwargs
)
6014 def SetInstallPrefix(*args
, **kwargs
):
6016 SetInstallPrefix(self, String prefix)
6018 Set the program installation directory which is /usr/local by default.
6019 This value will be used by other methods such as `GetDataDir` and
6020 `GetPluginsDir` as the prefix for what they return. (This function
6021 only has meaning on Unix systems.)
6023 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
6025 def GetInstallPrefix(*args
, **kwargs
):
6027 GetInstallPrefix(self) -> String
6029 Get the program installation prefix. The default is the prefix where
6030 Python is installed. (This function only has meaning on Unix systems.)
6032 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
6034 _misc_
.StandardPaths_swigregister(StandardPaths
)
6036 def StandardPaths_Get(*args
):
6038 StandardPaths_Get() -> StandardPaths
6040 Return the global standard paths singleton
6042 return _misc_
.StandardPaths_Get(*args
)
6044 #---------------------------------------------------------------------------
6046 POWER_SOCKET
= _misc_
.POWER_SOCKET
6047 POWER_BATTERY
= _misc_
.POWER_BATTERY
6048 POWER_UNKNOWN
= _misc_
.POWER_UNKNOWN
6049 BATTERY_NORMAL_STATE
= _misc_
.BATTERY_NORMAL_STATE
6050 BATTERY_LOW_STATE
= _misc_
.BATTERY_LOW_STATE
6051 BATTERY_CRITICAL_STATE
= _misc_
.BATTERY_CRITICAL_STATE
6052 BATTERY_SHUTDOWN_STATE
= _misc_
.BATTERY_SHUTDOWN_STATE
6053 BATTERY_UNKNOWN_STATE
= _misc_
.BATTERY_UNKNOWN_STATE
6054 class PowerEvent(_core
.Event
):
6056 wx.PowerEvent is generated when the system online status changes.
6057 Currently this is only implemented for Windows.
6059 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6060 __repr__
= _swig_repr
6061 def __init__(self
, *args
, **kwargs
):
6063 __init__(self, EventType evtType) -> PowerEvent
6065 wx.PowerEvent is generated when the system online status changes.
6066 Currently this is only implemented for Windows.
6068 _misc_
.PowerEvent_swiginit(self
,_misc_
.new_PowerEvent(*args
, **kwargs
))
6069 def Veto(*args
, **kwargs
):
6071 return _misc_
.PowerEvent_Veto(*args
, **kwargs
)
6073 def IsVetoed(*args
, **kwargs
):
6074 """IsVetoed(self) -> bool"""
6075 return _misc_
.PowerEvent_IsVetoed(*args
, **kwargs
)
6077 _misc_
.PowerEvent_swigregister(PowerEvent
)
6079 wxEVT_POWER_SUSPENDING
= _misc_
.wxEVT_POWER_SUSPENDING
6080 wxEVT_POWER_SUSPENDED
= _misc_
.wxEVT_POWER_SUSPENDED
6081 wxEVT_POWER_SUSPEND_CANCEL
= _misc_
.wxEVT_POWER_SUSPEND_CANCEL
6082 wxEVT_POWER_RESUME
= _misc_
.wxEVT_POWER_RESUME
6083 EVT_POWER_SUSPENDING
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDING
, 1 )
6084 EVT_POWER_SUSPENDED
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDED
, 1 )
6085 EVT_POWER_SUSPEND_CANCEL
= wx
.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL
, 1 )
6086 EVT_POWER_RESUME
= wx
.PyEventBinder( wxEVT_POWER_RESUME
, 1 )
6089 def GetPowerType(*args
):
6091 GetPowerType() -> int
6093 return the current system power state: online or offline
6095 return _misc_
.GetPowerType(*args
)
6097 def GetBatteryState(*args
):
6099 GetBatteryState() -> int
6101 return approximate battery state
6103 return _misc_
.GetBatteryState(*args
)