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 SystemSettings_swigregister
= _misc_
.SystemSettings_swigregister
186 SystemSettings_swigregister(SystemSettings
)
188 def SystemSettings_GetColour(*args
, **kwargs
):
189 """SystemSettings_GetColour(int index) -> Colour"""
190 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
192 def SystemSettings_GetFont(*args
, **kwargs
):
193 """SystemSettings_GetFont(int index) -> Font"""
194 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
196 def SystemSettings_GetMetric(*args
, **kwargs
):
197 """SystemSettings_GetMetric(int index, Window win=None) -> int"""
198 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
200 def SystemSettings_HasFeature(*args
, **kwargs
):
201 """SystemSettings_HasFeature(int index) -> bool"""
202 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
204 def SystemSettings_GetScreenType(*args
):
205 """SystemSettings_GetScreenType() -> int"""
206 return _misc_
.SystemSettings_GetScreenType(*args
)
208 def SystemSettings_SetScreenType(*args
, **kwargs
):
209 """SystemSettings_SetScreenType(int screen)"""
210 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
212 class SystemOptions(_core
.Object
):
213 """Proxy of C++ SystemOptions class"""
214 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
215 __repr__
= _swig_repr
216 def __init__(self
, *args
, **kwargs
):
217 """__init__(self) -> SystemOptions"""
218 _misc_
.SystemOptions_swiginit(self
,_misc_
.new_SystemOptions(*args
, **kwargs
))
219 def SetOption(*args
, **kwargs
):
220 """SetOption(String name, String value)"""
221 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
223 SetOption
= staticmethod(SetOption
)
224 def SetOptionInt(*args
, **kwargs
):
225 """SetOptionInt(String name, int value)"""
226 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
228 SetOptionInt
= staticmethod(SetOptionInt
)
229 def GetOption(*args
, **kwargs
):
230 """GetOption(String name) -> String"""
231 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
233 GetOption
= staticmethod(GetOption
)
234 def GetOptionInt(*args
, **kwargs
):
235 """GetOptionInt(String name) -> int"""
236 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
238 GetOptionInt
= staticmethod(GetOptionInt
)
239 def HasOption(*args
, **kwargs
):
240 """HasOption(String name) -> bool"""
241 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
243 HasOption
= staticmethod(HasOption
)
244 def IsFalse(*args
, **kwargs
):
245 """IsFalse(String name) -> bool"""
246 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
248 IsFalse
= staticmethod(IsFalse
)
249 SystemOptions_swigregister
= _misc_
.SystemOptions_swigregister
250 SystemOptions_swigregister(SystemOptions
)
252 WINDOW_DEFAULT_VARIANT
= cvar
.WINDOW_DEFAULT_VARIANT
254 def SystemOptions_SetOption(*args
, **kwargs
):
255 """SystemOptions_SetOption(String name, String value)"""
256 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
258 def SystemOptions_SetOptionInt(*args
, **kwargs
):
259 """SystemOptions_SetOptionInt(String name, int value)"""
260 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
262 def SystemOptions_GetOption(*args
, **kwargs
):
263 """SystemOptions_GetOption(String name) -> String"""
264 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
266 def SystemOptions_GetOptionInt(*args
, **kwargs
):
267 """SystemOptions_GetOptionInt(String name) -> int"""
268 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
270 def SystemOptions_HasOption(*args
, **kwargs
):
271 """SystemOptions_HasOption(String name) -> bool"""
272 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
274 def SystemOptions_IsFalse(*args
, **kwargs
):
275 """SystemOptions_IsFalse(String name) -> bool"""
276 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
278 #---------------------------------------------------------------------------
282 """NewId() -> long"""
283 return _misc_
.NewId(*args
)
285 def RegisterId(*args
, **kwargs
):
286 """RegisterId(long id)"""
287 return _misc_
.RegisterId(*args
, **kwargs
)
289 def GetCurrentId(*args
):
290 """GetCurrentId() -> long"""
291 return _misc_
.GetCurrentId(*args
)
293 def IsStockID(*args
, **kwargs
):
294 """IsStockID(int id) -> bool"""
295 return _misc_
.IsStockID(*args
, **kwargs
)
297 def IsStockLabel(*args
, **kwargs
):
298 """IsStockLabel(int id, String label) -> bool"""
299 return _misc_
.IsStockLabel(*args
, **kwargs
)
301 def GetStockLabel(*args
, **kwargs
):
302 """GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String"""
303 return _misc_
.GetStockLabel(*args
, **kwargs
)
307 return _misc_
.Bell(*args
)
309 def EndBusyCursor(*args
):
310 """EndBusyCursor()"""
311 return _misc_
.EndBusyCursor(*args
)
313 def GetElapsedTime(*args
, **kwargs
):
314 """GetElapsedTime(bool resetTimer=True) -> long"""
315 return _misc_
.GetElapsedTime(*args
, **kwargs
)
318 """IsBusy() -> bool"""
319 return _misc_
.IsBusy(*args
)
322 """Now() -> String"""
323 return _misc_
.Now(*args
)
325 def Shell(*args
, **kwargs
):
326 """Shell(String command=EmptyString) -> bool"""
327 return _misc_
.Shell(*args
, **kwargs
)
329 def StartTimer(*args
):
331 return _misc_
.StartTimer(*args
)
333 def GetOsVersion(*args
):
334 """GetOsVersion() -> (platform, major, minor)"""
335 return _misc_
.GetOsVersion(*args
)
337 def GetOsDescription(*args
):
338 """GetOsDescription() -> String"""
339 return _misc_
.GetOsDescription(*args
)
341 def GetFreeMemory(*args
):
342 """GetFreeMemory() -> wxMemorySize"""
343 return _misc_
.GetFreeMemory(*args
)
344 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
345 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
347 def Shutdown(*args
, **kwargs
):
348 """Shutdown(int wFlags) -> bool"""
349 return _misc_
.Shutdown(*args
, **kwargs
)
351 def Sleep(*args
, **kwargs
):
352 """Sleep(int secs)"""
353 return _misc_
.Sleep(*args
, **kwargs
)
355 def MilliSleep(*args
, **kwargs
):
356 """MilliSleep(unsigned long milliseconds)"""
357 return _misc_
.MilliSleep(*args
, **kwargs
)
359 def MicroSleep(*args
, **kwargs
):
360 """MicroSleep(unsigned long microseconds)"""
361 return _misc_
.MicroSleep(*args
, **kwargs
)
364 def EnableTopLevelWindows(*args
, **kwargs
):
365 """EnableTopLevelWindows(bool enable)"""
366 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
368 def StripMenuCodes(*args
, **kwargs
):
369 """StripMenuCodes(String in) -> String"""
370 return _misc_
.StripMenuCodes(*args
, **kwargs
)
372 def GetEmailAddress(*args
):
373 """GetEmailAddress() -> String"""
374 return _misc_
.GetEmailAddress(*args
)
376 def GetHostName(*args
):
377 """GetHostName() -> String"""
378 return _misc_
.GetHostName(*args
)
380 def GetFullHostName(*args
):
381 """GetFullHostName() -> String"""
382 return _misc_
.GetFullHostName(*args
)
384 def GetUserId(*args
):
385 """GetUserId() -> String"""
386 return _misc_
.GetUserId(*args
)
388 def GetUserName(*args
):
389 """GetUserName() -> String"""
390 return _misc_
.GetUserName(*args
)
392 def GetHomeDir(*args
):
393 """GetHomeDir() -> String"""
394 return _misc_
.GetHomeDir(*args
)
396 def GetUserHome(*args
, **kwargs
):
397 """GetUserHome(String user=EmptyString) -> String"""
398 return _misc_
.GetUserHome(*args
, **kwargs
)
400 def GetProcessId(*args
):
401 """GetProcessId() -> unsigned long"""
402 return _misc_
.GetProcessId(*args
)
406 return _misc_
.Trap(*args
)
408 def FileSelector(*args
, **kwargs
):
410 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
411 String default_filename=EmptyString,
412 String default_extension=EmptyString,
413 String wildcard=FileSelectorDefaultWildcardStr,
414 int flags=0, Window parent=None, int x=-1,
417 return _misc_
.FileSelector(*args
, **kwargs
)
419 def LoadFileSelector(*args
, **kwargs
):
421 LoadFileSelector(String what, String extension, String default_name=EmptyString,
422 Window parent=None) -> String
424 return _misc_
.LoadFileSelector(*args
, **kwargs
)
426 def SaveFileSelector(*args
, **kwargs
):
428 SaveFileSelector(String what, String extension, String default_name=EmptyString,
429 Window parent=None) -> String
431 return _misc_
.SaveFileSelector(*args
, **kwargs
)
433 def DirSelector(*args
, **kwargs
):
435 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
436 long style=DD_DEFAULT_STYLE,
437 Point pos=DefaultPosition, Window parent=None) -> String
439 return _misc_
.DirSelector(*args
, **kwargs
)
441 def GetTextFromUser(*args
, **kwargs
):
443 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
445 int x=-1, int y=-1, bool centre=True) -> String
447 return _misc_
.GetTextFromUser(*args
, **kwargs
)
449 def GetPasswordFromUser(*args
, **kwargs
):
451 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
452 Window parent=None) -> String
454 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
456 def GetSingleChoice(*args
, **kwargs
):
458 GetSingleChoice(String message, String caption, int choices, Window parent=None,
459 int x=-1, int y=-1, bool centre=True,
460 int width=150, int height=200) -> String
462 return _misc_
.GetSingleChoice(*args
, **kwargs
)
464 def GetSingleChoiceIndex(*args
, **kwargs
):
466 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
467 int x=-1, int y=-1, bool centre=True,
468 int width=150, int height=200) -> int
470 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
472 def MessageBox(*args
, **kwargs
):
474 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
475 Window parent=None, int x=-1,
478 return _misc_
.MessageBox(*args
, **kwargs
)
480 def ColourDisplay(*args
):
481 """ColourDisplay() -> bool"""
482 return _misc_
.ColourDisplay(*args
)
484 def DisplayDepth(*args
):
485 """DisplayDepth() -> int"""
486 return _misc_
.DisplayDepth(*args
)
488 def GetDisplayDepth(*args
):
489 """GetDisplayDepth() -> int"""
490 return _misc_
.GetDisplayDepth(*args
)
492 def DisplaySize(*args
):
493 """DisplaySize() -> (width, height)"""
494 return _misc_
.DisplaySize(*args
)
496 def GetDisplaySize(*args
):
497 """GetDisplaySize() -> Size"""
498 return _misc_
.GetDisplaySize(*args
)
500 def DisplaySizeMM(*args
):
501 """DisplaySizeMM() -> (width, height)"""
502 return _misc_
.DisplaySizeMM(*args
)
504 def GetDisplaySizeMM(*args
):
505 """GetDisplaySizeMM() -> Size"""
506 return _misc_
.GetDisplaySizeMM(*args
)
508 def ClientDisplayRect(*args
):
509 """ClientDisplayRect() -> (x, y, width, height)"""
510 return _misc_
.ClientDisplayRect(*args
)
512 def GetClientDisplayRect(*args
):
513 """GetClientDisplayRect() -> Rect"""
514 return _misc_
.GetClientDisplayRect(*args
)
516 def SetCursor(*args
, **kwargs
):
517 """SetCursor(Cursor cursor)"""
518 return _misc_
.SetCursor(*args
, **kwargs
)
520 def GetXDisplay(*args
):
522 GetXDisplay() -> void
524 Returns a swigified pointer to the X11 display. Returns None on
527 return _misc_
.GetXDisplay(*args
)
529 def BeginBusyCursor(*args
, **kwargs
):
530 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
531 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
533 def GetMousePosition(*args
):
535 GetMousePosition() -> Point
537 Get the current mouse position on the screen.
539 return _misc_
.GetMousePosition(*args
)
541 def FindWindowAtPointer(*args
):
543 FindWindowAtPointer() -> Window
545 Returns the window currently under the mouse pointer, if it belongs to
546 this application. Otherwise it returns None.
548 return _misc_
.FindWindowAtPointer(*args
)
550 def GetActiveWindow(*args
):
552 GetActiveWindow() -> Window
554 Get the currently active window of this application, or None
556 return _misc_
.GetActiveWindow(*args
)
558 def GenericFindWindowAtPoint(*args
, **kwargs
):
559 """GenericFindWindowAtPoint(Point pt) -> Window"""
560 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
562 def FindWindowAtPoint(*args
, **kwargs
):
563 """FindWindowAtPoint(Point pt) -> Window"""
564 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
566 def GetTopLevelParent(*args
, **kwargs
):
567 """GetTopLevelParent(Window win) -> Window"""
568 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
570 def LaunchDefaultBrowser(*args
, **kwargs
):
572 LaunchDefaultBrowser(String url) -> bool
574 Launches the user's default browser and tells it to open the location
575 at ``url``. Returns ``True`` if the application was successfully
578 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
580 def GetKeyState(*args
, **kwargs
):
582 GetKeyState(int key) -> bool
584 Get the state of a key (true if pressed or toggled on, false if not.)
585 This is generally most useful getting the state of the modifier or
586 toggle keys. On some platforms those may be the only keys that this
587 function is able to detect.
590 return _misc_
.GetKeyState(*args
, **kwargs
)
591 class MouseState(object):
593 `wx.MouseState` is used to hold information about mouse button and
594 modifier key states and is what is returned from `wx.GetMouseState`.
596 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
597 __repr__
= _swig_repr
598 def __init__(self
, *args
, **kwargs
):
600 __init__(self) -> MouseState
602 `wx.MouseState` is used to hold information about mouse button and
603 modifier key states and is what is returned from `wx.GetMouseState`.
605 _misc_
.MouseState_swiginit(self
,_misc_
.new_MouseState(*args
, **kwargs
))
606 __swig_destroy__
= _misc_
.delete_MouseState
607 __del__
= lambda self
: None;
608 def GetX(*args
, **kwargs
):
609 """GetX(self) -> int"""
610 return _misc_
.MouseState_GetX(*args
, **kwargs
)
612 def GetY(*args
, **kwargs
):
613 """GetY(self) -> int"""
614 return _misc_
.MouseState_GetY(*args
, **kwargs
)
616 def LeftDown(*args
, **kwargs
):
617 """LeftDown(self) -> bool"""
618 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
620 def MiddleDown(*args
, **kwargs
):
621 """MiddleDown(self) -> bool"""
622 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
624 def RightDown(*args
, **kwargs
):
625 """RightDown(self) -> bool"""
626 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
628 def ControlDown(*args
, **kwargs
):
629 """ControlDown(self) -> bool"""
630 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
632 def ShiftDown(*args
, **kwargs
):
633 """ShiftDown(self) -> bool"""
634 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
636 def AltDown(*args
, **kwargs
):
637 """AltDown(self) -> bool"""
638 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
640 def MetaDown(*args
, **kwargs
):
641 """MetaDown(self) -> bool"""
642 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
644 def CmdDown(*args
, **kwargs
):
645 """CmdDown(self) -> bool"""
646 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
648 def SetX(*args
, **kwargs
):
649 """SetX(self, int x)"""
650 return _misc_
.MouseState_SetX(*args
, **kwargs
)
652 def SetY(*args
, **kwargs
):
653 """SetY(self, int y)"""
654 return _misc_
.MouseState_SetY(*args
, **kwargs
)
656 def SetLeftDown(*args
, **kwargs
):
657 """SetLeftDown(self, bool down)"""
658 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
660 def SetMiddleDown(*args
, **kwargs
):
661 """SetMiddleDown(self, bool down)"""
662 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
664 def SetRightDown(*args
, **kwargs
):
665 """SetRightDown(self, bool down)"""
666 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
668 def SetControlDown(*args
, **kwargs
):
669 """SetControlDown(self, bool down)"""
670 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
672 def SetShiftDown(*args
, **kwargs
):
673 """SetShiftDown(self, bool down)"""
674 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
676 def SetAltDown(*args
, **kwargs
):
677 """SetAltDown(self, bool down)"""
678 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
680 def SetMetaDown(*args
, **kwargs
):
681 """SetMetaDown(self, bool down)"""
682 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
684 x
= property(GetX
, SetX
)
685 y
= property(GetY
, SetY
)
686 leftDown
= property(LeftDown
, SetLeftDown
)
687 middleDown
= property(MiddleDown
, SetMiddleDown
)
688 rightDown
= property(RightDown
, SetRightDown
)
689 controlDown
= property(ControlDown
, SetControlDown
)
690 shiftDown
= property(ShiftDown
, SetShiftDown
)
691 altDown
= property(AltDown
, SetAltDown
)
692 metaDown
= property(MetaDown
, SetMetaDown
)
693 cmdDown
= property(CmdDown
)
695 MouseState_swigregister
= _misc_
.MouseState_swigregister
696 MouseState_swigregister(MouseState
)
697 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
698 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
699 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
702 def GetMouseState(*args
):
704 GetMouseState() -> MouseState
706 Returns the current state of the mouse. Returns an instance of a
707 `wx.MouseState` object that contains the current position of the mouse
708 pointer in screen coordinants, as well as boolean values indicating
709 the up/down status of the mouse buttons and the modifier keys.
711 return _misc_
.GetMouseState(*args
)
713 def WakeUpMainThread(*args
):
714 """WakeUpMainThread()"""
715 return _misc_
.WakeUpMainThread(*args
)
717 def MutexGuiEnter(*args
):
718 """MutexGuiEnter()"""
719 return _misc_
.MutexGuiEnter(*args
)
721 def MutexGuiLeave(*args
):
722 """MutexGuiLeave()"""
723 return _misc_
.MutexGuiLeave(*args
)
724 class MutexGuiLocker(object):
725 """Proxy of C++ MutexGuiLocker class"""
726 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
727 __repr__
= _swig_repr
728 def __init__(self
, *args
, **kwargs
):
729 """__init__(self) -> MutexGuiLocker"""
730 _misc_
.MutexGuiLocker_swiginit(self
,_misc_
.new_MutexGuiLocker(*args
, **kwargs
))
731 __swig_destroy__
= _misc_
.delete_MutexGuiLocker
732 __del__
= lambda self
: None;
733 MutexGuiLocker_swigregister
= _misc_
.MutexGuiLocker_swigregister
734 MutexGuiLocker_swigregister(MutexGuiLocker
)
737 def Thread_IsMain(*args
):
738 """Thread_IsMain() -> bool"""
739 return _misc_
.Thread_IsMain(*args
)
740 #---------------------------------------------------------------------------
742 class ToolTip(_core
.Object
):
743 """Proxy of C++ ToolTip class"""
744 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
745 __repr__
= _swig_repr
746 def __init__(self
, *args
, **kwargs
):
747 """__init__(self, String tip) -> ToolTip"""
748 _misc_
.ToolTip_swiginit(self
,_misc_
.new_ToolTip(*args
, **kwargs
))
749 __swig_destroy__
= _misc_
.delete_ToolTip
750 __del__
= lambda self
: None;
751 def SetTip(*args
, **kwargs
):
752 """SetTip(self, String tip)"""
753 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
755 def GetTip(*args
, **kwargs
):
756 """GetTip(self) -> String"""
757 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
759 def GetWindow(*args
, **kwargs
):
760 """GetWindow(self) -> Window"""
761 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
763 def Enable(*args
, **kwargs
):
764 """Enable(bool flag)"""
765 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
767 Enable
= staticmethod(Enable
)
768 def SetDelay(*args
, **kwargs
):
769 """SetDelay(long milliseconds)"""
770 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
772 SetDelay
= staticmethod(SetDelay
)
773 ToolTip_swigregister
= _misc_
.ToolTip_swigregister
774 ToolTip_swigregister(ToolTip
)
776 def ToolTip_Enable(*args
, **kwargs
):
777 """ToolTip_Enable(bool flag)"""
778 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
780 def ToolTip_SetDelay(*args
, **kwargs
):
781 """ToolTip_SetDelay(long milliseconds)"""
782 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
785 """Proxy of C++ Caret class"""
786 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
787 __repr__
= _swig_repr
788 def __init__(self
, *args
, **kwargs
):
789 """__init__(self, Window window, Size size) -> Caret"""
790 _misc_
.Caret_swiginit(self
,_misc_
.new_Caret(*args
, **kwargs
))
791 __swig_destroy__
= _misc_
.delete_Caret
792 __del__
= lambda self
: None;
793 def Destroy(*args
, **kwargs
):
797 Deletes the C++ object this Python object is a proxy for.
799 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
803 def IsOk(*args
, **kwargs
):
804 """IsOk(self) -> bool"""
805 return _misc_
.Caret_IsOk(*args
, **kwargs
)
807 def IsVisible(*args
, **kwargs
):
808 """IsVisible(self) -> bool"""
809 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
811 def GetPosition(*args
, **kwargs
):
812 """GetPosition(self) -> Point"""
813 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
815 def GetPositionTuple(*args
, **kwargs
):
816 """GetPositionTuple() -> (x,y)"""
817 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
819 def GetSize(*args
, **kwargs
):
820 """GetSize(self) -> Size"""
821 return _misc_
.Caret_GetSize(*args
, **kwargs
)
823 def GetSizeTuple(*args
, **kwargs
):
824 """GetSizeTuple() -> (width, height)"""
825 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
827 def GetWindow(*args
, **kwargs
):
828 """GetWindow(self) -> Window"""
829 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
831 def MoveXY(*args
, **kwargs
):
832 """MoveXY(self, int x, int y)"""
833 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
835 def Move(*args
, **kwargs
):
836 """Move(self, Point pt)"""
837 return _misc_
.Caret_Move(*args
, **kwargs
)
839 def SetSizeWH(*args
, **kwargs
):
840 """SetSizeWH(self, int width, int height)"""
841 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
843 def SetSize(*args
, **kwargs
):
844 """SetSize(self, Size size)"""
845 return _misc_
.Caret_SetSize(*args
, **kwargs
)
847 def Show(*args
, **kwargs
):
848 """Show(self, int show=True)"""
849 return _misc_
.Caret_Show(*args
, **kwargs
)
851 def Hide(*args
, **kwargs
):
853 return _misc_
.Caret_Hide(*args
, **kwargs
)
855 def __nonzero__(self
): return self
.IsOk()
856 def GetBlinkTime(*args
, **kwargs
):
857 """GetBlinkTime() -> int"""
858 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
860 GetBlinkTime
= staticmethod(GetBlinkTime
)
861 def SetBlinkTime(*args
, **kwargs
):
862 """SetBlinkTime(int milliseconds)"""
863 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
865 SetBlinkTime
= staticmethod(SetBlinkTime
)
866 Caret_swigregister
= _misc_
.Caret_swigregister
867 Caret_swigregister(Caret
)
869 def Caret_GetBlinkTime(*args
):
870 """Caret_GetBlinkTime() -> int"""
871 return _misc_
.Caret_GetBlinkTime(*args
)
873 def Caret_SetBlinkTime(*args
, **kwargs
):
874 """Caret_SetBlinkTime(int milliseconds)"""
875 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
877 class BusyCursor(object):
878 """Proxy of C++ BusyCursor class"""
879 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
880 __repr__
= _swig_repr
881 def __init__(self
, *args
, **kwargs
):
882 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
883 _misc_
.BusyCursor_swiginit(self
,_misc_
.new_BusyCursor(*args
, **kwargs
))
884 __swig_destroy__
= _misc_
.delete_BusyCursor
885 __del__
= lambda self
: None;
886 BusyCursor_swigregister
= _misc_
.BusyCursor_swigregister
887 BusyCursor_swigregister(BusyCursor
)
889 class WindowDisabler(object):
890 """Proxy of C++ WindowDisabler class"""
891 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
892 __repr__
= _swig_repr
893 def __init__(self
, *args
, **kwargs
):
894 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
895 _misc_
.WindowDisabler_swiginit(self
,_misc_
.new_WindowDisabler(*args
, **kwargs
))
896 __swig_destroy__
= _misc_
.delete_WindowDisabler
897 __del__
= lambda self
: None;
898 WindowDisabler_swigregister
= _misc_
.WindowDisabler_swigregister
899 WindowDisabler_swigregister(WindowDisabler
)
901 class BusyInfo(_core
.Object
):
902 """Proxy of C++ BusyInfo class"""
903 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
904 __repr__
= _swig_repr
905 def __init__(self
, *args
, **kwargs
):
906 """__init__(self, String message) -> BusyInfo"""
907 _misc_
.BusyInfo_swiginit(self
,_misc_
.new_BusyInfo(*args
, **kwargs
))
908 __swig_destroy__
= _misc_
.delete_BusyInfo
909 __del__
= lambda self
: None;
910 BusyInfo_swigregister
= _misc_
.BusyInfo_swigregister
911 BusyInfo_swigregister(BusyInfo
)
913 class StopWatch(object):
914 """Proxy of C++ StopWatch 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) -> StopWatch"""
919 _misc_
.StopWatch_swiginit(self
,_misc_
.new_StopWatch(*args
, **kwargs
))
920 def Start(*args
, **kwargs
):
921 """Start(self, long t0=0)"""
922 return _misc_
.StopWatch_Start(*args
, **kwargs
)
924 def Pause(*args
, **kwargs
):
926 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
928 def Resume(*args
, **kwargs
):
930 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
932 def Time(*args
, **kwargs
):
933 """Time(self) -> long"""
934 return _misc_
.StopWatch_Time(*args
, **kwargs
)
936 StopWatch_swigregister
= _misc_
.StopWatch_swigregister
937 StopWatch_swigregister(StopWatch
)
939 class FileHistory(_core
.Object
):
940 """Proxy of C++ FileHistory class"""
941 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
942 __repr__
= _swig_repr
943 def __init__(self
, *args
, **kwargs
):
944 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
945 _misc_
.FileHistory_swiginit(self
,_misc_
.new_FileHistory(*args
, **kwargs
))
946 __swig_destroy__
= _misc_
.delete_FileHistory
947 __del__
= lambda self
: None;
948 def AddFileToHistory(*args
, **kwargs
):
949 """AddFileToHistory(self, String file)"""
950 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
952 def RemoveFileFromHistory(*args
, **kwargs
):
953 """RemoveFileFromHistory(self, int i)"""
954 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
956 def GetMaxFiles(*args
, **kwargs
):
957 """GetMaxFiles(self) -> int"""
958 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
960 def UseMenu(*args
, **kwargs
):
961 """UseMenu(self, Menu menu)"""
962 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
964 def RemoveMenu(*args
, **kwargs
):
965 """RemoveMenu(self, Menu menu)"""
966 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
968 def Load(*args
, **kwargs
):
969 """Load(self, ConfigBase config)"""
970 return _misc_
.FileHistory_Load(*args
, **kwargs
)
972 def Save(*args
, **kwargs
):
973 """Save(self, ConfigBase config)"""
974 return _misc_
.FileHistory_Save(*args
, **kwargs
)
976 def AddFilesToMenu(*args
, **kwargs
):
977 """AddFilesToMenu(self)"""
978 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
980 def AddFilesToThisMenu(*args
, **kwargs
):
981 """AddFilesToThisMenu(self, Menu menu)"""
982 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
984 def GetHistoryFile(*args
, **kwargs
):
985 """GetHistoryFile(self, int i) -> String"""
986 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
988 def GetCount(*args
, **kwargs
):
989 """GetCount(self) -> int"""
990 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
992 GetNoHistoryFiles
= GetCount
993 FileHistory_swigregister
= _misc_
.FileHistory_swigregister
994 FileHistory_swigregister(FileHistory
)
996 class SingleInstanceChecker(object):
997 """Proxy of C++ SingleInstanceChecker class"""
998 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
999 __repr__
= _swig_repr
1000 def __init__(self
, *args
, **kwargs
):
1001 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1002 _misc_
.SingleInstanceChecker_swiginit(self
,_misc_
.new_SingleInstanceChecker(*args
, **kwargs
))
1003 __swig_destroy__
= _misc_
.delete_SingleInstanceChecker
1004 __del__
= lambda self
: None;
1005 def Create(*args
, **kwargs
):
1006 """Create(self, String name, String path=EmptyString) -> bool"""
1007 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1009 def IsAnotherRunning(*args
, **kwargs
):
1010 """IsAnotherRunning(self) -> bool"""
1011 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1013 SingleInstanceChecker_swigregister
= _misc_
.SingleInstanceChecker_swigregister
1014 SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1016 def PreSingleInstanceChecker(*args
, **kwargs
):
1017 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1018 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1022 def DrawWindowOnDC(*args
, **kwargs
):
1023 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1024 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1025 #---------------------------------------------------------------------------
1027 class TipProvider(object):
1028 """Proxy of C++ TipProvider class"""
1029 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1030 def __init__(self
): raise AttributeError, "No constructor defined"
1031 __repr__
= _swig_repr
1032 __swig_destroy__
= _misc_
.delete_TipProvider
1033 __del__
= lambda self
: None;
1034 def GetTip(*args
, **kwargs
):
1035 """GetTip(self) -> String"""
1036 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1038 def GetCurrentTip(*args
, **kwargs
):
1039 """GetCurrentTip(self) -> size_t"""
1040 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1042 def PreprocessTip(*args
, **kwargs
):
1043 """PreprocessTip(self, String tip) -> String"""
1044 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1046 TipProvider_swigregister
= _misc_
.TipProvider_swigregister
1047 TipProvider_swigregister(TipProvider
)
1049 class PyTipProvider(TipProvider
):
1050 """Proxy of C++ PyTipProvider class"""
1051 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1052 __repr__
= _swig_repr
1053 def __init__(self
, *args
, **kwargs
):
1054 """__init__(self, size_t currentTip) -> PyTipProvider"""
1055 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1056 self
._setCallbackInfo
(self
, PyTipProvider
)
1058 def _setCallbackInfo(*args
, **kwargs
):
1059 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1060 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1062 PyTipProvider_swigregister
= _misc_
.PyTipProvider_swigregister
1063 PyTipProvider_swigregister(PyTipProvider
)
1066 def ShowTip(*args
, **kwargs
):
1067 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1068 return _misc_
.ShowTip(*args
, **kwargs
)
1070 def CreateFileTipProvider(*args
, **kwargs
):
1071 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1072 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1073 #---------------------------------------------------------------------------
1075 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1076 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1077 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1078 class Timer(_core
.EvtHandler
):
1079 """Proxy of C++ Timer class"""
1080 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1081 __repr__
= _swig_repr
1082 def __init__(self
, *args
, **kwargs
):
1083 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1084 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1085 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1087 __swig_destroy__
= _misc_
.delete_Timer
1088 __del__
= lambda self
: None;
1089 def _setCallbackInfo(*args
, **kwargs
):
1090 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1091 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1093 def SetOwner(*args
, **kwargs
):
1094 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1095 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1097 def GetOwner(*args
, **kwargs
):
1098 """GetOwner(self) -> EvtHandler"""
1099 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1101 def Start(*args
, **kwargs
):
1102 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1103 return _misc_
.Timer_Start(*args
, **kwargs
)
1105 def Stop(*args
, **kwargs
):
1107 return _misc_
.Timer_Stop(*args
, **kwargs
)
1109 def Notify(*args
, **kwargs
):
1111 return _misc_
.Timer_Notify(*args
, **kwargs
)
1113 def IsRunning(*args
, **kwargs
):
1114 """IsRunning(self) -> bool"""
1115 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1117 def GetInterval(*args
, **kwargs
):
1118 """GetInterval(self) -> int"""
1119 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1121 def GetId(*args
, **kwargs
):
1122 """GetId(self) -> int"""
1123 return _misc_
.Timer_GetId(*args
, **kwargs
)
1125 def IsOneShot(*args
, **kwargs
):
1126 """IsOneShot(self) -> bool"""
1127 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1130 """NO-OP: Timers must be destroyed by normal reference counting"""
1133 Timer_swigregister
= _misc_
.Timer_swigregister
1134 Timer_swigregister(Timer
)
1136 # For backwards compatibility with 2.4
1137 class PyTimer(Timer
):
1138 def __init__(self
, notify
):
1139 Timer
.__init
__(self
)
1140 self
.notify
= notify
1147 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1150 class TimerEvent(_core
.Event
):
1151 """Proxy of C++ TimerEvent class"""
1152 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1153 __repr__
= _swig_repr
1154 def __init__(self
, *args
, **kwargs
):
1155 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1156 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1157 def GetInterval(*args
, **kwargs
):
1158 """GetInterval(self) -> int"""
1159 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1161 TimerEvent_swigregister
= _misc_
.TimerEvent_swigregister
1162 TimerEvent_swigregister(TimerEvent
)
1164 class TimerRunner(object):
1165 """Proxy of C++ TimerRunner class"""
1166 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1167 __repr__
= _swig_repr
1168 def __init__(self
, *args
):
1170 __init__(self, wxTimer timer) -> TimerRunner
1171 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1173 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1174 __swig_destroy__
= _misc_
.delete_TimerRunner
1175 __del__
= lambda self
: None;
1176 def Start(*args
, **kwargs
):
1177 """Start(self, int milli, bool oneShot=False)"""
1178 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1180 TimerRunner_swigregister
= _misc_
.TimerRunner_swigregister
1181 TimerRunner_swigregister(TimerRunner
)
1183 #---------------------------------------------------------------------------
1185 LOG_FatalError
= _misc_
.LOG_FatalError
1186 LOG_Error
= _misc_
.LOG_Error
1187 LOG_Warning
= _misc_
.LOG_Warning
1188 LOG_Message
= _misc_
.LOG_Message
1189 LOG_Status
= _misc_
.LOG_Status
1190 LOG_Info
= _misc_
.LOG_Info
1191 LOG_Debug
= _misc_
.LOG_Debug
1192 LOG_Trace
= _misc_
.LOG_Trace
1193 LOG_Progress
= _misc_
.LOG_Progress
1194 LOG_User
= _misc_
.LOG_User
1195 LOG_Max
= _misc_
.LOG_Max
1196 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1197 TRACE_Messages
= _misc_
.TRACE_Messages
1198 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1199 TRACE_RefCount
= _misc_
.TRACE_RefCount
1200 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1201 TraceMemAlloc
= _misc_
.TraceMemAlloc
1202 TraceMessages
= _misc_
.TraceMessages
1203 TraceResAlloc
= _misc_
.TraceResAlloc
1204 TraceRefCount
= _misc_
.TraceRefCount
1205 TraceOleCalls
= _misc_
.TraceOleCalls
1207 """Proxy of C++ Log 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) -> Log"""
1212 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1213 __swig_destroy__
= _misc_
.delete_Log
1214 __del__
= lambda self
: None;
1215 def IsEnabled(*args
, **kwargs
):
1216 """IsEnabled() -> bool"""
1217 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1219 IsEnabled
= staticmethod(IsEnabled
)
1220 def EnableLogging(*args
, **kwargs
):
1221 """EnableLogging(bool doIt=True) -> bool"""
1222 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1224 EnableLogging
= staticmethod(EnableLogging
)
1225 def OnLog(*args
, **kwargs
):
1226 """OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1227 return _misc_
.Log_OnLog(*args
, **kwargs
)
1229 OnLog
= staticmethod(OnLog
)
1230 def Flush(*args
, **kwargs
):
1232 return _misc_
.Log_Flush(*args
, **kwargs
)
1234 def FlushActive(*args
, **kwargs
):
1236 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1238 FlushActive
= staticmethod(FlushActive
)
1239 def GetActiveTarget(*args
, **kwargs
):
1240 """GetActiveTarget() -> Log"""
1241 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1243 GetActiveTarget
= staticmethod(GetActiveTarget
)
1244 def SetActiveTarget(*args
, **kwargs
):
1245 """SetActiveTarget(Log pLogger) -> Log"""
1246 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1248 SetActiveTarget
= staticmethod(SetActiveTarget
)
1249 def Suspend(*args
, **kwargs
):
1251 return _misc_
.Log_Suspend(*args
, **kwargs
)
1253 Suspend
= staticmethod(Suspend
)
1254 def Resume(*args
, **kwargs
):
1256 return _misc_
.Log_Resume(*args
, **kwargs
)
1258 Resume
= staticmethod(Resume
)
1259 def SetVerbose(*args
, **kwargs
):
1260 """SetVerbose(bool bVerbose=True)"""
1261 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1263 SetVerbose
= staticmethod(SetVerbose
)
1264 def SetLogLevel(*args
, **kwargs
):
1265 """SetLogLevel(wxLogLevel logLevel)"""
1266 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1268 SetLogLevel
= staticmethod(SetLogLevel
)
1269 def DontCreateOnDemand(*args
, **kwargs
):
1270 """DontCreateOnDemand()"""
1271 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1273 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1274 def SetTraceMask(*args
, **kwargs
):
1275 """SetTraceMask(wxTraceMask ulMask)"""
1276 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1278 SetTraceMask
= staticmethod(SetTraceMask
)
1279 def AddTraceMask(*args
, **kwargs
):
1280 """AddTraceMask(String str)"""
1281 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1283 AddTraceMask
= staticmethod(AddTraceMask
)
1284 def RemoveTraceMask(*args
, **kwargs
):
1285 """RemoveTraceMask(String str)"""
1286 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1288 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1289 def ClearTraceMasks(*args
, **kwargs
):
1290 """ClearTraceMasks()"""
1291 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1293 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1294 def GetTraceMasks(*args
, **kwargs
):
1295 """GetTraceMasks() -> wxArrayString"""
1296 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1298 GetTraceMasks
= staticmethod(GetTraceMasks
)
1299 def SetTimestamp(*args
, **kwargs
):
1300 """SetTimestamp(wxChar ts)"""
1301 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1303 SetTimestamp
= staticmethod(SetTimestamp
)
1304 def GetVerbose(*args
, **kwargs
):
1305 """GetVerbose() -> bool"""
1306 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1308 GetVerbose
= staticmethod(GetVerbose
)
1309 def GetTraceMask(*args
, **kwargs
):
1310 """GetTraceMask() -> wxTraceMask"""
1311 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1313 GetTraceMask
= staticmethod(GetTraceMask
)
1314 def IsAllowedTraceMask(*args
, **kwargs
):
1315 """IsAllowedTraceMask(wxChar mask) -> bool"""
1316 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1318 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1319 def GetLogLevel(*args
, **kwargs
):
1320 """GetLogLevel() -> wxLogLevel"""
1321 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1323 GetLogLevel
= staticmethod(GetLogLevel
)
1324 def GetTimestamp(*args
, **kwargs
):
1325 """GetTimestamp() -> wxChar"""
1326 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1328 GetTimestamp
= staticmethod(GetTimestamp
)
1329 def TimeStamp(*args
, **kwargs
):
1330 """TimeStamp() -> String"""
1331 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1333 TimeStamp
= staticmethod(TimeStamp
)
1334 def Destroy(*args
, **kwargs
):
1336 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1340 Log_swigregister
= _misc_
.Log_swigregister
1341 Log_swigregister(Log
)
1343 def Log_IsEnabled(*args
):
1344 """Log_IsEnabled() -> bool"""
1345 return _misc_
.Log_IsEnabled(*args
)
1347 def Log_EnableLogging(*args
, **kwargs
):
1348 """Log_EnableLogging(bool doIt=True) -> bool"""
1349 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1351 def Log_OnLog(*args
, **kwargs
):
1352 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1353 return _misc_
.Log_OnLog(*args
, **kwargs
)
1355 def Log_FlushActive(*args
):
1356 """Log_FlushActive()"""
1357 return _misc_
.Log_FlushActive(*args
)
1359 def Log_GetActiveTarget(*args
):
1360 """Log_GetActiveTarget() -> Log"""
1361 return _misc_
.Log_GetActiveTarget(*args
)
1363 def Log_SetActiveTarget(*args
, **kwargs
):
1364 """Log_SetActiveTarget(Log pLogger) -> Log"""
1365 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1367 def Log_Suspend(*args
):
1369 return _misc_
.Log_Suspend(*args
)
1371 def Log_Resume(*args
):
1373 return _misc_
.Log_Resume(*args
)
1375 def Log_SetVerbose(*args
, **kwargs
):
1376 """Log_SetVerbose(bool bVerbose=True)"""
1377 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1379 def Log_SetLogLevel(*args
, **kwargs
):
1380 """Log_SetLogLevel(wxLogLevel logLevel)"""
1381 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1383 def Log_DontCreateOnDemand(*args
):
1384 """Log_DontCreateOnDemand()"""
1385 return _misc_
.Log_DontCreateOnDemand(*args
)
1387 def Log_SetTraceMask(*args
, **kwargs
):
1388 """Log_SetTraceMask(wxTraceMask ulMask)"""
1389 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1391 def Log_AddTraceMask(*args
, **kwargs
):
1392 """Log_AddTraceMask(String str)"""
1393 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1395 def Log_RemoveTraceMask(*args
, **kwargs
):
1396 """Log_RemoveTraceMask(String str)"""
1397 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1399 def Log_ClearTraceMasks(*args
):
1400 """Log_ClearTraceMasks()"""
1401 return _misc_
.Log_ClearTraceMasks(*args
)
1403 def Log_GetTraceMasks(*args
):
1404 """Log_GetTraceMasks() -> wxArrayString"""
1405 return _misc_
.Log_GetTraceMasks(*args
)
1407 def Log_SetTimestamp(*args
, **kwargs
):
1408 """Log_SetTimestamp(wxChar ts)"""
1409 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1411 def Log_GetVerbose(*args
):
1412 """Log_GetVerbose() -> bool"""
1413 return _misc_
.Log_GetVerbose(*args
)
1415 def Log_GetTraceMask(*args
):
1416 """Log_GetTraceMask() -> wxTraceMask"""
1417 return _misc_
.Log_GetTraceMask(*args
)
1419 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1420 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1421 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1423 def Log_GetLogLevel(*args
):
1424 """Log_GetLogLevel() -> wxLogLevel"""
1425 return _misc_
.Log_GetLogLevel(*args
)
1427 def Log_GetTimestamp(*args
):
1428 """Log_GetTimestamp() -> wxChar"""
1429 return _misc_
.Log_GetTimestamp(*args
)
1431 def Log_TimeStamp(*args
):
1432 """Log_TimeStamp() -> String"""
1433 return _misc_
.Log_TimeStamp(*args
)
1435 class LogStderr(Log
):
1436 """Proxy of C++ LogStderr class"""
1437 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1438 __repr__
= _swig_repr
1439 def __init__(self
, *args
, **kwargs
):
1440 """__init__(self) -> LogStderr"""
1441 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1442 LogStderr_swigregister
= _misc_
.LogStderr_swigregister
1443 LogStderr_swigregister(LogStderr
)
1445 class LogTextCtrl(Log
):
1446 """Proxy of C++ LogTextCtrl class"""
1447 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1448 __repr__
= _swig_repr
1449 def __init__(self
, *args
, **kwargs
):
1450 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1451 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1452 LogTextCtrl_swigregister
= _misc_
.LogTextCtrl_swigregister
1453 LogTextCtrl_swigregister(LogTextCtrl
)
1456 """Proxy of C++ LogGui class"""
1457 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1458 __repr__
= _swig_repr
1459 def __init__(self
, *args
, **kwargs
):
1460 """__init__(self) -> LogGui"""
1461 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1462 LogGui_swigregister
= _misc_
.LogGui_swigregister
1463 LogGui_swigregister(LogGui
)
1465 class LogWindow(Log
):
1466 """Proxy of C++ LogWindow class"""
1467 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1468 __repr__
= _swig_repr
1469 def __init__(self
, *args
, **kwargs
):
1470 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1471 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1472 def Show(*args
, **kwargs
):
1473 """Show(self, bool bShow=True)"""
1474 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1476 def GetFrame(*args
, **kwargs
):
1477 """GetFrame(self) -> wxFrame"""
1478 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1480 def GetOldLog(*args
, **kwargs
):
1481 """GetOldLog(self) -> Log"""
1482 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1484 def IsPassingMessages(*args
, **kwargs
):
1485 """IsPassingMessages(self) -> bool"""
1486 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1488 def PassMessages(*args
, **kwargs
):
1489 """PassMessages(self, bool bDoPass)"""
1490 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1492 LogWindow_swigregister
= _misc_
.LogWindow_swigregister
1493 LogWindow_swigregister(LogWindow
)
1495 class LogChain(Log
):
1496 """Proxy of C++ LogChain class"""
1497 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1498 __repr__
= _swig_repr
1499 def __init__(self
, *args
, **kwargs
):
1500 """__init__(self, Log logger) -> LogChain"""
1501 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1502 def SetLog(*args
, **kwargs
):
1503 """SetLog(self, Log logger)"""
1504 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1506 def PassMessages(*args
, **kwargs
):
1507 """PassMessages(self, bool bDoPass)"""
1508 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1510 def IsPassingMessages(*args
, **kwargs
):
1511 """IsPassingMessages(self) -> bool"""
1512 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1514 def GetOldLog(*args
, **kwargs
):
1515 """GetOldLog(self) -> Log"""
1516 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1518 LogChain_swigregister
= _misc_
.LogChain_swigregister
1519 LogChain_swigregister(LogChain
)
1521 class LogBuffer(Log
):
1522 """Proxy of C++ LogBuffer class"""
1523 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1524 __repr__
= _swig_repr
1525 def __init__(self
, *args
, **kwargs
):
1526 """__init__(self) -> LogBuffer"""
1527 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1528 def GetBuffer(*args
, **kwargs
):
1529 """GetBuffer(self) -> String"""
1530 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1532 LogBuffer_swigregister
= _misc_
.LogBuffer_swigregister
1533 LogBuffer_swigregister(LogBuffer
)
1536 def SysErrorCode(*args
):
1537 """SysErrorCode() -> unsigned long"""
1538 return _misc_
.SysErrorCode(*args
)
1540 def SysErrorMsg(*args
, **kwargs
):
1541 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1542 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1544 def LogFatalError(*args
, **kwargs
):
1545 """LogFatalError(String msg)"""
1546 return _misc_
.LogFatalError(*args
, **kwargs
)
1548 def LogError(*args
, **kwargs
):
1549 """LogError(String msg)"""
1550 return _misc_
.LogError(*args
, **kwargs
)
1552 def LogWarning(*args
, **kwargs
):
1553 """LogWarning(String msg)"""
1554 return _misc_
.LogWarning(*args
, **kwargs
)
1556 def LogMessage(*args
, **kwargs
):
1557 """LogMessage(String msg)"""
1558 return _misc_
.LogMessage(*args
, **kwargs
)
1560 def LogInfo(*args
, **kwargs
):
1561 """LogInfo(String msg)"""
1562 return _misc_
.LogInfo(*args
, **kwargs
)
1564 def LogDebug(*args
, **kwargs
):
1565 """LogDebug(String msg)"""
1566 return _misc_
.LogDebug(*args
, **kwargs
)
1568 def LogVerbose(*args
, **kwargs
):
1569 """LogVerbose(String msg)"""
1570 return _misc_
.LogVerbose(*args
, **kwargs
)
1572 def LogStatus(*args
, **kwargs
):
1573 """LogStatus(String msg)"""
1574 return _misc_
.LogStatus(*args
, **kwargs
)
1576 def LogStatusFrame(*args
, **kwargs
):
1577 """LogStatusFrame(wxFrame pFrame, String msg)"""
1578 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1580 def LogSysError(*args
, **kwargs
):
1581 """LogSysError(String msg)"""
1582 return _misc_
.LogSysError(*args
, **kwargs
)
1584 def LogGeneric(*args
, **kwargs
):
1585 """LogGeneric(unsigned long level, String msg)"""
1586 return _misc_
.LogGeneric(*args
, **kwargs
)
1588 def SafeShowMessage(*args
, **kwargs
):
1589 """SafeShowMessage(String title, String text)"""
1590 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1591 class LogNull(object):
1592 """Proxy of C++ LogNull class"""
1593 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1594 __repr__
= _swig_repr
1595 def __init__(self
, *args
, **kwargs
):
1596 """__init__(self) -> LogNull"""
1597 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1598 __swig_destroy__
= _misc_
.delete_LogNull
1599 __del__
= lambda self
: None;
1600 LogNull_swigregister
= _misc_
.LogNull_swigregister
1601 LogNull_swigregister(LogNull
)
1603 def LogTrace(*args
):
1605 LogTrace(unsigned long mask, String msg)
1606 LogTrace(String mask, String msg)
1608 return _misc_
.LogTrace(*args
)
1611 """Proxy of C++ PyLog class"""
1612 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1613 __repr__
= _swig_repr
1614 def __init__(self
, *args
, **kwargs
):
1615 """__init__(self) -> PyLog"""
1616 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1617 self
._setCallbackInfo
(self
, PyLog
)
1619 def _setCallbackInfo(*args
, **kwargs
):
1620 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1621 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1623 PyLog_swigregister
= _misc_
.PyLog_swigregister
1624 PyLog_swigregister(PyLog
)
1626 #---------------------------------------------------------------------------
1628 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1629 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1630 KILL_OK
= _misc_
.KILL_OK
1631 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1632 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1633 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1634 KILL_ERROR
= _misc_
.KILL_ERROR
1635 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1636 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1637 SIGNONE
= _misc_
.SIGNONE
1638 SIGHUP
= _misc_
.SIGHUP
1639 SIGINT
= _misc_
.SIGINT
1640 SIGQUIT
= _misc_
.SIGQUIT
1641 SIGILL
= _misc_
.SIGILL
1642 SIGTRAP
= _misc_
.SIGTRAP
1643 SIGABRT
= _misc_
.SIGABRT
1644 SIGIOT
= _misc_
.SIGIOT
1645 SIGEMT
= _misc_
.SIGEMT
1646 SIGFPE
= _misc_
.SIGFPE
1647 SIGKILL
= _misc_
.SIGKILL
1648 SIGBUS
= _misc_
.SIGBUS
1649 SIGSEGV
= _misc_
.SIGSEGV
1650 SIGSYS
= _misc_
.SIGSYS
1651 SIGPIPE
= _misc_
.SIGPIPE
1652 SIGALRM
= _misc_
.SIGALRM
1653 SIGTERM
= _misc_
.SIGTERM
1654 class Process(_core
.EvtHandler
):
1655 """Proxy of C++ Process class"""
1656 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1657 __repr__
= _swig_repr
1658 def Kill(*args
, **kwargs
):
1659 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1660 return _misc_
.Process_Kill(*args
, **kwargs
)
1662 Kill
= staticmethod(Kill
)
1663 def Exists(*args
, **kwargs
):
1664 """Exists(int pid) -> bool"""
1665 return _misc_
.Process_Exists(*args
, **kwargs
)
1667 Exists
= staticmethod(Exists
)
1668 def Open(*args
, **kwargs
):
1669 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1670 return _misc_
.Process_Open(*args
, **kwargs
)
1672 Open
= staticmethod(Open
)
1673 def __init__(self
, *args
, **kwargs
):
1674 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1675 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1676 self
._setCallbackInfo
(self
, Process
)
1678 def _setCallbackInfo(*args
, **kwargs
):
1679 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1680 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1682 def OnTerminate(*args
, **kwargs
):
1683 """OnTerminate(self, int pid, int status)"""
1684 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1686 def base_OnTerminate(*args
, **kw
):
1687 return Process
.OnTerminate(*args
, **kw
)
1688 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1689 "Please use Process.OnTerminate instead.")
1691 def Redirect(*args
, **kwargs
):
1692 """Redirect(self)"""
1693 return _misc_
.Process_Redirect(*args
, **kwargs
)
1695 def IsRedirected(*args
, **kwargs
):
1696 """IsRedirected(self) -> bool"""
1697 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1699 def Detach(*args
, **kwargs
):
1701 return _misc_
.Process_Detach(*args
, **kwargs
)
1703 def GetInputStream(*args
, **kwargs
):
1704 """GetInputStream(self) -> InputStream"""
1705 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1707 def GetErrorStream(*args
, **kwargs
):
1708 """GetErrorStream(self) -> InputStream"""
1709 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1711 def GetOutputStream(*args
, **kwargs
):
1712 """GetOutputStream(self) -> OutputStream"""
1713 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1715 def CloseOutput(*args
, **kwargs
):
1716 """CloseOutput(self)"""
1717 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1719 def IsInputOpened(*args
, **kwargs
):
1720 """IsInputOpened(self) -> bool"""
1721 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1723 def IsInputAvailable(*args
, **kwargs
):
1724 """IsInputAvailable(self) -> bool"""
1725 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1727 def IsErrorAvailable(*args
, **kwargs
):
1728 """IsErrorAvailable(self) -> bool"""
1729 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1731 Process_swigregister
= _misc_
.Process_swigregister
1732 Process_swigregister(Process
)
1734 def Process_Kill(*args
, **kwargs
):
1735 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1736 return _misc_
.Process_Kill(*args
, **kwargs
)
1738 def Process_Exists(*args
, **kwargs
):
1739 """Process_Exists(int pid) -> bool"""
1740 return _misc_
.Process_Exists(*args
, **kwargs
)
1742 def Process_Open(*args
, **kwargs
):
1743 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1744 return _misc_
.Process_Open(*args
, **kwargs
)
1746 class ProcessEvent(_core
.Event
):
1747 """Proxy of C++ ProcessEvent class"""
1748 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1749 __repr__
= _swig_repr
1750 def __init__(self
, *args
, **kwargs
):
1751 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1752 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1753 def GetPid(*args
, **kwargs
):
1754 """GetPid(self) -> int"""
1755 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1757 def GetExitCode(*args
, **kwargs
):
1758 """GetExitCode(self) -> int"""
1759 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1761 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1762 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1763 ProcessEvent_swigregister
= _misc_
.ProcessEvent_swigregister
1764 ProcessEvent_swigregister(ProcessEvent
)
1766 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1767 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1769 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1770 EXEC_SYNC
= _misc_
.EXEC_SYNC
1771 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1772 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1773 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1775 def Execute(*args
, **kwargs
):
1776 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1777 return _misc_
.Execute(*args
, **kwargs
)
1779 def Kill(*args
, **kwargs
):
1780 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1781 return _misc_
.Kill(*args
, **kwargs
)
1782 #---------------------------------------------------------------------------
1784 JOYSTICK1
= _misc_
.JOYSTICK1
1785 JOYSTICK2
= _misc_
.JOYSTICK2
1786 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1787 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1788 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1789 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1790 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1791 class Joystick(object):
1792 """Proxy of C++ Joystick class"""
1793 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1794 __repr__
= _swig_repr
1795 def __init__(self
, *args
, **kwargs
):
1796 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1797 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
1798 __swig_destroy__
= _misc_
.delete_Joystick
1799 __del__
= lambda self
: None;
1800 def GetPosition(*args
, **kwargs
):
1801 """GetPosition(self) -> Point"""
1802 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1804 def GetZPosition(*args
, **kwargs
):
1805 """GetZPosition(self) -> int"""
1806 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1808 def GetButtonState(*args
, **kwargs
):
1809 """GetButtonState(self) -> int"""
1810 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1812 def GetPOVPosition(*args
, **kwargs
):
1813 """GetPOVPosition(self) -> int"""
1814 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1816 def GetPOVCTSPosition(*args
, **kwargs
):
1817 """GetPOVCTSPosition(self) -> int"""
1818 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1820 def GetRudderPosition(*args
, **kwargs
):
1821 """GetRudderPosition(self) -> int"""
1822 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1824 def GetUPosition(*args
, **kwargs
):
1825 """GetUPosition(self) -> int"""
1826 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1828 def GetVPosition(*args
, **kwargs
):
1829 """GetVPosition(self) -> int"""
1830 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1832 def GetMovementThreshold(*args
, **kwargs
):
1833 """GetMovementThreshold(self) -> int"""
1834 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1836 def SetMovementThreshold(*args
, **kwargs
):
1837 """SetMovementThreshold(self, int threshold)"""
1838 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1840 def IsOk(*args
, **kwargs
):
1841 """IsOk(self) -> bool"""
1842 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1844 def GetNumberJoysticks(*args
, **kwargs
):
1845 """GetNumberJoysticks(self) -> int"""
1846 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1848 def GetManufacturerId(*args
, **kwargs
):
1849 """GetManufacturerId(self) -> int"""
1850 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1852 def GetProductId(*args
, **kwargs
):
1853 """GetProductId(self) -> int"""
1854 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1856 def GetProductName(*args
, **kwargs
):
1857 """GetProductName(self) -> String"""
1858 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1860 def GetXMin(*args
, **kwargs
):
1861 """GetXMin(self) -> int"""
1862 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1864 def GetYMin(*args
, **kwargs
):
1865 """GetYMin(self) -> int"""
1866 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1868 def GetZMin(*args
, **kwargs
):
1869 """GetZMin(self) -> int"""
1870 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1872 def GetXMax(*args
, **kwargs
):
1873 """GetXMax(self) -> int"""
1874 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1876 def GetYMax(*args
, **kwargs
):
1877 """GetYMax(self) -> int"""
1878 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1880 def GetZMax(*args
, **kwargs
):
1881 """GetZMax(self) -> int"""
1882 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1884 def GetNumberButtons(*args
, **kwargs
):
1885 """GetNumberButtons(self) -> int"""
1886 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1888 def GetNumberAxes(*args
, **kwargs
):
1889 """GetNumberAxes(self) -> int"""
1890 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1892 def GetMaxButtons(*args
, **kwargs
):
1893 """GetMaxButtons(self) -> int"""
1894 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1896 def GetMaxAxes(*args
, **kwargs
):
1897 """GetMaxAxes(self) -> int"""
1898 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1900 def GetPollingMin(*args
, **kwargs
):
1901 """GetPollingMin(self) -> int"""
1902 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1904 def GetPollingMax(*args
, **kwargs
):
1905 """GetPollingMax(self) -> int"""
1906 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1908 def GetRudderMin(*args
, **kwargs
):
1909 """GetRudderMin(self) -> int"""
1910 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1912 def GetRudderMax(*args
, **kwargs
):
1913 """GetRudderMax(self) -> int"""
1914 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1916 def GetUMin(*args
, **kwargs
):
1917 """GetUMin(self) -> int"""
1918 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1920 def GetUMax(*args
, **kwargs
):
1921 """GetUMax(self) -> int"""
1922 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1924 def GetVMin(*args
, **kwargs
):
1925 """GetVMin(self) -> int"""
1926 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1928 def GetVMax(*args
, **kwargs
):
1929 """GetVMax(self) -> int"""
1930 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1932 def HasRudder(*args
, **kwargs
):
1933 """HasRudder(self) -> bool"""
1934 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1936 def HasZ(*args
, **kwargs
):
1937 """HasZ(self) -> bool"""
1938 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1940 def HasU(*args
, **kwargs
):
1941 """HasU(self) -> bool"""
1942 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1944 def HasV(*args
, **kwargs
):
1945 """HasV(self) -> bool"""
1946 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1948 def HasPOV(*args
, **kwargs
):
1949 """HasPOV(self) -> bool"""
1950 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1952 def HasPOV4Dir(*args
, **kwargs
):
1953 """HasPOV4Dir(self) -> bool"""
1954 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1956 def HasPOVCTS(*args
, **kwargs
):
1957 """HasPOVCTS(self) -> bool"""
1958 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1960 def SetCapture(*args
, **kwargs
):
1961 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1962 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
1964 def ReleaseCapture(*args
, **kwargs
):
1965 """ReleaseCapture(self) -> bool"""
1966 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
1968 def __nonzero__(self
): return self
.IsOk()
1969 Joystick_swigregister
= _misc_
.Joystick_swigregister
1970 Joystick_swigregister(Joystick
)
1972 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
1973 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
1974 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
1975 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
1976 class JoystickEvent(_core
.Event
):
1977 """Proxy of C++ JoystickEvent class"""
1978 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1979 __repr__
= _swig_repr
1980 def __init__(self
, *args
, **kwargs
):
1982 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1983 int change=0) -> JoystickEvent
1985 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
1986 def GetPosition(*args
, **kwargs
):
1987 """GetPosition(self) -> Point"""
1988 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
1990 def GetZPosition(*args
, **kwargs
):
1991 """GetZPosition(self) -> int"""
1992 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1994 def GetButtonState(*args
, **kwargs
):
1995 """GetButtonState(self) -> int"""
1996 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1998 def GetButtonChange(*args
, **kwargs
):
1999 """GetButtonChange(self) -> int"""
2000 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2002 def GetJoystick(*args
, **kwargs
):
2003 """GetJoystick(self) -> int"""
2004 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2006 def SetJoystick(*args
, **kwargs
):
2007 """SetJoystick(self, int stick)"""
2008 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2010 def SetButtonState(*args
, **kwargs
):
2011 """SetButtonState(self, int state)"""
2012 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2014 def SetButtonChange(*args
, **kwargs
):
2015 """SetButtonChange(self, int change)"""
2016 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2018 def SetPosition(*args
, **kwargs
):
2019 """SetPosition(self, Point pos)"""
2020 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2022 def SetZPosition(*args
, **kwargs
):
2023 """SetZPosition(self, int zPos)"""
2024 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2026 def IsButton(*args
, **kwargs
):
2027 """IsButton(self) -> bool"""
2028 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2030 def IsMove(*args
, **kwargs
):
2031 """IsMove(self) -> bool"""
2032 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2034 def IsZMove(*args
, **kwargs
):
2035 """IsZMove(self) -> bool"""
2036 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2038 def ButtonDown(*args
, **kwargs
):
2039 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2040 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2042 def ButtonUp(*args
, **kwargs
):
2043 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2044 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2046 def ButtonIsDown(*args
, **kwargs
):
2047 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2048 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2050 m_pos
= property(GetPosition
, SetPosition
)
2051 m_zPosition
= property(GetZPosition
, SetZPosition
)
2052 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2053 m_buttonState
= property(GetButtonState
, SetButtonState
)
2054 m_joyStick
= property(GetJoystick
, SetJoystick
)
2056 JoystickEvent_swigregister
= _misc_
.JoystickEvent_swigregister
2057 JoystickEvent_swigregister(JoystickEvent
)
2059 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2060 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2061 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2062 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2064 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2065 wxEVT_JOY_BUTTON_UP
,
2071 #---------------------------------------------------------------------------
2073 SOUND_SYNC
= _misc_
.SOUND_SYNC
2074 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2075 SOUND_LOOP
= _misc_
.SOUND_LOOP
2076 class Sound(object):
2077 """Proxy of C++ Sound class"""
2078 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2079 __repr__
= _swig_repr
2080 def __init__(self
, *args
, **kwargs
):
2081 """__init__(self, String fileName=EmptyString) -> Sound"""
2082 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2083 __swig_destroy__
= _misc_
.delete_Sound
2084 __del__
= lambda self
: None;
2085 def Create(*args
, **kwargs
):
2086 """Create(self, String fileName) -> bool"""
2087 return _misc_
.Sound_Create(*args
, **kwargs
)
2089 def CreateFromData(*args
, **kwargs
):
2090 """CreateFromData(self, PyObject data) -> bool"""
2091 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2093 def IsOk(*args
, **kwargs
):
2094 """IsOk(self) -> bool"""
2095 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2097 def Play(*args
, **kwargs
):
2098 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2099 return _misc_
.Sound_Play(*args
, **kwargs
)
2101 def PlaySound(*args
, **kwargs
):
2102 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2103 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2105 PlaySound
= staticmethod(PlaySound
)
2106 def Stop(*args
, **kwargs
):
2108 return _misc_
.Sound_Stop(*args
, **kwargs
)
2110 Stop
= staticmethod(Stop
)
2111 def __nonzero__(self
): return self
.IsOk()
2112 Sound_swigregister
= _misc_
.Sound_swigregister
2113 Sound_swigregister(Sound
)
2115 def SoundFromData(*args
, **kwargs
):
2116 """SoundFromData(PyObject data) -> Sound"""
2117 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2120 def Sound_PlaySound(*args
, **kwargs
):
2121 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2122 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2124 def Sound_Stop(*args
):
2126 return _misc_
.Sound_Stop(*args
)
2128 #---------------------------------------------------------------------------
2130 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2131 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2132 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2133 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2134 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2135 class FileTypeInfo(object):
2136 """Proxy of C++ FileTypeInfo 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
):
2140 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2141 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2142 def IsValid(*args
, **kwargs
):
2143 """IsValid(self) -> bool"""
2144 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2146 def SetIcon(*args
, **kwargs
):
2147 """SetIcon(self, String iconFile, int iconIndex=0)"""
2148 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2150 def SetShortDesc(*args
, **kwargs
):
2151 """SetShortDesc(self, String shortDesc)"""
2152 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2154 def GetMimeType(*args
, **kwargs
):
2155 """GetMimeType(self) -> String"""
2156 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2158 def GetOpenCommand(*args
, **kwargs
):
2159 """GetOpenCommand(self) -> String"""
2160 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2162 def GetPrintCommand(*args
, **kwargs
):
2163 """GetPrintCommand(self) -> String"""
2164 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2166 def GetShortDesc(*args
, **kwargs
):
2167 """GetShortDesc(self) -> String"""
2168 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2170 def GetDescription(*args
, **kwargs
):
2171 """GetDescription(self) -> String"""
2172 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2174 def GetExtensions(*args
, **kwargs
):
2175 """GetExtensions(self) -> wxArrayString"""
2176 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2178 def GetExtensionsCount(*args
, **kwargs
):
2179 """GetExtensionsCount(self) -> size_t"""
2180 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2182 def GetIconFile(*args
, **kwargs
):
2183 """GetIconFile(self) -> String"""
2184 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2186 def GetIconIndex(*args
, **kwargs
):
2187 """GetIconIndex(self) -> int"""
2188 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2190 FileTypeInfo_swigregister
= _misc_
.FileTypeInfo_swigregister
2191 FileTypeInfo_swigregister(FileTypeInfo
)
2193 def FileTypeInfoSequence(*args
, **kwargs
):
2194 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2195 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2198 def NullFileTypeInfo(*args
, **kwargs
):
2199 """NullFileTypeInfo() -> FileTypeInfo"""
2200 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2203 class FileType(object):
2204 """Proxy of C++ FileType class"""
2205 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2206 __repr__
= _swig_repr
2207 def __init__(self
, *args
, **kwargs
):
2208 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2209 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2210 __swig_destroy__
= _misc_
.delete_FileType
2211 __del__
= lambda self
: None;
2212 def GetMimeType(*args
, **kwargs
):
2213 """GetMimeType(self) -> PyObject"""
2214 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2216 def GetMimeTypes(*args
, **kwargs
):
2217 """GetMimeTypes(self) -> PyObject"""
2218 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2220 def GetExtensions(*args
, **kwargs
):
2221 """GetExtensions(self) -> PyObject"""
2222 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2224 def GetIcon(*args
, **kwargs
):
2225 """GetIcon(self) -> Icon"""
2226 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2228 def GetIconInfo(*args
, **kwargs
):
2229 """GetIconInfo(self) -> PyObject"""
2230 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2232 def GetDescription(*args
, **kwargs
):
2233 """GetDescription(self) -> PyObject"""
2234 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2236 def GetOpenCommand(*args
, **kwargs
):
2237 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2238 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2240 def GetPrintCommand(*args
, **kwargs
):
2241 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2242 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2244 def GetAllCommands(*args
, **kwargs
):
2245 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2246 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2248 def SetCommand(*args
, **kwargs
):
2249 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2250 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2252 def SetDefaultIcon(*args
, **kwargs
):
2253 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2254 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2256 def Unassociate(*args
, **kwargs
):
2257 """Unassociate(self) -> bool"""
2258 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2260 def ExpandCommand(*args
, **kwargs
):
2261 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2262 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2264 ExpandCommand
= staticmethod(ExpandCommand
)
2265 FileType_swigregister
= _misc_
.FileType_swigregister
2266 FileType_swigregister(FileType
)
2268 def FileType_ExpandCommand(*args
, **kwargs
):
2269 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2270 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2272 class MimeTypesManager(object):
2273 """Proxy of C++ MimeTypesManager class"""
2274 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2275 __repr__
= _swig_repr
2276 def IsOfType(*args
, **kwargs
):
2277 """IsOfType(String mimeType, String wildcard) -> bool"""
2278 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2280 IsOfType
= staticmethod(IsOfType
)
2281 def __init__(self
, *args
, **kwargs
):
2282 """__init__(self) -> MimeTypesManager"""
2283 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2284 def Initialize(*args
, **kwargs
):
2285 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2286 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2288 def ClearData(*args
, **kwargs
):
2289 """ClearData(self)"""
2290 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2292 def GetFileTypeFromExtension(*args
, **kwargs
):
2293 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2294 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2296 def GetFileTypeFromMimeType(*args
, **kwargs
):
2297 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2298 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2300 def ReadMailcap(*args
, **kwargs
):
2301 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2302 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2304 def ReadMimeTypes(*args
, **kwargs
):
2305 """ReadMimeTypes(self, String filename) -> bool"""
2306 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2308 def EnumAllFileTypes(*args
, **kwargs
):
2309 """EnumAllFileTypes(self) -> PyObject"""
2310 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2312 def AddFallback(*args
, **kwargs
):
2313 """AddFallback(self, FileTypeInfo ft)"""
2314 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2316 def Associate(*args
, **kwargs
):
2317 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2318 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2320 def Unassociate(*args
, **kwargs
):
2321 """Unassociate(self, FileType ft) -> bool"""
2322 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2324 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2325 __del__
= lambda self
: None;
2326 MimeTypesManager_swigregister
= _misc_
.MimeTypesManager_swigregister
2327 MimeTypesManager_swigregister(MimeTypesManager
)
2328 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2330 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2331 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2332 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2334 #---------------------------------------------------------------------------
2336 class ArtProvider(object):
2338 The wx.ArtProvider class is used to customize the look of wxWidgets
2339 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2340 in the standard file dialog), it does not use hard-coded resource but
2341 asks wx.ArtProvider for it instead. This way the users can plug in
2342 their own wx.ArtProvider class and easily replace standard art with
2343 his/her own version. It is easy thing to do: all that is needed is
2344 to derive a class from wx.ArtProvider, override it's CreateBitmap
2345 method and register the provider with wx.ArtProvider.PushProvider::
2347 class MyArtProvider(wx.ArtProvider):
2349 wx.ArtProvider.__init__(self)
2351 def CreateBitmap(self, artid, client, size):
2356 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2357 __repr__
= _swig_repr
2358 def __init__(self
, *args
, **kwargs
):
2360 __init__(self) -> ArtProvider
2362 The wx.ArtProvider class is used to customize the look of wxWidgets
2363 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2364 in the standard file dialog), it does not use hard-coded resource but
2365 asks wx.ArtProvider for it instead. This way the users can plug in
2366 their own wx.ArtProvider class and easily replace standard art with
2367 his/her own version. It is easy thing to do: all that is needed is
2368 to derive a class from wx.ArtProvider, override it's CreateBitmap
2369 method and register the provider with wx.ArtProvider.PushProvider::
2371 class MyArtProvider(wx.ArtProvider):
2373 wx.ArtProvider.__init__(self)
2375 def CreateBitmap(self, artid, client, size):
2380 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2381 self
._setCallbackInfo
(self
, ArtProvider
)
2383 __swig_destroy__
= _misc_
.delete_ArtProvider
2384 __del__
= lambda self
: None;
2385 def _setCallbackInfo(*args
, **kwargs
):
2386 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2387 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2389 def PushProvider(*args
, **kwargs
):
2391 PushProvider(ArtProvider provider)
2393 Add new provider to the top of providers stack.
2395 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2397 PushProvider
= staticmethod(PushProvider
)
2398 def PopProvider(*args
, **kwargs
):
2400 PopProvider() -> bool
2402 Remove latest added provider and delete it.
2404 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2406 PopProvider
= staticmethod(PopProvider
)
2407 def RemoveProvider(*args
, **kwargs
):
2409 RemoveProvider(ArtProvider provider) -> bool
2411 Remove provider. The provider must have been added previously! The
2412 provider is _not_ deleted.
2414 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2418 RemoveProvider
= staticmethod(RemoveProvider
)
2419 def GetBitmap(*args
, **kwargs
):
2421 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2423 Query the providers for bitmap with given ID and return it. Return
2424 wx.NullBitmap if no provider provides it.
2426 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2428 GetBitmap
= staticmethod(GetBitmap
)
2429 def GetIcon(*args
, **kwargs
):
2431 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2433 Query the providers for icon with given ID and return it. Return
2434 wx.NullIcon if no provider provides it.
2436 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2438 GetIcon
= staticmethod(GetIcon
)
2439 def GetSizeHint(*args
, **kwargs
):
2441 GetSizeHint(String client, bool platform_dependent=False) -> Size
2443 Get the size hint of an icon from a specific Art Client, queries the
2444 topmost provider if platform_dependent = false
2446 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2448 GetSizeHint
= staticmethod(GetSizeHint
)
2449 def Destroy(*args
, **kwargs
):
2451 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2455 ArtProvider_swigregister
= _misc_
.ArtProvider_swigregister
2456 ArtProvider_swigregister(ArtProvider
)
2457 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2458 ART_MENU
= cvar
.ART_MENU
2459 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2460 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2461 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2462 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2463 ART_BUTTON
= cvar
.ART_BUTTON
2464 ART_OTHER
= cvar
.ART_OTHER
2465 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2466 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2467 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2468 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2469 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2470 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2471 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2472 ART_GO_BACK
= cvar
.ART_GO_BACK
2473 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2474 ART_GO_UP
= cvar
.ART_GO_UP
2475 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2476 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2477 ART_GO_HOME
= cvar
.ART_GO_HOME
2478 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2479 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2480 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2481 ART_PRINT
= cvar
.ART_PRINT
2482 ART_HELP
= cvar
.ART_HELP
2483 ART_TIP
= cvar
.ART_TIP
2484 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2485 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2486 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2487 ART_HARDDISK
= cvar
.ART_HARDDISK
2488 ART_FLOPPY
= cvar
.ART_FLOPPY
2489 ART_CDROM
= cvar
.ART_CDROM
2490 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2491 ART_FOLDER
= cvar
.ART_FOLDER
2492 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2493 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2494 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2495 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2496 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2497 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2498 ART_ERROR
= cvar
.ART_ERROR
2499 ART_QUESTION
= cvar
.ART_QUESTION
2500 ART_WARNING
= cvar
.ART_WARNING
2501 ART_INFORMATION
= cvar
.ART_INFORMATION
2502 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2503 ART_COPY
= cvar
.ART_COPY
2504 ART_CUT
= cvar
.ART_CUT
2505 ART_PASTE
= cvar
.ART_PASTE
2506 ART_DELETE
= cvar
.ART_DELETE
2507 ART_NEW
= cvar
.ART_NEW
2508 ART_UNDO
= cvar
.ART_UNDO
2509 ART_REDO
= cvar
.ART_REDO
2510 ART_QUIT
= cvar
.ART_QUIT
2511 ART_FIND
= cvar
.ART_FIND
2512 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2514 def ArtProvider_PushProvider(*args
, **kwargs
):
2516 ArtProvider_PushProvider(ArtProvider provider)
2518 Add new provider to the top of providers stack.
2520 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2522 def ArtProvider_PopProvider(*args
):
2524 ArtProvider_PopProvider() -> bool
2526 Remove latest added provider and delete it.
2528 return _misc_
.ArtProvider_PopProvider(*args
)
2530 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2532 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2534 Remove provider. The provider must have been added previously! The
2535 provider is _not_ deleted.
2537 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2541 def ArtProvider_GetBitmap(*args
, **kwargs
):
2543 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2545 Query the providers for bitmap with given ID and return it. Return
2546 wx.NullBitmap if no provider provides it.
2548 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2550 def ArtProvider_GetIcon(*args
, **kwargs
):
2552 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2554 Query the providers for icon with given ID and return it. Return
2555 wx.NullIcon if no provider provides it.
2557 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2559 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2561 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2563 Get the size hint of an icon from a specific Art Client, queries the
2564 topmost provider if platform_dependent = false
2566 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2568 #---------------------------------------------------------------------------
2570 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2571 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2572 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2573 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2574 class ConfigBase(object):
2576 wx.ConfigBase class defines the basic interface of all config
2577 classes. It can not be used by itself (it is an abstract base class)
2578 and you will always use one of its derivations: wx.Config or
2581 wx.ConfigBase organizes the items in a tree-like structure, modeled
2582 after the Unix/Dos filesystem. There are groups that act like
2583 directories and entries, key/value pairs that act like files. There
2584 is always one current group given by the current path. As in the file
2585 system case, to specify a key in the config class you must use a path
2586 to it. Config classes also support the notion of the current group,
2587 which makes it possible to use relative paths.
2589 Keys are pairs "key_name = value" where value may be of string,
2590 integer floating point or boolean, you can not store binary data
2591 without first encoding it as a string. For performance reasons items
2592 should be kept small, no more than a couple kilobytes.
2595 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2596 def __init__(self
): raise AttributeError, "No constructor defined"
2597 __repr__
= _swig_repr
2598 __swig_destroy__
= _misc_
.delete_ConfigBase
2599 __del__
= lambda self
: None;
2600 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2601 Type_String
= _misc_
.ConfigBase_Type_String
2602 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2603 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2604 Type_Float
= _misc_
.ConfigBase_Type_Float
2605 def Set(*args
, **kwargs
):
2607 Set(ConfigBase config) -> ConfigBase
2609 Sets the global config object (the one returned by Get) and returns a
2610 reference to the previous global config object.
2612 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2614 Set
= staticmethod(Set
)
2615 def Get(*args
, **kwargs
):
2617 Get(bool createOnDemand=True) -> ConfigBase
2619 Returns the current global config object, creating one if neccessary.
2621 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2623 Get
= staticmethod(Get
)
2624 def Create(*args
, **kwargs
):
2626 Create() -> ConfigBase
2628 Create and return a new global config object. This function will
2629 create the "best" implementation of wx.Config available for the
2632 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2634 Create
= staticmethod(Create
)
2635 def DontCreateOnDemand(*args
, **kwargs
):
2637 DontCreateOnDemand()
2639 Should Get() try to create a new log object if there isn't a current
2642 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2644 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2645 def SetPath(*args
, **kwargs
):
2647 SetPath(self, String path)
2649 Set current path: if the first character is '/', it's the absolute
2650 path, otherwise it's a relative path. '..' is supported. If the
2651 strPath doesn't exist it is created.
2653 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2655 def GetPath(*args
, **kwargs
):
2657 GetPath(self) -> String
2659 Retrieve the current path (always as absolute path)
2661 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2663 def GetFirstGroup(*args
, **kwargs
):
2665 GetFirstGroup() -> (more, value, index)
2667 Allows enumerating the subgroups in a config object. Returns a tuple
2668 containing a flag indicating there are more items, the name of the
2669 current item, and an index to pass to GetNextGroup to fetch the next
2672 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2674 def GetNextGroup(*args
, **kwargs
):
2676 GetNextGroup(long index) -> (more, value, index)
2678 Allows enumerating the subgroups in a config object. Returns a tuple
2679 containing a flag indicating there are more items, the name of the
2680 current item, and an index to pass to GetNextGroup to fetch the next
2683 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2685 def GetFirstEntry(*args
, **kwargs
):
2687 GetFirstEntry() -> (more, value, index)
2689 Allows enumerating the entries in the current group in a config
2690 object. Returns a tuple containing a flag indicating there are more
2691 items, the name of the current item, and an index to pass to
2692 GetNextGroup to fetch the next item.
2694 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2696 def GetNextEntry(*args
, **kwargs
):
2698 GetNextEntry(long index) -> (more, value, index)
2700 Allows enumerating the entries in the current group in a config
2701 object. Returns a tuple containing a flag indicating there are more
2702 items, the name of the current item, and an index to pass to
2703 GetNextGroup to fetch the next item.
2705 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2707 def GetNumberOfEntries(*args
, **kwargs
):
2709 GetNumberOfEntries(self, bool recursive=False) -> size_t
2711 Get the number of entries in the current group, with or without its
2714 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2716 def GetNumberOfGroups(*args
, **kwargs
):
2718 GetNumberOfGroups(self, bool recursive=False) -> size_t
2720 Get the number of subgroups in the current group, with or without its
2723 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2725 def HasGroup(*args
, **kwargs
):
2727 HasGroup(self, String name) -> bool
2729 Returns True if the group by this name exists
2731 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2733 def HasEntry(*args
, **kwargs
):
2735 HasEntry(self, String name) -> bool
2737 Returns True if the entry by this name exists
2739 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2741 def Exists(*args
, **kwargs
):
2743 Exists(self, String name) -> bool
2745 Returns True if either a group or an entry with a given name exists
2747 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2749 def GetEntryType(*args
, **kwargs
):
2751 GetEntryType(self, String name) -> int
2753 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2755 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2757 def Read(*args
, **kwargs
):
2759 Read(self, String key, String defaultVal=EmptyString) -> String
2761 Returns the value of key if it exists, defaultVal otherwise.
2763 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2765 def ReadInt(*args
, **kwargs
):
2767 ReadInt(self, String key, long defaultVal=0) -> long
2769 Returns the value of key if it exists, defaultVal otherwise.
2771 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2773 def ReadFloat(*args
, **kwargs
):
2775 ReadFloat(self, String key, double defaultVal=0.0) -> double
2777 Returns the value of key if it exists, defaultVal otherwise.
2779 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2781 def ReadBool(*args
, **kwargs
):
2783 ReadBool(self, String key, bool defaultVal=False) -> bool
2785 Returns the value of key if it exists, defaultVal otherwise.
2787 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2789 def Write(*args
, **kwargs
):
2791 Write(self, String key, String value) -> bool
2793 write the value (return True on success)
2795 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2797 def WriteInt(*args
, **kwargs
):
2799 WriteInt(self, String key, long value) -> bool
2801 write the value (return True on success)
2803 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2805 def WriteFloat(*args
, **kwargs
):
2807 WriteFloat(self, String key, double value) -> bool
2809 write the value (return True on success)
2811 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2813 def WriteBool(*args
, **kwargs
):
2815 WriteBool(self, String key, bool value) -> bool
2817 write the value (return True on success)
2819 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2821 def Flush(*args
, **kwargs
):
2823 Flush(self, bool currentOnly=False) -> bool
2825 permanently writes all changes
2827 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2829 def RenameEntry(*args
, **kwargs
):
2831 RenameEntry(self, String oldName, String newName) -> bool
2833 Rename an entry. Returns False on failure (probably because the new
2834 name is already taken by an existing entry)
2836 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2838 def RenameGroup(*args
, **kwargs
):
2840 RenameGroup(self, String oldName, String newName) -> bool
2842 Rename a group. Returns False on failure (probably because the new
2843 name is already taken by an existing entry)
2845 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2847 def DeleteEntry(*args
, **kwargs
):
2849 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2851 Deletes the specified entry and the group it belongs to if it was the
2852 last key in it and the second parameter is True
2854 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2856 def DeleteGroup(*args
, **kwargs
):
2858 DeleteGroup(self, String key) -> bool
2860 Delete the group (with all subgroups)
2862 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2864 def DeleteAll(*args
, **kwargs
):
2866 DeleteAll(self) -> bool
2868 Delete the whole underlying object (disk file, registry key, ...)
2869 primarly intended for use by deinstallation routine.
2871 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2873 def SetExpandEnvVars(*args
, **kwargs
):
2875 SetExpandEnvVars(self, bool doIt=True)
2877 We can automatically expand environment variables in the config
2878 entries this option is on by default, you can turn it on/off at any
2881 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2883 def IsExpandingEnvVars(*args
, **kwargs
):
2885 IsExpandingEnvVars(self) -> bool
2887 Are we currently expanding environment variables?
2889 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2891 def SetRecordDefaults(*args
, **kwargs
):
2893 SetRecordDefaults(self, bool doIt=True)
2895 Set whether the config objec should record default values.
2897 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2899 def IsRecordingDefaults(*args
, **kwargs
):
2901 IsRecordingDefaults(self) -> bool
2903 Are we currently recording default values?
2905 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2907 def ExpandEnvVars(*args
, **kwargs
):
2909 ExpandEnvVars(self, String str) -> String
2911 Expand any environment variables in str and return the result
2913 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2915 def GetAppName(*args
, **kwargs
):
2916 """GetAppName(self) -> String"""
2917 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
2919 def GetVendorName(*args
, **kwargs
):
2920 """GetVendorName(self) -> String"""
2921 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
2923 def SetAppName(*args
, **kwargs
):
2924 """SetAppName(self, String appName)"""
2925 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
2927 def SetVendorName(*args
, **kwargs
):
2928 """SetVendorName(self, String vendorName)"""
2929 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
2931 def SetStyle(*args
, **kwargs
):
2932 """SetStyle(self, long style)"""
2933 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
2935 def GetStyle(*args
, **kwargs
):
2936 """GetStyle(self) -> long"""
2937 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
2939 ConfigBase_swigregister
= _misc_
.ConfigBase_swigregister
2940 ConfigBase_swigregister(ConfigBase
)
2942 def ConfigBase_Set(*args
, **kwargs
):
2944 ConfigBase_Set(ConfigBase config) -> ConfigBase
2946 Sets the global config object (the one returned by Get) and returns a
2947 reference to the previous global config object.
2949 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2951 def ConfigBase_Get(*args
, **kwargs
):
2953 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
2955 Returns the current global config object, creating one if neccessary.
2957 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2959 def ConfigBase_Create(*args
):
2961 ConfigBase_Create() -> ConfigBase
2963 Create and return a new global config object. This function will
2964 create the "best" implementation of wx.Config available for the
2967 return _misc_
.ConfigBase_Create(*args
)
2969 def ConfigBase_DontCreateOnDemand(*args
):
2971 ConfigBase_DontCreateOnDemand()
2973 Should Get() try to create a new log object if there isn't a current
2976 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
2978 class Config(ConfigBase
):
2980 This ConfigBase-derived class will use the registry on Windows,
2981 and will be a wx.FileConfig on other platforms.
2983 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2984 __repr__
= _swig_repr
2985 def __init__(self
, *args
, **kwargs
):
2987 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
2988 String localFilename=EmptyString, String globalFilename=EmptyString,
2989 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
2991 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
2992 __swig_destroy__
= _misc_
.delete_Config
2993 __del__
= lambda self
: None;
2994 Config_swigregister
= _misc_
.Config_swigregister
2995 Config_swigregister(Config
)
2997 class FileConfig(ConfigBase
):
2998 """This config class will use a file for storage on all platforms."""
2999 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3000 __repr__
= _swig_repr
3001 def __init__(self
, *args
, **kwargs
):
3003 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3004 String localFilename=EmptyString, String globalFilename=EmptyString,
3005 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3007 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3008 __swig_destroy__
= _misc_
.delete_FileConfig
3009 __del__
= lambda self
: None;
3010 FileConfig_swigregister
= _misc_
.FileConfig_swigregister
3011 FileConfig_swigregister(FileConfig
)
3013 class ConfigPathChanger(object):
3015 A handy little class which changes current path to the path of given
3016 entry and restores it in the destructoir: so if you declare a local
3017 variable of this type, you work in the entry directory and the path is
3018 automatically restored when the function returns.
3020 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3021 __repr__
= _swig_repr
3022 def __init__(self
, *args
, **kwargs
):
3023 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3024 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3025 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3026 __del__
= lambda self
: None;
3027 def Name(*args
, **kwargs
):
3029 Name(self) -> String
3033 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3035 ConfigPathChanger_swigregister
= _misc_
.ConfigPathChanger_swigregister
3036 ConfigPathChanger_swigregister(ConfigPathChanger
)
3039 def ExpandEnvVars(*args
, **kwargs
):
3041 ExpandEnvVars(String sz) -> String
3043 Replace environment variables ($SOMETHING) with their values. The
3044 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3045 characters and '_' only. '$' must be escaped ('\$') in order to be
3048 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3049 #---------------------------------------------------------------------------
3051 class DateTime(object):
3052 """Proxy of C++ DateTime class"""
3053 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3054 __repr__
= _swig_repr
3055 Local
= _misc_
.DateTime_Local
3056 GMT_12
= _misc_
.DateTime_GMT_12
3057 GMT_11
= _misc_
.DateTime_GMT_11
3058 GMT_10
= _misc_
.DateTime_GMT_10
3059 GMT_9
= _misc_
.DateTime_GMT_9
3060 GMT_8
= _misc_
.DateTime_GMT_8
3061 GMT_7
= _misc_
.DateTime_GMT_7
3062 GMT_6
= _misc_
.DateTime_GMT_6
3063 GMT_5
= _misc_
.DateTime_GMT_5
3064 GMT_4
= _misc_
.DateTime_GMT_4
3065 GMT_3
= _misc_
.DateTime_GMT_3
3066 GMT_2
= _misc_
.DateTime_GMT_2
3067 GMT_1
= _misc_
.DateTime_GMT_1
3068 GMT0
= _misc_
.DateTime_GMT0
3069 GMT1
= _misc_
.DateTime_GMT1
3070 GMT2
= _misc_
.DateTime_GMT2
3071 GMT3
= _misc_
.DateTime_GMT3
3072 GMT4
= _misc_
.DateTime_GMT4
3073 GMT5
= _misc_
.DateTime_GMT5
3074 GMT6
= _misc_
.DateTime_GMT6
3075 GMT7
= _misc_
.DateTime_GMT7
3076 GMT8
= _misc_
.DateTime_GMT8
3077 GMT9
= _misc_
.DateTime_GMT9
3078 GMT10
= _misc_
.DateTime_GMT10
3079 GMT11
= _misc_
.DateTime_GMT11
3080 GMT12
= _misc_
.DateTime_GMT12
3081 WET
= _misc_
.DateTime_WET
3082 WEST
= _misc_
.DateTime_WEST
3083 CET
= _misc_
.DateTime_CET
3084 CEST
= _misc_
.DateTime_CEST
3085 EET
= _misc_
.DateTime_EET
3086 EEST
= _misc_
.DateTime_EEST
3087 MSK
= _misc_
.DateTime_MSK
3088 MSD
= _misc_
.DateTime_MSD
3089 AST
= _misc_
.DateTime_AST
3090 ADT
= _misc_
.DateTime_ADT
3091 EST
= _misc_
.DateTime_EST
3092 EDT
= _misc_
.DateTime_EDT
3093 CST
= _misc_
.DateTime_CST
3094 CDT
= _misc_
.DateTime_CDT
3095 MST
= _misc_
.DateTime_MST
3096 MDT
= _misc_
.DateTime_MDT
3097 PST
= _misc_
.DateTime_PST
3098 PDT
= _misc_
.DateTime_PDT
3099 HST
= _misc_
.DateTime_HST
3100 AKST
= _misc_
.DateTime_AKST
3101 AKDT
= _misc_
.DateTime_AKDT
3102 A_WST
= _misc_
.DateTime_A_WST
3103 A_CST
= _misc_
.DateTime_A_CST
3104 A_EST
= _misc_
.DateTime_A_EST
3105 A_ESST
= _misc_
.DateTime_A_ESST
3106 UTC
= _misc_
.DateTime_UTC
3107 Gregorian
= _misc_
.DateTime_Gregorian
3108 Julian
= _misc_
.DateTime_Julian
3109 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3110 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3111 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3112 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3113 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3114 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3115 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3116 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3117 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3118 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3119 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3120 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3121 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3122 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3123 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3124 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3125 Gr_China
= _misc_
.DateTime_Gr_China
3126 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3127 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3128 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3129 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3130 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3131 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3132 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3133 Gr_France
= _misc_
.DateTime_Gr_France
3134 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3135 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3136 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3137 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3138 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3139 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3140 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3141 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3142 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3143 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3144 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3145 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3146 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3147 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3148 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3149 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3150 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3151 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3152 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3153 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3154 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3155 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3156 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3157 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3158 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3159 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3160 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3161 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3162 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3163 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3164 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3165 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3166 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3167 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3168 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3169 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3170 Gr_USA
= _misc_
.DateTime_Gr_USA
3171 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3172 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3173 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3174 Country_Default
= _misc_
.DateTime_Country_Default
3175 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3176 Country_EEC
= _misc_
.DateTime_Country_EEC
3177 France
= _misc_
.DateTime_France
3178 Germany
= _misc_
.DateTime_Germany
3179 UK
= _misc_
.DateTime_UK
3180 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3181 Russia
= _misc_
.DateTime_Russia
3182 USA
= _misc_
.DateTime_USA
3183 Jan
= _misc_
.DateTime_Jan
3184 Feb
= _misc_
.DateTime_Feb
3185 Mar
= _misc_
.DateTime_Mar
3186 Apr
= _misc_
.DateTime_Apr
3187 May
= _misc_
.DateTime_May
3188 Jun
= _misc_
.DateTime_Jun
3189 Jul
= _misc_
.DateTime_Jul
3190 Aug
= _misc_
.DateTime_Aug
3191 Sep
= _misc_
.DateTime_Sep
3192 Oct
= _misc_
.DateTime_Oct
3193 Nov
= _misc_
.DateTime_Nov
3194 Dec
= _misc_
.DateTime_Dec
3195 Inv_Month
= _misc_
.DateTime_Inv_Month
3196 Sun
= _misc_
.DateTime_Sun
3197 Mon
= _misc_
.DateTime_Mon
3198 Tue
= _misc_
.DateTime_Tue
3199 Wed
= _misc_
.DateTime_Wed
3200 Thu
= _misc_
.DateTime_Thu
3201 Fri
= _misc_
.DateTime_Fri
3202 Sat
= _misc_
.DateTime_Sat
3203 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3204 Inv_Year
= _misc_
.DateTime_Inv_Year
3205 Name_Full
= _misc_
.DateTime_Name_Full
3206 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3207 Default_First
= _misc_
.DateTime_Default_First
3208 Monday_First
= _misc_
.DateTime_Monday_First
3209 Sunday_First
= _misc_
.DateTime_Sunday_First
3210 def SetCountry(*args
, **kwargs
):
3211 """SetCountry(int country)"""
3212 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3214 SetCountry
= staticmethod(SetCountry
)
3215 def GetCountry(*args
, **kwargs
):
3216 """GetCountry() -> int"""
3217 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3219 GetCountry
= staticmethod(GetCountry
)
3220 def IsWestEuropeanCountry(*args
, **kwargs
):
3221 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3222 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3224 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3225 def GetCurrentYear(*args
, **kwargs
):
3226 """GetCurrentYear(int cal=Gregorian) -> int"""
3227 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3229 GetCurrentYear
= staticmethod(GetCurrentYear
)
3230 def ConvertYearToBC(*args
, **kwargs
):
3231 """ConvertYearToBC(int year) -> int"""
3232 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3234 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3235 def GetCurrentMonth(*args
, **kwargs
):
3236 """GetCurrentMonth(int cal=Gregorian) -> int"""
3237 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3239 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3240 def IsLeapYear(*args
, **kwargs
):
3241 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3242 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3244 IsLeapYear
= staticmethod(IsLeapYear
)
3245 def GetCentury(*args
, **kwargs
):
3246 """GetCentury(int year=Inv_Year) -> int"""
3247 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3249 GetCentury
= staticmethod(GetCentury
)
3250 def GetNumberOfDaysinYear(*args
, **kwargs
):
3251 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3252 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3254 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3255 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3256 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3257 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3259 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3260 def GetMonthName(*args
, **kwargs
):
3261 """GetMonthName(int month, int flags=Name_Full) -> String"""
3262 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3264 GetMonthName
= staticmethod(GetMonthName
)
3265 def GetWeekDayName(*args
, **kwargs
):
3266 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3267 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3269 GetWeekDayName
= staticmethod(GetWeekDayName
)
3270 def GetAmPmStrings(*args
, **kwargs
):
3272 GetAmPmStrings() -> (am, pm)
3274 Get the AM and PM strings in the current locale (may be empty)
3276 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3278 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3279 def IsDSTApplicable(*args
, **kwargs
):
3280 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3281 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3283 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3284 def GetBeginDST(*args
, **kwargs
):
3285 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3286 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3288 GetBeginDST
= staticmethod(GetBeginDST
)
3289 def GetEndDST(*args
, **kwargs
):
3290 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3291 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3293 GetEndDST
= staticmethod(GetEndDST
)
3294 def Now(*args
, **kwargs
):
3295 """Now() -> DateTime"""
3296 return _misc_
.DateTime_Now(*args
, **kwargs
)
3298 Now
= staticmethod(Now
)
3299 def UNow(*args
, **kwargs
):
3300 """UNow() -> DateTime"""
3301 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3303 UNow
= staticmethod(UNow
)
3304 def Today(*args
, **kwargs
):
3305 """Today() -> DateTime"""
3306 return _misc_
.DateTime_Today(*args
, **kwargs
)
3308 Today
= staticmethod(Today
)
3309 def __init__(self
, *args
, **kwargs
):
3310 """__init__(self) -> DateTime"""
3311 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3312 __swig_destroy__
= _misc_
.delete_DateTime
3313 __del__
= lambda self
: None;
3314 def SetToCurrent(*args
, **kwargs
):
3315 """SetToCurrent(self) -> DateTime"""
3316 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3318 def SetTimeT(*args
, **kwargs
):
3319 """SetTimeT(self, time_t timet) -> DateTime"""
3320 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3322 def SetJDN(*args
, **kwargs
):
3323 """SetJDN(self, double jdn) -> DateTime"""
3324 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3326 def SetHMS(*args
, **kwargs
):
3327 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3328 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3330 def Set(*args
, **kwargs
):
3332 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3333 int minute=0, int second=0, int millisec=0) -> DateTime
3335 return _misc_
.DateTime_Set(*args
, **kwargs
)
3337 def ResetTime(*args
, **kwargs
):
3338 """ResetTime(self) -> DateTime"""
3339 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3341 def SetYear(*args
, **kwargs
):
3342 """SetYear(self, int year) -> DateTime"""
3343 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3345 def SetMonth(*args
, **kwargs
):
3346 """SetMonth(self, int month) -> DateTime"""
3347 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3349 def SetDay(*args
, **kwargs
):
3350 """SetDay(self, int day) -> DateTime"""
3351 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3353 def SetHour(*args
, **kwargs
):
3354 """SetHour(self, int hour) -> DateTime"""
3355 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3357 def SetMinute(*args
, **kwargs
):
3358 """SetMinute(self, int minute) -> DateTime"""
3359 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3361 def SetSecond(*args
, **kwargs
):
3362 """SetSecond(self, int second) -> DateTime"""
3363 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3365 def SetMillisecond(*args
, **kwargs
):
3366 """SetMillisecond(self, int millisecond) -> DateTime"""
3367 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3369 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3370 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3371 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3373 def GetWeekDayInSameWeek(*args
, **kwargs
):
3374 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3375 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3377 def SetToNextWeekDay(*args
, **kwargs
):
3378 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3379 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3381 def GetNextWeekDay(*args
, **kwargs
):
3382 """GetNextWeekDay(self, int weekday) -> DateTime"""
3383 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3385 def SetToPrevWeekDay(*args
, **kwargs
):
3386 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3387 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3389 def GetPrevWeekDay(*args
, **kwargs
):
3390 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3391 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3393 def SetToWeekDay(*args
, **kwargs
):
3394 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3395 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3397 def SetToLastWeekDay(*args
, **kwargs
):
3398 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3399 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3401 def GetLastWeekDay(*args
, **kwargs
):
3402 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3403 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3405 def SetToTheWeek(*args
, **kwargs
):
3406 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3407 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3409 def GetWeek(*args
, **kwargs
):
3410 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3411 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3413 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3414 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3416 def SetToWeekOfYear(*args
, **kwargs
):
3417 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3418 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3420 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3421 def SetToLastMonthDay(*args
, **kwargs
):
3422 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3423 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3425 def GetLastMonthDay(*args
, **kwargs
):
3426 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3427 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3429 def SetToYearDay(*args
, **kwargs
):
3430 """SetToYearDay(self, int yday) -> DateTime"""
3431 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3433 def GetYearDay(*args
, **kwargs
):
3434 """GetYearDay(self, int yday) -> DateTime"""
3435 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3437 def GetJulianDayNumber(*args
, **kwargs
):
3438 """GetJulianDayNumber(self) -> double"""
3439 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3441 def GetJDN(*args
, **kwargs
):
3442 """GetJDN(self) -> double"""
3443 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3445 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3446 """GetModifiedJulianDayNumber(self) -> double"""
3447 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3449 def GetMJD(*args
, **kwargs
):
3450 """GetMJD(self) -> double"""
3451 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3453 def GetRataDie(*args
, **kwargs
):
3454 """GetRataDie(self) -> double"""
3455 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3457 def ToTimezone(*args
, **kwargs
):
3458 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3459 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3461 def MakeTimezone(*args
, **kwargs
):
3462 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3463 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3465 def FromTimezone(*args
, **kwargs
):
3466 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3467 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3469 def MakeFromTimezone(*args
, **kwargs
):
3470 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3471 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3473 def ToUTC(*args
, **kwargs
):
3474 """ToUTC(self, bool noDST=False) -> DateTime"""
3475 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3477 def MakeUTC(*args
, **kwargs
):
3478 """MakeUTC(self, bool noDST=False) -> DateTime"""
3479 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3481 def ToGMT(*args
, **kwargs
):
3482 """ToGMT(self, bool noDST=False) -> DateTime"""
3483 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3485 def MakeGMT(*args
, **kwargs
):
3486 """MakeGMT(self, bool noDST=False) -> DateTime"""
3487 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3489 def FromUTC(*args
, **kwargs
):
3490 """FromUTC(self, bool noDST=False) -> DateTime"""
3491 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3493 def MakeFromUTC(*args
, **kwargs
):
3494 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3495 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3497 def IsDST(*args
, **kwargs
):
3498 """IsDST(self, int country=Country_Default) -> int"""
3499 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3501 def IsValid(*args
, **kwargs
):
3502 """IsValid(self) -> bool"""
3503 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3506 def __nonzero__(self
): return self
.Ok()
3507 def GetTicks(*args
, **kwargs
):
3508 """GetTicks(self) -> time_t"""
3509 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3511 def GetYear(*args
, **kwargs
):
3512 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3513 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3515 def GetMonth(*args
, **kwargs
):
3516 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3517 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3519 def GetDay(*args
, **kwargs
):
3520 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3521 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3523 def GetWeekDay(*args
, **kwargs
):
3524 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3525 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3527 def GetHour(*args
, **kwargs
):
3528 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3529 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3531 def GetMinute(*args
, **kwargs
):
3532 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3533 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3535 def GetSecond(*args
, **kwargs
):
3536 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3537 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3539 def GetMillisecond(*args
, **kwargs
):
3540 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3541 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3543 def GetDayOfYear(*args
, **kwargs
):
3544 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3545 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3547 def GetWeekOfYear(*args
, **kwargs
):
3548 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3549 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3551 def GetWeekOfMonth(*args
, **kwargs
):
3552 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3553 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3555 def IsWorkDay(*args
, **kwargs
):
3556 """IsWorkDay(self, int country=Country_Default) -> bool"""
3557 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3559 def IsEqualTo(*args
, **kwargs
):
3560 """IsEqualTo(self, DateTime datetime) -> bool"""
3561 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3563 def IsEarlierThan(*args
, **kwargs
):
3564 """IsEarlierThan(self, DateTime datetime) -> bool"""
3565 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3567 def IsLaterThan(*args
, **kwargs
):
3568 """IsLaterThan(self, DateTime datetime) -> bool"""
3569 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3571 def IsStrictlyBetween(*args
, **kwargs
):
3572 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3573 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3575 def IsBetween(*args
, **kwargs
):
3576 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3577 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3579 def IsSameDate(*args
, **kwargs
):
3580 """IsSameDate(self, DateTime dt) -> bool"""
3581 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3583 def IsSameTime(*args
, **kwargs
):
3584 """IsSameTime(self, DateTime dt) -> bool"""
3585 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3587 def IsEqualUpTo(*args
, **kwargs
):
3588 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3589 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3591 def AddTS(*args
, **kwargs
):
3592 """AddTS(self, TimeSpan diff) -> DateTime"""
3593 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3595 def AddDS(*args
, **kwargs
):
3596 """AddDS(self, DateSpan diff) -> DateTime"""
3597 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3599 def SubtractTS(*args
, **kwargs
):
3600 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3601 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3603 def SubtractDS(*args
, **kwargs
):
3604 """SubtractDS(self, DateSpan diff) -> DateTime"""
3605 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3607 def Subtract(*args
, **kwargs
):
3608 """Subtract(self, DateTime dt) -> TimeSpan"""
3609 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3611 def __iadd__(*args
):
3613 __iadd__(self, TimeSpan diff) -> DateTime
3614 __iadd__(self, DateSpan diff) -> DateTime
3616 return _misc_
.DateTime___iadd__(*args
)
3618 def __isub__(*args
):
3620 __isub__(self, TimeSpan diff) -> DateTime
3621 __isub__(self, DateSpan diff) -> DateTime
3623 return _misc_
.DateTime___isub__(*args
)
3627 __add__(self, TimeSpan other) -> DateTime
3628 __add__(self, DateSpan other) -> DateTime
3630 return _misc_
.DateTime___add__(*args
)
3634 __sub__(self, DateTime other) -> TimeSpan
3635 __sub__(self, TimeSpan other) -> DateTime
3636 __sub__(self, DateSpan other) -> DateTime
3638 return _misc_
.DateTime___sub__(*args
)
3640 def __lt__(*args
, **kwargs
):
3641 """__lt__(self, DateTime other) -> bool"""
3642 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3644 def __le__(*args
, **kwargs
):
3645 """__le__(self, DateTime other) -> bool"""
3646 return _misc_
.DateTime___le__(*args
, **kwargs
)
3648 def __gt__(*args
, **kwargs
):
3649 """__gt__(self, DateTime other) -> bool"""
3650 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3652 def __ge__(*args
, **kwargs
):
3653 """__ge__(self, DateTime other) -> bool"""
3654 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3656 def __eq__(*args
, **kwargs
):
3657 """__eq__(self, DateTime other) -> bool"""
3658 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3660 def __ne__(*args
, **kwargs
):
3661 """__ne__(self, DateTime other) -> bool"""
3662 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3664 def ParseRfc822Date(*args
, **kwargs
):
3665 """ParseRfc822Date(self, String date) -> int"""
3666 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3668 def ParseFormat(*args
, **kwargs
):
3669 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3670 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3672 def ParseDateTime(*args
, **kwargs
):
3673 """ParseDateTime(self, String datetime) -> int"""
3674 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3676 def ParseDate(*args
, **kwargs
):
3677 """ParseDate(self, String date) -> int"""
3678 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3680 def ParseTime(*args
, **kwargs
):
3681 """ParseTime(self, String time) -> int"""
3682 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3684 def Format(*args
, **kwargs
):
3685 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3686 return _misc_
.DateTime_Format(*args
, **kwargs
)
3688 def FormatDate(*args
, **kwargs
):
3689 """FormatDate(self) -> String"""
3690 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3692 def FormatTime(*args
, **kwargs
):
3693 """FormatTime(self) -> String"""
3694 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3696 def FormatISODate(*args
, **kwargs
):
3697 """FormatISODate(self) -> String"""
3698 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3700 def FormatISOTime(*args
, **kwargs
):
3701 """FormatISOTime(self) -> String"""
3702 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3706 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3707 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
3709 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3712 return self
.Format().encode(wx
.GetDefaultPyEncoding())
3714 return "INVALID DateTime"
3716 DateTime_swigregister
= _misc_
.DateTime_swigregister
3717 DateTime_swigregister(DateTime
)
3718 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
3719 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
3721 def DateTime_SetCountry(*args
, **kwargs
):
3722 """DateTime_SetCountry(int country)"""
3723 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3725 def DateTime_GetCountry(*args
):
3726 """DateTime_GetCountry() -> int"""
3727 return _misc_
.DateTime_GetCountry(*args
)
3729 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3730 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3731 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3733 def DateTime_GetCurrentYear(*args
, **kwargs
):
3734 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3735 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3737 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3738 """DateTime_ConvertYearToBC(int year) -> int"""
3739 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3741 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3742 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3743 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3745 def DateTime_IsLeapYear(*args
, **kwargs
):
3746 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3747 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3749 def DateTime_GetCentury(*args
, **kwargs
):
3750 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3751 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3753 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3754 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3755 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3757 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3758 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3759 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3761 def DateTime_GetMonthName(*args
, **kwargs
):
3762 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3763 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3765 def DateTime_GetWeekDayName(*args
, **kwargs
):
3766 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3767 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3769 def DateTime_GetAmPmStrings(*args
):
3771 GetAmPmStrings() -> (am, pm)
3773 Get the AM and PM strings in the current locale (may be empty)
3775 return _misc_
.DateTime_GetAmPmStrings(*args
)
3777 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3778 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3779 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3781 def DateTime_GetBeginDST(*args
, **kwargs
):
3782 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3783 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3785 def DateTime_GetEndDST(*args
, **kwargs
):
3786 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3787 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3789 def DateTime_Now(*args
):
3790 """DateTime_Now() -> DateTime"""
3791 return _misc_
.DateTime_Now(*args
)
3793 def DateTime_UNow(*args
):
3794 """DateTime_UNow() -> DateTime"""
3795 return _misc_
.DateTime_UNow(*args
)
3797 def DateTime_Today(*args
):
3798 """DateTime_Today() -> DateTime"""
3799 return _misc_
.DateTime_Today(*args
)
3801 def DateTimeFromTimeT(*args
, **kwargs
):
3802 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3803 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3806 def DateTimeFromJDN(*args
, **kwargs
):
3807 """DateTimeFromJDN(double jdn) -> DateTime"""
3808 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3811 def DateTimeFromHMS(*args
, **kwargs
):
3812 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3813 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3816 def DateTimeFromDMY(*args
, **kwargs
):
3818 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3819 int minute=0, int second=0, int millisec=0) -> DateTime
3821 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3824 def DateTimeFromDateTime(*args
, **kwargs
):
3825 """DateTimeFromDateTime(DateTime date) -> DateTime"""
3826 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
3829 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
3830 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3831 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3833 class TimeSpan(object):
3834 """Proxy of C++ TimeSpan class"""
3835 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3836 __repr__
= _swig_repr
3837 def Seconds(*args
, **kwargs
):
3838 """Seconds(long sec) -> TimeSpan"""
3839 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3841 Seconds
= staticmethod(Seconds
)
3842 def Second(*args
, **kwargs
):
3843 """Second() -> TimeSpan"""
3844 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3846 Second
= staticmethod(Second
)
3847 def Minutes(*args
, **kwargs
):
3848 """Minutes(long min) -> TimeSpan"""
3849 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3851 Minutes
= staticmethod(Minutes
)
3852 def Minute(*args
, **kwargs
):
3853 """Minute() -> TimeSpan"""
3854 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3856 Minute
= staticmethod(Minute
)
3857 def Hours(*args
, **kwargs
):
3858 """Hours(long hours) -> TimeSpan"""
3859 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3861 Hours
= staticmethod(Hours
)
3862 def Hour(*args
, **kwargs
):
3863 """Hour() -> TimeSpan"""
3864 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3866 Hour
= staticmethod(Hour
)
3867 def Days(*args
, **kwargs
):
3868 """Days(long days) -> TimeSpan"""
3869 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3871 Days
= staticmethod(Days
)
3872 def Day(*args
, **kwargs
):
3873 """Day() -> TimeSpan"""
3874 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3876 Day
= staticmethod(Day
)
3877 def Weeks(*args
, **kwargs
):
3878 """Weeks(long days) -> TimeSpan"""
3879 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3881 Weeks
= staticmethod(Weeks
)
3882 def Week(*args
, **kwargs
):
3883 """Week() -> TimeSpan"""
3884 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3886 Week
= staticmethod(Week
)
3887 def __init__(self
, *args
, **kwargs
):
3888 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3889 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
3890 __swig_destroy__
= _misc_
.delete_TimeSpan
3891 __del__
= lambda self
: None;
3892 def Add(*args
, **kwargs
):
3893 """Add(self, TimeSpan diff) -> TimeSpan"""
3894 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3896 def Subtract(*args
, **kwargs
):
3897 """Subtract(self, TimeSpan diff) -> TimeSpan"""
3898 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
3900 def Multiply(*args
, **kwargs
):
3901 """Multiply(self, int n) -> TimeSpan"""
3902 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
3904 def Neg(*args
, **kwargs
):
3905 """Neg(self) -> TimeSpan"""
3906 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
3908 def Abs(*args
, **kwargs
):
3909 """Abs(self) -> TimeSpan"""
3910 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
3912 def __iadd__(*args
, **kwargs
):
3913 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
3914 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
3916 def __isub__(*args
, **kwargs
):
3917 """__isub__(self, TimeSpan diff) -> TimeSpan"""
3918 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
3920 def __imul__(*args
, **kwargs
):
3921 """__imul__(self, int n) -> TimeSpan"""
3922 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
3924 def __neg__(*args
, **kwargs
):
3925 """__neg__(self) -> TimeSpan"""
3926 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
3928 def __add__(*args
, **kwargs
):
3929 """__add__(self, TimeSpan other) -> TimeSpan"""
3930 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
3932 def __sub__(*args
, **kwargs
):
3933 """__sub__(self, TimeSpan other) -> TimeSpan"""
3934 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
3936 def __mul__(*args
, **kwargs
):
3937 """__mul__(self, int n) -> TimeSpan"""
3938 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
3940 def __rmul__(*args
, **kwargs
):
3941 """__rmul__(self, int n) -> TimeSpan"""
3942 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
3944 def __lt__(*args
, **kwargs
):
3945 """__lt__(self, TimeSpan other) -> bool"""
3946 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
3948 def __le__(*args
, **kwargs
):
3949 """__le__(self, TimeSpan other) -> bool"""
3950 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
3952 def __gt__(*args
, **kwargs
):
3953 """__gt__(self, TimeSpan other) -> bool"""
3954 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
3956 def __ge__(*args
, **kwargs
):
3957 """__ge__(self, TimeSpan other) -> bool"""
3958 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
3960 def __eq__(*args
, **kwargs
):
3961 """__eq__(self, TimeSpan other) -> bool"""
3962 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
3964 def __ne__(*args
, **kwargs
):
3965 """__ne__(self, TimeSpan other) -> bool"""
3966 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
3968 def IsNull(*args
, **kwargs
):
3969 """IsNull(self) -> bool"""
3970 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
3972 def IsPositive(*args
, **kwargs
):
3973 """IsPositive(self) -> bool"""
3974 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
3976 def IsNegative(*args
, **kwargs
):
3977 """IsNegative(self) -> bool"""
3978 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
3980 def IsEqualTo(*args
, **kwargs
):
3981 """IsEqualTo(self, TimeSpan ts) -> bool"""
3982 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3984 def IsLongerThan(*args
, **kwargs
):
3985 """IsLongerThan(self, TimeSpan ts) -> bool"""
3986 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3988 def IsShorterThan(*args
, **kwargs
):
3989 """IsShorterThan(self, TimeSpan t) -> bool"""
3990 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
3992 def GetWeeks(*args
, **kwargs
):
3993 """GetWeeks(self) -> int"""
3994 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
3996 def GetDays(*args
, **kwargs
):
3997 """GetDays(self) -> int"""
3998 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4000 def GetHours(*args
, **kwargs
):
4001 """GetHours(self) -> int"""
4002 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4004 def GetMinutes(*args
, **kwargs
):
4005 """GetMinutes(self) -> int"""
4006 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4008 def GetSeconds(*args
, **kwargs
):
4009 """GetSeconds(self) -> wxLongLong"""
4010 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4012 def GetMilliseconds(*args
, **kwargs
):
4013 """GetMilliseconds(self) -> wxLongLong"""
4014 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4016 def Format(*args
, **kwargs
):
4017 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4018 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4021 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4022 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4024 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4026 TimeSpan_swigregister
= _misc_
.TimeSpan_swigregister
4027 TimeSpan_swigregister(TimeSpan
)
4029 def TimeSpan_Seconds(*args
, **kwargs
):
4030 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4031 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4033 def TimeSpan_Second(*args
):
4034 """TimeSpan_Second() -> TimeSpan"""
4035 return _misc_
.TimeSpan_Second(*args
)
4037 def TimeSpan_Minutes(*args
, **kwargs
):
4038 """TimeSpan_Minutes(long min) -> TimeSpan"""
4039 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4041 def TimeSpan_Minute(*args
):
4042 """TimeSpan_Minute() -> TimeSpan"""
4043 return _misc_
.TimeSpan_Minute(*args
)
4045 def TimeSpan_Hours(*args
, **kwargs
):
4046 """TimeSpan_Hours(long hours) -> TimeSpan"""
4047 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4049 def TimeSpan_Hour(*args
):
4050 """TimeSpan_Hour() -> TimeSpan"""
4051 return _misc_
.TimeSpan_Hour(*args
)
4053 def TimeSpan_Days(*args
, **kwargs
):
4054 """TimeSpan_Days(long days) -> TimeSpan"""
4055 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4057 def TimeSpan_Day(*args
):
4058 """TimeSpan_Day() -> TimeSpan"""
4059 return _misc_
.TimeSpan_Day(*args
)
4061 def TimeSpan_Weeks(*args
, **kwargs
):
4062 """TimeSpan_Weeks(long days) -> TimeSpan"""
4063 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4065 def TimeSpan_Week(*args
):
4066 """TimeSpan_Week() -> TimeSpan"""
4067 return _misc_
.TimeSpan_Week(*args
)
4069 class DateSpan(object):
4070 """Proxy of C++ DateSpan class"""
4071 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4072 __repr__
= _swig_repr
4073 def __init__(self
, *args
, **kwargs
):
4074 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4075 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4076 __swig_destroy__
= _misc_
.delete_DateSpan
4077 __del__
= lambda self
: None;
4078 def Days(*args
, **kwargs
):
4079 """Days(int days) -> DateSpan"""
4080 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4082 Days
= staticmethod(Days
)
4083 def Day(*args
, **kwargs
):
4084 """Day() -> DateSpan"""
4085 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4087 Day
= staticmethod(Day
)
4088 def Weeks(*args
, **kwargs
):
4089 """Weeks(int weeks) -> DateSpan"""
4090 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4092 Weeks
= staticmethod(Weeks
)
4093 def Week(*args
, **kwargs
):
4094 """Week() -> DateSpan"""
4095 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4097 Week
= staticmethod(Week
)
4098 def Months(*args
, **kwargs
):
4099 """Months(int mon) -> DateSpan"""
4100 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4102 Months
= staticmethod(Months
)
4103 def Month(*args
, **kwargs
):
4104 """Month() -> DateSpan"""
4105 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4107 Month
= staticmethod(Month
)
4108 def Years(*args
, **kwargs
):
4109 """Years(int years) -> DateSpan"""
4110 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4112 Years
= staticmethod(Years
)
4113 def Year(*args
, **kwargs
):
4114 """Year() -> DateSpan"""
4115 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4117 Year
= staticmethod(Year
)
4118 def SetYears(*args
, **kwargs
):
4119 """SetYears(self, int n) -> DateSpan"""
4120 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4122 def SetMonths(*args
, **kwargs
):
4123 """SetMonths(self, int n) -> DateSpan"""
4124 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4126 def SetWeeks(*args
, **kwargs
):
4127 """SetWeeks(self, int n) -> DateSpan"""
4128 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4130 def SetDays(*args
, **kwargs
):
4131 """SetDays(self, int n) -> DateSpan"""
4132 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4134 def GetYears(*args
, **kwargs
):
4135 """GetYears(self) -> int"""
4136 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4138 def GetMonths(*args
, **kwargs
):
4139 """GetMonths(self) -> int"""
4140 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4142 def GetWeeks(*args
, **kwargs
):
4143 """GetWeeks(self) -> int"""
4144 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4146 def GetDays(*args
, **kwargs
):
4147 """GetDays(self) -> int"""
4148 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4150 def GetTotalDays(*args
, **kwargs
):
4151 """GetTotalDays(self) -> int"""
4152 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4154 def Add(*args
, **kwargs
):
4155 """Add(self, DateSpan other) -> DateSpan"""
4156 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4158 def Subtract(*args
, **kwargs
):
4159 """Subtract(self, DateSpan other) -> DateSpan"""
4160 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4162 def Neg(*args
, **kwargs
):
4163 """Neg(self) -> DateSpan"""
4164 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4166 def Multiply(*args
, **kwargs
):
4167 """Multiply(self, int factor) -> DateSpan"""
4168 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4170 def __iadd__(*args
, **kwargs
):
4171 """__iadd__(self, DateSpan other) -> DateSpan"""
4172 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4174 def __isub__(*args
, **kwargs
):
4175 """__isub__(self, DateSpan other) -> DateSpan"""
4176 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4178 def __neg__(*args
, **kwargs
):
4179 """__neg__(self) -> DateSpan"""
4180 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4182 def __imul__(*args
, **kwargs
):
4183 """__imul__(self, int factor) -> DateSpan"""
4184 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4186 def __add__(*args
, **kwargs
):
4187 """__add__(self, DateSpan other) -> DateSpan"""
4188 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4190 def __sub__(*args
, **kwargs
):
4191 """__sub__(self, DateSpan other) -> DateSpan"""
4192 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4194 def __mul__(*args
, **kwargs
):
4195 """__mul__(self, int n) -> DateSpan"""
4196 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4198 def __rmul__(*args
, **kwargs
):
4199 """__rmul__(self, int n) -> DateSpan"""
4200 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4202 def __eq__(*args
, **kwargs
):
4203 """__eq__(self, DateSpan other) -> bool"""
4204 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4206 def __ne__(*args
, **kwargs
):
4207 """__ne__(self, DateSpan other) -> bool"""
4208 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4210 DateSpan_swigregister
= _misc_
.DateSpan_swigregister
4211 DateSpan_swigregister(DateSpan
)
4213 def DateSpan_Days(*args
, **kwargs
):
4214 """DateSpan_Days(int days) -> DateSpan"""
4215 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4217 def DateSpan_Day(*args
):
4218 """DateSpan_Day() -> DateSpan"""
4219 return _misc_
.DateSpan_Day(*args
)
4221 def DateSpan_Weeks(*args
, **kwargs
):
4222 """DateSpan_Weeks(int weeks) -> DateSpan"""
4223 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4225 def DateSpan_Week(*args
):
4226 """DateSpan_Week() -> DateSpan"""
4227 return _misc_
.DateSpan_Week(*args
)
4229 def DateSpan_Months(*args
, **kwargs
):
4230 """DateSpan_Months(int mon) -> DateSpan"""
4231 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4233 def DateSpan_Month(*args
):
4234 """DateSpan_Month() -> DateSpan"""
4235 return _misc_
.DateSpan_Month(*args
)
4237 def DateSpan_Years(*args
, **kwargs
):
4238 """DateSpan_Years(int years) -> DateSpan"""
4239 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4241 def DateSpan_Year(*args
):
4242 """DateSpan_Year() -> DateSpan"""
4243 return _misc_
.DateSpan_Year(*args
)
4246 def GetLocalTime(*args
):
4247 """GetLocalTime() -> long"""
4248 return _misc_
.GetLocalTime(*args
)
4250 def GetUTCTime(*args
):
4251 """GetUTCTime() -> long"""
4252 return _misc_
.GetUTCTime(*args
)
4254 def GetCurrentTime(*args
):
4255 """GetCurrentTime() -> long"""
4256 return _misc_
.GetCurrentTime(*args
)
4258 def GetLocalTimeMillis(*args
):
4259 """GetLocalTimeMillis() -> wxLongLong"""
4260 return _misc_
.GetLocalTimeMillis(*args
)
4261 #---------------------------------------------------------------------------
4263 DF_INVALID
= _misc_
.DF_INVALID
4264 DF_TEXT
= _misc_
.DF_TEXT
4265 DF_BITMAP
= _misc_
.DF_BITMAP
4266 DF_METAFILE
= _misc_
.DF_METAFILE
4267 DF_SYLK
= _misc_
.DF_SYLK
4268 DF_DIF
= _misc_
.DF_DIF
4269 DF_TIFF
= _misc_
.DF_TIFF
4270 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4271 DF_DIB
= _misc_
.DF_DIB
4272 DF_PALETTE
= _misc_
.DF_PALETTE
4273 DF_PENDATA
= _misc_
.DF_PENDATA
4274 DF_RIFF
= _misc_
.DF_RIFF
4275 DF_WAVE
= _misc_
.DF_WAVE
4276 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4277 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4278 DF_FILENAME
= _misc_
.DF_FILENAME
4279 DF_LOCALE
= _misc_
.DF_LOCALE
4280 DF_PRIVATE
= _misc_
.DF_PRIVATE
4281 DF_HTML
= _misc_
.DF_HTML
4282 DF_MAX
= _misc_
.DF_MAX
4283 class DataFormat(object):
4285 A wx.DataFormat is an encapsulation of a platform-specific format
4286 handle which is used by the system for the clipboard and drag and drop
4287 operations. The applications are usually only interested in, for
4288 example, pasting data from the clipboard only if the data is in a
4289 format the program understands. A data format is is used to uniquely
4290 identify this format.
4292 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4293 __repr__
= _swig_repr
4294 def __init__(self
, *args
, **kwargs
):
4296 __init__(self, int type) -> DataFormat
4298 Constructs a data format object for one of the standard data formats
4299 or an empty data object (use SetType or SetId later in this case)
4301 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4302 __swig_destroy__
= _misc_
.delete_DataFormat
4303 __del__
= lambda self
: None;
4306 __eq__(self, int format) -> bool
4307 __eq__(self, DataFormat format) -> bool
4309 return _misc_
.DataFormat___eq__(*args
)
4313 __ne__(self, int format) -> bool
4314 __ne__(self, DataFormat format) -> bool
4316 return _misc_
.DataFormat___ne__(*args
)
4318 def SetType(*args
, **kwargs
):
4320 SetType(self, int format)
4322 Sets the format to the given value, which should be one of wx.DF_XXX
4325 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4327 def GetType(*args
, **kwargs
):
4329 GetType(self) -> int
4331 Returns the platform-specific number identifying the format.
4333 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4335 def GetId(*args
, **kwargs
):
4337 GetId(self) -> String
4339 Returns the name of a custom format (this function will fail for a
4342 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4344 def SetId(*args
, **kwargs
):
4346 SetId(self, String format)
4348 Sets the format to be the custom format identified by the given name.
4350 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4352 DataFormat_swigregister
= _misc_
.DataFormat_swigregister
4353 DataFormat_swigregister(DataFormat
)
4354 DefaultDateTime
= cvar
.DefaultDateTime
4356 def CustomDataFormat(*args
, **kwargs
):
4358 CustomDataFormat(String format) -> DataFormat
4360 Constructs a data format object for a custom format identified by its
4363 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4366 class DataObject(object):
4368 A wx.DataObject represents data that can be copied to or from the
4369 clipboard, or dragged and dropped. The important thing about
4370 wx.DataObject is that this is a 'smart' piece of data unlike usual
4371 'dumb' data containers such as memory buffers or files. Being 'smart'
4372 here means that the data object itself should know what data formats
4373 it supports and how to render itself in each of supported formats.
4375 **NOTE**: This class is an abstract base class and can not be used
4376 directly from Python. If you need a custom type of data object then
4377 you should instead derive from `wx.PyDataObjectSimple` or use
4378 `wx.CustomDataObject`.
4381 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4382 def __init__(self
): raise AttributeError, "No constructor defined"
4383 __repr__
= _swig_repr
4384 Get
= _misc_
.DataObject_Get
4385 Set
= _misc_
.DataObject_Set
4386 Both
= _misc_
.DataObject_Both
4387 __swig_destroy__
= _misc_
.delete_DataObject
4388 __del__
= lambda self
: None;
4389 def GetPreferredFormat(*args
, **kwargs
):
4391 GetPreferredFormat(self, int dir=Get) -> DataFormat
4393 Returns the preferred format for either rendering the data (if dir is
4394 Get, its default value) or for setting it. Usually this will be the
4395 native format of the wx.DataObject.
4397 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4399 def GetFormatCount(*args
, **kwargs
):
4401 GetFormatCount(self, int dir=Get) -> size_t
4403 Returns the number of available formats for rendering or setting the
4406 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4408 def IsSupported(*args
, **kwargs
):
4410 IsSupported(self, DataFormat format, int dir=Get) -> bool
4412 Returns True if this format is supported.
4414 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4416 def GetDataSize(*args
, **kwargs
):
4418 GetDataSize(self, DataFormat format) -> size_t
4420 Get the (total) size of data for the given format
4422 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4424 def GetAllFormats(*args
, **kwargs
):
4426 GetAllFormats(self, int dir=Get) -> [formats]
4428 Returns a list of all the wx.DataFormats that this dataobject supports
4429 in the given direction.
4431 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4433 def GetDataHere(*args
, **kwargs
):
4435 GetDataHere(self, DataFormat format) -> String
4437 Get the data bytes in the specified format, returns None on failure.
4439 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4441 def SetData(*args
, **kwargs
):
4443 SetData(self, DataFormat format, String data) -> bool
4445 Set the data in the specified format from the bytes in the the data string.
4448 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4450 DataObject_swigregister
= _misc_
.DataObject_swigregister
4451 DataObject_swigregister(DataObject
)
4452 FormatInvalid
= cvar
.FormatInvalid
4454 class DataObjectSimple(DataObject
):
4456 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4457 format. This is the simplest possible `wx.DataObject` implementation.
4459 This is still an "abstract base class" meaning that you can't use it
4460 directly. You either need to use one of the predefined base classes,
4461 or derive your own class from `wx.PyDataObjectSimple`.
4464 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4465 __repr__
= _swig_repr
4466 def __init__(self
, *args
, **kwargs
):
4468 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4470 Constructor accepts the supported format (none by default) which may
4471 also be set later with `SetFormat`.
4473 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4474 def GetFormat(*args
, **kwargs
):
4476 GetFormat(self) -> DataFormat
4478 Returns the (one and only one) format supported by this object. It is
4479 assumed that the format is supported in both directions.
4481 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4483 def SetFormat(*args
, **kwargs
):
4485 SetFormat(self, DataFormat format)
4487 Sets the supported format.
4489 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4491 def GetDataSize(*args
, **kwargs
):
4493 GetDataSize(self) -> size_t
4495 Get the size of our data.
4497 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4499 def GetDataHere(*args
, **kwargs
):
4501 GetDataHere(self) -> String
4503 Returns the data bytes from the data object as a string, returns None
4504 on failure. Must be implemented in the derived class if the object
4505 supports rendering its data.
4507 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4509 def SetData(*args
, **kwargs
):
4511 SetData(self, String data) -> bool
4513 Copy the data value to the data object. Must be implemented in the
4514 derived class if the object supports setting its data.
4517 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4519 DataObjectSimple_swigregister
= _misc_
.DataObjectSimple_swigregister
4520 DataObjectSimple_swigregister(DataObjectSimple
)
4522 class PyDataObjectSimple(DataObjectSimple
):
4524 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4525 Python-aware and knows how to reflect calls to its C++ virtual methods
4526 to methods in the Python derived class. You should derive from this
4527 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4528 need to create your own simple single-format type of `wx.DataObject`.
4531 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4532 __repr__
= _swig_repr
4533 def __init__(self
, *args
, **kwargs
):
4535 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4537 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4538 Python-aware and knows how to reflect calls to its C++ virtual methods
4539 to methods in the Python derived class. You should derive from this
4540 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4541 need to create your own simple single-format type of `wx.DataObject`.
4544 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4545 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4547 def _setCallbackInfo(*args
, **kwargs
):
4548 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4549 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4551 PyDataObjectSimple_swigregister
= _misc_
.PyDataObjectSimple_swigregister
4552 PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4554 class DataObjectComposite(DataObject
):
4556 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4557 which may be sued to support multiple formats. It contains several
4558 'wx.DataObjectSimple` objects and supports any format supported by at
4559 least one of them. Only one of these data objects is *preferred* (the
4560 first one if not explicitly changed by using the second parameter of
4561 `Add`) and its format determines the preferred format of the composite
4562 data object as well.
4564 See `wx.DataObject` documentation for the reasons why you might prefer
4565 to use wx.DataObject directly instead of wx.DataObjectComposite for
4569 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4570 __repr__
= _swig_repr
4571 def __init__(self
, *args
, **kwargs
):
4573 __init__(self) -> DataObjectComposite
4575 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4576 which may be sued to support multiple formats. It contains several
4577 'wx.DataObjectSimple` objects and supports any format supported by at
4578 least one of them. Only one of these data objects is *preferred* (the
4579 first one if not explicitly changed by using the second parameter of
4580 `Add`) and its format determines the preferred format of the composite
4581 data object as well.
4583 See `wx.DataObject` documentation for the reasons why you might prefer
4584 to use wx.DataObject directly instead of wx.DataObjectComposite for
4588 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4589 def Add(*args
, **kwargs
):
4591 Add(self, DataObjectSimple dataObject, bool preferred=False)
4593 Adds the dataObject to the list of supported objects and it becomes
4594 the preferred object if preferred is True.
4596 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4598 DataObjectComposite_swigregister
= _misc_
.DataObjectComposite_swigregister
4599 DataObjectComposite_swigregister(DataObjectComposite
)
4601 class TextDataObject(DataObjectSimple
):
4603 wx.TextDataObject is a specialization of `wx.DataObject` for text
4604 data. It can be used without change to paste data into the `wx.Clipboard`
4605 or a `wx.DropSource`.
4607 Alternativly, you may wish to derive a new class from the
4608 `wx.PyTextDataObject` class for providing text on-demand in order to
4609 minimize memory consumption when offering data in several formats,
4610 such as plain text and RTF, because by default the text is stored in a
4611 string in this class, but it might as well be generated on demand when
4612 requested. For this, `GetTextLength` and `GetText` will have to be
4615 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4616 __repr__
= _swig_repr
4617 def __init__(self
, *args
, **kwargs
):
4619 __init__(self, String text=EmptyString) -> TextDataObject
4621 Constructor, may be used to initialise the text (otherwise `SetText`
4622 should be used later).
4624 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4625 def GetTextLength(*args
, **kwargs
):
4627 GetTextLength(self) -> size_t
4629 Returns the data size. By default, returns the size of the text data
4630 set in the constructor or using `SetText`. This can be overridden (via
4631 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4632 recommended to return the text length plus 1 for a trailing zero, but
4633 this is not strictly required.
4635 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4637 def GetText(*args
, **kwargs
):
4639 GetText(self) -> String
4641 Returns the text associated with the data object.
4643 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4645 def SetText(*args
, **kwargs
):
4647 SetText(self, String text)
4649 Sets the text associated with the data object. This method is called
4650 when the data object receives the data and, by default, copies the
4651 text into the member variable. If you want to process the text on the
4652 fly you may wish to override this function (via
4653 `wx.PyTextDataObject`.)
4655 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4657 TextDataObject_swigregister
= _misc_
.TextDataObject_swigregister
4658 TextDataObject_swigregister(TextDataObject
)
4660 class PyTextDataObject(TextDataObject
):
4662 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4663 Python-aware and knows how to reflect calls to its C++ virtual methods
4664 to methods in the Python derived class. You should derive from this
4665 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4666 want to be able to provide text on demand instead of preloading it
4667 into the data object.
4669 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4670 __repr__
= _swig_repr
4671 def __init__(self
, *args
, **kwargs
):
4673 __init__(self, String text=EmptyString) -> PyTextDataObject
4675 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4676 Python-aware and knows how to reflect calls to its C++ virtual methods
4677 to methods in the Python derived class. You should derive from this
4678 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4679 want to be able to provide text on demand instead of preloading it
4680 into the data object.
4682 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
4683 self
._setCallbackInfo
(self
, PyTextDataObject
)
4685 def _setCallbackInfo(*args
, **kwargs
):
4686 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4687 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4689 PyTextDataObject_swigregister
= _misc_
.PyTextDataObject_swigregister
4690 PyTextDataObject_swigregister(PyTextDataObject
)
4692 class BitmapDataObject(DataObjectSimple
):
4694 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
4695 data. It can be used without change to paste data into the `wx.Clipboard`
4696 or a `wx.DropSource`.
4699 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4700 __repr__
= _swig_repr
4701 def __init__(self
, *args
, **kwargs
):
4703 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
4705 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
4708 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
4709 def GetBitmap(*args
, **kwargs
):
4711 GetBitmap(self) -> Bitmap
4713 Returns the bitmap associated with the data object. You may wish to
4714 override this method (by deriving from `wx.PyBitmapDataObject`) when
4715 offering data on-demand, but this is not required by wxWidgets'
4716 internals. Use this method to get data in bitmap form from the
4719 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4721 def SetBitmap(*args
, **kwargs
):
4723 SetBitmap(self, Bitmap bitmap)
4725 Sets the bitmap associated with the data object. This method is called
4726 when the data object receives data. Usually there will be no reason to
4727 override this function.
4729 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4731 BitmapDataObject_swigregister
= _misc_
.BitmapDataObject_swigregister
4732 BitmapDataObject_swigregister(BitmapDataObject
)
4734 class PyBitmapDataObject(BitmapDataObject
):
4736 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4737 Python-aware and knows how to reflect calls to its C++ virtual methods
4738 to methods in the Python derived class. To be able to provide bitmap
4739 data on demand derive from this class and overload `GetBitmap`.
4741 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4742 __repr__
= _swig_repr
4743 def __init__(self
, *args
, **kwargs
):
4745 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
4747 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4748 Python-aware and knows how to reflect calls to its C++ virtual methods
4749 to methods in the Python derived class. To be able to provide bitmap
4750 data on demand derive from this class and overload `GetBitmap`.
4752 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
4753 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4755 def _setCallbackInfo(*args
, **kwargs
):
4756 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4757 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4759 PyBitmapDataObject_swigregister
= _misc_
.PyBitmapDataObject_swigregister
4760 PyBitmapDataObject_swigregister(PyBitmapDataObject
)
4762 class FileDataObject(DataObjectSimple
):
4764 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
4765 file names. The program works with it just as if it were a list of
4766 absolute file names, but internally it uses the same format as
4767 Explorer and other compatible programs under Windows or GNOME/KDE
4768 filemanager under Unix which makes it possible to receive files from
4769 them using this class.
4771 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4772 __repr__
= _swig_repr
4773 def __init__(self
, *args
, **kwargs
):
4774 """__init__(self) -> FileDataObject"""
4775 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
4776 def GetFilenames(*args
, **kwargs
):
4778 GetFilenames(self) -> [names]
4780 Returns a list of file names.
4782 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4784 def AddFile(*args
, **kwargs
):
4786 AddFile(self, String filename)
4788 Adds a file to the list of files represented by this data object.
4790 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
4792 FileDataObject_swigregister
= _misc_
.FileDataObject_swigregister
4793 FileDataObject_swigregister(FileDataObject
)
4795 class CustomDataObject(DataObjectSimple
):
4797 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
4798 some application-specific data in arbitrary format. Python strings
4799 are used for getting and setting data, but any picklable object can
4800 easily be transfered via strings. A copy of the data is stored in the
4803 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4804 __repr__
= _swig_repr
4805 def __init__(self
, *args
):
4807 __init__(self, DataFormat format) -> CustomDataObject
4808 __init__(self, String formatName) -> CustomDataObject
4809 __init__(self) -> CustomDataObject
4811 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
4812 some application-specific data in arbitrary format. Python strings
4813 are used for getting and setting data, but any picklable object can
4814 easily be transfered via strings. A copy of the data is stored in the
4817 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
4818 def SetData(*args
, **kwargs
):
4820 SetData(self, String data) -> bool
4822 Copy the data value to the data object.
4824 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
4827 def GetSize(*args
, **kwargs
):
4829 GetSize(self) -> size_t
4831 Get the size of the data.
4833 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
4835 def GetData(*args
, **kwargs
):
4837 GetData(self) -> String
4839 Returns the data bytes from the data object as a string.
4841 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
4843 CustomDataObject_swigregister
= _misc_
.CustomDataObject_swigregister
4844 CustomDataObject_swigregister(CustomDataObject
)
4846 class URLDataObject(DataObject
):
4848 This data object holds a URL in a format that is compatible with some
4849 browsers such that it is able to be dragged to or from them.
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) -> URLDataObject
4857 This data object holds a URL in a format that is compatible with some
4858 browsers such that it is able to be dragged to or from them.
4860 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
4861 def GetURL(*args
, **kwargs
):
4863 GetURL(self) -> String
4865 Returns a string containing the current URL.
4867 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
4869 def SetURL(*args
, **kwargs
):
4871 SetURL(self, String url)
4875 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
4877 URLDataObject_swigregister
= _misc_
.URLDataObject_swigregister
4878 URLDataObject_swigregister(URLDataObject
)
4880 class MetafileDataObject(DataObjectSimple
):
4881 """Proxy of C++ MetafileDataObject class"""
4882 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4883 __repr__
= _swig_repr
4884 def __init__(self
, *args
, **kwargs
):
4885 """__init__(self) -> MetafileDataObject"""
4886 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
4887 MetafileDataObject_swigregister
= _misc_
.MetafileDataObject_swigregister
4888 MetafileDataObject_swigregister(MetafileDataObject
)
4890 #---------------------------------------------------------------------------
4892 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
4893 Drag_AllowMove
= _misc_
.Drag_AllowMove
4894 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
4895 DragError
= _misc_
.DragError
4896 DragNone
= _misc_
.DragNone
4897 DragCopy
= _misc_
.DragCopy
4898 DragMove
= _misc_
.DragMove
4899 DragLink
= _misc_
.DragLink
4900 DragCancel
= _misc_
.DragCancel
4902 def IsDragResultOk(*args
, **kwargs
):
4903 """IsDragResultOk(int res) -> bool"""
4904 return _misc_
.IsDragResultOk(*args
, **kwargs
)
4905 class DropSource(object):
4906 """Proxy of C++ DropSource class"""
4907 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4908 __repr__
= _swig_repr
4909 def __init__(self
, *args
, **kwargs
):
4911 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
4912 Icon none=wxNullIcon) -> DropSource
4914 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
4915 self
._setCallbackInfo
(self
, DropSource
, 0)
4917 def _setCallbackInfo(*args
, **kwargs
):
4918 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
4919 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
4921 __swig_destroy__
= _misc_
.delete_DropSource
4922 __del__
= lambda self
: None;
4923 def SetData(*args
, **kwargs
):
4924 """SetData(self, DataObject data)"""
4925 return _misc_
.DropSource_SetData(*args
, **kwargs
)
4927 def GetDataObject(*args
, **kwargs
):
4928 """GetDataObject(self) -> DataObject"""
4929 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
4931 def SetCursor(*args
, **kwargs
):
4932 """SetCursor(self, int res, Cursor cursor)"""
4933 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
4935 def DoDragDrop(*args
, **kwargs
):
4936 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
4937 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
4939 def GiveFeedback(*args
, **kwargs
):
4940 """GiveFeedback(self, int effect) -> bool"""
4941 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
4943 def base_GiveFeedback(*args
, **kw
):
4944 return DropSource
.GiveFeedback(*args
, **kw
)
4945 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
4946 "Please use DropSource.GiveFeedback instead.")
4948 DropSource_swigregister
= _misc_
.DropSource_swigregister
4949 DropSource_swigregister(DropSource
)
4951 def DROP_ICON(filename
):
4953 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
4954 ``filename``. This function is useful with the `wx.DropSource` class
4955 which, depending on platform accepts either a icon or a cursor.
4957 img
= wx
.Image(filename
)
4958 if wx
.Platform
== '__WXGTK__':
4959 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
4961 return wx
.CursorFromImage(img
)
4963 class DropTarget(object):
4964 """Proxy of C++ DropTarget class"""
4965 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4966 __repr__
= _swig_repr
4967 def __init__(self
, *args
, **kwargs
):
4968 """__init__(self, DataObject dataObject=None) -> DropTarget"""
4969 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
4970 self
._setCallbackInfo
(self
, DropTarget
)
4972 def _setCallbackInfo(*args
, **kwargs
):
4973 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4974 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4976 __swig_destroy__
= _misc_
.delete_DropTarget
4977 __del__
= lambda self
: None;
4978 def GetDataObject(*args
, **kwargs
):
4979 """GetDataObject(self) -> DataObject"""
4980 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
4982 def SetDataObject(*args
, **kwargs
):
4983 """SetDataObject(self, DataObject dataObject)"""
4984 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
4986 def OnEnter(*args
, **kwargs
):
4987 """OnEnter(self, int x, int y, int def) -> int"""
4988 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
4990 def OnDragOver(*args
, **kwargs
):
4991 """OnDragOver(self, int x, int y, int def) -> int"""
4992 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
4994 def OnLeave(*args
, **kwargs
):
4996 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
4998 def OnDrop(*args
, **kwargs
):
4999 """OnDrop(self, int x, int y) -> bool"""
5000 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5002 def base_OnEnter(*args
, **kw
):
5003 return DropTarget
.OnEnter(*args
, **kw
)
5004 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5005 "Please use DropTarget.OnEnter instead.")
5007 def base_OnDragOver(*args
, **kw
):
5008 return DropTarget
.OnDragOver(*args
, **kw
)
5009 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5010 "Please use DropTarget.OnDragOver instead.")
5012 def base_OnLeave(*args
, **kw
):
5013 return DropTarget
.OnLeave(*args
, **kw
)
5014 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5015 "Please use DropTarget.OnLeave instead.")
5017 def base_OnDrop(*args
, **kw
):
5018 return DropTarget
.OnDrop(*args
, **kw
)
5019 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5020 "Please use DropTarget.OnDrop instead.")
5022 def GetData(*args
, **kwargs
):
5023 """GetData(self) -> bool"""
5024 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5026 def SetDefaultAction(*args
, **kwargs
):
5027 """SetDefaultAction(self, int action)"""
5028 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5030 def GetDefaultAction(*args
, **kwargs
):
5031 """GetDefaultAction(self) -> int"""
5032 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5034 DropTarget_swigregister
= _misc_
.DropTarget_swigregister
5035 DropTarget_swigregister(DropTarget
)
5037 PyDropTarget
= DropTarget
5038 class TextDropTarget(DropTarget
):
5039 """Proxy of C++ TextDropTarget class"""
5040 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5041 __repr__
= _swig_repr
5042 def __init__(self
, *args
, **kwargs
):
5043 """__init__(self) -> TextDropTarget"""
5044 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5045 self
._setCallbackInfo
(self
, TextDropTarget
)
5047 def _setCallbackInfo(*args
, **kwargs
):
5048 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5049 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5051 def OnDropText(*args
, **kwargs
):
5052 """OnDropText(self, int x, int y, String text) -> bool"""
5053 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5055 def OnEnter(*args
, **kwargs
):
5056 """OnEnter(self, int x, int y, int def) -> int"""
5057 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5059 def OnDragOver(*args
, **kwargs
):
5060 """OnDragOver(self, int x, int y, int def) -> int"""
5061 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5063 def OnLeave(*args
, **kwargs
):
5065 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5067 def OnDrop(*args
, **kwargs
):
5068 """OnDrop(self, int x, int y) -> bool"""
5069 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5071 def OnData(*args
, **kwargs
):
5072 """OnData(self, int x, int y, int def) -> int"""
5073 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5075 def base_OnDropText(*args
, **kw
):
5076 return TextDropTarget
.OnDropText(*args
, **kw
)
5077 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5078 "Please use TextDropTarget.OnDropText instead.")
5080 def base_OnEnter(*args
, **kw
):
5081 return TextDropTarget
.OnEnter(*args
, **kw
)
5082 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5083 "Please use TextDropTarget.OnEnter instead.")
5085 def base_OnDragOver(*args
, **kw
):
5086 return TextDropTarget
.OnDragOver(*args
, **kw
)
5087 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5088 "Please use TextDropTarget.OnDragOver instead.")
5090 def base_OnLeave(*args
, **kw
):
5091 return TextDropTarget
.OnLeave(*args
, **kw
)
5092 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5093 "Please use TextDropTarget.OnLeave instead.")
5095 def base_OnDrop(*args
, **kw
):
5096 return TextDropTarget
.OnDrop(*args
, **kw
)
5097 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5098 "Please use TextDropTarget.OnDrop instead.")
5100 def base_OnData(*args
, **kw
):
5101 return TextDropTarget
.OnData(*args
, **kw
)
5102 base_OnData
= wx
._deprecated
(base_OnData
,
5103 "Please use TextDropTarget.OnData instead.")
5105 TextDropTarget_swigregister
= _misc_
.TextDropTarget_swigregister
5106 TextDropTarget_swigregister(TextDropTarget
)
5108 class FileDropTarget(DropTarget
):
5109 """Proxy of C++ FileDropTarget class"""
5110 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5111 __repr__
= _swig_repr
5112 def __init__(self
, *args
, **kwargs
):
5113 """__init__(self) -> FileDropTarget"""
5114 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5115 self
._setCallbackInfo
(self
, FileDropTarget
)
5117 def _setCallbackInfo(*args
, **kwargs
):
5118 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5119 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5121 def OnDropFiles(*args
, **kwargs
):
5122 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5123 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5125 def OnEnter(*args
, **kwargs
):
5126 """OnEnter(self, int x, int y, int def) -> int"""
5127 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5129 def OnDragOver(*args
, **kwargs
):
5130 """OnDragOver(self, int x, int y, int def) -> int"""
5131 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5133 def OnLeave(*args
, **kwargs
):
5135 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5137 def OnDrop(*args
, **kwargs
):
5138 """OnDrop(self, int x, int y) -> bool"""
5139 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5141 def OnData(*args
, **kwargs
):
5142 """OnData(self, int x, int y, int def) -> int"""
5143 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5145 def base_OnDropFiles(*args
, **kw
):
5146 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5147 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5148 "Please use FileDropTarget.OnDropFiles instead.")
5150 def base_OnEnter(*args
, **kw
):
5151 return FileDropTarget
.OnEnter(*args
, **kw
)
5152 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5153 "Please use FileDropTarget.OnEnter instead.")
5155 def base_OnDragOver(*args
, **kw
):
5156 return FileDropTarget
.OnDragOver(*args
, **kw
)
5157 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5158 "Please use FileDropTarget.OnDragOver instead.")
5160 def base_OnLeave(*args
, **kw
):
5161 return FileDropTarget
.OnLeave(*args
, **kw
)
5162 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5163 "Please use FileDropTarget.OnLeave instead.")
5165 def base_OnDrop(*args
, **kw
):
5166 return FileDropTarget
.OnDrop(*args
, **kw
)
5167 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5168 "Please use FileDropTarget.OnDrop instead.")
5170 def base_OnData(*args
, **kw
):
5171 return FileDropTarget
.OnData(*args
, **kw
)
5172 base_OnData
= wx
._deprecated
(base_OnData
,
5173 "Please use FileDropTarget.OnData instead.")
5175 FileDropTarget_swigregister
= _misc_
.FileDropTarget_swigregister
5176 FileDropTarget_swigregister(FileDropTarget
)
5178 #---------------------------------------------------------------------------
5180 class Clipboard(_core
.Object
):
5182 wx.Clipboard represents the system clipboard and provides methods to
5183 copy data to it or paste data from it. Normally, you should only use
5184 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5187 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5188 clipboard. If this operation returns True, you now own the
5189 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5190 to retrieve data from the clipboard. Call `Close` to close the
5191 clipboard and relinquish ownership. You should keep the clipboard open
5194 :see: `wx.DataObject`
5197 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5198 __repr__
= _swig_repr
5199 def __init__(self
, *args
, **kwargs
):
5200 """__init__(self) -> Clipboard"""
5201 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5202 __swig_destroy__
= _misc_
.delete_Clipboard
5203 __del__
= lambda self
: None;
5204 def Open(*args
, **kwargs
):
5208 Call this function to open the clipboard before calling SetData and
5209 GetData. Call Close when you have finished with the clipboard. You
5210 should keep the clipboard open for only a very short time. Returns
5213 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5215 def Close(*args
, **kwargs
):
5219 Closes the clipboard.
5221 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5223 def IsOpened(*args
, **kwargs
):
5225 IsOpened(self) -> bool
5227 Query whether the clipboard is opened
5229 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5231 def AddData(*args
, **kwargs
):
5233 AddData(self, DataObject data) -> bool
5235 Call this function to add the data object to the clipboard. You may
5236 call this function repeatedly after having cleared the clipboard.
5237 After this function has been called, the clipboard owns the data, so
5238 do not delete the data explicitly.
5240 :see: `wx.DataObject`
5242 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5244 def SetData(*args
, **kwargs
):
5246 SetData(self, DataObject data) -> bool
5248 Set the clipboard data, this is the same as `Clear` followed by
5251 :see: `wx.DataObject`
5253 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5255 def IsSupported(*args
, **kwargs
):
5257 IsSupported(self, DataFormat format) -> bool
5259 Returns True if the given format is available in the data object(s) on
5262 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5264 def GetData(*args
, **kwargs
):
5266 GetData(self, DataObject data) -> bool
5268 Call this function to fill data with data on the clipboard, if
5269 available in the required format. Returns true on success.
5271 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5273 def Clear(*args
, **kwargs
):
5277 Clears data from the clipboard object and also the system's clipboard
5280 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5282 def Flush(*args
, **kwargs
):
5286 Flushes the clipboard: this means that the data which is currently on
5287 clipboard will stay available even after the application exits,
5288 possibly eating memory, otherwise the clipboard will be emptied on
5289 exit. Returns False if the operation is unsuccesful for any reason.
5291 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5293 def UsePrimarySelection(*args
, **kwargs
):
5295 UsePrimarySelection(self, bool primary=True)
5297 On platforms supporting it (the X11 based platforms), selects the
5298 so called PRIMARY SELECTION as the clipboard as opposed to the
5299 normal clipboard, if primary is True.
5301 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5303 def Get(*args
, **kwargs
):
5307 Returns global instance (wxTheClipboard) of the object.
5309 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5311 Get
= staticmethod(Get
)
5312 Clipboard_swigregister
= _misc_
.Clipboard_swigregister
5313 Clipboard_swigregister(Clipboard
)
5315 def Clipboard_Get(*args
):
5317 Clipboard_Get() -> Clipboard
5319 Returns global instance (wxTheClipboard) of the object.
5321 return _misc_
.Clipboard_Get(*args
)
5323 class _wxPyDelayedInitWrapper(object):
5324 def __init__(self
, initfunc
, *args
, **kwargs
):
5325 self
._initfunc
= initfunc
5327 self
._kwargs
= kwargs
5328 self
._instance
= None
5329 def _checkInstance(self
):
5330 if self
._instance
is None:
5332 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5333 def __getattr__(self
, name
):
5334 self
._checkInstance
()
5335 return getattr(self
._instance
, name
)
5337 self
._checkInstance
()
5338 return repr(self
._instance
)
5339 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5341 class ClipboardLocker(object):
5343 A helpful class for opening the clipboard and automatically
5344 closing it when the locker is destroyed.
5346 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5347 __repr__
= _swig_repr
5348 def __init__(self
, *args
, **kwargs
):
5350 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5352 A helpful class for opening the clipboard and automatically
5353 closing it when the locker is destroyed.
5355 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5356 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5357 __del__
= lambda self
: None;
5358 def __nonzero__(*args
, **kwargs
):
5360 __nonzero__(self) -> bool
5362 A ClipboardLocker instance evaluates to True if the clipboard was
5363 successfully opened.
5365 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5367 ClipboardLocker_swigregister
= _misc_
.ClipboardLocker_swigregister
5368 ClipboardLocker_swigregister(ClipboardLocker
)
5370 #---------------------------------------------------------------------------
5372 class VideoMode(object):
5373 """A simple struct containing video mode parameters for a display"""
5374 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5375 __repr__
= _swig_repr
5376 def __init__(self
, *args
, **kwargs
):
5378 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5380 A simple struct containing video mode parameters for a display
5382 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5383 __swig_destroy__
= _misc_
.delete_VideoMode
5384 __del__
= lambda self
: None;
5385 def Matches(*args
, **kwargs
):
5387 Matches(self, VideoMode other) -> bool
5389 Returns True if this mode matches the other one in the sense that all
5390 non-zero fields of the other mode have the same value in this
5391 one (except for refresh which is allowed to have a greater value)
5393 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5395 def GetWidth(*args
, **kwargs
):
5397 GetWidth(self) -> int
5399 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5401 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5403 def GetHeight(*args
, **kwargs
):
5405 GetHeight(self) -> int
5407 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5409 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5411 def GetDepth(*args
, **kwargs
):
5413 GetDepth(self) -> int
5415 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5416 means unspecified/known
5418 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5420 def IsOk(*args
, **kwargs
):
5424 returns true if the object has been initialized
5426 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5428 def __nonzero__(self
): return self
.IsOk()
5429 def __eq__(*args
, **kwargs
):
5430 """__eq__(self, VideoMode other) -> bool"""
5431 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5433 def __ne__(*args
, **kwargs
):
5434 """__ne__(self, VideoMode other) -> bool"""
5435 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5437 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5438 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5439 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5440 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5441 VideoMode_swigregister
= _misc_
.VideoMode_swigregister
5442 VideoMode_swigregister(VideoMode
)
5444 class Display(object):
5445 """Represents a display/monitor attached to the system"""
5446 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5447 __repr__
= _swig_repr
5448 def __init__(self
, *args
, **kwargs
):
5450 __init__(self, size_t index=0) -> Display
5452 Set up a Display instance with the specified display. The displays
5453 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5454 and the only one which is always supported
5456 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5457 __swig_destroy__
= _misc_
.delete_Display
5458 __del__
= lambda self
: None;
5459 def GetCount(*args
, **kwargs
):
5461 GetCount() -> size_t
5463 Return the number of available displays.
5465 return _misc_
.Display_GetCount(*args
, **kwargs
)
5467 GetCount
= staticmethod(GetCount
)
5468 def GetFromPoint(*args
, **kwargs
):
5470 GetFromPoint(Point pt) -> int
5472 Find the display where the given point lies, return wx.NOT_FOUND if it
5473 doesn't belong to any display
5475 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5477 GetFromPoint
= staticmethod(GetFromPoint
)
5478 def GetFromWindow(*args
, **kwargs
):
5480 GetFromWindow(Window window) -> int
5482 Find the display where the given window lies, return wx.NOT_FOUND if
5483 it is not shown at all.
5485 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5487 GetFromWindow
= staticmethod(GetFromWindow
)
5488 def IsOk(*args
, **kwargs
):
5492 Return true if the object was initialized successfully
5494 return _misc_
.Display_IsOk(*args
, **kwargs
)
5496 def __nonzero__(self
): return self
.IsOk()
5497 def GetGeometry(*args
, **kwargs
):
5499 GetGeometry(self) -> Rect
5501 Returns the bounding rectangle of the display whose index was passed
5504 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5506 def GetClientArea(*args
, **kwargs
):
5508 GetClientArea(self) -> Rect
5510 Returns the bounding rectangle the client area of the display,
5511 i.e., without taskbars and such.
5513 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5515 def GetName(*args
, **kwargs
):
5517 GetName(self) -> String
5519 Returns the display's name. A name is not available on all platforms.
5521 return _misc_
.Display_GetName(*args
, **kwargs
)
5523 def IsPrimary(*args
, **kwargs
):
5525 IsPrimary(self) -> bool
5527 Returns True if the display is the primary display. The primary
5528 display is the one whose index is 0.
5530 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5532 def GetModes(*args
, **kwargs
):
5534 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5536 Enumerate all video modes supported by this display matching the given
5537 one (in the sense of VideoMode.Match()).
5539 As any mode matches the default value of the argument and there is
5540 always at least one video mode supported by display, the returned
5541 array is only empty for the default value of the argument if this
5542 function is not supported at all on this platform.
5544 return _misc_
.Display_GetModes(*args
, **kwargs
)
5546 def GetCurrentMode(*args
, **kwargs
):
5548 GetCurrentMode(self) -> VideoMode
5550 Get the current video mode.
5552 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5554 def ChangeMode(*args
, **kwargs
):
5556 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5558 Changes the video mode of this display to the mode specified in the
5561 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5562 behaviour is that wx.Display will reset the video mode to the default
5563 mode used by the display. On Windows, the behavior is normal.
5564 However, there are differences on other platforms. On Unix variations
5565 using X11 extensions it should behave as defined, but some
5566 irregularities may occur.
5568 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5569 nothing. This happens because Carbon no longer has access to
5570 DMUseScreenPrefs, an undocumented function that changed the video mode
5571 to the system default by using the system's 'scrn' resource.
5573 Returns True if succeeded, False otherwise
5575 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5577 def ResetMode(*args
, **kwargs
):
5581 Restore the default video mode (just a more readable synonym)
5583 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5585 Display_swigregister
= _misc_
.Display_swigregister
5586 Display_swigregister(Display
)
5587 DefaultVideoMode
= cvar
.DefaultVideoMode
5589 def Display_GetCount(*args
):
5591 Display_GetCount() -> size_t
5593 Return the number of available displays.
5595 return _misc_
.Display_GetCount(*args
)
5597 def Display_GetFromPoint(*args
, **kwargs
):
5599 Display_GetFromPoint(Point pt) -> int
5601 Find the display where the given point lies, return wx.NOT_FOUND if it
5602 doesn't belong to any display
5604 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5606 def Display_GetFromWindow(*args
, **kwargs
):
5608 Display_GetFromWindow(Window window) -> int
5610 Find the display where the given window lies, return wx.NOT_FOUND if
5611 it is not shown at all.
5613 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5615 #---------------------------------------------------------------------------
5617 class StandardPaths(object):
5619 wx.StandardPaths returns the standard locations in the file system and
5620 should be used by the programs to find their data files in a portable
5623 In the description of the methods below, the example return values are
5624 given for the Unix, Windows and Mac OS X systems, however please note
5625 that these are just the examples and the actual values may differ. For
5626 example, under Windows: the system administrator may change the
5627 standard directories locations, i.e. the Windows directory may be
5628 named W:\Win2003 instead of the default C:\Windows.
5630 The strings appname and username should be replaced with the value
5631 returned by `wx.App.GetAppName` and the name of the currently logged
5632 in user, respectively. The string prefix is only used under Unix and
5633 is /usr/local by default but may be changed using `SetInstallPrefix`.
5635 The directories returned by the methods of this class may or may not
5636 exist. If they don't exist, it's up to the caller to create them,
5637 wxStandardPaths doesn't do it.
5639 Finally note that these functions only work with standardly packaged
5640 applications. I.e. under Unix you should follow the standard
5641 installation conventions and under Mac you should create your
5642 application bundle according to the Apple guidelines. Again, this
5643 class doesn't help you to do it.
5645 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5646 def __init__(self
): raise AttributeError, "No constructor defined"
5647 __repr__
= _swig_repr
5648 def Get(*args
, **kwargs
):
5650 Get() -> StandardPaths
5652 Return the global standard paths singleton
5654 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
5656 Get
= staticmethod(Get
)
5657 def GetConfigDir(*args
, **kwargs
):
5659 GetConfigDir(self) -> String
5661 Return the directory with system config files: /etc under Unix,
5662 'c:\Documents and Settings\All Users\Application Data' under Windows,
5663 /Library/Preferences for Mac
5665 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
5667 def GetUserConfigDir(*args
, **kwargs
):
5669 GetUserConfigDir(self) -> String
5671 Return the directory for the user config files: $HOME under Unix,
5672 'c:\Documents and Settings\username' under Windows, and
5673 ~/Library/Preferences under Mac
5675 Only use this if you have a single file to put there, otherwise
5676 `GetUserDataDir` is more appropriate
5678 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
5680 def GetDataDir(*args
, **kwargs
):
5682 GetDataDir(self) -> String
5684 Return the location of the application's global, (i.e. not
5685 user-specific,) data files: prefix/share/appname under Unix,
5686 'c:\Program Files\appname' under Windows,
5687 appname.app/Contents/SharedSupport app bundle directory under Mac.
5689 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
5691 def GetLocalDataDir(*args
, **kwargs
):
5693 GetLocalDataDir(self) -> String
5695 Return the location for application data files which are
5696 host-specific. Same as `GetDataDir` except under Unix where it is
5699 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
5701 def GetUserDataDir(*args
, **kwargs
):
5703 GetUserDataDir(self) -> String
5705 Return the directory for the user-dependent application data files:
5706 $HOME/.appname under Unix, c:\Documents and
5707 Settings\username\Application Data\appname under Windows and
5708 ~/Library/Application Support/appname under Mac
5710 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
5712 def GetUserLocalDataDir(*args
, **kwargs
):
5714 GetUserLocalDataDir(self) -> String
5716 Return the directory for user data files which shouldn't be shared
5717 with the other machines
5719 Same as `GetUserDataDir` for all platforms except Windows where it is
5720 the 'Local Settings\Application Data\appname' directory.
5722 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
5724 def GetPluginsDir(*args
, **kwargs
):
5726 GetPluginsDir(self) -> String
5728 Return the directory where the loadable modules (plugins) live:
5729 prefix/lib/appname under Unix, program directory under Windows and
5730 Contents/Plugins app bundle subdirectory under Mac
5732 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
5734 def SetInstallPrefix(*args
, **kwargs
):
5736 SetInstallPrefix(self, String prefix)
5738 Set the program installation directory which is /usr/local by default.
5739 This value will be used by other methods such as `GetDataDir` and
5740 `GetPluginsDir` as the prefix for what they return. (This function
5741 only has meaning on Unix systems.)
5743 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
5745 def GetInstallPrefix(*args
, **kwargs
):
5747 GetInstallPrefix(self) -> String
5749 Get the program installation prefix. The default is the prefix where
5750 Python is installed. (This function only has meaning on Unix systems.)
5752 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
5754 StandardPaths_swigregister
= _misc_
.StandardPaths_swigregister
5755 StandardPaths_swigregister(StandardPaths
)
5757 def StandardPaths_Get(*args
):
5759 StandardPaths_Get() -> StandardPaths
5761 Return the global standard paths singleton
5763 return _misc_
.StandardPaths_Get(*args
)