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 def _setCallbackInfo(*args
, **kwargs
):
918 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
919 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
922 class PyTipProviderPtr(PyTipProvider
):
923 def __init__(self
, this
):
925 if not hasattr(self
,"thisown"): self
.thisown
= 0
926 self
.__class
__ = PyTipProvider
927 _misc_
.PyTipProvider_swigregister(PyTipProviderPtr
)
930 def ShowTip(*args
, **kwargs
):
931 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
932 return _misc_
.ShowTip(*args
, **kwargs
)
934 def CreateFileTipProvider(*args
, **kwargs
):
935 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
936 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
937 #---------------------------------------------------------------------------
939 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
940 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
941 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
942 class Timer(_core
.EvtHandler
):
944 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
945 def __init__(self
, *args
, **kwargs
):
946 """__init__(self, EvtHandler owner=None, int id=-1) -> Timer"""
947 newobj
= _misc_
.new_Timer(*args
, **kwargs
)
948 self
.this
= newobj
.this
951 self
._setCallbackInfo
(self
, Timer
, 0)
953 def __del__(self
, destroy
=_misc_
.delete_Timer
):
956 if self
.thisown
: destroy(self
)
959 def _setCallbackInfo(*args
, **kwargs
):
960 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
961 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
963 def SetOwner(*args
, **kwargs
):
964 """SetOwner(self, EvtHandler owner, int id=-1)"""
965 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
967 def Start(*args
, **kwargs
):
968 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
969 return _misc_
.Timer_Start(*args
, **kwargs
)
971 def Stop(*args
, **kwargs
):
973 return _misc_
.Timer_Stop(*args
, **kwargs
)
975 def IsRunning(*args
, **kwargs
):
976 """IsRunning(self) -> bool"""
977 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
979 def GetInterval(*args
, **kwargs
):
980 """GetInterval(self) -> int"""
981 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
983 def IsOneShot(*args
, **kwargs
):
984 """IsOneShot(self) -> bool"""
985 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
987 def GetId(*args
, **kwargs
):
988 """GetId(self) -> int"""
989 return _misc_
.Timer_GetId(*args
, **kwargs
)
992 class TimerPtr(Timer
):
993 def __init__(self
, this
):
995 if not hasattr(self
,"thisown"): self
.thisown
= 0
996 self
.__class
__ = Timer
997 _misc_
.Timer_swigregister(TimerPtr
)
999 # For backwards compatibility with 2.4
1000 class PyTimer(Timer
):
1001 def __init__(self
, notify
):
1002 Timer
.__init
__(self
)
1003 self
.notify
= notify
1010 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1013 class TimerEvent(_core
.Event
):
1015 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1016 def __init__(self
, *args
, **kwargs
):
1017 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1018 newobj
= _misc_
.new_TimerEvent(*args
, **kwargs
)
1019 self
.this
= newobj
.this
1022 def GetInterval(*args
, **kwargs
):
1023 """GetInterval(self) -> int"""
1024 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1027 class TimerEventPtr(TimerEvent
):
1028 def __init__(self
, this
):
1030 if not hasattr(self
,"thisown"): self
.thisown
= 0
1031 self
.__class
__ = TimerEvent
1032 _misc_
.TimerEvent_swigregister(TimerEventPtr
)
1034 class TimerRunner(object):
1036 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1037 def __init__(self
, *args
):
1039 __init__(self, wxTimer timer) -> TimerRunner
1040 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1042 newobj
= _misc_
.new_TimerRunner(*args
)
1043 self
.this
= newobj
.this
1046 def __del__(self
, destroy
=_misc_
.delete_TimerRunner
):
1049 if self
.thisown
: destroy(self
)
1052 def Start(*args
, **kwargs
):
1053 """Start(self, int milli, bool oneShot=False)"""
1054 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1057 class TimerRunnerPtr(TimerRunner
):
1058 def __init__(self
, this
):
1060 if not hasattr(self
,"thisown"): self
.thisown
= 0
1061 self
.__class
__ = TimerRunner
1062 _misc_
.TimerRunner_swigregister(TimerRunnerPtr
)
1064 #---------------------------------------------------------------------------
1066 LOG_FatalError
= _misc_
.LOG_FatalError
1067 LOG_Error
= _misc_
.LOG_Error
1068 LOG_Warning
= _misc_
.LOG_Warning
1069 LOG_Message
= _misc_
.LOG_Message
1070 LOG_Status
= _misc_
.LOG_Status
1071 LOG_Info
= _misc_
.LOG_Info
1072 LOG_Debug
= _misc_
.LOG_Debug
1073 LOG_Trace
= _misc_
.LOG_Trace
1074 LOG_Progress
= _misc_
.LOG_Progress
1075 LOG_User
= _misc_
.LOG_User
1076 LOG_Max
= _misc_
.LOG_Max
1077 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1078 TRACE_Messages
= _misc_
.TRACE_Messages
1079 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1080 TRACE_RefCount
= _misc_
.TRACE_RefCount
1081 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1082 TraceMemAlloc
= _misc_
.TraceMemAlloc
1083 TraceMessages
= _misc_
.TraceMessages
1084 TraceResAlloc
= _misc_
.TraceResAlloc
1085 TraceRefCount
= _misc_
.TraceRefCount
1086 TraceOleCalls
= _misc_
.TraceOleCalls
1089 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1090 def __init__(self
, *args
, **kwargs
):
1091 """__init__(self) -> Log"""
1092 newobj
= _misc_
.new_Log(*args
, **kwargs
)
1093 self
.this
= newobj
.this
1096 def IsEnabled(*args
, **kwargs
):
1097 """IsEnabled() -> bool"""
1098 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1100 IsEnabled
= staticmethod(IsEnabled
)
1101 def EnableLogging(*args
, **kwargs
):
1102 """EnableLogging(bool doIt=True) -> bool"""
1103 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1105 EnableLogging
= staticmethod(EnableLogging
)
1106 def OnLog(*args
, **kwargs
):
1107 """OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1108 return _misc_
.Log_OnLog(*args
, **kwargs
)
1110 OnLog
= staticmethod(OnLog
)
1111 def Flush(*args
, **kwargs
):
1113 return _misc_
.Log_Flush(*args
, **kwargs
)
1115 def FlushActive(*args
, **kwargs
):
1117 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1119 FlushActive
= staticmethod(FlushActive
)
1120 def GetActiveTarget(*args
, **kwargs
):
1121 """GetActiveTarget() -> Log"""
1122 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1124 GetActiveTarget
= staticmethod(GetActiveTarget
)
1125 def SetActiveTarget(*args
, **kwargs
):
1126 """SetActiveTarget(Log pLogger) -> Log"""
1127 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1129 SetActiveTarget
= staticmethod(SetActiveTarget
)
1130 def Suspend(*args
, **kwargs
):
1132 return _misc_
.Log_Suspend(*args
, **kwargs
)
1134 Suspend
= staticmethod(Suspend
)
1135 def Resume(*args
, **kwargs
):
1137 return _misc_
.Log_Resume(*args
, **kwargs
)
1139 Resume
= staticmethod(Resume
)
1140 def SetVerbose(*args
, **kwargs
):
1141 """SetVerbose(bool bVerbose=True)"""
1142 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1144 SetVerbose
= staticmethod(SetVerbose
)
1145 def SetLogLevel(*args
, **kwargs
):
1146 """SetLogLevel(wxLogLevel logLevel)"""
1147 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1149 SetLogLevel
= staticmethod(SetLogLevel
)
1150 def DontCreateOnDemand(*args
, **kwargs
):
1151 """DontCreateOnDemand()"""
1152 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1154 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1155 def SetTraceMask(*args
, **kwargs
):
1156 """SetTraceMask(wxTraceMask ulMask)"""
1157 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1159 SetTraceMask
= staticmethod(SetTraceMask
)
1160 def AddTraceMask(*args
, **kwargs
):
1161 """AddTraceMask(String str)"""
1162 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1164 AddTraceMask
= staticmethod(AddTraceMask
)
1165 def RemoveTraceMask(*args
, **kwargs
):
1166 """RemoveTraceMask(String str)"""
1167 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1169 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1170 def ClearTraceMasks(*args
, **kwargs
):
1171 """ClearTraceMasks()"""
1172 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1174 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1175 def GetTraceMasks(*args
, **kwargs
):
1176 """GetTraceMasks() -> wxArrayString"""
1177 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1179 GetTraceMasks
= staticmethod(GetTraceMasks
)
1180 def SetTimestamp(*args
, **kwargs
):
1181 """SetTimestamp(wxChar ts)"""
1182 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1184 SetTimestamp
= staticmethod(SetTimestamp
)
1185 def GetVerbose(*args
, **kwargs
):
1186 """GetVerbose() -> bool"""
1187 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1189 GetVerbose
= staticmethod(GetVerbose
)
1190 def GetTraceMask(*args
, **kwargs
):
1191 """GetTraceMask() -> wxTraceMask"""
1192 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1194 GetTraceMask
= staticmethod(GetTraceMask
)
1195 def IsAllowedTraceMask(*args
, **kwargs
):
1196 """IsAllowedTraceMask(wxChar mask) -> bool"""
1197 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1199 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1200 def GetLogLevel(*args
, **kwargs
):
1201 """GetLogLevel() -> wxLogLevel"""
1202 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1204 GetLogLevel
= staticmethod(GetLogLevel
)
1205 def GetTimestamp(*args
, **kwargs
):
1206 """GetTimestamp() -> wxChar"""
1207 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1209 GetTimestamp
= staticmethod(GetTimestamp
)
1210 def TimeStamp(*args
, **kwargs
):
1211 """TimeStamp() -> String"""
1212 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1214 TimeStamp
= staticmethod(TimeStamp
)
1215 def Destroy(*args
, **kwargs
):
1217 return _misc_
.Log_Destroy(*args
, **kwargs
)
1221 def __init__(self
, this
):
1223 if not hasattr(self
,"thisown"): self
.thisown
= 0
1224 self
.__class
__ = Log
1225 _misc_
.Log_swigregister(LogPtr
)
1227 def Log_IsEnabled(*args
, **kwargs
):
1228 """Log_IsEnabled() -> bool"""
1229 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1231 def Log_EnableLogging(*args
, **kwargs
):
1232 """Log_EnableLogging(bool doIt=True) -> bool"""
1233 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1235 def Log_OnLog(*args
, **kwargs
):
1236 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1237 return _misc_
.Log_OnLog(*args
, **kwargs
)
1239 def Log_FlushActive(*args
, **kwargs
):
1240 """Log_FlushActive()"""
1241 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1243 def Log_GetActiveTarget(*args
, **kwargs
):
1244 """Log_GetActiveTarget() -> Log"""
1245 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1247 def Log_SetActiveTarget(*args
, **kwargs
):
1248 """Log_SetActiveTarget(Log pLogger) -> Log"""
1249 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1251 def Log_Suspend(*args
, **kwargs
):
1253 return _misc_
.Log_Suspend(*args
, **kwargs
)
1255 def Log_Resume(*args
, **kwargs
):
1257 return _misc_
.Log_Resume(*args
, **kwargs
)
1259 def Log_SetVerbose(*args
, **kwargs
):
1260 """Log_SetVerbose(bool bVerbose=True)"""
1261 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1263 def Log_SetLogLevel(*args
, **kwargs
):
1264 """Log_SetLogLevel(wxLogLevel logLevel)"""
1265 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1267 def Log_DontCreateOnDemand(*args
, **kwargs
):
1268 """Log_DontCreateOnDemand()"""
1269 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1271 def Log_SetTraceMask(*args
, **kwargs
):
1272 """Log_SetTraceMask(wxTraceMask ulMask)"""
1273 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1275 def Log_AddTraceMask(*args
, **kwargs
):
1276 """Log_AddTraceMask(String str)"""
1277 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1279 def Log_RemoveTraceMask(*args
, **kwargs
):
1280 """Log_RemoveTraceMask(String str)"""
1281 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1283 def Log_ClearTraceMasks(*args
, **kwargs
):
1284 """Log_ClearTraceMasks()"""
1285 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1287 def Log_GetTraceMasks(*args
, **kwargs
):
1288 """Log_GetTraceMasks() -> wxArrayString"""
1289 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1291 def Log_SetTimestamp(*args
, **kwargs
):
1292 """Log_SetTimestamp(wxChar ts)"""
1293 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1295 def Log_GetVerbose(*args
, **kwargs
):
1296 """Log_GetVerbose() -> bool"""
1297 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1299 def Log_GetTraceMask(*args
, **kwargs
):
1300 """Log_GetTraceMask() -> wxTraceMask"""
1301 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1303 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1304 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1305 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1307 def Log_GetLogLevel(*args
, **kwargs
):
1308 """Log_GetLogLevel() -> wxLogLevel"""
1309 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1311 def Log_GetTimestamp(*args
, **kwargs
):
1312 """Log_GetTimestamp() -> wxChar"""
1313 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1315 def Log_TimeStamp(*args
, **kwargs
):
1316 """Log_TimeStamp() -> String"""
1317 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1319 class LogStderr(Log
):
1321 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1322 def __init__(self
, *args
, **kwargs
):
1323 """__init__(self) -> LogStderr"""
1324 newobj
= _misc_
.new_LogStderr(*args
, **kwargs
)
1325 self
.this
= newobj
.this
1329 class LogStderrPtr(LogStderr
):
1330 def __init__(self
, this
):
1332 if not hasattr(self
,"thisown"): self
.thisown
= 0
1333 self
.__class
__ = LogStderr
1334 _misc_
.LogStderr_swigregister(LogStderrPtr
)
1336 class LogTextCtrl(Log
):
1338 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1339 def __init__(self
, *args
, **kwargs
):
1340 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1341 newobj
= _misc_
.new_LogTextCtrl(*args
, **kwargs
)
1342 self
.this
= newobj
.this
1346 class LogTextCtrlPtr(LogTextCtrl
):
1347 def __init__(self
, this
):
1349 if not hasattr(self
,"thisown"): self
.thisown
= 0
1350 self
.__class
__ = LogTextCtrl
1351 _misc_
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1355 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1356 def __init__(self
, *args
, **kwargs
):
1357 """__init__(self) -> LogGui"""
1358 newobj
= _misc_
.new_LogGui(*args
, **kwargs
)
1359 self
.this
= newobj
.this
1363 class LogGuiPtr(LogGui
):
1364 def __init__(self
, this
):
1366 if not hasattr(self
,"thisown"): self
.thisown
= 0
1367 self
.__class
__ = LogGui
1368 _misc_
.LogGui_swigregister(LogGuiPtr
)
1370 class LogWindow(Log
):
1372 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1373 def __init__(self
, *args
, **kwargs
):
1374 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1375 newobj
= _misc_
.new_LogWindow(*args
, **kwargs
)
1376 self
.this
= newobj
.this
1379 def Show(*args
, **kwargs
):
1380 """Show(self, bool bShow=True)"""
1381 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1383 def GetFrame(*args
, **kwargs
):
1384 """GetFrame(self) -> wxFrame"""
1385 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1387 def GetOldLog(*args
, **kwargs
):
1388 """GetOldLog(self) -> Log"""
1389 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1391 def IsPassingMessages(*args
, **kwargs
):
1392 """IsPassingMessages(self) -> bool"""
1393 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1395 def PassMessages(*args
, **kwargs
):
1396 """PassMessages(self, bool bDoPass)"""
1397 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1400 class LogWindowPtr(LogWindow
):
1401 def __init__(self
, this
):
1403 if not hasattr(self
,"thisown"): self
.thisown
= 0
1404 self
.__class
__ = LogWindow
1405 _misc_
.LogWindow_swigregister(LogWindowPtr
)
1407 class LogChain(Log
):
1409 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1410 def __init__(self
, *args
, **kwargs
):
1411 """__init__(self, Log logger) -> LogChain"""
1412 newobj
= _misc_
.new_LogChain(*args
, **kwargs
)
1413 self
.this
= newobj
.this
1416 def SetLog(*args
, **kwargs
):
1417 """SetLog(self, Log logger)"""
1418 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1420 def PassMessages(*args
, **kwargs
):
1421 """PassMessages(self, bool bDoPass)"""
1422 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1424 def IsPassingMessages(*args
, **kwargs
):
1425 """IsPassingMessages(self) -> bool"""
1426 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1428 def GetOldLog(*args
, **kwargs
):
1429 """GetOldLog(self) -> Log"""
1430 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1433 class LogChainPtr(LogChain
):
1434 def __init__(self
, this
):
1436 if not hasattr(self
,"thisown"): self
.thisown
= 0
1437 self
.__class
__ = LogChain
1438 _misc_
.LogChain_swigregister(LogChainPtr
)
1441 def SysErrorCode(*args
, **kwargs
):
1442 """SysErrorCode() -> unsigned long"""
1443 return _misc_
.SysErrorCode(*args
, **kwargs
)
1445 def SysErrorMsg(*args
, **kwargs
):
1446 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1447 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1449 def LogFatalError(*args
, **kwargs
):
1450 """LogFatalError(String msg)"""
1451 return _misc_
.LogFatalError(*args
, **kwargs
)
1453 def LogError(*args
, **kwargs
):
1454 """LogError(String msg)"""
1455 return _misc_
.LogError(*args
, **kwargs
)
1457 def LogWarning(*args
, **kwargs
):
1458 """LogWarning(String msg)"""
1459 return _misc_
.LogWarning(*args
, **kwargs
)
1461 def LogMessage(*args
, **kwargs
):
1462 """LogMessage(String msg)"""
1463 return _misc_
.LogMessage(*args
, **kwargs
)
1465 def LogInfo(*args
, **kwargs
):
1466 """LogInfo(String msg)"""
1467 return _misc_
.LogInfo(*args
, **kwargs
)
1469 def LogDebug(*args
, **kwargs
):
1470 """LogDebug(String msg)"""
1471 return _misc_
.LogDebug(*args
, **kwargs
)
1473 def LogVerbose(*args
, **kwargs
):
1474 """LogVerbose(String msg)"""
1475 return _misc_
.LogVerbose(*args
, **kwargs
)
1477 def LogStatus(*args
, **kwargs
):
1478 """LogStatus(String msg)"""
1479 return _misc_
.LogStatus(*args
, **kwargs
)
1481 def LogStatusFrame(*args
, **kwargs
):
1482 """LogStatusFrame(wxFrame pFrame, String msg)"""
1483 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1485 def LogSysError(*args
, **kwargs
):
1486 """LogSysError(String msg)"""
1487 return _misc_
.LogSysError(*args
, **kwargs
)
1489 def LogGeneric(*args
, **kwargs
):
1490 """LogGeneric(unsigned long level, String msg)"""
1491 return _misc_
.LogGeneric(*args
, **kwargs
)
1493 def SafeShowMessage(*args
, **kwargs
):
1494 """SafeShowMessage(String title, String text)"""
1495 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1496 class LogNull(object):
1498 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1499 def __init__(self
, *args
, **kwargs
):
1500 """__init__(self) -> LogNull"""
1501 newobj
= _misc_
.new_LogNull(*args
, **kwargs
)
1502 self
.this
= newobj
.this
1505 def __del__(self
, destroy
=_misc_
.delete_LogNull
):
1508 if self
.thisown
: destroy(self
)
1512 class LogNullPtr(LogNull
):
1513 def __init__(self
, this
):
1515 if not hasattr(self
,"thisown"): self
.thisown
= 0
1516 self
.__class
__ = LogNull
1517 _misc_
.LogNull_swigregister(LogNullPtr
)
1519 def LogTrace(*args
):
1521 LogTrace(unsigned long mask, String msg)
1522 LogTrace(String mask, String msg)
1524 return _misc_
.LogTrace(*args
)
1528 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1529 def __init__(self
, *args
, **kwargs
):
1530 """__init__(self) -> PyLog"""
1531 newobj
= _misc_
.new_PyLog(*args
, **kwargs
)
1532 self
.this
= newobj
.this
1535 self
._setCallbackInfo
(self
, PyLog
)
1537 def _setCallbackInfo(*args
, **kwargs
):
1538 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1539 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1542 class PyLogPtr(PyLog
):
1543 def __init__(self
, this
):
1545 if not hasattr(self
,"thisown"): self
.thisown
= 0
1546 self
.__class
__ = PyLog
1547 _misc_
.PyLog_swigregister(PyLogPtr
)
1549 #---------------------------------------------------------------------------
1551 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1552 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1553 KILL_OK
= _misc_
.KILL_OK
1554 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1555 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1556 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1557 KILL_ERROR
= _misc_
.KILL_ERROR
1558 SIGNONE
= _misc_
.SIGNONE
1559 SIGHUP
= _misc_
.SIGHUP
1560 SIGINT
= _misc_
.SIGINT
1561 SIGQUIT
= _misc_
.SIGQUIT
1562 SIGILL
= _misc_
.SIGILL
1563 SIGTRAP
= _misc_
.SIGTRAP
1564 SIGABRT
= _misc_
.SIGABRT
1565 SIGIOT
= _misc_
.SIGIOT
1566 SIGEMT
= _misc_
.SIGEMT
1567 SIGFPE
= _misc_
.SIGFPE
1568 SIGKILL
= _misc_
.SIGKILL
1569 SIGBUS
= _misc_
.SIGBUS
1570 SIGSEGV
= _misc_
.SIGSEGV
1571 SIGSYS
= _misc_
.SIGSYS
1572 SIGPIPE
= _misc_
.SIGPIPE
1573 SIGALRM
= _misc_
.SIGALRM
1574 SIGTERM
= _misc_
.SIGTERM
1575 class Process(_core
.EvtHandler
):
1577 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1578 def Kill(*args
, **kwargs
):
1579 """Kill(int pid, int sig=SIGTERM) -> int"""
1580 return _misc_
.Process_Kill(*args
, **kwargs
)
1582 Kill
= staticmethod(Kill
)
1583 def Exists(*args
, **kwargs
):
1584 """Exists(int pid) -> bool"""
1585 return _misc_
.Process_Exists(*args
, **kwargs
)
1587 Exists
= staticmethod(Exists
)
1588 def Open(*args
, **kwargs
):
1589 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1590 return _misc_
.Process_Open(*args
, **kwargs
)
1592 Open
= staticmethod(Open
)
1593 def __init__(self
, *args
, **kwargs
):
1594 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1595 newobj
= _misc_
.new_Process(*args
, **kwargs
)
1596 self
.this
= newobj
.this
1599 self
._setCallbackInfo
(self
, Process
)
1601 def _setCallbackInfo(*args
, **kwargs
):
1602 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1603 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1605 def base_OnTerminate(*args
, **kwargs
):
1606 """base_OnTerminate(self, int pid, int status)"""
1607 return _misc_
.Process_base_OnTerminate(*args
, **kwargs
)
1609 def Redirect(*args
, **kwargs
):
1610 """Redirect(self)"""
1611 return _misc_
.Process_Redirect(*args
, **kwargs
)
1613 def IsRedirected(*args
, **kwargs
):
1614 """IsRedirected(self) -> bool"""
1615 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1617 def Detach(*args
, **kwargs
):
1619 return _misc_
.Process_Detach(*args
, **kwargs
)
1621 def GetInputStream(*args
, **kwargs
):
1622 """GetInputStream(self) -> InputStream"""
1623 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1625 def GetErrorStream(*args
, **kwargs
):
1626 """GetErrorStream(self) -> InputStream"""
1627 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1629 def GetOutputStream(*args
, **kwargs
):
1630 """GetOutputStream(self) -> OutputStream"""
1631 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1633 def CloseOutput(*args
, **kwargs
):
1634 """CloseOutput(self)"""
1635 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1637 def IsInputOpened(*args
, **kwargs
):
1638 """IsInputOpened(self) -> bool"""
1639 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1641 def IsInputAvailable(*args
, **kwargs
):
1642 """IsInputAvailable(self) -> bool"""
1643 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1645 def IsErrorAvailable(*args
, **kwargs
):
1646 """IsErrorAvailable(self) -> bool"""
1647 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1650 class ProcessPtr(Process
):
1651 def __init__(self
, this
):
1653 if not hasattr(self
,"thisown"): self
.thisown
= 0
1654 self
.__class
__ = Process
1655 _misc_
.Process_swigregister(ProcessPtr
)
1657 def Process_Kill(*args
, **kwargs
):
1658 """Process_Kill(int pid, int sig=SIGTERM) -> int"""
1659 return _misc_
.Process_Kill(*args
, **kwargs
)
1661 def Process_Exists(*args
, **kwargs
):
1662 """Process_Exists(int pid) -> bool"""
1663 return _misc_
.Process_Exists(*args
, **kwargs
)
1665 def Process_Open(*args
, **kwargs
):
1666 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1667 return _misc_
.Process_Open(*args
, **kwargs
)
1669 class ProcessEvent(_core
.Event
):
1671 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1672 def __init__(self
, *args
, **kwargs
):
1673 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1674 newobj
= _misc_
.new_ProcessEvent(*args
, **kwargs
)
1675 self
.this
= newobj
.this
1678 def GetPid(*args
, **kwargs
):
1679 """GetPid(self) -> int"""
1680 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1682 def GetExitCode(*args
, **kwargs
):
1683 """GetExitCode(self) -> int"""
1684 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1686 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1687 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1689 class ProcessEventPtr(ProcessEvent
):
1690 def __init__(self
, this
):
1692 if not hasattr(self
,"thisown"): self
.thisown
= 0
1693 self
.__class
__ = ProcessEvent
1694 _misc_
.ProcessEvent_swigregister(ProcessEventPtr
)
1696 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1697 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1699 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1700 EXEC_SYNC
= _misc_
.EXEC_SYNC
1701 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1702 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1704 def Execute(*args
, **kwargs
):
1705 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1706 return _misc_
.Execute(*args
, **kwargs
)
1707 #---------------------------------------------------------------------------
1709 JOYSTICK1
= _misc_
.JOYSTICK1
1710 JOYSTICK2
= _misc_
.JOYSTICK2
1711 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1712 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1713 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1714 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1715 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1716 class Joystick(object):
1718 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1719 def __init__(self
, *args
, **kwargs
):
1720 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1721 newobj
= _misc_
.new_Joystick(*args
, **kwargs
)
1722 self
.this
= newobj
.this
1725 def __del__(self
, destroy
=_misc_
.delete_Joystick
):
1728 if self
.thisown
: destroy(self
)
1731 def GetPosition(*args
, **kwargs
):
1732 """GetPosition(self) -> Point"""
1733 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1735 def GetZPosition(*args
, **kwargs
):
1736 """GetZPosition(self) -> int"""
1737 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1739 def GetButtonState(*args
, **kwargs
):
1740 """GetButtonState(self) -> int"""
1741 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1743 def GetPOVPosition(*args
, **kwargs
):
1744 """GetPOVPosition(self) -> int"""
1745 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1747 def GetPOVCTSPosition(*args
, **kwargs
):
1748 """GetPOVCTSPosition(self) -> int"""
1749 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1751 def GetRudderPosition(*args
, **kwargs
):
1752 """GetRudderPosition(self) -> int"""
1753 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1755 def GetUPosition(*args
, **kwargs
):
1756 """GetUPosition(self) -> int"""
1757 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1759 def GetVPosition(*args
, **kwargs
):
1760 """GetVPosition(self) -> int"""
1761 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1763 def GetMovementThreshold(*args
, **kwargs
):
1764 """GetMovementThreshold(self) -> int"""
1765 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1767 def SetMovementThreshold(*args
, **kwargs
):
1768 """SetMovementThreshold(self, int threshold)"""
1769 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1771 def IsOk(*args
, **kwargs
):
1772 """IsOk(self) -> bool"""
1773 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1775 def GetNumberJoysticks(*args
, **kwargs
):
1776 """GetNumberJoysticks(self) -> int"""
1777 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1779 def GetManufacturerId(*args
, **kwargs
):
1780 """GetManufacturerId(self) -> int"""
1781 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1783 def GetProductId(*args
, **kwargs
):
1784 """GetProductId(self) -> int"""
1785 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1787 def GetProductName(*args
, **kwargs
):
1788 """GetProductName(self) -> String"""
1789 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1791 def GetXMin(*args
, **kwargs
):
1792 """GetXMin(self) -> int"""
1793 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1795 def GetYMin(*args
, **kwargs
):
1796 """GetYMin(self) -> int"""
1797 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1799 def GetZMin(*args
, **kwargs
):
1800 """GetZMin(self) -> int"""
1801 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1803 def GetXMax(*args
, **kwargs
):
1804 """GetXMax(self) -> int"""
1805 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1807 def GetYMax(*args
, **kwargs
):
1808 """GetYMax(self) -> int"""
1809 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1811 def GetZMax(*args
, **kwargs
):
1812 """GetZMax(self) -> int"""
1813 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1815 def GetNumberButtons(*args
, **kwargs
):
1816 """GetNumberButtons(self) -> int"""
1817 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1819 def GetNumberAxes(*args
, **kwargs
):
1820 """GetNumberAxes(self) -> int"""
1821 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1823 def GetMaxButtons(*args
, **kwargs
):
1824 """GetMaxButtons(self) -> int"""
1825 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1827 def GetMaxAxes(*args
, **kwargs
):
1828 """GetMaxAxes(self) -> int"""
1829 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1831 def GetPollingMin(*args
, **kwargs
):
1832 """GetPollingMin(self) -> int"""
1833 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1835 def GetPollingMax(*args
, **kwargs
):
1836 """GetPollingMax(self) -> int"""
1837 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1839 def GetRudderMin(*args
, **kwargs
):
1840 """GetRudderMin(self) -> int"""
1841 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1843 def GetRudderMax(*args
, **kwargs
):
1844 """GetRudderMax(self) -> int"""
1845 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1847 def GetUMin(*args
, **kwargs
):
1848 """GetUMin(self) -> int"""
1849 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1851 def GetUMax(*args
, **kwargs
):
1852 """GetUMax(self) -> int"""
1853 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1855 def GetVMin(*args
, **kwargs
):
1856 """GetVMin(self) -> int"""
1857 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1859 def GetVMax(*args
, **kwargs
):
1860 """GetVMax(self) -> int"""
1861 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1863 def HasRudder(*args
, **kwargs
):
1864 """HasRudder(self) -> bool"""
1865 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1867 def HasZ(*args
, **kwargs
):
1868 """HasZ(self) -> bool"""
1869 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1871 def HasU(*args
, **kwargs
):
1872 """HasU(self) -> bool"""
1873 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1875 def HasV(*args
, **kwargs
):
1876 """HasV(self) -> bool"""
1877 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1879 def HasPOV(*args
, **kwargs
):
1880 """HasPOV(self) -> bool"""
1881 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1883 def HasPOV4Dir(*args
, **kwargs
):
1884 """HasPOV4Dir(self) -> bool"""
1885 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1887 def HasPOVCTS(*args
, **kwargs
):
1888 """HasPOVCTS(self) -> bool"""
1889 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1891 def SetCapture(*args
, **kwargs
):
1892 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1893 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
1895 def ReleaseCapture(*args
, **kwargs
):
1896 """ReleaseCapture(self) -> bool"""
1897 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
1899 def __nonzero__(self
): return self
.IsOk()
1901 class JoystickPtr(Joystick
):
1902 def __init__(self
, this
):
1904 if not hasattr(self
,"thisown"): self
.thisown
= 0
1905 self
.__class
__ = Joystick
1906 _misc_
.Joystick_swigregister(JoystickPtr
)
1908 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
1909 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
1910 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
1911 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
1912 class JoystickEvent(_core
.Event
):
1914 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1915 m_pos
= property(_misc_
.JoystickEvent_m_pos_get
, _misc_
.JoystickEvent_m_pos_set
)
1916 m_zPosition
= property(_misc_
.JoystickEvent_m_zPosition_get
, _misc_
.JoystickEvent_m_zPosition_set
)
1917 m_buttonChange
= property(_misc_
.JoystickEvent_m_buttonChange_get
, _misc_
.JoystickEvent_m_buttonChange_set
)
1918 m_buttonState
= property(_misc_
.JoystickEvent_m_buttonState_get
, _misc_
.JoystickEvent_m_buttonState_set
)
1919 m_joyStick
= property(_misc_
.JoystickEvent_m_joyStick_get
, _misc_
.JoystickEvent_m_joyStick_set
)
1920 def __init__(self
, *args
, **kwargs
):
1922 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1923 int change=0) -> JoystickEvent
1925 newobj
= _misc_
.new_JoystickEvent(*args
, **kwargs
)
1926 self
.this
= newobj
.this
1929 def GetPosition(*args
, **kwargs
):
1930 """GetPosition(self) -> Point"""
1931 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
1933 def GetZPosition(*args
, **kwargs
):
1934 """GetZPosition(self) -> int"""
1935 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1937 def GetButtonState(*args
, **kwargs
):
1938 """GetButtonState(self) -> int"""
1939 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1941 def GetButtonChange(*args
, **kwargs
):
1942 """GetButtonChange(self) -> int"""
1943 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1945 def GetJoystick(*args
, **kwargs
):
1946 """GetJoystick(self) -> int"""
1947 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1949 def SetJoystick(*args
, **kwargs
):
1950 """SetJoystick(self, int stick)"""
1951 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1953 def SetButtonState(*args
, **kwargs
):
1954 """SetButtonState(self, int state)"""
1955 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1957 def SetButtonChange(*args
, **kwargs
):
1958 """SetButtonChange(self, int change)"""
1959 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1961 def SetPosition(*args
, **kwargs
):
1962 """SetPosition(self, Point pos)"""
1963 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
1965 def SetZPosition(*args
, **kwargs
):
1966 """SetZPosition(self, int zPos)"""
1967 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1969 def IsButton(*args
, **kwargs
):
1970 """IsButton(self) -> bool"""
1971 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
1973 def IsMove(*args
, **kwargs
):
1974 """IsMove(self) -> bool"""
1975 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
1977 def IsZMove(*args
, **kwargs
):
1978 """IsZMove(self) -> bool"""
1979 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
1981 def ButtonDown(*args
, **kwargs
):
1982 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
1983 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1985 def ButtonUp(*args
, **kwargs
):
1986 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
1987 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1989 def ButtonIsDown(*args
, **kwargs
):
1990 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
1991 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
1994 class JoystickEventPtr(JoystickEvent
):
1995 def __init__(self
, this
):
1997 if not hasattr(self
,"thisown"): self
.thisown
= 0
1998 self
.__class
__ = JoystickEvent
1999 _misc_
.JoystickEvent_swigregister(JoystickEventPtr
)
2001 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2002 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2003 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2004 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2006 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2007 wxEVT_JOY_BUTTON_UP
,
2013 #---------------------------------------------------------------------------
2015 SOUND_SYNC
= _misc_
.SOUND_SYNC
2016 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2017 SOUND_LOOP
= _misc_
.SOUND_LOOP
2018 class Sound(object):
2020 return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2021 def __init__(self
, *args
):
2023 __init__(self) -> Sound
2024 __init__(self, String fileName, bool isResource=false) -> Sound
2025 __init__(self, int size, wxByte data) -> Sound
2027 newobj
= _misc_
.new_Sound(*args
)
2028 self
.this
= newobj
.this
2031 def __del__(self
, destroy
=_misc_
.delete_Sound
):
2034 if self
.thisown
: destroy(self
)
2039 Create(self, String fileName, bool isResource=false) -> bool
2040 Create(self, int size, wxByte data) -> bool
2042 return _misc_
.Sound_Create(*args
)
2044 def IsOk(*args
, **kwargs
):
2045 """IsOk(self) -> bool"""
2046 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2049 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2050 return _misc_
.Sound_Play(*args
)
2052 def PlaySound(*args
):
2053 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2054 return _misc_
.Sound_PlaySound(*args
)
2056 PlaySound
= staticmethod(PlaySound
)
2057 def Stop(*args
, **kwargs
):
2059 return _misc_
.Sound_Stop(*args
, **kwargs
)
2061 Stop
= staticmethod(Stop
)
2062 def __nonzero__(self
): return self
.IsOk()
2064 class SoundPtr(Sound
):
2065 def __init__(self
, this
):
2067 if not hasattr(self
,"thisown"): self
.thisown
= 0
2068 self
.__class
__ = Sound
2069 _misc_
.Sound_swigregister(SoundPtr
)
2071 def Sound_PlaySound(*args
):
2072 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2073 return _misc_
.Sound_PlaySound(*args
)
2075 def Sound_Stop(*args
, **kwargs
):
2077 return _misc_
.Sound_Stop(*args
, **kwargs
)
2079 #---------------------------------------------------------------------------
2081 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2082 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2083 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2084 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2085 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2086 class FileTypeInfo(object):
2088 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2089 def __init__(self
, *args
, **kwargs
):
2090 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2091 newobj
= _misc_
.new_FileTypeInfo(*args
, **kwargs
)
2092 self
.this
= newobj
.this
2095 def IsValid(*args
, **kwargs
):
2096 """IsValid(self) -> bool"""
2097 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2099 def SetIcon(*args
, **kwargs
):
2100 """SetIcon(self, String iconFile, int iconIndex=0)"""
2101 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2103 def SetShortDesc(*args
, **kwargs
):
2104 """SetShortDesc(self, String shortDesc)"""
2105 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2107 def GetMimeType(*args
, **kwargs
):
2108 """GetMimeType(self) -> String"""
2109 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2111 def GetOpenCommand(*args
, **kwargs
):
2112 """GetOpenCommand(self) -> String"""
2113 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2115 def GetPrintCommand(*args
, **kwargs
):
2116 """GetPrintCommand(self) -> String"""
2117 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2119 def GetShortDesc(*args
, **kwargs
):
2120 """GetShortDesc(self) -> String"""
2121 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2123 def GetDescription(*args
, **kwargs
):
2124 """GetDescription(self) -> String"""
2125 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2127 def GetExtensions(*args
, **kwargs
):
2128 """GetExtensions(self) -> wxArrayString"""
2129 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2131 def GetExtensionsCount(*args
, **kwargs
):
2132 """GetExtensionsCount(self) -> int"""
2133 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2135 def GetIconFile(*args
, **kwargs
):
2136 """GetIconFile(self) -> String"""
2137 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2139 def GetIconIndex(*args
, **kwargs
):
2140 """GetIconIndex(self) -> int"""
2141 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2144 class FileTypeInfoPtr(FileTypeInfo
):
2145 def __init__(self
, this
):
2147 if not hasattr(self
,"thisown"): self
.thisown
= 0
2148 self
.__class
__ = FileTypeInfo
2149 _misc_
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2151 def FileTypeInfoSequence(*args
, **kwargs
):
2152 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2153 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2157 def NullFileTypeInfo(*args
, **kwargs
):
2158 """NullFileTypeInfo() -> FileTypeInfo"""
2159 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2163 class FileType(object):
2165 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2166 def __init__(self
, *args
, **kwargs
):
2167 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2168 newobj
= _misc_
.new_FileType(*args
, **kwargs
)
2169 self
.this
= newobj
.this
2172 def __del__(self
, destroy
=_misc_
.delete_FileType
):
2175 if self
.thisown
: destroy(self
)
2178 def GetMimeType(*args
, **kwargs
):
2179 """GetMimeType(self) -> PyObject"""
2180 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2182 def GetMimeTypes(*args
, **kwargs
):
2183 """GetMimeTypes(self) -> PyObject"""
2184 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2186 def GetExtensions(*args
, **kwargs
):
2187 """GetExtensions(self) -> PyObject"""
2188 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2190 def GetIcon(*args
, **kwargs
):
2191 """GetIcon(self) -> Icon"""
2192 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2194 def GetIconInfo(*args
, **kwargs
):
2195 """GetIconInfo(self) -> PyObject"""
2196 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2198 def GetDescription(*args
, **kwargs
):
2199 """GetDescription(self) -> PyObject"""
2200 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2202 def GetOpenCommand(*args
, **kwargs
):
2203 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2204 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2206 def GetPrintCommand(*args
, **kwargs
):
2207 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2208 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2210 def GetAllCommands(*args
, **kwargs
):
2211 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2212 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2214 def SetCommand(*args
, **kwargs
):
2215 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2216 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2218 def SetDefaultIcon(*args
, **kwargs
):
2219 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2220 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2222 def Unassociate(*args
, **kwargs
):
2223 """Unassociate(self) -> bool"""
2224 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2226 def ExpandCommand(*args
, **kwargs
):
2227 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2228 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2230 ExpandCommand
= staticmethod(ExpandCommand
)
2232 class FileTypePtr(FileType
):
2233 def __init__(self
, this
):
2235 if not hasattr(self
,"thisown"): self
.thisown
= 0
2236 self
.__class
__ = FileType
2237 _misc_
.FileType_swigregister(FileTypePtr
)
2239 def FileType_ExpandCommand(*args
, **kwargs
):
2240 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2241 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2243 class MimeTypesManager(object):
2245 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2246 def IsOfType(*args
, **kwargs
):
2247 """IsOfType(String mimeType, String wildcard) -> bool"""
2248 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2250 IsOfType
= staticmethod(IsOfType
)
2251 def __init__(self
, *args
, **kwargs
):
2252 """__init__(self) -> MimeTypesManager"""
2253 newobj
= _misc_
.new_MimeTypesManager(*args
, **kwargs
)
2254 self
.this
= newobj
.this
2257 def Initialize(*args
, **kwargs
):
2258 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2259 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2261 def ClearData(*args
, **kwargs
):
2262 """ClearData(self)"""
2263 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2265 def GetFileTypeFromExtension(*args
, **kwargs
):
2266 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2267 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2269 def GetFileTypeFromMimeType(*args
, **kwargs
):
2270 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2271 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2273 def ReadMailcap(*args
, **kwargs
):
2274 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2275 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2277 def ReadMimeTypes(*args
, **kwargs
):
2278 """ReadMimeTypes(self, String filename) -> bool"""
2279 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2281 def EnumAllFileTypes(*args
, **kwargs
):
2282 """EnumAllFileTypes(self) -> PyObject"""
2283 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2285 def AddFallback(*args
, **kwargs
):
2286 """AddFallback(self, FileTypeInfo ft)"""
2287 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2289 def Associate(*args
, **kwargs
):
2290 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2291 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2293 def Unassociate(*args
, **kwargs
):
2294 """Unassociate(self, FileType ft) -> bool"""
2295 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2297 def __del__(self
, destroy
=_misc_
.delete_MimeTypesManager
):
2300 if self
.thisown
: destroy(self
)
2304 class MimeTypesManagerPtr(MimeTypesManager
):
2305 def __init__(self
, this
):
2307 if not hasattr(self
,"thisown"): self
.thisown
= 0
2308 self
.__class
__ = MimeTypesManager
2309 _misc_
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2310 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2312 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2313 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2314 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2316 #---------------------------------------------------------------------------
2318 class ArtProvider(object):
2320 The wx.ArtProvider class is used to customize the look of wxWidgets
2321 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2322 in the standard file dialog), it does not use hard-coded resource but
2323 asks wx.ArtProvider for it instead. This way the users can plug in
2324 their own wx.ArtProvider class and easily replace standard art with
2325 his/her own version. It is easy thing to do: all that is needed is
2326 to derive a class from wx.ArtProvider, override it's CreateBitmap
2327 method and register the provider with wx.ArtProvider.PushProvider::
2329 class MyArtProvider(wx.ArtProvider):
2331 wx.ArtProvider.__init__(self)
2333 def CreateBitmap(self, artid, client, size):
2338 Identifying art resources
2339 -------------------------
2341 Every bitmap is known to wx.ArtProvider under an unique ID that is
2342 used when requesting a resource from it. The IDs can have one of these
2345 * wx.ART_ADD_BOOKMARK
2346 * wx.ART_DEL_BOOKMARK
2347 * wx.ART_HELP_SIDE_PANEL
2348 * wx.ART_HELP_SETTINGS
2350 * wx.ART_HELP_FOLDER
2356 * wx.ART_GO_TO_PARENT
2362 * wx.ART_REPORT_VIEW
2367 * wx.ART_EXECUTABLE_FILE
2368 * wx.ART_NORMAL_FILE
2374 * wx.ART_INFORMATION
2375 * wx.ART_MISSING_IMAGE
2381 The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
2382 `GetIcon` function. Client IDs server as a hint to wx.ArtProvider
2383 that is supposed to help it to choose the best looking bitmap. For
2384 example it is often desirable to use slightly different icons in menus
2385 and toolbars even though they represent the same action (e.g.
2386 wx.ART_FILE_OPEN). Remember that this is really only a hint for
2387 wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
2388 identical bitmap for different client values!
2394 * wx.ART_HELP_BROWSER
2395 * wx.ART_MESSAGE_BOX
2396 * wx.ART_OTHER (used for all requests that don't fit into any
2397 of the categories above)
2401 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2402 def __init__(self
, *args
, **kwargs
):
2404 __init__(self) -> ArtProvider
2406 The wx.ArtProvider class is used to customize the look of wxWidgets
2407 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2408 in the standard file dialog), it does not use hard-coded resource but
2409 asks wx.ArtProvider for it instead. This way the users can plug in
2410 their own wx.ArtProvider class and easily replace standard art with
2411 his/her own version. It is easy thing to do: all that is needed is
2412 to derive a class from wx.ArtProvider, override it's CreateBitmap
2413 method and register the provider with wx.ArtProvider.PushProvider::
2415 class MyArtProvider(wx.ArtProvider):
2417 wx.ArtProvider.__init__(self)
2419 def CreateBitmap(self, artid, client, size):
2424 Identifying art resources
2425 -------------------------
2427 Every bitmap is known to wx.ArtProvider under an unique ID that is
2428 used when requesting a resource from it. The IDs can have one of these
2431 * wx.ART_ADD_BOOKMARK
2432 * wx.ART_DEL_BOOKMARK
2433 * wx.ART_HELP_SIDE_PANEL
2434 * wx.ART_HELP_SETTINGS
2436 * wx.ART_HELP_FOLDER
2442 * wx.ART_GO_TO_PARENT
2448 * wx.ART_REPORT_VIEW
2453 * wx.ART_EXECUTABLE_FILE
2454 * wx.ART_NORMAL_FILE
2460 * wx.ART_INFORMATION
2461 * wx.ART_MISSING_IMAGE
2467 The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
2468 `GetIcon` function. Client IDs server as a hint to wx.ArtProvider
2469 that is supposed to help it to choose the best looking bitmap. For
2470 example it is often desirable to use slightly different icons in menus
2471 and toolbars even though they represent the same action (e.g.
2472 wx.ART_FILE_OPEN). Remember that this is really only a hint for
2473 wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
2474 identical bitmap for different client values!
2480 * wx.ART_HELP_BROWSER
2481 * wx.ART_MESSAGE_BOX
2482 * wx.ART_OTHER (used for all requests that don't fit into any
2483 of the categories above)
2486 newobj
= _misc_
.new_ArtProvider(*args
, **kwargs
)
2487 self
.this
= newobj
.this
2490 self
._setCallbackInfo
(self
, ArtProvider
)
2492 def _setCallbackInfo(*args
, **kwargs
):
2493 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2494 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2496 def PushProvider(*args
, **kwargs
):
2498 PushProvider(ArtProvider provider)
2500 Add new provider to the top of providers stack.
2502 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2504 PushProvider
= staticmethod(PushProvider
)
2505 def PopProvider(*args
, **kwargs
):
2507 PopProvider() -> bool
2509 Remove latest added provider and delete it.
2511 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2513 PopProvider
= staticmethod(PopProvider
)
2514 def RemoveProvider(*args
, **kwargs
):
2516 RemoveProvider(ArtProvider provider) -> bool
2518 Remove provider. The provider must have been added previously! The
2519 provider is _not_ deleted.
2521 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2523 RemoveProvider
= staticmethod(RemoveProvider
)
2524 def GetBitmap(*args
, **kwargs
):
2526 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2528 Query the providers for bitmap with given ID and return it. Return
2529 wx.NullBitmap if no provider provides it.
2531 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2533 GetBitmap
= staticmethod(GetBitmap
)
2534 def GetIcon(*args
, **kwargs
):
2536 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2538 Query the providers for icon with given ID and return it. Return
2539 wx.NullIcon if no provider provides it.
2541 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2543 GetIcon
= staticmethod(GetIcon
)
2544 def Destroy(*args
, **kwargs
):
2546 return _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2549 class ArtProviderPtr(ArtProvider
):
2550 def __init__(self
, this
):
2552 if not hasattr(self
,"thisown"): self
.thisown
= 0
2553 self
.__class
__ = ArtProvider
2554 _misc_
.ArtProvider_swigregister(ArtProviderPtr
)
2555 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2556 ART_MENU
= cvar
.ART_MENU
2557 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2558 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2559 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2560 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2561 ART_OTHER
= cvar
.ART_OTHER
2562 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2563 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2564 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2565 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2566 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2567 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2568 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2569 ART_GO_BACK
= cvar
.ART_GO_BACK
2570 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2571 ART_GO_UP
= cvar
.ART_GO_UP
2572 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2573 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2574 ART_GO_HOME
= cvar
.ART_GO_HOME
2575 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2576 ART_PRINT
= cvar
.ART_PRINT
2577 ART_HELP
= cvar
.ART_HELP
2578 ART_TIP
= cvar
.ART_TIP
2579 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2580 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2581 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2582 ART_FOLDER
= cvar
.ART_FOLDER
2583 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2584 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2585 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2586 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2587 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2588 ART_ERROR
= cvar
.ART_ERROR
2589 ART_QUESTION
= cvar
.ART_QUESTION
2590 ART_WARNING
= cvar
.ART_WARNING
2591 ART_INFORMATION
= cvar
.ART_INFORMATION
2592 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2594 def ArtProvider_PushProvider(*args
, **kwargs
):
2596 ArtProvider_PushProvider(ArtProvider provider)
2598 Add new provider to the top of providers stack.
2600 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2602 def ArtProvider_PopProvider(*args
, **kwargs
):
2604 ArtProvider_PopProvider() -> bool
2606 Remove latest added provider and delete it.
2608 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2610 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2612 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2614 Remove provider. The provider must have been added previously! The
2615 provider is _not_ deleted.
2617 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2619 def ArtProvider_GetBitmap(*args
, **kwargs
):
2621 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2623 Query the providers for bitmap with given ID and return it. Return
2624 wx.NullBitmap if no provider provides it.
2626 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2628 def ArtProvider_GetIcon(*args
, **kwargs
):
2630 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2632 Query the providers for icon with given ID and return it. Return
2633 wx.NullIcon if no provider provides it.
2635 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2637 #---------------------------------------------------------------------------
2639 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2640 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2641 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2642 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2643 class ConfigBase(object):
2645 wx.ConfigBase class defines the basic interface of all config
2646 classes. It can not be used by itself (it is an abstract base
2647 class) and you will always use one of its derivations: wx.Config
2650 wx.ConfigBase organizes the items in a tree-like structure,
2651 modeled after the Unix/Dos filesystem. There are groups that act
2652 like directories and entries, key/value pairs that act like
2653 files. There is always one current group given by the current
2654 path. As in the file system case, to specify a key in the config
2655 class you must use a path to it. Config classes also support the
2656 notion of the current group, which makes it possible to use
2659 Keys are pairs "key_name = value" where value may be of string,
2660 integer floating point or boolean, you can not store binary data
2661 without first encoding it as a string. For performance reasons
2662 items should be kept small, no more than a couple kilobytes.
2665 def __init__(self
): raise RuntimeError, "No constructor defined"
2667 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2668 def __del__(self
, destroy
=_misc_
.delete_ConfigBase
):
2671 if self
.thisown
: destroy(self
)
2674 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2675 Type_String
= _misc_
.ConfigBase_Type_String
2676 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2677 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2678 Type_Float
= _misc_
.ConfigBase_Type_Float
2679 def Set(*args
, **kwargs
):
2681 Set(ConfigBase config) -> ConfigBase
2683 Sets the global config object (the one returned by Get) and
2684 returns a reference to the previous global config object.
2686 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2688 Set
= staticmethod(Set
)
2689 def Get(*args
, **kwargs
):
2691 Get(bool createOnDemand=True) -> ConfigBase
2693 Returns the current global config object, creating one if neccessary.
2695 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2697 Get
= staticmethod(Get
)
2698 def Create(*args
, **kwargs
):
2700 Create() -> ConfigBase
2702 Create and return a new global config object. This function will
2703 create the "best" implementation of wx.Config available for the
2706 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2708 Create
= staticmethod(Create
)
2709 def DontCreateOnDemand(*args
, **kwargs
):
2711 DontCreateOnDemand()
2713 Should Get() try to create a new log object if there isn't a current one?
2715 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2717 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2718 def SetPath(*args
, **kwargs
):
2720 SetPath(self, String path)
2722 Set current path: if the first character is '/', it's the absolute path,
2723 otherwise it's a relative path. '..' is supported. If the strPath
2724 doesn't exist it is created.
2726 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2728 def GetPath(*args
, **kwargs
):
2730 GetPath(self) -> String
2732 Retrieve the current path (always as absolute path)
2734 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2736 def GetFirstGroup(*args
, **kwargs
):
2738 GetFirstGroup() -> (more, value, index)
2740 Allows enumerating the subgroups in a config object. Returns
2741 a tuple containing a flag indicating there are more items, the
2742 name of the current item, and an index to pass to GetNextGroup to
2743 fetch the next item.
2745 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2747 def GetNextGroup(*args
, **kwargs
):
2749 GetNextGroup(long index) -> (more, value, index)
2751 Allows enumerating the subgroups in a config object. Returns
2752 a tuple containing a flag indicating there are more items, the
2753 name of the current item, and an index to pass to GetNextGroup to
2754 fetch the next item.
2756 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2758 def GetFirstEntry(*args
, **kwargs
):
2760 GetFirstEntry() -> (more, value, index)
2762 Allows enumerating the entries in the current group in a config
2763 object. Returns a tuple containing a flag indicating there are
2764 more items, the name of the current item, and an index to pass to
2765 GetNextGroup to fetch the next item.
2767 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2769 def GetNextEntry(*args
, **kwargs
):
2771 GetNextEntry(long index) -> (more, value, index)
2773 Allows enumerating the entries in the current group in a config
2774 object. Returns a tuple containing a flag indicating there are
2775 more items, the name of the current item, and an index to pass to
2776 GetNextGroup to fetch the next item.
2778 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2780 def GetNumberOfEntries(*args
, **kwargs
):
2782 GetNumberOfEntries(self, bool recursive=False) -> size_t
2784 Get the number of entries in the current group, with or
2785 without its subgroups.
2787 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2789 def GetNumberOfGroups(*args
, **kwargs
):
2791 GetNumberOfGroups(self, bool recursive=False) -> size_t
2793 Get the number of subgroups in the current group, with or
2794 without its subgroups.
2796 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2798 def HasGroup(*args
, **kwargs
):
2800 HasGroup(self, String name) -> bool
2802 Returns True if the group by this name exists
2804 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2806 def HasEntry(*args
, **kwargs
):
2808 HasEntry(self, String name) -> bool
2810 Returns True if the entry by this name exists
2812 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2814 def Exists(*args
, **kwargs
):
2816 Exists(self, String name) -> bool
2818 Returns True if either a group or an entry with a given name exists
2820 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2822 def GetEntryType(*args
, **kwargs
):
2824 GetEntryType(self, String name) -> int
2826 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2828 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2830 def Read(*args
, **kwargs
):
2832 Read(self, String key, String defaultVal=EmptyString) -> String
2834 Returns the value of key if it exists, defaultVal otherwise.
2836 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2838 def ReadInt(*args
, **kwargs
):
2840 ReadInt(self, String key, long defaultVal=0) -> long
2842 Returns the value of key if it exists, defaultVal otherwise.
2844 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2846 def ReadFloat(*args
, **kwargs
):
2848 ReadFloat(self, String key, double defaultVal=0.0) -> double
2850 Returns the value of key if it exists, defaultVal otherwise.
2852 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2854 def ReadBool(*args
, **kwargs
):
2856 ReadBool(self, String key, bool defaultVal=False) -> bool
2858 Returns the value of key if it exists, defaultVal otherwise.
2860 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2862 def Write(*args
, **kwargs
):
2864 Write(self, String key, String value) -> bool
2866 write the value (return True on success)
2868 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2870 def WriteInt(*args
, **kwargs
):
2872 WriteInt(self, String key, long value) -> bool
2874 write the value (return True on success)
2876 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2878 def WriteFloat(*args
, **kwargs
):
2880 WriteFloat(self, String key, double value) -> bool
2882 write the value (return True on success)
2884 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2886 def WriteBool(*args
, **kwargs
):
2888 WriteBool(self, String key, bool value) -> bool
2890 write the value (return True on success)
2892 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2894 def Flush(*args
, **kwargs
):
2896 Flush(self, bool currentOnly=False) -> bool
2898 permanently writes all changes
2900 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2902 def RenameEntry(*args
, **kwargs
):
2904 RenameEntry(self, String oldName, String newName) -> bool
2906 Rename an entry. Returns False on failure (probably because the new
2907 name is already taken by an existing entry)
2909 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2911 def RenameGroup(*args
, **kwargs
):
2913 RenameGroup(self, String oldName, String newName) -> bool
2915 Rename aa group. Returns False on failure (probably because the new
2916 name is already taken by an existing entry)
2918 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2920 def DeleteEntry(*args
, **kwargs
):
2922 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2924 Deletes the specified entry and the group it belongs to if
2925 it was the last key in it and the second parameter is True
2927 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2929 def DeleteGroup(*args
, **kwargs
):
2931 DeleteGroup(self, String key) -> bool
2933 Delete the group (with all subgroups)
2935 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2937 def DeleteAll(*args
, **kwargs
):
2939 DeleteAll(self) -> bool
2941 Delete the whole underlying object (disk file, registry key, ...)
2942 primarly intended for use by deinstallation routine.
2944 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2946 def SetExpandEnvVars(*args
, **kwargs
):
2948 SetExpandEnvVars(self, bool doIt=True)
2950 We can automatically expand environment variables in the config entries
2951 (this option is on by default, you can turn it on/off at any time)
2953 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2955 def IsExpandingEnvVars(*args
, **kwargs
):
2957 IsExpandingEnvVars(self) -> bool
2959 Are we currently expanding environment variables?
2961 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2963 def SetRecordDefaults(*args
, **kwargs
):
2965 SetRecordDefaults(self, bool doIt=True)
2967 Set whether the config objec should record default values.
2969 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2971 def IsRecordingDefaults(*args
, **kwargs
):
2973 IsRecordingDefaults(self) -> bool
2975 Are we currently recording default values?
2977 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2979 def ExpandEnvVars(*args
, **kwargs
):
2981 ExpandEnvVars(self, String str) -> String
2983 Expand any environment variables in str and return the result
2985 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2987 def GetAppName(*args
, **kwargs
):
2988 """GetAppName(self) -> String"""
2989 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
2991 def GetVendorName(*args
, **kwargs
):
2992 """GetVendorName(self) -> String"""
2993 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
2995 def SetAppName(*args
, **kwargs
):
2996 """SetAppName(self, String appName)"""
2997 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
2999 def SetVendorName(*args
, **kwargs
):
3000 """SetVendorName(self, String vendorName)"""
3001 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3003 def SetStyle(*args
, **kwargs
):
3004 """SetStyle(self, long style)"""
3005 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3007 def GetStyle(*args
, **kwargs
):
3008 """GetStyle(self) -> long"""
3009 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3012 class ConfigBasePtr(ConfigBase
):
3013 def __init__(self
, this
):
3015 if not hasattr(self
,"thisown"): self
.thisown
= 0
3016 self
.__class
__ = ConfigBase
3017 _misc_
.ConfigBase_swigregister(ConfigBasePtr
)
3019 def ConfigBase_Set(*args
, **kwargs
):
3021 ConfigBase_Set(ConfigBase config) -> ConfigBase
3023 Sets the global config object (the one returned by Get) and
3024 returns a reference to the previous global config object.
3026 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3028 def ConfigBase_Get(*args
, **kwargs
):
3030 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3032 Returns the current global config object, creating one if neccessary.
3034 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3036 def ConfigBase_Create(*args
, **kwargs
):
3038 ConfigBase_Create() -> ConfigBase
3040 Create and return a new global config object. This function will
3041 create the "best" implementation of wx.Config available for the
3044 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
3046 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
3048 ConfigBase_DontCreateOnDemand()
3050 Should Get() try to create a new log object if there isn't a current one?
3052 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
3054 class Config(ConfigBase
):
3056 This ConfigBase-derived class will use the registry on Windows,
3057 and will be a wx.FileConfig on other platforms.
3060 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3061 def __init__(self
, *args
, **kwargs
):
3063 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3064 String localFilename=EmptyString, String globalFilename=EmptyString,
3065 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3067 newobj
= _misc_
.new_Config(*args
, **kwargs
)
3068 self
.this
= newobj
.this
3071 def __del__(self
, destroy
=_misc_
.delete_Config
):
3074 if self
.thisown
: destroy(self
)
3078 class ConfigPtr(Config
):
3079 def __init__(self
, this
):
3081 if not hasattr(self
,"thisown"): self
.thisown
= 0
3082 self
.__class
__ = Config
3083 _misc_
.Config_swigregister(ConfigPtr
)
3085 class FileConfig(ConfigBase
):
3086 """This config class will use a file for storage on all platforms."""
3088 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3089 def __init__(self
, *args
, **kwargs
):
3091 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3092 String localFilename=EmptyString, String globalFilename=EmptyString,
3093 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3095 newobj
= _misc_
.new_FileConfig(*args
, **kwargs
)
3096 self
.this
= newobj
.this
3099 def __del__(self
, destroy
=_misc_
.delete_FileConfig
):
3102 if self
.thisown
: destroy(self
)
3106 class FileConfigPtr(FileConfig
):
3107 def __init__(self
, this
):
3109 if not hasattr(self
,"thisown"): self
.thisown
= 0
3110 self
.__class
__ = FileConfig
3111 _misc_
.FileConfig_swigregister(FileConfigPtr
)
3113 class ConfigPathChanger(object):
3115 A handy little class which changes current path to the path of
3116 given entry and restores it in the destructoir: so if you declare
3117 a local variable of this type, you work in the entry directory
3118 and the path is automatically restored when the function returns.
3121 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3122 def __init__(self
, *args
, **kwargs
):
3123 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3124 newobj
= _misc_
.new_ConfigPathChanger(*args
, **kwargs
)
3125 self
.this
= newobj
.this
3128 def __del__(self
, destroy
=_misc_
.delete_ConfigPathChanger
):
3131 if self
.thisown
: destroy(self
)
3134 def Name(*args
, **kwargs
):
3136 Name(self) -> String
3140 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3143 class ConfigPathChangerPtr(ConfigPathChanger
):
3144 def __init__(self
, this
):
3146 if not hasattr(self
,"thisown"): self
.thisown
= 0
3147 self
.__class
__ = ConfigPathChanger
3148 _misc_
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
3151 def ExpandEnvVars(*args
, **kwargs
):
3153 ExpandEnvVars(String sz) -> String
3155 Replace environment variables ($SOMETHING) with their values. The
3156 format is $VARNAME or ${VARNAME} where VARNAME contains
3157 alphanumeric characters and '_' only. '$' must be escaped ('\$')
3158 in order to be taken literally.
3160 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3161 #---------------------------------------------------------------------------
3163 class DateTime(object):
3165 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3166 Local
= _misc_
.DateTime_Local
3167 GMT_12
= _misc_
.DateTime_GMT_12
3168 GMT_11
= _misc_
.DateTime_GMT_11
3169 GMT_10
= _misc_
.DateTime_GMT_10
3170 GMT_9
= _misc_
.DateTime_GMT_9
3171 GMT_8
= _misc_
.DateTime_GMT_8
3172 GMT_7
= _misc_
.DateTime_GMT_7
3173 GMT_6
= _misc_
.DateTime_GMT_6
3174 GMT_5
= _misc_
.DateTime_GMT_5
3175 GMT_4
= _misc_
.DateTime_GMT_4
3176 GMT_3
= _misc_
.DateTime_GMT_3
3177 GMT_2
= _misc_
.DateTime_GMT_2
3178 GMT_1
= _misc_
.DateTime_GMT_1
3179 GMT0
= _misc_
.DateTime_GMT0
3180 GMT1
= _misc_
.DateTime_GMT1
3181 GMT2
= _misc_
.DateTime_GMT2
3182 GMT3
= _misc_
.DateTime_GMT3
3183 GMT4
= _misc_
.DateTime_GMT4
3184 GMT5
= _misc_
.DateTime_GMT5
3185 GMT6
= _misc_
.DateTime_GMT6
3186 GMT7
= _misc_
.DateTime_GMT7
3187 GMT8
= _misc_
.DateTime_GMT8
3188 GMT9
= _misc_
.DateTime_GMT9
3189 GMT10
= _misc_
.DateTime_GMT10
3190 GMT11
= _misc_
.DateTime_GMT11
3191 GMT12
= _misc_
.DateTime_GMT12
3192 WET
= _misc_
.DateTime_WET
3193 WEST
= _misc_
.DateTime_WEST
3194 CET
= _misc_
.DateTime_CET
3195 CEST
= _misc_
.DateTime_CEST
3196 EET
= _misc_
.DateTime_EET
3197 EEST
= _misc_
.DateTime_EEST
3198 MSK
= _misc_
.DateTime_MSK
3199 MSD
= _misc_
.DateTime_MSD
3200 AST
= _misc_
.DateTime_AST
3201 ADT
= _misc_
.DateTime_ADT
3202 EST
= _misc_
.DateTime_EST
3203 EDT
= _misc_
.DateTime_EDT
3204 CST
= _misc_
.DateTime_CST
3205 CDT
= _misc_
.DateTime_CDT
3206 MST
= _misc_
.DateTime_MST
3207 MDT
= _misc_
.DateTime_MDT
3208 PST
= _misc_
.DateTime_PST
3209 PDT
= _misc_
.DateTime_PDT
3210 HST
= _misc_
.DateTime_HST
3211 AKST
= _misc_
.DateTime_AKST
3212 AKDT
= _misc_
.DateTime_AKDT
3213 A_WST
= _misc_
.DateTime_A_WST
3214 A_CST
= _misc_
.DateTime_A_CST
3215 A_EST
= _misc_
.DateTime_A_EST
3216 A_ESST
= _misc_
.DateTime_A_ESST
3217 UTC
= _misc_
.DateTime_UTC
3218 Gregorian
= _misc_
.DateTime_Gregorian
3219 Julian
= _misc_
.DateTime_Julian
3220 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3221 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3222 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3223 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3224 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3225 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3226 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3227 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3228 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3229 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3230 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3231 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3232 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3233 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3234 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3235 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3236 Gr_China
= _misc_
.DateTime_Gr_China
3237 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3238 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3239 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3240 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3241 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3242 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3243 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3244 Gr_France
= _misc_
.DateTime_Gr_France
3245 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3246 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3247 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3248 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3249 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3250 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3251 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3252 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3253 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3254 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3255 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3256 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3257 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3258 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3259 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3260 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3261 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3262 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3263 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3264 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3265 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3266 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3267 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3268 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3269 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3270 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3271 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3272 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3273 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3274 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3275 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3276 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3277 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3278 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3279 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3280 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3281 Gr_USA
= _misc_
.DateTime_Gr_USA
3282 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3283 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3284 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3285 Country_Default
= _misc_
.DateTime_Country_Default
3286 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3287 Country_EEC
= _misc_
.DateTime_Country_EEC
3288 France
= _misc_
.DateTime_France
3289 Germany
= _misc_
.DateTime_Germany
3290 UK
= _misc_
.DateTime_UK
3291 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3292 Russia
= _misc_
.DateTime_Russia
3293 USA
= _misc_
.DateTime_USA
3294 Jan
= _misc_
.DateTime_Jan
3295 Feb
= _misc_
.DateTime_Feb
3296 Mar
= _misc_
.DateTime_Mar
3297 Apr
= _misc_
.DateTime_Apr
3298 May
= _misc_
.DateTime_May
3299 Jun
= _misc_
.DateTime_Jun
3300 Jul
= _misc_
.DateTime_Jul
3301 Aug
= _misc_
.DateTime_Aug
3302 Sep
= _misc_
.DateTime_Sep
3303 Oct
= _misc_
.DateTime_Oct
3304 Nov
= _misc_
.DateTime_Nov
3305 Dec
= _misc_
.DateTime_Dec
3306 Inv_Month
= _misc_
.DateTime_Inv_Month
3307 Sun
= _misc_
.DateTime_Sun
3308 Mon
= _misc_
.DateTime_Mon
3309 Tue
= _misc_
.DateTime_Tue
3310 Wed
= _misc_
.DateTime_Wed
3311 Thu
= _misc_
.DateTime_Thu
3312 Fri
= _misc_
.DateTime_Fri
3313 Sat
= _misc_
.DateTime_Sat
3314 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3315 Inv_Year
= _misc_
.DateTime_Inv_Year
3316 Name_Full
= _misc_
.DateTime_Name_Full
3317 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3318 Default_First
= _misc_
.DateTime_Default_First
3319 Monday_First
= _misc_
.DateTime_Monday_First
3320 Sunday_First
= _misc_
.DateTime_Sunday_First
3321 def SetCountry(*args
, **kwargs
):
3322 """SetCountry(int country)"""
3323 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3325 SetCountry
= staticmethod(SetCountry
)
3326 def GetCountry(*args
, **kwargs
):
3327 """GetCountry() -> int"""
3328 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3330 GetCountry
= staticmethod(GetCountry
)
3331 def IsWestEuropeanCountry(*args
, **kwargs
):
3332 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3333 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3335 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3336 def GetCurrentYear(*args
, **kwargs
):
3337 """GetCurrentYear(int cal=Gregorian) -> int"""
3338 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3340 GetCurrentYear
= staticmethod(GetCurrentYear
)
3341 def ConvertYearToBC(*args
, **kwargs
):
3342 """ConvertYearToBC(int year) -> int"""
3343 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3345 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3346 def GetCurrentMonth(*args
, **kwargs
):
3347 """GetCurrentMonth(int cal=Gregorian) -> int"""
3348 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3350 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3351 def IsLeapYear(*args
, **kwargs
):
3352 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3353 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3355 IsLeapYear
= staticmethod(IsLeapYear
)
3356 def GetCentury(*args
, **kwargs
):
3357 """GetCentury(int year=Inv_Year) -> int"""
3358 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3360 GetCentury
= staticmethod(GetCentury
)
3361 def GetNumberOfDaysinYear(*args
, **kwargs
):
3362 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3363 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3365 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3366 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3367 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3368 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3370 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3371 def GetMonthName(*args
, **kwargs
):
3372 """GetMonthName(int month, int flags=Name_Full) -> String"""
3373 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3375 GetMonthName
= staticmethod(GetMonthName
)
3376 def GetWeekDayName(*args
, **kwargs
):
3377 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3378 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3380 GetWeekDayName
= staticmethod(GetWeekDayName
)
3381 def GetAmPmStrings(*args
, **kwargs
):
3383 GetAmPmStrings() -> (am, pm)
3385 Get the AM and PM strings in the current locale (may be empty)
3387 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3389 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3390 def IsDSTApplicable(*args
, **kwargs
):
3391 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3392 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3394 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3395 def GetBeginDST(*args
, **kwargs
):
3396 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3397 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3399 GetBeginDST
= staticmethod(GetBeginDST
)
3400 def GetEndDST(*args
, **kwargs
):
3401 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3402 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3404 GetEndDST
= staticmethod(GetEndDST
)
3405 def Now(*args
, **kwargs
):
3406 """Now() -> DateTime"""
3407 return _misc_
.DateTime_Now(*args
, **kwargs
)
3409 Now
= staticmethod(Now
)
3410 def UNow(*args
, **kwargs
):
3411 """UNow() -> DateTime"""
3412 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3414 UNow
= staticmethod(UNow
)
3415 def Today(*args
, **kwargs
):
3416 """Today() -> DateTime"""
3417 return _misc_
.DateTime_Today(*args
, **kwargs
)
3419 Today
= staticmethod(Today
)
3420 def __init__(self
, *args
, **kwargs
):
3421 """__init__(self) -> DateTime"""
3422 newobj
= _misc_
.new_DateTime(*args
, **kwargs
)
3423 self
.this
= newobj
.this
3426 def __del__(self
, destroy
=_misc_
.delete_DateTime
):
3429 if self
.thisown
: destroy(self
)
3432 def SetToCurrent(*args
, **kwargs
):
3433 """SetToCurrent(self) -> DateTime"""
3434 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3436 def SetTimeT(*args
, **kwargs
):
3437 """SetTimeT(self, time_t timet) -> DateTime"""
3438 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3440 def SetJDN(*args
, **kwargs
):
3441 """SetJDN(self, double jdn) -> DateTime"""
3442 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3444 def SetHMS(*args
, **kwargs
):
3445 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3446 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3448 def Set(*args
, **kwargs
):
3450 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3451 int minute=0, int second=0, int millisec=0) -> DateTime
3453 return _misc_
.DateTime_Set(*args
, **kwargs
)
3455 def ResetTime(*args
, **kwargs
):
3456 """ResetTime(self) -> DateTime"""
3457 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3459 def SetYear(*args
, **kwargs
):
3460 """SetYear(self, int year) -> DateTime"""
3461 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3463 def SetMonth(*args
, **kwargs
):
3464 """SetMonth(self, int month) -> DateTime"""
3465 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3467 def SetDay(*args
, **kwargs
):
3468 """SetDay(self, int day) -> DateTime"""
3469 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3471 def SetHour(*args
, **kwargs
):
3472 """SetHour(self, int hour) -> DateTime"""
3473 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3475 def SetMinute(*args
, **kwargs
):
3476 """SetMinute(self, int minute) -> DateTime"""
3477 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3479 def SetSecond(*args
, **kwargs
):
3480 """SetSecond(self, int second) -> DateTime"""
3481 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3483 def SetMillisecond(*args
, **kwargs
):
3484 """SetMillisecond(self, int millisecond) -> DateTime"""
3485 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3487 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3488 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3489 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3491 def GetWeekDayInSameWeek(*args
, **kwargs
):
3492 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3493 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3495 def SetToNextWeekDay(*args
, **kwargs
):
3496 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3497 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3499 def GetNextWeekDay(*args
, **kwargs
):
3500 """GetNextWeekDay(self, int weekday) -> DateTime"""
3501 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3503 def SetToPrevWeekDay(*args
, **kwargs
):
3504 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3505 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3507 def GetPrevWeekDay(*args
, **kwargs
):
3508 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3509 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3511 def SetToWeekDay(*args
, **kwargs
):
3512 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3513 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3515 def SetToLastWeekDay(*args
, **kwargs
):
3516 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3517 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3519 def GetLastWeekDay(*args
, **kwargs
):
3520 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3521 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3523 def SetToTheWeek(*args
, **kwargs
):
3524 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3525 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3527 def GetWeek(*args
, **kwargs
):
3528 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3529 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3531 def SetToLastMonthDay(*args
, **kwargs
):
3532 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3533 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3535 def GetLastMonthDay(*args
, **kwargs
):
3536 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3537 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3539 def SetToYearDay(*args
, **kwargs
):
3540 """SetToYearDay(self, int yday) -> DateTime"""
3541 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3543 def GetYearDay(*args
, **kwargs
):
3544 """GetYearDay(self, int yday) -> DateTime"""
3545 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3547 def GetJulianDayNumber(*args
, **kwargs
):
3548 """GetJulianDayNumber(self) -> double"""
3549 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3551 def GetJDN(*args
, **kwargs
):
3552 """GetJDN(self) -> double"""
3553 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3555 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3556 """GetModifiedJulianDayNumber(self) -> double"""
3557 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3559 def GetMJD(*args
, **kwargs
):
3560 """GetMJD(self) -> double"""
3561 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3563 def GetRataDie(*args
, **kwargs
):
3564 """GetRataDie(self) -> double"""
3565 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3567 def ToTimezone(*args
, **kwargs
):
3568 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3569 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3571 def MakeTimezone(*args
, **kwargs
):
3572 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3573 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3575 def ToGMT(*args
, **kwargs
):
3576 """ToGMT(self, bool noDST=False) -> DateTime"""
3577 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3579 def MakeGMT(*args
, **kwargs
):
3580 """MakeGMT(self, bool noDST=False) -> DateTime"""
3581 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3583 def IsDST(*args
, **kwargs
):
3584 """IsDST(self, int country=Country_Default) -> int"""
3585 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3587 def IsValid(*args
, **kwargs
):
3588 """IsValid(self) -> bool"""
3589 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3592 def __nonzero__(self
): return self
.Ok()
3593 def GetTicks(*args
, **kwargs
):
3594 """GetTicks(self) -> time_t"""
3595 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3597 def GetYear(*args
, **kwargs
):
3598 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3599 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3601 def GetMonth(*args
, **kwargs
):
3602 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3603 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3605 def GetDay(*args
, **kwargs
):
3606 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3607 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3609 def GetWeekDay(*args
, **kwargs
):
3610 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3611 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3613 def GetHour(*args
, **kwargs
):
3614 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3615 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3617 def GetMinute(*args
, **kwargs
):
3618 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3619 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3621 def GetSecond(*args
, **kwargs
):
3622 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3623 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3625 def GetMillisecond(*args
, **kwargs
):
3626 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3627 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3629 def GetDayOfYear(*args
, **kwargs
):
3630 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3631 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3633 def GetWeekOfYear(*args
, **kwargs
):
3634 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3635 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3637 def GetWeekOfMonth(*args
, **kwargs
):
3638 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3639 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3641 def IsWorkDay(*args
, **kwargs
):
3642 """IsWorkDay(self, int country=Country_Default) -> bool"""
3643 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3645 def IsEqualTo(*args
, **kwargs
):
3646 """IsEqualTo(self, DateTime datetime) -> bool"""
3647 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3649 def IsEarlierThan(*args
, **kwargs
):
3650 """IsEarlierThan(self, DateTime datetime) -> bool"""
3651 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3653 def IsLaterThan(*args
, **kwargs
):
3654 """IsLaterThan(self, DateTime datetime) -> bool"""
3655 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3657 def IsStrictlyBetween(*args
, **kwargs
):
3658 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3659 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3661 def IsBetween(*args
, **kwargs
):
3662 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3663 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3665 def IsSameDate(*args
, **kwargs
):
3666 """IsSameDate(self, DateTime dt) -> bool"""
3667 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3669 def IsSameTime(*args
, **kwargs
):
3670 """IsSameTime(self, DateTime dt) -> bool"""
3671 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3673 def IsEqualUpTo(*args
, **kwargs
):
3674 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3675 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3677 def AddTS(*args
, **kwargs
):
3678 """AddTS(self, TimeSpan diff) -> DateTime"""
3679 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3681 def AddDS(*args
, **kwargs
):
3682 """AddDS(self, DateSpan diff) -> DateTime"""
3683 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3685 def SubtractTS(*args
, **kwargs
):
3686 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3687 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3689 def SubtractDS(*args
, **kwargs
):
3690 """SubtractDS(self, DateSpan diff) -> DateTime"""
3691 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3693 def Subtract(*args
, **kwargs
):
3694 """Subtract(self, DateTime dt) -> TimeSpan"""
3695 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3697 def __iadd__(*args
):
3699 __iadd__(self, TimeSpan diff) -> DateTime
3700 __iadd__(self, DateSpan diff) -> DateTime
3702 return _misc_
.DateTime___iadd__(*args
)
3704 def __isub__(*args
):
3706 __isub__(self, TimeSpan diff) -> DateTime
3707 __isub__(self, DateSpan diff) -> DateTime
3709 return _misc_
.DateTime___isub__(*args
)
3713 __add__(self, TimeSpan other) -> DateTime
3714 __add__(self, DateSpan other) -> DateTime
3716 return _misc_
.DateTime___add__(*args
)
3720 __sub__(self, DateTime other) -> TimeSpan
3721 __sub__(self, TimeSpan other) -> DateTime
3722 __sub__(self, DateSpan other) -> DateTime
3724 return _misc_
.DateTime___sub__(*args
)
3727 """__lt__(self, DateTime other) -> bool"""
3728 return _misc_
.DateTime___lt__(*args
)
3731 """__le__(self, DateTime other) -> bool"""
3732 return _misc_
.DateTime___le__(*args
)
3735 """__gt__(self, DateTime other) -> bool"""
3736 return _misc_
.DateTime___gt__(*args
)
3739 """__ge__(self, DateTime other) -> bool"""
3740 return _misc_
.DateTime___ge__(*args
)
3743 """__eq__(self, DateTime other) -> bool"""
3744 return _misc_
.DateTime___eq__(*args
)
3747 """__ne__(self, DateTime other) -> bool"""
3748 return _misc_
.DateTime___ne__(*args
)
3750 def ParseRfc822Date(*args
, **kwargs
):
3751 """ParseRfc822Date(self, String date) -> int"""
3752 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3754 def ParseFormat(*args
, **kwargs
):
3755 """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int"""
3756 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3758 def ParseDateTime(*args
, **kwargs
):
3759 """ParseDateTime(self, String datetime) -> int"""
3760 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3762 def ParseDate(*args
, **kwargs
):
3763 """ParseDate(self, String date) -> int"""
3764 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3766 def ParseTime(*args
, **kwargs
):
3767 """ParseTime(self, String time) -> int"""
3768 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3770 def Format(*args
, **kwargs
):
3771 """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3772 return _misc_
.DateTime_Format(*args
, **kwargs
)
3774 def FormatDate(*args
, **kwargs
):
3775 """FormatDate(self) -> String"""
3776 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3778 def FormatTime(*args
, **kwargs
):
3779 """FormatTime(self) -> String"""
3780 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3782 def FormatISODate(*args
, **kwargs
):
3783 """FormatISODate(self) -> String"""
3784 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3786 def FormatISOTime(*args
, **kwargs
):
3787 """FormatISOTime(self) -> String"""
3788 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3792 return '<wx.DateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3794 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3797 return self
.Format()
3799 return "INVALID DateTime"
3802 class DateTimePtr(DateTime
):
3803 def __init__(self
, this
):
3805 if not hasattr(self
,"thisown"): self
.thisown
= 0
3806 self
.__class
__ = DateTime
3807 _misc_
.DateTime_swigregister(DateTimePtr
)
3808 DateFormatStr
= cvar
.DateFormatStr
3809 TimeSpanFormatStr
= cvar
.TimeSpanFormatStr
3811 def DateTime_SetCountry(*args
, **kwargs
):
3812 """DateTime_SetCountry(int country)"""
3813 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3815 def DateTime_GetCountry(*args
, **kwargs
):
3816 """DateTime_GetCountry() -> int"""
3817 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3819 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3820 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3821 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3823 def DateTime_GetCurrentYear(*args
, **kwargs
):
3824 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3825 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3827 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3828 """DateTime_ConvertYearToBC(int year) -> int"""
3829 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3831 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3832 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3833 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3835 def DateTime_IsLeapYear(*args
, **kwargs
):
3836 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3837 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3839 def DateTime_GetCentury(*args
, **kwargs
):
3840 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3841 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3843 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3844 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3845 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3847 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3848 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3849 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3851 def DateTime_GetMonthName(*args
, **kwargs
):
3852 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3853 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3855 def DateTime_GetWeekDayName(*args
, **kwargs
):
3856 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3857 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3859 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3861 GetAmPmStrings() -> (am, pm)
3863 Get the AM and PM strings in the current locale (may be empty)
3865 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3867 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3868 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3869 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3871 def DateTime_GetBeginDST(*args
, **kwargs
):
3872 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3873 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3875 def DateTime_GetEndDST(*args
, **kwargs
):
3876 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3877 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3879 def DateTime_Now(*args
, **kwargs
):
3880 """DateTime_Now() -> DateTime"""
3881 return _misc_
.DateTime_Now(*args
, **kwargs
)
3883 def DateTime_UNow(*args
, **kwargs
):
3884 """DateTime_UNow() -> DateTime"""
3885 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3887 def DateTime_Today(*args
, **kwargs
):
3888 """DateTime_Today() -> DateTime"""
3889 return _misc_
.DateTime_Today(*args
, **kwargs
)
3891 def DateTimeFromTimeT(*args
, **kwargs
):
3892 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3893 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3897 def DateTimeFromJDN(*args
, **kwargs
):
3898 """DateTimeFromJDN(double jdn) -> DateTime"""
3899 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3903 def DateTimeFromHMS(*args
, **kwargs
):
3904 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3905 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3909 def DateTimeFromDMY(*args
, **kwargs
):
3911 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3912 int minute=0, int second=0, int millisec=0) -> DateTime
3914 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3918 class TimeSpan(object):
3920 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3921 def Seconds(*args
, **kwargs
):
3922 """Seconds(long sec) -> TimeSpan"""
3923 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3925 Seconds
= staticmethod(Seconds
)
3926 def Second(*args
, **kwargs
):
3927 """Second() -> TimeSpan"""
3928 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3930 Second
= staticmethod(Second
)
3931 def Minutes(*args
, **kwargs
):
3932 """Minutes(long min) -> TimeSpan"""
3933 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3935 Minutes
= staticmethod(Minutes
)
3936 def Minute(*args
, **kwargs
):
3937 """Minute() -> TimeSpan"""
3938 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3940 Minute
= staticmethod(Minute
)
3941 def Hours(*args
, **kwargs
):
3942 """Hours(long hours) -> TimeSpan"""
3943 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3945 Hours
= staticmethod(Hours
)
3946 def Hour(*args
, **kwargs
):
3947 """Hour() -> TimeSpan"""
3948 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3950 Hour
= staticmethod(Hour
)
3951 def Days(*args
, **kwargs
):
3952 """Days(long days) -> TimeSpan"""
3953 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3955 Days
= staticmethod(Days
)
3956 def Day(*args
, **kwargs
):
3957 """Day() -> TimeSpan"""
3958 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3960 Day
= staticmethod(Day
)
3961 def Weeks(*args
, **kwargs
):
3962 """Weeks(long days) -> TimeSpan"""
3963 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3965 Weeks
= staticmethod(Weeks
)
3966 def Week(*args
, **kwargs
):
3967 """Week() -> TimeSpan"""
3968 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3970 Week
= staticmethod(Week
)
3971 def __init__(self
, *args
, **kwargs
):
3972 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3973 newobj
= _misc_
.new_TimeSpan(*args
, **kwargs
)
3974 self
.this
= newobj
.this
3977 def __del__(self
, destroy
=_misc_
.delete_TimeSpan
):
3980 if self
.thisown
: destroy(self
)
3983 def Add(*args
, **kwargs
):
3984 """Add(self, TimeSpan diff) -> TimeSpan"""
3985 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3987 def Subtract(*args
, **kwargs
):
3988 """Subtract(self, TimeSpan diff) -> TimeSpan"""
3989 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
3991 def Multiply(*args
, **kwargs
):
3992 """Multiply(self, int n) -> TimeSpan"""
3993 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
3995 def Neg(*args
, **kwargs
):
3996 """Neg(self) -> TimeSpan"""
3997 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
3999 def Abs(*args
, **kwargs
):
4000 """Abs(self) -> TimeSpan"""
4001 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4003 def __iadd__(*args
, **kwargs
):
4004 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4005 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4007 def __isub__(*args
, **kwargs
):
4008 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4009 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4011 def __imul__(*args
, **kwargs
):
4012 """__imul__(self, int n) -> TimeSpan"""
4013 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4015 def __neg__(*args
, **kwargs
):
4016 """__neg__(self) -> TimeSpan"""
4017 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4019 def __add__(*args
, **kwargs
):
4020 """__add__(self, TimeSpan other) -> TimeSpan"""
4021 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4023 def __sub__(*args
, **kwargs
):
4024 """__sub__(self, TimeSpan other) -> TimeSpan"""
4025 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4027 def __mul__(*args
, **kwargs
):
4028 """__mul__(self, int n) -> TimeSpan"""
4029 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4031 def __rmul__(*args
, **kwargs
):
4032 """__rmul__(self, int n) -> TimeSpan"""
4033 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4035 def __lt__(*args
, **kwargs
):
4036 """__lt__(self, TimeSpan other) -> bool"""
4037 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4039 def __le__(*args
, **kwargs
):
4040 """__le__(self, TimeSpan other) -> bool"""
4041 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4043 def __gt__(*args
, **kwargs
):
4044 """__gt__(self, TimeSpan other) -> bool"""
4045 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4047 def __ge__(*args
, **kwargs
):
4048 """__ge__(self, TimeSpan other) -> bool"""
4049 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4051 def __eq__(*args
, **kwargs
):
4052 """__eq__(self, TimeSpan other) -> bool"""
4053 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4055 def __ne__(*args
, **kwargs
):
4056 """__ne__(self, TimeSpan other) -> bool"""
4057 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4059 def IsNull(*args
, **kwargs
):
4060 """IsNull(self) -> bool"""
4061 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4063 def IsPositive(*args
, **kwargs
):
4064 """IsPositive(self) -> bool"""
4065 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4067 def IsNegative(*args
, **kwargs
):
4068 """IsNegative(self) -> bool"""
4069 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4071 def IsEqualTo(*args
, **kwargs
):
4072 """IsEqualTo(self, TimeSpan ts) -> bool"""
4073 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4075 def IsLongerThan(*args
, **kwargs
):
4076 """IsLongerThan(self, TimeSpan ts) -> bool"""
4077 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4079 def IsShorterThan(*args
, **kwargs
):
4080 """IsShorterThan(self, TimeSpan t) -> bool"""
4081 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4083 def GetWeeks(*args
, **kwargs
):
4084 """GetWeeks(self) -> int"""
4085 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4087 def GetDays(*args
, **kwargs
):
4088 """GetDays(self) -> int"""
4089 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4091 def GetHours(*args
, **kwargs
):
4092 """GetHours(self) -> int"""
4093 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4095 def GetMinutes(*args
, **kwargs
):
4096 """GetMinutes(self) -> int"""
4097 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4099 def GetSeconds(*args
, **kwargs
):
4100 """GetSeconds(self) -> wxLongLong"""
4101 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4103 def GetMilliseconds(*args
, **kwargs
):
4104 """GetMilliseconds(self) -> wxLongLong"""
4105 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4107 def Format(*args
, **kwargs
):
4108 """Format(self, String format=TimeSpanFormatStr) -> String"""
4109 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4112 return '<wx.TimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
4114 return self
.Format()
4117 class TimeSpanPtr(TimeSpan
):
4118 def __init__(self
, this
):
4120 if not hasattr(self
,"thisown"): self
.thisown
= 0
4121 self
.__class
__ = TimeSpan
4122 _misc_
.TimeSpan_swigregister(TimeSpanPtr
)
4124 def TimeSpan_Seconds(*args
, **kwargs
):
4125 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4126 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4128 def TimeSpan_Second(*args
, **kwargs
):
4129 """TimeSpan_Second() -> TimeSpan"""
4130 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4132 def TimeSpan_Minutes(*args
, **kwargs
):
4133 """TimeSpan_Minutes(long min) -> TimeSpan"""
4134 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4136 def TimeSpan_Minute(*args
, **kwargs
):
4137 """TimeSpan_Minute() -> TimeSpan"""
4138 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4140 def TimeSpan_Hours(*args
, **kwargs
):
4141 """TimeSpan_Hours(long hours) -> TimeSpan"""
4142 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4144 def TimeSpan_Hour(*args
, **kwargs
):
4145 """TimeSpan_Hour() -> TimeSpan"""
4146 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4148 def TimeSpan_Days(*args
, **kwargs
):
4149 """TimeSpan_Days(long days) -> TimeSpan"""
4150 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4152 def TimeSpan_Day(*args
, **kwargs
):
4153 """TimeSpan_Day() -> TimeSpan"""
4154 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4156 def TimeSpan_Weeks(*args
, **kwargs
):
4157 """TimeSpan_Weeks(long days) -> TimeSpan"""
4158 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4160 def TimeSpan_Week(*args
, **kwargs
):
4161 """TimeSpan_Week() -> TimeSpan"""
4162 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4164 class DateSpan(object):
4166 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4167 def __init__(self
, *args
, **kwargs
):
4168 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4169 newobj
= _misc_
.new_DateSpan(*args
, **kwargs
)
4170 self
.this
= newobj
.this
4173 def __del__(self
, destroy
=_misc_
.delete_DateSpan
):
4176 if self
.thisown
: destroy(self
)
4179 def Days(*args
, **kwargs
):
4180 """Days(int days) -> DateSpan"""
4181 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4183 Days
= staticmethod(Days
)
4184 def Day(*args
, **kwargs
):
4185 """Day() -> DateSpan"""
4186 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4188 Day
= staticmethod(Day
)
4189 def Weeks(*args
, **kwargs
):
4190 """Weeks(int weeks) -> DateSpan"""
4191 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4193 Weeks
= staticmethod(Weeks
)
4194 def Week(*args
, **kwargs
):
4195 """Week() -> DateSpan"""
4196 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4198 Week
= staticmethod(Week
)
4199 def Months(*args
, **kwargs
):
4200 """Months(int mon) -> DateSpan"""
4201 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4203 Months
= staticmethod(Months
)
4204 def Month(*args
, **kwargs
):
4205 """Month() -> DateSpan"""
4206 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4208 Month
= staticmethod(Month
)
4209 def Years(*args
, **kwargs
):
4210 """Years(int years) -> DateSpan"""
4211 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4213 Years
= staticmethod(Years
)
4214 def Year(*args
, **kwargs
):
4215 """Year() -> DateSpan"""
4216 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4218 Year
= staticmethod(Year
)
4219 def SetYears(*args
, **kwargs
):
4220 """SetYears(self, int n) -> DateSpan"""
4221 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4223 def SetMonths(*args
, **kwargs
):
4224 """SetMonths(self, int n) -> DateSpan"""
4225 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4227 def SetWeeks(*args
, **kwargs
):
4228 """SetWeeks(self, int n) -> DateSpan"""
4229 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4231 def SetDays(*args
, **kwargs
):
4232 """SetDays(self, int n) -> DateSpan"""
4233 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4235 def GetYears(*args
, **kwargs
):
4236 """GetYears(self) -> int"""
4237 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4239 def GetMonths(*args
, **kwargs
):
4240 """GetMonths(self) -> int"""
4241 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4243 def GetWeeks(*args
, **kwargs
):
4244 """GetWeeks(self) -> int"""
4245 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4247 def GetDays(*args
, **kwargs
):
4248 """GetDays(self) -> int"""
4249 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4251 def GetTotalDays(*args
, **kwargs
):
4252 """GetTotalDays(self) -> int"""
4253 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4255 def Add(*args
, **kwargs
):
4256 """Add(self, DateSpan other) -> DateSpan"""
4257 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4259 def Subtract(*args
, **kwargs
):
4260 """Subtract(self, DateSpan other) -> DateSpan"""
4261 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4263 def Neg(*args
, **kwargs
):
4264 """Neg(self) -> DateSpan"""
4265 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4267 def Multiply(*args
, **kwargs
):
4268 """Multiply(self, int factor) -> DateSpan"""
4269 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4271 def __iadd__(*args
, **kwargs
):
4272 """__iadd__(self, DateSpan other) -> DateSpan"""
4273 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4275 def __isub__(*args
, **kwargs
):
4276 """__isub__(self, DateSpan other) -> DateSpan"""
4277 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4279 def __neg__(*args
, **kwargs
):
4280 """__neg__(self) -> DateSpan"""
4281 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4283 def __imul__(*args
, **kwargs
):
4284 """__imul__(self, int factor) -> DateSpan"""
4285 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4287 def __add__(*args
, **kwargs
):
4288 """__add__(self, DateSpan other) -> DateSpan"""
4289 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4291 def __sub__(*args
, **kwargs
):
4292 """__sub__(self, DateSpan other) -> DateSpan"""
4293 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4295 def __mul__(*args
, **kwargs
):
4296 """__mul__(self, int n) -> DateSpan"""
4297 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4299 def __rmul__(*args
, **kwargs
):
4300 """__rmul__(self, int n) -> DateSpan"""
4301 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4303 def __eq__(*args
, **kwargs
):
4304 """__eq__(self, DateSpan other) -> bool"""
4305 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4307 def __ne__(*args
, **kwargs
):
4308 """__ne__(self, DateSpan other) -> bool"""
4309 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4312 class DateSpanPtr(DateSpan
):
4313 def __init__(self
, this
):
4315 if not hasattr(self
,"thisown"): self
.thisown
= 0
4316 self
.__class
__ = DateSpan
4317 _misc_
.DateSpan_swigregister(DateSpanPtr
)
4319 def DateSpan_Days(*args
, **kwargs
):
4320 """DateSpan_Days(int days) -> DateSpan"""
4321 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4323 def DateSpan_Day(*args
, **kwargs
):
4324 """DateSpan_Day() -> DateSpan"""
4325 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4327 def DateSpan_Weeks(*args
, **kwargs
):
4328 """DateSpan_Weeks(int weeks) -> DateSpan"""
4329 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4331 def DateSpan_Week(*args
, **kwargs
):
4332 """DateSpan_Week() -> DateSpan"""
4333 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4335 def DateSpan_Months(*args
, **kwargs
):
4336 """DateSpan_Months(int mon) -> DateSpan"""
4337 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4339 def DateSpan_Month(*args
, **kwargs
):
4340 """DateSpan_Month() -> DateSpan"""
4341 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4343 def DateSpan_Years(*args
, **kwargs
):
4344 """DateSpan_Years(int years) -> DateSpan"""
4345 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4347 def DateSpan_Year(*args
, **kwargs
):
4348 """DateSpan_Year() -> DateSpan"""
4349 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4352 def GetLocalTime(*args
, **kwargs
):
4353 """GetLocalTime() -> long"""
4354 return _misc_
.GetLocalTime(*args
, **kwargs
)
4356 def GetUTCTime(*args
, **kwargs
):
4357 """GetUTCTime() -> long"""
4358 return _misc_
.GetUTCTime(*args
, **kwargs
)
4360 def GetCurrentTime(*args
, **kwargs
):
4361 """GetCurrentTime() -> long"""
4362 return _misc_
.GetCurrentTime(*args
, **kwargs
)
4364 def GetLocalTimeMillis(*args
, **kwargs
):
4365 """GetLocalTimeMillis() -> wxLongLong"""
4366 return _misc_
.GetLocalTimeMillis(*args
, **kwargs
)
4367 #---------------------------------------------------------------------------
4369 DF_INVALID
= _misc_
.DF_INVALID
4370 DF_TEXT
= _misc_
.DF_TEXT
4371 DF_BITMAP
= _misc_
.DF_BITMAP
4372 DF_METAFILE
= _misc_
.DF_METAFILE
4373 DF_SYLK
= _misc_
.DF_SYLK
4374 DF_DIF
= _misc_
.DF_DIF
4375 DF_TIFF
= _misc_
.DF_TIFF
4376 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4377 DF_DIB
= _misc_
.DF_DIB
4378 DF_PALETTE
= _misc_
.DF_PALETTE
4379 DF_PENDATA
= _misc_
.DF_PENDATA
4380 DF_RIFF
= _misc_
.DF_RIFF
4381 DF_WAVE
= _misc_
.DF_WAVE
4382 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4383 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4384 DF_FILENAME
= _misc_
.DF_FILENAME
4385 DF_LOCALE
= _misc_
.DF_LOCALE
4386 DF_PRIVATE
= _misc_
.DF_PRIVATE
4387 DF_HTML
= _misc_
.DF_HTML
4388 DF_MAX
= _misc_
.DF_MAX
4389 class DataFormat(object):
4391 A wx.DataFormat is an encapsulation of a platform-specific format
4392 handle which is used by the system for the clipboard and drag and
4393 drop operations. The applications are usually only interested in,
4394 for example, pasting data from the clipboard only if the data is
4395 in a format the program understands. A data format is is used to
4396 uniquely identify this format.
4398 On the system level, a data format is usually just a number
4399 (CLIPFORMAT under Windows or Atom under X11, for example).
4402 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4403 def __init__(self
, *args
, **kwargs
):
4405 __init__(self, int type) -> DataFormat
4407 Constructs a data format object for one of the standard data
4408 formats or an empty data object (use SetType or SetId later in
4411 newobj
= _misc_
.new_DataFormat(*args
, **kwargs
)
4412 self
.this
= newobj
.this
4415 def __del__(self
, destroy
=_misc_
.delete_DataFormat
):
4418 if self
.thisown
: destroy(self
)
4423 __eq__(self, int format) -> bool
4424 __eq__(self, DataFormat format) -> bool
4426 return _misc_
.DataFormat___eq__(*args
)
4430 __ne__(self, int format) -> bool
4431 __ne__(self, DataFormat format) -> bool
4433 return _misc_
.DataFormat___ne__(*args
)
4435 def SetType(*args
, **kwargs
):
4437 SetType(self, int format)
4439 Sets the format to the given value, which should be one of wx.DF_XXX constants.
4441 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4443 def GetType(*args
, **kwargs
):
4445 GetType(self) -> int
4447 Returns the platform-specific number identifying the format.
4449 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4451 def GetId(*args
, **kwargs
):
4453 GetId(self) -> String
4455 Returns the name of a custom format (this function will fail for a standard format).
4457 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4459 def SetId(*args
, **kwargs
):
4461 SetId(self, String format)
4463 Sets the format to be the custom format identified by the given name.
4465 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4468 class DataFormatPtr(DataFormat
):
4469 def __init__(self
, this
):
4471 if not hasattr(self
,"thisown"): self
.thisown
= 0
4472 self
.__class
__ = DataFormat
4473 _misc_
.DataFormat_swigregister(DataFormatPtr
)
4474 DefaultDateTime
= cvar
.DefaultDateTime
4476 def CustomDataFormat(*args
, **kwargs
):
4478 CustomDataFormat(String format) -> DataFormat
4480 Constructs a data format object for a custom format identified by its name.
4482 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4486 class DataObject(object):
4487 def __init__(self
): raise RuntimeError, "No constructor defined"
4489 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4490 Get
= _misc_
.DataObject_Get
4491 Set
= _misc_
.DataObject_Set
4492 Both
= _misc_
.DataObject_Both
4493 def __del__(self
, destroy
=_misc_
.delete_DataObject
):
4496 if self
.thisown
: destroy(self
)
4499 def GetPreferredFormat(*args
, **kwargs
):
4500 """GetPreferredFormat(self, int dir=Get) -> DataFormat"""
4501 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4503 def GetFormatCount(*args
, **kwargs
):
4504 """GetFormatCount(self, int dir=Get) -> size_t"""
4505 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4507 def IsSupported(*args
, **kwargs
):
4508 """IsSupported(self, DataFormat format, int dir=Get) -> bool"""
4509 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4511 def GetDataSize(*args
, **kwargs
):
4512 """GetDataSize(self, DataFormat format) -> size_t"""
4513 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4515 def GetAllFormats(*args
, **kwargs
):
4516 """GetAllFormats(self, DataFormat formats, int dir=Get)"""
4517 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4519 def GetDataHere(*args
, **kwargs
):
4520 """GetDataHere(self, DataFormat format, void buf) -> bool"""
4521 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4523 def SetData(*args
, **kwargs
):
4524 """SetData(self, DataFormat format, size_t len, void buf) -> bool"""
4525 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4528 class DataObjectPtr(DataObject
):
4529 def __init__(self
, this
):
4531 if not hasattr(self
,"thisown"): self
.thisown
= 0
4532 self
.__class
__ = DataObject
4533 _misc_
.DataObject_swigregister(DataObjectPtr
)
4534 FormatInvalid
= cvar
.FormatInvalid
4536 class DataObjectSimple(DataObject
):
4538 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4539 def __init__(self
, *args
, **kwargs
):
4540 """__init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple"""
4541 newobj
= _misc_
.new_DataObjectSimple(*args
, **kwargs
)
4542 self
.this
= newobj
.this
4545 def GetFormat(*args
, **kwargs
):
4546 """GetFormat(self) -> DataFormat"""
4547 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4549 def SetFormat(*args
, **kwargs
):
4550 """SetFormat(self, DataFormat format)"""
4551 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4554 class DataObjectSimplePtr(DataObjectSimple
):
4555 def __init__(self
, this
):
4557 if not hasattr(self
,"thisown"): self
.thisown
= 0
4558 self
.__class
__ = DataObjectSimple
4559 _misc_
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4561 class PyDataObjectSimple(DataObjectSimple
):
4563 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4564 def __init__(self
, *args
, **kwargs
):
4565 """__init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4566 newobj
= _misc_
.new_PyDataObjectSimple(*args
, **kwargs
)
4567 self
.this
= newobj
.this
4570 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4572 def _setCallbackInfo(*args
, **kwargs
):
4573 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4574 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4577 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4578 def __init__(self
, this
):
4580 if not hasattr(self
,"thisown"): self
.thisown
= 0
4581 self
.__class
__ = PyDataObjectSimple
4582 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4584 class DataObjectComposite(DataObject
):
4586 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4587 def __init__(self
, *args
, **kwargs
):
4588 """__init__(self) -> DataObjectComposite"""
4589 newobj
= _misc_
.new_DataObjectComposite(*args
, **kwargs
)
4590 self
.this
= newobj
.this
4593 def Add(*args
, **kwargs
):
4594 """Add(self, DataObjectSimple dataObject, int preferred=False)"""
4595 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4598 class DataObjectCompositePtr(DataObjectComposite
):
4599 def __init__(self
, this
):
4601 if not hasattr(self
,"thisown"): self
.thisown
= 0
4602 self
.__class
__ = DataObjectComposite
4603 _misc_
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4605 class TextDataObject(DataObjectSimple
):
4607 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4608 def __init__(self
, *args
, **kwargs
):
4609 """__init__(self, String text=EmptyString) -> TextDataObject"""
4610 newobj
= _misc_
.new_TextDataObject(*args
, **kwargs
)
4611 self
.this
= newobj
.this
4614 def GetTextLength(*args
, **kwargs
):
4615 """GetTextLength(self) -> size_t"""
4616 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4618 def GetText(*args
, **kwargs
):
4619 """GetText(self) -> String"""
4620 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4622 def SetText(*args
, **kwargs
):
4623 """SetText(self, String text)"""
4624 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4627 class TextDataObjectPtr(TextDataObject
):
4628 def __init__(self
, this
):
4630 if not hasattr(self
,"thisown"): self
.thisown
= 0
4631 self
.__class
__ = TextDataObject
4632 _misc_
.TextDataObject_swigregister(TextDataObjectPtr
)
4634 class PyTextDataObject(TextDataObject
):
4636 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4637 def __init__(self
, *args
, **kwargs
):
4638 """__init__(self, String text=EmptyString) -> PyTextDataObject"""
4639 newobj
= _misc_
.new_PyTextDataObject(*args
, **kwargs
)
4640 self
.this
= newobj
.this
4643 self
._setCallbackInfo
(self
, PyTextDataObject
)
4645 def _setCallbackInfo(*args
, **kwargs
):
4646 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4647 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4650 class PyTextDataObjectPtr(PyTextDataObject
):
4651 def __init__(self
, this
):
4653 if not hasattr(self
,"thisown"): self
.thisown
= 0
4654 self
.__class
__ = PyTextDataObject
4655 _misc_
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4657 class BitmapDataObject(DataObjectSimple
):
4659 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4660 def __init__(self
, *args
, **kwargs
):
4661 """__init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4662 newobj
= _misc_
.new_BitmapDataObject(*args
, **kwargs
)
4663 self
.this
= newobj
.this
4666 def GetBitmap(*args
, **kwargs
):
4667 """GetBitmap(self) -> Bitmap"""
4668 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4670 def SetBitmap(*args
, **kwargs
):
4671 """SetBitmap(self, Bitmap bitmap)"""
4672 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4675 class BitmapDataObjectPtr(BitmapDataObject
):
4676 def __init__(self
, this
):
4678 if not hasattr(self
,"thisown"): self
.thisown
= 0
4679 self
.__class
__ = BitmapDataObject
4680 _misc_
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4682 class PyBitmapDataObject(BitmapDataObject
):
4684 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4685 def __init__(self
, *args
, **kwargs
):
4686 """__init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4687 newobj
= _misc_
.new_PyBitmapDataObject(*args
, **kwargs
)
4688 self
.this
= newobj
.this
4691 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4693 def _setCallbackInfo(*args
, **kwargs
):
4694 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4695 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4698 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4699 def __init__(self
, this
):
4701 if not hasattr(self
,"thisown"): self
.thisown
= 0
4702 self
.__class
__ = PyBitmapDataObject
4703 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4705 class FileDataObject(DataObjectSimple
):
4707 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4708 def __init__(self
, *args
, **kwargs
):
4709 """__init__(self) -> FileDataObject"""
4710 newobj
= _misc_
.new_FileDataObject(*args
, **kwargs
)
4711 self
.this
= newobj
.this
4714 def GetFilenames(*args
, **kwargs
):
4715 """GetFilenames(self) -> wxArrayString"""
4716 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4718 def AddFile(*args
, **kwargs
):
4719 """AddFile(self, String filename)"""
4720 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
4723 class FileDataObjectPtr(FileDataObject
):
4724 def __init__(self
, this
):
4726 if not hasattr(self
,"thisown"): self
.thisown
= 0
4727 self
.__class
__ = FileDataObject
4728 _misc_
.FileDataObject_swigregister(FileDataObjectPtr
)
4730 class CustomDataObject(DataObjectSimple
):
4732 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4733 def __init__(self
, *args
, **kwargs
):
4734 """__init__(self, DataFormat format=FormatInvalid) -> CustomDataObject"""
4735 newobj
= _misc_
.new_CustomDataObject(*args
, **kwargs
)
4736 self
.this
= newobj
.this
4739 def TakeData(*args
, **kwargs
):
4740 """TakeData(self, PyObject data)"""
4741 return _misc_
.CustomDataObject_TakeData(*args
, **kwargs
)
4743 def SetData(*args
, **kwargs
):
4744 """SetData(self, PyObject data) -> bool"""
4745 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
4747 def GetSize(*args
, **kwargs
):
4748 """GetSize(self) -> size_t"""
4749 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
4751 def GetData(*args
, **kwargs
):
4752 """GetData(self) -> PyObject"""
4753 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
4756 class CustomDataObjectPtr(CustomDataObject
):
4757 def __init__(self
, this
):
4759 if not hasattr(self
,"thisown"): self
.thisown
= 0
4760 self
.__class
__ = CustomDataObject
4761 _misc_
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4763 class URLDataObject(DataObjectComposite
):
4765 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4766 def __init__(self
, *args
, **kwargs
):
4767 """__init__(self) -> URLDataObject"""
4768 newobj
= _misc_
.new_URLDataObject(*args
, **kwargs
)
4769 self
.this
= newobj
.this
4772 def GetURL(*args
, **kwargs
):
4773 """GetURL(self) -> String"""
4774 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
4776 def SetURL(*args
, **kwargs
):
4777 """SetURL(self, String url)"""
4778 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
4781 class URLDataObjectPtr(URLDataObject
):
4782 def __init__(self
, this
):
4784 if not hasattr(self
,"thisown"): self
.thisown
= 0
4785 self
.__class
__ = URLDataObject
4786 _misc_
.URLDataObject_swigregister(URLDataObjectPtr
)
4788 class MetafileDataObject(DataObjectSimple
):
4790 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4791 def __init__(self
, *args
, **kwargs
):
4792 """__init__(self) -> MetafileDataObject"""
4793 newobj
= _misc_
.new_MetafileDataObject(*args
, **kwargs
)
4794 self
.this
= newobj
.this
4797 def SetMetafile(*args
, **kwargs
):
4798 """SetMetafile(self, wxMetafile metafile)"""
4799 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
4801 def GetMetafile(*args
, **kwargs
):
4802 """GetMetafile(self) -> wxMetafile"""
4803 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
4806 class MetafileDataObjectPtr(MetafileDataObject
):
4807 def __init__(self
, this
):
4809 if not hasattr(self
,"thisown"): self
.thisown
= 0
4810 self
.__class
__ = MetafileDataObject
4811 _misc_
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4813 #---------------------------------------------------------------------------
4815 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
4816 Drag_AllowMove
= _misc_
.Drag_AllowMove
4817 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
4818 DragError
= _misc_
.DragError
4819 DragNone
= _misc_
.DragNone
4820 DragCopy
= _misc_
.DragCopy
4821 DragMove
= _misc_
.DragMove
4822 DragLink
= _misc_
.DragLink
4823 DragCancel
= _misc_
.DragCancel
4825 def IsDragResultOk(*args
, **kwargs
):
4826 """IsDragResultOk(int res) -> bool"""
4827 return _misc_
.IsDragResultOk(*args
, **kwargs
)
4828 class DropSource(object):
4830 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4831 def __init__(self
, *args
, **kwargs
):
4833 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
4834 Cursor none=wxNullCursor) -> DropSource
4836 newobj
= _misc_
.new_DropSource(*args
, **kwargs
)
4837 self
.this
= newobj
.this
4840 def _setCallbackInfo(*args
, **kwargs
):
4841 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
4842 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
4844 def __del__(self
, destroy
=_misc_
.delete_DropSource
):
4847 if self
.thisown
: destroy(self
)
4850 def SetData(*args
, **kwargs
):
4851 """SetData(self, DataObject data)"""
4852 return _misc_
.DropSource_SetData(*args
, **kwargs
)
4854 def GetDataObject(*args
, **kwargs
):
4855 """GetDataObject(self) -> DataObject"""
4856 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
4858 def SetCursor(*args
, **kwargs
):
4859 """SetCursor(self, int res, Cursor cursor)"""
4860 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
4862 def DoDragDrop(*args
, **kwargs
):
4863 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
4864 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
4866 def base_GiveFeedback(*args
, **kwargs
):
4867 """base_GiveFeedback(self, int effect) -> bool"""
4868 return _misc_
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4871 class DropSourcePtr(DropSource
):
4872 def __init__(self
, this
):
4874 if not hasattr(self
,"thisown"): self
.thisown
= 0
4875 self
.__class
__ = DropSource
4876 _misc_
.DropSource_swigregister(DropSourcePtr
)
4878 class DropTarget(object):
4880 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4881 def __init__(self
, *args
, **kwargs
):
4882 """__init__(self, DataObject dataObject=None) -> DropTarget"""
4883 newobj
= _misc_
.new_DropTarget(*args
, **kwargs
)
4884 self
.this
= newobj
.this
4887 self
._setCallbackInfo
(self
, DropTarget
)
4889 def _setCallbackInfo(*args
, **kwargs
):
4890 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4891 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4893 def __del__(self
, destroy
=_misc_
.delete_DropTarget
):
4896 if self
.thisown
: destroy(self
)
4899 def GetDataObject(*args
, **kwargs
):
4900 """GetDataObject(self) -> DataObject"""
4901 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
4903 def SetDataObject(*args
, **kwargs
):
4904 """SetDataObject(self, DataObject dataObject)"""
4905 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
4907 def base_OnEnter(*args
, **kwargs
):
4908 """base_OnEnter(self, int x, int y, int def) -> int"""
4909 return _misc_
.DropTarget_base_OnEnter(*args
, **kwargs
)
4911 def base_OnDragOver(*args
, **kwargs
):
4912 """base_OnDragOver(self, int x, int y, int def) -> int"""
4913 return _misc_
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4915 def base_OnLeave(*args
, **kwargs
):
4916 """base_OnLeave(self)"""
4917 return _misc_
.DropTarget_base_OnLeave(*args
, **kwargs
)
4919 def base_OnDrop(*args
, **kwargs
):
4920 """base_OnDrop(self, int x, int y) -> bool"""
4921 return _misc_
.DropTarget_base_OnDrop(*args
, **kwargs
)
4923 def GetData(*args
, **kwargs
):
4924 """GetData(self) -> bool"""
4925 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
4928 class DropTargetPtr(DropTarget
):
4929 def __init__(self
, this
):
4931 if not hasattr(self
,"thisown"): self
.thisown
= 0
4932 self
.__class
__ = DropTarget
4933 _misc_
.DropTarget_swigregister(DropTargetPtr
)
4935 PyDropTarget
= DropTarget
4936 class TextDropTarget(DropTarget
):
4938 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4939 def __init__(self
, *args
, **kwargs
):
4940 """__init__(self) -> TextDropTarget"""
4941 newobj
= _misc_
.new_TextDropTarget(*args
, **kwargs
)
4942 self
.this
= newobj
.this
4945 self
._setCallbackInfo
(self
, TextDropTarget
)
4947 def _setCallbackInfo(*args
, **kwargs
):
4948 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4949 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4951 def base_OnEnter(*args
, **kwargs
):
4952 """base_OnEnter(self, int x, int y, int def) -> int"""
4953 return _misc_
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4955 def base_OnDragOver(*args
, **kwargs
):
4956 """base_OnDragOver(self, int x, int y, int def) -> int"""
4957 return _misc_
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4959 def base_OnLeave(*args
, **kwargs
):
4960 """base_OnLeave(self)"""
4961 return _misc_
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4963 def base_OnDrop(*args
, **kwargs
):
4964 """base_OnDrop(self, int x, int y) -> bool"""
4965 return _misc_
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4967 def base_OnData(*args
, **kwargs
):
4968 """base_OnData(self, int x, int y, int def) -> int"""
4969 return _misc_
.TextDropTarget_base_OnData(*args
, **kwargs
)
4972 class TextDropTargetPtr(TextDropTarget
):
4973 def __init__(self
, this
):
4975 if not hasattr(self
,"thisown"): self
.thisown
= 0
4976 self
.__class
__ = TextDropTarget
4977 _misc_
.TextDropTarget_swigregister(TextDropTargetPtr
)
4979 class FileDropTarget(DropTarget
):
4981 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4982 def __init__(self
, *args
, **kwargs
):
4983 """__init__(self) -> FileDropTarget"""
4984 newobj
= _misc_
.new_FileDropTarget(*args
, **kwargs
)
4985 self
.this
= newobj
.this
4988 self
._setCallbackInfo
(self
, FileDropTarget
)
4990 def _setCallbackInfo(*args
, **kwargs
):
4991 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4992 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
4994 def base_OnEnter(*args
, **kwargs
):
4995 """base_OnEnter(self, int x, int y, int def) -> int"""
4996 return _misc_
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
4998 def base_OnDragOver(*args
, **kwargs
):
4999 """base_OnDragOver(self, int x, int y, int def) -> int"""
5000 return _misc_
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
5002 def base_OnLeave(*args
, **kwargs
):
5003 """base_OnLeave(self)"""
5004 return _misc_
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
5006 def base_OnDrop(*args
, **kwargs
):
5007 """base_OnDrop(self, int x, int y) -> bool"""
5008 return _misc_
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
5010 def base_OnData(*args
, **kwargs
):
5011 """base_OnData(self, int x, int y, int def) -> int"""
5012 return _misc_
.FileDropTarget_base_OnData(*args
, **kwargs
)
5015 class FileDropTargetPtr(FileDropTarget
):
5016 def __init__(self
, this
):
5018 if not hasattr(self
,"thisown"): self
.thisown
= 0
5019 self
.__class
__ = FileDropTarget
5020 _misc_
.FileDropTarget_swigregister(FileDropTargetPtr
)
5022 #---------------------------------------------------------------------------
5024 class Clipboard(_core
.Object
):
5026 wx.Clipboard represents the system clipboard and provides methods to
5027 copy data to it or paste data from it. Normally, you should only use
5028 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5031 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5032 clipboard. If this operation returns True, you now own the
5033 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5034 to retrieve data from the clipboard. Call `Close` to close the
5035 clipboard and relinquish ownership. You should keep the clipboard open
5038 :see: `wx.DataObject`
5042 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5043 def __init__(self
, *args
, **kwargs
):
5044 """__init__(self) -> Clipboard"""
5045 newobj
= _misc_
.new_Clipboard(*args
, **kwargs
)
5046 self
.this
= newobj
.this
5049 def __del__(self
, destroy
=_misc_
.delete_Clipboard
):
5052 if self
.thisown
: destroy(self
)
5055 def Open(*args
, **kwargs
):
5059 Call this function to open the clipboard before calling SetData and
5060 GetData. Call Close when you have finished with the clipboard. You
5061 should keep the clipboard open for only a very short time. Returns
5064 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5066 def Close(*args
, **kwargs
):
5070 Closes the clipboard.
5072 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5074 def IsOpened(*args
, **kwargs
):
5076 IsOpened(self) -> bool
5078 Query whether the clipboard is opened
5080 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5082 def AddData(*args
, **kwargs
):
5084 AddData(self, DataObject data) -> bool
5086 Call this function to add the data object to the clipboard. You may
5087 call this function repeatedly after having cleared the clipboard.
5088 After this function has been called, the clipboard owns the data, so
5089 do not delete the data explicitly.
5091 :see: `wx.DataObject`
5093 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5095 def SetData(*args
, **kwargs
):
5097 SetData(self, DataObject data) -> bool
5099 Set the clipboard data, this is the same as `Clear` followed by
5102 :see: `wx.DataObject`
5104 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5106 def IsSupported(*args
, **kwargs
):
5108 IsSupported(self, DataFormat format) -> bool
5110 Returns True if the given format is available in the data object(s) on
5113 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5115 def GetData(*args
, **kwargs
):
5117 GetData(self, DataObject data) -> bool
5119 Call this function to fill data with data on the clipboard, if
5120 available in the required format. Returns true on success.
5122 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5124 def Clear(*args
, **kwargs
):
5128 Clears data from the clipboard object and also the system's clipboard
5131 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5133 def Flush(*args
, **kwargs
):
5137 Flushes the clipboard: this means that the data which is currently on
5138 clipboard will stay available even after the application exits,
5139 possibly eating memory, otherwise the clipboard will be emptied on
5140 exit. Returns False if the operation is unsuccesful for any reason.
5142 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5144 def UsePrimarySelection(*args
, **kwargs
):
5146 UsePrimarySelection(self, bool primary=True)
5148 On platforms supporting it (the X11 based platforms), selects the
5149 so called PRIMARY SELECTION as the clipboard as opposed to the
5150 normal clipboard, if primary is True.
5152 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5155 class ClipboardPtr(Clipboard
):
5156 def __init__(self
, this
):
5158 if not hasattr(self
,"thisown"): self
.thisown
= 0
5159 self
.__class
__ = Clipboard
5160 _misc_
.Clipboard_swigregister(ClipboardPtr
)
5162 class ClipboardLocker(object):
5164 A helpful class for opening the clipboard and automatically
5165 closing it when the locker is destroyed.
5168 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5169 def __init__(self
, *args
, **kwargs
):
5171 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5173 A helpful class for opening the clipboard and automatically
5174 closing it when the locker is destroyed.
5176 newobj
= _misc_
.new_ClipboardLocker(*args
, **kwargs
)
5177 self
.this
= newobj
.this
5180 def __del__(self
, destroy
=_misc_
.delete_ClipboardLocker
):
5183 if self
.thisown
: destroy(self
)
5186 def __nonzero__(*args
, **kwargs
):
5188 __nonzero__(self) -> bool
5190 A ClipboardLocker instance evaluates to True if the clipboard was
5191 successfully opened.
5193 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5196 class ClipboardLockerPtr(ClipboardLocker
):
5197 def __init__(self
, this
):
5199 if not hasattr(self
,"thisown"): self
.thisown
= 0
5200 self
.__class
__ = ClipboardLocker
5201 _misc_
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
5202 TheClipboard
= cvar
.TheClipboard
5204 #---------------------------------------------------------------------------
5206 class VideoMode(object):
5207 """A simple struct containing video mode parameters for a display"""
5209 return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5210 def __init__(self
, *args
, **kwargs
):
5212 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5214 A simple struct containing video mode parameters for a display
5216 newobj
= _misc_
.new_VideoMode(*args
, **kwargs
)
5217 self
.this
= newobj
.this
5220 def __del__(self
, destroy
=_misc_
.delete_VideoMode
):
5223 if self
.thisown
: destroy(self
)
5226 def Matches(*args
, **kwargs
):
5228 Matches(self, VideoMode other) -> bool
5230 Returns true if this mode matches the other one in the sense that
5231 all non zero fields of the other mode have the same value in this
5232 one (except for refresh which is allowed to have a greater value)
5234 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5236 def GetWidth(*args
, **kwargs
):
5238 GetWidth(self) -> int
5240 Returns the screen width in pixels (e.g. 640*480), 0 means
5243 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5245 def GetHeight(*args
, **kwargs
):
5247 GetHeight(self) -> int
5249 Returns the screen width in pixels (e.g. 640*480), 0 means
5252 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5254 def GetDepth(*args
, **kwargs
):
5256 GetDepth(self) -> int
5258 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome
5259 and 0 means unspecified/known
5261 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5263 def IsOk(*args
, **kwargs
):
5267 returns true if the object has been initialized
5269 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5271 def __nonzero__(self
): return self
.IsOk()
5272 def __eq__(*args
, **kwargs
):
5273 """__eq__(self, VideoMode other) -> bool"""
5274 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5276 def __ne__(*args
, **kwargs
):
5277 """__ne__(self, VideoMode other) -> bool"""
5278 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5280 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5281 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5282 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5283 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5285 class VideoModePtr(VideoMode
):
5286 def __init__(self
, this
):
5288 if not hasattr(self
,"thisown"): self
.thisown
= 0
5289 self
.__class
__ = VideoMode
5290 _misc_
.VideoMode_swigregister(VideoModePtr
)
5292 class Display(object):
5293 """Represents a display/monitor attached to the system"""
5295 return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5296 def __init__(self
, *args
, **kwargs
):
5298 __init__(self, size_t index=0) -> Display
5300 Set up a Display instance with the specified display. The
5301 displays are numbered from 0 to GetCount() - 1, 0 is always the
5302 primary display and the only one which is always supported
5304 newobj
= _misc_
.new_Display(*args
, **kwargs
)
5305 self
.this
= newobj
.this
5308 def __del__(self
, destroy
=_misc_
.delete_Display
):
5311 if self
.thisown
: destroy(self
)
5314 def GetCount(*args
, **kwargs
):
5316 GetCount() -> size_t
5318 Return the number of available displays.
5320 return _misc_
.Display_GetCount(*args
, **kwargs
)
5322 GetCount
= staticmethod(GetCount
)
5323 def GetFromPoint(*args
, **kwargs
):
5325 GetFromPoint(Point pt) -> int
5327 Find the display where the given point lies, return wx.NOT_FOUND
5328 if it doesn't belong to any display
5330 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5332 GetFromPoint
= staticmethod(GetFromPoint
)
5333 def GetFromWindow(*args
, **kwargs
):
5335 GetFromWindow(Window window) -> int
5337 Find the display where the given window lies, return wx.NOT_FOUND
5338 if it is not shown at all.
5340 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5342 GetFromWindow
= staticmethod(GetFromWindow
)
5343 def IsOk(*args
, **kwargs
):
5347 Return true if the object was initialized successfully
5349 return _misc_
.Display_IsOk(*args
, **kwargs
)
5351 def __nonzero__(self
): return self
.IsOk()
5352 def GetGeometry(*args
, **kwargs
):
5354 GetGeometry(self) -> Rect
5356 Returns the bounding rectangle of the display whose index was
5357 passed to the constructor.
5359 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5361 def GetName(*args
, **kwargs
):
5363 GetName(self) -> String
5365 Returns the display's name. A name is not available on all platforms.
5367 return _misc_
.Display_GetName(*args
, **kwargs
)
5369 def IsPrimary(*args
, **kwargs
):
5371 IsPrimary(self) -> bool
5373 Returns true if the display is the primary display. The primary
5374 display is the one whose index is 0.
5376 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5378 def GetModes(*args
, **kwargs
):
5380 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5382 Enumerate all video modes supported by this display matching the
5383 given one (in the sense of VideoMode.Match()).
5385 As any mode matches the default value of the argument and there
5386 is always at least one video mode supported by display, the
5387 returned array is only empty for the default value of the
5388 argument if this function is not supported at all on this
5391 return _misc_
.Display_GetModes(*args
, **kwargs
)
5393 def GetCurrentMode(*args
, **kwargs
):
5395 GetCurrentMode(self) -> VideoMode
5397 Get the current video mode.
5399 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5401 def ChangeMode(*args
, **kwargs
):
5403 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5405 Change current mode, return true if succeeded, false otherwise
5407 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5409 def ResetMode(*args
, **kwargs
):
5413 Restore the default video mode (just a more readable synonym)
5415 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5418 class DisplayPtr(Display
):
5419 def __init__(self
, this
):
5421 if not hasattr(self
,"thisown"): self
.thisown
= 0
5422 self
.__class
__ = Display
5423 _misc_
.Display_swigregister(DisplayPtr
)
5424 DefaultVideoMode
= cvar
.DefaultVideoMode
5426 def Display_GetCount(*args
, **kwargs
):
5428 Display_GetCount() -> size_t
5430 Return the number of available displays.
5432 return _misc_
.Display_GetCount(*args
, **kwargs
)
5434 def Display_GetFromPoint(*args
, **kwargs
):
5436 Display_GetFromPoint(Point pt) -> int
5438 Find the display where the given point lies, return wx.NOT_FOUND
5439 if it doesn't belong to any display
5441 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5443 def Display_GetFromWindow(*args
, **kwargs
):
5445 Display_GetFromWindow(Window window) -> int
5447 Find the display where the given window lies, return wx.NOT_FOUND
5448 if it is not shown at all.
5450 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)