1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 SYS_OEM_FIXED_FONT
= _misc_
.SYS_OEM_FIXED_FONT
11 SYS_ANSI_FIXED_FONT
= _misc_
.SYS_ANSI_FIXED_FONT
12 SYS_ANSI_VAR_FONT
= _misc_
.SYS_ANSI_VAR_FONT
13 SYS_SYSTEM_FONT
= _misc_
.SYS_SYSTEM_FONT
14 SYS_DEVICE_DEFAULT_FONT
= _misc_
.SYS_DEVICE_DEFAULT_FONT
15 SYS_DEFAULT_PALETTE
= _misc_
.SYS_DEFAULT_PALETTE
16 SYS_SYSTEM_FIXED_FONT
= _misc_
.SYS_SYSTEM_FIXED_FONT
17 SYS_DEFAULT_GUI_FONT
= _misc_
.SYS_DEFAULT_GUI_FONT
18 SYS_ICONTITLE_FONT
= _misc_
.SYS_ICONTITLE_FONT
19 SYS_COLOUR_SCROLLBAR
= _misc_
.SYS_COLOUR_SCROLLBAR
20 SYS_COLOUR_BACKGROUND
= _misc_
.SYS_COLOUR_BACKGROUND
21 SYS_COLOUR_DESKTOP
= _misc_
.SYS_COLOUR_DESKTOP
22 SYS_COLOUR_ACTIVECAPTION
= _misc_
.SYS_COLOUR_ACTIVECAPTION
23 SYS_COLOUR_INACTIVECAPTION
= _misc_
.SYS_COLOUR_INACTIVECAPTION
24 SYS_COLOUR_MENU
= _misc_
.SYS_COLOUR_MENU
25 SYS_COLOUR_WINDOW
= _misc_
.SYS_COLOUR_WINDOW
26 SYS_COLOUR_WINDOWFRAME
= _misc_
.SYS_COLOUR_WINDOWFRAME
27 SYS_COLOUR_MENUTEXT
= _misc_
.SYS_COLOUR_MENUTEXT
28 SYS_COLOUR_WINDOWTEXT
= _misc_
.SYS_COLOUR_WINDOWTEXT
29 SYS_COLOUR_CAPTIONTEXT
= _misc_
.SYS_COLOUR_CAPTIONTEXT
30 SYS_COLOUR_ACTIVEBORDER
= _misc_
.SYS_COLOUR_ACTIVEBORDER
31 SYS_COLOUR_INACTIVEBORDER
= _misc_
.SYS_COLOUR_INACTIVEBORDER
32 SYS_COLOUR_APPWORKSPACE
= _misc_
.SYS_COLOUR_APPWORKSPACE
33 SYS_COLOUR_HIGHLIGHT
= _misc_
.SYS_COLOUR_HIGHLIGHT
34 SYS_COLOUR_HIGHLIGHTTEXT
= _misc_
.SYS_COLOUR_HIGHLIGHTTEXT
35 SYS_COLOUR_BTNFACE
= _misc_
.SYS_COLOUR_BTNFACE
36 SYS_COLOUR_3DFACE
= _misc_
.SYS_COLOUR_3DFACE
37 SYS_COLOUR_BTNSHADOW
= _misc_
.SYS_COLOUR_BTNSHADOW
38 SYS_COLOUR_3DSHADOW
= _misc_
.SYS_COLOUR_3DSHADOW
39 SYS_COLOUR_GRAYTEXT
= _misc_
.SYS_COLOUR_GRAYTEXT
40 SYS_COLOUR_BTNTEXT
= _misc_
.SYS_COLOUR_BTNTEXT
41 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc_
.SYS_COLOUR_INACTIVECAPTIONTEXT
42 SYS_COLOUR_BTNHIGHLIGHT
= _misc_
.SYS_COLOUR_BTNHIGHLIGHT
43 SYS_COLOUR_BTNHILIGHT
= _misc_
.SYS_COLOUR_BTNHILIGHT
44 SYS_COLOUR_3DHIGHLIGHT
= _misc_
.SYS_COLOUR_3DHIGHLIGHT
45 SYS_COLOUR_3DHILIGHT
= _misc_
.SYS_COLOUR_3DHILIGHT
46 SYS_COLOUR_3DDKSHADOW
= _misc_
.SYS_COLOUR_3DDKSHADOW
47 SYS_COLOUR_3DLIGHT
= _misc_
.SYS_COLOUR_3DLIGHT
48 SYS_COLOUR_INFOTEXT
= _misc_
.SYS_COLOUR_INFOTEXT
49 SYS_COLOUR_INFOBK
= _misc_
.SYS_COLOUR_INFOBK
50 SYS_COLOUR_LISTBOX
= _misc_
.SYS_COLOUR_LISTBOX
51 SYS_COLOUR_HOTLIGHT
= _misc_
.SYS_COLOUR_HOTLIGHT
52 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTACTIVECAPTION
53 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTINACTIVECAPTION
54 SYS_COLOUR_MENUHILIGHT
= _misc_
.SYS_COLOUR_MENUHILIGHT
55 SYS_COLOUR_MENUBAR
= _misc_
.SYS_COLOUR_MENUBAR
56 SYS_COLOUR_MAX
= _misc_
.SYS_COLOUR_MAX
57 SYS_MOUSE_BUTTONS
= _misc_
.SYS_MOUSE_BUTTONS
58 SYS_BORDER_X
= _misc_
.SYS_BORDER_X
59 SYS_BORDER_Y
= _misc_
.SYS_BORDER_Y
60 SYS_CURSOR_X
= _misc_
.SYS_CURSOR_X
61 SYS_CURSOR_Y
= _misc_
.SYS_CURSOR_Y
62 SYS_DCLICK_X
= _misc_
.SYS_DCLICK_X
63 SYS_DCLICK_Y
= _misc_
.SYS_DCLICK_Y
64 SYS_DRAG_X
= _misc_
.SYS_DRAG_X
65 SYS_DRAG_Y
= _misc_
.SYS_DRAG_Y
66 SYS_EDGE_X
= _misc_
.SYS_EDGE_X
67 SYS_EDGE_Y
= _misc_
.SYS_EDGE_Y
68 SYS_HSCROLL_ARROW_X
= _misc_
.SYS_HSCROLL_ARROW_X
69 SYS_HSCROLL_ARROW_Y
= _misc_
.SYS_HSCROLL_ARROW_Y
70 SYS_HTHUMB_X
= _misc_
.SYS_HTHUMB_X
71 SYS_ICON_X
= _misc_
.SYS_ICON_X
72 SYS_ICON_Y
= _misc_
.SYS_ICON_Y
73 SYS_ICONSPACING_X
= _misc_
.SYS_ICONSPACING_X
74 SYS_ICONSPACING_Y
= _misc_
.SYS_ICONSPACING_Y
75 SYS_WINDOWMIN_X
= _misc_
.SYS_WINDOWMIN_X
76 SYS_WINDOWMIN_Y
= _misc_
.SYS_WINDOWMIN_Y
77 SYS_SCREEN_X
= _misc_
.SYS_SCREEN_X
78 SYS_SCREEN_Y
= _misc_
.SYS_SCREEN_Y
79 SYS_FRAMESIZE_X
= _misc_
.SYS_FRAMESIZE_X
80 SYS_FRAMESIZE_Y
= _misc_
.SYS_FRAMESIZE_Y
81 SYS_SMALLICON_X
= _misc_
.SYS_SMALLICON_X
82 SYS_SMALLICON_Y
= _misc_
.SYS_SMALLICON_Y
83 SYS_HSCROLL_Y
= _misc_
.SYS_HSCROLL_Y
84 SYS_VSCROLL_X
= _misc_
.SYS_VSCROLL_X
85 SYS_VSCROLL_ARROW_X
= _misc_
.SYS_VSCROLL_ARROW_X
86 SYS_VSCROLL_ARROW_Y
= _misc_
.SYS_VSCROLL_ARROW_Y
87 SYS_VTHUMB_Y
= _misc_
.SYS_VTHUMB_Y
88 SYS_CAPTION_Y
= _misc_
.SYS_CAPTION_Y
89 SYS_MENU_Y
= _misc_
.SYS_MENU_Y
90 SYS_NETWORK_PRESENT
= _misc_
.SYS_NETWORK_PRESENT
91 SYS_PENWINDOWS_PRESENT
= _misc_
.SYS_PENWINDOWS_PRESENT
92 SYS_SHOW_SOUNDS
= _misc_
.SYS_SHOW_SOUNDS
93 SYS_SWAP_BUTTONS
= _misc_
.SYS_SWAP_BUTTONS
94 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc_
.SYS_CAN_DRAW_FRAME_DECORATIONS
95 SYS_CAN_ICONIZE_FRAME
= _misc_
.SYS_CAN_ICONIZE_FRAME
96 SYS_SCREEN_NONE
= _misc_
.SYS_SCREEN_NONE
97 SYS_SCREEN_TINY
= _misc_
.SYS_SCREEN_TINY
98 SYS_SCREEN_PDA
= _misc_
.SYS_SCREEN_PDA
99 SYS_SCREEN_SMALL
= _misc_
.SYS_SCREEN_SMALL
100 SYS_SCREEN_DESKTOP
= _misc_
.SYS_SCREEN_DESKTOP
101 class SystemSettings(object):
102 def __init__(self
): raise RuntimeError, "No constructor defined"
104 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
105 def GetColour(*args
, **kwargs
):
106 """GetColour(int index) -> Colour"""
107 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
109 GetColour
= staticmethod(GetColour
)
110 def GetFont(*args
, **kwargs
):
111 """GetFont(int index) -> Font"""
112 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
114 GetFont
= staticmethod(GetFont
)
115 def GetMetric(*args
, **kwargs
):
116 """GetMetric(int index) -> int"""
117 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
119 GetMetric
= staticmethod(GetMetric
)
120 def HasFeature(*args
, **kwargs
):
121 """HasFeature(int index) -> bool"""
122 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
124 HasFeature
= staticmethod(HasFeature
)
125 def GetScreenType(*args
, **kwargs
):
126 """GetScreenType() -> int"""
127 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
129 GetScreenType
= staticmethod(GetScreenType
)
130 def SetScreenType(*args
, **kwargs
):
131 """SetScreenType(int screen)"""
132 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
134 SetScreenType
= staticmethod(SetScreenType
)
136 class SystemSettingsPtr(SystemSettings
):
137 def __init__(self
, this
):
139 if not hasattr(self
,"thisown"): self
.thisown
= 0
140 self
.__class
__ = SystemSettings
141 _misc_
.SystemSettings_swigregister(SystemSettingsPtr
)
143 def SystemSettings_GetColour(*args
, **kwargs
):
144 """SystemSettings_GetColour(int index) -> Colour"""
145 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
147 def SystemSettings_GetFont(*args
, **kwargs
):
148 """SystemSettings_GetFont(int index) -> Font"""
149 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
151 def SystemSettings_GetMetric(*args
, **kwargs
):
152 """SystemSettings_GetMetric(int index) -> int"""
153 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
155 def SystemSettings_HasFeature(*args
, **kwargs
):
156 """SystemSettings_HasFeature(int index) -> bool"""
157 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
159 def SystemSettings_GetScreenType(*args
, **kwargs
):
160 """SystemSettings_GetScreenType() -> int"""
161 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
163 def SystemSettings_SetScreenType(*args
, **kwargs
):
164 """SystemSettings_SetScreenType(int screen)"""
165 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
167 class SystemOptions(_core
.Object
):
169 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
170 def __init__(self
, *args
, **kwargs
):
171 """__init__(self) -> SystemOptions"""
172 newobj
= _misc_
.new_SystemOptions(*args
, **kwargs
)
173 self
.this
= newobj
.this
176 def SetOption(*args
, **kwargs
):
177 """SetOption(String name, String value)"""
178 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
180 SetOption
= staticmethod(SetOption
)
181 def SetOptionInt(*args
, **kwargs
):
182 """SetOptionInt(String name, int value)"""
183 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
185 SetOptionInt
= staticmethod(SetOptionInt
)
186 def GetOption(*args
, **kwargs
):
187 """GetOption(String name) -> String"""
188 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
190 GetOption
= staticmethod(GetOption
)
191 def GetOptionInt(*args
, **kwargs
):
192 """GetOptionInt(String name) -> int"""
193 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
195 GetOptionInt
= staticmethod(GetOptionInt
)
196 def HasOption(*args
, **kwargs
):
197 """HasOption(String name) -> bool"""
198 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
200 HasOption
= staticmethod(HasOption
)
202 class SystemOptionsPtr(SystemOptions
):
203 def __init__(self
, this
):
205 if not hasattr(self
,"thisown"): self
.thisown
= 0
206 self
.__class
__ = SystemOptions
207 _misc_
.SystemOptions_swigregister(SystemOptionsPtr
)
209 def SystemOptions_SetOption(*args
, **kwargs
):
210 """SystemOptions_SetOption(String name, String value)"""
211 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
213 def SystemOptions_SetOptionInt(*args
, **kwargs
):
214 """SystemOptions_SetOptionInt(String name, int value)"""
215 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
217 def SystemOptions_GetOption(*args
, **kwargs
):
218 """SystemOptions_GetOption(String name) -> String"""
219 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
221 def SystemOptions_GetOptionInt(*args
, **kwargs
):
222 """SystemOptions_GetOptionInt(String name) -> int"""
223 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
225 def SystemOptions_HasOption(*args
, **kwargs
):
226 """SystemOptions_HasOption(String name) -> bool"""
227 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
229 #---------------------------------------------------------------------------
232 def NewId(*args
, **kwargs
):
233 """NewId() -> long"""
234 return _misc_
.NewId(*args
, **kwargs
)
236 def RegisterId(*args
, **kwargs
):
237 """RegisterId(long id)"""
238 return _misc_
.RegisterId(*args
, **kwargs
)
240 def GetCurrentId(*args
, **kwargs
):
241 """GetCurrentId() -> long"""
242 return _misc_
.GetCurrentId(*args
, **kwargs
)
244 def Bell(*args
, **kwargs
):
246 return _misc_
.Bell(*args
, **kwargs
)
248 def EndBusyCursor(*args
, **kwargs
):
249 """EndBusyCursor()"""
250 return _misc_
.EndBusyCursor(*args
, **kwargs
)
252 def GetElapsedTime(*args
, **kwargs
):
253 """GetElapsedTime(bool resetTimer=True) -> long"""
254 return _misc_
.GetElapsedTime(*args
, **kwargs
)
256 def GetMousePosition(*args
, **kwargs
):
257 """GetMousePosition() -> (x,y)"""
258 return _misc_
.GetMousePosition(*args
, **kwargs
)
260 def IsBusy(*args
, **kwargs
):
261 """IsBusy() -> bool"""
262 return _misc_
.IsBusy(*args
, **kwargs
)
264 def Now(*args
, **kwargs
):
265 """Now() -> String"""
266 return _misc_
.Now(*args
, **kwargs
)
268 def Shell(*args
, **kwargs
):
269 """Shell(String command=EmptyString) -> bool"""
270 return _misc_
.Shell(*args
, **kwargs
)
272 def StartTimer(*args
, **kwargs
):
274 return _misc_
.StartTimer(*args
, **kwargs
)
276 def GetOsVersion(*args
, **kwargs
):
277 """GetOsVersion() -> (platform, major, minor)"""
278 return _misc_
.GetOsVersion(*args
, **kwargs
)
280 def GetOsDescription(*args
, **kwargs
):
281 """GetOsDescription() -> String"""
282 return _misc_
.GetOsDescription(*args
, **kwargs
)
284 def GetFreeMemory(*args
, **kwargs
):
285 """GetFreeMemory() -> long"""
286 return _misc_
.GetFreeMemory(*args
, **kwargs
)
287 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
288 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
290 def Shutdown(*args
, **kwargs
):
291 """Shutdown(int wFlags) -> bool"""
292 return _misc_
.Shutdown(*args
, **kwargs
)
294 def Sleep(*args
, **kwargs
):
295 """Sleep(int secs)"""
296 return _misc_
.Sleep(*args
, **kwargs
)
298 def Usleep(*args
, **kwargs
):
299 """Usleep(unsigned long milliseconds)"""
300 return _misc_
.Usleep(*args
, **kwargs
)
302 def EnableTopLevelWindows(*args
, **kwargs
):
303 """EnableTopLevelWindows(bool enable)"""
304 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
306 def StripMenuCodes(*args
, **kwargs
):
307 """StripMenuCodes(String in) -> String"""
308 return _misc_
.StripMenuCodes(*args
, **kwargs
)
310 def GetEmailAddress(*args
, **kwargs
):
311 """GetEmailAddress() -> String"""
312 return _misc_
.GetEmailAddress(*args
, **kwargs
)
314 def GetHostName(*args
, **kwargs
):
315 """GetHostName() -> String"""
316 return _misc_
.GetHostName(*args
, **kwargs
)
318 def GetFullHostName(*args
, **kwargs
):
319 """GetFullHostName() -> String"""
320 return _misc_
.GetFullHostName(*args
, **kwargs
)
322 def GetUserId(*args
, **kwargs
):
323 """GetUserId() -> String"""
324 return _misc_
.GetUserId(*args
, **kwargs
)
326 def GetUserName(*args
, **kwargs
):
327 """GetUserName() -> String"""
328 return _misc_
.GetUserName(*args
, **kwargs
)
330 def GetHomeDir(*args
, **kwargs
):
331 """GetHomeDir() -> String"""
332 return _misc_
.GetHomeDir(*args
, **kwargs
)
334 def GetUserHome(*args
, **kwargs
):
335 """GetUserHome(String user=EmptyString) -> String"""
336 return _misc_
.GetUserHome(*args
, **kwargs
)
338 def GetProcessId(*args
, **kwargs
):
339 """GetProcessId() -> unsigned long"""
340 return _misc_
.GetProcessId(*args
, **kwargs
)
342 def Trap(*args
, **kwargs
):
344 return _misc_
.Trap(*args
, **kwargs
)
346 def FileSelector(*args
, **kwargs
):
348 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
349 String default_filename=EmptyString,
350 String default_extension=EmptyString,
351 String wildcard=FileSelectorDefaultWildcardStr,
352 int flags=0, Window parent=None, int x=-1,
355 return _misc_
.FileSelector(*args
, **kwargs
)
357 def LoadFileSelector(*args
, **kwargs
):
359 LoadFileSelector(String what, String extension, String default_name=EmptyString,
360 Window parent=None) -> String
362 return _misc_
.LoadFileSelector(*args
, **kwargs
)
364 def SaveFileSelector(*args
, **kwargs
):
366 SaveFileSelector(String what, String extension, String default_name=EmptyString,
367 Window parent=None) -> String
369 return _misc_
.SaveFileSelector(*args
, **kwargs
)
371 def DirSelector(*args
, **kwargs
):
373 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
374 long style=DD_DEFAULT_STYLE,
375 Point pos=DefaultPosition, Window parent=None) -> String
377 return _misc_
.DirSelector(*args
, **kwargs
)
379 def GetTextFromUser(*args
, **kwargs
):
381 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
383 int x=-1, int y=-1, bool centre=True) -> String
385 return _misc_
.GetTextFromUser(*args
, **kwargs
)
387 def GetPasswordFromUser(*args
, **kwargs
):
389 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
390 Window parent=None) -> String
392 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
394 def GetSingleChoice(*args
, **kwargs
):
396 GetSingleChoice(String message, String caption, int choices, String choices_array,
397 Window parent=None, int x=-1,
398 int y=-1, bool centre=True, int width=150, int height=200) -> String
400 return _misc_
.GetSingleChoice(*args
, **kwargs
)
402 def GetSingleChoiceIndex(*args
, **kwargs
):
404 GetSingleChoiceIndex(String message, String caption, int choices, String choices_array,
405 Window parent=None, int x=-1,
406 int y=-1, bool centre=True, int width=150, int height=200) -> int
408 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
410 def MessageBox(*args
, **kwargs
):
412 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
413 Window parent=None, int x=-1,
416 return _misc_
.MessageBox(*args
, **kwargs
)
418 def GetNumberFromUser(*args
, **kwargs
):
420 GetNumberFromUser(String message, String prompt, String caption, long value,
421 long min=0, long max=100, Window parent=None,
422 Point pos=DefaultPosition) -> long
424 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
426 def ColourDisplay(*args
, **kwargs
):
427 """ColourDisplay() -> bool"""
428 return _misc_
.ColourDisplay(*args
, **kwargs
)
430 def DisplayDepth(*args
, **kwargs
):
431 """DisplayDepth() -> int"""
432 return _misc_
.DisplayDepth(*args
, **kwargs
)
434 def GetDisplayDepth(*args
, **kwargs
):
435 """GetDisplayDepth() -> int"""
436 return _misc_
.GetDisplayDepth(*args
, **kwargs
)
438 def DisplaySize(*args
, **kwargs
):
439 """DisplaySize() -> (width, height)"""
440 return _misc_
.DisplaySize(*args
, **kwargs
)
442 def GetDisplaySize(*args
, **kwargs
):
443 """GetDisplaySize() -> Size"""
444 return _misc_
.GetDisplaySize(*args
, **kwargs
)
446 def DisplaySizeMM(*args
, **kwargs
):
447 """DisplaySizeMM() -> (width, height)"""
448 return _misc_
.DisplaySizeMM(*args
, **kwargs
)
450 def GetDisplaySizeMM(*args
, **kwargs
):
451 """GetDisplaySizeMM() -> Size"""
452 return _misc_
.GetDisplaySizeMM(*args
, **kwargs
)
454 def ClientDisplayRect(*args
, **kwargs
):
455 """ClientDisplayRect() -> (x, y, width, height)"""
456 return _misc_
.ClientDisplayRect(*args
, **kwargs
)
458 def GetClientDisplayRect(*args
, **kwargs
):
459 """GetClientDisplayRect() -> Rect"""
460 return _misc_
.GetClientDisplayRect(*args
, **kwargs
)
462 def SetCursor(*args
, **kwargs
):
463 """SetCursor(Cursor cursor)"""
464 return _misc_
.SetCursor(*args
, **kwargs
)
466 def BeginBusyCursor(*args
, **kwargs
):
467 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
468 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
470 def GetActiveWindow(*args
, **kwargs
):
471 """GetActiveWindow() -> Window"""
472 return _misc_
.GetActiveWindow(*args
, **kwargs
)
474 def GenericFindWindowAtPoint(*args
, **kwargs
):
475 """GenericFindWindowAtPoint(Point pt) -> Window"""
476 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
478 def FindWindowAtPoint(*args
, **kwargs
):
479 """FindWindowAtPoint(Point pt) -> Window"""
480 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
482 def GetTopLevelParent(*args
, **kwargs
):
483 """GetTopLevelParent(Window win) -> Window"""
484 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
486 def GetKeyState(*args
, **kwargs
):
487 """GetKeyState(int key) -> bool"""
488 return _misc_
.GetKeyState(*args
, **kwargs
)
490 def WakeUpMainThread(*args
, **kwargs
):
491 """WakeUpMainThread()"""
492 return _misc_
.WakeUpMainThread(*args
, **kwargs
)
494 def MutexGuiEnter(*args
, **kwargs
):
495 """MutexGuiEnter()"""
496 return _misc_
.MutexGuiEnter(*args
, **kwargs
)
498 def MutexGuiLeave(*args
, **kwargs
):
499 """MutexGuiLeave()"""
500 return _misc_
.MutexGuiLeave(*args
, **kwargs
)
501 class MutexGuiLocker(object):
503 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
504 def __init__(self
, *args
, **kwargs
):
505 """__init__(self) -> MutexGuiLocker"""
506 newobj
= _misc_
.new_MutexGuiLocker(*args
, **kwargs
)
507 self
.this
= newobj
.this
510 def __del__(self
, destroy
=_misc_
.delete_MutexGuiLocker
):
513 if self
.thisown
: destroy(self
)
517 class MutexGuiLockerPtr(MutexGuiLocker
):
518 def __init__(self
, this
):
520 if not hasattr(self
,"thisown"): self
.thisown
= 0
521 self
.__class
__ = MutexGuiLocker
522 _misc_
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
524 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
525 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
526 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
529 def Thread_IsMain(*args
, **kwargs
):
530 """Thread_IsMain() -> bool"""
531 return _misc_
.Thread_IsMain(*args
, **kwargs
)
532 #---------------------------------------------------------------------------
534 class ToolTip(_core
.Object
):
536 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
537 def __init__(self
, *args
, **kwargs
):
538 """__init__(self, String tip) -> ToolTip"""
539 newobj
= _misc_
.new_ToolTip(*args
, **kwargs
)
540 self
.this
= newobj
.this
543 def SetTip(*args
, **kwargs
):
544 """SetTip(self, String tip)"""
545 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
547 def GetTip(*args
, **kwargs
):
548 """GetTip(self) -> String"""
549 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
551 def GetWindow(*args
, **kwargs
):
552 """GetWindow(self) -> Window"""
553 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
555 def Enable(*args
, **kwargs
):
556 """Enable(bool flag)"""
557 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
559 Enable
= staticmethod(Enable
)
560 def SetDelay(*args
, **kwargs
):
561 """SetDelay(long milliseconds)"""
562 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
564 SetDelay
= staticmethod(SetDelay
)
566 class ToolTipPtr(ToolTip
):
567 def __init__(self
, this
):
569 if not hasattr(self
,"thisown"): self
.thisown
= 0
570 self
.__class
__ = ToolTip
571 _misc_
.ToolTip_swigregister(ToolTipPtr
)
573 def ToolTip_Enable(*args
, **kwargs
):
574 """ToolTip_Enable(bool flag)"""
575 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
577 def ToolTip_SetDelay(*args
, **kwargs
):
578 """ToolTip_SetDelay(long milliseconds)"""
579 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
583 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
584 def __init__(self
, *args
, **kwargs
):
585 """__init__(self, Window window, Size size) -> Caret"""
586 newobj
= _misc_
.new_Caret(*args
, **kwargs
)
587 self
.this
= newobj
.this
590 def __del__(self
, destroy
=_misc_
.delete_Caret
):
593 if self
.thisown
: destroy(self
)
596 def IsOk(*args
, **kwargs
):
597 """IsOk(self) -> bool"""
598 return _misc_
.Caret_IsOk(*args
, **kwargs
)
600 def IsVisible(*args
, **kwargs
):
601 """IsVisible(self) -> bool"""
602 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
604 def GetPosition(*args
, **kwargs
):
605 """GetPosition(self) -> Point"""
606 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
608 def GetPositionTuple(*args
, **kwargs
):
609 """GetPositionTuple() -> (x,y)"""
610 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
612 def GetSize(*args
, **kwargs
):
613 """GetSize(self) -> Size"""
614 return _misc_
.Caret_GetSize(*args
, **kwargs
)
616 def GetSizeTuple(*args
, **kwargs
):
617 """GetSizeTuple() -> (width, height)"""
618 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
620 def GetWindow(*args
, **kwargs
):
621 """GetWindow(self) -> Window"""
622 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
624 def MoveXY(*args
, **kwargs
):
625 """MoveXY(self, int x, int y)"""
626 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
628 def Move(*args
, **kwargs
):
629 """Move(self, Point pt)"""
630 return _misc_
.Caret_Move(*args
, **kwargs
)
632 def SetSizeWH(*args
, **kwargs
):
633 """SetSizeWH(self, int width, int height)"""
634 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
636 def SetSize(*args
, **kwargs
):
637 """SetSize(self, Size size)"""
638 return _misc_
.Caret_SetSize(*args
, **kwargs
)
640 def Show(*args
, **kwargs
):
641 """Show(self, int show=True)"""
642 return _misc_
.Caret_Show(*args
, **kwargs
)
644 def Hide(*args
, **kwargs
):
646 return _misc_
.Caret_Hide(*args
, **kwargs
)
648 def __nonzero__(self
): return self
.IsOk()
650 class CaretPtr(Caret
):
651 def __init__(self
, this
):
653 if not hasattr(self
,"thisown"): self
.thisown
= 0
654 self
.__class
__ = Caret
655 _misc_
.Caret_swigregister(CaretPtr
)
658 def Caret_GetBlinkTime(*args
, **kwargs
):
659 """Caret_GetBlinkTime() -> int"""
660 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
662 def Caret_SetBlinkTime(*args
, **kwargs
):
663 """Caret_SetBlinkTime(int milliseconds)"""
664 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
665 class BusyCursor(object):
667 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
668 def __init__(self
, *args
, **kwargs
):
669 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
670 newobj
= _misc_
.new_BusyCursor(*args
, **kwargs
)
671 self
.this
= newobj
.this
674 def __del__(self
, destroy
=_misc_
.delete_BusyCursor
):
677 if self
.thisown
: destroy(self
)
681 class BusyCursorPtr(BusyCursor
):
682 def __init__(self
, this
):
684 if not hasattr(self
,"thisown"): self
.thisown
= 0
685 self
.__class
__ = BusyCursor
686 _misc_
.BusyCursor_swigregister(BusyCursorPtr
)
688 class WindowDisabler(object):
690 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
691 def __init__(self
, *args
, **kwargs
):
692 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
693 newobj
= _misc_
.new_WindowDisabler(*args
, **kwargs
)
694 self
.this
= newobj
.this
697 def __del__(self
, destroy
=_misc_
.delete_WindowDisabler
):
700 if self
.thisown
: destroy(self
)
704 class WindowDisablerPtr(WindowDisabler
):
705 def __init__(self
, this
):
707 if not hasattr(self
,"thisown"): self
.thisown
= 0
708 self
.__class
__ = WindowDisabler
709 _misc_
.WindowDisabler_swigregister(WindowDisablerPtr
)
711 class BusyInfo(_core
.Object
):
713 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
714 def __init__(self
, *args
, **kwargs
):
715 """__init__(self, String message) -> BusyInfo"""
716 newobj
= _misc_
.new_BusyInfo(*args
, **kwargs
)
717 self
.this
= newobj
.this
720 def __del__(self
, destroy
=_misc_
.delete_BusyInfo
):
723 if self
.thisown
: destroy(self
)
727 class BusyInfoPtr(BusyInfo
):
728 def __init__(self
, this
):
730 if not hasattr(self
,"thisown"): self
.thisown
= 0
731 self
.__class
__ = BusyInfo
732 _misc_
.BusyInfo_swigregister(BusyInfoPtr
)
734 class StopWatch(object):
736 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
737 def __init__(self
, *args
, **kwargs
):
738 """__init__(self) -> StopWatch"""
739 newobj
= _misc_
.new_StopWatch(*args
, **kwargs
)
740 self
.this
= newobj
.this
743 def Start(*args
, **kwargs
):
744 """Start(self, long t0=0)"""
745 return _misc_
.StopWatch_Start(*args
, **kwargs
)
747 def Pause(*args
, **kwargs
):
749 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
751 def Resume(*args
, **kwargs
):
753 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
755 def Time(*args
, **kwargs
):
756 """Time(self) -> long"""
757 return _misc_
.StopWatch_Time(*args
, **kwargs
)
760 class StopWatchPtr(StopWatch
):
761 def __init__(self
, this
):
763 if not hasattr(self
,"thisown"): self
.thisown
= 0
764 self
.__class
__ = StopWatch
765 _misc_
.StopWatch_swigregister(StopWatchPtr
)
767 class FileHistory(_core
.Object
):
769 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
770 def __init__(self
, *args
, **kwargs
):
771 """__init__(self, int maxFiles=9) -> FileHistory"""
772 newobj
= _misc_
.new_FileHistory(*args
, **kwargs
)
773 self
.this
= newobj
.this
776 def __del__(self
, destroy
=_misc_
.delete_FileHistory
):
779 if self
.thisown
: destroy(self
)
782 def AddFileToHistory(*args
, **kwargs
):
783 """AddFileToHistory(self, String file)"""
784 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
786 def RemoveFileFromHistory(*args
, **kwargs
):
787 """RemoveFileFromHistory(self, int i)"""
788 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
790 def GetMaxFiles(*args
, **kwargs
):
791 """GetMaxFiles(self) -> int"""
792 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
794 def UseMenu(*args
, **kwargs
):
795 """UseMenu(self, Menu menu)"""
796 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
798 def RemoveMenu(*args
, **kwargs
):
799 """RemoveMenu(self, Menu menu)"""
800 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
802 def Load(*args
, **kwargs
):
803 """Load(self, ConfigBase config)"""
804 return _misc_
.FileHistory_Load(*args
, **kwargs
)
806 def Save(*args
, **kwargs
):
807 """Save(self, ConfigBase config)"""
808 return _misc_
.FileHistory_Save(*args
, **kwargs
)
810 def AddFilesToMenu(*args
, **kwargs
):
811 """AddFilesToMenu(self)"""
812 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
814 def AddFilesToThisMenu(*args
, **kwargs
):
815 """AddFilesToThisMenu(self, Menu menu)"""
816 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
818 def GetHistoryFile(*args
, **kwargs
):
819 """GetHistoryFile(self, int i) -> String"""
820 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
822 def GetCount(*args
, **kwargs
):
823 """GetCount(self) -> int"""
824 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
826 GetNoHistoryFiles
= GetCount
828 class FileHistoryPtr(FileHistory
):
829 def __init__(self
, this
):
831 if not hasattr(self
,"thisown"): self
.thisown
= 0
832 self
.__class
__ = FileHistory
833 _misc_
.FileHistory_swigregister(FileHistoryPtr
)
835 class SingleInstanceChecker(object):
837 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
838 def __init__(self
, *args
, **kwargs
):
839 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
840 newobj
= _misc_
.new_SingleInstanceChecker(*args
, **kwargs
)
841 self
.this
= newobj
.this
844 def __del__(self
, destroy
=_misc_
.delete_SingleInstanceChecker
):
847 if self
.thisown
: destroy(self
)
850 def Create(*args
, **kwargs
):
851 """Create(self, String name, String path=EmptyString) -> bool"""
852 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
854 def IsAnotherRunning(*args
, **kwargs
):
855 """IsAnotherRunning(self) -> bool"""
856 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
859 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
860 def __init__(self
, this
):
862 if not hasattr(self
,"thisown"): self
.thisown
= 0
863 self
.__class
__ = SingleInstanceChecker
864 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
866 def PreSingleInstanceChecker(*args
, **kwargs
):
867 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
868 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
873 def DrawWindowOnDC(*args
, **kwargs
):
874 """DrawWindowOnDC(Window window, DC dc, int method)"""
875 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
876 #---------------------------------------------------------------------------
878 class TipProvider(object):
879 def __init__(self
): raise RuntimeError, "No constructor defined"
881 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
882 def __del__(self
, destroy
=_misc_
.delete_TipProvider
):
885 if self
.thisown
: destroy(self
)
888 def GetTip(*args
, **kwargs
):
889 """GetTip(self) -> String"""
890 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
892 def GetCurrentTip(*args
, **kwargs
):
893 """GetCurrentTip(self) -> size_t"""
894 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
896 def PreprocessTip(*args
, **kwargs
):
897 """PreprocessTip(self, String tip) -> String"""
898 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
901 class TipProviderPtr(TipProvider
):
902 def __init__(self
, this
):
904 if not hasattr(self
,"thisown"): self
.thisown
= 0
905 self
.__class
__ = TipProvider
906 _misc_
.TipProvider_swigregister(TipProviderPtr
)
908 class PyTipProvider(TipProvider
):
910 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
911 def __init__(self
, *args
, **kwargs
):
912 """__init__(self, size_t currentTip) -> PyTipProvider"""
913 newobj
= _misc_
.new_PyTipProvider(*args
, **kwargs
)
914 self
.this
= newobj
.this
917 self
._setCallbackInfo
(self
, PyTipProvider
)
919 def _setCallbackInfo(*args
, **kwargs
):
920 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
921 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
924 class PyTipProviderPtr(PyTipProvider
):
925 def __init__(self
, this
):
927 if not hasattr(self
,"thisown"): self
.thisown
= 0
928 self
.__class
__ = PyTipProvider
929 _misc_
.PyTipProvider_swigregister(PyTipProviderPtr
)
932 def ShowTip(*args
, **kwargs
):
933 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
934 return _misc_
.ShowTip(*args
, **kwargs
)
936 def CreateFileTipProvider(*args
, **kwargs
):
937 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
938 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
939 #---------------------------------------------------------------------------
941 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
942 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
943 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
944 class Timer(_core
.EvtHandler
):
946 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
947 def __init__(self
, *args
, **kwargs
):
948 """__init__(self, EvtHandler owner=None, int id=-1) -> Timer"""
949 newobj
= _misc_
.new_Timer(*args
, **kwargs
)
950 self
.this
= newobj
.this
953 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
)
955 def __del__(self
, destroy
=_misc_
.delete_Timer
):
958 if self
.thisown
: destroy(self
)
961 def _setCallbackInfo(*args
, **kwargs
):
962 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
963 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
965 def SetOwner(*args
, **kwargs
):
966 """SetOwner(self, EvtHandler owner, int id=-1)"""
967 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
969 def GetOwner(*args
, **kwargs
):
970 """GetOwner(self) -> EvtHandler"""
971 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
973 def Start(*args
, **kwargs
):
974 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
975 return _misc_
.Timer_Start(*args
, **kwargs
)
977 def Stop(*args
, **kwargs
):
979 return _misc_
.Timer_Stop(*args
, **kwargs
)
981 def IsRunning(*args
, **kwargs
):
982 """IsRunning(self) -> bool"""
983 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
985 def GetInterval(*args
, **kwargs
):
986 """GetInterval(self) -> int"""
987 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
989 def IsOneShot(*args
, **kwargs
):
990 """IsOneShot(self) -> bool"""
991 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
993 def GetId(*args
, **kwargs
):
994 """GetId(self) -> int"""
995 return _misc_
.Timer_GetId(*args
, **kwargs
)
998 class TimerPtr(Timer
):
999 def __init__(self
, this
):
1001 if not hasattr(self
,"thisown"): self
.thisown
= 0
1002 self
.__class
__ = Timer
1003 _misc_
.Timer_swigregister(TimerPtr
)
1005 # For backwards compatibility with 2.4
1006 class PyTimer(Timer
):
1007 def __init__(self
, notify
):
1008 Timer
.__init
__(self
)
1009 self
.notify
= notify
1016 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1019 class TimerEvent(_core
.Event
):
1021 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1022 def __init__(self
, *args
, **kwargs
):
1023 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1024 newobj
= _misc_
.new_TimerEvent(*args
, **kwargs
)
1025 self
.this
= newobj
.this
1028 def GetInterval(*args
, **kwargs
):
1029 """GetInterval(self) -> int"""
1030 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1033 class TimerEventPtr(TimerEvent
):
1034 def __init__(self
, this
):
1036 if not hasattr(self
,"thisown"): self
.thisown
= 0
1037 self
.__class
__ = TimerEvent
1038 _misc_
.TimerEvent_swigregister(TimerEventPtr
)
1040 class TimerRunner(object):
1042 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1043 def __init__(self
, *args
):
1045 __init__(self, wxTimer timer) -> TimerRunner
1046 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1048 newobj
= _misc_
.new_TimerRunner(*args
)
1049 self
.this
= newobj
.this
1052 def __del__(self
, destroy
=_misc_
.delete_TimerRunner
):
1055 if self
.thisown
: destroy(self
)
1058 def Start(*args
, **kwargs
):
1059 """Start(self, int milli, bool oneShot=False)"""
1060 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1063 class TimerRunnerPtr(TimerRunner
):
1064 def __init__(self
, this
):
1066 if not hasattr(self
,"thisown"): self
.thisown
= 0
1067 self
.__class
__ = TimerRunner
1068 _misc_
.TimerRunner_swigregister(TimerRunnerPtr
)
1070 #---------------------------------------------------------------------------
1072 LOG_FatalError
= _misc_
.LOG_FatalError
1073 LOG_Error
= _misc_
.LOG_Error
1074 LOG_Warning
= _misc_
.LOG_Warning
1075 LOG_Message
= _misc_
.LOG_Message
1076 LOG_Status
= _misc_
.LOG_Status
1077 LOG_Info
= _misc_
.LOG_Info
1078 LOG_Debug
= _misc_
.LOG_Debug
1079 LOG_Trace
= _misc_
.LOG_Trace
1080 LOG_Progress
= _misc_
.LOG_Progress
1081 LOG_User
= _misc_
.LOG_User
1082 LOG_Max
= _misc_
.LOG_Max
1083 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1084 TRACE_Messages
= _misc_
.TRACE_Messages
1085 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1086 TRACE_RefCount
= _misc_
.TRACE_RefCount
1087 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1088 TraceMemAlloc
= _misc_
.TraceMemAlloc
1089 TraceMessages
= _misc_
.TraceMessages
1090 TraceResAlloc
= _misc_
.TraceResAlloc
1091 TraceRefCount
= _misc_
.TraceRefCount
1092 TraceOleCalls
= _misc_
.TraceOleCalls
1095 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1096 def __init__(self
, *args
, **kwargs
):
1097 """__init__(self) -> Log"""
1098 newobj
= _misc_
.new_Log(*args
, **kwargs
)
1099 self
.this
= newobj
.this
1102 def IsEnabled(*args
, **kwargs
):
1103 """IsEnabled() -> bool"""
1104 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1106 IsEnabled
= staticmethod(IsEnabled
)
1107 def EnableLogging(*args
, **kwargs
):
1108 """EnableLogging(bool doIt=True) -> bool"""
1109 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1111 EnableLogging
= staticmethod(EnableLogging
)
1112 def OnLog(*args
, **kwargs
):
1113 """OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1114 return _misc_
.Log_OnLog(*args
, **kwargs
)
1116 OnLog
= staticmethod(OnLog
)
1117 def Flush(*args
, **kwargs
):
1119 return _misc_
.Log_Flush(*args
, **kwargs
)
1121 def FlushActive(*args
, **kwargs
):
1123 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1125 FlushActive
= staticmethod(FlushActive
)
1126 def GetActiveTarget(*args
, **kwargs
):
1127 """GetActiveTarget() -> Log"""
1128 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1130 GetActiveTarget
= staticmethod(GetActiveTarget
)
1131 def SetActiveTarget(*args
, **kwargs
):
1132 """SetActiveTarget(Log pLogger) -> Log"""
1133 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1135 SetActiveTarget
= staticmethod(SetActiveTarget
)
1136 def Suspend(*args
, **kwargs
):
1138 return _misc_
.Log_Suspend(*args
, **kwargs
)
1140 Suspend
= staticmethod(Suspend
)
1141 def Resume(*args
, **kwargs
):
1143 return _misc_
.Log_Resume(*args
, **kwargs
)
1145 Resume
= staticmethod(Resume
)
1146 def SetVerbose(*args
, **kwargs
):
1147 """SetVerbose(bool bVerbose=True)"""
1148 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1150 SetVerbose
= staticmethod(SetVerbose
)
1151 def SetLogLevel(*args
, **kwargs
):
1152 """SetLogLevel(wxLogLevel logLevel)"""
1153 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1155 SetLogLevel
= staticmethod(SetLogLevel
)
1156 def DontCreateOnDemand(*args
, **kwargs
):
1157 """DontCreateOnDemand()"""
1158 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1160 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1161 def SetTraceMask(*args
, **kwargs
):
1162 """SetTraceMask(wxTraceMask ulMask)"""
1163 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1165 SetTraceMask
= staticmethod(SetTraceMask
)
1166 def AddTraceMask(*args
, **kwargs
):
1167 """AddTraceMask(String str)"""
1168 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1170 AddTraceMask
= staticmethod(AddTraceMask
)
1171 def RemoveTraceMask(*args
, **kwargs
):
1172 """RemoveTraceMask(String str)"""
1173 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1175 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1176 def ClearTraceMasks(*args
, **kwargs
):
1177 """ClearTraceMasks()"""
1178 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1180 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1181 def GetTraceMasks(*args
, **kwargs
):
1182 """GetTraceMasks() -> wxArrayString"""
1183 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1185 GetTraceMasks
= staticmethod(GetTraceMasks
)
1186 def SetTimestamp(*args
, **kwargs
):
1187 """SetTimestamp(wxChar ts)"""
1188 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1190 SetTimestamp
= staticmethod(SetTimestamp
)
1191 def GetVerbose(*args
, **kwargs
):
1192 """GetVerbose() -> bool"""
1193 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1195 GetVerbose
= staticmethod(GetVerbose
)
1196 def GetTraceMask(*args
, **kwargs
):
1197 """GetTraceMask() -> wxTraceMask"""
1198 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1200 GetTraceMask
= staticmethod(GetTraceMask
)
1201 def IsAllowedTraceMask(*args
, **kwargs
):
1202 """IsAllowedTraceMask(wxChar mask) -> bool"""
1203 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1205 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1206 def GetLogLevel(*args
, **kwargs
):
1207 """GetLogLevel() -> wxLogLevel"""
1208 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1210 GetLogLevel
= staticmethod(GetLogLevel
)
1211 def GetTimestamp(*args
, **kwargs
):
1212 """GetTimestamp() -> wxChar"""
1213 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1215 GetTimestamp
= staticmethod(GetTimestamp
)
1216 def TimeStamp(*args
, **kwargs
):
1217 """TimeStamp() -> String"""
1218 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1220 TimeStamp
= staticmethod(TimeStamp
)
1221 def Destroy(*args
, **kwargs
):
1223 return _misc_
.Log_Destroy(*args
, **kwargs
)
1227 def __init__(self
, this
):
1229 if not hasattr(self
,"thisown"): self
.thisown
= 0
1230 self
.__class
__ = Log
1231 _misc_
.Log_swigregister(LogPtr
)
1233 def Log_IsEnabled(*args
, **kwargs
):
1234 """Log_IsEnabled() -> bool"""
1235 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1237 def Log_EnableLogging(*args
, **kwargs
):
1238 """Log_EnableLogging(bool doIt=True) -> bool"""
1239 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1241 def Log_OnLog(*args
, **kwargs
):
1242 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1243 return _misc_
.Log_OnLog(*args
, **kwargs
)
1245 def Log_FlushActive(*args
, **kwargs
):
1246 """Log_FlushActive()"""
1247 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1249 def Log_GetActiveTarget(*args
, **kwargs
):
1250 """Log_GetActiveTarget() -> Log"""
1251 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1253 def Log_SetActiveTarget(*args
, **kwargs
):
1254 """Log_SetActiveTarget(Log pLogger) -> Log"""
1255 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1257 def Log_Suspend(*args
, **kwargs
):
1259 return _misc_
.Log_Suspend(*args
, **kwargs
)
1261 def Log_Resume(*args
, **kwargs
):
1263 return _misc_
.Log_Resume(*args
, **kwargs
)
1265 def Log_SetVerbose(*args
, **kwargs
):
1266 """Log_SetVerbose(bool bVerbose=True)"""
1267 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1269 def Log_SetLogLevel(*args
, **kwargs
):
1270 """Log_SetLogLevel(wxLogLevel logLevel)"""
1271 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1273 def Log_DontCreateOnDemand(*args
, **kwargs
):
1274 """Log_DontCreateOnDemand()"""
1275 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1277 def Log_SetTraceMask(*args
, **kwargs
):
1278 """Log_SetTraceMask(wxTraceMask ulMask)"""
1279 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1281 def Log_AddTraceMask(*args
, **kwargs
):
1282 """Log_AddTraceMask(String str)"""
1283 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1285 def Log_RemoveTraceMask(*args
, **kwargs
):
1286 """Log_RemoveTraceMask(String str)"""
1287 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1289 def Log_ClearTraceMasks(*args
, **kwargs
):
1290 """Log_ClearTraceMasks()"""
1291 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1293 def Log_GetTraceMasks(*args
, **kwargs
):
1294 """Log_GetTraceMasks() -> wxArrayString"""
1295 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1297 def Log_SetTimestamp(*args
, **kwargs
):
1298 """Log_SetTimestamp(wxChar ts)"""
1299 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1301 def Log_GetVerbose(*args
, **kwargs
):
1302 """Log_GetVerbose() -> bool"""
1303 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1305 def Log_GetTraceMask(*args
, **kwargs
):
1306 """Log_GetTraceMask() -> wxTraceMask"""
1307 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1309 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1310 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1311 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1313 def Log_GetLogLevel(*args
, **kwargs
):
1314 """Log_GetLogLevel() -> wxLogLevel"""
1315 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1317 def Log_GetTimestamp(*args
, **kwargs
):
1318 """Log_GetTimestamp() -> wxChar"""
1319 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1321 def Log_TimeStamp(*args
, **kwargs
):
1322 """Log_TimeStamp() -> String"""
1323 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1325 class LogStderr(Log
):
1327 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1328 def __init__(self
, *args
, **kwargs
):
1329 """__init__(self) -> LogStderr"""
1330 newobj
= _misc_
.new_LogStderr(*args
, **kwargs
)
1331 self
.this
= newobj
.this
1335 class LogStderrPtr(LogStderr
):
1336 def __init__(self
, this
):
1338 if not hasattr(self
,"thisown"): self
.thisown
= 0
1339 self
.__class
__ = LogStderr
1340 _misc_
.LogStderr_swigregister(LogStderrPtr
)
1342 class LogTextCtrl(Log
):
1344 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1345 def __init__(self
, *args
, **kwargs
):
1346 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1347 newobj
= _misc_
.new_LogTextCtrl(*args
, **kwargs
)
1348 self
.this
= newobj
.this
1352 class LogTextCtrlPtr(LogTextCtrl
):
1353 def __init__(self
, this
):
1355 if not hasattr(self
,"thisown"): self
.thisown
= 0
1356 self
.__class
__ = LogTextCtrl
1357 _misc_
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1361 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1362 def __init__(self
, *args
, **kwargs
):
1363 """__init__(self) -> LogGui"""
1364 newobj
= _misc_
.new_LogGui(*args
, **kwargs
)
1365 self
.this
= newobj
.this
1369 class LogGuiPtr(LogGui
):
1370 def __init__(self
, this
):
1372 if not hasattr(self
,"thisown"): self
.thisown
= 0
1373 self
.__class
__ = LogGui
1374 _misc_
.LogGui_swigregister(LogGuiPtr
)
1376 class LogWindow(Log
):
1378 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1379 def __init__(self
, *args
, **kwargs
):
1380 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1381 newobj
= _misc_
.new_LogWindow(*args
, **kwargs
)
1382 self
.this
= newobj
.this
1385 def Show(*args
, **kwargs
):
1386 """Show(self, bool bShow=True)"""
1387 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1389 def GetFrame(*args
, **kwargs
):
1390 """GetFrame(self) -> wxFrame"""
1391 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1393 def GetOldLog(*args
, **kwargs
):
1394 """GetOldLog(self) -> Log"""
1395 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1397 def IsPassingMessages(*args
, **kwargs
):
1398 """IsPassingMessages(self) -> bool"""
1399 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1401 def PassMessages(*args
, **kwargs
):
1402 """PassMessages(self, bool bDoPass)"""
1403 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1406 class LogWindowPtr(LogWindow
):
1407 def __init__(self
, this
):
1409 if not hasattr(self
,"thisown"): self
.thisown
= 0
1410 self
.__class
__ = LogWindow
1411 _misc_
.LogWindow_swigregister(LogWindowPtr
)
1413 class LogChain(Log
):
1415 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1416 def __init__(self
, *args
, **kwargs
):
1417 """__init__(self, Log logger) -> LogChain"""
1418 newobj
= _misc_
.new_LogChain(*args
, **kwargs
)
1419 self
.this
= newobj
.this
1422 def SetLog(*args
, **kwargs
):
1423 """SetLog(self, Log logger)"""
1424 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1426 def PassMessages(*args
, **kwargs
):
1427 """PassMessages(self, bool bDoPass)"""
1428 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1430 def IsPassingMessages(*args
, **kwargs
):
1431 """IsPassingMessages(self) -> bool"""
1432 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1434 def GetOldLog(*args
, **kwargs
):
1435 """GetOldLog(self) -> Log"""
1436 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1439 class LogChainPtr(LogChain
):
1440 def __init__(self
, this
):
1442 if not hasattr(self
,"thisown"): self
.thisown
= 0
1443 self
.__class
__ = LogChain
1444 _misc_
.LogChain_swigregister(LogChainPtr
)
1447 def SysErrorCode(*args
, **kwargs
):
1448 """SysErrorCode() -> unsigned long"""
1449 return _misc_
.SysErrorCode(*args
, **kwargs
)
1451 def SysErrorMsg(*args
, **kwargs
):
1452 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1453 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1455 def LogFatalError(*args
, **kwargs
):
1456 """LogFatalError(String msg)"""
1457 return _misc_
.LogFatalError(*args
, **kwargs
)
1459 def LogError(*args
, **kwargs
):
1460 """LogError(String msg)"""
1461 return _misc_
.LogError(*args
, **kwargs
)
1463 def LogWarning(*args
, **kwargs
):
1464 """LogWarning(String msg)"""
1465 return _misc_
.LogWarning(*args
, **kwargs
)
1467 def LogMessage(*args
, **kwargs
):
1468 """LogMessage(String msg)"""
1469 return _misc_
.LogMessage(*args
, **kwargs
)
1471 def LogInfo(*args
, **kwargs
):
1472 """LogInfo(String msg)"""
1473 return _misc_
.LogInfo(*args
, **kwargs
)
1475 def LogDebug(*args
, **kwargs
):
1476 """LogDebug(String msg)"""
1477 return _misc_
.LogDebug(*args
, **kwargs
)
1479 def LogVerbose(*args
, **kwargs
):
1480 """LogVerbose(String msg)"""
1481 return _misc_
.LogVerbose(*args
, **kwargs
)
1483 def LogStatus(*args
, **kwargs
):
1484 """LogStatus(String msg)"""
1485 return _misc_
.LogStatus(*args
, **kwargs
)
1487 def LogStatusFrame(*args
, **kwargs
):
1488 """LogStatusFrame(wxFrame pFrame, String msg)"""
1489 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1491 def LogSysError(*args
, **kwargs
):
1492 """LogSysError(String msg)"""
1493 return _misc_
.LogSysError(*args
, **kwargs
)
1495 def LogGeneric(*args
, **kwargs
):
1496 """LogGeneric(unsigned long level, String msg)"""
1497 return _misc_
.LogGeneric(*args
, **kwargs
)
1499 def SafeShowMessage(*args
, **kwargs
):
1500 """SafeShowMessage(String title, String text)"""
1501 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1502 class LogNull(object):
1504 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1505 def __init__(self
, *args
, **kwargs
):
1506 """__init__(self) -> LogNull"""
1507 newobj
= _misc_
.new_LogNull(*args
, **kwargs
)
1508 self
.this
= newobj
.this
1511 def __del__(self
, destroy
=_misc_
.delete_LogNull
):
1514 if self
.thisown
: destroy(self
)
1518 class LogNullPtr(LogNull
):
1519 def __init__(self
, this
):
1521 if not hasattr(self
,"thisown"): self
.thisown
= 0
1522 self
.__class
__ = LogNull
1523 _misc_
.LogNull_swigregister(LogNullPtr
)
1525 def LogTrace(*args
):
1527 LogTrace(unsigned long mask, String msg)
1528 LogTrace(String mask, String msg)
1530 return _misc_
.LogTrace(*args
)
1534 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1535 def __init__(self
, *args
, **kwargs
):
1536 """__init__(self) -> PyLog"""
1537 newobj
= _misc_
.new_PyLog(*args
, **kwargs
)
1538 self
.this
= newobj
.this
1541 self
._setCallbackInfo
(self
, PyLog
)
1543 def _setCallbackInfo(*args
, **kwargs
):
1544 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1545 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1548 class PyLogPtr(PyLog
):
1549 def __init__(self
, this
):
1551 if not hasattr(self
,"thisown"): self
.thisown
= 0
1552 self
.__class
__ = PyLog
1553 _misc_
.PyLog_swigregister(PyLogPtr
)
1555 #---------------------------------------------------------------------------
1557 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1558 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1559 KILL_OK
= _misc_
.KILL_OK
1560 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1561 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1562 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1563 KILL_ERROR
= _misc_
.KILL_ERROR
1564 SIGNONE
= _misc_
.SIGNONE
1565 SIGHUP
= _misc_
.SIGHUP
1566 SIGINT
= _misc_
.SIGINT
1567 SIGQUIT
= _misc_
.SIGQUIT
1568 SIGILL
= _misc_
.SIGILL
1569 SIGTRAP
= _misc_
.SIGTRAP
1570 SIGABRT
= _misc_
.SIGABRT
1571 SIGIOT
= _misc_
.SIGIOT
1572 SIGEMT
= _misc_
.SIGEMT
1573 SIGFPE
= _misc_
.SIGFPE
1574 SIGKILL
= _misc_
.SIGKILL
1575 SIGBUS
= _misc_
.SIGBUS
1576 SIGSEGV
= _misc_
.SIGSEGV
1577 SIGSYS
= _misc_
.SIGSYS
1578 SIGPIPE
= _misc_
.SIGPIPE
1579 SIGALRM
= _misc_
.SIGALRM
1580 SIGTERM
= _misc_
.SIGTERM
1581 class Process(_core
.EvtHandler
):
1583 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1584 def Kill(*args
, **kwargs
):
1585 """Kill(int pid, int sig=SIGTERM) -> int"""
1586 return _misc_
.Process_Kill(*args
, **kwargs
)
1588 Kill
= staticmethod(Kill
)
1589 def Exists(*args
, **kwargs
):
1590 """Exists(int pid) -> bool"""
1591 return _misc_
.Process_Exists(*args
, **kwargs
)
1593 Exists
= staticmethod(Exists
)
1594 def Open(*args
, **kwargs
):
1595 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1596 return _misc_
.Process_Open(*args
, **kwargs
)
1598 Open
= staticmethod(Open
)
1599 def __init__(self
, *args
, **kwargs
):
1600 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1601 newobj
= _misc_
.new_Process(*args
, **kwargs
)
1602 self
.this
= newobj
.this
1605 self
._setCallbackInfo
(self
, Process
)
1607 def _setCallbackInfo(*args
, **kwargs
):
1608 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1609 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1611 def base_OnTerminate(*args
, **kwargs
):
1612 """base_OnTerminate(self, int pid, int status)"""
1613 return _misc_
.Process_base_OnTerminate(*args
, **kwargs
)
1615 def Redirect(*args
, **kwargs
):
1616 """Redirect(self)"""
1617 return _misc_
.Process_Redirect(*args
, **kwargs
)
1619 def IsRedirected(*args
, **kwargs
):
1620 """IsRedirected(self) -> bool"""
1621 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1623 def Detach(*args
, **kwargs
):
1625 return _misc_
.Process_Detach(*args
, **kwargs
)
1627 def GetInputStream(*args
, **kwargs
):
1628 """GetInputStream(self) -> InputStream"""
1629 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1631 def GetErrorStream(*args
, **kwargs
):
1632 """GetErrorStream(self) -> InputStream"""
1633 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1635 def GetOutputStream(*args
, **kwargs
):
1636 """GetOutputStream(self) -> OutputStream"""
1637 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1639 def CloseOutput(*args
, **kwargs
):
1640 """CloseOutput(self)"""
1641 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1643 def IsInputOpened(*args
, **kwargs
):
1644 """IsInputOpened(self) -> bool"""
1645 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1647 def IsInputAvailable(*args
, **kwargs
):
1648 """IsInputAvailable(self) -> bool"""
1649 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1651 def IsErrorAvailable(*args
, **kwargs
):
1652 """IsErrorAvailable(self) -> bool"""
1653 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1656 class ProcessPtr(Process
):
1657 def __init__(self
, this
):
1659 if not hasattr(self
,"thisown"): self
.thisown
= 0
1660 self
.__class
__ = Process
1661 _misc_
.Process_swigregister(ProcessPtr
)
1663 def Process_Kill(*args
, **kwargs
):
1664 """Process_Kill(int pid, int sig=SIGTERM) -> int"""
1665 return _misc_
.Process_Kill(*args
, **kwargs
)
1667 def Process_Exists(*args
, **kwargs
):
1668 """Process_Exists(int pid) -> bool"""
1669 return _misc_
.Process_Exists(*args
, **kwargs
)
1671 def Process_Open(*args
, **kwargs
):
1672 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1673 return _misc_
.Process_Open(*args
, **kwargs
)
1675 class ProcessEvent(_core
.Event
):
1677 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1678 def __init__(self
, *args
, **kwargs
):
1679 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1680 newobj
= _misc_
.new_ProcessEvent(*args
, **kwargs
)
1681 self
.this
= newobj
.this
1684 def GetPid(*args
, **kwargs
):
1685 """GetPid(self) -> int"""
1686 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1688 def GetExitCode(*args
, **kwargs
):
1689 """GetExitCode(self) -> int"""
1690 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1692 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1693 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1695 class ProcessEventPtr(ProcessEvent
):
1696 def __init__(self
, this
):
1698 if not hasattr(self
,"thisown"): self
.thisown
= 0
1699 self
.__class
__ = ProcessEvent
1700 _misc_
.ProcessEvent_swigregister(ProcessEventPtr
)
1702 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1703 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1705 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1706 EXEC_SYNC
= _misc_
.EXEC_SYNC
1707 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1708 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1710 def Execute(*args
, **kwargs
):
1711 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1712 return _misc_
.Execute(*args
, **kwargs
)
1713 #---------------------------------------------------------------------------
1715 JOYSTICK1
= _misc_
.JOYSTICK1
1716 JOYSTICK2
= _misc_
.JOYSTICK2
1717 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1718 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1719 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1720 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1721 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1722 class Joystick(object):
1724 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1725 def __init__(self
, *args
, **kwargs
):
1726 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1727 newobj
= _misc_
.new_Joystick(*args
, **kwargs
)
1728 self
.this
= newobj
.this
1731 def __del__(self
, destroy
=_misc_
.delete_Joystick
):
1734 if self
.thisown
: destroy(self
)
1737 def GetPosition(*args
, **kwargs
):
1738 """GetPosition(self) -> Point"""
1739 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1741 def GetZPosition(*args
, **kwargs
):
1742 """GetZPosition(self) -> int"""
1743 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1745 def GetButtonState(*args
, **kwargs
):
1746 """GetButtonState(self) -> int"""
1747 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1749 def GetPOVPosition(*args
, **kwargs
):
1750 """GetPOVPosition(self) -> int"""
1751 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1753 def GetPOVCTSPosition(*args
, **kwargs
):
1754 """GetPOVCTSPosition(self) -> int"""
1755 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1757 def GetRudderPosition(*args
, **kwargs
):
1758 """GetRudderPosition(self) -> int"""
1759 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1761 def GetUPosition(*args
, **kwargs
):
1762 """GetUPosition(self) -> int"""
1763 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1765 def GetVPosition(*args
, **kwargs
):
1766 """GetVPosition(self) -> int"""
1767 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1769 def GetMovementThreshold(*args
, **kwargs
):
1770 """GetMovementThreshold(self) -> int"""
1771 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1773 def SetMovementThreshold(*args
, **kwargs
):
1774 """SetMovementThreshold(self, int threshold)"""
1775 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1777 def IsOk(*args
, **kwargs
):
1778 """IsOk(self) -> bool"""
1779 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1781 def GetNumberJoysticks(*args
, **kwargs
):
1782 """GetNumberJoysticks(self) -> int"""
1783 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1785 def GetManufacturerId(*args
, **kwargs
):
1786 """GetManufacturerId(self) -> int"""
1787 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1789 def GetProductId(*args
, **kwargs
):
1790 """GetProductId(self) -> int"""
1791 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1793 def GetProductName(*args
, **kwargs
):
1794 """GetProductName(self) -> String"""
1795 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1797 def GetXMin(*args
, **kwargs
):
1798 """GetXMin(self) -> int"""
1799 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1801 def GetYMin(*args
, **kwargs
):
1802 """GetYMin(self) -> int"""
1803 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1805 def GetZMin(*args
, **kwargs
):
1806 """GetZMin(self) -> int"""
1807 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1809 def GetXMax(*args
, **kwargs
):
1810 """GetXMax(self) -> int"""
1811 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1813 def GetYMax(*args
, **kwargs
):
1814 """GetYMax(self) -> int"""
1815 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1817 def GetZMax(*args
, **kwargs
):
1818 """GetZMax(self) -> int"""
1819 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1821 def GetNumberButtons(*args
, **kwargs
):
1822 """GetNumberButtons(self) -> int"""
1823 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1825 def GetNumberAxes(*args
, **kwargs
):
1826 """GetNumberAxes(self) -> int"""
1827 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1829 def GetMaxButtons(*args
, **kwargs
):
1830 """GetMaxButtons(self) -> int"""
1831 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1833 def GetMaxAxes(*args
, **kwargs
):
1834 """GetMaxAxes(self) -> int"""
1835 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1837 def GetPollingMin(*args
, **kwargs
):
1838 """GetPollingMin(self) -> int"""
1839 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1841 def GetPollingMax(*args
, **kwargs
):
1842 """GetPollingMax(self) -> int"""
1843 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1845 def GetRudderMin(*args
, **kwargs
):
1846 """GetRudderMin(self) -> int"""
1847 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1849 def GetRudderMax(*args
, **kwargs
):
1850 """GetRudderMax(self) -> int"""
1851 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1853 def GetUMin(*args
, **kwargs
):
1854 """GetUMin(self) -> int"""
1855 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1857 def GetUMax(*args
, **kwargs
):
1858 """GetUMax(self) -> int"""
1859 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1861 def GetVMin(*args
, **kwargs
):
1862 """GetVMin(self) -> int"""
1863 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1865 def GetVMax(*args
, **kwargs
):
1866 """GetVMax(self) -> int"""
1867 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1869 def HasRudder(*args
, **kwargs
):
1870 """HasRudder(self) -> bool"""
1871 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1873 def HasZ(*args
, **kwargs
):
1874 """HasZ(self) -> bool"""
1875 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1877 def HasU(*args
, **kwargs
):
1878 """HasU(self) -> bool"""
1879 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1881 def HasV(*args
, **kwargs
):
1882 """HasV(self) -> bool"""
1883 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1885 def HasPOV(*args
, **kwargs
):
1886 """HasPOV(self) -> bool"""
1887 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1889 def HasPOV4Dir(*args
, **kwargs
):
1890 """HasPOV4Dir(self) -> bool"""
1891 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1893 def HasPOVCTS(*args
, **kwargs
):
1894 """HasPOVCTS(self) -> bool"""
1895 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1897 def SetCapture(*args
, **kwargs
):
1898 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1899 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
1901 def ReleaseCapture(*args
, **kwargs
):
1902 """ReleaseCapture(self) -> bool"""
1903 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
1905 def __nonzero__(self
): return self
.IsOk()
1907 class JoystickPtr(Joystick
):
1908 def __init__(self
, this
):
1910 if not hasattr(self
,"thisown"): self
.thisown
= 0
1911 self
.__class
__ = Joystick
1912 _misc_
.Joystick_swigregister(JoystickPtr
)
1914 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
1915 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
1916 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
1917 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
1918 class JoystickEvent(_core
.Event
):
1920 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1921 m_pos
= property(_misc_
.JoystickEvent_m_pos_get
, _misc_
.JoystickEvent_m_pos_set
)
1922 m_zPosition
= property(_misc_
.JoystickEvent_m_zPosition_get
, _misc_
.JoystickEvent_m_zPosition_set
)
1923 m_buttonChange
= property(_misc_
.JoystickEvent_m_buttonChange_get
, _misc_
.JoystickEvent_m_buttonChange_set
)
1924 m_buttonState
= property(_misc_
.JoystickEvent_m_buttonState_get
, _misc_
.JoystickEvent_m_buttonState_set
)
1925 m_joyStick
= property(_misc_
.JoystickEvent_m_joyStick_get
, _misc_
.JoystickEvent_m_joyStick_set
)
1926 def __init__(self
, *args
, **kwargs
):
1928 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1929 int change=0) -> JoystickEvent
1931 newobj
= _misc_
.new_JoystickEvent(*args
, **kwargs
)
1932 self
.this
= newobj
.this
1935 def GetPosition(*args
, **kwargs
):
1936 """GetPosition(self) -> Point"""
1937 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
1939 def GetZPosition(*args
, **kwargs
):
1940 """GetZPosition(self) -> int"""
1941 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1943 def GetButtonState(*args
, **kwargs
):
1944 """GetButtonState(self) -> int"""
1945 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1947 def GetButtonChange(*args
, **kwargs
):
1948 """GetButtonChange(self) -> int"""
1949 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1951 def GetJoystick(*args
, **kwargs
):
1952 """GetJoystick(self) -> int"""
1953 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1955 def SetJoystick(*args
, **kwargs
):
1956 """SetJoystick(self, int stick)"""
1957 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1959 def SetButtonState(*args
, **kwargs
):
1960 """SetButtonState(self, int state)"""
1961 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1963 def SetButtonChange(*args
, **kwargs
):
1964 """SetButtonChange(self, int change)"""
1965 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1967 def SetPosition(*args
, **kwargs
):
1968 """SetPosition(self, Point pos)"""
1969 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
1971 def SetZPosition(*args
, **kwargs
):
1972 """SetZPosition(self, int zPos)"""
1973 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1975 def IsButton(*args
, **kwargs
):
1976 """IsButton(self) -> bool"""
1977 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
1979 def IsMove(*args
, **kwargs
):
1980 """IsMove(self) -> bool"""
1981 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
1983 def IsZMove(*args
, **kwargs
):
1984 """IsZMove(self) -> bool"""
1985 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
1987 def ButtonDown(*args
, **kwargs
):
1988 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
1989 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1991 def ButtonUp(*args
, **kwargs
):
1992 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
1993 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1995 def ButtonIsDown(*args
, **kwargs
):
1996 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
1997 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2000 class JoystickEventPtr(JoystickEvent
):
2001 def __init__(self
, this
):
2003 if not hasattr(self
,"thisown"): self
.thisown
= 0
2004 self
.__class
__ = JoystickEvent
2005 _misc_
.JoystickEvent_swigregister(JoystickEventPtr
)
2007 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2008 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2009 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2010 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2012 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2013 wxEVT_JOY_BUTTON_UP
,
2019 #---------------------------------------------------------------------------
2021 SOUND_SYNC
= _misc_
.SOUND_SYNC
2022 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2023 SOUND_LOOP
= _misc_
.SOUND_LOOP
2024 class Sound(object):
2026 return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2027 def __init__(self
, *args
, **kwargs
):
2028 """__init__(self, String fileName=EmptyString) -> Sound"""
2029 newobj
= _misc_
.new_Sound(*args
, **kwargs
)
2030 self
.this
= newobj
.this
2033 def __del__(self
, destroy
=_misc_
.delete_Sound
):
2036 if self
.thisown
: destroy(self
)
2039 def Create(*args
, **kwargs
):
2040 """Create(self, String fileName) -> bool"""
2041 return _misc_
.Sound_Create(*args
, **kwargs
)
2043 def CreateFromData(*args
, **kwargs
):
2044 """CreateFromData(self, PyObject data) -> bool"""
2045 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2047 def IsOk(*args
, **kwargs
):
2048 """IsOk(self) -> bool"""
2049 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2051 def Play(*args
, **kwargs
):
2052 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2053 return _misc_
.Sound_Play(*args
, **kwargs
)
2055 def PlaySound(*args
, **kwargs
):
2056 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2057 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2059 PlaySound
= staticmethod(PlaySound
)
2060 def Stop(*args
, **kwargs
):
2062 return _misc_
.Sound_Stop(*args
, **kwargs
)
2064 Stop
= staticmethod(Stop
)
2065 def __nonzero__(self
): return self
.IsOk()
2067 class SoundPtr(Sound
):
2068 def __init__(self
, this
):
2070 if not hasattr(self
,"thisown"): self
.thisown
= 0
2071 self
.__class
__ = Sound
2072 _misc_
.Sound_swigregister(SoundPtr
)
2074 def SoundFromData(*args
, **kwargs
):
2075 """SoundFromData(PyObject data) -> Sound"""
2076 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2080 def Sound_PlaySound(*args
, **kwargs
):
2081 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2082 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2084 def Sound_Stop(*args
, **kwargs
):
2086 return _misc_
.Sound_Stop(*args
, **kwargs
)
2088 #---------------------------------------------------------------------------
2090 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2091 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2092 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2093 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2094 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2095 class FileTypeInfo(object):
2097 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2098 def __init__(self
, *args
, **kwargs
):
2099 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2100 newobj
= _misc_
.new_FileTypeInfo(*args
, **kwargs
)
2101 self
.this
= newobj
.this
2104 def IsValid(*args
, **kwargs
):
2105 """IsValid(self) -> bool"""
2106 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2108 def SetIcon(*args
, **kwargs
):
2109 """SetIcon(self, String iconFile, int iconIndex=0)"""
2110 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2112 def SetShortDesc(*args
, **kwargs
):
2113 """SetShortDesc(self, String shortDesc)"""
2114 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2116 def GetMimeType(*args
, **kwargs
):
2117 """GetMimeType(self) -> String"""
2118 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2120 def GetOpenCommand(*args
, **kwargs
):
2121 """GetOpenCommand(self) -> String"""
2122 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2124 def GetPrintCommand(*args
, **kwargs
):
2125 """GetPrintCommand(self) -> String"""
2126 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2128 def GetShortDesc(*args
, **kwargs
):
2129 """GetShortDesc(self) -> String"""
2130 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2132 def GetDescription(*args
, **kwargs
):
2133 """GetDescription(self) -> String"""
2134 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2136 def GetExtensions(*args
, **kwargs
):
2137 """GetExtensions(self) -> wxArrayString"""
2138 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2140 def GetExtensionsCount(*args
, **kwargs
):
2141 """GetExtensionsCount(self) -> int"""
2142 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2144 def GetIconFile(*args
, **kwargs
):
2145 """GetIconFile(self) -> String"""
2146 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2148 def GetIconIndex(*args
, **kwargs
):
2149 """GetIconIndex(self) -> int"""
2150 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2153 class FileTypeInfoPtr(FileTypeInfo
):
2154 def __init__(self
, this
):
2156 if not hasattr(self
,"thisown"): self
.thisown
= 0
2157 self
.__class
__ = FileTypeInfo
2158 _misc_
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2160 def FileTypeInfoSequence(*args
, **kwargs
):
2161 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2162 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2166 def NullFileTypeInfo(*args
, **kwargs
):
2167 """NullFileTypeInfo() -> FileTypeInfo"""
2168 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2172 class FileType(object):
2174 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2175 def __init__(self
, *args
, **kwargs
):
2176 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2177 newobj
= _misc_
.new_FileType(*args
, **kwargs
)
2178 self
.this
= newobj
.this
2181 def __del__(self
, destroy
=_misc_
.delete_FileType
):
2184 if self
.thisown
: destroy(self
)
2187 def GetMimeType(*args
, **kwargs
):
2188 """GetMimeType(self) -> PyObject"""
2189 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2191 def GetMimeTypes(*args
, **kwargs
):
2192 """GetMimeTypes(self) -> PyObject"""
2193 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2195 def GetExtensions(*args
, **kwargs
):
2196 """GetExtensions(self) -> PyObject"""
2197 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2199 def GetIcon(*args
, **kwargs
):
2200 """GetIcon(self) -> Icon"""
2201 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2203 def GetIconInfo(*args
, **kwargs
):
2204 """GetIconInfo(self) -> PyObject"""
2205 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2207 def GetDescription(*args
, **kwargs
):
2208 """GetDescription(self) -> PyObject"""
2209 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2211 def GetOpenCommand(*args
, **kwargs
):
2212 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2213 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2215 def GetPrintCommand(*args
, **kwargs
):
2216 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2217 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2219 def GetAllCommands(*args
, **kwargs
):
2220 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2221 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2223 def SetCommand(*args
, **kwargs
):
2224 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2225 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2227 def SetDefaultIcon(*args
, **kwargs
):
2228 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2229 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2231 def Unassociate(*args
, **kwargs
):
2232 """Unassociate(self) -> bool"""
2233 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2235 def ExpandCommand(*args
, **kwargs
):
2236 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2237 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2239 ExpandCommand
= staticmethod(ExpandCommand
)
2241 class FileTypePtr(FileType
):
2242 def __init__(self
, this
):
2244 if not hasattr(self
,"thisown"): self
.thisown
= 0
2245 self
.__class
__ = FileType
2246 _misc_
.FileType_swigregister(FileTypePtr
)
2248 def FileType_ExpandCommand(*args
, **kwargs
):
2249 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2250 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2252 class MimeTypesManager(object):
2254 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2255 def IsOfType(*args
, **kwargs
):
2256 """IsOfType(String mimeType, String wildcard) -> bool"""
2257 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2259 IsOfType
= staticmethod(IsOfType
)
2260 def __init__(self
, *args
, **kwargs
):
2261 """__init__(self) -> MimeTypesManager"""
2262 newobj
= _misc_
.new_MimeTypesManager(*args
, **kwargs
)
2263 self
.this
= newobj
.this
2266 def Initialize(*args
, **kwargs
):
2267 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2268 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2270 def ClearData(*args
, **kwargs
):
2271 """ClearData(self)"""
2272 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2274 def GetFileTypeFromExtension(*args
, **kwargs
):
2275 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2276 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2278 def GetFileTypeFromMimeType(*args
, **kwargs
):
2279 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2280 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2282 def ReadMailcap(*args
, **kwargs
):
2283 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2284 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2286 def ReadMimeTypes(*args
, **kwargs
):
2287 """ReadMimeTypes(self, String filename) -> bool"""
2288 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2290 def EnumAllFileTypes(*args
, **kwargs
):
2291 """EnumAllFileTypes(self) -> PyObject"""
2292 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2294 def AddFallback(*args
, **kwargs
):
2295 """AddFallback(self, FileTypeInfo ft)"""
2296 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2298 def Associate(*args
, **kwargs
):
2299 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2300 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2302 def Unassociate(*args
, **kwargs
):
2303 """Unassociate(self, FileType ft) -> bool"""
2304 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2306 def __del__(self
, destroy
=_misc_
.delete_MimeTypesManager
):
2309 if self
.thisown
: destroy(self
)
2313 class MimeTypesManagerPtr(MimeTypesManager
):
2314 def __init__(self
, this
):
2316 if not hasattr(self
,"thisown"): self
.thisown
= 0
2317 self
.__class
__ = MimeTypesManager
2318 _misc_
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2319 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2321 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2322 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2323 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2325 #---------------------------------------------------------------------------
2327 class ArtProvider(object):
2329 The wx.ArtProvider class is used to customize the look of wxWidgets
2330 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2331 in the standard file dialog), it does not use hard-coded resource but
2332 asks wx.ArtProvider for it instead. This way the users can plug in
2333 their own wx.ArtProvider class and easily replace standard art with
2334 his/her own version. It is easy thing to do: all that is needed is
2335 to derive a class from wx.ArtProvider, override it's CreateBitmap
2336 method and register the provider with wx.ArtProvider.PushProvider::
2338 class MyArtProvider(wx.ArtProvider):
2340 wx.ArtProvider.__init__(self)
2342 def CreateBitmap(self, artid, client, size):
2347 Identifying art resources
2348 -------------------------
2350 Every bitmap is known to wx.ArtProvider under an unique ID that is
2351 used when requesting a resource from it. The IDs can have one of these
2354 * wx.ART_ADD_BOOKMARK
2355 * wx.ART_DEL_BOOKMARK
2356 * wx.ART_HELP_SIDE_PANEL
2357 * wx.ART_HELP_SETTINGS
2359 * wx.ART_HELP_FOLDER
2365 * wx.ART_GO_TO_PARENT
2371 * wx.ART_REPORT_VIEW
2376 * wx.ART_EXECUTABLE_FILE
2377 * wx.ART_NORMAL_FILE
2383 * wx.ART_INFORMATION
2384 * wx.ART_MISSING_IMAGE
2390 The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
2391 `GetIcon` function. Client IDs server as a hint to wx.ArtProvider
2392 that is supposed to help it to choose the best looking bitmap. For
2393 example it is often desirable to use slightly different icons in menus
2394 and toolbars even though they represent the same action (e.g.
2395 wx.ART_FILE_OPEN). Remember that this is really only a hint for
2396 wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
2397 identical bitmap for different client values!
2403 * wx.ART_HELP_BROWSER
2404 * wx.ART_MESSAGE_BOX
2405 * wx.ART_OTHER (used for all requests that don't fit into any
2406 of the categories above)
2410 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2411 def __init__(self
, *args
, **kwargs
):
2413 __init__(self) -> ArtProvider
2415 The wx.ArtProvider class is used to customize the look of wxWidgets
2416 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2417 in the standard file dialog), it does not use hard-coded resource but
2418 asks wx.ArtProvider for it instead. This way the users can plug in
2419 their own wx.ArtProvider class and easily replace standard art with
2420 his/her own version. It is easy thing to do: all that is needed is
2421 to derive a class from wx.ArtProvider, override it's CreateBitmap
2422 method and register the provider with wx.ArtProvider.PushProvider::
2424 class MyArtProvider(wx.ArtProvider):
2426 wx.ArtProvider.__init__(self)
2428 def CreateBitmap(self, artid, client, size):
2433 Identifying art resources
2434 -------------------------
2436 Every bitmap is known to wx.ArtProvider under an unique ID that is
2437 used when requesting a resource from it. The IDs can have one of these
2440 * wx.ART_ADD_BOOKMARK
2441 * wx.ART_DEL_BOOKMARK
2442 * wx.ART_HELP_SIDE_PANEL
2443 * wx.ART_HELP_SETTINGS
2445 * wx.ART_HELP_FOLDER
2451 * wx.ART_GO_TO_PARENT
2457 * wx.ART_REPORT_VIEW
2462 * wx.ART_EXECUTABLE_FILE
2463 * wx.ART_NORMAL_FILE
2469 * wx.ART_INFORMATION
2470 * wx.ART_MISSING_IMAGE
2476 The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
2477 `GetIcon` function. Client IDs server as a hint to wx.ArtProvider
2478 that is supposed to help it to choose the best looking bitmap. For
2479 example it is often desirable to use slightly different icons in menus
2480 and toolbars even though they represent the same action (e.g.
2481 wx.ART_FILE_OPEN). Remember that this is really only a hint for
2482 wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
2483 identical bitmap for different client values!
2489 * wx.ART_HELP_BROWSER
2490 * wx.ART_MESSAGE_BOX
2491 * wx.ART_OTHER (used for all requests that don't fit into any
2492 of the categories above)
2495 newobj
= _misc_
.new_ArtProvider(*args
, **kwargs
)
2496 self
.this
= newobj
.this
2499 self
._setCallbackInfo
(self
, ArtProvider
)
2501 def _setCallbackInfo(*args
, **kwargs
):
2502 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2503 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2505 def PushProvider(*args
, **kwargs
):
2507 PushProvider(ArtProvider provider)
2509 Add new provider to the top of providers stack.
2511 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2513 PushProvider
= staticmethod(PushProvider
)
2514 def PopProvider(*args
, **kwargs
):
2516 PopProvider() -> bool
2518 Remove latest added provider and delete it.
2520 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2522 PopProvider
= staticmethod(PopProvider
)
2523 def RemoveProvider(*args
, **kwargs
):
2525 RemoveProvider(ArtProvider provider) -> bool
2527 Remove provider. The provider must have been added previously! The
2528 provider is _not_ deleted.
2530 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2532 RemoveProvider
= staticmethod(RemoveProvider
)
2533 def GetBitmap(*args
, **kwargs
):
2535 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2537 Query the providers for bitmap with given ID and return it. Return
2538 wx.NullBitmap if no provider provides it.
2540 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2542 GetBitmap
= staticmethod(GetBitmap
)
2543 def GetIcon(*args
, **kwargs
):
2545 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2547 Query the providers for icon with given ID and return it. Return
2548 wx.NullIcon if no provider provides it.
2550 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2552 GetIcon
= staticmethod(GetIcon
)
2553 def Destroy(*args
, **kwargs
):
2555 return _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2558 class ArtProviderPtr(ArtProvider
):
2559 def __init__(self
, this
):
2561 if not hasattr(self
,"thisown"): self
.thisown
= 0
2562 self
.__class
__ = ArtProvider
2563 _misc_
.ArtProvider_swigregister(ArtProviderPtr
)
2564 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2565 ART_MENU
= cvar
.ART_MENU
2566 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2567 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2568 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2569 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2570 ART_OTHER
= cvar
.ART_OTHER
2571 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2572 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2573 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2574 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2575 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2576 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2577 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2578 ART_GO_BACK
= cvar
.ART_GO_BACK
2579 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2580 ART_GO_UP
= cvar
.ART_GO_UP
2581 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2582 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2583 ART_GO_HOME
= cvar
.ART_GO_HOME
2584 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2585 ART_PRINT
= cvar
.ART_PRINT
2586 ART_HELP
= cvar
.ART_HELP
2587 ART_TIP
= cvar
.ART_TIP
2588 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2589 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2590 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2591 ART_FOLDER
= cvar
.ART_FOLDER
2592 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2593 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2594 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2595 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2596 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2597 ART_ERROR
= cvar
.ART_ERROR
2598 ART_QUESTION
= cvar
.ART_QUESTION
2599 ART_WARNING
= cvar
.ART_WARNING
2600 ART_INFORMATION
= cvar
.ART_INFORMATION
2601 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2603 def ArtProvider_PushProvider(*args
, **kwargs
):
2605 ArtProvider_PushProvider(ArtProvider provider)
2607 Add new provider to the top of providers stack.
2609 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2611 def ArtProvider_PopProvider(*args
, **kwargs
):
2613 ArtProvider_PopProvider() -> bool
2615 Remove latest added provider and delete it.
2617 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2619 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2621 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2623 Remove provider. The provider must have been added previously! The
2624 provider is _not_ deleted.
2626 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2628 def ArtProvider_GetBitmap(*args
, **kwargs
):
2630 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2632 Query the providers for bitmap with given ID and return it. Return
2633 wx.NullBitmap if no provider provides it.
2635 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2637 def ArtProvider_GetIcon(*args
, **kwargs
):
2639 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2641 Query the providers for icon with given ID and return it. Return
2642 wx.NullIcon if no provider provides it.
2644 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2646 #---------------------------------------------------------------------------
2648 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2649 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2650 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2651 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2652 class ConfigBase(object):
2654 wx.ConfigBase class defines the basic interface of all config
2655 classes. It can not be used by itself (it is an abstract base
2656 class) and you will always use one of its derivations: wx.Config
2659 wx.ConfigBase organizes the items in a tree-like structure,
2660 modeled after the Unix/Dos filesystem. There are groups that act
2661 like directories and entries, key/value pairs that act like
2662 files. There is always one current group given by the current
2663 path. As in the file system case, to specify a key in the config
2664 class you must use a path to it. Config classes also support the
2665 notion of the current group, which makes it possible to use
2668 Keys are pairs "key_name = value" where value may be of string,
2669 integer floating point or boolean, you can not store binary data
2670 without first encoding it as a string. For performance reasons
2671 items should be kept small, no more than a couple kilobytes.
2674 def __init__(self
): raise RuntimeError, "No constructor defined"
2676 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2677 def __del__(self
, destroy
=_misc_
.delete_ConfigBase
):
2680 if self
.thisown
: destroy(self
)
2683 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2684 Type_String
= _misc_
.ConfigBase_Type_String
2685 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2686 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2687 Type_Float
= _misc_
.ConfigBase_Type_Float
2688 def Set(*args
, **kwargs
):
2690 Set(ConfigBase config) -> ConfigBase
2692 Sets the global config object (the one returned by Get) and
2693 returns a reference to the previous global config object.
2695 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2697 Set
= staticmethod(Set
)
2698 def Get(*args
, **kwargs
):
2700 Get(bool createOnDemand=True) -> ConfigBase
2702 Returns the current global config object, creating one if neccessary.
2704 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2706 Get
= staticmethod(Get
)
2707 def Create(*args
, **kwargs
):
2709 Create() -> ConfigBase
2711 Create and return a new global config object. This function will
2712 create the "best" implementation of wx.Config available for the
2715 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2717 Create
= staticmethod(Create
)
2718 def DontCreateOnDemand(*args
, **kwargs
):
2720 DontCreateOnDemand()
2722 Should Get() try to create a new log object if there isn't a current one?
2724 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2726 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2727 def SetPath(*args
, **kwargs
):
2729 SetPath(self, String path)
2731 Set current path: if the first character is '/', it's the absolute path,
2732 otherwise it's a relative path. '..' is supported. If the strPath
2733 doesn't exist it is created.
2735 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2737 def GetPath(*args
, **kwargs
):
2739 GetPath(self) -> String
2741 Retrieve the current path (always as absolute path)
2743 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2745 def GetFirstGroup(*args
, **kwargs
):
2747 GetFirstGroup() -> (more, value, index)
2749 Allows enumerating the subgroups in a config object. Returns
2750 a tuple containing a flag indicating there are more items, the
2751 name of the current item, and an index to pass to GetNextGroup to
2752 fetch the next item.
2754 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2756 def GetNextGroup(*args
, **kwargs
):
2758 GetNextGroup(long index) -> (more, value, index)
2760 Allows enumerating the subgroups in a config object. Returns
2761 a tuple containing a flag indicating there are more items, the
2762 name of the current item, and an index to pass to GetNextGroup to
2763 fetch the next item.
2765 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2767 def GetFirstEntry(*args
, **kwargs
):
2769 GetFirstEntry() -> (more, value, index)
2771 Allows enumerating the entries in the current group in a config
2772 object. Returns a tuple containing a flag indicating there are
2773 more items, the name of the current item, and an index to pass to
2774 GetNextGroup to fetch the next item.
2776 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2778 def GetNextEntry(*args
, **kwargs
):
2780 GetNextEntry(long index) -> (more, value, index)
2782 Allows enumerating the entries in the current group in a config
2783 object. Returns a tuple containing a flag indicating there are
2784 more items, the name of the current item, and an index to pass to
2785 GetNextGroup to fetch the next item.
2787 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2789 def GetNumberOfEntries(*args
, **kwargs
):
2791 GetNumberOfEntries(self, bool recursive=False) -> size_t
2793 Get the number of entries in the current group, with or
2794 without its subgroups.
2796 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2798 def GetNumberOfGroups(*args
, **kwargs
):
2800 GetNumberOfGroups(self, bool recursive=False) -> size_t
2802 Get the number of subgroups in the current group, with or
2803 without its subgroups.
2805 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2807 def HasGroup(*args
, **kwargs
):
2809 HasGroup(self, String name) -> bool
2811 Returns True if the group by this name exists
2813 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2815 def HasEntry(*args
, **kwargs
):
2817 HasEntry(self, String name) -> bool
2819 Returns True if the entry by this name exists
2821 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2823 def Exists(*args
, **kwargs
):
2825 Exists(self, String name) -> bool
2827 Returns True if either a group or an entry with a given name exists
2829 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2831 def GetEntryType(*args
, **kwargs
):
2833 GetEntryType(self, String name) -> int
2835 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2837 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2839 def Read(*args
, **kwargs
):
2841 Read(self, String key, String defaultVal=EmptyString) -> String
2843 Returns the value of key if it exists, defaultVal otherwise.
2845 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2847 def ReadInt(*args
, **kwargs
):
2849 ReadInt(self, String key, long defaultVal=0) -> long
2851 Returns the value of key if it exists, defaultVal otherwise.
2853 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2855 def ReadFloat(*args
, **kwargs
):
2857 ReadFloat(self, String key, double defaultVal=0.0) -> double
2859 Returns the value of key if it exists, defaultVal otherwise.
2861 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2863 def ReadBool(*args
, **kwargs
):
2865 ReadBool(self, String key, bool defaultVal=False) -> bool
2867 Returns the value of key if it exists, defaultVal otherwise.
2869 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2871 def Write(*args
, **kwargs
):
2873 Write(self, String key, String value) -> bool
2875 write the value (return True on success)
2877 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2879 def WriteInt(*args
, **kwargs
):
2881 WriteInt(self, String key, long value) -> bool
2883 write the value (return True on success)
2885 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2887 def WriteFloat(*args
, **kwargs
):
2889 WriteFloat(self, String key, double value) -> bool
2891 write the value (return True on success)
2893 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2895 def WriteBool(*args
, **kwargs
):
2897 WriteBool(self, String key, bool value) -> bool
2899 write the value (return True on success)
2901 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2903 def Flush(*args
, **kwargs
):
2905 Flush(self, bool currentOnly=False) -> bool
2907 permanently writes all changes
2909 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2911 def RenameEntry(*args
, **kwargs
):
2913 RenameEntry(self, String oldName, String newName) -> bool
2915 Rename an entry. Returns False on failure (probably because the new
2916 name is already taken by an existing entry)
2918 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2920 def RenameGroup(*args
, **kwargs
):
2922 RenameGroup(self, String oldName, String newName) -> bool
2924 Rename aa group. Returns False on failure (probably because the new
2925 name is already taken by an existing entry)
2927 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2929 def DeleteEntry(*args
, **kwargs
):
2931 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2933 Deletes the specified entry and the group it belongs to if
2934 it was the last key in it and the second parameter is True
2936 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2938 def DeleteGroup(*args
, **kwargs
):
2940 DeleteGroup(self, String key) -> bool
2942 Delete the group (with all subgroups)
2944 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2946 def DeleteAll(*args
, **kwargs
):
2948 DeleteAll(self) -> bool
2950 Delete the whole underlying object (disk file, registry key, ...)
2951 primarly intended for use by deinstallation routine.
2953 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2955 def SetExpandEnvVars(*args
, **kwargs
):
2957 SetExpandEnvVars(self, bool doIt=True)
2959 We can automatically expand environment variables in the config entries
2960 (this option is on by default, you can turn it on/off at any time)
2962 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2964 def IsExpandingEnvVars(*args
, **kwargs
):
2966 IsExpandingEnvVars(self) -> bool
2968 Are we currently expanding environment variables?
2970 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2972 def SetRecordDefaults(*args
, **kwargs
):
2974 SetRecordDefaults(self, bool doIt=True)
2976 Set whether the config objec should record default values.
2978 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2980 def IsRecordingDefaults(*args
, **kwargs
):
2982 IsRecordingDefaults(self) -> bool
2984 Are we currently recording default values?
2986 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2988 def ExpandEnvVars(*args
, **kwargs
):
2990 ExpandEnvVars(self, String str) -> String
2992 Expand any environment variables in str and return the result
2994 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2996 def GetAppName(*args
, **kwargs
):
2997 """GetAppName(self) -> String"""
2998 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3000 def GetVendorName(*args
, **kwargs
):
3001 """GetVendorName(self) -> String"""
3002 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3004 def SetAppName(*args
, **kwargs
):
3005 """SetAppName(self, String appName)"""
3006 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3008 def SetVendorName(*args
, **kwargs
):
3009 """SetVendorName(self, String vendorName)"""
3010 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3012 def SetStyle(*args
, **kwargs
):
3013 """SetStyle(self, long style)"""
3014 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3016 def GetStyle(*args
, **kwargs
):
3017 """GetStyle(self) -> long"""
3018 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3021 class ConfigBasePtr(ConfigBase
):
3022 def __init__(self
, this
):
3024 if not hasattr(self
,"thisown"): self
.thisown
= 0
3025 self
.__class
__ = ConfigBase
3026 _misc_
.ConfigBase_swigregister(ConfigBasePtr
)
3028 def ConfigBase_Set(*args
, **kwargs
):
3030 ConfigBase_Set(ConfigBase config) -> ConfigBase
3032 Sets the global config object (the one returned by Get) and
3033 returns a reference to the previous global config object.
3035 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3037 def ConfigBase_Get(*args
, **kwargs
):
3039 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3041 Returns the current global config object, creating one if neccessary.
3043 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3045 def ConfigBase_Create(*args
, **kwargs
):
3047 ConfigBase_Create() -> ConfigBase
3049 Create and return a new global config object. This function will
3050 create the "best" implementation of wx.Config available for the
3053 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
3055 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
3057 ConfigBase_DontCreateOnDemand()
3059 Should Get() try to create a new log object if there isn't a current one?
3061 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
3063 class Config(ConfigBase
):
3065 This ConfigBase-derived class will use the registry on Windows,
3066 and will be a wx.FileConfig on other platforms.
3069 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3070 def __init__(self
, *args
, **kwargs
):
3072 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3073 String localFilename=EmptyString, String globalFilename=EmptyString,
3074 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3076 newobj
= _misc_
.new_Config(*args
, **kwargs
)
3077 self
.this
= newobj
.this
3080 def __del__(self
, destroy
=_misc_
.delete_Config
):
3083 if self
.thisown
: destroy(self
)
3087 class ConfigPtr(Config
):
3088 def __init__(self
, this
):
3090 if not hasattr(self
,"thisown"): self
.thisown
= 0
3091 self
.__class
__ = Config
3092 _misc_
.Config_swigregister(ConfigPtr
)
3094 class FileConfig(ConfigBase
):
3095 """This config class will use a file for storage on all platforms."""
3097 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3098 def __init__(self
, *args
, **kwargs
):
3100 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3101 String localFilename=EmptyString, String globalFilename=EmptyString,
3102 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3104 newobj
= _misc_
.new_FileConfig(*args
, **kwargs
)
3105 self
.this
= newobj
.this
3108 def __del__(self
, destroy
=_misc_
.delete_FileConfig
):
3111 if self
.thisown
: destroy(self
)
3115 class FileConfigPtr(FileConfig
):
3116 def __init__(self
, this
):
3118 if not hasattr(self
,"thisown"): self
.thisown
= 0
3119 self
.__class
__ = FileConfig
3120 _misc_
.FileConfig_swigregister(FileConfigPtr
)
3122 class ConfigPathChanger(object):
3124 A handy little class which changes current path to the path of
3125 given entry and restores it in the destructoir: so if you declare
3126 a local variable of this type, you work in the entry directory
3127 and the path is automatically restored when the function returns.
3130 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3131 def __init__(self
, *args
, **kwargs
):
3132 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3133 newobj
= _misc_
.new_ConfigPathChanger(*args
, **kwargs
)
3134 self
.this
= newobj
.this
3137 def __del__(self
, destroy
=_misc_
.delete_ConfigPathChanger
):
3140 if self
.thisown
: destroy(self
)
3143 def Name(*args
, **kwargs
):
3145 Name(self) -> String
3149 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3152 class ConfigPathChangerPtr(ConfigPathChanger
):
3153 def __init__(self
, this
):
3155 if not hasattr(self
,"thisown"): self
.thisown
= 0
3156 self
.__class
__ = ConfigPathChanger
3157 _misc_
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
3160 def ExpandEnvVars(*args
, **kwargs
):
3162 ExpandEnvVars(String sz) -> String
3164 Replace environment variables ($SOMETHING) with their values. The
3165 format is $VARNAME or ${VARNAME} where VARNAME contains
3166 alphanumeric characters and '_' only. '$' must be escaped ('\$')
3167 in order to be taken literally.
3169 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3170 #---------------------------------------------------------------------------
3172 class DateTime(object):
3174 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3175 Local
= _misc_
.DateTime_Local
3176 GMT_12
= _misc_
.DateTime_GMT_12
3177 GMT_11
= _misc_
.DateTime_GMT_11
3178 GMT_10
= _misc_
.DateTime_GMT_10
3179 GMT_9
= _misc_
.DateTime_GMT_9
3180 GMT_8
= _misc_
.DateTime_GMT_8
3181 GMT_7
= _misc_
.DateTime_GMT_7
3182 GMT_6
= _misc_
.DateTime_GMT_6
3183 GMT_5
= _misc_
.DateTime_GMT_5
3184 GMT_4
= _misc_
.DateTime_GMT_4
3185 GMT_3
= _misc_
.DateTime_GMT_3
3186 GMT_2
= _misc_
.DateTime_GMT_2
3187 GMT_1
= _misc_
.DateTime_GMT_1
3188 GMT0
= _misc_
.DateTime_GMT0
3189 GMT1
= _misc_
.DateTime_GMT1
3190 GMT2
= _misc_
.DateTime_GMT2
3191 GMT3
= _misc_
.DateTime_GMT3
3192 GMT4
= _misc_
.DateTime_GMT4
3193 GMT5
= _misc_
.DateTime_GMT5
3194 GMT6
= _misc_
.DateTime_GMT6
3195 GMT7
= _misc_
.DateTime_GMT7
3196 GMT8
= _misc_
.DateTime_GMT8
3197 GMT9
= _misc_
.DateTime_GMT9
3198 GMT10
= _misc_
.DateTime_GMT10
3199 GMT11
= _misc_
.DateTime_GMT11
3200 GMT12
= _misc_
.DateTime_GMT12
3201 WET
= _misc_
.DateTime_WET
3202 WEST
= _misc_
.DateTime_WEST
3203 CET
= _misc_
.DateTime_CET
3204 CEST
= _misc_
.DateTime_CEST
3205 EET
= _misc_
.DateTime_EET
3206 EEST
= _misc_
.DateTime_EEST
3207 MSK
= _misc_
.DateTime_MSK
3208 MSD
= _misc_
.DateTime_MSD
3209 AST
= _misc_
.DateTime_AST
3210 ADT
= _misc_
.DateTime_ADT
3211 EST
= _misc_
.DateTime_EST
3212 EDT
= _misc_
.DateTime_EDT
3213 CST
= _misc_
.DateTime_CST
3214 CDT
= _misc_
.DateTime_CDT
3215 MST
= _misc_
.DateTime_MST
3216 MDT
= _misc_
.DateTime_MDT
3217 PST
= _misc_
.DateTime_PST
3218 PDT
= _misc_
.DateTime_PDT
3219 HST
= _misc_
.DateTime_HST
3220 AKST
= _misc_
.DateTime_AKST
3221 AKDT
= _misc_
.DateTime_AKDT
3222 A_WST
= _misc_
.DateTime_A_WST
3223 A_CST
= _misc_
.DateTime_A_CST
3224 A_EST
= _misc_
.DateTime_A_EST
3225 A_ESST
= _misc_
.DateTime_A_ESST
3226 UTC
= _misc_
.DateTime_UTC
3227 Gregorian
= _misc_
.DateTime_Gregorian
3228 Julian
= _misc_
.DateTime_Julian
3229 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3230 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3231 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3232 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3233 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3234 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3235 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3236 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3237 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3238 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3239 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3240 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3241 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3242 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3243 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3244 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3245 Gr_China
= _misc_
.DateTime_Gr_China
3246 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3247 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3248 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3249 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3250 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3251 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3252 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3253 Gr_France
= _misc_
.DateTime_Gr_France
3254 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3255 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3256 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3257 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3258 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3259 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3260 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3261 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3262 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3263 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3264 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3265 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3266 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3267 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3268 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3269 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3270 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3271 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3272 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3273 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3274 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3275 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3276 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3277 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3278 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3279 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3280 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3281 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3282 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3283 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3284 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3285 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3286 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3287 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3288 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3289 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3290 Gr_USA
= _misc_
.DateTime_Gr_USA
3291 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3292 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3293 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3294 Country_Default
= _misc_
.DateTime_Country_Default
3295 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3296 Country_EEC
= _misc_
.DateTime_Country_EEC
3297 France
= _misc_
.DateTime_France
3298 Germany
= _misc_
.DateTime_Germany
3299 UK
= _misc_
.DateTime_UK
3300 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3301 Russia
= _misc_
.DateTime_Russia
3302 USA
= _misc_
.DateTime_USA
3303 Jan
= _misc_
.DateTime_Jan
3304 Feb
= _misc_
.DateTime_Feb
3305 Mar
= _misc_
.DateTime_Mar
3306 Apr
= _misc_
.DateTime_Apr
3307 May
= _misc_
.DateTime_May
3308 Jun
= _misc_
.DateTime_Jun
3309 Jul
= _misc_
.DateTime_Jul
3310 Aug
= _misc_
.DateTime_Aug
3311 Sep
= _misc_
.DateTime_Sep
3312 Oct
= _misc_
.DateTime_Oct
3313 Nov
= _misc_
.DateTime_Nov
3314 Dec
= _misc_
.DateTime_Dec
3315 Inv_Month
= _misc_
.DateTime_Inv_Month
3316 Sun
= _misc_
.DateTime_Sun
3317 Mon
= _misc_
.DateTime_Mon
3318 Tue
= _misc_
.DateTime_Tue
3319 Wed
= _misc_
.DateTime_Wed
3320 Thu
= _misc_
.DateTime_Thu
3321 Fri
= _misc_
.DateTime_Fri
3322 Sat
= _misc_
.DateTime_Sat
3323 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3324 Inv_Year
= _misc_
.DateTime_Inv_Year
3325 Name_Full
= _misc_
.DateTime_Name_Full
3326 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3327 Default_First
= _misc_
.DateTime_Default_First
3328 Monday_First
= _misc_
.DateTime_Monday_First
3329 Sunday_First
= _misc_
.DateTime_Sunday_First
3330 def SetCountry(*args
, **kwargs
):
3331 """SetCountry(int country)"""
3332 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3334 SetCountry
= staticmethod(SetCountry
)
3335 def GetCountry(*args
, **kwargs
):
3336 """GetCountry() -> int"""
3337 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3339 GetCountry
= staticmethod(GetCountry
)
3340 def IsWestEuropeanCountry(*args
, **kwargs
):
3341 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3342 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3344 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3345 def GetCurrentYear(*args
, **kwargs
):
3346 """GetCurrentYear(int cal=Gregorian) -> int"""
3347 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3349 GetCurrentYear
= staticmethod(GetCurrentYear
)
3350 def ConvertYearToBC(*args
, **kwargs
):
3351 """ConvertYearToBC(int year) -> int"""
3352 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3354 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3355 def GetCurrentMonth(*args
, **kwargs
):
3356 """GetCurrentMonth(int cal=Gregorian) -> int"""
3357 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3359 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3360 def IsLeapYear(*args
, **kwargs
):
3361 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3362 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3364 IsLeapYear
= staticmethod(IsLeapYear
)
3365 def GetCentury(*args
, **kwargs
):
3366 """GetCentury(int year=Inv_Year) -> int"""
3367 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3369 GetCentury
= staticmethod(GetCentury
)
3370 def GetNumberOfDaysinYear(*args
, **kwargs
):
3371 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3372 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3374 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3375 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3376 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3377 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3379 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3380 def GetMonthName(*args
, **kwargs
):
3381 """GetMonthName(int month, int flags=Name_Full) -> String"""
3382 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3384 GetMonthName
= staticmethod(GetMonthName
)
3385 def GetWeekDayName(*args
, **kwargs
):
3386 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3387 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3389 GetWeekDayName
= staticmethod(GetWeekDayName
)
3390 def GetAmPmStrings(*args
, **kwargs
):
3392 GetAmPmStrings() -> (am, pm)
3394 Get the AM and PM strings in the current locale (may be empty)
3396 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3398 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3399 def IsDSTApplicable(*args
, **kwargs
):
3400 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3401 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3403 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3404 def GetBeginDST(*args
, **kwargs
):
3405 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3406 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3408 GetBeginDST
= staticmethod(GetBeginDST
)
3409 def GetEndDST(*args
, **kwargs
):
3410 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3411 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3413 GetEndDST
= staticmethod(GetEndDST
)
3414 def Now(*args
, **kwargs
):
3415 """Now() -> DateTime"""
3416 return _misc_
.DateTime_Now(*args
, **kwargs
)
3418 Now
= staticmethod(Now
)
3419 def UNow(*args
, **kwargs
):
3420 """UNow() -> DateTime"""
3421 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3423 UNow
= staticmethod(UNow
)
3424 def Today(*args
, **kwargs
):
3425 """Today() -> DateTime"""
3426 return _misc_
.DateTime_Today(*args
, **kwargs
)
3428 Today
= staticmethod(Today
)
3429 def __init__(self
, *args
, **kwargs
):
3430 """__init__(self) -> DateTime"""
3431 newobj
= _misc_
.new_DateTime(*args
, **kwargs
)
3432 self
.this
= newobj
.this
3435 def __del__(self
, destroy
=_misc_
.delete_DateTime
):
3438 if self
.thisown
: destroy(self
)
3441 def SetToCurrent(*args
, **kwargs
):
3442 """SetToCurrent(self) -> DateTime"""
3443 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3445 def SetTimeT(*args
, **kwargs
):
3446 """SetTimeT(self, time_t timet) -> DateTime"""
3447 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3449 def SetJDN(*args
, **kwargs
):
3450 """SetJDN(self, double jdn) -> DateTime"""
3451 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3453 def SetHMS(*args
, **kwargs
):
3454 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3455 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3457 def Set(*args
, **kwargs
):
3459 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3460 int minute=0, int second=0, int millisec=0) -> DateTime
3462 return _misc_
.DateTime_Set(*args
, **kwargs
)
3464 def ResetTime(*args
, **kwargs
):
3465 """ResetTime(self) -> DateTime"""
3466 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3468 def SetYear(*args
, **kwargs
):
3469 """SetYear(self, int year) -> DateTime"""
3470 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3472 def SetMonth(*args
, **kwargs
):
3473 """SetMonth(self, int month) -> DateTime"""
3474 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3476 def SetDay(*args
, **kwargs
):
3477 """SetDay(self, int day) -> DateTime"""
3478 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3480 def SetHour(*args
, **kwargs
):
3481 """SetHour(self, int hour) -> DateTime"""
3482 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3484 def SetMinute(*args
, **kwargs
):
3485 """SetMinute(self, int minute) -> DateTime"""
3486 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3488 def SetSecond(*args
, **kwargs
):
3489 """SetSecond(self, int second) -> DateTime"""
3490 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3492 def SetMillisecond(*args
, **kwargs
):
3493 """SetMillisecond(self, int millisecond) -> DateTime"""
3494 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3496 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3497 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3498 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3500 def GetWeekDayInSameWeek(*args
, **kwargs
):
3501 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3502 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3504 def SetToNextWeekDay(*args
, **kwargs
):
3505 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3506 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3508 def GetNextWeekDay(*args
, **kwargs
):
3509 """GetNextWeekDay(self, int weekday) -> DateTime"""
3510 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3512 def SetToPrevWeekDay(*args
, **kwargs
):
3513 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3514 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3516 def GetPrevWeekDay(*args
, **kwargs
):
3517 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3518 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3520 def SetToWeekDay(*args
, **kwargs
):
3521 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3522 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3524 def SetToLastWeekDay(*args
, **kwargs
):
3525 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3526 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3528 def GetLastWeekDay(*args
, **kwargs
):
3529 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3530 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3532 def SetToTheWeek(*args
, **kwargs
):
3533 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3534 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3536 def GetWeek(*args
, **kwargs
):
3537 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3538 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3540 def SetToLastMonthDay(*args
, **kwargs
):
3541 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3542 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3544 def GetLastMonthDay(*args
, **kwargs
):
3545 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3546 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3548 def SetToYearDay(*args
, **kwargs
):
3549 """SetToYearDay(self, int yday) -> DateTime"""
3550 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3552 def GetYearDay(*args
, **kwargs
):
3553 """GetYearDay(self, int yday) -> DateTime"""
3554 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3556 def GetJulianDayNumber(*args
, **kwargs
):
3557 """GetJulianDayNumber(self) -> double"""
3558 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3560 def GetJDN(*args
, **kwargs
):
3561 """GetJDN(self) -> double"""
3562 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3564 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3565 """GetModifiedJulianDayNumber(self) -> double"""
3566 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3568 def GetMJD(*args
, **kwargs
):
3569 """GetMJD(self) -> double"""
3570 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3572 def GetRataDie(*args
, **kwargs
):
3573 """GetRataDie(self) -> double"""
3574 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3576 def ToTimezone(*args
, **kwargs
):
3577 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3578 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3580 def MakeTimezone(*args
, **kwargs
):
3581 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3582 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3584 def ToGMT(*args
, **kwargs
):
3585 """ToGMT(self, bool noDST=False) -> DateTime"""
3586 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3588 def MakeGMT(*args
, **kwargs
):
3589 """MakeGMT(self, bool noDST=False) -> DateTime"""
3590 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3592 def IsDST(*args
, **kwargs
):
3593 """IsDST(self, int country=Country_Default) -> int"""
3594 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3596 def IsValid(*args
, **kwargs
):
3597 """IsValid(self) -> bool"""
3598 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3601 def __nonzero__(self
): return self
.Ok()
3602 def GetTicks(*args
, **kwargs
):
3603 """GetTicks(self) -> time_t"""
3604 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3606 def GetYear(*args
, **kwargs
):
3607 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3608 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3610 def GetMonth(*args
, **kwargs
):
3611 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3612 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3614 def GetDay(*args
, **kwargs
):
3615 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3616 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3618 def GetWeekDay(*args
, **kwargs
):
3619 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3620 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3622 def GetHour(*args
, **kwargs
):
3623 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3624 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3626 def GetMinute(*args
, **kwargs
):
3627 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3628 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3630 def GetSecond(*args
, **kwargs
):
3631 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3632 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3634 def GetMillisecond(*args
, **kwargs
):
3635 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3636 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3638 def GetDayOfYear(*args
, **kwargs
):
3639 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3640 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3642 def GetWeekOfYear(*args
, **kwargs
):
3643 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3644 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3646 def GetWeekOfMonth(*args
, **kwargs
):
3647 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3648 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3650 def IsWorkDay(*args
, **kwargs
):
3651 """IsWorkDay(self, int country=Country_Default) -> bool"""
3652 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3654 def IsEqualTo(*args
, **kwargs
):
3655 """IsEqualTo(self, DateTime datetime) -> bool"""
3656 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3658 def IsEarlierThan(*args
, **kwargs
):
3659 """IsEarlierThan(self, DateTime datetime) -> bool"""
3660 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3662 def IsLaterThan(*args
, **kwargs
):
3663 """IsLaterThan(self, DateTime datetime) -> bool"""
3664 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3666 def IsStrictlyBetween(*args
, **kwargs
):
3667 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3668 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3670 def IsBetween(*args
, **kwargs
):
3671 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3672 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3674 def IsSameDate(*args
, **kwargs
):
3675 """IsSameDate(self, DateTime dt) -> bool"""
3676 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3678 def IsSameTime(*args
, **kwargs
):
3679 """IsSameTime(self, DateTime dt) -> bool"""
3680 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3682 def IsEqualUpTo(*args
, **kwargs
):
3683 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3684 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3686 def AddTS(*args
, **kwargs
):
3687 """AddTS(self, TimeSpan diff) -> DateTime"""
3688 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3690 def AddDS(*args
, **kwargs
):
3691 """AddDS(self, DateSpan diff) -> DateTime"""
3692 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3694 def SubtractTS(*args
, **kwargs
):
3695 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3696 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3698 def SubtractDS(*args
, **kwargs
):
3699 """SubtractDS(self, DateSpan diff) -> DateTime"""
3700 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3702 def Subtract(*args
, **kwargs
):
3703 """Subtract(self, DateTime dt) -> TimeSpan"""
3704 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3706 def __iadd__(*args
):
3708 __iadd__(self, TimeSpan diff) -> DateTime
3709 __iadd__(self, DateSpan diff) -> DateTime
3711 return _misc_
.DateTime___iadd__(*args
)
3713 def __isub__(*args
):
3715 __isub__(self, TimeSpan diff) -> DateTime
3716 __isub__(self, DateSpan diff) -> DateTime
3718 return _misc_
.DateTime___isub__(*args
)
3722 __add__(self, TimeSpan other) -> DateTime
3723 __add__(self, DateSpan other) -> DateTime
3725 return _misc_
.DateTime___add__(*args
)
3729 __sub__(self, DateTime other) -> TimeSpan
3730 __sub__(self, TimeSpan other) -> DateTime
3731 __sub__(self, DateSpan other) -> DateTime
3733 return _misc_
.DateTime___sub__(*args
)
3736 """__lt__(self, DateTime other) -> bool"""
3737 return _misc_
.DateTime___lt__(*args
)
3740 """__le__(self, DateTime other) -> bool"""
3741 return _misc_
.DateTime___le__(*args
)
3744 """__gt__(self, DateTime other) -> bool"""
3745 return _misc_
.DateTime___gt__(*args
)
3748 """__ge__(self, DateTime other) -> bool"""
3749 return _misc_
.DateTime___ge__(*args
)
3752 """__eq__(self, DateTime other) -> bool"""
3753 return _misc_
.DateTime___eq__(*args
)
3756 """__ne__(self, DateTime other) -> bool"""
3757 return _misc_
.DateTime___ne__(*args
)
3759 def ParseRfc822Date(*args
, **kwargs
):
3760 """ParseRfc822Date(self, String date) -> int"""
3761 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3763 def ParseFormat(*args
, **kwargs
):
3764 """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int"""
3765 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3767 def ParseDateTime(*args
, **kwargs
):
3768 """ParseDateTime(self, String datetime) -> int"""
3769 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3771 def ParseDate(*args
, **kwargs
):
3772 """ParseDate(self, String date) -> int"""
3773 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3775 def ParseTime(*args
, **kwargs
):
3776 """ParseTime(self, String time) -> int"""
3777 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3779 def Format(*args
, **kwargs
):
3780 """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3781 return _misc_
.DateTime_Format(*args
, **kwargs
)
3783 def FormatDate(*args
, **kwargs
):
3784 """FormatDate(self) -> String"""
3785 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3787 def FormatTime(*args
, **kwargs
):
3788 """FormatTime(self) -> String"""
3789 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3791 def FormatISODate(*args
, **kwargs
):
3792 """FormatISODate(self) -> String"""
3793 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3795 def FormatISOTime(*args
, **kwargs
):
3796 """FormatISOTime(self) -> String"""
3797 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3801 return '<wx.DateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3803 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3806 return self
.Format()
3808 return "INVALID DateTime"
3811 class DateTimePtr(DateTime
):
3812 def __init__(self
, this
):
3814 if not hasattr(self
,"thisown"): self
.thisown
= 0
3815 self
.__class
__ = DateTime
3816 _misc_
.DateTime_swigregister(DateTimePtr
)
3817 DateFormatStr
= cvar
.DateFormatStr
3818 TimeSpanFormatStr
= cvar
.TimeSpanFormatStr
3820 def DateTime_SetCountry(*args
, **kwargs
):
3821 """DateTime_SetCountry(int country)"""
3822 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3824 def DateTime_GetCountry(*args
, **kwargs
):
3825 """DateTime_GetCountry() -> int"""
3826 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3828 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3829 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3830 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3832 def DateTime_GetCurrentYear(*args
, **kwargs
):
3833 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3834 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3836 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3837 """DateTime_ConvertYearToBC(int year) -> int"""
3838 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3840 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3841 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3842 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3844 def DateTime_IsLeapYear(*args
, **kwargs
):
3845 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3846 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3848 def DateTime_GetCentury(*args
, **kwargs
):
3849 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3850 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3852 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3853 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3854 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3856 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3857 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3858 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3860 def DateTime_GetMonthName(*args
, **kwargs
):
3861 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3862 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3864 def DateTime_GetWeekDayName(*args
, **kwargs
):
3865 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3866 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3868 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3870 GetAmPmStrings() -> (am, pm)
3872 Get the AM and PM strings in the current locale (may be empty)
3874 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3876 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3877 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3878 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3880 def DateTime_GetBeginDST(*args
, **kwargs
):
3881 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3882 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3884 def DateTime_GetEndDST(*args
, **kwargs
):
3885 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3886 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3888 def DateTime_Now(*args
, **kwargs
):
3889 """DateTime_Now() -> DateTime"""
3890 return _misc_
.DateTime_Now(*args
, **kwargs
)
3892 def DateTime_UNow(*args
, **kwargs
):
3893 """DateTime_UNow() -> DateTime"""
3894 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3896 def DateTime_Today(*args
, **kwargs
):
3897 """DateTime_Today() -> DateTime"""
3898 return _misc_
.DateTime_Today(*args
, **kwargs
)
3900 def DateTimeFromTimeT(*args
, **kwargs
):
3901 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3902 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3906 def DateTimeFromJDN(*args
, **kwargs
):
3907 """DateTimeFromJDN(double jdn) -> DateTime"""
3908 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3912 def DateTimeFromHMS(*args
, **kwargs
):
3913 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3914 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3918 def DateTimeFromDMY(*args
, **kwargs
):
3920 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3921 int minute=0, int second=0, int millisec=0) -> DateTime
3923 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3927 class TimeSpan(object):
3929 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3930 def Seconds(*args
, **kwargs
):
3931 """Seconds(long sec) -> TimeSpan"""
3932 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3934 Seconds
= staticmethod(Seconds
)
3935 def Second(*args
, **kwargs
):
3936 """Second() -> TimeSpan"""
3937 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3939 Second
= staticmethod(Second
)
3940 def Minutes(*args
, **kwargs
):
3941 """Minutes(long min) -> TimeSpan"""
3942 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3944 Minutes
= staticmethod(Minutes
)
3945 def Minute(*args
, **kwargs
):
3946 """Minute() -> TimeSpan"""
3947 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3949 Minute
= staticmethod(Minute
)
3950 def Hours(*args
, **kwargs
):
3951 """Hours(long hours) -> TimeSpan"""
3952 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3954 Hours
= staticmethod(Hours
)
3955 def Hour(*args
, **kwargs
):
3956 """Hour() -> TimeSpan"""
3957 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3959 Hour
= staticmethod(Hour
)
3960 def Days(*args
, **kwargs
):
3961 """Days(long days) -> TimeSpan"""
3962 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3964 Days
= staticmethod(Days
)
3965 def Day(*args
, **kwargs
):
3966 """Day() -> TimeSpan"""
3967 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3969 Day
= staticmethod(Day
)
3970 def Weeks(*args
, **kwargs
):
3971 """Weeks(long days) -> TimeSpan"""
3972 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3974 Weeks
= staticmethod(Weeks
)
3975 def Week(*args
, **kwargs
):
3976 """Week() -> TimeSpan"""
3977 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3979 Week
= staticmethod(Week
)
3980 def __init__(self
, *args
, **kwargs
):
3981 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3982 newobj
= _misc_
.new_TimeSpan(*args
, **kwargs
)
3983 self
.this
= newobj
.this
3986 def __del__(self
, destroy
=_misc_
.delete_TimeSpan
):
3989 if self
.thisown
: destroy(self
)
3992 def Add(*args
, **kwargs
):
3993 """Add(self, TimeSpan diff) -> TimeSpan"""
3994 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3996 def Subtract(*args
, **kwargs
):
3997 """Subtract(self, TimeSpan diff) -> TimeSpan"""
3998 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4000 def Multiply(*args
, **kwargs
):
4001 """Multiply(self, int n) -> TimeSpan"""
4002 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4004 def Neg(*args
, **kwargs
):
4005 """Neg(self) -> TimeSpan"""
4006 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4008 def Abs(*args
, **kwargs
):
4009 """Abs(self) -> TimeSpan"""
4010 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4012 def __iadd__(*args
, **kwargs
):
4013 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4014 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4016 def __isub__(*args
, **kwargs
):
4017 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4018 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4020 def __imul__(*args
, **kwargs
):
4021 """__imul__(self, int n) -> TimeSpan"""
4022 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4024 def __neg__(*args
, **kwargs
):
4025 """__neg__(self) -> TimeSpan"""
4026 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4028 def __add__(*args
, **kwargs
):
4029 """__add__(self, TimeSpan other) -> TimeSpan"""
4030 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4032 def __sub__(*args
, **kwargs
):
4033 """__sub__(self, TimeSpan other) -> TimeSpan"""
4034 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4036 def __mul__(*args
, **kwargs
):
4037 """__mul__(self, int n) -> TimeSpan"""
4038 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4040 def __rmul__(*args
, **kwargs
):
4041 """__rmul__(self, int n) -> TimeSpan"""
4042 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4044 def __lt__(*args
, **kwargs
):
4045 """__lt__(self, TimeSpan other) -> bool"""
4046 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4048 def __le__(*args
, **kwargs
):
4049 """__le__(self, TimeSpan other) -> bool"""
4050 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4052 def __gt__(*args
, **kwargs
):
4053 """__gt__(self, TimeSpan other) -> bool"""
4054 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4056 def __ge__(*args
, **kwargs
):
4057 """__ge__(self, TimeSpan other) -> bool"""
4058 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4060 def __eq__(*args
, **kwargs
):
4061 """__eq__(self, TimeSpan other) -> bool"""
4062 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4064 def __ne__(*args
, **kwargs
):
4065 """__ne__(self, TimeSpan other) -> bool"""
4066 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4068 def IsNull(*args
, **kwargs
):
4069 """IsNull(self) -> bool"""
4070 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4072 def IsPositive(*args
, **kwargs
):
4073 """IsPositive(self) -> bool"""
4074 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4076 def IsNegative(*args
, **kwargs
):
4077 """IsNegative(self) -> bool"""
4078 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4080 def IsEqualTo(*args
, **kwargs
):
4081 """IsEqualTo(self, TimeSpan ts) -> bool"""
4082 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4084 def IsLongerThan(*args
, **kwargs
):
4085 """IsLongerThan(self, TimeSpan ts) -> bool"""
4086 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4088 def IsShorterThan(*args
, **kwargs
):
4089 """IsShorterThan(self, TimeSpan t) -> bool"""
4090 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4092 def GetWeeks(*args
, **kwargs
):
4093 """GetWeeks(self) -> int"""
4094 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4096 def GetDays(*args
, **kwargs
):
4097 """GetDays(self) -> int"""
4098 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4100 def GetHours(*args
, **kwargs
):
4101 """GetHours(self) -> int"""
4102 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4104 def GetMinutes(*args
, **kwargs
):
4105 """GetMinutes(self) -> int"""
4106 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4108 def GetSeconds(*args
, **kwargs
):
4109 """GetSeconds(self) -> wxLongLong"""
4110 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4112 def GetMilliseconds(*args
, **kwargs
):
4113 """GetMilliseconds(self) -> wxLongLong"""
4114 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4116 def Format(*args
, **kwargs
):
4117 """Format(self, String format=TimeSpanFormatStr) -> String"""
4118 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4121 return '<wx.TimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
4123 return self
.Format()
4126 class TimeSpanPtr(TimeSpan
):
4127 def __init__(self
, this
):
4129 if not hasattr(self
,"thisown"): self
.thisown
= 0
4130 self
.__class
__ = TimeSpan
4131 _misc_
.TimeSpan_swigregister(TimeSpanPtr
)
4133 def TimeSpan_Seconds(*args
, **kwargs
):
4134 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4135 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4137 def TimeSpan_Second(*args
, **kwargs
):
4138 """TimeSpan_Second() -> TimeSpan"""
4139 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4141 def TimeSpan_Minutes(*args
, **kwargs
):
4142 """TimeSpan_Minutes(long min) -> TimeSpan"""
4143 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4145 def TimeSpan_Minute(*args
, **kwargs
):
4146 """TimeSpan_Minute() -> TimeSpan"""
4147 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4149 def TimeSpan_Hours(*args
, **kwargs
):
4150 """TimeSpan_Hours(long hours) -> TimeSpan"""
4151 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4153 def TimeSpan_Hour(*args
, **kwargs
):
4154 """TimeSpan_Hour() -> TimeSpan"""
4155 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4157 def TimeSpan_Days(*args
, **kwargs
):
4158 """TimeSpan_Days(long days) -> TimeSpan"""
4159 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4161 def TimeSpan_Day(*args
, **kwargs
):
4162 """TimeSpan_Day() -> TimeSpan"""
4163 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4165 def TimeSpan_Weeks(*args
, **kwargs
):
4166 """TimeSpan_Weeks(long days) -> TimeSpan"""
4167 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4169 def TimeSpan_Week(*args
, **kwargs
):
4170 """TimeSpan_Week() -> TimeSpan"""
4171 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4173 class DateSpan(object):
4175 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4176 def __init__(self
, *args
, **kwargs
):
4177 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4178 newobj
= _misc_
.new_DateSpan(*args
, **kwargs
)
4179 self
.this
= newobj
.this
4182 def __del__(self
, destroy
=_misc_
.delete_DateSpan
):
4185 if self
.thisown
: destroy(self
)
4188 def Days(*args
, **kwargs
):
4189 """Days(int days) -> DateSpan"""
4190 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4192 Days
= staticmethod(Days
)
4193 def Day(*args
, **kwargs
):
4194 """Day() -> DateSpan"""
4195 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4197 Day
= staticmethod(Day
)
4198 def Weeks(*args
, **kwargs
):
4199 """Weeks(int weeks) -> DateSpan"""
4200 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4202 Weeks
= staticmethod(Weeks
)
4203 def Week(*args
, **kwargs
):
4204 """Week() -> DateSpan"""
4205 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4207 Week
= staticmethod(Week
)
4208 def Months(*args
, **kwargs
):
4209 """Months(int mon) -> DateSpan"""
4210 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4212 Months
= staticmethod(Months
)
4213 def Month(*args
, **kwargs
):
4214 """Month() -> DateSpan"""
4215 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4217 Month
= staticmethod(Month
)
4218 def Years(*args
, **kwargs
):
4219 """Years(int years) -> DateSpan"""
4220 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4222 Years
= staticmethod(Years
)
4223 def Year(*args
, **kwargs
):
4224 """Year() -> DateSpan"""
4225 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4227 Year
= staticmethod(Year
)
4228 def SetYears(*args
, **kwargs
):
4229 """SetYears(self, int n) -> DateSpan"""
4230 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4232 def SetMonths(*args
, **kwargs
):
4233 """SetMonths(self, int n) -> DateSpan"""
4234 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4236 def SetWeeks(*args
, **kwargs
):
4237 """SetWeeks(self, int n) -> DateSpan"""
4238 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4240 def SetDays(*args
, **kwargs
):
4241 """SetDays(self, int n) -> DateSpan"""
4242 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4244 def GetYears(*args
, **kwargs
):
4245 """GetYears(self) -> int"""
4246 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4248 def GetMonths(*args
, **kwargs
):
4249 """GetMonths(self) -> int"""
4250 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4252 def GetWeeks(*args
, **kwargs
):
4253 """GetWeeks(self) -> int"""
4254 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4256 def GetDays(*args
, **kwargs
):
4257 """GetDays(self) -> int"""
4258 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4260 def GetTotalDays(*args
, **kwargs
):
4261 """GetTotalDays(self) -> int"""
4262 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4264 def Add(*args
, **kwargs
):
4265 """Add(self, DateSpan other) -> DateSpan"""
4266 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4268 def Subtract(*args
, **kwargs
):
4269 """Subtract(self, DateSpan other) -> DateSpan"""
4270 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4272 def Neg(*args
, **kwargs
):
4273 """Neg(self) -> DateSpan"""
4274 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4276 def Multiply(*args
, **kwargs
):
4277 """Multiply(self, int factor) -> DateSpan"""
4278 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4280 def __iadd__(*args
, **kwargs
):
4281 """__iadd__(self, DateSpan other) -> DateSpan"""
4282 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4284 def __isub__(*args
, **kwargs
):
4285 """__isub__(self, DateSpan other) -> DateSpan"""
4286 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4288 def __neg__(*args
, **kwargs
):
4289 """__neg__(self) -> DateSpan"""
4290 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4292 def __imul__(*args
, **kwargs
):
4293 """__imul__(self, int factor) -> DateSpan"""
4294 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4296 def __add__(*args
, **kwargs
):
4297 """__add__(self, DateSpan other) -> DateSpan"""
4298 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4300 def __sub__(*args
, **kwargs
):
4301 """__sub__(self, DateSpan other) -> DateSpan"""
4302 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4304 def __mul__(*args
, **kwargs
):
4305 """__mul__(self, int n) -> DateSpan"""
4306 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4308 def __rmul__(*args
, **kwargs
):
4309 """__rmul__(self, int n) -> DateSpan"""
4310 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4312 def __eq__(*args
, **kwargs
):
4313 """__eq__(self, DateSpan other) -> bool"""
4314 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4316 def __ne__(*args
, **kwargs
):
4317 """__ne__(self, DateSpan other) -> bool"""
4318 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4321 class DateSpanPtr(DateSpan
):
4322 def __init__(self
, this
):
4324 if not hasattr(self
,"thisown"): self
.thisown
= 0
4325 self
.__class
__ = DateSpan
4326 _misc_
.DateSpan_swigregister(DateSpanPtr
)
4328 def DateSpan_Days(*args
, **kwargs
):
4329 """DateSpan_Days(int days) -> DateSpan"""
4330 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4332 def DateSpan_Day(*args
, **kwargs
):
4333 """DateSpan_Day() -> DateSpan"""
4334 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4336 def DateSpan_Weeks(*args
, **kwargs
):
4337 """DateSpan_Weeks(int weeks) -> DateSpan"""
4338 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4340 def DateSpan_Week(*args
, **kwargs
):
4341 """DateSpan_Week() -> DateSpan"""
4342 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4344 def DateSpan_Months(*args
, **kwargs
):
4345 """DateSpan_Months(int mon) -> DateSpan"""
4346 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4348 def DateSpan_Month(*args
, **kwargs
):
4349 """DateSpan_Month() -> DateSpan"""
4350 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4352 def DateSpan_Years(*args
, **kwargs
):
4353 """DateSpan_Years(int years) -> DateSpan"""
4354 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4356 def DateSpan_Year(*args
, **kwargs
):
4357 """DateSpan_Year() -> DateSpan"""
4358 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4361 def GetLocalTime(*args
, **kwargs
):
4362 """GetLocalTime() -> long"""
4363 return _misc_
.GetLocalTime(*args
, **kwargs
)
4365 def GetUTCTime(*args
, **kwargs
):
4366 """GetUTCTime() -> long"""
4367 return _misc_
.GetUTCTime(*args
, **kwargs
)
4369 def GetCurrentTime(*args
, **kwargs
):
4370 """GetCurrentTime() -> long"""
4371 return _misc_
.GetCurrentTime(*args
, **kwargs
)
4373 def GetLocalTimeMillis(*args
, **kwargs
):
4374 """GetLocalTimeMillis() -> wxLongLong"""
4375 return _misc_
.GetLocalTimeMillis(*args
, **kwargs
)
4376 #---------------------------------------------------------------------------
4378 DF_INVALID
= _misc_
.DF_INVALID
4379 DF_TEXT
= _misc_
.DF_TEXT
4380 DF_BITMAP
= _misc_
.DF_BITMAP
4381 DF_METAFILE
= _misc_
.DF_METAFILE
4382 DF_SYLK
= _misc_
.DF_SYLK
4383 DF_DIF
= _misc_
.DF_DIF
4384 DF_TIFF
= _misc_
.DF_TIFF
4385 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4386 DF_DIB
= _misc_
.DF_DIB
4387 DF_PALETTE
= _misc_
.DF_PALETTE
4388 DF_PENDATA
= _misc_
.DF_PENDATA
4389 DF_RIFF
= _misc_
.DF_RIFF
4390 DF_WAVE
= _misc_
.DF_WAVE
4391 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4392 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4393 DF_FILENAME
= _misc_
.DF_FILENAME
4394 DF_LOCALE
= _misc_
.DF_LOCALE
4395 DF_PRIVATE
= _misc_
.DF_PRIVATE
4396 DF_HTML
= _misc_
.DF_HTML
4397 DF_MAX
= _misc_
.DF_MAX
4398 class DataFormat(object):
4400 A wx.DataFormat is an encapsulation of a platform-specific format
4401 handle which is used by the system for the clipboard and drag and
4402 drop operations. The applications are usually only interested in,
4403 for example, pasting data from the clipboard only if the data is
4404 in a format the program understands. A data format is is used to
4405 uniquely identify this format.
4407 On the system level, a data format is usually just a number
4408 (CLIPFORMAT under Windows or Atom under X11, for example).
4411 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4412 def __init__(self
, *args
, **kwargs
):
4414 __init__(self, int type) -> DataFormat
4416 Constructs a data format object for one of the standard data
4417 formats or an empty data object (use SetType or SetId later in
4420 newobj
= _misc_
.new_DataFormat(*args
, **kwargs
)
4421 self
.this
= newobj
.this
4424 def __del__(self
, destroy
=_misc_
.delete_DataFormat
):
4427 if self
.thisown
: destroy(self
)
4432 __eq__(self, int format) -> bool
4433 __eq__(self, DataFormat format) -> bool
4435 return _misc_
.DataFormat___eq__(*args
)
4439 __ne__(self, int format) -> bool
4440 __ne__(self, DataFormat format) -> bool
4442 return _misc_
.DataFormat___ne__(*args
)
4444 def SetType(*args
, **kwargs
):
4446 SetType(self, int format)
4448 Sets the format to the given value, which should be one of wx.DF_XXX constants.
4450 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4452 def GetType(*args
, **kwargs
):
4454 GetType(self) -> int
4456 Returns the platform-specific number identifying the format.
4458 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4460 def GetId(*args
, **kwargs
):
4462 GetId(self) -> String
4464 Returns the name of a custom format (this function will fail for a standard format).
4466 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4468 def SetId(*args
, **kwargs
):
4470 SetId(self, String format)
4472 Sets the format to be the custom format identified by the given name.
4474 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4477 class DataFormatPtr(DataFormat
):
4478 def __init__(self
, this
):
4480 if not hasattr(self
,"thisown"): self
.thisown
= 0
4481 self
.__class
__ = DataFormat
4482 _misc_
.DataFormat_swigregister(DataFormatPtr
)
4483 DefaultDateTime
= cvar
.DefaultDateTime
4485 def CustomDataFormat(*args
, **kwargs
):
4487 CustomDataFormat(String format) -> DataFormat
4489 Constructs a data format object for a custom format identified by its name.
4491 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4495 class DataObject(object):
4496 def __init__(self
): raise RuntimeError, "No constructor defined"
4498 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4499 Get
= _misc_
.DataObject_Get
4500 Set
= _misc_
.DataObject_Set
4501 Both
= _misc_
.DataObject_Both
4502 def __del__(self
, destroy
=_misc_
.delete_DataObject
):
4505 if self
.thisown
: destroy(self
)
4508 def GetPreferredFormat(*args
, **kwargs
):
4509 """GetPreferredFormat(self, int dir=Get) -> DataFormat"""
4510 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4512 def GetFormatCount(*args
, **kwargs
):
4513 """GetFormatCount(self, int dir=Get) -> size_t"""
4514 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4516 def IsSupported(*args
, **kwargs
):
4517 """IsSupported(self, DataFormat format, int dir=Get) -> bool"""
4518 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4520 def GetDataSize(*args
, **kwargs
):
4521 """GetDataSize(self, DataFormat format) -> size_t"""
4522 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4524 def GetAllFormats(*args
, **kwargs
):
4525 """GetAllFormats(self, DataFormat formats, int dir=Get)"""
4526 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4528 def GetDataHere(*args
, **kwargs
):
4529 """GetDataHere(self, DataFormat format, void buf) -> bool"""
4530 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4532 def SetData(*args
, **kwargs
):
4533 """SetData(self, DataFormat format, size_t len, void buf) -> bool"""
4534 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4537 class DataObjectPtr(DataObject
):
4538 def __init__(self
, this
):
4540 if not hasattr(self
,"thisown"): self
.thisown
= 0
4541 self
.__class
__ = DataObject
4542 _misc_
.DataObject_swigregister(DataObjectPtr
)
4543 FormatInvalid
= cvar
.FormatInvalid
4545 class DataObjectSimple(DataObject
):
4547 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4548 def __init__(self
, *args
, **kwargs
):
4549 """__init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple"""
4550 newobj
= _misc_
.new_DataObjectSimple(*args
, **kwargs
)
4551 self
.this
= newobj
.this
4554 def GetFormat(*args
, **kwargs
):
4555 """GetFormat(self) -> DataFormat"""
4556 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4558 def SetFormat(*args
, **kwargs
):
4559 """SetFormat(self, DataFormat format)"""
4560 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4563 class DataObjectSimplePtr(DataObjectSimple
):
4564 def __init__(self
, this
):
4566 if not hasattr(self
,"thisown"): self
.thisown
= 0
4567 self
.__class
__ = DataObjectSimple
4568 _misc_
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4570 class PyDataObjectSimple(DataObjectSimple
):
4572 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4573 def __init__(self
, *args
, **kwargs
):
4574 """__init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4575 newobj
= _misc_
.new_PyDataObjectSimple(*args
, **kwargs
)
4576 self
.this
= newobj
.this
4579 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4581 def _setCallbackInfo(*args
, **kwargs
):
4582 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4583 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4586 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4587 def __init__(self
, this
):
4589 if not hasattr(self
,"thisown"): self
.thisown
= 0
4590 self
.__class
__ = PyDataObjectSimple
4591 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4593 class DataObjectComposite(DataObject
):
4595 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4596 def __init__(self
, *args
, **kwargs
):
4597 """__init__(self) -> DataObjectComposite"""
4598 newobj
= _misc_
.new_DataObjectComposite(*args
, **kwargs
)
4599 self
.this
= newobj
.this
4602 def Add(*args
, **kwargs
):
4603 """Add(self, DataObjectSimple dataObject, int preferred=False)"""
4604 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4607 class DataObjectCompositePtr(DataObjectComposite
):
4608 def __init__(self
, this
):
4610 if not hasattr(self
,"thisown"): self
.thisown
= 0
4611 self
.__class
__ = DataObjectComposite
4612 _misc_
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4614 class TextDataObject(DataObjectSimple
):
4616 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4617 def __init__(self
, *args
, **kwargs
):
4618 """__init__(self, String text=EmptyString) -> TextDataObject"""
4619 newobj
= _misc_
.new_TextDataObject(*args
, **kwargs
)
4620 self
.this
= newobj
.this
4623 def GetTextLength(*args
, **kwargs
):
4624 """GetTextLength(self) -> size_t"""
4625 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4627 def GetText(*args
, **kwargs
):
4628 """GetText(self) -> String"""
4629 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4631 def SetText(*args
, **kwargs
):
4632 """SetText(self, String text)"""
4633 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4636 class TextDataObjectPtr(TextDataObject
):
4637 def __init__(self
, this
):
4639 if not hasattr(self
,"thisown"): self
.thisown
= 0
4640 self
.__class
__ = TextDataObject
4641 _misc_
.TextDataObject_swigregister(TextDataObjectPtr
)
4643 class PyTextDataObject(TextDataObject
):
4645 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4646 def __init__(self
, *args
, **kwargs
):
4647 """__init__(self, String text=EmptyString) -> PyTextDataObject"""
4648 newobj
= _misc_
.new_PyTextDataObject(*args
, **kwargs
)
4649 self
.this
= newobj
.this
4652 self
._setCallbackInfo
(self
, PyTextDataObject
)
4654 def _setCallbackInfo(*args
, **kwargs
):
4655 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4656 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4659 class PyTextDataObjectPtr(PyTextDataObject
):
4660 def __init__(self
, this
):
4662 if not hasattr(self
,"thisown"): self
.thisown
= 0
4663 self
.__class
__ = PyTextDataObject
4664 _misc_
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4666 class BitmapDataObject(DataObjectSimple
):
4668 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4669 def __init__(self
, *args
, **kwargs
):
4670 """__init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4671 newobj
= _misc_
.new_BitmapDataObject(*args
, **kwargs
)
4672 self
.this
= newobj
.this
4675 def GetBitmap(*args
, **kwargs
):
4676 """GetBitmap(self) -> Bitmap"""
4677 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4679 def SetBitmap(*args
, **kwargs
):
4680 """SetBitmap(self, Bitmap bitmap)"""
4681 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4684 class BitmapDataObjectPtr(BitmapDataObject
):
4685 def __init__(self
, this
):
4687 if not hasattr(self
,"thisown"): self
.thisown
= 0
4688 self
.__class
__ = BitmapDataObject
4689 _misc_
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4691 class PyBitmapDataObject(BitmapDataObject
):
4693 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4694 def __init__(self
, *args
, **kwargs
):
4695 """__init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4696 newobj
= _misc_
.new_PyBitmapDataObject(*args
, **kwargs
)
4697 self
.this
= newobj
.this
4700 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4702 def _setCallbackInfo(*args
, **kwargs
):
4703 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4704 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4707 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4708 def __init__(self
, this
):
4710 if not hasattr(self
,"thisown"): self
.thisown
= 0
4711 self
.__class
__ = PyBitmapDataObject
4712 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4714 class FileDataObject(DataObjectSimple
):
4716 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4717 def __init__(self
, *args
, **kwargs
):
4718 """__init__(self) -> FileDataObject"""
4719 newobj
= _misc_
.new_FileDataObject(*args
, **kwargs
)
4720 self
.this
= newobj
.this
4723 def GetFilenames(*args
, **kwargs
):
4724 """GetFilenames(self) -> wxArrayString"""
4725 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4727 def AddFile(*args
, **kwargs
):
4728 """AddFile(self, String filename)"""
4729 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
4732 class FileDataObjectPtr(FileDataObject
):
4733 def __init__(self
, this
):
4735 if not hasattr(self
,"thisown"): self
.thisown
= 0
4736 self
.__class
__ = FileDataObject
4737 _misc_
.FileDataObject_swigregister(FileDataObjectPtr
)
4739 class CustomDataObject(DataObjectSimple
):
4741 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4742 def __init__(self
, *args
, **kwargs
):
4743 """__init__(self, DataFormat format=FormatInvalid) -> CustomDataObject"""
4744 newobj
= _misc_
.new_CustomDataObject(*args
, **kwargs
)
4745 self
.this
= newobj
.this
4748 def TakeData(*args
, **kwargs
):
4749 """TakeData(self, PyObject data)"""
4750 return _misc_
.CustomDataObject_TakeData(*args
, **kwargs
)
4752 def SetData(*args
, **kwargs
):
4753 """SetData(self, PyObject data) -> bool"""
4754 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
4756 def GetSize(*args
, **kwargs
):
4757 """GetSize(self) -> size_t"""
4758 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
4760 def GetData(*args
, **kwargs
):
4761 """GetData(self) -> PyObject"""
4762 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
4765 class CustomDataObjectPtr(CustomDataObject
):
4766 def __init__(self
, this
):
4768 if not hasattr(self
,"thisown"): self
.thisown
= 0
4769 self
.__class
__ = CustomDataObject
4770 _misc_
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4772 class URLDataObject(DataObjectComposite
):
4774 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4775 def __init__(self
, *args
, **kwargs
):
4776 """__init__(self) -> URLDataObject"""
4777 newobj
= _misc_
.new_URLDataObject(*args
, **kwargs
)
4778 self
.this
= newobj
.this
4781 def GetURL(*args
, **kwargs
):
4782 """GetURL(self) -> String"""
4783 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
4785 def SetURL(*args
, **kwargs
):
4786 """SetURL(self, String url)"""
4787 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
4790 class URLDataObjectPtr(URLDataObject
):
4791 def __init__(self
, this
):
4793 if not hasattr(self
,"thisown"): self
.thisown
= 0
4794 self
.__class
__ = URLDataObject
4795 _misc_
.URLDataObject_swigregister(URLDataObjectPtr
)
4797 class MetafileDataObject(DataObjectSimple
):
4799 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4800 def __init__(self
, *args
, **kwargs
):
4801 """__init__(self) -> MetafileDataObject"""
4802 newobj
= _misc_
.new_MetafileDataObject(*args
, **kwargs
)
4803 self
.this
= newobj
.this
4806 def SetMetafile(*args
, **kwargs
):
4807 """SetMetafile(self, wxMetafile metafile)"""
4808 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
4810 def GetMetafile(*args
, **kwargs
):
4811 """GetMetafile(self) -> wxMetafile"""
4812 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
4815 class MetafileDataObjectPtr(MetafileDataObject
):
4816 def __init__(self
, this
):
4818 if not hasattr(self
,"thisown"): self
.thisown
= 0
4819 self
.__class
__ = MetafileDataObject
4820 _misc_
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4822 #---------------------------------------------------------------------------
4824 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
4825 Drag_AllowMove
= _misc_
.Drag_AllowMove
4826 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
4827 DragError
= _misc_
.DragError
4828 DragNone
= _misc_
.DragNone
4829 DragCopy
= _misc_
.DragCopy
4830 DragMove
= _misc_
.DragMove
4831 DragLink
= _misc_
.DragLink
4832 DragCancel
= _misc_
.DragCancel
4834 def IsDragResultOk(*args
, **kwargs
):
4835 """IsDragResultOk(int res) -> bool"""
4836 return _misc_
.IsDragResultOk(*args
, **kwargs
)
4837 class DropSource(object):
4839 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4840 def __init__(self
, *args
, **kwargs
):
4842 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
4843 Cursor none=wxNullCursor) -> DropSource
4845 newobj
= _misc_
.new_DropSource(*args
, **kwargs
)
4846 self
.this
= newobj
.this
4849 self
._setCallbackInfo
(self
, DropSource
, 0)
4851 def _setCallbackInfo(*args
, **kwargs
):
4852 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
4853 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
4855 def __del__(self
, destroy
=_misc_
.delete_DropSource
):
4858 if self
.thisown
: destroy(self
)
4861 def SetData(*args
, **kwargs
):
4862 """SetData(self, DataObject data)"""
4863 return _misc_
.DropSource_SetData(*args
, **kwargs
)
4865 def GetDataObject(*args
, **kwargs
):
4866 """GetDataObject(self) -> DataObject"""
4867 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
4869 def SetCursor(*args
, **kwargs
):
4870 """SetCursor(self, int res, Cursor cursor)"""
4871 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
4873 def DoDragDrop(*args
, **kwargs
):
4874 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
4875 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
4877 def base_GiveFeedback(*args
, **kwargs
):
4878 """base_GiveFeedback(self, int effect) -> bool"""
4879 return _misc_
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4882 class DropSourcePtr(DropSource
):
4883 def __init__(self
, this
):
4885 if not hasattr(self
,"thisown"): self
.thisown
= 0
4886 self
.__class
__ = DropSource
4887 _misc_
.DropSource_swigregister(DropSourcePtr
)
4889 class DropTarget(object):
4891 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4892 def __init__(self
, *args
, **kwargs
):
4893 """__init__(self, DataObject dataObject=None) -> DropTarget"""
4894 newobj
= _misc_
.new_DropTarget(*args
, **kwargs
)
4895 self
.this
= newobj
.this
4898 self
._setCallbackInfo
(self
, DropTarget
)
4900 def _setCallbackInfo(*args
, **kwargs
):
4901 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4902 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4904 def __del__(self
, destroy
=_misc_
.delete_DropTarget
):
4907 if self
.thisown
: destroy(self
)
4910 def GetDataObject(*args
, **kwargs
):
4911 """GetDataObject(self) -> DataObject"""
4912 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
4914 def SetDataObject(*args
, **kwargs
):
4915 """SetDataObject(self, DataObject dataObject)"""
4916 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
4918 def base_OnEnter(*args
, **kwargs
):
4919 """base_OnEnter(self, int x, int y, int def) -> int"""
4920 return _misc_
.DropTarget_base_OnEnter(*args
, **kwargs
)
4922 def base_OnDragOver(*args
, **kwargs
):
4923 """base_OnDragOver(self, int x, int y, int def) -> int"""
4924 return _misc_
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4926 def base_OnLeave(*args
, **kwargs
):
4927 """base_OnLeave(self)"""
4928 return _misc_
.DropTarget_base_OnLeave(*args
, **kwargs
)
4930 def base_OnDrop(*args
, **kwargs
):
4931 """base_OnDrop(self, int x, int y) -> bool"""
4932 return _misc_
.DropTarget_base_OnDrop(*args
, **kwargs
)
4934 def GetData(*args
, **kwargs
):
4935 """GetData(self) -> bool"""
4936 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
4939 class DropTargetPtr(DropTarget
):
4940 def __init__(self
, this
):
4942 if not hasattr(self
,"thisown"): self
.thisown
= 0
4943 self
.__class
__ = DropTarget
4944 _misc_
.DropTarget_swigregister(DropTargetPtr
)
4946 PyDropTarget
= DropTarget
4947 class TextDropTarget(DropTarget
):
4949 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4950 def __init__(self
, *args
, **kwargs
):
4951 """__init__(self) -> TextDropTarget"""
4952 newobj
= _misc_
.new_TextDropTarget(*args
, **kwargs
)
4953 self
.this
= newobj
.this
4956 self
._setCallbackInfo
(self
, TextDropTarget
)
4958 def _setCallbackInfo(*args
, **kwargs
):
4959 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4960 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4962 def base_OnEnter(*args
, **kwargs
):
4963 """base_OnEnter(self, int x, int y, int def) -> int"""
4964 return _misc_
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4966 def base_OnDragOver(*args
, **kwargs
):
4967 """base_OnDragOver(self, int x, int y, int def) -> int"""
4968 return _misc_
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4970 def base_OnLeave(*args
, **kwargs
):
4971 """base_OnLeave(self)"""
4972 return _misc_
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4974 def base_OnDrop(*args
, **kwargs
):
4975 """base_OnDrop(self, int x, int y) -> bool"""
4976 return _misc_
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4978 def base_OnData(*args
, **kwargs
):
4979 """base_OnData(self, int x, int y, int def) -> int"""
4980 return _misc_
.TextDropTarget_base_OnData(*args
, **kwargs
)
4983 class TextDropTargetPtr(TextDropTarget
):
4984 def __init__(self
, this
):
4986 if not hasattr(self
,"thisown"): self
.thisown
= 0
4987 self
.__class
__ = TextDropTarget
4988 _misc_
.TextDropTarget_swigregister(TextDropTargetPtr
)
4990 class FileDropTarget(DropTarget
):
4992 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4993 def __init__(self
, *args
, **kwargs
):
4994 """__init__(self) -> FileDropTarget"""
4995 newobj
= _misc_
.new_FileDropTarget(*args
, **kwargs
)
4996 self
.this
= newobj
.this
4999 self
._setCallbackInfo
(self
, FileDropTarget
)
5001 def _setCallbackInfo(*args
, **kwargs
):
5002 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5003 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5005 def base_OnEnter(*args
, **kwargs
):
5006 """base_OnEnter(self, int x, int y, int def) -> int"""
5007 return _misc_
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
5009 def base_OnDragOver(*args
, **kwargs
):
5010 """base_OnDragOver(self, int x, int y, int def) -> int"""
5011 return _misc_
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
5013 def base_OnLeave(*args
, **kwargs
):
5014 """base_OnLeave(self)"""
5015 return _misc_
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
5017 def base_OnDrop(*args
, **kwargs
):
5018 """base_OnDrop(self, int x, int y) -> bool"""
5019 return _misc_
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
5021 def base_OnData(*args
, **kwargs
):
5022 """base_OnData(self, int x, int y, int def) -> int"""
5023 return _misc_
.FileDropTarget_base_OnData(*args
, **kwargs
)
5026 class FileDropTargetPtr(FileDropTarget
):
5027 def __init__(self
, this
):
5029 if not hasattr(self
,"thisown"): self
.thisown
= 0
5030 self
.__class
__ = FileDropTarget
5031 _misc_
.FileDropTarget_swigregister(FileDropTargetPtr
)
5033 #---------------------------------------------------------------------------
5035 class Clipboard(_core
.Object
):
5037 wx.Clipboard represents the system clipboard and provides methods to
5038 copy data to it or paste data from it. Normally, you should only use
5039 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5042 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5043 clipboard. If this operation returns True, you now own the
5044 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5045 to retrieve data from the clipboard. Call `Close` to close the
5046 clipboard and relinquish ownership. You should keep the clipboard open
5049 :see: `wx.DataObject`
5053 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5054 def __init__(self
, *args
, **kwargs
):
5055 """__init__(self) -> Clipboard"""
5056 newobj
= _misc_
.new_Clipboard(*args
, **kwargs
)
5057 self
.this
= newobj
.this
5060 def __del__(self
, destroy
=_misc_
.delete_Clipboard
):
5063 if self
.thisown
: destroy(self
)
5066 def Open(*args
, **kwargs
):
5070 Call this function to open the clipboard before calling SetData and
5071 GetData. Call Close when you have finished with the clipboard. You
5072 should keep the clipboard open for only a very short time. Returns
5075 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5077 def Close(*args
, **kwargs
):
5081 Closes the clipboard.
5083 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5085 def IsOpened(*args
, **kwargs
):
5087 IsOpened(self) -> bool
5089 Query whether the clipboard is opened
5091 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5093 def AddData(*args
, **kwargs
):
5095 AddData(self, DataObject data) -> bool
5097 Call this function to add the data object to the clipboard. You may
5098 call this function repeatedly after having cleared the clipboard.
5099 After this function has been called, the clipboard owns the data, so
5100 do not delete the data explicitly.
5102 :see: `wx.DataObject`
5104 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5106 def SetData(*args
, **kwargs
):
5108 SetData(self, DataObject data) -> bool
5110 Set the clipboard data, this is the same as `Clear` followed by
5113 :see: `wx.DataObject`
5115 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5117 def IsSupported(*args
, **kwargs
):
5119 IsSupported(self, DataFormat format) -> bool
5121 Returns True if the given format is available in the data object(s) on
5124 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5126 def GetData(*args
, **kwargs
):
5128 GetData(self, DataObject data) -> bool
5130 Call this function to fill data with data on the clipboard, if
5131 available in the required format. Returns true on success.
5133 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5135 def Clear(*args
, **kwargs
):
5139 Clears data from the clipboard object and also the system's clipboard
5142 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5144 def Flush(*args
, **kwargs
):
5148 Flushes the clipboard: this means that the data which is currently on
5149 clipboard will stay available even after the application exits,
5150 possibly eating memory, otherwise the clipboard will be emptied on
5151 exit. Returns False if the operation is unsuccesful for any reason.
5153 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5155 def UsePrimarySelection(*args
, **kwargs
):
5157 UsePrimarySelection(self, bool primary=True)
5159 On platforms supporting it (the X11 based platforms), selects the
5160 so called PRIMARY SELECTION as the clipboard as opposed to the
5161 normal clipboard, if primary is True.
5163 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5166 class ClipboardPtr(Clipboard
):
5167 def __init__(self
, this
):
5169 if not hasattr(self
,"thisown"): self
.thisown
= 0
5170 self
.__class
__ = Clipboard
5171 _misc_
.Clipboard_swigregister(ClipboardPtr
)
5173 class ClipboardLocker(object):
5175 A helpful class for opening the clipboard and automatically
5176 closing it when the locker is destroyed.
5179 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5180 def __init__(self
, *args
, **kwargs
):
5182 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5184 A helpful class for opening the clipboard and automatically
5185 closing it when the locker is destroyed.
5187 newobj
= _misc_
.new_ClipboardLocker(*args
, **kwargs
)
5188 self
.this
= newobj
.this
5191 def __del__(self
, destroy
=_misc_
.delete_ClipboardLocker
):
5194 if self
.thisown
: destroy(self
)
5197 def __nonzero__(*args
, **kwargs
):
5199 __nonzero__(self) -> bool
5201 A ClipboardLocker instance evaluates to True if the clipboard was
5202 successfully opened.
5204 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5207 class ClipboardLockerPtr(ClipboardLocker
):
5208 def __init__(self
, this
):
5210 if not hasattr(self
,"thisown"): self
.thisown
= 0
5211 self
.__class
__ = ClipboardLocker
5212 _misc_
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
5213 TheClipboard
= cvar
.TheClipboard
5215 #---------------------------------------------------------------------------
5217 class VideoMode(object):
5218 """A simple struct containing video mode parameters for a display"""
5220 return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5221 def __init__(self
, *args
, **kwargs
):
5223 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5225 A simple struct containing video mode parameters for a display
5227 newobj
= _misc_
.new_VideoMode(*args
, **kwargs
)
5228 self
.this
= newobj
.this
5231 def __del__(self
, destroy
=_misc_
.delete_VideoMode
):
5234 if self
.thisown
: destroy(self
)
5237 def Matches(*args
, **kwargs
):
5239 Matches(self, VideoMode other) -> bool
5241 Returns true if this mode matches the other one in the sense that
5242 all non zero fields of the other mode have the same value in this
5243 one (except for refresh which is allowed to have a greater value)
5245 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5247 def GetWidth(*args
, **kwargs
):
5249 GetWidth(self) -> int
5251 Returns the screen width in pixels (e.g. 640*480), 0 means
5254 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5256 def GetHeight(*args
, **kwargs
):
5258 GetHeight(self) -> int
5260 Returns the screen width in pixels (e.g. 640*480), 0 means
5263 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5265 def GetDepth(*args
, **kwargs
):
5267 GetDepth(self) -> int
5269 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome
5270 and 0 means unspecified/known
5272 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5274 def IsOk(*args
, **kwargs
):
5278 returns true if the object has been initialized
5280 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5282 def __nonzero__(self
): return self
.IsOk()
5283 def __eq__(*args
, **kwargs
):
5284 """__eq__(self, VideoMode other) -> bool"""
5285 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5287 def __ne__(*args
, **kwargs
):
5288 """__ne__(self, VideoMode other) -> bool"""
5289 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5291 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5292 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5293 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5294 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5296 class VideoModePtr(VideoMode
):
5297 def __init__(self
, this
):
5299 if not hasattr(self
,"thisown"): self
.thisown
= 0
5300 self
.__class
__ = VideoMode
5301 _misc_
.VideoMode_swigregister(VideoModePtr
)
5303 class Display(object):
5304 """Represents a display/monitor attached to the system"""
5306 return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5307 def __init__(self
, *args
, **kwargs
):
5309 __init__(self, size_t index=0) -> Display
5311 Set up a Display instance with the specified display. The
5312 displays are numbered from 0 to GetCount() - 1, 0 is always the
5313 primary display and the only one which is always supported
5315 newobj
= _misc_
.new_Display(*args
, **kwargs
)
5316 self
.this
= newobj
.this
5319 def __del__(self
, destroy
=_misc_
.delete_Display
):
5322 if self
.thisown
: destroy(self
)
5325 def GetCount(*args
, **kwargs
):
5327 GetCount() -> size_t
5329 Return the number of available displays.
5331 return _misc_
.Display_GetCount(*args
, **kwargs
)
5333 GetCount
= staticmethod(GetCount
)
5334 def GetFromPoint(*args
, **kwargs
):
5336 GetFromPoint(Point pt) -> int
5338 Find the display where the given point lies, return wx.NOT_FOUND
5339 if it doesn't belong to any display
5341 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5343 GetFromPoint
= staticmethod(GetFromPoint
)
5344 def GetFromWindow(*args
, **kwargs
):
5346 GetFromWindow(Window window) -> int
5348 Find the display where the given window lies, return wx.NOT_FOUND
5349 if it is not shown at all.
5351 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5353 GetFromWindow
= staticmethod(GetFromWindow
)
5354 def IsOk(*args
, **kwargs
):
5358 Return true if the object was initialized successfully
5360 return _misc_
.Display_IsOk(*args
, **kwargs
)
5362 def __nonzero__(self
): return self
.IsOk()
5363 def GetGeometry(*args
, **kwargs
):
5365 GetGeometry(self) -> Rect
5367 Returns the bounding rectangle of the display whose index was
5368 passed to the constructor.
5370 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5372 def GetName(*args
, **kwargs
):
5374 GetName(self) -> String
5376 Returns the display's name. A name is not available on all platforms.
5378 return _misc_
.Display_GetName(*args
, **kwargs
)
5380 def IsPrimary(*args
, **kwargs
):
5382 IsPrimary(self) -> bool
5384 Returns true if the display is the primary display. The primary
5385 display is the one whose index is 0.
5387 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5389 def GetModes(*args
, **kwargs
):
5391 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5393 Enumerate all video modes supported by this display matching the
5394 given one (in the sense of VideoMode.Match()).
5396 As any mode matches the default value of the argument and there
5397 is always at least one video mode supported by display, the
5398 returned array is only empty for the default value of the
5399 argument if this function is not supported at all on this
5402 return _misc_
.Display_GetModes(*args
, **kwargs
)
5404 def GetCurrentMode(*args
, **kwargs
):
5406 GetCurrentMode(self) -> VideoMode
5408 Get the current video mode.
5410 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5412 def ChangeMode(*args
, **kwargs
):
5414 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5416 Change current mode, return true if succeeded, false otherwise
5418 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5420 def ResetMode(*args
, **kwargs
):
5424 Restore the default video mode (just a more readable synonym)
5426 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5429 class DisplayPtr(Display
):
5430 def __init__(self
, this
):
5432 if not hasattr(self
,"thisown"): self
.thisown
= 0
5433 self
.__class
__ = Display
5434 _misc_
.Display_swigregister(DisplayPtr
)
5435 DefaultVideoMode
= cvar
.DefaultVideoMode
5437 def Display_GetCount(*args
, **kwargs
):
5439 Display_GetCount() -> size_t
5441 Return the number of available displays.
5443 return _misc_
.Display_GetCount(*args
, **kwargs
)
5445 def Display_GetFromPoint(*args
, **kwargs
):
5447 Display_GetFromPoint(Point pt) -> int
5449 Find the display where the given point lies, return wx.NOT_FOUND
5450 if it doesn't belong to any display
5452 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5454 def Display_GetFromWindow(*args
, **kwargs
):
5456 Display_GetFromWindow(Window window) -> int
5458 Find the display where the given window lies, return wx.NOT_FOUND
5459 if it is not shown at all.
5461 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)