1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 __docfilter__
= wx
.__docfilter
__
9 #---------------------------------------------------------------------------
11 SYS_OEM_FIXED_FONT
= _misc_
.SYS_OEM_FIXED_FONT
12 SYS_ANSI_FIXED_FONT
= _misc_
.SYS_ANSI_FIXED_FONT
13 SYS_ANSI_VAR_FONT
= _misc_
.SYS_ANSI_VAR_FONT
14 SYS_SYSTEM_FONT
= _misc_
.SYS_SYSTEM_FONT
15 SYS_DEVICE_DEFAULT_FONT
= _misc_
.SYS_DEVICE_DEFAULT_FONT
16 SYS_DEFAULT_PALETTE
= _misc_
.SYS_DEFAULT_PALETTE
17 SYS_SYSTEM_FIXED_FONT
= _misc_
.SYS_SYSTEM_FIXED_FONT
18 SYS_DEFAULT_GUI_FONT
= _misc_
.SYS_DEFAULT_GUI_FONT
19 SYS_ICONTITLE_FONT
= _misc_
.SYS_ICONTITLE_FONT
20 SYS_COLOUR_SCROLLBAR
= _misc_
.SYS_COLOUR_SCROLLBAR
21 SYS_COLOUR_BACKGROUND
= _misc_
.SYS_COLOUR_BACKGROUND
22 SYS_COLOUR_DESKTOP
= _misc_
.SYS_COLOUR_DESKTOP
23 SYS_COLOUR_ACTIVECAPTION
= _misc_
.SYS_COLOUR_ACTIVECAPTION
24 SYS_COLOUR_INACTIVECAPTION
= _misc_
.SYS_COLOUR_INACTIVECAPTION
25 SYS_COLOUR_MENU
= _misc_
.SYS_COLOUR_MENU
26 SYS_COLOUR_WINDOW
= _misc_
.SYS_COLOUR_WINDOW
27 SYS_COLOUR_WINDOWFRAME
= _misc_
.SYS_COLOUR_WINDOWFRAME
28 SYS_COLOUR_MENUTEXT
= _misc_
.SYS_COLOUR_MENUTEXT
29 SYS_COLOUR_WINDOWTEXT
= _misc_
.SYS_COLOUR_WINDOWTEXT
30 SYS_COLOUR_CAPTIONTEXT
= _misc_
.SYS_COLOUR_CAPTIONTEXT
31 SYS_COLOUR_ACTIVEBORDER
= _misc_
.SYS_COLOUR_ACTIVEBORDER
32 SYS_COLOUR_INACTIVEBORDER
= _misc_
.SYS_COLOUR_INACTIVEBORDER
33 SYS_COLOUR_APPWORKSPACE
= _misc_
.SYS_COLOUR_APPWORKSPACE
34 SYS_COLOUR_HIGHLIGHT
= _misc_
.SYS_COLOUR_HIGHLIGHT
35 SYS_COLOUR_HIGHLIGHTTEXT
= _misc_
.SYS_COLOUR_HIGHLIGHTTEXT
36 SYS_COLOUR_BTNFACE
= _misc_
.SYS_COLOUR_BTNFACE
37 SYS_COLOUR_3DFACE
= _misc_
.SYS_COLOUR_3DFACE
38 SYS_COLOUR_BTNSHADOW
= _misc_
.SYS_COLOUR_BTNSHADOW
39 SYS_COLOUR_3DSHADOW
= _misc_
.SYS_COLOUR_3DSHADOW
40 SYS_COLOUR_GRAYTEXT
= _misc_
.SYS_COLOUR_GRAYTEXT
41 SYS_COLOUR_BTNTEXT
= _misc_
.SYS_COLOUR_BTNTEXT
42 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc_
.SYS_COLOUR_INACTIVECAPTIONTEXT
43 SYS_COLOUR_BTNHIGHLIGHT
= _misc_
.SYS_COLOUR_BTNHIGHLIGHT
44 SYS_COLOUR_BTNHILIGHT
= _misc_
.SYS_COLOUR_BTNHILIGHT
45 SYS_COLOUR_3DHIGHLIGHT
= _misc_
.SYS_COLOUR_3DHIGHLIGHT
46 SYS_COLOUR_3DHILIGHT
= _misc_
.SYS_COLOUR_3DHILIGHT
47 SYS_COLOUR_3DDKSHADOW
= _misc_
.SYS_COLOUR_3DDKSHADOW
48 SYS_COLOUR_3DLIGHT
= _misc_
.SYS_COLOUR_3DLIGHT
49 SYS_COLOUR_INFOTEXT
= _misc_
.SYS_COLOUR_INFOTEXT
50 SYS_COLOUR_INFOBK
= _misc_
.SYS_COLOUR_INFOBK
51 SYS_COLOUR_LISTBOX
= _misc_
.SYS_COLOUR_LISTBOX
52 SYS_COLOUR_HOTLIGHT
= _misc_
.SYS_COLOUR_HOTLIGHT
53 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTACTIVECAPTION
54 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTINACTIVECAPTION
55 SYS_COLOUR_MENUHILIGHT
= _misc_
.SYS_COLOUR_MENUHILIGHT
56 SYS_COLOUR_MENUBAR
= _misc_
.SYS_COLOUR_MENUBAR
57 SYS_COLOUR_MAX
= _misc_
.SYS_COLOUR_MAX
58 SYS_MOUSE_BUTTONS
= _misc_
.SYS_MOUSE_BUTTONS
59 SYS_BORDER_X
= _misc_
.SYS_BORDER_X
60 SYS_BORDER_Y
= _misc_
.SYS_BORDER_Y
61 SYS_CURSOR_X
= _misc_
.SYS_CURSOR_X
62 SYS_CURSOR_Y
= _misc_
.SYS_CURSOR_Y
63 SYS_DCLICK_X
= _misc_
.SYS_DCLICK_X
64 SYS_DCLICK_Y
= _misc_
.SYS_DCLICK_Y
65 SYS_DRAG_X
= _misc_
.SYS_DRAG_X
66 SYS_DRAG_Y
= _misc_
.SYS_DRAG_Y
67 SYS_EDGE_X
= _misc_
.SYS_EDGE_X
68 SYS_EDGE_Y
= _misc_
.SYS_EDGE_Y
69 SYS_HSCROLL_ARROW_X
= _misc_
.SYS_HSCROLL_ARROW_X
70 SYS_HSCROLL_ARROW_Y
= _misc_
.SYS_HSCROLL_ARROW_Y
71 SYS_HTHUMB_X
= _misc_
.SYS_HTHUMB_X
72 SYS_ICON_X
= _misc_
.SYS_ICON_X
73 SYS_ICON_Y
= _misc_
.SYS_ICON_Y
74 SYS_ICONSPACING_X
= _misc_
.SYS_ICONSPACING_X
75 SYS_ICONSPACING_Y
= _misc_
.SYS_ICONSPACING_Y
76 SYS_WINDOWMIN_X
= _misc_
.SYS_WINDOWMIN_X
77 SYS_WINDOWMIN_Y
= _misc_
.SYS_WINDOWMIN_Y
78 SYS_SCREEN_X
= _misc_
.SYS_SCREEN_X
79 SYS_SCREEN_Y
= _misc_
.SYS_SCREEN_Y
80 SYS_FRAMESIZE_X
= _misc_
.SYS_FRAMESIZE_X
81 SYS_FRAMESIZE_Y
= _misc_
.SYS_FRAMESIZE_Y
82 SYS_SMALLICON_X
= _misc_
.SYS_SMALLICON_X
83 SYS_SMALLICON_Y
= _misc_
.SYS_SMALLICON_Y
84 SYS_HSCROLL_Y
= _misc_
.SYS_HSCROLL_Y
85 SYS_VSCROLL_X
= _misc_
.SYS_VSCROLL_X
86 SYS_VSCROLL_ARROW_X
= _misc_
.SYS_VSCROLL_ARROW_X
87 SYS_VSCROLL_ARROW_Y
= _misc_
.SYS_VSCROLL_ARROW_Y
88 SYS_VTHUMB_Y
= _misc_
.SYS_VTHUMB_Y
89 SYS_CAPTION_Y
= _misc_
.SYS_CAPTION_Y
90 SYS_MENU_Y
= _misc_
.SYS_MENU_Y
91 SYS_NETWORK_PRESENT
= _misc_
.SYS_NETWORK_PRESENT
92 SYS_PENWINDOWS_PRESENT
= _misc_
.SYS_PENWINDOWS_PRESENT
93 SYS_SHOW_SOUNDS
= _misc_
.SYS_SHOW_SOUNDS
94 SYS_SWAP_BUTTONS
= _misc_
.SYS_SWAP_BUTTONS
95 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc_
.SYS_CAN_DRAW_FRAME_DECORATIONS
96 SYS_CAN_ICONIZE_FRAME
= _misc_
.SYS_CAN_ICONIZE_FRAME
97 SYS_SCREEN_NONE
= _misc_
.SYS_SCREEN_NONE
98 SYS_SCREEN_TINY
= _misc_
.SYS_SCREEN_TINY
99 SYS_SCREEN_PDA
= _misc_
.SYS_SCREEN_PDA
100 SYS_SCREEN_SMALL
= _misc_
.SYS_SCREEN_SMALL
101 SYS_SCREEN_DESKTOP
= _misc_
.SYS_SCREEN_DESKTOP
102 class SystemSettings(object):
103 def __init__(self
): raise RuntimeError, "No constructor defined"
105 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
106 def GetColour(*args
, **kwargs
):
107 """SystemSettings.GetColour(int index) -> Colour"""
108 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
110 GetColour
= staticmethod(GetColour
)
111 def GetFont(*args
, **kwargs
):
112 """SystemSettings.GetFont(int index) -> Font"""
113 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
115 GetFont
= staticmethod(GetFont
)
116 def GetMetric(*args
, **kwargs
):
117 """SystemSettings.GetMetric(int index) -> int"""
118 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
120 GetMetric
= staticmethod(GetMetric
)
121 def HasFeature(*args
, **kwargs
):
122 """SystemSettings.HasFeature(int index) -> bool"""
123 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
125 HasFeature
= staticmethod(HasFeature
)
126 def GetScreenType(*args
, **kwargs
):
127 """SystemSettings.GetScreenType() -> int"""
128 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
130 GetScreenType
= staticmethod(GetScreenType
)
131 def SetScreenType(*args
, **kwargs
):
132 """SystemSettings.SetScreenType(int screen)"""
133 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
135 SetScreenType
= staticmethod(SetScreenType
)
137 class SystemSettingsPtr(SystemSettings
):
138 def __init__(self
, this
):
140 if not hasattr(self
,"thisown"): self
.thisown
= 0
141 self
.__class
__ = SystemSettings
142 _misc_
.SystemSettings_swigregister(SystemSettingsPtr
)
144 def SystemSettings_GetColour(*args
, **kwargs
):
145 """SystemSettings_GetColour(int index) -> Colour"""
146 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
148 def SystemSettings_GetFont(*args
, **kwargs
):
149 """SystemSettings_GetFont(int index) -> Font"""
150 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
152 def SystemSettings_GetMetric(*args
, **kwargs
):
153 """SystemSettings_GetMetric(int index) -> int"""
154 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
156 def SystemSettings_HasFeature(*args
, **kwargs
):
157 """SystemSettings_HasFeature(int index) -> bool"""
158 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
160 def SystemSettings_GetScreenType(*args
, **kwargs
):
161 """SystemSettings_GetScreenType() -> int"""
162 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
164 def SystemSettings_SetScreenType(*args
, **kwargs
):
165 """SystemSettings_SetScreenType(int screen)"""
166 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
168 class SystemOptions(_core
.Object
):
170 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
171 def __init__(self
, *args
, **kwargs
):
172 """__init__(self) -> SystemOptions"""
173 newobj
= _misc_
.new_SystemOptions(*args
, **kwargs
)
174 self
.this
= newobj
.this
177 def SetOption(*args
, **kwargs
):
178 """SystemOptions.SetOption(String name, String value)"""
179 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
181 SetOption
= staticmethod(SetOption
)
182 def SetOptionInt(*args
, **kwargs
):
183 """SystemOptions.SetOptionInt(String name, int value)"""
184 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
186 SetOptionInt
= staticmethod(SetOptionInt
)
187 def GetOption(*args
, **kwargs
):
188 """SystemOptions.GetOption(String name) -> String"""
189 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
191 GetOption
= staticmethod(GetOption
)
192 def GetOptionInt(*args
, **kwargs
):
193 """SystemOptions.GetOptionInt(String name) -> int"""
194 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
196 GetOptionInt
= staticmethod(GetOptionInt
)
197 def HasOption(*args
, **kwargs
):
198 """SystemOptions.HasOption(String name) -> bool"""
199 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
201 HasOption
= staticmethod(HasOption
)
203 class SystemOptionsPtr(SystemOptions
):
204 def __init__(self
, this
):
206 if not hasattr(self
,"thisown"): self
.thisown
= 0
207 self
.__class
__ = SystemOptions
208 _misc_
.SystemOptions_swigregister(SystemOptionsPtr
)
210 def SystemOptions_SetOption(*args
, **kwargs
):
211 """SystemOptions_SetOption(String name, String value)"""
212 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
214 def SystemOptions_SetOptionInt(*args
, **kwargs
):
215 """SystemOptions_SetOptionInt(String name, int value)"""
216 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
218 def SystemOptions_GetOption(*args
, **kwargs
):
219 """SystemOptions_GetOption(String name) -> String"""
220 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
222 def SystemOptions_GetOptionInt(*args
, **kwargs
):
223 """SystemOptions_GetOptionInt(String name) -> int"""
224 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
226 def SystemOptions_HasOption(*args
, **kwargs
):
227 """SystemOptions_HasOption(String name) -> bool"""
228 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
230 #---------------------------------------------------------------------------
233 def NewId(*args
, **kwargs
):
234 """NewId() -> long"""
235 return _misc_
.NewId(*args
, **kwargs
)
237 def RegisterId(*args
, **kwargs
):
238 """RegisterId(long id)"""
239 return _misc_
.RegisterId(*args
, **kwargs
)
241 def GetCurrentId(*args
, **kwargs
):
242 """GetCurrentId() -> long"""
243 return _misc_
.GetCurrentId(*args
, **kwargs
)
245 def Bell(*args
, **kwargs
):
247 return _misc_
.Bell(*args
, **kwargs
)
249 def EndBusyCursor(*args
, **kwargs
):
250 """EndBusyCursor()"""
251 return _misc_
.EndBusyCursor(*args
, **kwargs
)
253 def GetElapsedTime(*args
, **kwargs
):
254 """GetElapsedTime(bool resetTimer=True) -> long"""
255 return _misc_
.GetElapsedTime(*args
, **kwargs
)
257 def GetMousePosition(*args
, **kwargs
):
258 """GetMousePosition() -> (x,y)"""
259 return _misc_
.GetMousePosition(*args
, **kwargs
)
261 def IsBusy(*args
, **kwargs
):
262 """IsBusy() -> bool"""
263 return _misc_
.IsBusy(*args
, **kwargs
)
265 def Now(*args
, **kwargs
):
266 """Now() -> String"""
267 return _misc_
.Now(*args
, **kwargs
)
269 def Shell(*args
, **kwargs
):
270 """Shell(String command=EmptyString) -> bool"""
271 return _misc_
.Shell(*args
, **kwargs
)
273 def StartTimer(*args
, **kwargs
):
275 return _misc_
.StartTimer(*args
, **kwargs
)
277 def GetOsVersion(*args
, **kwargs
):
278 """GetOsVersion() -> (platform, major, minor)"""
279 return _misc_
.GetOsVersion(*args
, **kwargs
)
281 def GetOsDescription(*args
, **kwargs
):
282 """GetOsDescription() -> String"""
283 return _misc_
.GetOsDescription(*args
, **kwargs
)
285 def GetFreeMemory(*args
, **kwargs
):
286 """GetFreeMemory() -> long"""
287 return _misc_
.GetFreeMemory(*args
, **kwargs
)
288 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
289 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
291 def Shutdown(*args
, **kwargs
):
292 """Shutdown(int wFlags) -> bool"""
293 return _misc_
.Shutdown(*args
, **kwargs
)
295 def Sleep(*args
, **kwargs
):
296 """Sleep(int secs)"""
297 return _misc_
.Sleep(*args
, **kwargs
)
299 def Usleep(*args
, **kwargs
):
300 """Usleep(unsigned long milliseconds)"""
301 return _misc_
.Usleep(*args
, **kwargs
)
303 def EnableTopLevelWindows(*args
, **kwargs
):
304 """EnableTopLevelWindows(bool enable)"""
305 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
307 def StripMenuCodes(*args
, **kwargs
):
308 """StripMenuCodes(String in) -> String"""
309 return _misc_
.StripMenuCodes(*args
, **kwargs
)
311 def GetEmailAddress(*args
, **kwargs
):
312 """GetEmailAddress() -> String"""
313 return _misc_
.GetEmailAddress(*args
, **kwargs
)
315 def GetHostName(*args
, **kwargs
):
316 """GetHostName() -> String"""
317 return _misc_
.GetHostName(*args
, **kwargs
)
319 def GetFullHostName(*args
, **kwargs
):
320 """GetFullHostName() -> String"""
321 return _misc_
.GetFullHostName(*args
, **kwargs
)
323 def GetUserId(*args
, **kwargs
):
324 """GetUserId() -> String"""
325 return _misc_
.GetUserId(*args
, **kwargs
)
327 def GetUserName(*args
, **kwargs
):
328 """GetUserName() -> String"""
329 return _misc_
.GetUserName(*args
, **kwargs
)
331 def GetHomeDir(*args
, **kwargs
):
332 """GetHomeDir() -> String"""
333 return _misc_
.GetHomeDir(*args
, **kwargs
)
335 def GetUserHome(*args
, **kwargs
):
336 """GetUserHome(String user=EmptyString) -> String"""
337 return _misc_
.GetUserHome(*args
, **kwargs
)
339 def GetProcessId(*args
, **kwargs
):
340 """GetProcessId() -> unsigned long"""
341 return _misc_
.GetProcessId(*args
, **kwargs
)
343 def Trap(*args
, **kwargs
):
345 return _misc_
.Trap(*args
, **kwargs
)
347 def FileSelector(*args
, **kwargs
):
349 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
350 String default_filename=EmptyString,
351 String default_extension=EmptyString,
352 String wildcard=FileSelectorDefaultWildcardStr,
353 int flags=0, Window parent=None, int x=-1,
356 return _misc_
.FileSelector(*args
, **kwargs
)
358 def LoadFileSelector(*args
, **kwargs
):
360 LoadFileSelector(String what, String extension, String default_name=EmptyString,
361 Window parent=None) -> String
363 return _misc_
.LoadFileSelector(*args
, **kwargs
)
365 def SaveFileSelector(*args
, **kwargs
):
367 SaveFileSelector(String what, String extension, String default_name=EmptyString,
368 Window parent=None) -> String
370 return _misc_
.SaveFileSelector(*args
, **kwargs
)
372 def DirSelector(*args
, **kwargs
):
374 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
375 long style=DD_DEFAULT_STYLE,
376 Point pos=DefaultPosition, Window parent=None) -> String
378 return _misc_
.DirSelector(*args
, **kwargs
)
380 def GetTextFromUser(*args
, **kwargs
):
382 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
384 int x=-1, int y=-1, bool centre=True) -> String
386 return _misc_
.GetTextFromUser(*args
, **kwargs
)
388 def GetPasswordFromUser(*args
, **kwargs
):
390 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
391 Window parent=None) -> String
393 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
395 def GetSingleChoice(*args
, **kwargs
):
397 GetSingleChoice(String message, String caption, int choices, String choices_array,
398 Window parent=None, int x=-1,
399 int y=-1, bool centre=True, int width=150, int height=200) -> String
401 return _misc_
.GetSingleChoice(*args
, **kwargs
)
403 def GetSingleChoiceIndex(*args
, **kwargs
):
405 GetSingleChoiceIndex(String message, String caption, int choices, String choices_array,
406 Window parent=None, int x=-1,
407 int y=-1, bool centre=True, int width=150, int height=200) -> int
409 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
411 def MessageBox(*args
, **kwargs
):
413 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
414 Window parent=None, int x=-1,
417 return _misc_
.MessageBox(*args
, **kwargs
)
419 def GetNumberFromUser(*args
, **kwargs
):
421 GetNumberFromUser(String message, String prompt, String caption, long value,
422 long min=0, long max=100, Window parent=None,
423 Point pos=DefaultPosition) -> long
425 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
427 def ColourDisplay(*args
, **kwargs
):
428 """ColourDisplay() -> bool"""
429 return _misc_
.ColourDisplay(*args
, **kwargs
)
431 def DisplayDepth(*args
, **kwargs
):
432 """DisplayDepth() -> int"""
433 return _misc_
.DisplayDepth(*args
, **kwargs
)
435 def GetDisplayDepth(*args
, **kwargs
):
436 """GetDisplayDepth() -> int"""
437 return _misc_
.GetDisplayDepth(*args
, **kwargs
)
439 def DisplaySize(*args
, **kwargs
):
440 """DisplaySize() -> (width, height)"""
441 return _misc_
.DisplaySize(*args
, **kwargs
)
443 def GetDisplaySize(*args
, **kwargs
):
444 """GetDisplaySize() -> Size"""
445 return _misc_
.GetDisplaySize(*args
, **kwargs
)
447 def DisplaySizeMM(*args
, **kwargs
):
448 """DisplaySizeMM() -> (width, height)"""
449 return _misc_
.DisplaySizeMM(*args
, **kwargs
)
451 def GetDisplaySizeMM(*args
, **kwargs
):
452 """GetDisplaySizeMM() -> Size"""
453 return _misc_
.GetDisplaySizeMM(*args
, **kwargs
)
455 def ClientDisplayRect(*args
, **kwargs
):
456 """ClientDisplayRect() -> (x, y, width, height)"""
457 return _misc_
.ClientDisplayRect(*args
, **kwargs
)
459 def GetClientDisplayRect(*args
, **kwargs
):
460 """GetClientDisplayRect() -> Rect"""
461 return _misc_
.GetClientDisplayRect(*args
, **kwargs
)
463 def SetCursor(*args
, **kwargs
):
464 """SetCursor(Cursor cursor)"""
465 return _misc_
.SetCursor(*args
, **kwargs
)
467 def BeginBusyCursor(*args
, **kwargs
):
468 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
469 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
471 def GetActiveWindow(*args
, **kwargs
):
472 """GetActiveWindow() -> Window"""
473 return _misc_
.GetActiveWindow(*args
, **kwargs
)
475 def GenericFindWindowAtPoint(*args
, **kwargs
):
476 """GenericFindWindowAtPoint(Point pt) -> Window"""
477 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
479 def FindWindowAtPoint(*args
, **kwargs
):
480 """FindWindowAtPoint(Point pt) -> Window"""
481 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
483 def GetTopLevelParent(*args
, **kwargs
):
484 """GetTopLevelParent(Window win) -> Window"""
485 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
487 def GetKeyState(*args
, **kwargs
):
488 """GetKeyState(int key) -> bool"""
489 return _misc_
.GetKeyState(*args
, **kwargs
)
491 def WakeUpMainThread(*args
, **kwargs
):
492 """WakeUpMainThread()"""
493 return _misc_
.WakeUpMainThread(*args
, **kwargs
)
495 def MutexGuiEnter(*args
, **kwargs
):
496 """MutexGuiEnter()"""
497 return _misc_
.MutexGuiEnter(*args
, **kwargs
)
499 def MutexGuiLeave(*args
, **kwargs
):
500 """MutexGuiLeave()"""
501 return _misc_
.MutexGuiLeave(*args
, **kwargs
)
502 class MutexGuiLocker(object):
504 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
505 def __init__(self
, *args
, **kwargs
):
506 """__init__(self) -> MutexGuiLocker"""
507 newobj
= _misc_
.new_MutexGuiLocker(*args
, **kwargs
)
508 self
.this
= newobj
.this
511 def __del__(self
, destroy
=_misc_
.delete_MutexGuiLocker
):
514 if self
.thisown
: destroy(self
)
518 class MutexGuiLockerPtr(MutexGuiLocker
):
519 def __init__(self
, this
):
521 if not hasattr(self
,"thisown"): self
.thisown
= 0
522 self
.__class
__ = MutexGuiLocker
523 _misc_
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
525 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
526 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
527 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
530 def Thread_IsMain(*args
, **kwargs
):
531 """Thread_IsMain() -> bool"""
532 return _misc_
.Thread_IsMain(*args
, **kwargs
)
533 #---------------------------------------------------------------------------
535 class ToolTip(_core
.Object
):
537 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
538 def __init__(self
, *args
, **kwargs
):
539 """__init__(self, String tip) -> ToolTip"""
540 newobj
= _misc_
.new_ToolTip(*args
, **kwargs
)
541 self
.this
= newobj
.this
544 def SetTip(*args
, **kwargs
):
545 """SetTip(self, String tip)"""
546 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
548 def GetTip(*args
, **kwargs
):
549 """GetTip(self) -> String"""
550 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
552 def GetWindow(*args
, **kwargs
):
553 """GetWindow(self) -> Window"""
554 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
556 def Enable(*args
, **kwargs
):
557 """ToolTip.Enable(bool flag)"""
558 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
560 Enable
= staticmethod(Enable
)
561 def SetDelay(*args
, **kwargs
):
562 """ToolTip.SetDelay(long milliseconds)"""
563 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
565 SetDelay
= staticmethod(SetDelay
)
567 class ToolTipPtr(ToolTip
):
568 def __init__(self
, this
):
570 if not hasattr(self
,"thisown"): self
.thisown
= 0
571 self
.__class
__ = ToolTip
572 _misc_
.ToolTip_swigregister(ToolTipPtr
)
574 def ToolTip_Enable(*args
, **kwargs
):
575 """ToolTip_Enable(bool flag)"""
576 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
578 def ToolTip_SetDelay(*args
, **kwargs
):
579 """ToolTip_SetDelay(long milliseconds)"""
580 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
584 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
585 def __init__(self
, *args
, **kwargs
):
586 """__init__(self, Window window, Size size) -> Caret"""
587 newobj
= _misc_
.new_Caret(*args
, **kwargs
)
588 self
.this
= newobj
.this
591 def __del__(self
, destroy
=_misc_
.delete_Caret
):
594 if self
.thisown
: destroy(self
)
597 def IsOk(*args
, **kwargs
):
598 """IsOk(self) -> bool"""
599 return _misc_
.Caret_IsOk(*args
, **kwargs
)
601 def IsVisible(*args
, **kwargs
):
602 """IsVisible(self) -> bool"""
603 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
605 def GetPosition(*args
, **kwargs
):
606 """GetPosition(self) -> Point"""
607 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
609 def GetPositionTuple(*args
, **kwargs
):
610 """GetPositionTuple() -> (x,y)"""
611 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
613 def GetSize(*args
, **kwargs
):
614 """GetSize(self) -> Size"""
615 return _misc_
.Caret_GetSize(*args
, **kwargs
)
617 def GetSizeTuple(*args
, **kwargs
):
618 """GetSizeTuple() -> (width, height)"""
619 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
621 def GetWindow(*args
, **kwargs
):
622 """GetWindow(self) -> Window"""
623 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
625 def MoveXY(*args
, **kwargs
):
626 """MoveXY(self, int x, int y)"""
627 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
629 def Move(*args
, **kwargs
):
630 """Move(self, Point pt)"""
631 return _misc_
.Caret_Move(*args
, **kwargs
)
633 def SetSizeWH(*args
, **kwargs
):
634 """SetSizeWH(self, int width, int height)"""
635 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
637 def SetSize(*args
, **kwargs
):
638 """SetSize(self, Size size)"""
639 return _misc_
.Caret_SetSize(*args
, **kwargs
)
641 def Show(*args
, **kwargs
):
642 """Show(self, int show=True)"""
643 return _misc_
.Caret_Show(*args
, **kwargs
)
645 def Hide(*args
, **kwargs
):
647 return _misc_
.Caret_Hide(*args
, **kwargs
)
649 def __nonzero__(self
): return self
.IsOk()
651 class CaretPtr(Caret
):
652 def __init__(self
, this
):
654 if not hasattr(self
,"thisown"): self
.thisown
= 0
655 self
.__class
__ = Caret
656 _misc_
.Caret_swigregister(CaretPtr
)
659 def Caret_GetBlinkTime(*args
, **kwargs
):
660 """Caret_GetBlinkTime() -> int"""
661 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
663 def Caret_SetBlinkTime(*args
, **kwargs
):
664 """Caret_SetBlinkTime(int milliseconds)"""
665 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
666 class BusyCursor(object):
668 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
669 def __init__(self
, *args
, **kwargs
):
670 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
671 newobj
= _misc_
.new_BusyCursor(*args
, **kwargs
)
672 self
.this
= newobj
.this
675 def __del__(self
, destroy
=_misc_
.delete_BusyCursor
):
678 if self
.thisown
: destroy(self
)
682 class BusyCursorPtr(BusyCursor
):
683 def __init__(self
, this
):
685 if not hasattr(self
,"thisown"): self
.thisown
= 0
686 self
.__class
__ = BusyCursor
687 _misc_
.BusyCursor_swigregister(BusyCursorPtr
)
689 class WindowDisabler(object):
691 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
692 def __init__(self
, *args
, **kwargs
):
693 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
694 newobj
= _misc_
.new_WindowDisabler(*args
, **kwargs
)
695 self
.this
= newobj
.this
698 def __del__(self
, destroy
=_misc_
.delete_WindowDisabler
):
701 if self
.thisown
: destroy(self
)
705 class WindowDisablerPtr(WindowDisabler
):
706 def __init__(self
, this
):
708 if not hasattr(self
,"thisown"): self
.thisown
= 0
709 self
.__class
__ = WindowDisabler
710 _misc_
.WindowDisabler_swigregister(WindowDisablerPtr
)
712 class BusyInfo(_core
.Object
):
714 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
715 def __init__(self
, *args
, **kwargs
):
716 """__init__(self, String message) -> BusyInfo"""
717 newobj
= _misc_
.new_BusyInfo(*args
, **kwargs
)
718 self
.this
= newobj
.this
721 def __del__(self
, destroy
=_misc_
.delete_BusyInfo
):
724 if self
.thisown
: destroy(self
)
728 class BusyInfoPtr(BusyInfo
):
729 def __init__(self
, this
):
731 if not hasattr(self
,"thisown"): self
.thisown
= 0
732 self
.__class
__ = BusyInfo
733 _misc_
.BusyInfo_swigregister(BusyInfoPtr
)
735 class StopWatch(object):
737 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
738 def __init__(self
, *args
, **kwargs
):
739 """__init__(self) -> StopWatch"""
740 newobj
= _misc_
.new_StopWatch(*args
, **kwargs
)
741 self
.this
= newobj
.this
744 def Start(*args
, **kwargs
):
745 """Start(self, long t0=0)"""
746 return _misc_
.StopWatch_Start(*args
, **kwargs
)
748 def Pause(*args
, **kwargs
):
750 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
752 def Resume(*args
, **kwargs
):
754 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
756 def Time(*args
, **kwargs
):
757 """Time(self) -> long"""
758 return _misc_
.StopWatch_Time(*args
, **kwargs
)
761 class StopWatchPtr(StopWatch
):
762 def __init__(self
, this
):
764 if not hasattr(self
,"thisown"): self
.thisown
= 0
765 self
.__class
__ = StopWatch
766 _misc_
.StopWatch_swigregister(StopWatchPtr
)
768 class FileHistory(_core
.Object
):
770 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
771 def __init__(self
, *args
, **kwargs
):
772 """__init__(self, int maxFiles=9) -> FileHistory"""
773 newobj
= _misc_
.new_FileHistory(*args
, **kwargs
)
774 self
.this
= newobj
.this
777 def __del__(self
, destroy
=_misc_
.delete_FileHistory
):
780 if self
.thisown
: destroy(self
)
783 def AddFileToHistory(*args
, **kwargs
):
784 """AddFileToHistory(self, String file)"""
785 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
787 def RemoveFileFromHistory(*args
, **kwargs
):
788 """RemoveFileFromHistory(self, int i)"""
789 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
791 def GetMaxFiles(*args
, **kwargs
):
792 """GetMaxFiles(self) -> int"""
793 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
795 def UseMenu(*args
, **kwargs
):
796 """UseMenu(self, Menu menu)"""
797 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
799 def RemoveMenu(*args
, **kwargs
):
800 """RemoveMenu(self, Menu menu)"""
801 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
803 def Load(*args
, **kwargs
):
804 """Load(self, ConfigBase config)"""
805 return _misc_
.FileHistory_Load(*args
, **kwargs
)
807 def Save(*args
, **kwargs
):
808 """Save(self, ConfigBase config)"""
809 return _misc_
.FileHistory_Save(*args
, **kwargs
)
811 def AddFilesToMenu(*args
, **kwargs
):
812 """AddFilesToMenu(self)"""
813 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
815 def AddFilesToThisMenu(*args
, **kwargs
):
816 """AddFilesToThisMenu(self, Menu menu)"""
817 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
819 def GetHistoryFile(*args
, **kwargs
):
820 """GetHistoryFile(self, int i) -> String"""
821 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
823 def GetCount(*args
, **kwargs
):
824 """GetCount(self) -> int"""
825 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
827 GetNoHistoryFiles
= GetCount
829 class FileHistoryPtr(FileHistory
):
830 def __init__(self
, this
):
832 if not hasattr(self
,"thisown"): self
.thisown
= 0
833 self
.__class
__ = FileHistory
834 _misc_
.FileHistory_swigregister(FileHistoryPtr
)
836 class SingleInstanceChecker(object):
838 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
839 def __init__(self
, *args
, **kwargs
):
840 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
841 newobj
= _misc_
.new_SingleInstanceChecker(*args
, **kwargs
)
842 self
.this
= newobj
.this
845 def __del__(self
, destroy
=_misc_
.delete_SingleInstanceChecker
):
848 if self
.thisown
: destroy(self
)
851 def Create(*args
, **kwargs
):
852 """Create(self, String name, String path=EmptyString) -> bool"""
853 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
855 def IsAnotherRunning(*args
, **kwargs
):
856 """IsAnotherRunning(self) -> bool"""
857 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
860 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
861 def __init__(self
, this
):
863 if not hasattr(self
,"thisown"): self
.thisown
= 0
864 self
.__class
__ = SingleInstanceChecker
865 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
867 def PreSingleInstanceChecker(*args
, **kwargs
):
868 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
869 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
874 def DrawWindowOnDC(*args
, **kwargs
):
875 """DrawWindowOnDC(Window window, DC dc, int method)"""
876 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
877 #---------------------------------------------------------------------------
879 class TipProvider(object):
880 def __init__(self
): raise RuntimeError, "No constructor defined"
882 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
883 def __del__(self
, destroy
=_misc_
.delete_TipProvider
):
886 if self
.thisown
: destroy(self
)
889 def GetTip(*args
, **kwargs
):
890 """GetTip(self) -> String"""
891 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
893 def GetCurrentTip(*args
, **kwargs
):
894 """GetCurrentTip(self) -> size_t"""
895 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
897 def PreprocessTip(*args
, **kwargs
):
898 """PreprocessTip(self, String tip) -> String"""
899 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
902 class TipProviderPtr(TipProvider
):
903 def __init__(self
, this
):
905 if not hasattr(self
,"thisown"): self
.thisown
= 0
906 self
.__class
__ = TipProvider
907 _misc_
.TipProvider_swigregister(TipProviderPtr
)
909 class PyTipProvider(TipProvider
):
911 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
912 def __init__(self
, *args
, **kwargs
):
913 """__init__(self, size_t currentTip) -> PyTipProvider"""
914 newobj
= _misc_
.new_PyTipProvider(*args
, **kwargs
)
915 self
.this
= newobj
.this
918 def _setCallbackInfo(*args
, **kwargs
):
919 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
920 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
923 class PyTipProviderPtr(PyTipProvider
):
924 def __init__(self
, this
):
926 if not hasattr(self
,"thisown"): self
.thisown
= 0
927 self
.__class
__ = PyTipProvider
928 _misc_
.PyTipProvider_swigregister(PyTipProviderPtr
)
931 def ShowTip(*args
, **kwargs
):
932 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
933 return _misc_
.ShowTip(*args
, **kwargs
)
935 def CreateFileTipProvider(*args
, **kwargs
):
936 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
937 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
938 #---------------------------------------------------------------------------
940 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
941 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
942 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
943 class Timer(_core
.EvtHandler
):
945 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
946 def __init__(self
, *args
, **kwargs
):
947 """__init__(self, EvtHandler owner=None, int id=-1) -> Timer"""
948 newobj
= _misc_
.new_Timer(*args
, **kwargs
)
949 self
.this
= newobj
.this
952 self
._setCallbackInfo
(self
, Timer
, 0)
954 def __del__(self
, destroy
=_misc_
.delete_Timer
):
957 if self
.thisown
: destroy(self
)
960 def _setCallbackInfo(*args
, **kwargs
):
961 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
962 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
964 def SetOwner(*args
, **kwargs
):
965 """SetOwner(self, EvtHandler owner, int id=-1)"""
966 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
968 def Start(*args
, **kwargs
):
969 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
970 return _misc_
.Timer_Start(*args
, **kwargs
)
972 def Stop(*args
, **kwargs
):
974 return _misc_
.Timer_Stop(*args
, **kwargs
)
976 def IsRunning(*args
, **kwargs
):
977 """IsRunning(self) -> bool"""
978 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
980 def GetInterval(*args
, **kwargs
):
981 """GetInterval(self) -> int"""
982 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
984 def IsOneShot(*args
, **kwargs
):
985 """IsOneShot(self) -> bool"""
986 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
988 def GetId(*args
, **kwargs
):
989 """GetId(self) -> int"""
990 return _misc_
.Timer_GetId(*args
, **kwargs
)
993 class TimerPtr(Timer
):
994 def __init__(self
, this
):
996 if not hasattr(self
,"thisown"): self
.thisown
= 0
997 self
.__class
__ = Timer
998 _misc_
.Timer_swigregister(TimerPtr
)
1000 # For backwards compatibility with 2.4
1001 class PyTimer(Timer
):
1002 def __init__(self
, notify
):
1003 Timer
.__init
__(self
)
1004 self
.notify
= notify
1011 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1014 class TimerEvent(_core
.Event
):
1016 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1017 def __init__(self
, *args
, **kwargs
):
1018 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1019 newobj
= _misc_
.new_TimerEvent(*args
, **kwargs
)
1020 self
.this
= newobj
.this
1023 def GetInterval(*args
, **kwargs
):
1024 """GetInterval(self) -> int"""
1025 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1028 class TimerEventPtr(TimerEvent
):
1029 def __init__(self
, this
):
1031 if not hasattr(self
,"thisown"): self
.thisown
= 0
1032 self
.__class
__ = TimerEvent
1033 _misc_
.TimerEvent_swigregister(TimerEventPtr
)
1035 class TimerRunner(object):
1037 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1038 def __init__(self
, *args
):
1040 __init__(self, wxTimer timer) -> TimerRunner
1041 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1043 newobj
= _misc_
.new_TimerRunner(*args
)
1044 self
.this
= newobj
.this
1047 def __del__(self
, destroy
=_misc_
.delete_TimerRunner
):
1050 if self
.thisown
: destroy(self
)
1053 def Start(*args
, **kwargs
):
1054 """Start(self, int milli, bool oneShot=False)"""
1055 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1058 class TimerRunnerPtr(TimerRunner
):
1059 def __init__(self
, this
):
1061 if not hasattr(self
,"thisown"): self
.thisown
= 0
1062 self
.__class
__ = TimerRunner
1063 _misc_
.TimerRunner_swigregister(TimerRunnerPtr
)
1065 #---------------------------------------------------------------------------
1067 LOG_FatalError
= _misc_
.LOG_FatalError
1068 LOG_Error
= _misc_
.LOG_Error
1069 LOG_Warning
= _misc_
.LOG_Warning
1070 LOG_Message
= _misc_
.LOG_Message
1071 LOG_Status
= _misc_
.LOG_Status
1072 LOG_Info
= _misc_
.LOG_Info
1073 LOG_Debug
= _misc_
.LOG_Debug
1074 LOG_Trace
= _misc_
.LOG_Trace
1075 LOG_Progress
= _misc_
.LOG_Progress
1076 LOG_User
= _misc_
.LOG_User
1077 LOG_Max
= _misc_
.LOG_Max
1078 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1079 TRACE_Messages
= _misc_
.TRACE_Messages
1080 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1081 TRACE_RefCount
= _misc_
.TRACE_RefCount
1082 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1083 TraceMemAlloc
= _misc_
.TraceMemAlloc
1084 TraceMessages
= _misc_
.TraceMessages
1085 TraceResAlloc
= _misc_
.TraceResAlloc
1086 TraceRefCount
= _misc_
.TraceRefCount
1087 TraceOleCalls
= _misc_
.TraceOleCalls
1090 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1091 def __init__(self
, *args
, **kwargs
):
1092 """__init__(self) -> Log"""
1093 newobj
= _misc_
.new_Log(*args
, **kwargs
)
1094 self
.this
= newobj
.this
1097 def IsEnabled(*args
, **kwargs
):
1098 """Log.IsEnabled() -> bool"""
1099 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1101 IsEnabled
= staticmethod(IsEnabled
)
1102 def EnableLogging(*args
, **kwargs
):
1103 """Log.EnableLogging(bool doIt=True) -> bool"""
1104 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1106 EnableLogging
= staticmethod(EnableLogging
)
1107 def OnLog(*args
, **kwargs
):
1108 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1109 return _misc_
.Log_OnLog(*args
, **kwargs
)
1111 OnLog
= staticmethod(OnLog
)
1112 def Flush(*args
, **kwargs
):
1114 return _misc_
.Log_Flush(*args
, **kwargs
)
1116 def FlushActive(*args
, **kwargs
):
1117 """Log.FlushActive()"""
1118 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1120 FlushActive
= staticmethod(FlushActive
)
1121 def GetActiveTarget(*args
, **kwargs
):
1122 """Log.GetActiveTarget() -> Log"""
1123 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1125 GetActiveTarget
= staticmethod(GetActiveTarget
)
1126 def SetActiveTarget(*args
, **kwargs
):
1127 """Log.SetActiveTarget(Log pLogger) -> Log"""
1128 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1130 SetActiveTarget
= staticmethod(SetActiveTarget
)
1131 def Suspend(*args
, **kwargs
):
1133 return _misc_
.Log_Suspend(*args
, **kwargs
)
1135 Suspend
= staticmethod(Suspend
)
1136 def Resume(*args
, **kwargs
):
1138 return _misc_
.Log_Resume(*args
, **kwargs
)
1140 Resume
= staticmethod(Resume
)
1141 def SetVerbose(*args
, **kwargs
):
1142 """Log.SetVerbose(bool bVerbose=True)"""
1143 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1145 SetVerbose
= staticmethod(SetVerbose
)
1146 def SetLogLevel(*args
, **kwargs
):
1147 """Log.SetLogLevel(wxLogLevel logLevel)"""
1148 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1150 SetLogLevel
= staticmethod(SetLogLevel
)
1151 def DontCreateOnDemand(*args
, **kwargs
):
1152 """Log.DontCreateOnDemand()"""
1153 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1155 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1156 def SetTraceMask(*args
, **kwargs
):
1157 """Log.SetTraceMask(wxTraceMask ulMask)"""
1158 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1160 SetTraceMask
= staticmethod(SetTraceMask
)
1161 def AddTraceMask(*args
, **kwargs
):
1162 """Log.AddTraceMask(String str)"""
1163 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1165 AddTraceMask
= staticmethod(AddTraceMask
)
1166 def RemoveTraceMask(*args
, **kwargs
):
1167 """Log.RemoveTraceMask(String str)"""
1168 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1170 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1171 def ClearTraceMasks(*args
, **kwargs
):
1172 """Log.ClearTraceMasks()"""
1173 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1175 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1176 def GetTraceMasks(*args
, **kwargs
):
1177 """Log.GetTraceMasks() -> wxArrayString"""
1178 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1180 GetTraceMasks
= staticmethod(GetTraceMasks
)
1181 def SetTimestamp(*args
, **kwargs
):
1182 """Log.SetTimestamp(wxChar ts)"""
1183 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1185 SetTimestamp
= staticmethod(SetTimestamp
)
1186 def GetVerbose(*args
, **kwargs
):
1187 """Log.GetVerbose() -> bool"""
1188 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1190 GetVerbose
= staticmethod(GetVerbose
)
1191 def GetTraceMask(*args
, **kwargs
):
1192 """Log.GetTraceMask() -> wxTraceMask"""
1193 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1195 GetTraceMask
= staticmethod(GetTraceMask
)
1196 def IsAllowedTraceMask(*args
, **kwargs
):
1197 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1198 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1200 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1201 def GetLogLevel(*args
, **kwargs
):
1202 """Log.GetLogLevel() -> wxLogLevel"""
1203 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1205 GetLogLevel
= staticmethod(GetLogLevel
)
1206 def GetTimestamp(*args
, **kwargs
):
1207 """Log.GetTimestamp() -> wxChar"""
1208 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1210 GetTimestamp
= staticmethod(GetTimestamp
)
1211 def TimeStamp(*args
, **kwargs
):
1212 """Log.TimeStamp() -> String"""
1213 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1215 TimeStamp
= staticmethod(TimeStamp
)
1216 def Destroy(*args
, **kwargs
):
1218 return _misc_
.Log_Destroy(*args
, **kwargs
)
1222 def __init__(self
, this
):
1224 if not hasattr(self
,"thisown"): self
.thisown
= 0
1225 self
.__class
__ = Log
1226 _misc_
.Log_swigregister(LogPtr
)
1228 def Log_IsEnabled(*args
, **kwargs
):
1229 """Log_IsEnabled() -> bool"""
1230 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1232 def Log_EnableLogging(*args
, **kwargs
):
1233 """Log_EnableLogging(bool doIt=True) -> bool"""
1234 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1236 def Log_OnLog(*args
, **kwargs
):
1237 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1238 return _misc_
.Log_OnLog(*args
, **kwargs
)
1240 def Log_FlushActive(*args
, **kwargs
):
1241 """Log_FlushActive()"""
1242 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1244 def Log_GetActiveTarget(*args
, **kwargs
):
1245 """Log_GetActiveTarget() -> Log"""
1246 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1248 def Log_SetActiveTarget(*args
, **kwargs
):
1249 """Log_SetActiveTarget(Log pLogger) -> Log"""
1250 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1252 def Log_Suspend(*args
, **kwargs
):
1254 return _misc_
.Log_Suspend(*args
, **kwargs
)
1256 def Log_Resume(*args
, **kwargs
):
1258 return _misc_
.Log_Resume(*args
, **kwargs
)
1260 def Log_SetVerbose(*args
, **kwargs
):
1261 """Log_SetVerbose(bool bVerbose=True)"""
1262 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1264 def Log_SetLogLevel(*args
, **kwargs
):
1265 """Log_SetLogLevel(wxLogLevel logLevel)"""
1266 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1268 def Log_DontCreateOnDemand(*args
, **kwargs
):
1269 """Log_DontCreateOnDemand()"""
1270 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1272 def Log_SetTraceMask(*args
, **kwargs
):
1273 """Log_SetTraceMask(wxTraceMask ulMask)"""
1274 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1276 def Log_AddTraceMask(*args
, **kwargs
):
1277 """Log_AddTraceMask(String str)"""
1278 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1280 def Log_RemoveTraceMask(*args
, **kwargs
):
1281 """Log_RemoveTraceMask(String str)"""
1282 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1284 def Log_ClearTraceMasks(*args
, **kwargs
):
1285 """Log_ClearTraceMasks()"""
1286 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1288 def Log_GetTraceMasks(*args
, **kwargs
):
1289 """Log_GetTraceMasks() -> wxArrayString"""
1290 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1292 def Log_SetTimestamp(*args
, **kwargs
):
1293 """Log_SetTimestamp(wxChar ts)"""
1294 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1296 def Log_GetVerbose(*args
, **kwargs
):
1297 """Log_GetVerbose() -> bool"""
1298 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1300 def Log_GetTraceMask(*args
, **kwargs
):
1301 """Log_GetTraceMask() -> wxTraceMask"""
1302 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1304 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1305 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1306 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1308 def Log_GetLogLevel(*args
, **kwargs
):
1309 """Log_GetLogLevel() -> wxLogLevel"""
1310 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1312 def Log_GetTimestamp(*args
, **kwargs
):
1313 """Log_GetTimestamp() -> wxChar"""
1314 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1316 def Log_TimeStamp(*args
, **kwargs
):
1317 """Log_TimeStamp() -> String"""
1318 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1320 class LogStderr(Log
):
1322 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1323 def __init__(self
, *args
, **kwargs
):
1324 """__init__(self) -> LogStderr"""
1325 newobj
= _misc_
.new_LogStderr(*args
, **kwargs
)
1326 self
.this
= newobj
.this
1330 class LogStderrPtr(LogStderr
):
1331 def __init__(self
, this
):
1333 if not hasattr(self
,"thisown"): self
.thisown
= 0
1334 self
.__class
__ = LogStderr
1335 _misc_
.LogStderr_swigregister(LogStderrPtr
)
1337 class LogTextCtrl(Log
):
1339 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1340 def __init__(self
, *args
, **kwargs
):
1341 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1342 newobj
= _misc_
.new_LogTextCtrl(*args
, **kwargs
)
1343 self
.this
= newobj
.this
1347 class LogTextCtrlPtr(LogTextCtrl
):
1348 def __init__(self
, this
):
1350 if not hasattr(self
,"thisown"): self
.thisown
= 0
1351 self
.__class
__ = LogTextCtrl
1352 _misc_
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1356 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1357 def __init__(self
, *args
, **kwargs
):
1358 """__init__(self) -> LogGui"""
1359 newobj
= _misc_
.new_LogGui(*args
, **kwargs
)
1360 self
.this
= newobj
.this
1364 class LogGuiPtr(LogGui
):
1365 def __init__(self
, this
):
1367 if not hasattr(self
,"thisown"): self
.thisown
= 0
1368 self
.__class
__ = LogGui
1369 _misc_
.LogGui_swigregister(LogGuiPtr
)
1371 class LogWindow(Log
):
1373 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1374 def __init__(self
, *args
, **kwargs
):
1375 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1376 newobj
= _misc_
.new_LogWindow(*args
, **kwargs
)
1377 self
.this
= newobj
.this
1380 def Show(*args
, **kwargs
):
1381 """Show(self, bool bShow=True)"""
1382 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1384 def GetFrame(*args
, **kwargs
):
1385 """GetFrame(self) -> wxFrame"""
1386 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1388 def GetOldLog(*args
, **kwargs
):
1389 """GetOldLog(self) -> Log"""
1390 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1392 def IsPassingMessages(*args
, **kwargs
):
1393 """IsPassingMessages(self) -> bool"""
1394 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1396 def PassMessages(*args
, **kwargs
):
1397 """PassMessages(self, bool bDoPass)"""
1398 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1401 class LogWindowPtr(LogWindow
):
1402 def __init__(self
, this
):
1404 if not hasattr(self
,"thisown"): self
.thisown
= 0
1405 self
.__class
__ = LogWindow
1406 _misc_
.LogWindow_swigregister(LogWindowPtr
)
1408 class LogChain(Log
):
1410 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1411 def __init__(self
, *args
, **kwargs
):
1412 """__init__(self, Log logger) -> LogChain"""
1413 newobj
= _misc_
.new_LogChain(*args
, **kwargs
)
1414 self
.this
= newobj
.this
1417 def SetLog(*args
, **kwargs
):
1418 """SetLog(self, Log logger)"""
1419 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1421 def PassMessages(*args
, **kwargs
):
1422 """PassMessages(self, bool bDoPass)"""
1423 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1425 def IsPassingMessages(*args
, **kwargs
):
1426 """IsPassingMessages(self) -> bool"""
1427 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1429 def GetOldLog(*args
, **kwargs
):
1430 """GetOldLog(self) -> Log"""
1431 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1434 class LogChainPtr(LogChain
):
1435 def __init__(self
, this
):
1437 if not hasattr(self
,"thisown"): self
.thisown
= 0
1438 self
.__class
__ = LogChain
1439 _misc_
.LogChain_swigregister(LogChainPtr
)
1442 def SysErrorCode(*args
, **kwargs
):
1443 """SysErrorCode() -> unsigned long"""
1444 return _misc_
.SysErrorCode(*args
, **kwargs
)
1446 def SysErrorMsg(*args
, **kwargs
):
1447 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1448 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1450 def LogFatalError(*args
, **kwargs
):
1451 """LogFatalError(String msg)"""
1452 return _misc_
.LogFatalError(*args
, **kwargs
)
1454 def LogError(*args
, **kwargs
):
1455 """LogError(String msg)"""
1456 return _misc_
.LogError(*args
, **kwargs
)
1458 def LogWarning(*args
, **kwargs
):
1459 """LogWarning(String msg)"""
1460 return _misc_
.LogWarning(*args
, **kwargs
)
1462 def LogMessage(*args
, **kwargs
):
1463 """LogMessage(String msg)"""
1464 return _misc_
.LogMessage(*args
, **kwargs
)
1466 def LogInfo(*args
, **kwargs
):
1467 """LogInfo(String msg)"""
1468 return _misc_
.LogInfo(*args
, **kwargs
)
1470 def LogDebug(*args
, **kwargs
):
1471 """LogDebug(String msg)"""
1472 return _misc_
.LogDebug(*args
, **kwargs
)
1474 def LogVerbose(*args
, **kwargs
):
1475 """LogVerbose(String msg)"""
1476 return _misc_
.LogVerbose(*args
, **kwargs
)
1478 def LogStatus(*args
, **kwargs
):
1479 """LogStatus(String msg)"""
1480 return _misc_
.LogStatus(*args
, **kwargs
)
1482 def LogStatusFrame(*args
, **kwargs
):
1483 """LogStatusFrame(wxFrame pFrame, String msg)"""
1484 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1486 def LogSysError(*args
, **kwargs
):
1487 """LogSysError(String msg)"""
1488 return _misc_
.LogSysError(*args
, **kwargs
)
1490 def LogGeneric(*args
, **kwargs
):
1491 """LogGeneric(unsigned long level, String msg)"""
1492 return _misc_
.LogGeneric(*args
, **kwargs
)
1494 def SafeShowMessage(*args
, **kwargs
):
1495 """SafeShowMessage(String title, String text)"""
1496 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1497 class LogNull(object):
1499 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1500 def __init__(self
, *args
, **kwargs
):
1501 """__init__(self) -> LogNull"""
1502 newobj
= _misc_
.new_LogNull(*args
, **kwargs
)
1503 self
.this
= newobj
.this
1506 def __del__(self
, destroy
=_misc_
.delete_LogNull
):
1509 if self
.thisown
: destroy(self
)
1513 class LogNullPtr(LogNull
):
1514 def __init__(self
, this
):
1516 if not hasattr(self
,"thisown"): self
.thisown
= 0
1517 self
.__class
__ = LogNull
1518 _misc_
.LogNull_swigregister(LogNullPtr
)
1520 def LogTrace(*args
):
1522 LogTrace(unsigned long mask, String msg)
1523 LogTrace(String mask, String msg)
1525 return _misc_
.LogTrace(*args
)
1529 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1530 def __init__(self
, *args
, **kwargs
):
1531 """__init__(self) -> PyLog"""
1532 newobj
= _misc_
.new_PyLog(*args
, **kwargs
)
1533 self
.this
= newobj
.this
1536 self
._setCallbackInfo
(self
, PyLog
)
1538 def _setCallbackInfo(*args
, **kwargs
):
1539 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1540 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1543 class PyLogPtr(PyLog
):
1544 def __init__(self
, this
):
1546 if not hasattr(self
,"thisown"): self
.thisown
= 0
1547 self
.__class
__ = PyLog
1548 _misc_
.PyLog_swigregister(PyLogPtr
)
1550 #---------------------------------------------------------------------------
1552 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1553 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1554 KILL_OK
= _misc_
.KILL_OK
1555 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1556 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1557 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1558 KILL_ERROR
= _misc_
.KILL_ERROR
1559 SIGNONE
= _misc_
.SIGNONE
1560 SIGHUP
= _misc_
.SIGHUP
1561 SIGINT
= _misc_
.SIGINT
1562 SIGQUIT
= _misc_
.SIGQUIT
1563 SIGILL
= _misc_
.SIGILL
1564 SIGTRAP
= _misc_
.SIGTRAP
1565 SIGABRT
= _misc_
.SIGABRT
1566 SIGIOT
= _misc_
.SIGIOT
1567 SIGEMT
= _misc_
.SIGEMT
1568 SIGFPE
= _misc_
.SIGFPE
1569 SIGKILL
= _misc_
.SIGKILL
1570 SIGBUS
= _misc_
.SIGBUS
1571 SIGSEGV
= _misc_
.SIGSEGV
1572 SIGSYS
= _misc_
.SIGSYS
1573 SIGPIPE
= _misc_
.SIGPIPE
1574 SIGALRM
= _misc_
.SIGALRM
1575 SIGTERM
= _misc_
.SIGTERM
1576 class Process(_core
.EvtHandler
):
1578 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1579 def Kill(*args
, **kwargs
):
1580 """Process.Kill(int pid, int sig=SIGTERM) -> int"""
1581 return _misc_
.Process_Kill(*args
, **kwargs
)
1583 Kill
= staticmethod(Kill
)
1584 def Exists(*args
, **kwargs
):
1585 """Process.Exists(int pid) -> bool"""
1586 return _misc_
.Process_Exists(*args
, **kwargs
)
1588 Exists
= staticmethod(Exists
)
1589 def Open(*args
, **kwargs
):
1590 """Process.Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1591 return _misc_
.Process_Open(*args
, **kwargs
)
1593 Open
= staticmethod(Open
)
1594 def __init__(self
, *args
, **kwargs
):
1595 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1596 newobj
= _misc_
.new_Process(*args
, **kwargs
)
1597 self
.this
= newobj
.this
1600 self
._setCallbackInfo
(self
, Process
)
1602 def _setCallbackInfo(*args
, **kwargs
):
1603 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1604 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1606 def base_OnTerminate(*args
, **kwargs
):
1607 """base_OnTerminate(self, int pid, int status)"""
1608 return _misc_
.Process_base_OnTerminate(*args
, **kwargs
)
1610 def Redirect(*args
, **kwargs
):
1611 """Redirect(self)"""
1612 return _misc_
.Process_Redirect(*args
, **kwargs
)
1614 def IsRedirected(*args
, **kwargs
):
1615 """IsRedirected(self) -> bool"""
1616 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1618 def Detach(*args
, **kwargs
):
1620 return _misc_
.Process_Detach(*args
, **kwargs
)
1622 def GetInputStream(*args
, **kwargs
):
1623 """GetInputStream(self) -> InputStream"""
1624 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1626 def GetErrorStream(*args
, **kwargs
):
1627 """GetErrorStream(self) -> InputStream"""
1628 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1630 def GetOutputStream(*args
, **kwargs
):
1631 """GetOutputStream(self) -> OutputStream"""
1632 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1634 def CloseOutput(*args
, **kwargs
):
1635 """CloseOutput(self)"""
1636 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1638 def IsInputOpened(*args
, **kwargs
):
1639 """IsInputOpened(self) -> bool"""
1640 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1642 def IsInputAvailable(*args
, **kwargs
):
1643 """IsInputAvailable(self) -> bool"""
1644 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1646 def IsErrorAvailable(*args
, **kwargs
):
1647 """IsErrorAvailable(self) -> bool"""
1648 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1651 class ProcessPtr(Process
):
1652 def __init__(self
, this
):
1654 if not hasattr(self
,"thisown"): self
.thisown
= 0
1655 self
.__class
__ = Process
1656 _misc_
.Process_swigregister(ProcessPtr
)
1658 def Process_Kill(*args
, **kwargs
):
1659 """Process_Kill(int pid, int sig=SIGTERM) -> int"""
1660 return _misc_
.Process_Kill(*args
, **kwargs
)
1662 def Process_Exists(*args
, **kwargs
):
1663 """Process_Exists(int pid) -> bool"""
1664 return _misc_
.Process_Exists(*args
, **kwargs
)
1666 def Process_Open(*args
, **kwargs
):
1667 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1668 return _misc_
.Process_Open(*args
, **kwargs
)
1670 class ProcessEvent(_core
.Event
):
1672 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1673 def __init__(self
, *args
, **kwargs
):
1674 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1675 newobj
= _misc_
.new_ProcessEvent(*args
, **kwargs
)
1676 self
.this
= newobj
.this
1679 def GetPid(*args
, **kwargs
):
1680 """GetPid(self) -> int"""
1681 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1683 def GetExitCode(*args
, **kwargs
):
1684 """GetExitCode(self) -> int"""
1685 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1687 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1688 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1690 class ProcessEventPtr(ProcessEvent
):
1691 def __init__(self
, this
):
1693 if not hasattr(self
,"thisown"): self
.thisown
= 0
1694 self
.__class
__ = ProcessEvent
1695 _misc_
.ProcessEvent_swigregister(ProcessEventPtr
)
1697 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1698 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1700 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1701 EXEC_SYNC
= _misc_
.EXEC_SYNC
1702 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1703 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1705 def Execute(*args
, **kwargs
):
1706 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1707 return _misc_
.Execute(*args
, **kwargs
)
1708 #---------------------------------------------------------------------------
1710 JOYSTICK1
= _misc_
.JOYSTICK1
1711 JOYSTICK2
= _misc_
.JOYSTICK2
1712 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1713 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1714 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1715 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1716 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1717 class Joystick(object):
1719 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1720 def __init__(self
, *args
, **kwargs
):
1721 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1722 newobj
= _misc_
.new_Joystick(*args
, **kwargs
)
1723 self
.this
= newobj
.this
1726 def __del__(self
, destroy
=_misc_
.delete_Joystick
):
1729 if self
.thisown
: destroy(self
)
1732 def GetPosition(*args
, **kwargs
):
1733 """GetPosition(self) -> Point"""
1734 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1736 def GetZPosition(*args
, **kwargs
):
1737 """GetZPosition(self) -> int"""
1738 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1740 def GetButtonState(*args
, **kwargs
):
1741 """GetButtonState(self) -> int"""
1742 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1744 def GetPOVPosition(*args
, **kwargs
):
1745 """GetPOVPosition(self) -> int"""
1746 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1748 def GetPOVCTSPosition(*args
, **kwargs
):
1749 """GetPOVCTSPosition(self) -> int"""
1750 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1752 def GetRudderPosition(*args
, **kwargs
):
1753 """GetRudderPosition(self) -> int"""
1754 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1756 def GetUPosition(*args
, **kwargs
):
1757 """GetUPosition(self) -> int"""
1758 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1760 def GetVPosition(*args
, **kwargs
):
1761 """GetVPosition(self) -> int"""
1762 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1764 def GetMovementThreshold(*args
, **kwargs
):
1765 """GetMovementThreshold(self) -> int"""
1766 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1768 def SetMovementThreshold(*args
, **kwargs
):
1769 """SetMovementThreshold(self, int threshold)"""
1770 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1772 def IsOk(*args
, **kwargs
):
1773 """IsOk(self) -> bool"""
1774 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1776 def GetNumberJoysticks(*args
, **kwargs
):
1777 """GetNumberJoysticks(self) -> int"""
1778 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1780 def GetManufacturerId(*args
, **kwargs
):
1781 """GetManufacturerId(self) -> int"""
1782 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1784 def GetProductId(*args
, **kwargs
):
1785 """GetProductId(self) -> int"""
1786 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1788 def GetProductName(*args
, **kwargs
):
1789 """GetProductName(self) -> String"""
1790 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1792 def GetXMin(*args
, **kwargs
):
1793 """GetXMin(self) -> int"""
1794 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1796 def GetYMin(*args
, **kwargs
):
1797 """GetYMin(self) -> int"""
1798 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1800 def GetZMin(*args
, **kwargs
):
1801 """GetZMin(self) -> int"""
1802 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1804 def GetXMax(*args
, **kwargs
):
1805 """GetXMax(self) -> int"""
1806 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1808 def GetYMax(*args
, **kwargs
):
1809 """GetYMax(self) -> int"""
1810 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1812 def GetZMax(*args
, **kwargs
):
1813 """GetZMax(self) -> int"""
1814 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1816 def GetNumberButtons(*args
, **kwargs
):
1817 """GetNumberButtons(self) -> int"""
1818 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1820 def GetNumberAxes(*args
, **kwargs
):
1821 """GetNumberAxes(self) -> int"""
1822 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1824 def GetMaxButtons(*args
, **kwargs
):
1825 """GetMaxButtons(self) -> int"""
1826 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1828 def GetMaxAxes(*args
, **kwargs
):
1829 """GetMaxAxes(self) -> int"""
1830 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1832 def GetPollingMin(*args
, **kwargs
):
1833 """GetPollingMin(self) -> int"""
1834 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1836 def GetPollingMax(*args
, **kwargs
):
1837 """GetPollingMax(self) -> int"""
1838 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1840 def GetRudderMin(*args
, **kwargs
):
1841 """GetRudderMin(self) -> int"""
1842 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1844 def GetRudderMax(*args
, **kwargs
):
1845 """GetRudderMax(self) -> int"""
1846 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1848 def GetUMin(*args
, **kwargs
):
1849 """GetUMin(self) -> int"""
1850 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1852 def GetUMax(*args
, **kwargs
):
1853 """GetUMax(self) -> int"""
1854 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1856 def GetVMin(*args
, **kwargs
):
1857 """GetVMin(self) -> int"""
1858 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1860 def GetVMax(*args
, **kwargs
):
1861 """GetVMax(self) -> int"""
1862 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1864 def HasRudder(*args
, **kwargs
):
1865 """HasRudder(self) -> bool"""
1866 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1868 def HasZ(*args
, **kwargs
):
1869 """HasZ(self) -> bool"""
1870 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1872 def HasU(*args
, **kwargs
):
1873 """HasU(self) -> bool"""
1874 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1876 def HasV(*args
, **kwargs
):
1877 """HasV(self) -> bool"""
1878 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1880 def HasPOV(*args
, **kwargs
):
1881 """HasPOV(self) -> bool"""
1882 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1884 def HasPOV4Dir(*args
, **kwargs
):
1885 """HasPOV4Dir(self) -> bool"""
1886 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1888 def HasPOVCTS(*args
, **kwargs
):
1889 """HasPOVCTS(self) -> bool"""
1890 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1892 def SetCapture(*args
, **kwargs
):
1893 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1894 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
1896 def ReleaseCapture(*args
, **kwargs
):
1897 """ReleaseCapture(self) -> bool"""
1898 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
1900 def __nonzero__(self
): return self
.IsOk()
1902 class JoystickPtr(Joystick
):
1903 def __init__(self
, this
):
1905 if not hasattr(self
,"thisown"): self
.thisown
= 0
1906 self
.__class
__ = Joystick
1907 _misc_
.Joystick_swigregister(JoystickPtr
)
1909 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
1910 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
1911 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
1912 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
1913 class JoystickEvent(_core
.Event
):
1915 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1916 m_pos
= property(_misc_
.JoystickEvent_m_pos_get
, _misc_
.JoystickEvent_m_pos_set
)
1917 m_zPosition
= property(_misc_
.JoystickEvent_m_zPosition_get
, _misc_
.JoystickEvent_m_zPosition_set
)
1918 m_buttonChange
= property(_misc_
.JoystickEvent_m_buttonChange_get
, _misc_
.JoystickEvent_m_buttonChange_set
)
1919 m_buttonState
= property(_misc_
.JoystickEvent_m_buttonState_get
, _misc_
.JoystickEvent_m_buttonState_set
)
1920 m_joyStick
= property(_misc_
.JoystickEvent_m_joyStick_get
, _misc_
.JoystickEvent_m_joyStick_set
)
1921 def __init__(self
, *args
, **kwargs
):
1923 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1924 int change=0) -> JoystickEvent
1926 newobj
= _misc_
.new_JoystickEvent(*args
, **kwargs
)
1927 self
.this
= newobj
.this
1930 def GetPosition(*args
, **kwargs
):
1931 """GetPosition(self) -> Point"""
1932 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
1934 def GetZPosition(*args
, **kwargs
):
1935 """GetZPosition(self) -> int"""
1936 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1938 def GetButtonState(*args
, **kwargs
):
1939 """GetButtonState(self) -> int"""
1940 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1942 def GetButtonChange(*args
, **kwargs
):
1943 """GetButtonChange(self) -> int"""
1944 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1946 def GetJoystick(*args
, **kwargs
):
1947 """GetJoystick(self) -> int"""
1948 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1950 def SetJoystick(*args
, **kwargs
):
1951 """SetJoystick(self, int stick)"""
1952 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1954 def SetButtonState(*args
, **kwargs
):
1955 """SetButtonState(self, int state)"""
1956 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1958 def SetButtonChange(*args
, **kwargs
):
1959 """SetButtonChange(self, int change)"""
1960 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1962 def SetPosition(*args
, **kwargs
):
1963 """SetPosition(self, Point pos)"""
1964 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
1966 def SetZPosition(*args
, **kwargs
):
1967 """SetZPosition(self, int zPos)"""
1968 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1970 def IsButton(*args
, **kwargs
):
1971 """IsButton(self) -> bool"""
1972 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
1974 def IsMove(*args
, **kwargs
):
1975 """IsMove(self) -> bool"""
1976 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
1978 def IsZMove(*args
, **kwargs
):
1979 """IsZMove(self) -> bool"""
1980 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
1982 def ButtonDown(*args
, **kwargs
):
1983 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
1984 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1986 def ButtonUp(*args
, **kwargs
):
1987 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
1988 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1990 def ButtonIsDown(*args
, **kwargs
):
1991 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
1992 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
1995 class JoystickEventPtr(JoystickEvent
):
1996 def __init__(self
, this
):
1998 if not hasattr(self
,"thisown"): self
.thisown
= 0
1999 self
.__class
__ = JoystickEvent
2000 _misc_
.JoystickEvent_swigregister(JoystickEventPtr
)
2002 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2003 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2004 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2005 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2007 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2008 wxEVT_JOY_BUTTON_UP
,
2014 #---------------------------------------------------------------------------
2016 SOUND_SYNC
= _misc_
.SOUND_SYNC
2017 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2018 SOUND_LOOP
= _misc_
.SOUND_LOOP
2019 class Sound(object):
2021 return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2022 def __init__(self
, *args
):
2024 __init__(self) -> Sound
2025 __init__(self, String fileName, bool isResource=false) -> Sound
2026 __init__(self, int size, wxByte data) -> Sound
2028 newobj
= _misc_
.new_Sound(*args
)
2029 self
.this
= newobj
.this
2032 def __del__(self
, destroy
=_misc_
.delete_Sound
):
2035 if self
.thisown
: destroy(self
)
2040 Create(self, String fileName, bool isResource=false) -> bool
2041 Create(self, int size, wxByte data) -> bool
2043 return _misc_
.Sound_Create(*args
)
2045 def IsOk(*args
, **kwargs
):
2046 """IsOk(self) -> bool"""
2047 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2050 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2051 return _misc_
.Sound_Play(*args
)
2053 def PlaySound(*args
):
2054 """Sound.PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2055 return _misc_
.Sound_PlaySound(*args
)
2057 PlaySound
= staticmethod(PlaySound
)
2058 def Stop(*args
, **kwargs
):
2060 return _misc_
.Sound_Stop(*args
, **kwargs
)
2062 Stop
= staticmethod(Stop
)
2063 def __nonzero__(self
): return self
.IsOk()
2065 class SoundPtr(Sound
):
2066 def __init__(self
, this
):
2068 if not hasattr(self
,"thisown"): self
.thisown
= 0
2069 self
.__class
__ = Sound
2070 _misc_
.Sound_swigregister(SoundPtr
)
2072 def Sound_PlaySound(*args
):
2073 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2074 return _misc_
.Sound_PlaySound(*args
)
2076 def Sound_Stop(*args
, **kwargs
):
2078 return _misc_
.Sound_Stop(*args
, **kwargs
)
2080 #---------------------------------------------------------------------------
2082 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2083 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2084 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2085 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2086 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2087 class FileTypeInfo(object):
2089 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2090 def __init__(self
, *args
, **kwargs
):
2091 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2092 newobj
= _misc_
.new_FileTypeInfo(*args
, **kwargs
)
2093 self
.this
= newobj
.this
2096 def IsValid(*args
, **kwargs
):
2097 """IsValid(self) -> bool"""
2098 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2100 def SetIcon(*args
, **kwargs
):
2101 """SetIcon(self, String iconFile, int iconIndex=0)"""
2102 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2104 def SetShortDesc(*args
, **kwargs
):
2105 """SetShortDesc(self, String shortDesc)"""
2106 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2108 def GetMimeType(*args
, **kwargs
):
2109 """GetMimeType(self) -> String"""
2110 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2112 def GetOpenCommand(*args
, **kwargs
):
2113 """GetOpenCommand(self) -> String"""
2114 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2116 def GetPrintCommand(*args
, **kwargs
):
2117 """GetPrintCommand(self) -> String"""
2118 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2120 def GetShortDesc(*args
, **kwargs
):
2121 """GetShortDesc(self) -> String"""
2122 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2124 def GetDescription(*args
, **kwargs
):
2125 """GetDescription(self) -> String"""
2126 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2128 def GetExtensions(*args
, **kwargs
):
2129 """GetExtensions(self) -> wxArrayString"""
2130 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2132 def GetExtensionsCount(*args
, **kwargs
):
2133 """GetExtensionsCount(self) -> int"""
2134 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2136 def GetIconFile(*args
, **kwargs
):
2137 """GetIconFile(self) -> String"""
2138 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2140 def GetIconIndex(*args
, **kwargs
):
2141 """GetIconIndex(self) -> int"""
2142 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2145 class FileTypeInfoPtr(FileTypeInfo
):
2146 def __init__(self
, this
):
2148 if not hasattr(self
,"thisown"): self
.thisown
= 0
2149 self
.__class
__ = FileTypeInfo
2150 _misc_
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2152 def FileTypeInfoSequence(*args
, **kwargs
):
2153 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2154 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2158 def NullFileTypeInfo(*args
, **kwargs
):
2159 """NullFileTypeInfo() -> FileTypeInfo"""
2160 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2164 class FileType(object):
2166 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2167 def __init__(self
, *args
, **kwargs
):
2168 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2169 newobj
= _misc_
.new_FileType(*args
, **kwargs
)
2170 self
.this
= newobj
.this
2173 def __del__(self
, destroy
=_misc_
.delete_FileType
):
2176 if self
.thisown
: destroy(self
)
2179 def GetMimeType(*args
, **kwargs
):
2180 """GetMimeType(self) -> PyObject"""
2181 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2183 def GetMimeTypes(*args
, **kwargs
):
2184 """GetMimeTypes(self) -> PyObject"""
2185 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2187 def GetExtensions(*args
, **kwargs
):
2188 """GetExtensions(self) -> PyObject"""
2189 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2191 def GetIcon(*args
, **kwargs
):
2192 """GetIcon(self) -> Icon"""
2193 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2195 def GetIconInfo(*args
, **kwargs
):
2196 """GetIconInfo(self) -> PyObject"""
2197 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2199 def GetDescription(*args
, **kwargs
):
2200 """GetDescription(self) -> PyObject"""
2201 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2203 def GetOpenCommand(*args
, **kwargs
):
2204 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2205 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2207 def GetPrintCommand(*args
, **kwargs
):
2208 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2209 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2211 def GetAllCommands(*args
, **kwargs
):
2212 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2213 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2215 def SetCommand(*args
, **kwargs
):
2216 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2217 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2219 def SetDefaultIcon(*args
, **kwargs
):
2220 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2221 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2223 def Unassociate(*args
, **kwargs
):
2224 """Unassociate(self) -> bool"""
2225 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2227 def ExpandCommand(*args
, **kwargs
):
2228 """FileType.ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2229 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2231 ExpandCommand
= staticmethod(ExpandCommand
)
2233 class FileTypePtr(FileType
):
2234 def __init__(self
, this
):
2236 if not hasattr(self
,"thisown"): self
.thisown
= 0
2237 self
.__class
__ = FileType
2238 _misc_
.FileType_swigregister(FileTypePtr
)
2240 def FileType_ExpandCommand(*args
, **kwargs
):
2241 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2242 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2244 class MimeTypesManager(object):
2246 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2247 def IsOfType(*args
, **kwargs
):
2248 """MimeTypesManager.IsOfType(String mimeType, String wildcard) -> bool"""
2249 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2251 IsOfType
= staticmethod(IsOfType
)
2252 def __init__(self
, *args
, **kwargs
):
2253 """__init__(self) -> MimeTypesManager"""
2254 newobj
= _misc_
.new_MimeTypesManager(*args
, **kwargs
)
2255 self
.this
= newobj
.this
2258 def Initialize(*args
, **kwargs
):
2259 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2260 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2262 def ClearData(*args
, **kwargs
):
2263 """ClearData(self)"""
2264 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2266 def GetFileTypeFromExtension(*args
, **kwargs
):
2267 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2268 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2270 def GetFileTypeFromMimeType(*args
, **kwargs
):
2271 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2272 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2274 def ReadMailcap(*args
, **kwargs
):
2275 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2276 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2278 def ReadMimeTypes(*args
, **kwargs
):
2279 """ReadMimeTypes(self, String filename) -> bool"""
2280 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2282 def EnumAllFileTypes(*args
, **kwargs
):
2283 """EnumAllFileTypes(self) -> PyObject"""
2284 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2286 def AddFallback(*args
, **kwargs
):
2287 """AddFallback(self, FileTypeInfo ft)"""
2288 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2290 def Associate(*args
, **kwargs
):
2291 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2292 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2294 def Unassociate(*args
, **kwargs
):
2295 """Unassociate(self, FileType ft) -> bool"""
2296 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2298 def __del__(self
, destroy
=_misc_
.delete_MimeTypesManager
):
2301 if self
.thisown
: destroy(self
)
2305 class MimeTypesManagerPtr(MimeTypesManager
):
2306 def __init__(self
, this
):
2308 if not hasattr(self
,"thisown"): self
.thisown
= 0
2309 self
.__class
__ = MimeTypesManager
2310 _misc_
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2311 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2313 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2314 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2315 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2317 #---------------------------------------------------------------------------
2319 class ArtProvider(object):
2321 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2322 def __init__(self
, *args
, **kwargs
):
2323 """__init__(self) -> ArtProvider"""
2324 newobj
= _misc_
.new_ArtProvider(*args
, **kwargs
)
2325 self
.this
= newobj
.this
2328 self
._setCallbackInfo
(self
, ArtProvider
)
2330 def _setCallbackInfo(*args
, **kwargs
):
2331 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2332 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2334 def PushProvider(*args
, **kwargs
):
2336 ArtProvider.PushProvider(ArtProvider provider)
2338 Add new provider to the top of providers stack.
2340 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2342 PushProvider
= staticmethod(PushProvider
)
2343 def PopProvider(*args
, **kwargs
):
2345 ArtProvider.PopProvider() -> bool
2347 Remove latest added provider and delete it.
2349 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2351 PopProvider
= staticmethod(PopProvider
)
2352 def RemoveProvider(*args
, **kwargs
):
2354 ArtProvider.RemoveProvider(ArtProvider provider) -> bool
2356 Remove provider. The provider must have been added previously!
2357 The provider is _not_ deleted.
2359 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2361 RemoveProvider
= staticmethod(RemoveProvider
)
2362 def GetBitmap(*args
, **kwargs
):
2364 ArtProvider.GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2366 Query the providers for bitmap with given ID and return it. Return
2367 wx.NullBitmap if no provider provides it.
2369 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2371 GetBitmap
= staticmethod(GetBitmap
)
2372 def GetIcon(*args
, **kwargs
):
2374 ArtProvider.GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2376 Query the providers for icon with given ID and return it. Return
2377 wx.NullIcon if no provider provides it.
2379 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2381 GetIcon
= staticmethod(GetIcon
)
2382 def Destroy(*args
, **kwargs
):
2384 return _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2387 class ArtProviderPtr(ArtProvider
):
2388 def __init__(self
, this
):
2390 if not hasattr(self
,"thisown"): self
.thisown
= 0
2391 self
.__class
__ = ArtProvider
2392 _misc_
.ArtProvider_swigregister(ArtProviderPtr
)
2393 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2394 ART_MENU
= cvar
.ART_MENU
2395 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2396 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2397 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2398 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2399 ART_OTHER
= cvar
.ART_OTHER
2400 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2401 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2402 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2403 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2404 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2405 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2406 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2407 ART_GO_BACK
= cvar
.ART_GO_BACK
2408 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2409 ART_GO_UP
= cvar
.ART_GO_UP
2410 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2411 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2412 ART_GO_HOME
= cvar
.ART_GO_HOME
2413 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2414 ART_PRINT
= cvar
.ART_PRINT
2415 ART_HELP
= cvar
.ART_HELP
2416 ART_TIP
= cvar
.ART_TIP
2417 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2418 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2419 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2420 ART_FOLDER
= cvar
.ART_FOLDER
2421 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2422 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2423 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2424 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2425 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2426 ART_ERROR
= cvar
.ART_ERROR
2427 ART_QUESTION
= cvar
.ART_QUESTION
2428 ART_WARNING
= cvar
.ART_WARNING
2429 ART_INFORMATION
= cvar
.ART_INFORMATION
2430 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2432 def ArtProvider_PushProvider(*args
, **kwargs
):
2434 ArtProvider_PushProvider(ArtProvider provider)
2436 Add new provider to the top of providers stack.
2438 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2440 def ArtProvider_PopProvider(*args
, **kwargs
):
2442 ArtProvider_PopProvider() -> bool
2444 Remove latest added provider and delete it.
2446 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2448 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2450 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2452 Remove provider. The provider must have been added previously!
2453 The provider is _not_ deleted.
2455 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2457 def ArtProvider_GetBitmap(*args
, **kwargs
):
2459 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2461 Query the providers for bitmap with given ID and return it. Return
2462 wx.NullBitmap if no provider provides it.
2464 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2466 def ArtProvider_GetIcon(*args
, **kwargs
):
2468 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2470 Query the providers for icon with given ID and return it. Return
2471 wx.NullIcon if no provider provides it.
2473 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2475 #---------------------------------------------------------------------------
2477 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2478 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2479 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2480 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2481 class ConfigBase(object):
2483 wx.ConfigBase class defines the basic interface of all config
2484 classes. It can not be used by itself (it is an abstract base
2485 class) and you will always use one of its derivations: wx.Config
2488 wx.ConfigBase organizes the items in a tree-like structure,
2489 modeled after the Unix/Dos filesystem. There are groups that act
2490 like directories and entries, key/value pairs that act like
2491 files. There is always one current group given by the current
2492 path. As in the file system case, to specify a key in the config
2493 class you must use a path to it. Config classes also support the
2494 notion of the current group, which makes it possible to use
2497 Keys are pairs "key_name = value" where value may be of string,
2498 integer floating point or boolean, you can not store binary data
2499 without first encoding it as a string. For performance reasons
2500 items should be kept small, no more than a couple kilobytes.
2503 def __init__(self
): raise RuntimeError, "No constructor defined"
2505 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2506 def __del__(self
, destroy
=_misc_
.delete_ConfigBase
):
2509 if self
.thisown
: destroy(self
)
2512 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2513 Type_String
= _misc_
.ConfigBase_Type_String
2514 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2515 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2516 Type_Float
= _misc_
.ConfigBase_Type_Float
2517 def Set(*args
, **kwargs
):
2519 ConfigBase.Set(ConfigBase config) -> ConfigBase
2521 Sets the global config object (the one returned by Get) and
2522 returns a reference to the previous global config object.
2524 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2526 Set
= staticmethod(Set
)
2527 def Get(*args
, **kwargs
):
2529 ConfigBase.Get(bool createOnDemand=True) -> ConfigBase
2531 Returns the current global config object, creating one if neccessary.
2533 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2535 Get
= staticmethod(Get
)
2536 def Create(*args
, **kwargs
):
2538 ConfigBase.Create() -> ConfigBase
2540 Create and return a new global config object. This function will
2541 create the "best" implementation of wx.Config available for the
2544 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2546 Create
= staticmethod(Create
)
2547 def DontCreateOnDemand(*args
, **kwargs
):
2549 ConfigBase.DontCreateOnDemand()
2551 Should Get() try to create a new log object if there isn't a current one?
2553 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2555 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2556 def SetPath(*args
, **kwargs
):
2558 SetPath(self, String path)
2560 Set current path: if the first character is '/', it's the absolute path,
2561 otherwise it's a relative path. '..' is supported. If the strPath
2562 doesn't exist it is created.
2564 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2566 def GetPath(*args
, **kwargs
):
2568 GetPath(self) -> String
2570 Retrieve the current path (always as absolute path)
2572 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2574 def GetFirstGroup(*args
, **kwargs
):
2576 GetFirstGroup() -> (more, value, index)
2578 Allows enumerating the subgroups in a config object. Returns
2579 a tuple containing a flag indicating there are more items, the
2580 name of the current item, and an index to pass to GetNextGroup to
2581 fetch the next item.
2583 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2585 def GetNextGroup(*args
, **kwargs
):
2587 GetNextGroup(long index) -> (more, value, index)
2589 Allows enumerating the subgroups in a config object. Returns
2590 a tuple containing a flag indicating there are more items, the
2591 name of the current item, and an index to pass to GetNextGroup to
2592 fetch the next item.
2594 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2596 def GetFirstEntry(*args
, **kwargs
):
2598 GetFirstEntry() -> (more, value, index)
2600 Allows enumerating the entries in the current group in a config
2601 object. Returns a tuple containing a flag indicating there are
2602 more items, the name of the current item, and an index to pass to
2603 GetNextGroup to fetch the next item.
2605 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2607 def GetNextEntry(*args
, **kwargs
):
2609 GetNextEntry(long index) -> (more, value, index)
2611 Allows enumerating the entries in the current group in a config
2612 object. Returns a tuple containing a flag indicating there are
2613 more items, the name of the current item, and an index to pass to
2614 GetNextGroup to fetch the next item.
2616 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2618 def GetNumberOfEntries(*args
, **kwargs
):
2620 GetNumberOfEntries(self, bool recursive=False) -> size_t
2622 Get the number of entries in the current group, with or
2623 without its subgroups.
2625 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2627 def GetNumberOfGroups(*args
, **kwargs
):
2629 GetNumberOfGroups(self, bool recursive=False) -> size_t
2631 Get the number of subgroups in the current group, with or
2632 without its subgroups.
2634 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2636 def HasGroup(*args
, **kwargs
):
2638 HasGroup(self, String name) -> bool
2640 Returns True if the group by this name exists
2642 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2644 def HasEntry(*args
, **kwargs
):
2646 HasEntry(self, String name) -> bool
2648 Returns True if the entry by this name exists
2650 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2652 def Exists(*args
, **kwargs
):
2654 Exists(self, String name) -> bool
2656 Returns True if either a group or an entry with a given name exists
2658 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2660 def GetEntryType(*args
, **kwargs
):
2662 GetEntryType(self, String name) -> int
2664 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2666 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2668 def Read(*args
, **kwargs
):
2670 Read(self, String key, String defaultVal=EmptyString) -> String
2672 Returns the value of key if it exists, defaultVal otherwise.
2674 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2676 def ReadInt(*args
, **kwargs
):
2678 ReadInt(self, String key, long defaultVal=0) -> long
2680 Returns the value of key if it exists, defaultVal otherwise.
2682 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2684 def ReadFloat(*args
, **kwargs
):
2686 ReadFloat(self, String key, double defaultVal=0.0) -> double
2688 Returns the value of key if it exists, defaultVal otherwise.
2690 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2692 def ReadBool(*args
, **kwargs
):
2694 ReadBool(self, String key, bool defaultVal=False) -> bool
2696 Returns the value of key if it exists, defaultVal otherwise.
2698 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2700 def Write(*args
, **kwargs
):
2702 Write(self, String key, String value) -> bool
2704 write the value (return True on success)
2706 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2708 def WriteInt(*args
, **kwargs
):
2710 WriteInt(self, String key, long value) -> bool
2712 write the value (return True on success)
2714 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2716 def WriteFloat(*args
, **kwargs
):
2718 WriteFloat(self, String key, double value) -> bool
2720 write the value (return True on success)
2722 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2724 def WriteBool(*args
, **kwargs
):
2726 WriteBool(self, String key, bool value) -> bool
2728 write the value (return True on success)
2730 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2732 def Flush(*args
, **kwargs
):
2734 Flush(self, bool currentOnly=False) -> bool
2736 permanently writes all changes
2738 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2740 def RenameEntry(*args
, **kwargs
):
2742 RenameEntry(self, String oldName, String newName) -> bool
2744 Rename an entry. Returns False on failure (probably because the new
2745 name is already taken by an existing entry)
2747 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2749 def RenameGroup(*args
, **kwargs
):
2751 RenameGroup(self, String oldName, String newName) -> bool
2753 Rename aa group. Returns False on failure (probably because the new
2754 name is already taken by an existing entry)
2756 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2758 def DeleteEntry(*args
, **kwargs
):
2760 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2762 Deletes the specified entry and the group it belongs to if
2763 it was the last key in it and the second parameter is True
2765 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2767 def DeleteGroup(*args
, **kwargs
):
2769 DeleteGroup(self, String key) -> bool
2771 Delete the group (with all subgroups)
2773 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2775 def DeleteAll(*args
, **kwargs
):
2777 DeleteAll(self) -> bool
2779 Delete the whole underlying object (disk file, registry key, ...)
2780 primarly intended for use by desinstallation routine.
2782 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2784 def SetExpandEnvVars(*args
, **kwargs
):
2786 SetExpandEnvVars(self, bool doIt=True)
2788 We can automatically expand environment variables in the config entries
2789 (this option is on by default, you can turn it on/off at any time)
2791 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2793 def IsExpandingEnvVars(*args
, **kwargs
):
2795 IsExpandingEnvVars(self) -> bool
2797 Are we currently expanding environment variables?
2799 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2801 def SetRecordDefaults(*args
, **kwargs
):
2803 SetRecordDefaults(self, bool doIt=True)
2805 Set whether the config objec should record default values.
2807 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2809 def IsRecordingDefaults(*args
, **kwargs
):
2811 IsRecordingDefaults(self) -> bool
2813 Are we currently recording default values?
2815 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2817 def ExpandEnvVars(*args
, **kwargs
):
2819 ExpandEnvVars(self, String str) -> String
2821 Expand any environment variables in str and return the result
2823 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2825 def GetAppName(*args
, **kwargs
):
2826 """GetAppName(self) -> String"""
2827 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
2829 def GetVendorName(*args
, **kwargs
):
2830 """GetVendorName(self) -> String"""
2831 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
2833 def SetAppName(*args
, **kwargs
):
2834 """SetAppName(self, String appName)"""
2835 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
2837 def SetVendorName(*args
, **kwargs
):
2838 """SetVendorName(self, String vendorName)"""
2839 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
2841 def SetStyle(*args
, **kwargs
):
2842 """SetStyle(self, long style)"""
2843 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
2845 def GetStyle(*args
, **kwargs
):
2846 """GetStyle(self) -> long"""
2847 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
2850 class ConfigBasePtr(ConfigBase
):
2851 def __init__(self
, this
):
2853 if not hasattr(self
,"thisown"): self
.thisown
= 0
2854 self
.__class
__ = ConfigBase
2855 _misc_
.ConfigBase_swigregister(ConfigBasePtr
)
2857 def ConfigBase_Set(*args
, **kwargs
):
2859 ConfigBase_Set(ConfigBase config) -> ConfigBase
2861 Sets the global config object (the one returned by Get) and
2862 returns a reference to the previous global config object.
2864 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2866 def ConfigBase_Get(*args
, **kwargs
):
2868 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
2870 Returns the current global config object, creating one if neccessary.
2872 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2874 def ConfigBase_Create(*args
, **kwargs
):
2876 ConfigBase_Create() -> ConfigBase
2878 Create and return a new global config object. This function will
2879 create the "best" implementation of wx.Config available for the
2882 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2884 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
2886 ConfigBase_DontCreateOnDemand()
2888 Should Get() try to create a new log object if there isn't a current one?
2890 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2892 class Config(ConfigBase
):
2894 This ConfigBase-derived class will use the registry on Windows,
2895 and will be a wx.FileConfig on other platforms.
2898 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2899 def __init__(self
, *args
, **kwargs
):
2901 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
2902 String localFilename=EmptyString, String globalFilename=EmptyString,
2903 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
2905 newobj
= _misc_
.new_Config(*args
, **kwargs
)
2906 self
.this
= newobj
.this
2909 def __del__(self
, destroy
=_misc_
.delete_Config
):
2912 if self
.thisown
: destroy(self
)
2916 class ConfigPtr(Config
):
2917 def __init__(self
, this
):
2919 if not hasattr(self
,"thisown"): self
.thisown
= 0
2920 self
.__class
__ = Config
2921 _misc_
.Config_swigregister(ConfigPtr
)
2923 class FileConfig(ConfigBase
):
2924 """This config class will use a file for storage on all platforms."""
2926 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2927 def __init__(self
, *args
, **kwargs
):
2929 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
2930 String localFilename=EmptyString, String globalFilename=EmptyString,
2931 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
2933 newobj
= _misc_
.new_FileConfig(*args
, **kwargs
)
2934 self
.this
= newobj
.this
2937 def __del__(self
, destroy
=_misc_
.delete_FileConfig
):
2940 if self
.thisown
: destroy(self
)
2944 class FileConfigPtr(FileConfig
):
2945 def __init__(self
, this
):
2947 if not hasattr(self
,"thisown"): self
.thisown
= 0
2948 self
.__class
__ = FileConfig
2949 _misc_
.FileConfig_swigregister(FileConfigPtr
)
2951 class ConfigPathChanger(object):
2953 A handy little class which changes current path to the path of
2954 given entry and restores it in the destructoir: so if you declare
2955 a local variable of this type, you work in the entry directory
2956 and the path is automatically restored when the function returns.
2959 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2960 def __init__(self
, *args
, **kwargs
):
2961 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
2962 newobj
= _misc_
.new_ConfigPathChanger(*args
, **kwargs
)
2963 self
.this
= newobj
.this
2966 def __del__(self
, destroy
=_misc_
.delete_ConfigPathChanger
):
2969 if self
.thisown
: destroy(self
)
2972 def Name(*args
, **kwargs
):
2974 Name(self) -> String
2978 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
2981 class ConfigPathChangerPtr(ConfigPathChanger
):
2982 def __init__(self
, this
):
2984 if not hasattr(self
,"thisown"): self
.thisown
= 0
2985 self
.__class
__ = ConfigPathChanger
2986 _misc_
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
2989 def ExpandEnvVars(*args
, **kwargs
):
2991 ExpandEnvVars(String sz) -> String
2993 Replace environment variables ($SOMETHING) with their values. The
2994 format is $VARNAME or ${VARNAME} where VARNAME contains
2995 alphanumeric characters and '_' only. '$' must be escaped ('\$')
2996 in order to be taken literally.
2998 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
2999 #---------------------------------------------------------------------------
3001 class DateTime(object):
3003 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3004 Local
= _misc_
.DateTime_Local
3005 GMT_12
= _misc_
.DateTime_GMT_12
3006 GMT_11
= _misc_
.DateTime_GMT_11
3007 GMT_10
= _misc_
.DateTime_GMT_10
3008 GMT_9
= _misc_
.DateTime_GMT_9
3009 GMT_8
= _misc_
.DateTime_GMT_8
3010 GMT_7
= _misc_
.DateTime_GMT_7
3011 GMT_6
= _misc_
.DateTime_GMT_6
3012 GMT_5
= _misc_
.DateTime_GMT_5
3013 GMT_4
= _misc_
.DateTime_GMT_4
3014 GMT_3
= _misc_
.DateTime_GMT_3
3015 GMT_2
= _misc_
.DateTime_GMT_2
3016 GMT_1
= _misc_
.DateTime_GMT_1
3017 GMT0
= _misc_
.DateTime_GMT0
3018 GMT1
= _misc_
.DateTime_GMT1
3019 GMT2
= _misc_
.DateTime_GMT2
3020 GMT3
= _misc_
.DateTime_GMT3
3021 GMT4
= _misc_
.DateTime_GMT4
3022 GMT5
= _misc_
.DateTime_GMT5
3023 GMT6
= _misc_
.DateTime_GMT6
3024 GMT7
= _misc_
.DateTime_GMT7
3025 GMT8
= _misc_
.DateTime_GMT8
3026 GMT9
= _misc_
.DateTime_GMT9
3027 GMT10
= _misc_
.DateTime_GMT10
3028 GMT11
= _misc_
.DateTime_GMT11
3029 GMT12
= _misc_
.DateTime_GMT12
3030 WET
= _misc_
.DateTime_WET
3031 WEST
= _misc_
.DateTime_WEST
3032 CET
= _misc_
.DateTime_CET
3033 CEST
= _misc_
.DateTime_CEST
3034 EET
= _misc_
.DateTime_EET
3035 EEST
= _misc_
.DateTime_EEST
3036 MSK
= _misc_
.DateTime_MSK
3037 MSD
= _misc_
.DateTime_MSD
3038 AST
= _misc_
.DateTime_AST
3039 ADT
= _misc_
.DateTime_ADT
3040 EST
= _misc_
.DateTime_EST
3041 EDT
= _misc_
.DateTime_EDT
3042 CST
= _misc_
.DateTime_CST
3043 CDT
= _misc_
.DateTime_CDT
3044 MST
= _misc_
.DateTime_MST
3045 MDT
= _misc_
.DateTime_MDT
3046 PST
= _misc_
.DateTime_PST
3047 PDT
= _misc_
.DateTime_PDT
3048 HST
= _misc_
.DateTime_HST
3049 AKST
= _misc_
.DateTime_AKST
3050 AKDT
= _misc_
.DateTime_AKDT
3051 A_WST
= _misc_
.DateTime_A_WST
3052 A_CST
= _misc_
.DateTime_A_CST
3053 A_EST
= _misc_
.DateTime_A_EST
3054 A_ESST
= _misc_
.DateTime_A_ESST
3055 UTC
= _misc_
.DateTime_UTC
3056 Gregorian
= _misc_
.DateTime_Gregorian
3057 Julian
= _misc_
.DateTime_Julian
3058 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3059 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3060 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3061 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3062 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3063 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3064 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3065 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3066 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3067 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3068 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3069 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3070 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3071 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3072 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3073 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3074 Gr_China
= _misc_
.DateTime_Gr_China
3075 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3076 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3077 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3078 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3079 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3080 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3081 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3082 Gr_France
= _misc_
.DateTime_Gr_France
3083 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3084 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3085 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3086 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3087 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3088 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3089 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3090 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3091 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3092 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3093 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3094 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3095 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3096 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3097 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3098 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3099 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3100 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3101 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3102 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3103 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3104 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3105 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3106 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3107 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3108 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3109 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3110 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3111 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3112 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3113 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3114 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3115 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3116 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3117 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3118 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3119 Gr_USA
= _misc_
.DateTime_Gr_USA
3120 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3121 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3122 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3123 Country_Default
= _misc_
.DateTime_Country_Default
3124 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3125 Country_EEC
= _misc_
.DateTime_Country_EEC
3126 France
= _misc_
.DateTime_France
3127 Germany
= _misc_
.DateTime_Germany
3128 UK
= _misc_
.DateTime_UK
3129 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3130 Russia
= _misc_
.DateTime_Russia
3131 USA
= _misc_
.DateTime_USA
3132 Jan
= _misc_
.DateTime_Jan
3133 Feb
= _misc_
.DateTime_Feb
3134 Mar
= _misc_
.DateTime_Mar
3135 Apr
= _misc_
.DateTime_Apr
3136 May
= _misc_
.DateTime_May
3137 Jun
= _misc_
.DateTime_Jun
3138 Jul
= _misc_
.DateTime_Jul
3139 Aug
= _misc_
.DateTime_Aug
3140 Sep
= _misc_
.DateTime_Sep
3141 Oct
= _misc_
.DateTime_Oct
3142 Nov
= _misc_
.DateTime_Nov
3143 Dec
= _misc_
.DateTime_Dec
3144 Inv_Month
= _misc_
.DateTime_Inv_Month
3145 Sun
= _misc_
.DateTime_Sun
3146 Mon
= _misc_
.DateTime_Mon
3147 Tue
= _misc_
.DateTime_Tue
3148 Wed
= _misc_
.DateTime_Wed
3149 Thu
= _misc_
.DateTime_Thu
3150 Fri
= _misc_
.DateTime_Fri
3151 Sat
= _misc_
.DateTime_Sat
3152 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3153 Inv_Year
= _misc_
.DateTime_Inv_Year
3154 Name_Full
= _misc_
.DateTime_Name_Full
3155 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3156 Default_First
= _misc_
.DateTime_Default_First
3157 Monday_First
= _misc_
.DateTime_Monday_First
3158 Sunday_First
= _misc_
.DateTime_Sunday_First
3159 def SetCountry(*args
, **kwargs
):
3160 """DateTime.SetCountry(int country)"""
3161 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3163 SetCountry
= staticmethod(SetCountry
)
3164 def GetCountry(*args
, **kwargs
):
3165 """DateTime.GetCountry() -> int"""
3166 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3168 GetCountry
= staticmethod(GetCountry
)
3169 def IsWestEuropeanCountry(*args
, **kwargs
):
3170 """DateTime.IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3171 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3173 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3174 def GetCurrentYear(*args
, **kwargs
):
3175 """DateTime.GetCurrentYear(int cal=Gregorian) -> int"""
3176 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3178 GetCurrentYear
= staticmethod(GetCurrentYear
)
3179 def ConvertYearToBC(*args
, **kwargs
):
3180 """DateTime.ConvertYearToBC(int year) -> int"""
3181 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3183 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3184 def GetCurrentMonth(*args
, **kwargs
):
3185 """DateTime.GetCurrentMonth(int cal=Gregorian) -> int"""
3186 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3188 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3189 def IsLeapYear(*args
, **kwargs
):
3190 """DateTime.IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3191 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3193 IsLeapYear
= staticmethod(IsLeapYear
)
3194 def GetCentury(*args
, **kwargs
):
3195 """DateTime.GetCentury(int year=Inv_Year) -> int"""
3196 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3198 GetCentury
= staticmethod(GetCentury
)
3199 def GetNumberOfDaysinYear(*args
, **kwargs
):
3200 """DateTime.GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3201 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3203 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3204 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3205 """DateTime.GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3206 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3208 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3209 def GetMonthName(*args
, **kwargs
):
3210 """DateTime.GetMonthName(int month, int flags=Name_Full) -> String"""
3211 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3213 GetMonthName
= staticmethod(GetMonthName
)
3214 def GetWeekDayName(*args
, **kwargs
):
3215 """DateTime.GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3216 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3218 GetWeekDayName
= staticmethod(GetWeekDayName
)
3219 def GetAmPmStrings(*args
, **kwargs
):
3221 GetAmPmStrings() -> (am, pm)
3223 Get the AM and PM strings in the current locale (may be empty)
3225 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3227 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3228 def IsDSTApplicable(*args
, **kwargs
):
3229 """DateTime.IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3230 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3232 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3233 def GetBeginDST(*args
, **kwargs
):
3234 """DateTime.GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3235 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3237 GetBeginDST
= staticmethod(GetBeginDST
)
3238 def GetEndDST(*args
, **kwargs
):
3239 """DateTime.GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3240 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3242 GetEndDST
= staticmethod(GetEndDST
)
3243 def Now(*args
, **kwargs
):
3244 """DateTime.Now() -> DateTime"""
3245 return _misc_
.DateTime_Now(*args
, **kwargs
)
3247 Now
= staticmethod(Now
)
3248 def UNow(*args
, **kwargs
):
3249 """DateTime.UNow() -> DateTime"""
3250 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3252 UNow
= staticmethod(UNow
)
3253 def Today(*args
, **kwargs
):
3254 """DateTime.Today() -> DateTime"""
3255 return _misc_
.DateTime_Today(*args
, **kwargs
)
3257 Today
= staticmethod(Today
)
3258 def __init__(self
, *args
, **kwargs
):
3259 """__init__(self) -> DateTime"""
3260 newobj
= _misc_
.new_DateTime(*args
, **kwargs
)
3261 self
.this
= newobj
.this
3264 def __del__(self
, destroy
=_misc_
.delete_DateTime
):
3267 if self
.thisown
: destroy(self
)
3270 def SetToCurrent(*args
, **kwargs
):
3271 """SetToCurrent(self) -> DateTime"""
3272 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3274 def SetTimeT(*args
, **kwargs
):
3275 """SetTimeT(self, time_t timet) -> DateTime"""
3276 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3278 def SetJDN(*args
, **kwargs
):
3279 """SetJDN(self, double jdn) -> DateTime"""
3280 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3282 def SetHMS(*args
, **kwargs
):
3283 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3284 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3286 def Set(*args
, **kwargs
):
3288 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3289 int minute=0, int second=0, int millisec=0) -> DateTime
3291 return _misc_
.DateTime_Set(*args
, **kwargs
)
3293 def ResetTime(*args
, **kwargs
):
3294 """ResetTime(self) -> DateTime"""
3295 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3297 def SetYear(*args
, **kwargs
):
3298 """SetYear(self, int year) -> DateTime"""
3299 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3301 def SetMonth(*args
, **kwargs
):
3302 """SetMonth(self, int month) -> DateTime"""
3303 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3305 def SetDay(*args
, **kwargs
):
3306 """SetDay(self, int day) -> DateTime"""
3307 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3309 def SetHour(*args
, **kwargs
):
3310 """SetHour(self, int hour) -> DateTime"""
3311 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3313 def SetMinute(*args
, **kwargs
):
3314 """SetMinute(self, int minute) -> DateTime"""
3315 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3317 def SetSecond(*args
, **kwargs
):
3318 """SetSecond(self, int second) -> DateTime"""
3319 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3321 def SetMillisecond(*args
, **kwargs
):
3322 """SetMillisecond(self, int millisecond) -> DateTime"""
3323 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3325 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3326 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3327 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3329 def GetWeekDayInSameWeek(*args
, **kwargs
):
3330 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3331 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3333 def SetToNextWeekDay(*args
, **kwargs
):
3334 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3335 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3337 def GetNextWeekDay(*args
, **kwargs
):
3338 """GetNextWeekDay(self, int weekday) -> DateTime"""
3339 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3341 def SetToPrevWeekDay(*args
, **kwargs
):
3342 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3343 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3345 def GetPrevWeekDay(*args
, **kwargs
):
3346 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3347 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3349 def SetToWeekDay(*args
, **kwargs
):
3350 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3351 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3353 def SetToLastWeekDay(*args
, **kwargs
):
3354 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3355 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3357 def GetLastWeekDay(*args
, **kwargs
):
3358 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3359 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3361 def SetToTheWeek(*args
, **kwargs
):
3362 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3363 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3365 def GetWeek(*args
, **kwargs
):
3366 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3367 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3369 def SetToLastMonthDay(*args
, **kwargs
):
3370 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3371 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3373 def GetLastMonthDay(*args
, **kwargs
):
3374 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3375 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3377 def SetToYearDay(*args
, **kwargs
):
3378 """SetToYearDay(self, int yday) -> DateTime"""
3379 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3381 def GetYearDay(*args
, **kwargs
):
3382 """GetYearDay(self, int yday) -> DateTime"""
3383 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3385 def GetJulianDayNumber(*args
, **kwargs
):
3386 """GetJulianDayNumber(self) -> double"""
3387 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3389 def GetJDN(*args
, **kwargs
):
3390 """GetJDN(self) -> double"""
3391 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3393 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3394 """GetModifiedJulianDayNumber(self) -> double"""
3395 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3397 def GetMJD(*args
, **kwargs
):
3398 """GetMJD(self) -> double"""
3399 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3401 def GetRataDie(*args
, **kwargs
):
3402 """GetRataDie(self) -> double"""
3403 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3405 def ToTimezone(*args
, **kwargs
):
3406 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3407 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3409 def MakeTimezone(*args
, **kwargs
):
3410 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3411 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3413 def ToGMT(*args
, **kwargs
):
3414 """ToGMT(self, bool noDST=False) -> DateTime"""
3415 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3417 def MakeGMT(*args
, **kwargs
):
3418 """MakeGMT(self, bool noDST=False) -> DateTime"""
3419 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3421 def IsDST(*args
, **kwargs
):
3422 """IsDST(self, int country=Country_Default) -> int"""
3423 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3425 def IsValid(*args
, **kwargs
):
3426 """IsValid(self) -> bool"""
3427 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3430 def __nonzero__(self
): return self
.Ok()
3431 def GetTicks(*args
, **kwargs
):
3432 """GetTicks(self) -> time_t"""
3433 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3435 def GetYear(*args
, **kwargs
):
3436 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3437 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3439 def GetMonth(*args
, **kwargs
):
3440 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3441 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3443 def GetDay(*args
, **kwargs
):
3444 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3445 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3447 def GetWeekDay(*args
, **kwargs
):
3448 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3449 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3451 def GetHour(*args
, **kwargs
):
3452 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3453 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3455 def GetMinute(*args
, **kwargs
):
3456 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3457 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3459 def GetSecond(*args
, **kwargs
):
3460 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3461 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3463 def GetMillisecond(*args
, **kwargs
):
3464 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3465 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3467 def GetDayOfYear(*args
, **kwargs
):
3468 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3469 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3471 def GetWeekOfYear(*args
, **kwargs
):
3472 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3473 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3475 def GetWeekOfMonth(*args
, **kwargs
):
3476 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3477 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3479 def IsWorkDay(*args
, **kwargs
):
3480 """IsWorkDay(self, int country=Country_Default) -> bool"""
3481 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3483 def IsEqualTo(*args
, **kwargs
):
3484 """IsEqualTo(self, DateTime datetime) -> bool"""
3485 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3487 def IsEarlierThan(*args
, **kwargs
):
3488 """IsEarlierThan(self, DateTime datetime) -> bool"""
3489 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3491 def IsLaterThan(*args
, **kwargs
):
3492 """IsLaterThan(self, DateTime datetime) -> bool"""
3493 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3495 def IsStrictlyBetween(*args
, **kwargs
):
3496 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3497 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3499 def IsBetween(*args
, **kwargs
):
3500 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3501 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3503 def IsSameDate(*args
, **kwargs
):
3504 """IsSameDate(self, DateTime dt) -> bool"""
3505 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3507 def IsSameTime(*args
, **kwargs
):
3508 """IsSameTime(self, DateTime dt) -> bool"""
3509 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3511 def IsEqualUpTo(*args
, **kwargs
):
3512 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3513 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3515 def AddTS(*args
, **kwargs
):
3516 """AddTS(self, TimeSpan diff) -> DateTime"""
3517 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3519 def AddDS(*args
, **kwargs
):
3520 """AddDS(self, DateSpan diff) -> DateTime"""
3521 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3523 def SubtractTS(*args
, **kwargs
):
3524 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3525 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3527 def SubtractDS(*args
, **kwargs
):
3528 """SubtractDS(self, DateSpan diff) -> DateTime"""
3529 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3531 def Subtract(*args
, **kwargs
):
3532 """Subtract(self, DateTime dt) -> TimeSpan"""
3533 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3535 def __iadd__(*args
):
3537 __iadd__(self, TimeSpan diff) -> DateTime
3538 __iadd__(self, DateSpan diff) -> DateTime
3540 return _misc_
.DateTime___iadd__(*args
)
3542 def __isub__(*args
):
3544 __isub__(self, TimeSpan diff) -> DateTime
3545 __isub__(self, DateSpan diff) -> DateTime
3547 return _misc_
.DateTime___isub__(*args
)
3551 __add__(self, TimeSpan other) -> DateTime
3552 __add__(self, DateSpan other) -> DateTime
3554 return _misc_
.DateTime___add__(*args
)
3558 __sub__(self, DateTime other) -> TimeSpan
3559 __sub__(self, TimeSpan other) -> DateTime
3560 __sub__(self, DateSpan other) -> DateTime
3562 return _misc_
.DateTime___sub__(*args
)
3565 """__lt__(self, DateTime other) -> bool"""
3566 return _misc_
.DateTime___lt__(*args
)
3569 """__le__(self, DateTime other) -> bool"""
3570 return _misc_
.DateTime___le__(*args
)
3573 """__gt__(self, DateTime other) -> bool"""
3574 return _misc_
.DateTime___gt__(*args
)
3577 """__ge__(self, DateTime other) -> bool"""
3578 return _misc_
.DateTime___ge__(*args
)
3581 """__eq__(self, DateTime other) -> bool"""
3582 return _misc_
.DateTime___eq__(*args
)
3585 """__ne__(self, DateTime other) -> bool"""
3586 return _misc_
.DateTime___ne__(*args
)
3588 def ParseRfc822Date(*args
, **kwargs
):
3589 """ParseRfc822Date(self, String date) -> int"""
3590 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3592 def ParseFormat(*args
, **kwargs
):
3593 """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int"""
3594 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3596 def ParseDateTime(*args
, **kwargs
):
3597 """ParseDateTime(self, String datetime) -> int"""
3598 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3600 def ParseDate(*args
, **kwargs
):
3601 """ParseDate(self, String date) -> int"""
3602 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3604 def ParseTime(*args
, **kwargs
):
3605 """ParseTime(self, String time) -> int"""
3606 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3608 def Format(*args
, **kwargs
):
3609 """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3610 return _misc_
.DateTime_Format(*args
, **kwargs
)
3612 def FormatDate(*args
, **kwargs
):
3613 """FormatDate(self) -> String"""
3614 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3616 def FormatTime(*args
, **kwargs
):
3617 """FormatTime(self) -> String"""
3618 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3620 def FormatISODate(*args
, **kwargs
):
3621 """FormatISODate(self) -> String"""
3622 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3624 def FormatISOTime(*args
, **kwargs
):
3625 """FormatISOTime(self) -> String"""
3626 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3630 return '<wx.DateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3632 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3635 return self
.Format()
3637 return "INVALID DateTime"
3640 class DateTimePtr(DateTime
):
3641 def __init__(self
, this
):
3643 if not hasattr(self
,"thisown"): self
.thisown
= 0
3644 self
.__class
__ = DateTime
3645 _misc_
.DateTime_swigregister(DateTimePtr
)
3646 DateFormatStr
= cvar
.DateFormatStr
3647 TimeSpanFormatStr
= cvar
.TimeSpanFormatStr
3649 def DateTime_SetCountry(*args
, **kwargs
):
3650 """DateTime_SetCountry(int country)"""
3651 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3653 def DateTime_GetCountry(*args
, **kwargs
):
3654 """DateTime_GetCountry() -> int"""
3655 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3657 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3658 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3659 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3661 def DateTime_GetCurrentYear(*args
, **kwargs
):
3662 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3663 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3665 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3666 """DateTime_ConvertYearToBC(int year) -> int"""
3667 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3669 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3670 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3671 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3673 def DateTime_IsLeapYear(*args
, **kwargs
):
3674 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3675 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3677 def DateTime_GetCentury(*args
, **kwargs
):
3678 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3679 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3681 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3682 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3683 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3685 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3686 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3687 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3689 def DateTime_GetMonthName(*args
, **kwargs
):
3690 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3691 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3693 def DateTime_GetWeekDayName(*args
, **kwargs
):
3694 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3695 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3697 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3699 GetAmPmStrings() -> (am, pm)
3701 Get the AM and PM strings in the current locale (may be empty)
3703 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3705 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3706 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3707 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3709 def DateTime_GetBeginDST(*args
, **kwargs
):
3710 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3711 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3713 def DateTime_GetEndDST(*args
, **kwargs
):
3714 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3715 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3717 def DateTime_Now(*args
, **kwargs
):
3718 """DateTime_Now() -> DateTime"""
3719 return _misc_
.DateTime_Now(*args
, **kwargs
)
3721 def DateTime_UNow(*args
, **kwargs
):
3722 """DateTime_UNow() -> DateTime"""
3723 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3725 def DateTime_Today(*args
, **kwargs
):
3726 """DateTime_Today() -> DateTime"""
3727 return _misc_
.DateTime_Today(*args
, **kwargs
)
3729 def DateTimeFromTimeT(*args
, **kwargs
):
3730 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3731 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3735 def DateTimeFromJDN(*args
, **kwargs
):
3736 """DateTimeFromJDN(double jdn) -> DateTime"""
3737 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3741 def DateTimeFromHMS(*args
, **kwargs
):
3742 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3743 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3747 def DateTimeFromDMY(*args
, **kwargs
):
3749 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3750 int minute=0, int second=0, int millisec=0) -> DateTime
3752 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3756 class TimeSpan(object):
3758 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3759 def Seconds(*args
, **kwargs
):
3760 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3761 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3763 Seconds
= staticmethod(Seconds
)
3764 def Second(*args
, **kwargs
):
3765 """TimeSpan.Second() -> TimeSpan"""
3766 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3768 Second
= staticmethod(Second
)
3769 def Minutes(*args
, **kwargs
):
3770 """TimeSpan.Minutes(long min) -> TimeSpan"""
3771 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3773 Minutes
= staticmethod(Minutes
)
3774 def Minute(*args
, **kwargs
):
3775 """TimeSpan.Minute() -> TimeSpan"""
3776 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3778 Minute
= staticmethod(Minute
)
3779 def Hours(*args
, **kwargs
):
3780 """TimeSpan.Hours(long hours) -> TimeSpan"""
3781 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3783 Hours
= staticmethod(Hours
)
3784 def Hour(*args
, **kwargs
):
3785 """TimeSpan.Hour() -> TimeSpan"""
3786 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3788 Hour
= staticmethod(Hour
)
3789 def Days(*args
, **kwargs
):
3790 """TimeSpan.Days(long days) -> TimeSpan"""
3791 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3793 Days
= staticmethod(Days
)
3794 def Day(*args
, **kwargs
):
3795 """TimeSpan.Day() -> TimeSpan"""
3796 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3798 Day
= staticmethod(Day
)
3799 def Weeks(*args
, **kwargs
):
3800 """TimeSpan.Weeks(long days) -> TimeSpan"""
3801 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3803 Weeks
= staticmethod(Weeks
)
3804 def Week(*args
, **kwargs
):
3805 """TimeSpan.Week() -> TimeSpan"""
3806 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3808 Week
= staticmethod(Week
)
3809 def __init__(self
, *args
, **kwargs
):
3810 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3811 newobj
= _misc_
.new_TimeSpan(*args
, **kwargs
)
3812 self
.this
= newobj
.this
3815 def __del__(self
, destroy
=_misc_
.delete_TimeSpan
):
3818 if self
.thisown
: destroy(self
)
3821 def Add(*args
, **kwargs
):
3822 """Add(self, TimeSpan diff) -> TimeSpan"""
3823 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3825 def Subtract(*args
, **kwargs
):
3826 """Subtract(self, TimeSpan diff) -> TimeSpan"""
3827 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
3829 def Multiply(*args
, **kwargs
):
3830 """Multiply(self, int n) -> TimeSpan"""
3831 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
3833 def Neg(*args
, **kwargs
):
3834 """Neg(self) -> TimeSpan"""
3835 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
3837 def Abs(*args
, **kwargs
):
3838 """Abs(self) -> TimeSpan"""
3839 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
3841 def __iadd__(*args
, **kwargs
):
3842 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
3843 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
3845 def __isub__(*args
, **kwargs
):
3846 """__isub__(self, TimeSpan diff) -> TimeSpan"""
3847 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
3849 def __imul__(*args
, **kwargs
):
3850 """__imul__(self, int n) -> TimeSpan"""
3851 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
3853 def __neg__(*args
, **kwargs
):
3854 """__neg__(self) -> TimeSpan"""
3855 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
3857 def __add__(*args
, **kwargs
):
3858 """__add__(self, TimeSpan other) -> TimeSpan"""
3859 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
3861 def __sub__(*args
, **kwargs
):
3862 """__sub__(self, TimeSpan other) -> TimeSpan"""
3863 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
3865 def __mul__(*args
, **kwargs
):
3866 """__mul__(self, int n) -> TimeSpan"""
3867 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
3869 def __rmul__(*args
, **kwargs
):
3870 """__rmul__(self, int n) -> TimeSpan"""
3871 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
3873 def __lt__(*args
, **kwargs
):
3874 """__lt__(self, TimeSpan other) -> bool"""
3875 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
3877 def __le__(*args
, **kwargs
):
3878 """__le__(self, TimeSpan other) -> bool"""
3879 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
3881 def __gt__(*args
, **kwargs
):
3882 """__gt__(self, TimeSpan other) -> bool"""
3883 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
3885 def __ge__(*args
, **kwargs
):
3886 """__ge__(self, TimeSpan other) -> bool"""
3887 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
3889 def __eq__(*args
, **kwargs
):
3890 """__eq__(self, TimeSpan other) -> bool"""
3891 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
3893 def __ne__(*args
, **kwargs
):
3894 """__ne__(self, TimeSpan other) -> bool"""
3895 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
3897 def IsNull(*args
, **kwargs
):
3898 """IsNull(self) -> bool"""
3899 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
3901 def IsPositive(*args
, **kwargs
):
3902 """IsPositive(self) -> bool"""
3903 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
3905 def IsNegative(*args
, **kwargs
):
3906 """IsNegative(self) -> bool"""
3907 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
3909 def IsEqualTo(*args
, **kwargs
):
3910 """IsEqualTo(self, TimeSpan ts) -> bool"""
3911 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3913 def IsLongerThan(*args
, **kwargs
):
3914 """IsLongerThan(self, TimeSpan ts) -> bool"""
3915 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3917 def IsShorterThan(*args
, **kwargs
):
3918 """IsShorterThan(self, TimeSpan t) -> bool"""
3919 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
3921 def GetWeeks(*args
, **kwargs
):
3922 """GetWeeks(self) -> int"""
3923 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
3925 def GetDays(*args
, **kwargs
):
3926 """GetDays(self) -> int"""
3927 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
3929 def GetHours(*args
, **kwargs
):
3930 """GetHours(self) -> int"""
3931 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
3933 def GetMinutes(*args
, **kwargs
):
3934 """GetMinutes(self) -> int"""
3935 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
3937 def GetSeconds(*args
, **kwargs
):
3938 """GetSeconds(self) -> wxLongLong"""
3939 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
3941 def GetMilliseconds(*args
, **kwargs
):
3942 """GetMilliseconds(self) -> wxLongLong"""
3943 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
3945 def Format(*args
, **kwargs
):
3946 """Format(self, String format=TimeSpanFormatStr) -> String"""
3947 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
3950 return '<wx.TimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3952 return self
.Format()
3955 class TimeSpanPtr(TimeSpan
):
3956 def __init__(self
, this
):
3958 if not hasattr(self
,"thisown"): self
.thisown
= 0
3959 self
.__class
__ = TimeSpan
3960 _misc_
.TimeSpan_swigregister(TimeSpanPtr
)
3962 def TimeSpan_Seconds(*args
, **kwargs
):
3963 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3964 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3966 def TimeSpan_Second(*args
, **kwargs
):
3967 """TimeSpan_Second() -> TimeSpan"""
3968 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3970 def TimeSpan_Minutes(*args
, **kwargs
):
3971 """TimeSpan_Minutes(long min) -> TimeSpan"""
3972 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3974 def TimeSpan_Minute(*args
, **kwargs
):
3975 """TimeSpan_Minute() -> TimeSpan"""
3976 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3978 def TimeSpan_Hours(*args
, **kwargs
):
3979 """TimeSpan_Hours(long hours) -> TimeSpan"""
3980 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3982 def TimeSpan_Hour(*args
, **kwargs
):
3983 """TimeSpan_Hour() -> TimeSpan"""
3984 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3986 def TimeSpan_Days(*args
, **kwargs
):
3987 """TimeSpan_Days(long days) -> TimeSpan"""
3988 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3990 def TimeSpan_Day(*args
, **kwargs
):
3991 """TimeSpan_Day() -> TimeSpan"""
3992 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3994 def TimeSpan_Weeks(*args
, **kwargs
):
3995 """TimeSpan_Weeks(long days) -> TimeSpan"""
3996 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3998 def TimeSpan_Week(*args
, **kwargs
):
3999 """TimeSpan_Week() -> TimeSpan"""
4000 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4002 class DateSpan(object):
4004 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4005 def __init__(self
, *args
, **kwargs
):
4006 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4007 newobj
= _misc_
.new_DateSpan(*args
, **kwargs
)
4008 self
.this
= newobj
.this
4011 def __del__(self
, destroy
=_misc_
.delete_DateSpan
):
4014 if self
.thisown
: destroy(self
)
4017 def Days(*args
, **kwargs
):
4018 """DateSpan.Days(int days) -> DateSpan"""
4019 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4021 Days
= staticmethod(Days
)
4022 def Day(*args
, **kwargs
):
4023 """DateSpan.Day() -> DateSpan"""
4024 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4026 Day
= staticmethod(Day
)
4027 def Weeks(*args
, **kwargs
):
4028 """DateSpan.Weeks(int weeks) -> DateSpan"""
4029 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4031 Weeks
= staticmethod(Weeks
)
4032 def Week(*args
, **kwargs
):
4033 """DateSpan.Week() -> DateSpan"""
4034 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4036 Week
= staticmethod(Week
)
4037 def Months(*args
, **kwargs
):
4038 """DateSpan.Months(int mon) -> DateSpan"""
4039 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4041 Months
= staticmethod(Months
)
4042 def Month(*args
, **kwargs
):
4043 """DateSpan.Month() -> DateSpan"""
4044 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4046 Month
= staticmethod(Month
)
4047 def Years(*args
, **kwargs
):
4048 """DateSpan.Years(int years) -> DateSpan"""
4049 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4051 Years
= staticmethod(Years
)
4052 def Year(*args
, **kwargs
):
4053 """DateSpan.Year() -> DateSpan"""
4054 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4056 Year
= staticmethod(Year
)
4057 def SetYears(*args
, **kwargs
):
4058 """SetYears(self, int n) -> DateSpan"""
4059 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4061 def SetMonths(*args
, **kwargs
):
4062 """SetMonths(self, int n) -> DateSpan"""
4063 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4065 def SetWeeks(*args
, **kwargs
):
4066 """SetWeeks(self, int n) -> DateSpan"""
4067 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4069 def SetDays(*args
, **kwargs
):
4070 """SetDays(self, int n) -> DateSpan"""
4071 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4073 def GetYears(*args
, **kwargs
):
4074 """GetYears(self) -> int"""
4075 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4077 def GetMonths(*args
, **kwargs
):
4078 """GetMonths(self) -> int"""
4079 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4081 def GetWeeks(*args
, **kwargs
):
4082 """GetWeeks(self) -> int"""
4083 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4085 def GetDays(*args
, **kwargs
):
4086 """GetDays(self) -> int"""
4087 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4089 def GetTotalDays(*args
, **kwargs
):
4090 """GetTotalDays(self) -> int"""
4091 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4093 def Add(*args
, **kwargs
):
4094 """Add(self, DateSpan other) -> DateSpan"""
4095 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4097 def Subtract(*args
, **kwargs
):
4098 """Subtract(self, DateSpan other) -> DateSpan"""
4099 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4101 def Neg(*args
, **kwargs
):
4102 """Neg(self) -> DateSpan"""
4103 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4105 def Multiply(*args
, **kwargs
):
4106 """Multiply(self, int factor) -> DateSpan"""
4107 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4109 def __iadd__(*args
, **kwargs
):
4110 """__iadd__(self, DateSpan other) -> DateSpan"""
4111 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4113 def __isub__(*args
, **kwargs
):
4114 """__isub__(self, DateSpan other) -> DateSpan"""
4115 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4117 def __neg__(*args
, **kwargs
):
4118 """__neg__(self) -> DateSpan"""
4119 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4121 def __imul__(*args
, **kwargs
):
4122 """__imul__(self, int factor) -> DateSpan"""
4123 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4125 def __add__(*args
, **kwargs
):
4126 """__add__(self, DateSpan other) -> DateSpan"""
4127 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4129 def __sub__(*args
, **kwargs
):
4130 """__sub__(self, DateSpan other) -> DateSpan"""
4131 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4133 def __mul__(*args
, **kwargs
):
4134 """__mul__(self, int n) -> DateSpan"""
4135 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4137 def __rmul__(*args
, **kwargs
):
4138 """__rmul__(self, int n) -> DateSpan"""
4139 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4141 def __eq__(*args
, **kwargs
):
4142 """__eq__(self, DateSpan other) -> bool"""
4143 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4145 def __ne__(*args
, **kwargs
):
4146 """__ne__(self, DateSpan other) -> bool"""
4147 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4150 class DateSpanPtr(DateSpan
):
4151 def __init__(self
, this
):
4153 if not hasattr(self
,"thisown"): self
.thisown
= 0
4154 self
.__class
__ = DateSpan
4155 _misc_
.DateSpan_swigregister(DateSpanPtr
)
4157 def DateSpan_Days(*args
, **kwargs
):
4158 """DateSpan_Days(int days) -> DateSpan"""
4159 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4161 def DateSpan_Day(*args
, **kwargs
):
4162 """DateSpan_Day() -> DateSpan"""
4163 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4165 def DateSpan_Weeks(*args
, **kwargs
):
4166 """DateSpan_Weeks(int weeks) -> DateSpan"""
4167 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4169 def DateSpan_Week(*args
, **kwargs
):
4170 """DateSpan_Week() -> DateSpan"""
4171 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4173 def DateSpan_Months(*args
, **kwargs
):
4174 """DateSpan_Months(int mon) -> DateSpan"""
4175 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4177 def DateSpan_Month(*args
, **kwargs
):
4178 """DateSpan_Month() -> DateSpan"""
4179 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4181 def DateSpan_Years(*args
, **kwargs
):
4182 """DateSpan_Years(int years) -> DateSpan"""
4183 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4185 def DateSpan_Year(*args
, **kwargs
):
4186 """DateSpan_Year() -> DateSpan"""
4187 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4190 def GetLocalTime(*args
, **kwargs
):
4191 """GetLocalTime() -> long"""
4192 return _misc_
.GetLocalTime(*args
, **kwargs
)
4194 def GetUTCTime(*args
, **kwargs
):
4195 """GetUTCTime() -> long"""
4196 return _misc_
.GetUTCTime(*args
, **kwargs
)
4198 def GetCurrentTime(*args
, **kwargs
):
4199 """GetCurrentTime() -> long"""
4200 return _misc_
.GetCurrentTime(*args
, **kwargs
)
4202 def GetLocalTimeMillis(*args
, **kwargs
):
4203 """GetLocalTimeMillis() -> wxLongLong"""
4204 return _misc_
.GetLocalTimeMillis(*args
, **kwargs
)
4205 #---------------------------------------------------------------------------
4207 DF_INVALID
= _misc_
.DF_INVALID
4208 DF_TEXT
= _misc_
.DF_TEXT
4209 DF_BITMAP
= _misc_
.DF_BITMAP
4210 DF_METAFILE
= _misc_
.DF_METAFILE
4211 DF_SYLK
= _misc_
.DF_SYLK
4212 DF_DIF
= _misc_
.DF_DIF
4213 DF_TIFF
= _misc_
.DF_TIFF
4214 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4215 DF_DIB
= _misc_
.DF_DIB
4216 DF_PALETTE
= _misc_
.DF_PALETTE
4217 DF_PENDATA
= _misc_
.DF_PENDATA
4218 DF_RIFF
= _misc_
.DF_RIFF
4219 DF_WAVE
= _misc_
.DF_WAVE
4220 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4221 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4222 DF_FILENAME
= _misc_
.DF_FILENAME
4223 DF_LOCALE
= _misc_
.DF_LOCALE
4224 DF_PRIVATE
= _misc_
.DF_PRIVATE
4225 DF_HTML
= _misc_
.DF_HTML
4226 DF_MAX
= _misc_
.DF_MAX
4227 class DataFormat(object):
4229 A wx.DataFormat is an encapsulation of a platform-specific format
4230 handle which is used by the system for the clipboard and drag and
4231 drop operations. The applications are usually only interested in,
4232 for example, pasting data from the clipboard only if the data is
4233 in a format the program understands. A data format is is used to
4234 uniquely identify this format.
4236 On the system level, a data format is usually just a number
4237 (CLIPFORMAT under Windows or Atom under X11, for example).
4240 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4241 def __init__(self
, *args
, **kwargs
):
4243 __init__(self, int type) -> DataFormat
4245 Constructs a data format object for one of the standard data
4246 formats or an empty data object (use SetType or SetId later in
4249 newobj
= _misc_
.new_DataFormat(*args
, **kwargs
)
4250 self
.this
= newobj
.this
4253 def __del__(self
, destroy
=_misc_
.delete_DataFormat
):
4256 if self
.thisown
: destroy(self
)
4261 __eq__(self, int format) -> bool
4262 __eq__(self, DataFormat format) -> bool
4264 return _misc_
.DataFormat___eq__(*args
)
4268 __ne__(self, int format) -> bool
4269 __ne__(self, DataFormat format) -> bool
4271 return _misc_
.DataFormat___ne__(*args
)
4273 def SetType(*args
, **kwargs
):
4275 SetType(self, int format)
4277 Sets the format to the given value, which should be one of wx.DF_XXX constants.
4279 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4281 def GetType(*args
, **kwargs
):
4283 GetType(self) -> int
4285 Returns the platform-specific number identifying the format.
4287 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4289 def GetId(*args
, **kwargs
):
4291 GetId(self) -> String
4293 Returns the name of a custom format (this function will fail for a standard format).
4295 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4297 def SetId(*args
, **kwargs
):
4299 SetId(self, String format)
4301 Sets the format to be the custom format identified by the given name.
4303 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4306 class DataFormatPtr(DataFormat
):
4307 def __init__(self
, this
):
4309 if not hasattr(self
,"thisown"): self
.thisown
= 0
4310 self
.__class
__ = DataFormat
4311 _misc_
.DataFormat_swigregister(DataFormatPtr
)
4312 DefaultDateTime
= cvar
.DefaultDateTime
4314 def CustomDataFormat(*args
, **kwargs
):
4316 CustomDataFormat(String format) -> DataFormat
4318 Constructs a data format object for a custom format identified by its name.
4320 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4324 class DataObject(object):
4325 def __init__(self
): raise RuntimeError, "No constructor defined"
4327 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4328 Get
= _misc_
.DataObject_Get
4329 Set
= _misc_
.DataObject_Set
4330 Both
= _misc_
.DataObject_Both
4331 def __del__(self
, destroy
=_misc_
.delete_DataObject
):
4334 if self
.thisown
: destroy(self
)
4337 def GetPreferredFormat(*args
, **kwargs
):
4338 """GetPreferredFormat(self, int dir=Get) -> DataFormat"""
4339 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4341 def GetFormatCount(*args
, **kwargs
):
4342 """GetFormatCount(self, int dir=Get) -> size_t"""
4343 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4345 def IsSupported(*args
, **kwargs
):
4346 """IsSupported(self, DataFormat format, int dir=Get) -> bool"""
4347 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4349 def GetDataSize(*args
, **kwargs
):
4350 """GetDataSize(self, DataFormat format) -> size_t"""
4351 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4353 def GetAllFormats(*args
, **kwargs
):
4354 """GetAllFormats(self, DataFormat formats, int dir=Get)"""
4355 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4357 def GetDataHere(*args
, **kwargs
):
4358 """GetDataHere(self, DataFormat format, void buf) -> bool"""
4359 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4361 def SetData(*args
, **kwargs
):
4362 """SetData(self, DataFormat format, size_t len, void buf) -> bool"""
4363 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4366 class DataObjectPtr(DataObject
):
4367 def __init__(self
, this
):
4369 if not hasattr(self
,"thisown"): self
.thisown
= 0
4370 self
.__class
__ = DataObject
4371 _misc_
.DataObject_swigregister(DataObjectPtr
)
4372 FormatInvalid
= cvar
.FormatInvalid
4374 class DataObjectSimple(DataObject
):
4376 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4377 def __init__(self
, *args
, **kwargs
):
4378 """__init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple"""
4379 newobj
= _misc_
.new_DataObjectSimple(*args
, **kwargs
)
4380 self
.this
= newobj
.this
4383 def GetFormat(*args
, **kwargs
):
4384 """GetFormat(self) -> DataFormat"""
4385 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4387 def SetFormat(*args
, **kwargs
):
4388 """SetFormat(self, DataFormat format)"""
4389 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4392 class DataObjectSimplePtr(DataObjectSimple
):
4393 def __init__(self
, this
):
4395 if not hasattr(self
,"thisown"): self
.thisown
= 0
4396 self
.__class
__ = DataObjectSimple
4397 _misc_
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4399 class PyDataObjectSimple(DataObjectSimple
):
4401 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4402 def __init__(self
, *args
, **kwargs
):
4403 """__init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4404 newobj
= _misc_
.new_PyDataObjectSimple(*args
, **kwargs
)
4405 self
.this
= newobj
.this
4408 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4410 def _setCallbackInfo(*args
, **kwargs
):
4411 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4412 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4415 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4416 def __init__(self
, this
):
4418 if not hasattr(self
,"thisown"): self
.thisown
= 0
4419 self
.__class
__ = PyDataObjectSimple
4420 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4422 class DataObjectComposite(DataObject
):
4424 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4425 def __init__(self
, *args
, **kwargs
):
4426 """__init__(self) -> DataObjectComposite"""
4427 newobj
= _misc_
.new_DataObjectComposite(*args
, **kwargs
)
4428 self
.this
= newobj
.this
4431 def Add(*args
, **kwargs
):
4432 """Add(self, DataObjectSimple dataObject, int preferred=False)"""
4433 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4436 class DataObjectCompositePtr(DataObjectComposite
):
4437 def __init__(self
, this
):
4439 if not hasattr(self
,"thisown"): self
.thisown
= 0
4440 self
.__class
__ = DataObjectComposite
4441 _misc_
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4443 class TextDataObject(DataObjectSimple
):
4445 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4446 def __init__(self
, *args
, **kwargs
):
4447 """__init__(self, String text=EmptyString) -> TextDataObject"""
4448 newobj
= _misc_
.new_TextDataObject(*args
, **kwargs
)
4449 self
.this
= newobj
.this
4452 def GetTextLength(*args
, **kwargs
):
4453 """GetTextLength(self) -> size_t"""
4454 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4456 def GetText(*args
, **kwargs
):
4457 """GetText(self) -> String"""
4458 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4460 def SetText(*args
, **kwargs
):
4461 """SetText(self, String text)"""
4462 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4465 class TextDataObjectPtr(TextDataObject
):
4466 def __init__(self
, this
):
4468 if not hasattr(self
,"thisown"): self
.thisown
= 0
4469 self
.__class
__ = TextDataObject
4470 _misc_
.TextDataObject_swigregister(TextDataObjectPtr
)
4472 class PyTextDataObject(TextDataObject
):
4474 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4475 def __init__(self
, *args
, **kwargs
):
4476 """__init__(self, String text=EmptyString) -> PyTextDataObject"""
4477 newobj
= _misc_
.new_PyTextDataObject(*args
, **kwargs
)
4478 self
.this
= newobj
.this
4481 self
._setCallbackInfo
(self
, PyTextDataObject
)
4483 def _setCallbackInfo(*args
, **kwargs
):
4484 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4485 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4488 class PyTextDataObjectPtr(PyTextDataObject
):
4489 def __init__(self
, this
):
4491 if not hasattr(self
,"thisown"): self
.thisown
= 0
4492 self
.__class
__ = PyTextDataObject
4493 _misc_
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4495 class BitmapDataObject(DataObjectSimple
):
4497 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4498 def __init__(self
, *args
, **kwargs
):
4499 """__init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4500 newobj
= _misc_
.new_BitmapDataObject(*args
, **kwargs
)
4501 self
.this
= newobj
.this
4504 def GetBitmap(*args
, **kwargs
):
4505 """GetBitmap(self) -> Bitmap"""
4506 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4508 def SetBitmap(*args
, **kwargs
):
4509 """SetBitmap(self, Bitmap bitmap)"""
4510 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4513 class BitmapDataObjectPtr(BitmapDataObject
):
4514 def __init__(self
, this
):
4516 if not hasattr(self
,"thisown"): self
.thisown
= 0
4517 self
.__class
__ = BitmapDataObject
4518 _misc_
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4520 class PyBitmapDataObject(BitmapDataObject
):
4522 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4523 def __init__(self
, *args
, **kwargs
):
4524 """__init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4525 newobj
= _misc_
.new_PyBitmapDataObject(*args
, **kwargs
)
4526 self
.this
= newobj
.this
4529 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4531 def _setCallbackInfo(*args
, **kwargs
):
4532 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4533 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4536 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4537 def __init__(self
, this
):
4539 if not hasattr(self
,"thisown"): self
.thisown
= 0
4540 self
.__class
__ = PyBitmapDataObject
4541 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4543 class FileDataObject(DataObjectSimple
):
4545 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4546 def __init__(self
, *args
, **kwargs
):
4547 """__init__(self) -> FileDataObject"""
4548 newobj
= _misc_
.new_FileDataObject(*args
, **kwargs
)
4549 self
.this
= newobj
.this
4552 def GetFilenames(*args
, **kwargs
):
4553 """GetFilenames(self) -> wxArrayString"""
4554 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4556 def AddFile(*args
, **kwargs
):
4557 """AddFile(self, String filename)"""
4558 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
4561 class FileDataObjectPtr(FileDataObject
):
4562 def __init__(self
, this
):
4564 if not hasattr(self
,"thisown"): self
.thisown
= 0
4565 self
.__class
__ = FileDataObject
4566 _misc_
.FileDataObject_swigregister(FileDataObjectPtr
)
4568 class CustomDataObject(DataObjectSimple
):
4570 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4571 def __init__(self
, *args
, **kwargs
):
4572 """__init__(self, DataFormat format=FormatInvalid) -> CustomDataObject"""
4573 newobj
= _misc_
.new_CustomDataObject(*args
, **kwargs
)
4574 self
.this
= newobj
.this
4577 def TakeData(*args
, **kwargs
):
4578 """TakeData(self, PyObject data)"""
4579 return _misc_
.CustomDataObject_TakeData(*args
, **kwargs
)
4581 def SetData(*args
, **kwargs
):
4582 """SetData(self, PyObject data) -> bool"""
4583 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
4585 def GetSize(*args
, **kwargs
):
4586 """GetSize(self) -> size_t"""
4587 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
4589 def GetData(*args
, **kwargs
):
4590 """GetData(self) -> PyObject"""
4591 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
4594 class CustomDataObjectPtr(CustomDataObject
):
4595 def __init__(self
, this
):
4597 if not hasattr(self
,"thisown"): self
.thisown
= 0
4598 self
.__class
__ = CustomDataObject
4599 _misc_
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4601 class URLDataObject(DataObjectComposite
):
4603 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4604 def __init__(self
, *args
, **kwargs
):
4605 """__init__(self) -> URLDataObject"""
4606 newobj
= _misc_
.new_URLDataObject(*args
, **kwargs
)
4607 self
.this
= newobj
.this
4610 def GetURL(*args
, **kwargs
):
4611 """GetURL(self) -> String"""
4612 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
4614 def SetURL(*args
, **kwargs
):
4615 """SetURL(self, String url)"""
4616 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
4619 class URLDataObjectPtr(URLDataObject
):
4620 def __init__(self
, this
):
4622 if not hasattr(self
,"thisown"): self
.thisown
= 0
4623 self
.__class
__ = URLDataObject
4624 _misc_
.URLDataObject_swigregister(URLDataObjectPtr
)
4626 class MetafileDataObject(DataObjectSimple
):
4628 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4629 def __init__(self
, *args
, **kwargs
):
4630 """__init__(self) -> MetafileDataObject"""
4631 newobj
= _misc_
.new_MetafileDataObject(*args
, **kwargs
)
4632 self
.this
= newobj
.this
4635 def SetMetafile(*args
, **kwargs
):
4636 """SetMetafile(self, wxMetafile metafile)"""
4637 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
4639 def GetMetafile(*args
, **kwargs
):
4640 """GetMetafile(self) -> wxMetafile"""
4641 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
4644 class MetafileDataObjectPtr(MetafileDataObject
):
4645 def __init__(self
, this
):
4647 if not hasattr(self
,"thisown"): self
.thisown
= 0
4648 self
.__class
__ = MetafileDataObject
4649 _misc_
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4651 #---------------------------------------------------------------------------
4653 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
4654 Drag_AllowMove
= _misc_
.Drag_AllowMove
4655 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
4656 DragError
= _misc_
.DragError
4657 DragNone
= _misc_
.DragNone
4658 DragCopy
= _misc_
.DragCopy
4659 DragMove
= _misc_
.DragMove
4660 DragLink
= _misc_
.DragLink
4661 DragCancel
= _misc_
.DragCancel
4663 def IsDragResultOk(*args
, **kwargs
):
4664 """IsDragResultOk(int res) -> bool"""
4665 return _misc_
.IsDragResultOk(*args
, **kwargs
)
4666 class DropSource(object):
4668 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4669 def __init__(self
, *args
, **kwargs
):
4671 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
4672 Cursor none=wxNullCursor) -> DropSource
4674 newobj
= _misc_
.new_DropSource(*args
, **kwargs
)
4675 self
.this
= newobj
.this
4678 def _setCallbackInfo(*args
, **kwargs
):
4679 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
4680 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
4682 def __del__(self
, destroy
=_misc_
.delete_DropSource
):
4685 if self
.thisown
: destroy(self
)
4688 def SetData(*args
, **kwargs
):
4689 """SetData(self, DataObject data)"""
4690 return _misc_
.DropSource_SetData(*args
, **kwargs
)
4692 def GetDataObject(*args
, **kwargs
):
4693 """GetDataObject(self) -> DataObject"""
4694 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
4696 def SetCursor(*args
, **kwargs
):
4697 """SetCursor(self, int res, Cursor cursor)"""
4698 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
4700 def DoDragDrop(*args
, **kwargs
):
4701 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
4702 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
4704 def base_GiveFeedback(*args
, **kwargs
):
4705 """base_GiveFeedback(self, int effect) -> bool"""
4706 return _misc_
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4709 class DropSourcePtr(DropSource
):
4710 def __init__(self
, this
):
4712 if not hasattr(self
,"thisown"): self
.thisown
= 0
4713 self
.__class
__ = DropSource
4714 _misc_
.DropSource_swigregister(DropSourcePtr
)
4716 class DropTarget(object):
4718 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4719 def __init__(self
, *args
, **kwargs
):
4720 """__init__(self, DataObject dataObject=None) -> DropTarget"""
4721 newobj
= _misc_
.new_DropTarget(*args
, **kwargs
)
4722 self
.this
= newobj
.this
4725 self
._setCallbackInfo
(self
, DropTarget
)
4727 def _setCallbackInfo(*args
, **kwargs
):
4728 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4729 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4731 def __del__(self
, destroy
=_misc_
.delete_DropTarget
):
4734 if self
.thisown
: destroy(self
)
4737 def GetDataObject(*args
, **kwargs
):
4738 """GetDataObject(self) -> DataObject"""
4739 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
4741 def SetDataObject(*args
, **kwargs
):
4742 """SetDataObject(self, DataObject dataObject)"""
4743 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
4745 def base_OnEnter(*args
, **kwargs
):
4746 """base_OnEnter(self, int x, int y, int def) -> int"""
4747 return _misc_
.DropTarget_base_OnEnter(*args
, **kwargs
)
4749 def base_OnDragOver(*args
, **kwargs
):
4750 """base_OnDragOver(self, int x, int y, int def) -> int"""
4751 return _misc_
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4753 def base_OnLeave(*args
, **kwargs
):
4754 """base_OnLeave(self)"""
4755 return _misc_
.DropTarget_base_OnLeave(*args
, **kwargs
)
4757 def base_OnDrop(*args
, **kwargs
):
4758 """base_OnDrop(self, int x, int y) -> bool"""
4759 return _misc_
.DropTarget_base_OnDrop(*args
, **kwargs
)
4761 def GetData(*args
, **kwargs
):
4762 """GetData(self) -> bool"""
4763 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
4766 class DropTargetPtr(DropTarget
):
4767 def __init__(self
, this
):
4769 if not hasattr(self
,"thisown"): self
.thisown
= 0
4770 self
.__class
__ = DropTarget
4771 _misc_
.DropTarget_swigregister(DropTargetPtr
)
4773 PyDropTarget
= DropTarget
4774 class TextDropTarget(DropTarget
):
4776 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4777 def __init__(self
, *args
, **kwargs
):
4778 """__init__(self) -> TextDropTarget"""
4779 newobj
= _misc_
.new_TextDropTarget(*args
, **kwargs
)
4780 self
.this
= newobj
.this
4783 self
._setCallbackInfo
(self
, TextDropTarget
)
4785 def _setCallbackInfo(*args
, **kwargs
):
4786 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4787 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4789 def base_OnEnter(*args
, **kwargs
):
4790 """base_OnEnter(self, int x, int y, int def) -> int"""
4791 return _misc_
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4793 def base_OnDragOver(*args
, **kwargs
):
4794 """base_OnDragOver(self, int x, int y, int def) -> int"""
4795 return _misc_
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4797 def base_OnLeave(*args
, **kwargs
):
4798 """base_OnLeave(self)"""
4799 return _misc_
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4801 def base_OnDrop(*args
, **kwargs
):
4802 """base_OnDrop(self, int x, int y) -> bool"""
4803 return _misc_
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4805 def base_OnData(*args
, **kwargs
):
4806 """base_OnData(self, int x, int y, int def) -> int"""
4807 return _misc_
.TextDropTarget_base_OnData(*args
, **kwargs
)
4810 class TextDropTargetPtr(TextDropTarget
):
4811 def __init__(self
, this
):
4813 if not hasattr(self
,"thisown"): self
.thisown
= 0
4814 self
.__class
__ = TextDropTarget
4815 _misc_
.TextDropTarget_swigregister(TextDropTargetPtr
)
4817 class FileDropTarget(DropTarget
):
4819 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4820 def __init__(self
, *args
, **kwargs
):
4821 """__init__(self) -> FileDropTarget"""
4822 newobj
= _misc_
.new_FileDropTarget(*args
, **kwargs
)
4823 self
.this
= newobj
.this
4826 self
._setCallbackInfo
(self
, FileDropTarget
)
4828 def _setCallbackInfo(*args
, **kwargs
):
4829 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4830 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
4832 def base_OnEnter(*args
, **kwargs
):
4833 """base_OnEnter(self, int x, int y, int def) -> int"""
4834 return _misc_
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
4836 def base_OnDragOver(*args
, **kwargs
):
4837 """base_OnDragOver(self, int x, int y, int def) -> int"""
4838 return _misc_
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
4840 def base_OnLeave(*args
, **kwargs
):
4841 """base_OnLeave(self)"""
4842 return _misc_
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
4844 def base_OnDrop(*args
, **kwargs
):
4845 """base_OnDrop(self, int x, int y) -> bool"""
4846 return _misc_
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
4848 def base_OnData(*args
, **kwargs
):
4849 """base_OnData(self, int x, int y, int def) -> int"""
4850 return _misc_
.FileDropTarget_base_OnData(*args
, **kwargs
)
4853 class FileDropTargetPtr(FileDropTarget
):
4854 def __init__(self
, this
):
4856 if not hasattr(self
,"thisown"): self
.thisown
= 0
4857 self
.__class
__ = FileDropTarget
4858 _misc_
.FileDropTarget_swigregister(FileDropTargetPtr
)
4860 #---------------------------------------------------------------------------
4862 class Clipboard(_core
.Object
):
4864 wx.Clipboard represents the system clipboard and provides methods to copy data
4865 to or paste data from it. Normally, you should only use wx.TheClipboard which
4866 is a reference to a global wx.Clipboard instance.
4868 Call wx.TheClipboard.Open to get ownership of the clipboard. If this operation
4869 returns True, you now own the clipboard. Call wx.TheClipboard.SetData to put
4870 data on the clipboard, or wx.TheClipboard.GetData to retrieve data from the
4871 clipboard. Call wx.TheClipboard.Close to close the clipboard and relinquish
4872 ownership. You should keep the clipboard open only momentarily.
4876 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4877 def __init__(self
, *args
, **kwargs
):
4878 """__init__(self) -> Clipboard"""
4879 newobj
= _misc_
.new_Clipboard(*args
, **kwargs
)
4880 self
.this
= newobj
.this
4883 def __del__(self
, destroy
=_misc_
.delete_Clipboard
):
4886 if self
.thisown
: destroy(self
)
4889 def Open(*args
, **kwargs
):
4893 Call this function to open the clipboard before calling SetData
4894 and GetData. Call Close when you have finished with the clipboard.
4895 You should keep the clipboard open for only a very short time.
4896 Returns true on success.
4898 return _misc_
.Clipboard_Open(*args
, **kwargs
)
4900 def Close(*args
, **kwargs
):
4904 Closes the clipboard.
4906 return _misc_
.Clipboard_Close(*args
, **kwargs
)
4908 def IsOpened(*args
, **kwargs
):
4910 IsOpened(self) -> bool
4912 Query whether the clipboard is opened
4914 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
4916 def AddData(*args
, **kwargs
):
4918 AddData(self, DataObject data) -> bool
4920 Call this function to add the data object to the clipboard. You
4921 may call this function repeatedly after having cleared the clipboard.
4922 After this function has been called, the clipboard owns the data, so
4923 do not delete the data explicitly.
4925 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
4927 def SetData(*args
, **kwargs
):
4929 SetData(self, DataObject data) -> bool
4931 Set the clipboard data, this is the same as Clear followed by AddData.
4933 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
4935 def IsSupported(*args
, **kwargs
):
4937 IsSupported(self, DataFormat format) -> bool
4939 Returns True if the given format is available in the data object(s) on
4942 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
4944 def GetData(*args
, **kwargs
):
4946 GetData(self, DataObject data) -> bool
4948 Call this function to fill data with data on the clipboard, if available
4949 in the required format. Returns true on success.
4951 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
4953 def Clear(*args
, **kwargs
):
4957 Clears data from the clipboard object and also the system's clipboard
4960 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
4962 def Flush(*args
, **kwargs
):
4966 Flushes the clipboard: this means that the data which is currently on
4967 clipboard will stay available even after the application exits (possibly
4968 eating memory), otherwise the clipboard will be emptied on exit.
4969 Returns False if the operation is unsuccesful for any reason.
4971 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
4973 def UsePrimarySelection(*args
, **kwargs
):
4975 UsePrimarySelection(self, bool primary=True)
4977 On platforms supporting it (the X11 based platforms), selects the so
4978 called PRIMARY SELECTION as the clipboard as opposed to the normal
4979 clipboard, if primary is True.
4981 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
4984 class ClipboardPtr(Clipboard
):
4985 def __init__(self
, this
):
4987 if not hasattr(self
,"thisown"): self
.thisown
= 0
4988 self
.__class
__ = Clipboard
4989 _misc_
.Clipboard_swigregister(ClipboardPtr
)
4991 class ClipboardLocker(object):
4993 A helpful class for opening the clipboard and automatically closing it when
4994 the locker is destroyed.
4997 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4998 def __init__(self
, *args
, **kwargs
):
5000 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5002 A helpful class for opening the clipboard and automatically closing it when
5003 the locker is destroyed.
5005 newobj
= _misc_
.new_ClipboardLocker(*args
, **kwargs
)
5006 self
.this
= newobj
.this
5009 def __del__(self
, destroy
=_misc_
.delete_ClipboardLocker
):
5012 if self
.thisown
: destroy(self
)
5015 def __nonzero__(*args
, **kwargs
):
5017 __nonzero__(self) -> bool
5019 A ClipboardLocker instance evaluates to True if the clipboard was
5020 successfully opened.
5022 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5025 class ClipboardLockerPtr(ClipboardLocker
):
5026 def __init__(self
, this
):
5028 if not hasattr(self
,"thisown"): self
.thisown
= 0
5029 self
.__class
__ = ClipboardLocker
5030 _misc_
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
5031 TheClipboard
= cvar
.TheClipboard
5033 #---------------------------------------------------------------------------
5035 class VideoMode(object):
5036 """A simple struct containing video mode parameters for a display"""
5038 return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5039 def __init__(self
, *args
, **kwargs
):
5041 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5043 A simple struct containing video mode parameters for a display
5045 newobj
= _misc_
.new_VideoMode(*args
, **kwargs
)
5046 self
.this
= newobj
.this
5049 def __del__(self
, destroy
=_misc_
.delete_VideoMode
):
5052 if self
.thisown
: destroy(self
)
5055 def Matches(*args
, **kwargs
):
5057 Matches(self, VideoMode other) -> bool
5059 Returns true if this mode matches the other one in the sense that
5060 all non zero fields of the other mode have the same value in this
5061 one (except for refresh which is allowed to have a greater value)
5063 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5065 def GetWidth(*args
, **kwargs
):
5067 GetWidth(self) -> int
5069 Returns the screen width in pixels (e.g. 640*480), 0 means
5072 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5074 def GetHeight(*args
, **kwargs
):
5076 GetHeight(self) -> int
5078 Returns the screen width in pixels (e.g. 640*480), 0 means
5081 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5083 def GetDepth(*args
, **kwargs
):
5085 GetDepth(self) -> int
5087 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome
5088 and 0 means unspecified/known
5090 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5092 def IsOk(*args
, **kwargs
):
5096 returns true if the object has been initialized
5098 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5100 def __nonzero__(self
): return self
.IsOk()
5101 def __eq__(*args
, **kwargs
):
5102 """__eq__(self, VideoMode other) -> bool"""
5103 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5105 def __ne__(*args
, **kwargs
):
5106 """__ne__(self, VideoMode other) -> bool"""
5107 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5109 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5110 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5111 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5112 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5114 class VideoModePtr(VideoMode
):
5115 def __init__(self
, this
):
5117 if not hasattr(self
,"thisown"): self
.thisown
= 0
5118 self
.__class
__ = VideoMode
5119 _misc_
.VideoMode_swigregister(VideoModePtr
)
5121 class Display(object):
5122 """Represents a display/monitor attached to the system"""
5124 return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5125 def __init__(self
, *args
, **kwargs
):
5127 __init__(self, size_t index=0) -> Display
5129 Set up a Display instance with the specified display. The
5130 displays are numbered from 0 to GetCount() - 1, 0 is always the
5131 primary display and the only one which is always supported
5133 newobj
= _misc_
.new_Display(*args
, **kwargs
)
5134 self
.this
= newobj
.this
5137 def __del__(self
, destroy
=_misc_
.delete_Display
):
5140 if self
.thisown
: destroy(self
)
5143 def GetCount(*args
, **kwargs
):
5145 Display.GetCount() -> size_t
5147 Return the number of available displays.
5149 return _misc_
.Display_GetCount(*args
, **kwargs
)
5151 GetCount
= staticmethod(GetCount
)
5152 def GetFromPoint(*args
, **kwargs
):
5154 Display.GetFromPoint(Point pt) -> int
5156 Find the display where the given point lies, return wx.NOT_FOUND
5157 if it doesn't belong to any display
5159 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5161 GetFromPoint
= staticmethod(GetFromPoint
)
5162 def GetFromWindow(*args
, **kwargs
):
5164 Display.GetFromWindow(Window window) -> int
5166 Find the display where the given window lies, return wx.NOT_FOUND
5167 if it is not shown at all.
5169 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5171 GetFromWindow
= staticmethod(GetFromWindow
)
5172 def IsOk(*args
, **kwargs
):
5176 Return true if the object was initialized successfully
5178 return _misc_
.Display_IsOk(*args
, **kwargs
)
5180 def __nonzero__(self
): return self
.IsOk()
5181 def GetGeometry(*args
, **kwargs
):
5183 GetGeometry(self) -> Rect
5185 Returns the bounding rectangle of the display whose index was
5186 passed to the constructor.
5188 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5190 def GetName(*args
, **kwargs
):
5192 GetName(self) -> String
5194 Returns the display's name. A name is not available on all platforms.
5196 return _misc_
.Display_GetName(*args
, **kwargs
)
5198 def IsPrimary(*args
, **kwargs
):
5200 IsPrimary(self) -> bool
5202 Returns true if the display is the primary display. The primary
5203 display is the one whose index is 0.
5205 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5207 def GetModes(*args
, **kwargs
):
5209 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5211 Enumerate all video modes supported by this display matching the
5212 given one (in the sense of VideoMode.Match()).
5214 As any mode matches the default value of the argument and there
5215 is always at least one video mode supported by display, the
5216 returned array is only empty for the default value of the
5217 argument if this function is not supported at all on this
5220 return _misc_
.Display_GetModes(*args
, **kwargs
)
5222 def GetCurrentMode(*args
, **kwargs
):
5224 GetCurrentMode(self) -> VideoMode
5226 Get the current video mode.
5228 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5230 def ChangeMode(*args
, **kwargs
):
5232 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5234 Change current mode, return true if succeeded, false otherwise
5236 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5238 def ResetMode(*args
, **kwargs
):
5242 Restore the default video mode (just a more readable synonym)
5244 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5247 class DisplayPtr(Display
):
5248 def __init__(self
, this
):
5250 if not hasattr(self
,"thisown"): self
.thisown
= 0
5251 self
.__class
__ = Display
5252 _misc_
.Display_swigregister(DisplayPtr
)
5253 DefaultVideoMode
= cvar
.DefaultVideoMode
5255 def Display_GetCount(*args
, **kwargs
):
5257 Display_GetCount() -> size_t
5259 Return the number of available displays.
5261 return _misc_
.Display_GetCount(*args
, **kwargs
)
5263 def Display_GetFromPoint(*args
, **kwargs
):
5265 Display_GetFromPoint(Point pt) -> int
5267 Find the display where the given point lies, return wx.NOT_FOUND
5268 if it doesn't belong to any display
5270 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5272 def Display_GetFromWindow(*args
, **kwargs
):
5274 Display_GetFromWindow(Window window) -> int
5276 Find the display where the given window lies, return wx.NOT_FOUND
5277 if it is not shown at all.
5279 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)