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
)
316 GetElapsedTime
= wx
._deprecated
(GetElapsedTime
)
319 """IsBusy() -> bool"""
320 return _misc_
.IsBusy(*args
)
323 """Now() -> String"""
324 return _misc_
.Now(*args
)
326 def Shell(*args
, **kwargs
):
327 """Shell(String command=EmptyString) -> bool"""
328 return _misc_
.Shell(*args
, **kwargs
)
330 def StartTimer(*args
):
332 return _misc_
.StartTimer(*args
)
334 def GetOsVersion(*args
):
335 """GetOsVersion() -> (platform, major, minor)"""
336 return _misc_
.GetOsVersion(*args
)
338 def GetOsDescription(*args
):
339 """GetOsDescription() -> String"""
340 return _misc_
.GetOsDescription(*args
)
342 def GetFreeMemory(*args
):
343 """GetFreeMemory() -> wxMemorySize"""
344 return _misc_
.GetFreeMemory(*args
)
345 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
346 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
348 def Shutdown(*args
, **kwargs
):
349 """Shutdown(int wFlags) -> bool"""
350 return _misc_
.Shutdown(*args
, **kwargs
)
352 def Sleep(*args
, **kwargs
):
353 """Sleep(int secs)"""
354 return _misc_
.Sleep(*args
, **kwargs
)
356 def MilliSleep(*args
, **kwargs
):
357 """MilliSleep(unsigned long milliseconds)"""
358 return _misc_
.MilliSleep(*args
, **kwargs
)
360 def MicroSleep(*args
, **kwargs
):
361 """MicroSleep(unsigned long microseconds)"""
362 return _misc_
.MicroSleep(*args
, **kwargs
)
365 def EnableTopLevelWindows(*args
, **kwargs
):
366 """EnableTopLevelWindows(bool enable)"""
367 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
369 def StripMenuCodes(*args
, **kwargs
):
370 """StripMenuCodes(String in) -> String"""
371 return _misc_
.StripMenuCodes(*args
, **kwargs
)
373 def GetEmailAddress(*args
):
374 """GetEmailAddress() -> String"""
375 return _misc_
.GetEmailAddress(*args
)
377 def GetHostName(*args
):
378 """GetHostName() -> String"""
379 return _misc_
.GetHostName(*args
)
381 def GetFullHostName(*args
):
382 """GetFullHostName() -> String"""
383 return _misc_
.GetFullHostName(*args
)
385 def GetUserId(*args
):
386 """GetUserId() -> String"""
387 return _misc_
.GetUserId(*args
)
389 def GetUserName(*args
):
390 """GetUserName() -> String"""
391 return _misc_
.GetUserName(*args
)
393 def GetHomeDir(*args
):
394 """GetHomeDir() -> String"""
395 return _misc_
.GetHomeDir(*args
)
397 def GetUserHome(*args
, **kwargs
):
398 """GetUserHome(String user=EmptyString) -> String"""
399 return _misc_
.GetUserHome(*args
, **kwargs
)
401 def GetProcessId(*args
):
402 """GetProcessId() -> unsigned long"""
403 return _misc_
.GetProcessId(*args
)
407 return _misc_
.Trap(*args
)
409 def FileSelector(*args
, **kwargs
):
411 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
412 String default_filename=EmptyString,
413 String default_extension=EmptyString,
414 String wildcard=FileSelectorDefaultWildcardStr,
415 int flags=0, Window parent=None, int x=-1,
418 return _misc_
.FileSelector(*args
, **kwargs
)
420 def LoadFileSelector(*args
, **kwargs
):
422 LoadFileSelector(String what, String extension, String default_name=EmptyString,
423 Window parent=None) -> String
425 return _misc_
.LoadFileSelector(*args
, **kwargs
)
427 def SaveFileSelector(*args
, **kwargs
):
429 SaveFileSelector(String what, String extension, String default_name=EmptyString,
430 Window parent=None) -> String
432 return _misc_
.SaveFileSelector(*args
, **kwargs
)
434 def DirSelector(*args
, **kwargs
):
436 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
437 long style=DD_DEFAULT_STYLE,
438 Point pos=DefaultPosition, Window parent=None) -> String
440 return _misc_
.DirSelector(*args
, **kwargs
)
442 def GetTextFromUser(*args
, **kwargs
):
444 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
446 int x=-1, int y=-1, bool centre=True) -> String
448 return _misc_
.GetTextFromUser(*args
, **kwargs
)
450 def GetPasswordFromUser(*args
, **kwargs
):
452 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
453 Window parent=None) -> String
455 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
457 def GetSingleChoice(*args
, **kwargs
):
459 GetSingleChoice(String message, String caption, int choices, Window parent=None,
460 int x=-1, int y=-1, bool centre=True,
461 int width=150, int height=200) -> String
463 return _misc_
.GetSingleChoice(*args
, **kwargs
)
465 def GetSingleChoiceIndex(*args
, **kwargs
):
467 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
468 int x=-1, int y=-1, bool centre=True,
469 int width=150, int height=200) -> int
471 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
473 def MessageBox(*args
, **kwargs
):
475 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
476 Window parent=None, int x=-1,
479 return _misc_
.MessageBox(*args
, **kwargs
)
481 def ColourDisplay(*args
):
482 """ColourDisplay() -> bool"""
483 return _misc_
.ColourDisplay(*args
)
485 def DisplayDepth(*args
):
486 """DisplayDepth() -> int"""
487 return _misc_
.DisplayDepth(*args
)
489 def GetDisplayDepth(*args
):
490 """GetDisplayDepth() -> int"""
491 return _misc_
.GetDisplayDepth(*args
)
493 def DisplaySize(*args
):
494 """DisplaySize() -> (width, height)"""
495 return _misc_
.DisplaySize(*args
)
497 def GetDisplaySize(*args
):
498 """GetDisplaySize() -> Size"""
499 return _misc_
.GetDisplaySize(*args
)
501 def DisplaySizeMM(*args
):
502 """DisplaySizeMM() -> (width, height)"""
503 return _misc_
.DisplaySizeMM(*args
)
505 def GetDisplaySizeMM(*args
):
506 """GetDisplaySizeMM() -> Size"""
507 return _misc_
.GetDisplaySizeMM(*args
)
509 def ClientDisplayRect(*args
):
510 """ClientDisplayRect() -> (x, y, width, height)"""
511 return _misc_
.ClientDisplayRect(*args
)
513 def GetClientDisplayRect(*args
):
514 """GetClientDisplayRect() -> Rect"""
515 return _misc_
.GetClientDisplayRect(*args
)
517 def SetCursor(*args
, **kwargs
):
518 """SetCursor(Cursor cursor)"""
519 return _misc_
.SetCursor(*args
, **kwargs
)
521 def GetXDisplay(*args
):
523 GetXDisplay() -> void
525 Returns a swigified pointer to the X11 display. Returns None on
528 return _misc_
.GetXDisplay(*args
)
530 def BeginBusyCursor(*args
, **kwargs
):
531 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
532 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
534 def GetMousePosition(*args
):
536 GetMousePosition() -> Point
538 Get the current mouse position on the screen.
540 return _misc_
.GetMousePosition(*args
)
542 def FindWindowAtPointer(*args
):
544 FindWindowAtPointer() -> Window
546 Returns the window currently under the mouse pointer, if it belongs to
547 this application. Otherwise it returns None.
549 return _misc_
.FindWindowAtPointer(*args
)
551 def GetActiveWindow(*args
):
553 GetActiveWindow() -> Window
555 Get the currently active window of this application, or None
557 return _misc_
.GetActiveWindow(*args
)
559 def GenericFindWindowAtPoint(*args
, **kwargs
):
560 """GenericFindWindowAtPoint(Point pt) -> Window"""
561 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
563 def FindWindowAtPoint(*args
, **kwargs
):
564 """FindWindowAtPoint(Point pt) -> Window"""
565 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
567 def GetTopLevelParent(*args
, **kwargs
):
568 """GetTopLevelParent(Window win) -> Window"""
569 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
571 def LaunchDefaultBrowser(*args
, **kwargs
):
573 LaunchDefaultBrowser(String url) -> bool
575 Launches the user's default browser and tells it to open the location
576 at ``url``. Returns ``True`` if the application was successfully
579 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
581 def GetKeyState(*args
, **kwargs
):
583 GetKeyState(int key) -> bool
585 Get the state of a key (true if pressed or toggled on, false if not.)
586 This is generally most useful getting the state of the modifier or
587 toggle keys. On some platforms those may be the only keys that this
588 function is able to detect.
591 return _misc_
.GetKeyState(*args
, **kwargs
)
592 class MouseState(object):
594 `wx.MouseState` is used to hold information about mouse button and
595 modifier key states and is what is returned from `wx.GetMouseState`.
597 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
598 __repr__
= _swig_repr
599 def __init__(self
, *args
, **kwargs
):
601 __init__(self) -> MouseState
603 `wx.MouseState` is used to hold information about mouse button and
604 modifier key states and is what is returned from `wx.GetMouseState`.
606 _misc_
.MouseState_swiginit(self
,_misc_
.new_MouseState(*args
, **kwargs
))
607 __swig_destroy__
= _misc_
.delete_MouseState
608 __del__
= lambda self
: None;
609 def GetX(*args
, **kwargs
):
610 """GetX(self) -> int"""
611 return _misc_
.MouseState_GetX(*args
, **kwargs
)
613 def GetY(*args
, **kwargs
):
614 """GetY(self) -> int"""
615 return _misc_
.MouseState_GetY(*args
, **kwargs
)
617 def LeftDown(*args
, **kwargs
):
618 """LeftDown(self) -> bool"""
619 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
621 def MiddleDown(*args
, **kwargs
):
622 """MiddleDown(self) -> bool"""
623 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
625 def RightDown(*args
, **kwargs
):
626 """RightDown(self) -> bool"""
627 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
629 def ControlDown(*args
, **kwargs
):
630 """ControlDown(self) -> bool"""
631 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
633 def ShiftDown(*args
, **kwargs
):
634 """ShiftDown(self) -> bool"""
635 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
637 def AltDown(*args
, **kwargs
):
638 """AltDown(self) -> bool"""
639 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
641 def MetaDown(*args
, **kwargs
):
642 """MetaDown(self) -> bool"""
643 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
645 def CmdDown(*args
, **kwargs
):
646 """CmdDown(self) -> bool"""
647 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
649 def SetX(*args
, **kwargs
):
650 """SetX(self, int x)"""
651 return _misc_
.MouseState_SetX(*args
, **kwargs
)
653 def SetY(*args
, **kwargs
):
654 """SetY(self, int y)"""
655 return _misc_
.MouseState_SetY(*args
, **kwargs
)
657 def SetLeftDown(*args
, **kwargs
):
658 """SetLeftDown(self, bool down)"""
659 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
661 def SetMiddleDown(*args
, **kwargs
):
662 """SetMiddleDown(self, bool down)"""
663 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
665 def SetRightDown(*args
, **kwargs
):
666 """SetRightDown(self, bool down)"""
667 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
669 def SetControlDown(*args
, **kwargs
):
670 """SetControlDown(self, bool down)"""
671 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
673 def SetShiftDown(*args
, **kwargs
):
674 """SetShiftDown(self, bool down)"""
675 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
677 def SetAltDown(*args
, **kwargs
):
678 """SetAltDown(self, bool down)"""
679 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
681 def SetMetaDown(*args
, **kwargs
):
682 """SetMetaDown(self, bool down)"""
683 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
685 x
= property(GetX
, SetX
)
686 y
= property(GetY
, SetY
)
687 leftDown
= property(LeftDown
, SetLeftDown
)
688 middleDown
= property(MiddleDown
, SetMiddleDown
)
689 rightDown
= property(RightDown
, SetRightDown
)
690 controlDown
= property(ControlDown
, SetControlDown
)
691 shiftDown
= property(ShiftDown
, SetShiftDown
)
692 altDown
= property(AltDown
, SetAltDown
)
693 metaDown
= property(MetaDown
, SetMetaDown
)
694 cmdDown
= property(CmdDown
)
696 MouseState_swigregister
= _misc_
.MouseState_swigregister
697 MouseState_swigregister(MouseState
)
698 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
699 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
700 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
703 def GetMouseState(*args
):
705 GetMouseState() -> MouseState
707 Returns the current state of the mouse. Returns an instance of a
708 `wx.MouseState` object that contains the current position of the mouse
709 pointer in screen coordinants, as well as boolean values indicating
710 the up/down status of the mouse buttons and the modifier keys.
712 return _misc_
.GetMouseState(*args
)
714 def WakeUpMainThread(*args
):
715 """WakeUpMainThread()"""
716 return _misc_
.WakeUpMainThread(*args
)
718 def MutexGuiEnter(*args
):
719 """MutexGuiEnter()"""
720 return _misc_
.MutexGuiEnter(*args
)
722 def MutexGuiLeave(*args
):
723 """MutexGuiLeave()"""
724 return _misc_
.MutexGuiLeave(*args
)
725 class MutexGuiLocker(object):
726 """Proxy of C++ MutexGuiLocker class"""
727 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
728 __repr__
= _swig_repr
729 def __init__(self
, *args
, **kwargs
):
730 """__init__(self) -> MutexGuiLocker"""
731 _misc_
.MutexGuiLocker_swiginit(self
,_misc_
.new_MutexGuiLocker(*args
, **kwargs
))
732 __swig_destroy__
= _misc_
.delete_MutexGuiLocker
733 __del__
= lambda self
: None;
734 MutexGuiLocker_swigregister
= _misc_
.MutexGuiLocker_swigregister
735 MutexGuiLocker_swigregister(MutexGuiLocker
)
738 def Thread_IsMain(*args
):
739 """Thread_IsMain() -> bool"""
740 return _misc_
.Thread_IsMain(*args
)
741 #---------------------------------------------------------------------------
743 class ToolTip(_core
.Object
):
744 """Proxy of C++ ToolTip class"""
745 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
746 __repr__
= _swig_repr
747 def __init__(self
, *args
, **kwargs
):
748 """__init__(self, String tip) -> ToolTip"""
749 _misc_
.ToolTip_swiginit(self
,_misc_
.new_ToolTip(*args
, **kwargs
))
750 __swig_destroy__
= _misc_
.delete_ToolTip
751 __del__
= lambda self
: None;
752 def SetTip(*args
, **kwargs
):
753 """SetTip(self, String tip)"""
754 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
756 def GetTip(*args
, **kwargs
):
757 """GetTip(self) -> String"""
758 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
760 def GetWindow(*args
, **kwargs
):
761 """GetWindow(self) -> Window"""
762 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
764 def Enable(*args
, **kwargs
):
765 """Enable(bool flag)"""
766 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
768 Enable
= staticmethod(Enable
)
769 def SetDelay(*args
, **kwargs
):
770 """SetDelay(long milliseconds)"""
771 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
773 SetDelay
= staticmethod(SetDelay
)
774 ToolTip_swigregister
= _misc_
.ToolTip_swigregister
775 ToolTip_swigregister(ToolTip
)
777 def ToolTip_Enable(*args
, **kwargs
):
778 """ToolTip_Enable(bool flag)"""
779 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
781 def ToolTip_SetDelay(*args
, **kwargs
):
782 """ToolTip_SetDelay(long milliseconds)"""
783 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
786 """Proxy of C++ Caret class"""
787 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
788 __repr__
= _swig_repr
789 def __init__(self
, *args
, **kwargs
):
790 """__init__(self, Window window, Size size) -> Caret"""
791 _misc_
.Caret_swiginit(self
,_misc_
.new_Caret(*args
, **kwargs
))
792 __swig_destroy__
= _misc_
.delete_Caret
793 __del__
= lambda self
: None;
794 def Destroy(*args
, **kwargs
):
798 Deletes the C++ object this Python object is a proxy for.
800 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
804 def IsOk(*args
, **kwargs
):
805 """IsOk(self) -> bool"""
806 return _misc_
.Caret_IsOk(*args
, **kwargs
)
808 def IsVisible(*args
, **kwargs
):
809 """IsVisible(self) -> bool"""
810 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
812 def GetPosition(*args
, **kwargs
):
813 """GetPosition(self) -> Point"""
814 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
816 def GetPositionTuple(*args
, **kwargs
):
817 """GetPositionTuple() -> (x,y)"""
818 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
820 def GetSize(*args
, **kwargs
):
821 """GetSize(self) -> Size"""
822 return _misc_
.Caret_GetSize(*args
, **kwargs
)
824 def GetSizeTuple(*args
, **kwargs
):
825 """GetSizeTuple() -> (width, height)"""
826 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
828 def GetWindow(*args
, **kwargs
):
829 """GetWindow(self) -> Window"""
830 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
832 def MoveXY(*args
, **kwargs
):
833 """MoveXY(self, int x, int y)"""
834 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
836 def Move(*args
, **kwargs
):
837 """Move(self, Point pt)"""
838 return _misc_
.Caret_Move(*args
, **kwargs
)
840 def SetSizeWH(*args
, **kwargs
):
841 """SetSizeWH(self, int width, int height)"""
842 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
844 def SetSize(*args
, **kwargs
):
845 """SetSize(self, Size size)"""
846 return _misc_
.Caret_SetSize(*args
, **kwargs
)
848 def Show(*args
, **kwargs
):
849 """Show(self, int show=True)"""
850 return _misc_
.Caret_Show(*args
, **kwargs
)
852 def Hide(*args
, **kwargs
):
854 return _misc_
.Caret_Hide(*args
, **kwargs
)
856 def __nonzero__(self
): return self
.IsOk()
857 def GetBlinkTime(*args
, **kwargs
):
858 """GetBlinkTime() -> int"""
859 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
861 GetBlinkTime
= staticmethod(GetBlinkTime
)
862 def SetBlinkTime(*args
, **kwargs
):
863 """SetBlinkTime(int milliseconds)"""
864 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
866 SetBlinkTime
= staticmethod(SetBlinkTime
)
867 Caret_swigregister
= _misc_
.Caret_swigregister
868 Caret_swigregister(Caret
)
870 def Caret_GetBlinkTime(*args
):
871 """Caret_GetBlinkTime() -> int"""
872 return _misc_
.Caret_GetBlinkTime(*args
)
874 def Caret_SetBlinkTime(*args
, **kwargs
):
875 """Caret_SetBlinkTime(int milliseconds)"""
876 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
878 class BusyCursor(object):
879 """Proxy of C++ BusyCursor class"""
880 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
881 __repr__
= _swig_repr
882 def __init__(self
, *args
, **kwargs
):
883 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
884 _misc_
.BusyCursor_swiginit(self
,_misc_
.new_BusyCursor(*args
, **kwargs
))
885 __swig_destroy__
= _misc_
.delete_BusyCursor
886 __del__
= lambda self
: None;
887 BusyCursor_swigregister
= _misc_
.BusyCursor_swigregister
888 BusyCursor_swigregister(BusyCursor
)
890 class WindowDisabler(object):
891 """Proxy of C++ WindowDisabler class"""
892 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
893 __repr__
= _swig_repr
894 def __init__(self
, *args
, **kwargs
):
895 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
896 _misc_
.WindowDisabler_swiginit(self
,_misc_
.new_WindowDisabler(*args
, **kwargs
))
897 __swig_destroy__
= _misc_
.delete_WindowDisabler
898 __del__
= lambda self
: None;
899 WindowDisabler_swigregister
= _misc_
.WindowDisabler_swigregister
900 WindowDisabler_swigregister(WindowDisabler
)
902 class BusyInfo(_core
.Object
):
903 """Proxy of C++ BusyInfo class"""
904 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
905 __repr__
= _swig_repr
906 def __init__(self
, *args
, **kwargs
):
907 """__init__(self, String message) -> BusyInfo"""
908 _misc_
.BusyInfo_swiginit(self
,_misc_
.new_BusyInfo(*args
, **kwargs
))
909 __swig_destroy__
= _misc_
.delete_BusyInfo
910 __del__
= lambda self
: None;
911 BusyInfo_swigregister
= _misc_
.BusyInfo_swigregister
912 BusyInfo_swigregister(BusyInfo
)
914 class StopWatch(object):
915 """Proxy of C++ StopWatch class"""
916 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
917 __repr__
= _swig_repr
918 def __init__(self
, *args
, **kwargs
):
919 """__init__(self) -> StopWatch"""
920 _misc_
.StopWatch_swiginit(self
,_misc_
.new_StopWatch(*args
, **kwargs
))
921 def Start(*args
, **kwargs
):
922 """Start(self, long t0=0)"""
923 return _misc_
.StopWatch_Start(*args
, **kwargs
)
925 def Pause(*args
, **kwargs
):
927 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
929 def Resume(*args
, **kwargs
):
931 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
933 def Time(*args
, **kwargs
):
934 """Time(self) -> long"""
935 return _misc_
.StopWatch_Time(*args
, **kwargs
)
937 StopWatch_swigregister
= _misc_
.StopWatch_swigregister
938 StopWatch_swigregister(StopWatch
)
940 class FileHistory(_core
.Object
):
941 """Proxy of C++ FileHistory class"""
942 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
943 __repr__
= _swig_repr
944 def __init__(self
, *args
, **kwargs
):
945 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
946 _misc_
.FileHistory_swiginit(self
,_misc_
.new_FileHistory(*args
, **kwargs
))
947 __swig_destroy__
= _misc_
.delete_FileHistory
948 __del__
= lambda self
: None;
949 def AddFileToHistory(*args
, **kwargs
):
950 """AddFileToHistory(self, String file)"""
951 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
953 def RemoveFileFromHistory(*args
, **kwargs
):
954 """RemoveFileFromHistory(self, int i)"""
955 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
957 def GetMaxFiles(*args
, **kwargs
):
958 """GetMaxFiles(self) -> int"""
959 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
961 def UseMenu(*args
, **kwargs
):
962 """UseMenu(self, Menu menu)"""
963 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
965 def RemoveMenu(*args
, **kwargs
):
966 """RemoveMenu(self, Menu menu)"""
967 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
969 def Load(*args
, **kwargs
):
970 """Load(self, ConfigBase config)"""
971 return _misc_
.FileHistory_Load(*args
, **kwargs
)
973 def Save(*args
, **kwargs
):
974 """Save(self, ConfigBase config)"""
975 return _misc_
.FileHistory_Save(*args
, **kwargs
)
977 def AddFilesToMenu(*args
, **kwargs
):
978 """AddFilesToMenu(self)"""
979 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
981 def AddFilesToThisMenu(*args
, **kwargs
):
982 """AddFilesToThisMenu(self, Menu menu)"""
983 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
985 def GetHistoryFile(*args
, **kwargs
):
986 """GetHistoryFile(self, int i) -> String"""
987 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
989 def GetCount(*args
, **kwargs
):
990 """GetCount(self) -> int"""
991 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
993 GetNoHistoryFiles
= GetCount
994 FileHistory_swigregister
= _misc_
.FileHistory_swigregister
995 FileHistory_swigregister(FileHistory
)
997 class SingleInstanceChecker(object):
998 """Proxy of C++ SingleInstanceChecker class"""
999 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1000 __repr__
= _swig_repr
1001 def __init__(self
, *args
, **kwargs
):
1002 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1003 _misc_
.SingleInstanceChecker_swiginit(self
,_misc_
.new_SingleInstanceChecker(*args
, **kwargs
))
1004 __swig_destroy__
= _misc_
.delete_SingleInstanceChecker
1005 __del__
= lambda self
: None;
1006 def Create(*args
, **kwargs
):
1007 """Create(self, String name, String path=EmptyString) -> bool"""
1008 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1010 def IsAnotherRunning(*args
, **kwargs
):
1011 """IsAnotherRunning(self) -> bool"""
1012 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1014 SingleInstanceChecker_swigregister
= _misc_
.SingleInstanceChecker_swigregister
1015 SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1017 def PreSingleInstanceChecker(*args
, **kwargs
):
1018 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1019 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1023 def DrawWindowOnDC(*args
, **kwargs
):
1024 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1025 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1026 #---------------------------------------------------------------------------
1028 class TipProvider(object):
1029 """Proxy of C++ TipProvider class"""
1030 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1031 def __init__(self
): raise AttributeError, "No constructor defined"
1032 __repr__
= _swig_repr
1033 __swig_destroy__
= _misc_
.delete_TipProvider
1034 __del__
= lambda self
: None;
1035 def GetTip(*args
, **kwargs
):
1036 """GetTip(self) -> String"""
1037 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1039 def GetCurrentTip(*args
, **kwargs
):
1040 """GetCurrentTip(self) -> size_t"""
1041 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1043 def PreprocessTip(*args
, **kwargs
):
1044 """PreprocessTip(self, String tip) -> String"""
1045 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1047 TipProvider_swigregister
= _misc_
.TipProvider_swigregister
1048 TipProvider_swigregister(TipProvider
)
1050 class PyTipProvider(TipProvider
):
1051 """Proxy of C++ PyTipProvider class"""
1052 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1053 __repr__
= _swig_repr
1054 def __init__(self
, *args
, **kwargs
):
1055 """__init__(self, size_t currentTip) -> PyTipProvider"""
1056 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1057 self
._setCallbackInfo
(self
, PyTipProvider
)
1059 def _setCallbackInfo(*args
, **kwargs
):
1060 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1061 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1063 PyTipProvider_swigregister
= _misc_
.PyTipProvider_swigregister
1064 PyTipProvider_swigregister(PyTipProvider
)
1067 def ShowTip(*args
, **kwargs
):
1068 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1069 return _misc_
.ShowTip(*args
, **kwargs
)
1071 def CreateFileTipProvider(*args
, **kwargs
):
1072 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1073 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1074 #---------------------------------------------------------------------------
1076 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1077 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1078 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1079 class Timer(_core
.EvtHandler
):
1080 """Proxy of C++ Timer class"""
1081 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1082 __repr__
= _swig_repr
1083 def __init__(self
, *args
, **kwargs
):
1084 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1085 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1086 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1088 __swig_destroy__
= _misc_
.delete_Timer
1089 __del__
= lambda self
: None;
1090 def _setCallbackInfo(*args
, **kwargs
):
1091 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1092 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1094 def SetOwner(*args
, **kwargs
):
1095 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1096 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1098 def GetOwner(*args
, **kwargs
):
1099 """GetOwner(self) -> EvtHandler"""
1100 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1102 def Start(*args
, **kwargs
):
1103 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1104 return _misc_
.Timer_Start(*args
, **kwargs
)
1106 def Stop(*args
, **kwargs
):
1108 return _misc_
.Timer_Stop(*args
, **kwargs
)
1110 def Notify(*args
, **kwargs
):
1112 return _misc_
.Timer_Notify(*args
, **kwargs
)
1114 def IsRunning(*args
, **kwargs
):
1115 """IsRunning(self) -> bool"""
1116 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1118 def GetInterval(*args
, **kwargs
):
1119 """GetInterval(self) -> int"""
1120 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1122 def GetId(*args
, **kwargs
):
1123 """GetId(self) -> int"""
1124 return _misc_
.Timer_GetId(*args
, **kwargs
)
1126 def IsOneShot(*args
, **kwargs
):
1127 """IsOneShot(self) -> bool"""
1128 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1131 """NO-OP: Timers must be destroyed by normal reference counting"""
1134 Timer_swigregister
= _misc_
.Timer_swigregister
1135 Timer_swigregister(Timer
)
1137 # For backwards compatibility with 2.4
1138 class PyTimer(Timer
):
1139 def __init__(self
, notify
):
1140 Timer
.__init
__(self
)
1141 self
.notify
= notify
1148 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1151 class TimerEvent(_core
.Event
):
1152 """Proxy of C++ TimerEvent class"""
1153 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1154 __repr__
= _swig_repr
1155 def __init__(self
, *args
, **kwargs
):
1156 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1157 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1158 def GetInterval(*args
, **kwargs
):
1159 """GetInterval(self) -> int"""
1160 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1162 TimerEvent_swigregister
= _misc_
.TimerEvent_swigregister
1163 TimerEvent_swigregister(TimerEvent
)
1165 class TimerRunner(object):
1166 """Proxy of C++ TimerRunner class"""
1167 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1168 __repr__
= _swig_repr
1169 def __init__(self
, *args
):
1171 __init__(self, wxTimer timer) -> TimerRunner
1172 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1174 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1175 __swig_destroy__
= _misc_
.delete_TimerRunner
1176 __del__
= lambda self
: None;
1177 def Start(*args
, **kwargs
):
1178 """Start(self, int milli, bool oneShot=False)"""
1179 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1181 TimerRunner_swigregister
= _misc_
.TimerRunner_swigregister
1182 TimerRunner_swigregister(TimerRunner
)
1184 #---------------------------------------------------------------------------
1186 LOG_FatalError
= _misc_
.LOG_FatalError
1187 LOG_Error
= _misc_
.LOG_Error
1188 LOG_Warning
= _misc_
.LOG_Warning
1189 LOG_Message
= _misc_
.LOG_Message
1190 LOG_Status
= _misc_
.LOG_Status
1191 LOG_Info
= _misc_
.LOG_Info
1192 LOG_Debug
= _misc_
.LOG_Debug
1193 LOG_Trace
= _misc_
.LOG_Trace
1194 LOG_Progress
= _misc_
.LOG_Progress
1195 LOG_User
= _misc_
.LOG_User
1196 LOG_Max
= _misc_
.LOG_Max
1197 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1198 TRACE_Messages
= _misc_
.TRACE_Messages
1199 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1200 TRACE_RefCount
= _misc_
.TRACE_RefCount
1201 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1202 TraceMemAlloc
= _misc_
.TraceMemAlloc
1203 TraceMessages
= _misc_
.TraceMessages
1204 TraceResAlloc
= _misc_
.TraceResAlloc
1205 TraceRefCount
= _misc_
.TraceRefCount
1206 TraceOleCalls
= _misc_
.TraceOleCalls
1208 """Proxy of C++ Log class"""
1209 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1210 __repr__
= _swig_repr
1211 def __init__(self
, *args
, **kwargs
):
1212 """__init__(self) -> Log"""
1213 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1214 __swig_destroy__
= _misc_
.delete_Log
1215 __del__
= lambda self
: None;
1216 def IsEnabled(*args
, **kwargs
):
1217 """IsEnabled() -> bool"""
1218 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1220 IsEnabled
= staticmethod(IsEnabled
)
1221 def EnableLogging(*args
, **kwargs
):
1222 """EnableLogging(bool doIt=True) -> bool"""
1223 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1225 EnableLogging
= staticmethod(EnableLogging
)
1226 def OnLog(*args
, **kwargs
):
1227 """OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1228 return _misc_
.Log_OnLog(*args
, **kwargs
)
1230 OnLog
= staticmethod(OnLog
)
1231 def Flush(*args
, **kwargs
):
1233 return _misc_
.Log_Flush(*args
, **kwargs
)
1235 def FlushActive(*args
, **kwargs
):
1237 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1239 FlushActive
= staticmethod(FlushActive
)
1240 def GetActiveTarget(*args
, **kwargs
):
1241 """GetActiveTarget() -> Log"""
1242 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1244 GetActiveTarget
= staticmethod(GetActiveTarget
)
1245 def SetActiveTarget(*args
, **kwargs
):
1246 """SetActiveTarget(Log pLogger) -> Log"""
1247 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1249 SetActiveTarget
= staticmethod(SetActiveTarget
)
1250 def Suspend(*args
, **kwargs
):
1252 return _misc_
.Log_Suspend(*args
, **kwargs
)
1254 Suspend
= staticmethod(Suspend
)
1255 def Resume(*args
, **kwargs
):
1257 return _misc_
.Log_Resume(*args
, **kwargs
)
1259 Resume
= staticmethod(Resume
)
1260 def SetVerbose(*args
, **kwargs
):
1261 """SetVerbose(bool bVerbose=True)"""
1262 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1264 SetVerbose
= staticmethod(SetVerbose
)
1265 def SetLogLevel(*args
, **kwargs
):
1266 """SetLogLevel(wxLogLevel logLevel)"""
1267 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1269 SetLogLevel
= staticmethod(SetLogLevel
)
1270 def DontCreateOnDemand(*args
, **kwargs
):
1271 """DontCreateOnDemand()"""
1272 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1274 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1275 def SetTraceMask(*args
, **kwargs
):
1276 """SetTraceMask(wxTraceMask ulMask)"""
1277 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1279 SetTraceMask
= staticmethod(SetTraceMask
)
1280 def AddTraceMask(*args
, **kwargs
):
1281 """AddTraceMask(String str)"""
1282 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1284 AddTraceMask
= staticmethod(AddTraceMask
)
1285 def RemoveTraceMask(*args
, **kwargs
):
1286 """RemoveTraceMask(String str)"""
1287 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1289 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1290 def ClearTraceMasks(*args
, **kwargs
):
1291 """ClearTraceMasks()"""
1292 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1294 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1295 def GetTraceMasks(*args
, **kwargs
):
1296 """GetTraceMasks() -> wxArrayString"""
1297 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1299 GetTraceMasks
= staticmethod(GetTraceMasks
)
1300 def SetTimestamp(*args
, **kwargs
):
1301 """SetTimestamp(wxChar ts)"""
1302 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1304 SetTimestamp
= staticmethod(SetTimestamp
)
1305 def GetVerbose(*args
, **kwargs
):
1306 """GetVerbose() -> bool"""
1307 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1309 GetVerbose
= staticmethod(GetVerbose
)
1310 def GetTraceMask(*args
, **kwargs
):
1311 """GetTraceMask() -> wxTraceMask"""
1312 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1314 GetTraceMask
= staticmethod(GetTraceMask
)
1315 def IsAllowedTraceMask(*args
, **kwargs
):
1316 """IsAllowedTraceMask(wxChar mask) -> bool"""
1317 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1319 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1320 def GetLogLevel(*args
, **kwargs
):
1321 """GetLogLevel() -> wxLogLevel"""
1322 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1324 GetLogLevel
= staticmethod(GetLogLevel
)
1325 def GetTimestamp(*args
, **kwargs
):
1326 """GetTimestamp() -> wxChar"""
1327 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1329 GetTimestamp
= staticmethod(GetTimestamp
)
1330 def TimeStamp(*args
, **kwargs
):
1331 """TimeStamp() -> String"""
1332 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1334 TimeStamp
= staticmethod(TimeStamp
)
1335 def Destroy(*args
, **kwargs
):
1337 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1341 Log_swigregister
= _misc_
.Log_swigregister
1342 Log_swigregister(Log
)
1344 def Log_IsEnabled(*args
):
1345 """Log_IsEnabled() -> bool"""
1346 return _misc_
.Log_IsEnabled(*args
)
1348 def Log_EnableLogging(*args
, **kwargs
):
1349 """Log_EnableLogging(bool doIt=True) -> bool"""
1350 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1352 def Log_OnLog(*args
, **kwargs
):
1353 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1354 return _misc_
.Log_OnLog(*args
, **kwargs
)
1356 def Log_FlushActive(*args
):
1357 """Log_FlushActive()"""
1358 return _misc_
.Log_FlushActive(*args
)
1360 def Log_GetActiveTarget(*args
):
1361 """Log_GetActiveTarget() -> Log"""
1362 return _misc_
.Log_GetActiveTarget(*args
)
1364 def Log_SetActiveTarget(*args
, **kwargs
):
1365 """Log_SetActiveTarget(Log pLogger) -> Log"""
1366 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1368 def Log_Suspend(*args
):
1370 return _misc_
.Log_Suspend(*args
)
1372 def Log_Resume(*args
):
1374 return _misc_
.Log_Resume(*args
)
1376 def Log_SetVerbose(*args
, **kwargs
):
1377 """Log_SetVerbose(bool bVerbose=True)"""
1378 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1380 def Log_SetLogLevel(*args
, **kwargs
):
1381 """Log_SetLogLevel(wxLogLevel logLevel)"""
1382 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1384 def Log_DontCreateOnDemand(*args
):
1385 """Log_DontCreateOnDemand()"""
1386 return _misc_
.Log_DontCreateOnDemand(*args
)
1388 def Log_SetTraceMask(*args
, **kwargs
):
1389 """Log_SetTraceMask(wxTraceMask ulMask)"""
1390 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1392 def Log_AddTraceMask(*args
, **kwargs
):
1393 """Log_AddTraceMask(String str)"""
1394 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1396 def Log_RemoveTraceMask(*args
, **kwargs
):
1397 """Log_RemoveTraceMask(String str)"""
1398 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1400 def Log_ClearTraceMasks(*args
):
1401 """Log_ClearTraceMasks()"""
1402 return _misc_
.Log_ClearTraceMasks(*args
)
1404 def Log_GetTraceMasks(*args
):
1405 """Log_GetTraceMasks() -> wxArrayString"""
1406 return _misc_
.Log_GetTraceMasks(*args
)
1408 def Log_SetTimestamp(*args
, **kwargs
):
1409 """Log_SetTimestamp(wxChar ts)"""
1410 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1412 def Log_GetVerbose(*args
):
1413 """Log_GetVerbose() -> bool"""
1414 return _misc_
.Log_GetVerbose(*args
)
1416 def Log_GetTraceMask(*args
):
1417 """Log_GetTraceMask() -> wxTraceMask"""
1418 return _misc_
.Log_GetTraceMask(*args
)
1420 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1421 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1422 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1424 def Log_GetLogLevel(*args
):
1425 """Log_GetLogLevel() -> wxLogLevel"""
1426 return _misc_
.Log_GetLogLevel(*args
)
1428 def Log_GetTimestamp(*args
):
1429 """Log_GetTimestamp() -> wxChar"""
1430 return _misc_
.Log_GetTimestamp(*args
)
1432 def Log_TimeStamp(*args
):
1433 """Log_TimeStamp() -> String"""
1434 return _misc_
.Log_TimeStamp(*args
)
1436 class LogStderr(Log
):
1437 """Proxy of C++ LogStderr class"""
1438 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1439 __repr__
= _swig_repr
1440 def __init__(self
, *args
, **kwargs
):
1441 """__init__(self) -> LogStderr"""
1442 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1443 LogStderr_swigregister
= _misc_
.LogStderr_swigregister
1444 LogStderr_swigregister(LogStderr
)
1446 class LogTextCtrl(Log
):
1447 """Proxy of C++ LogTextCtrl class"""
1448 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1449 __repr__
= _swig_repr
1450 def __init__(self
, *args
, **kwargs
):
1451 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1452 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1453 LogTextCtrl_swigregister
= _misc_
.LogTextCtrl_swigregister
1454 LogTextCtrl_swigregister(LogTextCtrl
)
1457 """Proxy of C++ LogGui class"""
1458 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1459 __repr__
= _swig_repr
1460 def __init__(self
, *args
, **kwargs
):
1461 """__init__(self) -> LogGui"""
1462 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1463 LogGui_swigregister
= _misc_
.LogGui_swigregister
1464 LogGui_swigregister(LogGui
)
1466 class LogWindow(Log
):
1467 """Proxy of C++ LogWindow class"""
1468 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1469 __repr__
= _swig_repr
1470 def __init__(self
, *args
, **kwargs
):
1471 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1472 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1473 def Show(*args
, **kwargs
):
1474 """Show(self, bool bShow=True)"""
1475 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1477 def GetFrame(*args
, **kwargs
):
1478 """GetFrame(self) -> wxFrame"""
1479 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1481 def GetOldLog(*args
, **kwargs
):
1482 """GetOldLog(self) -> Log"""
1483 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1485 def IsPassingMessages(*args
, **kwargs
):
1486 """IsPassingMessages(self) -> bool"""
1487 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1489 def PassMessages(*args
, **kwargs
):
1490 """PassMessages(self, bool bDoPass)"""
1491 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1493 LogWindow_swigregister
= _misc_
.LogWindow_swigregister
1494 LogWindow_swigregister(LogWindow
)
1496 class LogChain(Log
):
1497 """Proxy of C++ LogChain class"""
1498 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1499 __repr__
= _swig_repr
1500 def __init__(self
, *args
, **kwargs
):
1501 """__init__(self, Log logger) -> LogChain"""
1502 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1503 def SetLog(*args
, **kwargs
):
1504 """SetLog(self, Log logger)"""
1505 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1507 def PassMessages(*args
, **kwargs
):
1508 """PassMessages(self, bool bDoPass)"""
1509 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1511 def IsPassingMessages(*args
, **kwargs
):
1512 """IsPassingMessages(self) -> bool"""
1513 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1515 def GetOldLog(*args
, **kwargs
):
1516 """GetOldLog(self) -> Log"""
1517 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1519 LogChain_swigregister
= _misc_
.LogChain_swigregister
1520 LogChain_swigregister(LogChain
)
1522 class LogBuffer(Log
):
1523 """Proxy of C++ LogBuffer class"""
1524 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1525 __repr__
= _swig_repr
1526 def __init__(self
, *args
, **kwargs
):
1527 """__init__(self) -> LogBuffer"""
1528 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1529 def GetBuffer(*args
, **kwargs
):
1530 """GetBuffer(self) -> String"""
1531 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1533 LogBuffer_swigregister
= _misc_
.LogBuffer_swigregister
1534 LogBuffer_swigregister(LogBuffer
)
1537 def SysErrorCode(*args
):
1538 """SysErrorCode() -> unsigned long"""
1539 return _misc_
.SysErrorCode(*args
)
1541 def SysErrorMsg(*args
, **kwargs
):
1542 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1543 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1545 def LogFatalError(*args
, **kwargs
):
1546 """LogFatalError(String msg)"""
1547 return _misc_
.LogFatalError(*args
, **kwargs
)
1549 def LogError(*args
, **kwargs
):
1550 """LogError(String msg)"""
1551 return _misc_
.LogError(*args
, **kwargs
)
1553 def LogWarning(*args
, **kwargs
):
1554 """LogWarning(String msg)"""
1555 return _misc_
.LogWarning(*args
, **kwargs
)
1557 def LogMessage(*args
, **kwargs
):
1558 """LogMessage(String msg)"""
1559 return _misc_
.LogMessage(*args
, **kwargs
)
1561 def LogInfo(*args
, **kwargs
):
1562 """LogInfo(String msg)"""
1563 return _misc_
.LogInfo(*args
, **kwargs
)
1565 def LogDebug(*args
, **kwargs
):
1566 """LogDebug(String msg)"""
1567 return _misc_
.LogDebug(*args
, **kwargs
)
1569 def LogVerbose(*args
, **kwargs
):
1570 """LogVerbose(String msg)"""
1571 return _misc_
.LogVerbose(*args
, **kwargs
)
1573 def LogStatus(*args
, **kwargs
):
1574 """LogStatus(String msg)"""
1575 return _misc_
.LogStatus(*args
, **kwargs
)
1577 def LogStatusFrame(*args
, **kwargs
):
1578 """LogStatusFrame(wxFrame pFrame, String msg)"""
1579 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1581 def LogSysError(*args
, **kwargs
):
1582 """LogSysError(String msg)"""
1583 return _misc_
.LogSysError(*args
, **kwargs
)
1585 def LogGeneric(*args
, **kwargs
):
1586 """LogGeneric(unsigned long level, String msg)"""
1587 return _misc_
.LogGeneric(*args
, **kwargs
)
1589 def SafeShowMessage(*args
, **kwargs
):
1590 """SafeShowMessage(String title, String text)"""
1591 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1592 class LogNull(object):
1593 """Proxy of C++ LogNull class"""
1594 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1595 __repr__
= _swig_repr
1596 def __init__(self
, *args
, **kwargs
):
1597 """__init__(self) -> LogNull"""
1598 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1599 __swig_destroy__
= _misc_
.delete_LogNull
1600 __del__
= lambda self
: None;
1601 LogNull_swigregister
= _misc_
.LogNull_swigregister
1602 LogNull_swigregister(LogNull
)
1604 def LogTrace(*args
):
1606 LogTrace(unsigned long mask, String msg)
1607 LogTrace(String mask, String msg)
1609 return _misc_
.LogTrace(*args
)
1612 """Proxy of C++ PyLog class"""
1613 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1614 __repr__
= _swig_repr
1615 def __init__(self
, *args
, **kwargs
):
1616 """__init__(self) -> PyLog"""
1617 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1618 self
._setCallbackInfo
(self
, PyLog
)
1620 def _setCallbackInfo(*args
, **kwargs
):
1621 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1622 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1624 PyLog_swigregister
= _misc_
.PyLog_swigregister
1625 PyLog_swigregister(PyLog
)
1627 #---------------------------------------------------------------------------
1629 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1630 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1631 KILL_OK
= _misc_
.KILL_OK
1632 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1633 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1634 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1635 KILL_ERROR
= _misc_
.KILL_ERROR
1636 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1637 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1638 SIGNONE
= _misc_
.SIGNONE
1639 SIGHUP
= _misc_
.SIGHUP
1640 SIGINT
= _misc_
.SIGINT
1641 SIGQUIT
= _misc_
.SIGQUIT
1642 SIGILL
= _misc_
.SIGILL
1643 SIGTRAP
= _misc_
.SIGTRAP
1644 SIGABRT
= _misc_
.SIGABRT
1645 SIGIOT
= _misc_
.SIGIOT
1646 SIGEMT
= _misc_
.SIGEMT
1647 SIGFPE
= _misc_
.SIGFPE
1648 SIGKILL
= _misc_
.SIGKILL
1649 SIGBUS
= _misc_
.SIGBUS
1650 SIGSEGV
= _misc_
.SIGSEGV
1651 SIGSYS
= _misc_
.SIGSYS
1652 SIGPIPE
= _misc_
.SIGPIPE
1653 SIGALRM
= _misc_
.SIGALRM
1654 SIGTERM
= _misc_
.SIGTERM
1655 class Process(_core
.EvtHandler
):
1656 """Proxy of C++ Process class"""
1657 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1658 __repr__
= _swig_repr
1659 def Kill(*args
, **kwargs
):
1660 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1661 return _misc_
.Process_Kill(*args
, **kwargs
)
1663 Kill
= staticmethod(Kill
)
1664 def Exists(*args
, **kwargs
):
1665 """Exists(int pid) -> bool"""
1666 return _misc_
.Process_Exists(*args
, **kwargs
)
1668 Exists
= staticmethod(Exists
)
1669 def Open(*args
, **kwargs
):
1670 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1671 return _misc_
.Process_Open(*args
, **kwargs
)
1673 Open
= staticmethod(Open
)
1674 def __init__(self
, *args
, **kwargs
):
1675 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1676 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1677 self
._setCallbackInfo
(self
, Process
)
1679 def _setCallbackInfo(*args
, **kwargs
):
1680 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1681 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1683 def OnTerminate(*args
, **kwargs
):
1684 """OnTerminate(self, int pid, int status)"""
1685 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1687 def base_OnTerminate(*args
, **kw
):
1688 return Process
.OnTerminate(*args
, **kw
)
1689 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1690 "Please use Process.OnTerminate instead.")
1692 def Redirect(*args
, **kwargs
):
1693 """Redirect(self)"""
1694 return _misc_
.Process_Redirect(*args
, **kwargs
)
1696 def IsRedirected(*args
, **kwargs
):
1697 """IsRedirected(self) -> bool"""
1698 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1700 def Detach(*args
, **kwargs
):
1702 return _misc_
.Process_Detach(*args
, **kwargs
)
1704 def GetInputStream(*args
, **kwargs
):
1705 """GetInputStream(self) -> InputStream"""
1706 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1708 def GetErrorStream(*args
, **kwargs
):
1709 """GetErrorStream(self) -> InputStream"""
1710 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1712 def GetOutputStream(*args
, **kwargs
):
1713 """GetOutputStream(self) -> OutputStream"""
1714 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1716 def CloseOutput(*args
, **kwargs
):
1717 """CloseOutput(self)"""
1718 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1720 def IsInputOpened(*args
, **kwargs
):
1721 """IsInputOpened(self) -> bool"""
1722 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1724 def IsInputAvailable(*args
, **kwargs
):
1725 """IsInputAvailable(self) -> bool"""
1726 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1728 def IsErrorAvailable(*args
, **kwargs
):
1729 """IsErrorAvailable(self) -> bool"""
1730 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1732 Process_swigregister
= _misc_
.Process_swigregister
1733 Process_swigregister(Process
)
1735 def Process_Kill(*args
, **kwargs
):
1736 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1737 return _misc_
.Process_Kill(*args
, **kwargs
)
1739 def Process_Exists(*args
, **kwargs
):
1740 """Process_Exists(int pid) -> bool"""
1741 return _misc_
.Process_Exists(*args
, **kwargs
)
1743 def Process_Open(*args
, **kwargs
):
1744 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1745 return _misc_
.Process_Open(*args
, **kwargs
)
1747 class ProcessEvent(_core
.Event
):
1748 """Proxy of C++ ProcessEvent class"""
1749 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1750 __repr__
= _swig_repr
1751 def __init__(self
, *args
, **kwargs
):
1752 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1753 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1754 def GetPid(*args
, **kwargs
):
1755 """GetPid(self) -> int"""
1756 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1758 def GetExitCode(*args
, **kwargs
):
1759 """GetExitCode(self) -> int"""
1760 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1762 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1763 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1764 ProcessEvent_swigregister
= _misc_
.ProcessEvent_swigregister
1765 ProcessEvent_swigregister(ProcessEvent
)
1767 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1768 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1770 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1771 EXEC_SYNC
= _misc_
.EXEC_SYNC
1772 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1773 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1774 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1776 def Execute(*args
, **kwargs
):
1777 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1778 return _misc_
.Execute(*args
, **kwargs
)
1780 def Kill(*args
, **kwargs
):
1781 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1782 return _misc_
.Kill(*args
, **kwargs
)
1783 #---------------------------------------------------------------------------
1785 JOYSTICK1
= _misc_
.JOYSTICK1
1786 JOYSTICK2
= _misc_
.JOYSTICK2
1787 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1788 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1789 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1790 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1791 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1792 class Joystick(object):
1793 """Proxy of C++ Joystick class"""
1794 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1795 __repr__
= _swig_repr
1796 def __init__(self
, *args
, **kwargs
):
1797 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1798 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
1799 __swig_destroy__
= _misc_
.delete_Joystick
1800 __del__
= lambda self
: None;
1801 def GetPosition(*args
, **kwargs
):
1802 """GetPosition(self) -> Point"""
1803 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1805 def GetZPosition(*args
, **kwargs
):
1806 """GetZPosition(self) -> int"""
1807 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1809 def GetButtonState(*args
, **kwargs
):
1810 """GetButtonState(self) -> int"""
1811 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1813 def GetPOVPosition(*args
, **kwargs
):
1814 """GetPOVPosition(self) -> int"""
1815 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1817 def GetPOVCTSPosition(*args
, **kwargs
):
1818 """GetPOVCTSPosition(self) -> int"""
1819 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1821 def GetRudderPosition(*args
, **kwargs
):
1822 """GetRudderPosition(self) -> int"""
1823 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1825 def GetUPosition(*args
, **kwargs
):
1826 """GetUPosition(self) -> int"""
1827 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1829 def GetVPosition(*args
, **kwargs
):
1830 """GetVPosition(self) -> int"""
1831 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1833 def GetMovementThreshold(*args
, **kwargs
):
1834 """GetMovementThreshold(self) -> int"""
1835 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1837 def SetMovementThreshold(*args
, **kwargs
):
1838 """SetMovementThreshold(self, int threshold)"""
1839 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1841 def IsOk(*args
, **kwargs
):
1842 """IsOk(self) -> bool"""
1843 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1845 def GetNumberJoysticks(*args
, **kwargs
):
1846 """GetNumberJoysticks(self) -> int"""
1847 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1849 def GetManufacturerId(*args
, **kwargs
):
1850 """GetManufacturerId(self) -> int"""
1851 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1853 def GetProductId(*args
, **kwargs
):
1854 """GetProductId(self) -> int"""
1855 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1857 def GetProductName(*args
, **kwargs
):
1858 """GetProductName(self) -> String"""
1859 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1861 def GetXMin(*args
, **kwargs
):
1862 """GetXMin(self) -> int"""
1863 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1865 def GetYMin(*args
, **kwargs
):
1866 """GetYMin(self) -> int"""
1867 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1869 def GetZMin(*args
, **kwargs
):
1870 """GetZMin(self) -> int"""
1871 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1873 def GetXMax(*args
, **kwargs
):
1874 """GetXMax(self) -> int"""
1875 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1877 def GetYMax(*args
, **kwargs
):
1878 """GetYMax(self) -> int"""
1879 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1881 def GetZMax(*args
, **kwargs
):
1882 """GetZMax(self) -> int"""
1883 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1885 def GetNumberButtons(*args
, **kwargs
):
1886 """GetNumberButtons(self) -> int"""
1887 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1889 def GetNumberAxes(*args
, **kwargs
):
1890 """GetNumberAxes(self) -> int"""
1891 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1893 def GetMaxButtons(*args
, **kwargs
):
1894 """GetMaxButtons(self) -> int"""
1895 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1897 def GetMaxAxes(*args
, **kwargs
):
1898 """GetMaxAxes(self) -> int"""
1899 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1901 def GetPollingMin(*args
, **kwargs
):
1902 """GetPollingMin(self) -> int"""
1903 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1905 def GetPollingMax(*args
, **kwargs
):
1906 """GetPollingMax(self) -> int"""
1907 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1909 def GetRudderMin(*args
, **kwargs
):
1910 """GetRudderMin(self) -> int"""
1911 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1913 def GetRudderMax(*args
, **kwargs
):
1914 """GetRudderMax(self) -> int"""
1915 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1917 def GetUMin(*args
, **kwargs
):
1918 """GetUMin(self) -> int"""
1919 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1921 def GetUMax(*args
, **kwargs
):
1922 """GetUMax(self) -> int"""
1923 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1925 def GetVMin(*args
, **kwargs
):
1926 """GetVMin(self) -> int"""
1927 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1929 def GetVMax(*args
, **kwargs
):
1930 """GetVMax(self) -> int"""
1931 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1933 def HasRudder(*args
, **kwargs
):
1934 """HasRudder(self) -> bool"""
1935 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1937 def HasZ(*args
, **kwargs
):
1938 """HasZ(self) -> bool"""
1939 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1941 def HasU(*args
, **kwargs
):
1942 """HasU(self) -> bool"""
1943 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1945 def HasV(*args
, **kwargs
):
1946 """HasV(self) -> bool"""
1947 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1949 def HasPOV(*args
, **kwargs
):
1950 """HasPOV(self) -> bool"""
1951 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1953 def HasPOV4Dir(*args
, **kwargs
):
1954 """HasPOV4Dir(self) -> bool"""
1955 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1957 def HasPOVCTS(*args
, **kwargs
):
1958 """HasPOVCTS(self) -> bool"""
1959 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1961 def SetCapture(*args
, **kwargs
):
1962 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1963 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
1965 def ReleaseCapture(*args
, **kwargs
):
1966 """ReleaseCapture(self) -> bool"""
1967 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
1969 def __nonzero__(self
): return self
.IsOk()
1970 Joystick_swigregister
= _misc_
.Joystick_swigregister
1971 Joystick_swigregister(Joystick
)
1973 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
1974 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
1975 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
1976 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
1977 class JoystickEvent(_core
.Event
):
1978 """Proxy of C++ JoystickEvent class"""
1979 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1980 __repr__
= _swig_repr
1981 def __init__(self
, *args
, **kwargs
):
1983 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1984 int change=0) -> JoystickEvent
1986 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
1987 def GetPosition(*args
, **kwargs
):
1988 """GetPosition(self) -> Point"""
1989 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
1991 def GetZPosition(*args
, **kwargs
):
1992 """GetZPosition(self) -> int"""
1993 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1995 def GetButtonState(*args
, **kwargs
):
1996 """GetButtonState(self) -> int"""
1997 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1999 def GetButtonChange(*args
, **kwargs
):
2000 """GetButtonChange(self) -> int"""
2001 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2003 def GetJoystick(*args
, **kwargs
):
2004 """GetJoystick(self) -> int"""
2005 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2007 def SetJoystick(*args
, **kwargs
):
2008 """SetJoystick(self, int stick)"""
2009 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2011 def SetButtonState(*args
, **kwargs
):
2012 """SetButtonState(self, int state)"""
2013 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2015 def SetButtonChange(*args
, **kwargs
):
2016 """SetButtonChange(self, int change)"""
2017 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2019 def SetPosition(*args
, **kwargs
):
2020 """SetPosition(self, Point pos)"""
2021 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2023 def SetZPosition(*args
, **kwargs
):
2024 """SetZPosition(self, int zPos)"""
2025 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2027 def IsButton(*args
, **kwargs
):
2028 """IsButton(self) -> bool"""
2029 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2031 def IsMove(*args
, **kwargs
):
2032 """IsMove(self) -> bool"""
2033 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2035 def IsZMove(*args
, **kwargs
):
2036 """IsZMove(self) -> bool"""
2037 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2039 def ButtonDown(*args
, **kwargs
):
2040 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2041 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2043 def ButtonUp(*args
, **kwargs
):
2044 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2045 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2047 def ButtonIsDown(*args
, **kwargs
):
2048 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2049 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2051 m_pos
= property(GetPosition
, SetPosition
)
2052 m_zPosition
= property(GetZPosition
, SetZPosition
)
2053 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2054 m_buttonState
= property(GetButtonState
, SetButtonState
)
2055 m_joyStick
= property(GetJoystick
, SetJoystick
)
2057 JoystickEvent_swigregister
= _misc_
.JoystickEvent_swigregister
2058 JoystickEvent_swigregister(JoystickEvent
)
2060 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2061 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2062 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2063 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2065 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2066 wxEVT_JOY_BUTTON_UP
,
2072 #---------------------------------------------------------------------------
2074 SOUND_SYNC
= _misc_
.SOUND_SYNC
2075 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2076 SOUND_LOOP
= _misc_
.SOUND_LOOP
2077 class Sound(object):
2078 """Proxy of C++ Sound class"""
2079 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2080 __repr__
= _swig_repr
2081 def __init__(self
, *args
, **kwargs
):
2082 """__init__(self, String fileName=EmptyString) -> Sound"""
2083 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2084 __swig_destroy__
= _misc_
.delete_Sound
2085 __del__
= lambda self
: None;
2086 def Create(*args
, **kwargs
):
2087 """Create(self, String fileName) -> bool"""
2088 return _misc_
.Sound_Create(*args
, **kwargs
)
2090 def CreateFromData(*args
, **kwargs
):
2091 """CreateFromData(self, PyObject data) -> bool"""
2092 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2094 def IsOk(*args
, **kwargs
):
2095 """IsOk(self) -> bool"""
2096 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2098 def Play(*args
, **kwargs
):
2099 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2100 return _misc_
.Sound_Play(*args
, **kwargs
)
2102 def PlaySound(*args
, **kwargs
):
2103 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2104 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2106 PlaySound
= staticmethod(PlaySound
)
2107 def Stop(*args
, **kwargs
):
2109 return _misc_
.Sound_Stop(*args
, **kwargs
)
2111 Stop
= staticmethod(Stop
)
2112 def __nonzero__(self
): return self
.IsOk()
2113 Sound_swigregister
= _misc_
.Sound_swigregister
2114 Sound_swigregister(Sound
)
2116 def SoundFromData(*args
, **kwargs
):
2117 """SoundFromData(PyObject data) -> Sound"""
2118 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2121 def Sound_PlaySound(*args
, **kwargs
):
2122 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2123 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2125 def Sound_Stop(*args
):
2127 return _misc_
.Sound_Stop(*args
)
2129 #---------------------------------------------------------------------------
2131 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2132 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2133 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2134 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2135 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2136 class FileTypeInfo(object):
2137 """Proxy of C++ FileTypeInfo class"""
2138 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2139 __repr__
= _swig_repr
2140 def __init__(self
, *args
, **kwargs
):
2141 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2142 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2143 def IsValid(*args
, **kwargs
):
2144 """IsValid(self) -> bool"""
2145 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2147 def SetIcon(*args
, **kwargs
):
2148 """SetIcon(self, String iconFile, int iconIndex=0)"""
2149 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2151 def SetShortDesc(*args
, **kwargs
):
2152 """SetShortDesc(self, String shortDesc)"""
2153 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2155 def GetMimeType(*args
, **kwargs
):
2156 """GetMimeType(self) -> String"""
2157 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2159 def GetOpenCommand(*args
, **kwargs
):
2160 """GetOpenCommand(self) -> String"""
2161 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2163 def GetPrintCommand(*args
, **kwargs
):
2164 """GetPrintCommand(self) -> String"""
2165 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2167 def GetShortDesc(*args
, **kwargs
):
2168 """GetShortDesc(self) -> String"""
2169 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2171 def GetDescription(*args
, **kwargs
):
2172 """GetDescription(self) -> String"""
2173 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2175 def GetExtensions(*args
, **kwargs
):
2176 """GetExtensions(self) -> wxArrayString"""
2177 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2179 def GetExtensionsCount(*args
, **kwargs
):
2180 """GetExtensionsCount(self) -> size_t"""
2181 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2183 def GetIconFile(*args
, **kwargs
):
2184 """GetIconFile(self) -> String"""
2185 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2187 def GetIconIndex(*args
, **kwargs
):
2188 """GetIconIndex(self) -> int"""
2189 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2191 FileTypeInfo_swigregister
= _misc_
.FileTypeInfo_swigregister
2192 FileTypeInfo_swigregister(FileTypeInfo
)
2194 def FileTypeInfoSequence(*args
, **kwargs
):
2195 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2196 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2199 def NullFileTypeInfo(*args
, **kwargs
):
2200 """NullFileTypeInfo() -> FileTypeInfo"""
2201 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2204 class FileType(object):
2205 """Proxy of C++ FileType class"""
2206 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2207 __repr__
= _swig_repr
2208 def __init__(self
, *args
, **kwargs
):
2209 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2210 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2211 __swig_destroy__
= _misc_
.delete_FileType
2212 __del__
= lambda self
: None;
2213 def GetMimeType(*args
, **kwargs
):
2214 """GetMimeType(self) -> PyObject"""
2215 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2217 def GetMimeTypes(*args
, **kwargs
):
2218 """GetMimeTypes(self) -> PyObject"""
2219 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2221 def GetExtensions(*args
, **kwargs
):
2222 """GetExtensions(self) -> PyObject"""
2223 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2225 def GetIcon(*args
, **kwargs
):
2226 """GetIcon(self) -> Icon"""
2227 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2229 def GetIconInfo(*args
, **kwargs
):
2230 """GetIconInfo(self) -> PyObject"""
2231 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2233 def GetDescription(*args
, **kwargs
):
2234 """GetDescription(self) -> PyObject"""
2235 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2237 def GetOpenCommand(*args
, **kwargs
):
2238 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2239 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2241 def GetPrintCommand(*args
, **kwargs
):
2242 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2243 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2245 def GetAllCommands(*args
, **kwargs
):
2246 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2247 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2249 def SetCommand(*args
, **kwargs
):
2250 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2251 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2253 def SetDefaultIcon(*args
, **kwargs
):
2254 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2255 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2257 def Unassociate(*args
, **kwargs
):
2258 """Unassociate(self) -> bool"""
2259 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2261 def ExpandCommand(*args
, **kwargs
):
2262 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2263 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2265 ExpandCommand
= staticmethod(ExpandCommand
)
2266 FileType_swigregister
= _misc_
.FileType_swigregister
2267 FileType_swigregister(FileType
)
2269 def FileType_ExpandCommand(*args
, **kwargs
):
2270 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2271 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2273 class MimeTypesManager(object):
2274 """Proxy of C++ MimeTypesManager class"""
2275 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2276 __repr__
= _swig_repr
2277 def IsOfType(*args
, **kwargs
):
2278 """IsOfType(String mimeType, String wildcard) -> bool"""
2279 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2281 IsOfType
= staticmethod(IsOfType
)
2282 def __init__(self
, *args
, **kwargs
):
2283 """__init__(self) -> MimeTypesManager"""
2284 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2285 def Initialize(*args
, **kwargs
):
2286 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2287 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2289 def ClearData(*args
, **kwargs
):
2290 """ClearData(self)"""
2291 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2293 def GetFileTypeFromExtension(*args
, **kwargs
):
2294 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2295 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2297 def GetFileTypeFromMimeType(*args
, **kwargs
):
2298 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2299 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2301 def ReadMailcap(*args
, **kwargs
):
2302 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2303 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2305 def ReadMimeTypes(*args
, **kwargs
):
2306 """ReadMimeTypes(self, String filename) -> bool"""
2307 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2309 def EnumAllFileTypes(*args
, **kwargs
):
2310 """EnumAllFileTypes(self) -> PyObject"""
2311 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2313 def AddFallback(*args
, **kwargs
):
2314 """AddFallback(self, FileTypeInfo ft)"""
2315 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2317 def Associate(*args
, **kwargs
):
2318 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2319 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2321 def Unassociate(*args
, **kwargs
):
2322 """Unassociate(self, FileType ft) -> bool"""
2323 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2325 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2326 __del__
= lambda self
: None;
2327 MimeTypesManager_swigregister
= _misc_
.MimeTypesManager_swigregister
2328 MimeTypesManager_swigregister(MimeTypesManager
)
2329 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2331 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2332 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2333 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2335 #---------------------------------------------------------------------------
2337 class ArtProvider(object):
2339 The wx.ArtProvider class is used to customize the look of wxWidgets
2340 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2341 in the standard file dialog), it does not use hard-coded resource but
2342 asks wx.ArtProvider for it instead. This way the users can plug in
2343 their own wx.ArtProvider class and easily replace standard art with
2344 his/her own version. It is easy thing to do: all that is needed is
2345 to derive a class from wx.ArtProvider, override it's CreateBitmap
2346 method and register the provider with wx.ArtProvider.PushProvider::
2348 class MyArtProvider(wx.ArtProvider):
2350 wx.ArtProvider.__init__(self)
2352 def CreateBitmap(self, artid, client, size):
2357 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2358 __repr__
= _swig_repr
2359 def __init__(self
, *args
, **kwargs
):
2361 __init__(self) -> ArtProvider
2363 The wx.ArtProvider class is used to customize the look of wxWidgets
2364 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2365 in the standard file dialog), it does not use hard-coded resource but
2366 asks wx.ArtProvider for it instead. This way the users can plug in
2367 their own wx.ArtProvider class and easily replace standard art with
2368 his/her own version. It is easy thing to do: all that is needed is
2369 to derive a class from wx.ArtProvider, override it's CreateBitmap
2370 method and register the provider with wx.ArtProvider.PushProvider::
2372 class MyArtProvider(wx.ArtProvider):
2374 wx.ArtProvider.__init__(self)
2376 def CreateBitmap(self, artid, client, size):
2381 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2382 self
._setCallbackInfo
(self
, ArtProvider
)
2384 __swig_destroy__
= _misc_
.delete_ArtProvider
2385 __del__
= lambda self
: None;
2386 def _setCallbackInfo(*args
, **kwargs
):
2387 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2388 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2390 def PushProvider(*args
, **kwargs
):
2392 PushProvider(ArtProvider provider)
2394 Add new provider to the top of providers stack.
2396 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2398 PushProvider
= staticmethod(PushProvider
)
2399 def PopProvider(*args
, **kwargs
):
2401 PopProvider() -> bool
2403 Remove latest added provider and delete it.
2405 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2407 PopProvider
= staticmethod(PopProvider
)
2408 def RemoveProvider(*args
, **kwargs
):
2410 RemoveProvider(ArtProvider provider) -> bool
2412 Remove provider. The provider must have been added previously! The
2413 provider is _not_ deleted.
2415 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2419 RemoveProvider
= staticmethod(RemoveProvider
)
2420 def GetBitmap(*args
, **kwargs
):
2422 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2424 Query the providers for bitmap with given ID and return it. Return
2425 wx.NullBitmap if no provider provides it.
2427 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2429 GetBitmap
= staticmethod(GetBitmap
)
2430 def GetIcon(*args
, **kwargs
):
2432 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2434 Query the providers for icon with given ID and return it. Return
2435 wx.NullIcon if no provider provides it.
2437 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2439 GetIcon
= staticmethod(GetIcon
)
2440 def GetSizeHint(*args
, **kwargs
):
2442 GetSizeHint(String client, bool platform_dependent=False) -> Size
2444 Get the size hint of an icon from a specific Art Client, queries the
2445 topmost provider if platform_dependent = false
2447 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2449 GetSizeHint
= staticmethod(GetSizeHint
)
2450 def Destroy(*args
, **kwargs
):
2452 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2456 ArtProvider_swigregister
= _misc_
.ArtProvider_swigregister
2457 ArtProvider_swigregister(ArtProvider
)
2458 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2459 ART_MENU
= cvar
.ART_MENU
2460 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2461 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2462 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2463 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2464 ART_BUTTON
= cvar
.ART_BUTTON
2465 ART_OTHER
= cvar
.ART_OTHER
2466 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2467 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2468 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2469 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2470 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2471 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2472 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2473 ART_GO_BACK
= cvar
.ART_GO_BACK
2474 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2475 ART_GO_UP
= cvar
.ART_GO_UP
2476 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2477 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2478 ART_GO_HOME
= cvar
.ART_GO_HOME
2479 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2480 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2481 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2482 ART_PRINT
= cvar
.ART_PRINT
2483 ART_HELP
= cvar
.ART_HELP
2484 ART_TIP
= cvar
.ART_TIP
2485 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2486 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2487 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2488 ART_HARDDISK
= cvar
.ART_HARDDISK
2489 ART_FLOPPY
= cvar
.ART_FLOPPY
2490 ART_CDROM
= cvar
.ART_CDROM
2491 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2492 ART_FOLDER
= cvar
.ART_FOLDER
2493 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2494 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2495 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2496 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2497 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2498 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2499 ART_ERROR
= cvar
.ART_ERROR
2500 ART_QUESTION
= cvar
.ART_QUESTION
2501 ART_WARNING
= cvar
.ART_WARNING
2502 ART_INFORMATION
= cvar
.ART_INFORMATION
2503 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2504 ART_COPY
= cvar
.ART_COPY
2505 ART_CUT
= cvar
.ART_CUT
2506 ART_PASTE
= cvar
.ART_PASTE
2507 ART_DELETE
= cvar
.ART_DELETE
2508 ART_NEW
= cvar
.ART_NEW
2509 ART_UNDO
= cvar
.ART_UNDO
2510 ART_REDO
= cvar
.ART_REDO
2511 ART_QUIT
= cvar
.ART_QUIT
2512 ART_FIND
= cvar
.ART_FIND
2513 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2515 def ArtProvider_PushProvider(*args
, **kwargs
):
2517 ArtProvider_PushProvider(ArtProvider provider)
2519 Add new provider to the top of providers stack.
2521 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2523 def ArtProvider_PopProvider(*args
):
2525 ArtProvider_PopProvider() -> bool
2527 Remove latest added provider and delete it.
2529 return _misc_
.ArtProvider_PopProvider(*args
)
2531 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2533 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2535 Remove provider. The provider must have been added previously! The
2536 provider is _not_ deleted.
2538 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2542 def ArtProvider_GetBitmap(*args
, **kwargs
):
2544 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2546 Query the providers for bitmap with given ID and return it. Return
2547 wx.NullBitmap if no provider provides it.
2549 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2551 def ArtProvider_GetIcon(*args
, **kwargs
):
2553 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2555 Query the providers for icon with given ID and return it. Return
2556 wx.NullIcon if no provider provides it.
2558 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2560 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2562 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2564 Get the size hint of an icon from a specific Art Client, queries the
2565 topmost provider if platform_dependent = false
2567 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2569 #---------------------------------------------------------------------------
2571 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2572 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2573 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2574 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2575 class ConfigBase(object):
2577 wx.ConfigBase class defines the basic interface of all config
2578 classes. It can not be used by itself (it is an abstract base class)
2579 and you will always use one of its derivations: wx.Config or
2582 wx.ConfigBase organizes the items in a tree-like structure, modeled
2583 after the Unix/Dos filesystem. There are groups that act like
2584 directories and entries, key/value pairs that act like files. There
2585 is always one current group given by the current path. As in the file
2586 system case, to specify a key in the config class you must use a path
2587 to it. Config classes also support the notion of the current group,
2588 which makes it possible to use relative paths.
2590 Keys are pairs "key_name = value" where value may be of string,
2591 integer floating point or boolean, you can not store binary data
2592 without first encoding it as a string. For performance reasons items
2593 should be kept small, no more than a couple kilobytes.
2596 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2597 def __init__(self
): raise AttributeError, "No constructor defined"
2598 __repr__
= _swig_repr
2599 __swig_destroy__
= _misc_
.delete_ConfigBase
2600 __del__
= lambda self
: None;
2601 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2602 Type_String
= _misc_
.ConfigBase_Type_String
2603 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2604 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2605 Type_Float
= _misc_
.ConfigBase_Type_Float
2606 def Set(*args
, **kwargs
):
2608 Set(ConfigBase config) -> ConfigBase
2610 Sets the global config object (the one returned by Get) and returns a
2611 reference to the previous global config object.
2613 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2615 Set
= staticmethod(Set
)
2616 def Get(*args
, **kwargs
):
2618 Get(bool createOnDemand=True) -> ConfigBase
2620 Returns the current global config object, creating one if neccessary.
2622 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2624 Get
= staticmethod(Get
)
2625 def Create(*args
, **kwargs
):
2627 Create() -> ConfigBase
2629 Create and return a new global config object. This function will
2630 create the "best" implementation of wx.Config available for the
2633 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2635 Create
= staticmethod(Create
)
2636 def DontCreateOnDemand(*args
, **kwargs
):
2638 DontCreateOnDemand()
2640 Should Get() try to create a new log object if there isn't a current
2643 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2645 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2646 def SetPath(*args
, **kwargs
):
2648 SetPath(self, String path)
2650 Set current path: if the first character is '/', it's the absolute
2651 path, otherwise it's a relative path. '..' is supported. If the
2652 strPath doesn't exist it is created.
2654 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2656 def GetPath(*args
, **kwargs
):
2658 GetPath(self) -> String
2660 Retrieve the current path (always as absolute path)
2662 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2664 def GetFirstGroup(*args
, **kwargs
):
2666 GetFirstGroup() -> (more, value, index)
2668 Allows enumerating the subgroups in a config object. Returns a tuple
2669 containing a flag indicating there are more items, the name of the
2670 current item, and an index to pass to GetNextGroup to fetch the next
2673 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2675 def GetNextGroup(*args
, **kwargs
):
2677 GetNextGroup(long index) -> (more, value, index)
2679 Allows enumerating the subgroups in a config object. Returns a tuple
2680 containing a flag indicating there are more items, the name of the
2681 current item, and an index to pass to GetNextGroup to fetch the next
2684 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2686 def GetFirstEntry(*args
, **kwargs
):
2688 GetFirstEntry() -> (more, value, index)
2690 Allows enumerating the entries in the current group in a config
2691 object. Returns a tuple containing a flag indicating there are more
2692 items, the name of the current item, and an index to pass to
2693 GetNextGroup to fetch the next item.
2695 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2697 def GetNextEntry(*args
, **kwargs
):
2699 GetNextEntry(long index) -> (more, value, index)
2701 Allows enumerating the entries in the current group in a config
2702 object. Returns a tuple containing a flag indicating there are more
2703 items, the name of the current item, and an index to pass to
2704 GetNextGroup to fetch the next item.
2706 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2708 def GetNumberOfEntries(*args
, **kwargs
):
2710 GetNumberOfEntries(self, bool recursive=False) -> size_t
2712 Get the number of entries in the current group, with or without its
2715 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2717 def GetNumberOfGroups(*args
, **kwargs
):
2719 GetNumberOfGroups(self, bool recursive=False) -> size_t
2721 Get the number of subgroups in the current group, with or without its
2724 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2726 def HasGroup(*args
, **kwargs
):
2728 HasGroup(self, String name) -> bool
2730 Returns True if the group by this name exists
2732 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2734 def HasEntry(*args
, **kwargs
):
2736 HasEntry(self, String name) -> bool
2738 Returns True if the entry by this name exists
2740 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2742 def Exists(*args
, **kwargs
):
2744 Exists(self, String name) -> bool
2746 Returns True if either a group or an entry with a given name exists
2748 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2750 def GetEntryType(*args
, **kwargs
):
2752 GetEntryType(self, String name) -> int
2754 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2756 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2758 def Read(*args
, **kwargs
):
2760 Read(self, String key, String defaultVal=EmptyString) -> String
2762 Returns the value of key if it exists, defaultVal otherwise.
2764 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2766 def ReadInt(*args
, **kwargs
):
2768 ReadInt(self, String key, long defaultVal=0) -> long
2770 Returns the value of key if it exists, defaultVal otherwise.
2772 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2774 def ReadFloat(*args
, **kwargs
):
2776 ReadFloat(self, String key, double defaultVal=0.0) -> double
2778 Returns the value of key if it exists, defaultVal otherwise.
2780 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2782 def ReadBool(*args
, **kwargs
):
2784 ReadBool(self, String key, bool defaultVal=False) -> bool
2786 Returns the value of key if it exists, defaultVal otherwise.
2788 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2790 def Write(*args
, **kwargs
):
2792 Write(self, String key, String value) -> bool
2794 write the value (return True on success)
2796 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2798 def WriteInt(*args
, **kwargs
):
2800 WriteInt(self, String key, long value) -> bool
2802 write the value (return True on success)
2804 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2806 def WriteFloat(*args
, **kwargs
):
2808 WriteFloat(self, String key, double value) -> bool
2810 write the value (return True on success)
2812 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2814 def WriteBool(*args
, **kwargs
):
2816 WriteBool(self, String key, bool value) -> bool
2818 write the value (return True on success)
2820 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2822 def Flush(*args
, **kwargs
):
2824 Flush(self, bool currentOnly=False) -> bool
2826 permanently writes all changes
2828 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2830 def RenameEntry(*args
, **kwargs
):
2832 RenameEntry(self, String oldName, String newName) -> bool
2834 Rename an entry. Returns False on failure (probably because the new
2835 name is already taken by an existing entry)
2837 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2839 def RenameGroup(*args
, **kwargs
):
2841 RenameGroup(self, String oldName, String newName) -> bool
2843 Rename a group. Returns False on failure (probably because the new
2844 name is already taken by an existing entry)
2846 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2848 def DeleteEntry(*args
, **kwargs
):
2850 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2852 Deletes the specified entry and the group it belongs to if it was the
2853 last key in it and the second parameter is True
2855 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2857 def DeleteGroup(*args
, **kwargs
):
2859 DeleteGroup(self, String key) -> bool
2861 Delete the group (with all subgroups)
2863 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2865 def DeleteAll(*args
, **kwargs
):
2867 DeleteAll(self) -> bool
2869 Delete the whole underlying object (disk file, registry key, ...)
2870 primarly intended for use by deinstallation routine.
2872 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2874 def SetExpandEnvVars(*args
, **kwargs
):
2876 SetExpandEnvVars(self, bool doIt=True)
2878 We can automatically expand environment variables in the config
2879 entries this option is on by default, you can turn it on/off at any
2882 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2884 def IsExpandingEnvVars(*args
, **kwargs
):
2886 IsExpandingEnvVars(self) -> bool
2888 Are we currently expanding environment variables?
2890 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2892 def SetRecordDefaults(*args
, **kwargs
):
2894 SetRecordDefaults(self, bool doIt=True)
2896 Set whether the config objec should record default values.
2898 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2900 def IsRecordingDefaults(*args
, **kwargs
):
2902 IsRecordingDefaults(self) -> bool
2904 Are we currently recording default values?
2906 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2908 def ExpandEnvVars(*args
, **kwargs
):
2910 ExpandEnvVars(self, String str) -> String
2912 Expand any environment variables in str and return the result
2914 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2916 def GetAppName(*args
, **kwargs
):
2917 """GetAppName(self) -> String"""
2918 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
2920 def GetVendorName(*args
, **kwargs
):
2921 """GetVendorName(self) -> String"""
2922 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
2924 def SetAppName(*args
, **kwargs
):
2925 """SetAppName(self, String appName)"""
2926 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
2928 def SetVendorName(*args
, **kwargs
):
2929 """SetVendorName(self, String vendorName)"""
2930 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
2932 def SetStyle(*args
, **kwargs
):
2933 """SetStyle(self, long style)"""
2934 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
2936 def GetStyle(*args
, **kwargs
):
2937 """GetStyle(self) -> long"""
2938 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
2940 ConfigBase_swigregister
= _misc_
.ConfigBase_swigregister
2941 ConfigBase_swigregister(ConfigBase
)
2943 def ConfigBase_Set(*args
, **kwargs
):
2945 ConfigBase_Set(ConfigBase config) -> ConfigBase
2947 Sets the global config object (the one returned by Get) and returns a
2948 reference to the previous global config object.
2950 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2952 def ConfigBase_Get(*args
, **kwargs
):
2954 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
2956 Returns the current global config object, creating one if neccessary.
2958 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2960 def ConfigBase_Create(*args
):
2962 ConfigBase_Create() -> ConfigBase
2964 Create and return a new global config object. This function will
2965 create the "best" implementation of wx.Config available for the
2968 return _misc_
.ConfigBase_Create(*args
)
2970 def ConfigBase_DontCreateOnDemand(*args
):
2972 ConfigBase_DontCreateOnDemand()
2974 Should Get() try to create a new log object if there isn't a current
2977 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
2979 class Config(ConfigBase
):
2981 This ConfigBase-derived class will use the registry on Windows,
2982 and will be a wx.FileConfig on other platforms.
2984 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2985 __repr__
= _swig_repr
2986 def __init__(self
, *args
, **kwargs
):
2988 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
2989 String localFilename=EmptyString, String globalFilename=EmptyString,
2990 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
2992 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
2993 __swig_destroy__
= _misc_
.delete_Config
2994 __del__
= lambda self
: None;
2995 Config_swigregister
= _misc_
.Config_swigregister
2996 Config_swigregister(Config
)
2998 class FileConfig(ConfigBase
):
2999 """This config class will use a file for storage on all platforms."""
3000 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3001 __repr__
= _swig_repr
3002 def __init__(self
, *args
, **kwargs
):
3004 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3005 String localFilename=EmptyString, String globalFilename=EmptyString,
3006 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3008 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3009 __swig_destroy__
= _misc_
.delete_FileConfig
3010 __del__
= lambda self
: None;
3011 FileConfig_swigregister
= _misc_
.FileConfig_swigregister
3012 FileConfig_swigregister(FileConfig
)
3014 class ConfigPathChanger(object):
3016 A handy little class which changes current path to the path of given
3017 entry and restores it in the destructoir: so if you declare a local
3018 variable of this type, you work in the entry directory and the path is
3019 automatically restored when the function returns.
3021 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3022 __repr__
= _swig_repr
3023 def __init__(self
, *args
, **kwargs
):
3024 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3025 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3026 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3027 __del__
= lambda self
: None;
3028 def Name(*args
, **kwargs
):
3030 Name(self) -> String
3034 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3036 ConfigPathChanger_swigregister
= _misc_
.ConfigPathChanger_swigregister
3037 ConfigPathChanger_swigregister(ConfigPathChanger
)
3040 def ExpandEnvVars(*args
, **kwargs
):
3042 ExpandEnvVars(String sz) -> String
3044 Replace environment variables ($SOMETHING) with their values. The
3045 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3046 characters and '_' only. '$' must be escaped ('\$') in order to be
3049 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3050 #---------------------------------------------------------------------------
3052 class DateTime(object):
3053 """Proxy of C++ DateTime class"""
3054 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3055 __repr__
= _swig_repr
3056 Local
= _misc_
.DateTime_Local
3057 GMT_12
= _misc_
.DateTime_GMT_12
3058 GMT_11
= _misc_
.DateTime_GMT_11
3059 GMT_10
= _misc_
.DateTime_GMT_10
3060 GMT_9
= _misc_
.DateTime_GMT_9
3061 GMT_8
= _misc_
.DateTime_GMT_8
3062 GMT_7
= _misc_
.DateTime_GMT_7
3063 GMT_6
= _misc_
.DateTime_GMT_6
3064 GMT_5
= _misc_
.DateTime_GMT_5
3065 GMT_4
= _misc_
.DateTime_GMT_4
3066 GMT_3
= _misc_
.DateTime_GMT_3
3067 GMT_2
= _misc_
.DateTime_GMT_2
3068 GMT_1
= _misc_
.DateTime_GMT_1
3069 GMT0
= _misc_
.DateTime_GMT0
3070 GMT1
= _misc_
.DateTime_GMT1
3071 GMT2
= _misc_
.DateTime_GMT2
3072 GMT3
= _misc_
.DateTime_GMT3
3073 GMT4
= _misc_
.DateTime_GMT4
3074 GMT5
= _misc_
.DateTime_GMT5
3075 GMT6
= _misc_
.DateTime_GMT6
3076 GMT7
= _misc_
.DateTime_GMT7
3077 GMT8
= _misc_
.DateTime_GMT8
3078 GMT9
= _misc_
.DateTime_GMT9
3079 GMT10
= _misc_
.DateTime_GMT10
3080 GMT11
= _misc_
.DateTime_GMT11
3081 GMT12
= _misc_
.DateTime_GMT12
3082 WET
= _misc_
.DateTime_WET
3083 WEST
= _misc_
.DateTime_WEST
3084 CET
= _misc_
.DateTime_CET
3085 CEST
= _misc_
.DateTime_CEST
3086 EET
= _misc_
.DateTime_EET
3087 EEST
= _misc_
.DateTime_EEST
3088 MSK
= _misc_
.DateTime_MSK
3089 MSD
= _misc_
.DateTime_MSD
3090 AST
= _misc_
.DateTime_AST
3091 ADT
= _misc_
.DateTime_ADT
3092 EST
= _misc_
.DateTime_EST
3093 EDT
= _misc_
.DateTime_EDT
3094 CST
= _misc_
.DateTime_CST
3095 CDT
= _misc_
.DateTime_CDT
3096 MST
= _misc_
.DateTime_MST
3097 MDT
= _misc_
.DateTime_MDT
3098 PST
= _misc_
.DateTime_PST
3099 PDT
= _misc_
.DateTime_PDT
3100 HST
= _misc_
.DateTime_HST
3101 AKST
= _misc_
.DateTime_AKST
3102 AKDT
= _misc_
.DateTime_AKDT
3103 A_WST
= _misc_
.DateTime_A_WST
3104 A_CST
= _misc_
.DateTime_A_CST
3105 A_EST
= _misc_
.DateTime_A_EST
3106 A_ESST
= _misc_
.DateTime_A_ESST
3107 UTC
= _misc_
.DateTime_UTC
3108 Gregorian
= _misc_
.DateTime_Gregorian
3109 Julian
= _misc_
.DateTime_Julian
3110 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3111 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3112 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3113 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3114 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3115 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3116 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3117 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3118 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3119 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3120 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3121 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3122 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3123 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3124 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3125 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3126 Gr_China
= _misc_
.DateTime_Gr_China
3127 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3128 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3129 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3130 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3131 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3132 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3133 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3134 Gr_France
= _misc_
.DateTime_Gr_France
3135 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3136 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3137 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3138 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3139 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3140 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3141 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3142 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3143 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3144 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3145 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3146 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3147 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3148 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3149 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3150 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3151 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3152 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3153 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3154 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3155 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3156 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3157 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3158 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3159 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3160 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3161 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3162 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3163 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3164 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3165 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3166 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3167 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3168 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3169 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3170 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3171 Gr_USA
= _misc_
.DateTime_Gr_USA
3172 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3173 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3174 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3175 Country_Default
= _misc_
.DateTime_Country_Default
3176 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3177 Country_EEC
= _misc_
.DateTime_Country_EEC
3178 France
= _misc_
.DateTime_France
3179 Germany
= _misc_
.DateTime_Germany
3180 UK
= _misc_
.DateTime_UK
3181 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3182 Russia
= _misc_
.DateTime_Russia
3183 USA
= _misc_
.DateTime_USA
3184 Jan
= _misc_
.DateTime_Jan
3185 Feb
= _misc_
.DateTime_Feb
3186 Mar
= _misc_
.DateTime_Mar
3187 Apr
= _misc_
.DateTime_Apr
3188 May
= _misc_
.DateTime_May
3189 Jun
= _misc_
.DateTime_Jun
3190 Jul
= _misc_
.DateTime_Jul
3191 Aug
= _misc_
.DateTime_Aug
3192 Sep
= _misc_
.DateTime_Sep
3193 Oct
= _misc_
.DateTime_Oct
3194 Nov
= _misc_
.DateTime_Nov
3195 Dec
= _misc_
.DateTime_Dec
3196 Inv_Month
= _misc_
.DateTime_Inv_Month
3197 Sun
= _misc_
.DateTime_Sun
3198 Mon
= _misc_
.DateTime_Mon
3199 Tue
= _misc_
.DateTime_Tue
3200 Wed
= _misc_
.DateTime_Wed
3201 Thu
= _misc_
.DateTime_Thu
3202 Fri
= _misc_
.DateTime_Fri
3203 Sat
= _misc_
.DateTime_Sat
3204 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3205 Inv_Year
= _misc_
.DateTime_Inv_Year
3206 Name_Full
= _misc_
.DateTime_Name_Full
3207 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3208 Default_First
= _misc_
.DateTime_Default_First
3209 Monday_First
= _misc_
.DateTime_Monday_First
3210 Sunday_First
= _misc_
.DateTime_Sunday_First
3211 def SetCountry(*args
, **kwargs
):
3212 """SetCountry(int country)"""
3213 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3215 SetCountry
= staticmethod(SetCountry
)
3216 def GetCountry(*args
, **kwargs
):
3217 """GetCountry() -> int"""
3218 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3220 GetCountry
= staticmethod(GetCountry
)
3221 def IsWestEuropeanCountry(*args
, **kwargs
):
3222 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3223 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3225 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3226 def GetCurrentYear(*args
, **kwargs
):
3227 """GetCurrentYear(int cal=Gregorian) -> int"""
3228 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3230 GetCurrentYear
= staticmethod(GetCurrentYear
)
3231 def ConvertYearToBC(*args
, **kwargs
):
3232 """ConvertYearToBC(int year) -> int"""
3233 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3235 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3236 def GetCurrentMonth(*args
, **kwargs
):
3237 """GetCurrentMonth(int cal=Gregorian) -> int"""
3238 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3240 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3241 def IsLeapYear(*args
, **kwargs
):
3242 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3243 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3245 IsLeapYear
= staticmethod(IsLeapYear
)
3246 def GetCentury(*args
, **kwargs
):
3247 """GetCentury(int year=Inv_Year) -> int"""
3248 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3250 GetCentury
= staticmethod(GetCentury
)
3251 def GetNumberOfDaysinYear(*args
, **kwargs
):
3252 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3253 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3255 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3256 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3257 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3258 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3260 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3261 def GetMonthName(*args
, **kwargs
):
3262 """GetMonthName(int month, int flags=Name_Full) -> String"""
3263 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3265 GetMonthName
= staticmethod(GetMonthName
)
3266 def GetWeekDayName(*args
, **kwargs
):
3267 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3268 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3270 GetWeekDayName
= staticmethod(GetWeekDayName
)
3271 def GetAmPmStrings(*args
, **kwargs
):
3273 GetAmPmStrings() -> (am, pm)
3275 Get the AM and PM strings in the current locale (may be empty)
3277 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3279 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3280 def IsDSTApplicable(*args
, **kwargs
):
3281 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3282 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3284 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3285 def GetBeginDST(*args
, **kwargs
):
3286 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3287 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3289 GetBeginDST
= staticmethod(GetBeginDST
)
3290 def GetEndDST(*args
, **kwargs
):
3291 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3292 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3294 GetEndDST
= staticmethod(GetEndDST
)
3295 def Now(*args
, **kwargs
):
3296 """Now() -> DateTime"""
3297 return _misc_
.DateTime_Now(*args
, **kwargs
)
3299 Now
= staticmethod(Now
)
3300 def UNow(*args
, **kwargs
):
3301 """UNow() -> DateTime"""
3302 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3304 UNow
= staticmethod(UNow
)
3305 def Today(*args
, **kwargs
):
3306 """Today() -> DateTime"""
3307 return _misc_
.DateTime_Today(*args
, **kwargs
)
3309 Today
= staticmethod(Today
)
3310 def __init__(self
, *args
, **kwargs
):
3311 """__init__(self) -> DateTime"""
3312 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3313 __swig_destroy__
= _misc_
.delete_DateTime
3314 __del__
= lambda self
: None;
3315 def SetToCurrent(*args
, **kwargs
):
3316 """SetToCurrent(self) -> DateTime"""
3317 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3319 def SetTimeT(*args
, **kwargs
):
3320 """SetTimeT(self, time_t timet) -> DateTime"""
3321 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3323 def SetJDN(*args
, **kwargs
):
3324 """SetJDN(self, double jdn) -> DateTime"""
3325 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3327 def SetHMS(*args
, **kwargs
):
3328 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3329 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3331 def Set(*args
, **kwargs
):
3333 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3334 int minute=0, int second=0, int millisec=0) -> DateTime
3336 return _misc_
.DateTime_Set(*args
, **kwargs
)
3338 def ResetTime(*args
, **kwargs
):
3339 """ResetTime(self) -> DateTime"""
3340 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3342 def SetYear(*args
, **kwargs
):
3343 """SetYear(self, int year) -> DateTime"""
3344 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3346 def SetMonth(*args
, **kwargs
):
3347 """SetMonth(self, int month) -> DateTime"""
3348 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3350 def SetDay(*args
, **kwargs
):
3351 """SetDay(self, int day) -> DateTime"""
3352 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3354 def SetHour(*args
, **kwargs
):
3355 """SetHour(self, int hour) -> DateTime"""
3356 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3358 def SetMinute(*args
, **kwargs
):
3359 """SetMinute(self, int minute) -> DateTime"""
3360 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3362 def SetSecond(*args
, **kwargs
):
3363 """SetSecond(self, int second) -> DateTime"""
3364 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3366 def SetMillisecond(*args
, **kwargs
):
3367 """SetMillisecond(self, int millisecond) -> DateTime"""
3368 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3370 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3371 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3372 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3374 def GetWeekDayInSameWeek(*args
, **kwargs
):
3375 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3376 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3378 def SetToNextWeekDay(*args
, **kwargs
):
3379 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3380 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3382 def GetNextWeekDay(*args
, **kwargs
):
3383 """GetNextWeekDay(self, int weekday) -> DateTime"""
3384 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3386 def SetToPrevWeekDay(*args
, **kwargs
):
3387 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3388 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3390 def GetPrevWeekDay(*args
, **kwargs
):
3391 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3392 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3394 def SetToWeekDay(*args
, **kwargs
):
3395 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3396 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3398 def SetToLastWeekDay(*args
, **kwargs
):
3399 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3400 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3402 def GetLastWeekDay(*args
, **kwargs
):
3403 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3404 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3406 def SetToTheWeek(*args
, **kwargs
):
3407 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3408 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3410 def GetWeek(*args
, **kwargs
):
3411 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3412 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3414 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3415 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3417 def SetToWeekOfYear(*args
, **kwargs
):
3418 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3419 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3421 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3422 def SetToLastMonthDay(*args
, **kwargs
):
3423 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3424 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3426 def GetLastMonthDay(*args
, **kwargs
):
3427 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3428 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3430 def SetToYearDay(*args
, **kwargs
):
3431 """SetToYearDay(self, int yday) -> DateTime"""
3432 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3434 def GetYearDay(*args
, **kwargs
):
3435 """GetYearDay(self, int yday) -> DateTime"""
3436 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3438 def GetJulianDayNumber(*args
, **kwargs
):
3439 """GetJulianDayNumber(self) -> double"""
3440 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3442 def GetJDN(*args
, **kwargs
):
3443 """GetJDN(self) -> double"""
3444 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3446 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3447 """GetModifiedJulianDayNumber(self) -> double"""
3448 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3450 def GetMJD(*args
, **kwargs
):
3451 """GetMJD(self) -> double"""
3452 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3454 def GetRataDie(*args
, **kwargs
):
3455 """GetRataDie(self) -> double"""
3456 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3458 def ToTimezone(*args
, **kwargs
):
3459 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3460 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3462 def MakeTimezone(*args
, **kwargs
):
3463 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3464 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3466 def FromTimezone(*args
, **kwargs
):
3467 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3468 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3470 def MakeFromTimezone(*args
, **kwargs
):
3471 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3472 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3474 def ToUTC(*args
, **kwargs
):
3475 """ToUTC(self, bool noDST=False) -> DateTime"""
3476 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3478 def MakeUTC(*args
, **kwargs
):
3479 """MakeUTC(self, bool noDST=False) -> DateTime"""
3480 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3482 def ToGMT(*args
, **kwargs
):
3483 """ToGMT(self, bool noDST=False) -> DateTime"""
3484 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3486 def MakeGMT(*args
, **kwargs
):
3487 """MakeGMT(self, bool noDST=False) -> DateTime"""
3488 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3490 def FromUTC(*args
, **kwargs
):
3491 """FromUTC(self, bool noDST=False) -> DateTime"""
3492 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3494 def MakeFromUTC(*args
, **kwargs
):
3495 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3496 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3498 def IsDST(*args
, **kwargs
):
3499 """IsDST(self, int country=Country_Default) -> int"""
3500 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3502 def IsValid(*args
, **kwargs
):
3503 """IsValid(self) -> bool"""
3504 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3507 def __nonzero__(self
): return self
.Ok()
3508 def GetTicks(*args
, **kwargs
):
3509 """GetTicks(self) -> time_t"""
3510 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3512 def GetYear(*args
, **kwargs
):
3513 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3514 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3516 def GetMonth(*args
, **kwargs
):
3517 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3518 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3520 def GetDay(*args
, **kwargs
):
3521 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3522 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3524 def GetWeekDay(*args
, **kwargs
):
3525 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3526 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3528 def GetHour(*args
, **kwargs
):
3529 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3530 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3532 def GetMinute(*args
, **kwargs
):
3533 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3534 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3536 def GetSecond(*args
, **kwargs
):
3537 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3538 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3540 def GetMillisecond(*args
, **kwargs
):
3541 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3542 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3544 def GetDayOfYear(*args
, **kwargs
):
3545 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3546 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3548 def GetWeekOfYear(*args
, **kwargs
):
3549 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3550 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3552 def GetWeekOfMonth(*args
, **kwargs
):
3553 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3554 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3556 def IsWorkDay(*args
, **kwargs
):
3557 """IsWorkDay(self, int country=Country_Default) -> bool"""
3558 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3560 def IsEqualTo(*args
, **kwargs
):
3561 """IsEqualTo(self, DateTime datetime) -> bool"""
3562 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3564 def IsEarlierThan(*args
, **kwargs
):
3565 """IsEarlierThan(self, DateTime datetime) -> bool"""
3566 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3568 def IsLaterThan(*args
, **kwargs
):
3569 """IsLaterThan(self, DateTime datetime) -> bool"""
3570 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3572 def IsStrictlyBetween(*args
, **kwargs
):
3573 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3574 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3576 def IsBetween(*args
, **kwargs
):
3577 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3578 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3580 def IsSameDate(*args
, **kwargs
):
3581 """IsSameDate(self, DateTime dt) -> bool"""
3582 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3584 def IsSameTime(*args
, **kwargs
):
3585 """IsSameTime(self, DateTime dt) -> bool"""
3586 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3588 def IsEqualUpTo(*args
, **kwargs
):
3589 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3590 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3592 def AddTS(*args
, **kwargs
):
3593 """AddTS(self, TimeSpan diff) -> DateTime"""
3594 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3596 def AddDS(*args
, **kwargs
):
3597 """AddDS(self, DateSpan diff) -> DateTime"""
3598 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3600 def SubtractTS(*args
, **kwargs
):
3601 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3602 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3604 def SubtractDS(*args
, **kwargs
):
3605 """SubtractDS(self, DateSpan diff) -> DateTime"""
3606 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3608 def Subtract(*args
, **kwargs
):
3609 """Subtract(self, DateTime dt) -> TimeSpan"""
3610 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3612 def __iadd__(*args
):
3614 __iadd__(self, TimeSpan diff) -> DateTime
3615 __iadd__(self, DateSpan diff) -> DateTime
3617 return _misc_
.DateTime___iadd__(*args
)
3619 def __isub__(*args
):
3621 __isub__(self, TimeSpan diff) -> DateTime
3622 __isub__(self, DateSpan diff) -> DateTime
3624 return _misc_
.DateTime___isub__(*args
)
3628 __add__(self, TimeSpan other) -> DateTime
3629 __add__(self, DateSpan other) -> DateTime
3631 return _misc_
.DateTime___add__(*args
)
3635 __sub__(self, DateTime other) -> TimeSpan
3636 __sub__(self, TimeSpan other) -> DateTime
3637 __sub__(self, DateSpan other) -> DateTime
3639 return _misc_
.DateTime___sub__(*args
)
3641 def __lt__(*args
, **kwargs
):
3642 """__lt__(self, DateTime other) -> bool"""
3643 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3645 def __le__(*args
, **kwargs
):
3646 """__le__(self, DateTime other) -> bool"""
3647 return _misc_
.DateTime___le__(*args
, **kwargs
)
3649 def __gt__(*args
, **kwargs
):
3650 """__gt__(self, DateTime other) -> bool"""
3651 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3653 def __ge__(*args
, **kwargs
):
3654 """__ge__(self, DateTime other) -> bool"""
3655 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3657 def __eq__(*args
, **kwargs
):
3658 """__eq__(self, DateTime other) -> bool"""
3659 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3661 def __ne__(*args
, **kwargs
):
3662 """__ne__(self, DateTime other) -> bool"""
3663 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3665 def ParseRfc822Date(*args
, **kwargs
):
3666 """ParseRfc822Date(self, String date) -> int"""
3667 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3669 def ParseFormat(*args
, **kwargs
):
3670 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3671 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3673 def ParseDateTime(*args
, **kwargs
):
3674 """ParseDateTime(self, String datetime) -> int"""
3675 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3677 def ParseDate(*args
, **kwargs
):
3678 """ParseDate(self, String date) -> int"""
3679 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3681 def ParseTime(*args
, **kwargs
):
3682 """ParseTime(self, String time) -> int"""
3683 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3685 def Format(*args
, **kwargs
):
3686 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3687 return _misc_
.DateTime_Format(*args
, **kwargs
)
3689 def FormatDate(*args
, **kwargs
):
3690 """FormatDate(self) -> String"""
3691 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3693 def FormatTime(*args
, **kwargs
):
3694 """FormatTime(self) -> String"""
3695 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3697 def FormatISODate(*args
, **kwargs
):
3698 """FormatISODate(self) -> String"""
3699 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3701 def FormatISOTime(*args
, **kwargs
):
3702 """FormatISOTime(self) -> String"""
3703 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3707 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3708 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
3710 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3713 return self
.Format().encode(wx
.GetDefaultPyEncoding())
3715 return "INVALID DateTime"
3717 DateTime_swigregister
= _misc_
.DateTime_swigregister
3718 DateTime_swigregister(DateTime
)
3719 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
3720 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
3722 def DateTime_SetCountry(*args
, **kwargs
):
3723 """DateTime_SetCountry(int country)"""
3724 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3726 def DateTime_GetCountry(*args
):
3727 """DateTime_GetCountry() -> int"""
3728 return _misc_
.DateTime_GetCountry(*args
)
3730 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3731 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3732 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3734 def DateTime_GetCurrentYear(*args
, **kwargs
):
3735 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3736 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3738 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3739 """DateTime_ConvertYearToBC(int year) -> int"""
3740 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3742 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3743 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3744 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3746 def DateTime_IsLeapYear(*args
, **kwargs
):
3747 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3748 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3750 def DateTime_GetCentury(*args
, **kwargs
):
3751 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3752 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3754 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3755 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3756 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3758 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3759 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3760 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3762 def DateTime_GetMonthName(*args
, **kwargs
):
3763 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3764 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3766 def DateTime_GetWeekDayName(*args
, **kwargs
):
3767 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3768 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3770 def DateTime_GetAmPmStrings(*args
):
3772 GetAmPmStrings() -> (am, pm)
3774 Get the AM and PM strings in the current locale (may be empty)
3776 return _misc_
.DateTime_GetAmPmStrings(*args
)
3778 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3779 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3780 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3782 def DateTime_GetBeginDST(*args
, **kwargs
):
3783 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3784 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3786 def DateTime_GetEndDST(*args
, **kwargs
):
3787 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3788 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3790 def DateTime_Now(*args
):
3791 """DateTime_Now() -> DateTime"""
3792 return _misc_
.DateTime_Now(*args
)
3794 def DateTime_UNow(*args
):
3795 """DateTime_UNow() -> DateTime"""
3796 return _misc_
.DateTime_UNow(*args
)
3798 def DateTime_Today(*args
):
3799 """DateTime_Today() -> DateTime"""
3800 return _misc_
.DateTime_Today(*args
)
3802 def DateTimeFromTimeT(*args
, **kwargs
):
3803 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3804 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3807 def DateTimeFromJDN(*args
, **kwargs
):
3808 """DateTimeFromJDN(double jdn) -> DateTime"""
3809 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3812 def DateTimeFromHMS(*args
, **kwargs
):
3813 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3814 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3817 def DateTimeFromDMY(*args
, **kwargs
):
3819 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3820 int minute=0, int second=0, int millisec=0) -> DateTime
3822 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3825 def DateTimeFromDateTime(*args
, **kwargs
):
3826 """DateTimeFromDateTime(DateTime date) -> DateTime"""
3827 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
3830 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
3831 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3832 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3834 class TimeSpan(object):
3835 """Proxy of C++ TimeSpan class"""
3836 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3837 __repr__
= _swig_repr
3838 def Milliseconds(*args
, **kwargs
):
3839 """Milliseconds(long ms) -> TimeSpan"""
3840 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
3842 Milliseconds
= staticmethod(Milliseconds
)
3843 def Millisecond(*args
, **kwargs
):
3844 """Millisecond() -> TimeSpan"""
3845 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
3847 Millisecond
= staticmethod(Millisecond
)
3848 def Seconds(*args
, **kwargs
):
3849 """Seconds(long sec) -> TimeSpan"""
3850 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3852 Seconds
= staticmethod(Seconds
)
3853 def Second(*args
, **kwargs
):
3854 """Second() -> TimeSpan"""
3855 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3857 Second
= staticmethod(Second
)
3858 def Minutes(*args
, **kwargs
):
3859 """Minutes(long min) -> TimeSpan"""
3860 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3862 Minutes
= staticmethod(Minutes
)
3863 def Minute(*args
, **kwargs
):
3864 """Minute() -> TimeSpan"""
3865 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3867 Minute
= staticmethod(Minute
)
3868 def Hours(*args
, **kwargs
):
3869 """Hours(long hours) -> TimeSpan"""
3870 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3872 Hours
= staticmethod(Hours
)
3873 def Hour(*args
, **kwargs
):
3874 """Hour() -> TimeSpan"""
3875 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3877 Hour
= staticmethod(Hour
)
3878 def Days(*args
, **kwargs
):
3879 """Days(long days) -> TimeSpan"""
3880 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3882 Days
= staticmethod(Days
)
3883 def Day(*args
, **kwargs
):
3884 """Day() -> TimeSpan"""
3885 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3887 Day
= staticmethod(Day
)
3888 def Weeks(*args
, **kwargs
):
3889 """Weeks(long days) -> TimeSpan"""
3890 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3892 Weeks
= staticmethod(Weeks
)
3893 def Week(*args
, **kwargs
):
3894 """Week() -> TimeSpan"""
3895 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3897 Week
= staticmethod(Week
)
3898 def __init__(self
, *args
, **kwargs
):
3899 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3900 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
3901 __swig_destroy__
= _misc_
.delete_TimeSpan
3902 __del__
= lambda self
: None;
3903 def Add(*args
, **kwargs
):
3904 """Add(self, TimeSpan diff) -> TimeSpan"""
3905 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3907 def Subtract(*args
, **kwargs
):
3908 """Subtract(self, TimeSpan diff) -> TimeSpan"""
3909 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
3911 def Multiply(*args
, **kwargs
):
3912 """Multiply(self, int n) -> TimeSpan"""
3913 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
3915 def Neg(*args
, **kwargs
):
3916 """Neg(self) -> TimeSpan"""
3917 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
3919 def Abs(*args
, **kwargs
):
3920 """Abs(self) -> TimeSpan"""
3921 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
3923 def __iadd__(*args
, **kwargs
):
3924 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
3925 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
3927 def __isub__(*args
, **kwargs
):
3928 """__isub__(self, TimeSpan diff) -> TimeSpan"""
3929 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
3931 def __imul__(*args
, **kwargs
):
3932 """__imul__(self, int n) -> TimeSpan"""
3933 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
3935 def __neg__(*args
, **kwargs
):
3936 """__neg__(self) -> TimeSpan"""
3937 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
3939 def __add__(*args
, **kwargs
):
3940 """__add__(self, TimeSpan other) -> TimeSpan"""
3941 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
3943 def __sub__(*args
, **kwargs
):
3944 """__sub__(self, TimeSpan other) -> TimeSpan"""
3945 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
3947 def __mul__(*args
, **kwargs
):
3948 """__mul__(self, int n) -> TimeSpan"""
3949 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
3951 def __rmul__(*args
, **kwargs
):
3952 """__rmul__(self, int n) -> TimeSpan"""
3953 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
3955 def __lt__(*args
, **kwargs
):
3956 """__lt__(self, TimeSpan other) -> bool"""
3957 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
3959 def __le__(*args
, **kwargs
):
3960 """__le__(self, TimeSpan other) -> bool"""
3961 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
3963 def __gt__(*args
, **kwargs
):
3964 """__gt__(self, TimeSpan other) -> bool"""
3965 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
3967 def __ge__(*args
, **kwargs
):
3968 """__ge__(self, TimeSpan other) -> bool"""
3969 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
3971 def __eq__(*args
, **kwargs
):
3972 """__eq__(self, TimeSpan other) -> bool"""
3973 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
3975 def __ne__(*args
, **kwargs
):
3976 """__ne__(self, TimeSpan other) -> bool"""
3977 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
3979 def IsNull(*args
, **kwargs
):
3980 """IsNull(self) -> bool"""
3981 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
3983 def IsPositive(*args
, **kwargs
):
3984 """IsPositive(self) -> bool"""
3985 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
3987 def IsNegative(*args
, **kwargs
):
3988 """IsNegative(self) -> bool"""
3989 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
3991 def IsEqualTo(*args
, **kwargs
):
3992 """IsEqualTo(self, TimeSpan ts) -> bool"""
3993 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3995 def IsLongerThan(*args
, **kwargs
):
3996 """IsLongerThan(self, TimeSpan ts) -> bool"""
3997 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3999 def IsShorterThan(*args
, **kwargs
):
4000 """IsShorterThan(self, TimeSpan t) -> bool"""
4001 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4003 def GetWeeks(*args
, **kwargs
):
4004 """GetWeeks(self) -> int"""
4005 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4007 def GetDays(*args
, **kwargs
):
4008 """GetDays(self) -> int"""
4009 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4011 def GetHours(*args
, **kwargs
):
4012 """GetHours(self) -> int"""
4013 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4015 def GetMinutes(*args
, **kwargs
):
4016 """GetMinutes(self) -> int"""
4017 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4019 def GetSeconds(*args
, **kwargs
):
4020 """GetSeconds(self) -> wxLongLong"""
4021 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4023 def GetMilliseconds(*args
, **kwargs
):
4024 """GetMilliseconds(self) -> wxLongLong"""
4025 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4027 def Format(*args
, **kwargs
):
4028 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4029 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4032 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4033 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4035 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4037 TimeSpan_swigregister
= _misc_
.TimeSpan_swigregister
4038 TimeSpan_swigregister(TimeSpan
)
4040 def TimeSpan_Milliseconds(*args
, **kwargs
):
4041 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4042 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4044 def TimeSpan_Millisecond(*args
):
4045 """TimeSpan_Millisecond() -> TimeSpan"""
4046 return _misc_
.TimeSpan_Millisecond(*args
)
4048 def TimeSpan_Seconds(*args
, **kwargs
):
4049 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4050 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4052 def TimeSpan_Second(*args
):
4053 """TimeSpan_Second() -> TimeSpan"""
4054 return _misc_
.TimeSpan_Second(*args
)
4056 def TimeSpan_Minutes(*args
, **kwargs
):
4057 """TimeSpan_Minutes(long min) -> TimeSpan"""
4058 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4060 def TimeSpan_Minute(*args
):
4061 """TimeSpan_Minute() -> TimeSpan"""
4062 return _misc_
.TimeSpan_Minute(*args
)
4064 def TimeSpan_Hours(*args
, **kwargs
):
4065 """TimeSpan_Hours(long hours) -> TimeSpan"""
4066 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4068 def TimeSpan_Hour(*args
):
4069 """TimeSpan_Hour() -> TimeSpan"""
4070 return _misc_
.TimeSpan_Hour(*args
)
4072 def TimeSpan_Days(*args
, **kwargs
):
4073 """TimeSpan_Days(long days) -> TimeSpan"""
4074 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4076 def TimeSpan_Day(*args
):
4077 """TimeSpan_Day() -> TimeSpan"""
4078 return _misc_
.TimeSpan_Day(*args
)
4080 def TimeSpan_Weeks(*args
, **kwargs
):
4081 """TimeSpan_Weeks(long days) -> TimeSpan"""
4082 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4084 def TimeSpan_Week(*args
):
4085 """TimeSpan_Week() -> TimeSpan"""
4086 return _misc_
.TimeSpan_Week(*args
)
4088 class DateSpan(object):
4089 """Proxy of C++ DateSpan class"""
4090 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4091 __repr__
= _swig_repr
4092 def __init__(self
, *args
, **kwargs
):
4093 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4094 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4095 __swig_destroy__
= _misc_
.delete_DateSpan
4096 __del__
= lambda self
: None;
4097 def Days(*args
, **kwargs
):
4098 """Days(int days) -> DateSpan"""
4099 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4101 Days
= staticmethod(Days
)
4102 def Day(*args
, **kwargs
):
4103 """Day() -> DateSpan"""
4104 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4106 Day
= staticmethod(Day
)
4107 def Weeks(*args
, **kwargs
):
4108 """Weeks(int weeks) -> DateSpan"""
4109 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4111 Weeks
= staticmethod(Weeks
)
4112 def Week(*args
, **kwargs
):
4113 """Week() -> DateSpan"""
4114 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4116 Week
= staticmethod(Week
)
4117 def Months(*args
, **kwargs
):
4118 """Months(int mon) -> DateSpan"""
4119 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4121 Months
= staticmethod(Months
)
4122 def Month(*args
, **kwargs
):
4123 """Month() -> DateSpan"""
4124 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4126 Month
= staticmethod(Month
)
4127 def Years(*args
, **kwargs
):
4128 """Years(int years) -> DateSpan"""
4129 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4131 Years
= staticmethod(Years
)
4132 def Year(*args
, **kwargs
):
4133 """Year() -> DateSpan"""
4134 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4136 Year
= staticmethod(Year
)
4137 def SetYears(*args
, **kwargs
):
4138 """SetYears(self, int n) -> DateSpan"""
4139 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4141 def SetMonths(*args
, **kwargs
):
4142 """SetMonths(self, int n) -> DateSpan"""
4143 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4145 def SetWeeks(*args
, **kwargs
):
4146 """SetWeeks(self, int n) -> DateSpan"""
4147 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4149 def SetDays(*args
, **kwargs
):
4150 """SetDays(self, int n) -> DateSpan"""
4151 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4153 def GetYears(*args
, **kwargs
):
4154 """GetYears(self) -> int"""
4155 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4157 def GetMonths(*args
, **kwargs
):
4158 """GetMonths(self) -> int"""
4159 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4161 def GetWeeks(*args
, **kwargs
):
4162 """GetWeeks(self) -> int"""
4163 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4165 def GetDays(*args
, **kwargs
):
4166 """GetDays(self) -> int"""
4167 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4169 def GetTotalDays(*args
, **kwargs
):
4170 """GetTotalDays(self) -> int"""
4171 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4173 def Add(*args
, **kwargs
):
4174 """Add(self, DateSpan other) -> DateSpan"""
4175 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4177 def Subtract(*args
, **kwargs
):
4178 """Subtract(self, DateSpan other) -> DateSpan"""
4179 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4181 def Neg(*args
, **kwargs
):
4182 """Neg(self) -> DateSpan"""
4183 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4185 def Multiply(*args
, **kwargs
):
4186 """Multiply(self, int factor) -> DateSpan"""
4187 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4189 def __iadd__(*args
, **kwargs
):
4190 """__iadd__(self, DateSpan other) -> DateSpan"""
4191 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4193 def __isub__(*args
, **kwargs
):
4194 """__isub__(self, DateSpan other) -> DateSpan"""
4195 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4197 def __neg__(*args
, **kwargs
):
4198 """__neg__(self) -> DateSpan"""
4199 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4201 def __imul__(*args
, **kwargs
):
4202 """__imul__(self, int factor) -> DateSpan"""
4203 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4205 def __add__(*args
, **kwargs
):
4206 """__add__(self, DateSpan other) -> DateSpan"""
4207 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4209 def __sub__(*args
, **kwargs
):
4210 """__sub__(self, DateSpan other) -> DateSpan"""
4211 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4213 def __mul__(*args
, **kwargs
):
4214 """__mul__(self, int n) -> DateSpan"""
4215 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4217 def __rmul__(*args
, **kwargs
):
4218 """__rmul__(self, int n) -> DateSpan"""
4219 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4221 def __eq__(*args
, **kwargs
):
4222 """__eq__(self, DateSpan other) -> bool"""
4223 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4225 def __ne__(*args
, **kwargs
):
4226 """__ne__(self, DateSpan other) -> bool"""
4227 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4229 DateSpan_swigregister
= _misc_
.DateSpan_swigregister
4230 DateSpan_swigregister(DateSpan
)
4232 def DateSpan_Days(*args
, **kwargs
):
4233 """DateSpan_Days(int days) -> DateSpan"""
4234 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4236 def DateSpan_Day(*args
):
4237 """DateSpan_Day() -> DateSpan"""
4238 return _misc_
.DateSpan_Day(*args
)
4240 def DateSpan_Weeks(*args
, **kwargs
):
4241 """DateSpan_Weeks(int weeks) -> DateSpan"""
4242 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4244 def DateSpan_Week(*args
):
4245 """DateSpan_Week() -> DateSpan"""
4246 return _misc_
.DateSpan_Week(*args
)
4248 def DateSpan_Months(*args
, **kwargs
):
4249 """DateSpan_Months(int mon) -> DateSpan"""
4250 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4252 def DateSpan_Month(*args
):
4253 """DateSpan_Month() -> DateSpan"""
4254 return _misc_
.DateSpan_Month(*args
)
4256 def DateSpan_Years(*args
, **kwargs
):
4257 """DateSpan_Years(int years) -> DateSpan"""
4258 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4260 def DateSpan_Year(*args
):
4261 """DateSpan_Year() -> DateSpan"""
4262 return _misc_
.DateSpan_Year(*args
)
4265 def GetLocalTime(*args
):
4266 """GetLocalTime() -> long"""
4267 return _misc_
.GetLocalTime(*args
)
4269 def GetUTCTime(*args
):
4270 """GetUTCTime() -> long"""
4271 return _misc_
.GetUTCTime(*args
)
4273 def GetCurrentTime(*args
):
4274 """GetCurrentTime() -> long"""
4275 return _misc_
.GetCurrentTime(*args
)
4277 def GetLocalTimeMillis(*args
):
4278 """GetLocalTimeMillis() -> wxLongLong"""
4279 return _misc_
.GetLocalTimeMillis(*args
)
4280 #---------------------------------------------------------------------------
4282 DF_INVALID
= _misc_
.DF_INVALID
4283 DF_TEXT
= _misc_
.DF_TEXT
4284 DF_BITMAP
= _misc_
.DF_BITMAP
4285 DF_METAFILE
= _misc_
.DF_METAFILE
4286 DF_SYLK
= _misc_
.DF_SYLK
4287 DF_DIF
= _misc_
.DF_DIF
4288 DF_TIFF
= _misc_
.DF_TIFF
4289 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4290 DF_DIB
= _misc_
.DF_DIB
4291 DF_PALETTE
= _misc_
.DF_PALETTE
4292 DF_PENDATA
= _misc_
.DF_PENDATA
4293 DF_RIFF
= _misc_
.DF_RIFF
4294 DF_WAVE
= _misc_
.DF_WAVE
4295 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4296 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4297 DF_FILENAME
= _misc_
.DF_FILENAME
4298 DF_LOCALE
= _misc_
.DF_LOCALE
4299 DF_PRIVATE
= _misc_
.DF_PRIVATE
4300 DF_HTML
= _misc_
.DF_HTML
4301 DF_MAX
= _misc_
.DF_MAX
4302 class DataFormat(object):
4304 A wx.DataFormat is an encapsulation of a platform-specific format
4305 handle which is used by the system for the clipboard and drag and drop
4306 operations. The applications are usually only interested in, for
4307 example, pasting data from the clipboard only if the data is in a
4308 format the program understands. A data format is is used to uniquely
4309 identify this format.
4311 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4312 __repr__
= _swig_repr
4313 def __init__(self
, *args
, **kwargs
):
4315 __init__(self, int type) -> DataFormat
4317 Constructs a data format object for one of the standard data formats
4318 or an empty data object (use SetType or SetId later in this case)
4320 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4321 __swig_destroy__
= _misc_
.delete_DataFormat
4322 __del__
= lambda self
: None;
4325 __eq__(self, int format) -> bool
4326 __eq__(self, DataFormat format) -> bool
4328 return _misc_
.DataFormat___eq__(*args
)
4332 __ne__(self, int format) -> bool
4333 __ne__(self, DataFormat format) -> bool
4335 return _misc_
.DataFormat___ne__(*args
)
4337 def SetType(*args
, **kwargs
):
4339 SetType(self, int format)
4341 Sets the format to the given value, which should be one of wx.DF_XXX
4344 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4346 def GetType(*args
, **kwargs
):
4348 GetType(self) -> int
4350 Returns the platform-specific number identifying the format.
4352 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4354 def GetId(*args
, **kwargs
):
4356 GetId(self) -> String
4358 Returns the name of a custom format (this function will fail for a
4361 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4363 def SetId(*args
, **kwargs
):
4365 SetId(self, String format)
4367 Sets the format to be the custom format identified by the given name.
4369 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4371 DataFormat_swigregister
= _misc_
.DataFormat_swigregister
4372 DataFormat_swigregister(DataFormat
)
4373 DefaultDateTime
= cvar
.DefaultDateTime
4375 def CustomDataFormat(*args
, **kwargs
):
4377 CustomDataFormat(String format) -> DataFormat
4379 Constructs a data format object for a custom format identified by its
4382 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4385 class DataObject(object):
4387 A wx.DataObject represents data that can be copied to or from the
4388 clipboard, or dragged and dropped. The important thing about
4389 wx.DataObject is that this is a 'smart' piece of data unlike usual
4390 'dumb' data containers such as memory buffers or files. Being 'smart'
4391 here means that the data object itself should know what data formats
4392 it supports and how to render itself in each of supported formats.
4394 **NOTE**: This class is an abstract base class and can not be used
4395 directly from Python. If you need a custom type of data object then
4396 you should instead derive from `wx.PyDataObjectSimple` or use
4397 `wx.CustomDataObject`.
4400 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4401 def __init__(self
): raise AttributeError, "No constructor defined"
4402 __repr__
= _swig_repr
4403 Get
= _misc_
.DataObject_Get
4404 Set
= _misc_
.DataObject_Set
4405 Both
= _misc_
.DataObject_Both
4406 __swig_destroy__
= _misc_
.delete_DataObject
4407 __del__
= lambda self
: None;
4408 def GetPreferredFormat(*args
, **kwargs
):
4410 GetPreferredFormat(self, int dir=Get) -> DataFormat
4412 Returns the preferred format for either rendering the data (if dir is
4413 Get, its default value) or for setting it. Usually this will be the
4414 native format of the wx.DataObject.
4416 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4418 def GetFormatCount(*args
, **kwargs
):
4420 GetFormatCount(self, int dir=Get) -> size_t
4422 Returns the number of available formats for rendering or setting the
4425 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4427 def IsSupported(*args
, **kwargs
):
4429 IsSupported(self, DataFormat format, int dir=Get) -> bool
4431 Returns True if this format is supported.
4433 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4435 def GetDataSize(*args
, **kwargs
):
4437 GetDataSize(self, DataFormat format) -> size_t
4439 Get the (total) size of data for the given format
4441 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4443 def GetAllFormats(*args
, **kwargs
):
4445 GetAllFormats(self, int dir=Get) -> [formats]
4447 Returns a list of all the wx.DataFormats that this dataobject supports
4448 in the given direction.
4450 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4452 def GetDataHere(*args
, **kwargs
):
4454 GetDataHere(self, DataFormat format) -> String
4456 Get the data bytes in the specified format, returns None on failure.
4458 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4460 def SetData(*args
, **kwargs
):
4462 SetData(self, DataFormat format, String data) -> bool
4464 Set the data in the specified format from the bytes in the the data string.
4467 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4469 DataObject_swigregister
= _misc_
.DataObject_swigregister
4470 DataObject_swigregister(DataObject
)
4471 FormatInvalid
= cvar
.FormatInvalid
4473 class DataObjectSimple(DataObject
):
4475 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4476 format. This is the simplest possible `wx.DataObject` implementation.
4478 This is still an "abstract base class" meaning that you can't use it
4479 directly. You either need to use one of the predefined base classes,
4480 or derive your own class from `wx.PyDataObjectSimple`.
4483 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4484 __repr__
= _swig_repr
4485 def __init__(self
, *args
, **kwargs
):
4487 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4489 Constructor accepts the supported format (none by default) which may
4490 also be set later with `SetFormat`.
4492 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4493 def GetFormat(*args
, **kwargs
):
4495 GetFormat(self) -> DataFormat
4497 Returns the (one and only one) format supported by this object. It is
4498 assumed that the format is supported in both directions.
4500 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4502 def SetFormat(*args
, **kwargs
):
4504 SetFormat(self, DataFormat format)
4506 Sets the supported format.
4508 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4510 def GetDataSize(*args
, **kwargs
):
4512 GetDataSize(self) -> size_t
4514 Get the size of our data.
4516 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4518 def GetDataHere(*args
, **kwargs
):
4520 GetDataHere(self) -> String
4522 Returns the data bytes from the data object as a string, returns None
4523 on failure. Must be implemented in the derived class if the object
4524 supports rendering its data.
4526 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4528 def SetData(*args
, **kwargs
):
4530 SetData(self, String data) -> bool
4532 Copy the data value to the data object. Must be implemented in the
4533 derived class if the object supports setting its data.
4536 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4538 DataObjectSimple_swigregister
= _misc_
.DataObjectSimple_swigregister
4539 DataObjectSimple_swigregister(DataObjectSimple
)
4541 class PyDataObjectSimple(DataObjectSimple
):
4543 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4544 Python-aware and knows how to reflect calls to its C++ virtual methods
4545 to methods in the Python derived class. You should derive from this
4546 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4547 need to create your own simple single-format type of `wx.DataObject`.
4550 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4551 __repr__
= _swig_repr
4552 def __init__(self
, *args
, **kwargs
):
4554 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4556 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4557 Python-aware and knows how to reflect calls to its C++ virtual methods
4558 to methods in the Python derived class. You should derive from this
4559 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4560 need to create your own simple single-format type of `wx.DataObject`.
4563 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4564 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4566 def _setCallbackInfo(*args
, **kwargs
):
4567 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4568 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4570 PyDataObjectSimple_swigregister
= _misc_
.PyDataObjectSimple_swigregister
4571 PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4573 class DataObjectComposite(DataObject
):
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 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4589 __repr__
= _swig_repr
4590 def __init__(self
, *args
, **kwargs
):
4592 __init__(self) -> DataObjectComposite
4594 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4595 which may be sued to support multiple formats. It contains several
4596 'wx.DataObjectSimple` objects and supports any format supported by at
4597 least one of them. Only one of these data objects is *preferred* (the
4598 first one if not explicitly changed by using the second parameter of
4599 `Add`) and its format determines the preferred format of the composite
4600 data object as well.
4602 See `wx.DataObject` documentation for the reasons why you might prefer
4603 to use wx.DataObject directly instead of wx.DataObjectComposite for
4607 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4608 def Add(*args
, **kwargs
):
4610 Add(self, DataObjectSimple dataObject, bool preferred=False)
4612 Adds the dataObject to the list of supported objects and it becomes
4613 the preferred object if preferred is True.
4615 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4617 def GetReceivedFormat(*args
, **kwargs
):
4619 GetReceivedFormat(self) -> DataFormat
4621 Report the format passed to the `SetData` method. This should be the
4622 format of the data object within the composite that recieved data from
4623 the clipboard or the DnD operation. You can use this method to find
4624 out what kind of data object was recieved.
4626 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
4628 DataObjectComposite_swigregister
= _misc_
.DataObjectComposite_swigregister
4629 DataObjectComposite_swigregister(DataObjectComposite
)
4631 class TextDataObject(DataObjectSimple
):
4633 wx.TextDataObject is a specialization of `wx.DataObject` for text
4634 data. It can be used without change to paste data into the `wx.Clipboard`
4635 or a `wx.DropSource`.
4637 Alternativly, you may wish to derive a new class from the
4638 `wx.PyTextDataObject` class for providing text on-demand in order to
4639 minimize memory consumption when offering data in several formats,
4640 such as plain text and RTF, because by default the text is stored in a
4641 string in this class, but it might as well be generated on demand when
4642 requested. For this, `GetTextLength` and `GetText` will have to be
4645 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4646 __repr__
= _swig_repr
4647 def __init__(self
, *args
, **kwargs
):
4649 __init__(self, String text=EmptyString) -> TextDataObject
4651 Constructor, may be used to initialise the text (otherwise `SetText`
4652 should be used later).
4654 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4655 def GetTextLength(*args
, **kwargs
):
4657 GetTextLength(self) -> size_t
4659 Returns the data size. By default, returns the size of the text data
4660 set in the constructor or using `SetText`. This can be overridden (via
4661 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4662 recommended to return the text length plus 1 for a trailing zero, but
4663 this is not strictly required.
4665 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4667 def GetText(*args
, **kwargs
):
4669 GetText(self) -> String
4671 Returns the text associated with the data object.
4673 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4675 def SetText(*args
, **kwargs
):
4677 SetText(self, String text)
4679 Sets the text associated with the data object. This method is called
4680 when the data object receives the data and, by default, copies the
4681 text into the member variable. If you want to process the text on the
4682 fly you may wish to override this function (via
4683 `wx.PyTextDataObject`.)
4685 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4687 TextDataObject_swigregister
= _misc_
.TextDataObject_swigregister
4688 TextDataObject_swigregister(TextDataObject
)
4690 class PyTextDataObject(TextDataObject
):
4692 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4693 Python-aware and knows how to reflect calls to its C++ virtual methods
4694 to methods in the Python derived class. You should derive from this
4695 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4696 want to be able to provide text on demand instead of preloading it
4697 into the data object.
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, String text=EmptyString) -> PyTextDataObject
4705 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4706 Python-aware and knows how to reflect calls to its C++ virtual methods
4707 to methods in the Python derived class. You should derive from this
4708 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4709 want to be able to provide text on demand instead of preloading it
4710 into the data object.
4712 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
4713 self
._setCallbackInfo
(self
, PyTextDataObject
)
4715 def _setCallbackInfo(*args
, **kwargs
):
4716 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4717 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4719 PyTextDataObject_swigregister
= _misc_
.PyTextDataObject_swigregister
4720 PyTextDataObject_swigregister(PyTextDataObject
)
4722 class BitmapDataObject(DataObjectSimple
):
4724 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
4725 data. It can be used without change to paste data into the `wx.Clipboard`
4726 or a `wx.DropSource`.
4729 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4730 __repr__
= _swig_repr
4731 def __init__(self
, *args
, **kwargs
):
4733 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
4735 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
4738 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
4739 def GetBitmap(*args
, **kwargs
):
4741 GetBitmap(self) -> Bitmap
4743 Returns the bitmap associated with the data object. You may wish to
4744 override this method (by deriving from `wx.PyBitmapDataObject`) when
4745 offering data on-demand, but this is not required by wxWidgets'
4746 internals. Use this method to get data in bitmap form from the
4749 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4751 def SetBitmap(*args
, **kwargs
):
4753 SetBitmap(self, Bitmap bitmap)
4755 Sets the bitmap associated with the data object. This method is called
4756 when the data object receives data. Usually there will be no reason to
4757 override this function.
4759 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4761 BitmapDataObject_swigregister
= _misc_
.BitmapDataObject_swigregister
4762 BitmapDataObject_swigregister(BitmapDataObject
)
4764 class PyBitmapDataObject(BitmapDataObject
):
4766 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4767 Python-aware and knows how to reflect calls to its C++ virtual methods
4768 to methods in the Python derived class. To be able to provide bitmap
4769 data on demand derive from this class and overload `GetBitmap`.
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
):
4775 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
4777 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4778 Python-aware and knows how to reflect calls to its C++ virtual methods
4779 to methods in the Python derived class. To be able to provide bitmap
4780 data on demand derive from this class and overload `GetBitmap`.
4782 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
4783 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4785 def _setCallbackInfo(*args
, **kwargs
):
4786 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4787 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4789 PyBitmapDataObject_swigregister
= _misc_
.PyBitmapDataObject_swigregister
4790 PyBitmapDataObject_swigregister(PyBitmapDataObject
)
4792 class FileDataObject(DataObjectSimple
):
4794 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
4795 file names. The program works with it just as if it were a list of
4796 absolute file names, but internally it uses the same format as
4797 Explorer and other compatible programs under Windows or GNOME/KDE
4798 filemanager under Unix which makes it possible to receive files from
4799 them using this class.
4801 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4802 __repr__
= _swig_repr
4803 def __init__(self
, *args
, **kwargs
):
4804 """__init__(self) -> FileDataObject"""
4805 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
4806 def GetFilenames(*args
, **kwargs
):
4808 GetFilenames(self) -> [names]
4810 Returns a list of file names.
4812 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4814 def AddFile(*args
, **kwargs
):
4816 AddFile(self, String filename)
4818 Adds a file to the list of files represented by this data object.
4820 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
4822 FileDataObject_swigregister
= _misc_
.FileDataObject_swigregister
4823 FileDataObject_swigregister(FileDataObject
)
4825 class CustomDataObject(DataObjectSimple
):
4827 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
4828 some application-specific data in arbitrary format. Python strings
4829 are used for getting and setting data, but any picklable object can
4830 easily be transfered via strings. A copy of the data is stored in the
4833 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4834 __repr__
= _swig_repr
4835 def __init__(self
, *args
):
4837 __init__(self, DataFormat format) -> CustomDataObject
4838 __init__(self, String formatName) -> CustomDataObject
4839 __init__(self) -> CustomDataObject
4841 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
4842 some application-specific data in arbitrary format. Python strings
4843 are used for getting and setting data, but any picklable object can
4844 easily be transfered via strings. A copy of the data is stored in the
4847 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
4848 def SetData(*args
, **kwargs
):
4850 SetData(self, String data) -> bool
4852 Copy the data value to the data object.
4854 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
4857 def GetSize(*args
, **kwargs
):
4859 GetSize(self) -> size_t
4861 Get the size of the data.
4863 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
4865 def GetData(*args
, **kwargs
):
4867 GetData(self) -> String
4869 Returns the data bytes from the data object as a string.
4871 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
4873 CustomDataObject_swigregister
= _misc_
.CustomDataObject_swigregister
4874 CustomDataObject_swigregister(CustomDataObject
)
4876 class URLDataObject(DataObject
):
4878 This data object holds a URL in a format that is compatible with some
4879 browsers such that it is able to be dragged to or from them.
4881 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4882 __repr__
= _swig_repr
4883 def __init__(self
, *args
, **kwargs
):
4885 __init__(self) -> URLDataObject
4887 This data object holds a URL in a format that is compatible with some
4888 browsers such that it is able to be dragged to or from them.
4890 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
4891 def GetURL(*args
, **kwargs
):
4893 GetURL(self) -> String
4895 Returns a string containing the current URL.
4897 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
4899 def SetURL(*args
, **kwargs
):
4901 SetURL(self, String url)
4905 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
4907 URLDataObject_swigregister
= _misc_
.URLDataObject_swigregister
4908 URLDataObject_swigregister(URLDataObject
)
4910 class MetafileDataObject(DataObjectSimple
):
4911 """Proxy of C++ MetafileDataObject class"""
4912 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4913 __repr__
= _swig_repr
4914 def __init__(self
, *args
, **kwargs
):
4915 """__init__(self) -> MetafileDataObject"""
4916 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
4917 MetafileDataObject_swigregister
= _misc_
.MetafileDataObject_swigregister
4918 MetafileDataObject_swigregister(MetafileDataObject
)
4920 #---------------------------------------------------------------------------
4922 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
4923 Drag_AllowMove
= _misc_
.Drag_AllowMove
4924 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
4925 DragError
= _misc_
.DragError
4926 DragNone
= _misc_
.DragNone
4927 DragCopy
= _misc_
.DragCopy
4928 DragMove
= _misc_
.DragMove
4929 DragLink
= _misc_
.DragLink
4930 DragCancel
= _misc_
.DragCancel
4932 def IsDragResultOk(*args
, **kwargs
):
4933 """IsDragResultOk(int res) -> bool"""
4934 return _misc_
.IsDragResultOk(*args
, **kwargs
)
4935 class DropSource(object):
4936 """Proxy of C++ DropSource class"""
4937 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4938 __repr__
= _swig_repr
4939 def __init__(self
, *args
, **kwargs
):
4941 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
4942 Icon none=wxNullIcon) -> DropSource
4944 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
4945 self
._setCallbackInfo
(self
, DropSource
, 0)
4947 def _setCallbackInfo(*args
, **kwargs
):
4948 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
4949 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
4951 __swig_destroy__
= _misc_
.delete_DropSource
4952 __del__
= lambda self
: None;
4953 def SetData(*args
, **kwargs
):
4954 """SetData(self, DataObject data)"""
4955 return _misc_
.DropSource_SetData(*args
, **kwargs
)
4957 def GetDataObject(*args
, **kwargs
):
4958 """GetDataObject(self) -> DataObject"""
4959 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
4961 def SetCursor(*args
, **kwargs
):
4962 """SetCursor(self, int res, Cursor cursor)"""
4963 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
4965 def DoDragDrop(*args
, **kwargs
):
4966 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
4967 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
4969 def GiveFeedback(*args
, **kwargs
):
4970 """GiveFeedback(self, int effect) -> bool"""
4971 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
4973 def base_GiveFeedback(*args
, **kw
):
4974 return DropSource
.GiveFeedback(*args
, **kw
)
4975 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
4976 "Please use DropSource.GiveFeedback instead.")
4978 DropSource_swigregister
= _misc_
.DropSource_swigregister
4979 DropSource_swigregister(DropSource
)
4981 def DROP_ICON(filename
):
4983 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
4984 ``filename``. This function is useful with the `wx.DropSource` class
4985 which, depending on platform accepts either a icon or a cursor.
4987 img
= wx
.Image(filename
)
4988 if wx
.Platform
== '__WXGTK__':
4989 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
4991 return wx
.CursorFromImage(img
)
4993 class DropTarget(object):
4994 """Proxy of C++ DropTarget class"""
4995 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4996 __repr__
= _swig_repr
4997 def __init__(self
, *args
, **kwargs
):
4998 """__init__(self, DataObject dataObject=None) -> DropTarget"""
4999 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5000 self
._setCallbackInfo
(self
, DropTarget
)
5002 def _setCallbackInfo(*args
, **kwargs
):
5003 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5004 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5006 __swig_destroy__
= _misc_
.delete_DropTarget
5007 __del__
= lambda self
: None;
5008 def GetDataObject(*args
, **kwargs
):
5009 """GetDataObject(self) -> DataObject"""
5010 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5012 def SetDataObject(*args
, **kwargs
):
5013 """SetDataObject(self, DataObject dataObject)"""
5014 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5016 def OnEnter(*args
, **kwargs
):
5017 """OnEnter(self, int x, int y, int def) -> int"""
5018 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5020 def OnDragOver(*args
, **kwargs
):
5021 """OnDragOver(self, int x, int y, int def) -> int"""
5022 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5024 def OnLeave(*args
, **kwargs
):
5026 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5028 def OnDrop(*args
, **kwargs
):
5029 """OnDrop(self, int x, int y) -> bool"""
5030 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5032 def base_OnEnter(*args
, **kw
):
5033 return DropTarget
.OnEnter(*args
, **kw
)
5034 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5035 "Please use DropTarget.OnEnter instead.")
5037 def base_OnDragOver(*args
, **kw
):
5038 return DropTarget
.OnDragOver(*args
, **kw
)
5039 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5040 "Please use DropTarget.OnDragOver instead.")
5042 def base_OnLeave(*args
, **kw
):
5043 return DropTarget
.OnLeave(*args
, **kw
)
5044 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5045 "Please use DropTarget.OnLeave instead.")
5047 def base_OnDrop(*args
, **kw
):
5048 return DropTarget
.OnDrop(*args
, **kw
)
5049 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5050 "Please use DropTarget.OnDrop instead.")
5052 def GetData(*args
, **kwargs
):
5053 """GetData(self) -> bool"""
5054 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5056 def SetDefaultAction(*args
, **kwargs
):
5057 """SetDefaultAction(self, int action)"""
5058 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5060 def GetDefaultAction(*args
, **kwargs
):
5061 """GetDefaultAction(self) -> int"""
5062 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5064 DropTarget_swigregister
= _misc_
.DropTarget_swigregister
5065 DropTarget_swigregister(DropTarget
)
5067 PyDropTarget
= DropTarget
5068 class TextDropTarget(DropTarget
):
5069 """Proxy of C++ TextDropTarget class"""
5070 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5071 __repr__
= _swig_repr
5072 def __init__(self
, *args
, **kwargs
):
5073 """__init__(self) -> TextDropTarget"""
5074 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5075 self
._setCallbackInfo
(self
, TextDropTarget
)
5077 def _setCallbackInfo(*args
, **kwargs
):
5078 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5079 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5081 def OnDropText(*args
, **kwargs
):
5082 """OnDropText(self, int x, int y, String text) -> bool"""
5083 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5085 def OnEnter(*args
, **kwargs
):
5086 """OnEnter(self, int x, int y, int def) -> int"""
5087 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5089 def OnDragOver(*args
, **kwargs
):
5090 """OnDragOver(self, int x, int y, int def) -> int"""
5091 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5093 def OnLeave(*args
, **kwargs
):
5095 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5097 def OnDrop(*args
, **kwargs
):
5098 """OnDrop(self, int x, int y) -> bool"""
5099 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5101 def OnData(*args
, **kwargs
):
5102 """OnData(self, int x, int y, int def) -> int"""
5103 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5105 def base_OnDropText(*args
, **kw
):
5106 return TextDropTarget
.OnDropText(*args
, **kw
)
5107 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5108 "Please use TextDropTarget.OnDropText instead.")
5110 def base_OnEnter(*args
, **kw
):
5111 return TextDropTarget
.OnEnter(*args
, **kw
)
5112 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5113 "Please use TextDropTarget.OnEnter instead.")
5115 def base_OnDragOver(*args
, **kw
):
5116 return TextDropTarget
.OnDragOver(*args
, **kw
)
5117 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5118 "Please use TextDropTarget.OnDragOver instead.")
5120 def base_OnLeave(*args
, **kw
):
5121 return TextDropTarget
.OnLeave(*args
, **kw
)
5122 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5123 "Please use TextDropTarget.OnLeave instead.")
5125 def base_OnDrop(*args
, **kw
):
5126 return TextDropTarget
.OnDrop(*args
, **kw
)
5127 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5128 "Please use TextDropTarget.OnDrop instead.")
5130 def base_OnData(*args
, **kw
):
5131 return TextDropTarget
.OnData(*args
, **kw
)
5132 base_OnData
= wx
._deprecated
(base_OnData
,
5133 "Please use TextDropTarget.OnData instead.")
5135 TextDropTarget_swigregister
= _misc_
.TextDropTarget_swigregister
5136 TextDropTarget_swigregister(TextDropTarget
)
5138 class FileDropTarget(DropTarget
):
5139 """Proxy of C++ FileDropTarget class"""
5140 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5141 __repr__
= _swig_repr
5142 def __init__(self
, *args
, **kwargs
):
5143 """__init__(self) -> FileDropTarget"""
5144 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5145 self
._setCallbackInfo
(self
, FileDropTarget
)
5147 def _setCallbackInfo(*args
, **kwargs
):
5148 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5149 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5151 def OnDropFiles(*args
, **kwargs
):
5152 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5153 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5155 def OnEnter(*args
, **kwargs
):
5156 """OnEnter(self, int x, int y, int def) -> int"""
5157 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5159 def OnDragOver(*args
, **kwargs
):
5160 """OnDragOver(self, int x, int y, int def) -> int"""
5161 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5163 def OnLeave(*args
, **kwargs
):
5165 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5167 def OnDrop(*args
, **kwargs
):
5168 """OnDrop(self, int x, int y) -> bool"""
5169 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5171 def OnData(*args
, **kwargs
):
5172 """OnData(self, int x, int y, int def) -> int"""
5173 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5175 def base_OnDropFiles(*args
, **kw
):
5176 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5177 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5178 "Please use FileDropTarget.OnDropFiles instead.")
5180 def base_OnEnter(*args
, **kw
):
5181 return FileDropTarget
.OnEnter(*args
, **kw
)
5182 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5183 "Please use FileDropTarget.OnEnter instead.")
5185 def base_OnDragOver(*args
, **kw
):
5186 return FileDropTarget
.OnDragOver(*args
, **kw
)
5187 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5188 "Please use FileDropTarget.OnDragOver instead.")
5190 def base_OnLeave(*args
, **kw
):
5191 return FileDropTarget
.OnLeave(*args
, **kw
)
5192 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5193 "Please use FileDropTarget.OnLeave instead.")
5195 def base_OnDrop(*args
, **kw
):
5196 return FileDropTarget
.OnDrop(*args
, **kw
)
5197 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5198 "Please use FileDropTarget.OnDrop instead.")
5200 def base_OnData(*args
, **kw
):
5201 return FileDropTarget
.OnData(*args
, **kw
)
5202 base_OnData
= wx
._deprecated
(base_OnData
,
5203 "Please use FileDropTarget.OnData instead.")
5205 FileDropTarget_swigregister
= _misc_
.FileDropTarget_swigregister
5206 FileDropTarget_swigregister(FileDropTarget
)
5208 #---------------------------------------------------------------------------
5210 class Clipboard(_core
.Object
):
5212 wx.Clipboard represents the system clipboard and provides methods to
5213 copy data to it or paste data from it. Normally, you should only use
5214 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5217 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5218 clipboard. If this operation returns True, you now own the
5219 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5220 to retrieve data from the clipboard. Call `Close` to close the
5221 clipboard and relinquish ownership. You should keep the clipboard open
5224 :see: `wx.DataObject`
5227 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5228 __repr__
= _swig_repr
5229 def __init__(self
, *args
, **kwargs
):
5230 """__init__(self) -> Clipboard"""
5231 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5232 __swig_destroy__
= _misc_
.delete_Clipboard
5233 __del__
= lambda self
: None;
5234 def Open(*args
, **kwargs
):
5238 Call this function to open the clipboard before calling SetData and
5239 GetData. Call Close when you have finished with the clipboard. You
5240 should keep the clipboard open for only a very short time. Returns
5243 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5245 def Close(*args
, **kwargs
):
5249 Closes the clipboard.
5251 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5253 def IsOpened(*args
, **kwargs
):
5255 IsOpened(self) -> bool
5257 Query whether the clipboard is opened
5259 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5261 def AddData(*args
, **kwargs
):
5263 AddData(self, DataObject data) -> bool
5265 Call this function to add the data object to the clipboard. You may
5266 call this function repeatedly after having cleared the clipboard.
5267 After this function has been called, the clipboard owns the data, so
5268 do not delete the data explicitly.
5270 :see: `wx.DataObject`
5272 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5274 def SetData(*args
, **kwargs
):
5276 SetData(self, DataObject data) -> bool
5278 Set the clipboard data, this is the same as `Clear` followed by
5281 :see: `wx.DataObject`
5283 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5285 def IsSupported(*args
, **kwargs
):
5287 IsSupported(self, DataFormat format) -> bool
5289 Returns True if the given format is available in the data object(s) on
5292 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5294 def GetData(*args
, **kwargs
):
5296 GetData(self, DataObject data) -> bool
5298 Call this function to fill data with data on the clipboard, if
5299 available in the required format. Returns true on success.
5301 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5303 def Clear(*args
, **kwargs
):
5307 Clears data from the clipboard object and also the system's clipboard
5310 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5312 def Flush(*args
, **kwargs
):
5316 Flushes the clipboard: this means that the data which is currently on
5317 clipboard will stay available even after the application exits,
5318 possibly eating memory, otherwise the clipboard will be emptied on
5319 exit. Returns False if the operation is unsuccesful for any reason.
5321 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5323 def UsePrimarySelection(*args
, **kwargs
):
5325 UsePrimarySelection(self, bool primary=True)
5327 On platforms supporting it (the X11 based platforms), selects the
5328 so called PRIMARY SELECTION as the clipboard as opposed to the
5329 normal clipboard, if primary is True.
5331 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5333 def Get(*args
, **kwargs
):
5337 Returns global instance (wxTheClipboard) of the object.
5339 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5341 Get
= staticmethod(Get
)
5342 Clipboard_swigregister
= _misc_
.Clipboard_swigregister
5343 Clipboard_swigregister(Clipboard
)
5345 def Clipboard_Get(*args
):
5347 Clipboard_Get() -> Clipboard
5349 Returns global instance (wxTheClipboard) of the object.
5351 return _misc_
.Clipboard_Get(*args
)
5353 class _wxPyDelayedInitWrapper(object):
5354 def __init__(self
, initfunc
, *args
, **kwargs
):
5355 self
._initfunc
= initfunc
5357 self
._kwargs
= kwargs
5358 self
._instance
= None
5359 def _checkInstance(self
):
5360 if self
._instance
is None:
5362 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5363 def __getattr__(self
, name
):
5364 self
._checkInstance
()
5365 return getattr(self
._instance
, name
)
5367 self
._checkInstance
()
5368 return repr(self
._instance
)
5369 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5371 class ClipboardLocker(object):
5373 A helpful class for opening the clipboard and automatically
5374 closing it when the locker is destroyed.
5376 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5377 __repr__
= _swig_repr
5378 def __init__(self
, *args
, **kwargs
):
5380 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5382 A helpful class for opening the clipboard and automatically
5383 closing it when the locker is destroyed.
5385 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5386 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5387 __del__
= lambda self
: None;
5388 def __nonzero__(*args
, **kwargs
):
5390 __nonzero__(self) -> bool
5392 A ClipboardLocker instance evaluates to True if the clipboard was
5393 successfully opened.
5395 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5397 ClipboardLocker_swigregister
= _misc_
.ClipboardLocker_swigregister
5398 ClipboardLocker_swigregister(ClipboardLocker
)
5400 #---------------------------------------------------------------------------
5402 class VideoMode(object):
5403 """A simple struct containing video mode parameters for a display"""
5404 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5405 __repr__
= _swig_repr
5406 def __init__(self
, *args
, **kwargs
):
5408 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5410 A simple struct containing video mode parameters for a display
5412 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5413 __swig_destroy__
= _misc_
.delete_VideoMode
5414 __del__
= lambda self
: None;
5415 def Matches(*args
, **kwargs
):
5417 Matches(self, VideoMode other) -> bool
5419 Returns True if this mode matches the other one in the sense that all
5420 non-zero fields of the other mode have the same value in this
5421 one (except for refresh which is allowed to have a greater value)
5423 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5425 def GetWidth(*args
, **kwargs
):
5427 GetWidth(self) -> int
5429 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5431 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5433 def GetHeight(*args
, **kwargs
):
5435 GetHeight(self) -> int
5437 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5439 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5441 def GetDepth(*args
, **kwargs
):
5443 GetDepth(self) -> int
5445 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5446 means unspecified/known
5448 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5450 def IsOk(*args
, **kwargs
):
5454 returns true if the object has been initialized
5456 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5458 def __nonzero__(self
): return self
.IsOk()
5459 def __eq__(*args
, **kwargs
):
5460 """__eq__(self, VideoMode other) -> bool"""
5461 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5463 def __ne__(*args
, **kwargs
):
5464 """__ne__(self, VideoMode other) -> bool"""
5465 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5467 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5468 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5469 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5470 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5471 VideoMode_swigregister
= _misc_
.VideoMode_swigregister
5472 VideoMode_swigregister(VideoMode
)
5474 class Display(object):
5475 """Represents a display/monitor attached to the system"""
5476 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5477 __repr__
= _swig_repr
5478 def __init__(self
, *args
, **kwargs
):
5480 __init__(self, size_t index=0) -> Display
5482 Set up a Display instance with the specified display. The displays
5483 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5484 and the only one which is always supported
5486 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5487 __swig_destroy__
= _misc_
.delete_Display
5488 __del__
= lambda self
: None;
5489 def GetCount(*args
, **kwargs
):
5491 GetCount() -> size_t
5493 Return the number of available displays.
5495 return _misc_
.Display_GetCount(*args
, **kwargs
)
5497 GetCount
= staticmethod(GetCount
)
5498 def GetFromPoint(*args
, **kwargs
):
5500 GetFromPoint(Point pt) -> int
5502 Find the display where the given point lies, return wx.NOT_FOUND if it
5503 doesn't belong to any display
5505 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5507 GetFromPoint
= staticmethod(GetFromPoint
)
5508 def GetFromWindow(*args
, **kwargs
):
5510 GetFromWindow(Window window) -> int
5512 Find the display where the given window lies, return wx.NOT_FOUND if
5513 it is not shown at all.
5515 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5517 GetFromWindow
= staticmethod(GetFromWindow
)
5518 def IsOk(*args
, **kwargs
):
5522 Return true if the object was initialized successfully
5524 return _misc_
.Display_IsOk(*args
, **kwargs
)
5526 def __nonzero__(self
): return self
.IsOk()
5527 def GetGeometry(*args
, **kwargs
):
5529 GetGeometry(self) -> Rect
5531 Returns the bounding rectangle of the display whose index was passed
5534 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5536 def GetClientArea(*args
, **kwargs
):
5538 GetClientArea(self) -> Rect
5540 Returns the bounding rectangle the client area of the display,
5541 i.e., without taskbars and such.
5543 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5545 def GetName(*args
, **kwargs
):
5547 GetName(self) -> String
5549 Returns the display's name. A name is not available on all platforms.
5551 return _misc_
.Display_GetName(*args
, **kwargs
)
5553 def IsPrimary(*args
, **kwargs
):
5555 IsPrimary(self) -> bool
5557 Returns True if the display is the primary display. The primary
5558 display is the one whose index is 0.
5560 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5562 def GetModes(*args
, **kwargs
):
5564 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5566 Enumerate all video modes supported by this display matching the given
5567 one (in the sense of VideoMode.Match()).
5569 As any mode matches the default value of the argument and there is
5570 always at least one video mode supported by display, the returned
5571 array is only empty for the default value of the argument if this
5572 function is not supported at all on this platform.
5574 return _misc_
.Display_GetModes(*args
, **kwargs
)
5576 def GetCurrentMode(*args
, **kwargs
):
5578 GetCurrentMode(self) -> VideoMode
5580 Get the current video mode.
5582 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5584 def ChangeMode(*args
, **kwargs
):
5586 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5588 Changes the video mode of this display to the mode specified in the
5591 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5592 behaviour is that wx.Display will reset the video mode to the default
5593 mode used by the display. On Windows, the behavior is normal.
5594 However, there are differences on other platforms. On Unix variations
5595 using X11 extensions it should behave as defined, but some
5596 irregularities may occur.
5598 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5599 nothing. This happens because Carbon no longer has access to
5600 DMUseScreenPrefs, an undocumented function that changed the video mode
5601 to the system default by using the system's 'scrn' resource.
5603 Returns True if succeeded, False otherwise
5605 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5607 def ResetMode(*args
, **kwargs
):
5611 Restore the default video mode (just a more readable synonym)
5613 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5615 Display_swigregister
= _misc_
.Display_swigregister
5616 Display_swigregister(Display
)
5617 DefaultVideoMode
= cvar
.DefaultVideoMode
5619 def Display_GetCount(*args
):
5621 Display_GetCount() -> size_t
5623 Return the number of available displays.
5625 return _misc_
.Display_GetCount(*args
)
5627 def Display_GetFromPoint(*args
, **kwargs
):
5629 Display_GetFromPoint(Point pt) -> int
5631 Find the display where the given point lies, return wx.NOT_FOUND if it
5632 doesn't belong to any display
5634 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5636 def Display_GetFromWindow(*args
, **kwargs
):
5638 Display_GetFromWindow(Window window) -> int
5640 Find the display where the given window lies, return wx.NOT_FOUND if
5641 it is not shown at all.
5643 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5645 #---------------------------------------------------------------------------
5647 class StandardPaths(object):
5649 wx.StandardPaths returns standard locations in the file system and
5650 should be used by programs to find their data files in a portable way.
5652 In the description of the methods below, the example return values are
5653 given for the Unix, Windows and Mac OS X systems, however please note
5654 that these are just examples and the actual values may differ. For
5655 example, under Windows the system administrator may change the
5656 standard directories locations, i.e. the Windows directory may be
5657 named W:\Win2003 instead of the default C:\Windows.
5659 The strings appname and username should be replaced with the value
5660 returned by `wx.App.GetAppName` and the name of the currently logged
5661 in user, respectively. The string prefix is only used under Unix and
5662 is /usr/local by default but may be changed using `SetInstallPrefix`.
5664 The directories returned by the methods of this class may or may not
5665 exist. If they don't exist, it's up to the caller to create them,
5666 wx.StandardPaths doesn't do it.
5668 Finally note that these functions only work with standardly packaged
5669 applications. I.e. under Unix you should follow the standard
5670 installation conventions and under Mac you should create your
5671 application bundle according to the Apple guidelines. Again, this
5672 class doesn't help you to do it.
5674 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5675 def __init__(self
): raise AttributeError, "No constructor defined"
5676 __repr__
= _swig_repr
5677 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
5678 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
5679 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
5680 def Get(*args
, **kwargs
):
5682 Get() -> StandardPaths
5684 Return the global standard paths singleton
5686 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
5688 Get
= staticmethod(Get
)
5689 def GetConfigDir(*args
, **kwargs
):
5691 GetConfigDir(self) -> String
5693 Return the directory with system config files: /etc under Unix,
5694 'c:\Documents and Settings\All Users\Application Data' under Windows,
5695 /Library/Preferences for Mac
5697 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
5699 def GetUserConfigDir(*args
, **kwargs
):
5701 GetUserConfigDir(self) -> String
5703 Return the directory for the user config files: $HOME under Unix,
5704 'c:\Documents and Settings\username' under Windows, and
5705 ~/Library/Preferences under Mac
5707 Only use this if you have a single file to put there, otherwise
5708 `GetUserDataDir` is more appropriate
5710 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
5712 def GetDataDir(*args
, **kwargs
):
5714 GetDataDir(self) -> String
5716 Return the location of the application's global, (i.e. not
5717 user-specific,) data files: prefix/share/appname under Unix,
5718 'c:\Program Files\appname' under Windows,
5719 appname.app/Contents/SharedSupport app bundle directory under Mac.
5721 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
5723 def GetLocalDataDir(*args
, **kwargs
):
5725 GetLocalDataDir(self) -> String
5727 Return the location for application data files which are
5728 host-specific. Same as `GetDataDir` except under Unix where it is
5731 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
5733 def GetUserDataDir(*args
, **kwargs
):
5735 GetUserDataDir(self) -> String
5737 Return the directory for the user-dependent application data files:
5738 $HOME/.appname under Unix, c:\Documents and
5739 Settings\username\Application Data\appname under Windows and
5740 ~/Library/Application Support/appname under Mac
5742 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
5744 def GetUserLocalDataDir(*args
, **kwargs
):
5746 GetUserLocalDataDir(self) -> String
5748 Return the directory for user data files which shouldn't be shared
5749 with the other machines
5751 Same as `GetUserDataDir` for all platforms except Windows where it is
5752 the 'Local Settings\Application Data\appname' directory.
5754 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
5756 def GetPluginsDir(*args
, **kwargs
):
5758 GetPluginsDir(self) -> String
5760 Return the directory where the loadable modules (plugins) live:
5761 prefix/lib/appname under Unix, program directory under Windows and
5762 Contents/Plugins app bundle subdirectory under Mac
5764 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
5766 def GetResourcesDir(*args
, **kwargs
):
5768 GetResourcesDir(self) -> String
5770 Get resources directory. Resources are auxiliary files used by the
5771 application and include things like image and sound files.
5773 Same as `GetDataDir` for all platforms except Mac where it returns
5774 Contents/Resources subdirectory of the app bundle.
5776 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
5778 def GetLocalizedResourcesDir(*args
, **kwargs
):
5780 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
5782 Get localized resources directory containing the resource files of the
5783 specified category for the given language.
5785 In general this is just GetResourcesDir()/lang under Windows and Unix
5786 and GetResourcesDir()/lang.lproj under Mac but is something quite
5787 different under Unix for the message catalog category (namely the
5788 standard prefix/share/locale/lang/LC_MESSAGES.)
5790 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
5792 def SetInstallPrefix(*args
, **kwargs
):
5794 SetInstallPrefix(self, String prefix)
5796 Set the program installation directory which is /usr/local by default.
5797 This value will be used by other methods such as `GetDataDir` and
5798 `GetPluginsDir` as the prefix for what they return. (This function
5799 only has meaning on Unix systems.)
5801 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
5803 def GetInstallPrefix(*args
, **kwargs
):
5805 GetInstallPrefix(self) -> String
5807 Get the program installation prefix. The default is the prefix where
5808 Python is installed. (This function only has meaning on Unix systems.)
5810 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
5812 StandardPaths_swigregister
= _misc_
.StandardPaths_swigregister
5813 StandardPaths_swigregister(StandardPaths
)
5815 def StandardPaths_Get(*args
):
5817 StandardPaths_Get() -> StandardPaths
5819 Return the global standard paths singleton
5821 return _misc_
.StandardPaths_Get(*args
)