1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 SYS_OEM_FIXED_FONT
= _misc_
.SYS_OEM_FIXED_FONT
52 SYS_ANSI_FIXED_FONT
= _misc_
.SYS_ANSI_FIXED_FONT
53 SYS_ANSI_VAR_FONT
= _misc_
.SYS_ANSI_VAR_FONT
54 SYS_SYSTEM_FONT
= _misc_
.SYS_SYSTEM_FONT
55 SYS_DEVICE_DEFAULT_FONT
= _misc_
.SYS_DEVICE_DEFAULT_FONT
56 SYS_DEFAULT_PALETTE
= _misc_
.SYS_DEFAULT_PALETTE
57 SYS_SYSTEM_FIXED_FONT
= _misc_
.SYS_SYSTEM_FIXED_FONT
58 SYS_DEFAULT_GUI_FONT
= _misc_
.SYS_DEFAULT_GUI_FONT
59 SYS_ICONTITLE_FONT
= _misc_
.SYS_ICONTITLE_FONT
60 SYS_COLOUR_SCROLLBAR
= _misc_
.SYS_COLOUR_SCROLLBAR
61 SYS_COLOUR_BACKGROUND
= _misc_
.SYS_COLOUR_BACKGROUND
62 SYS_COLOUR_DESKTOP
= _misc_
.SYS_COLOUR_DESKTOP
63 SYS_COLOUR_ACTIVECAPTION
= _misc_
.SYS_COLOUR_ACTIVECAPTION
64 SYS_COLOUR_INACTIVECAPTION
= _misc_
.SYS_COLOUR_INACTIVECAPTION
65 SYS_COLOUR_MENU
= _misc_
.SYS_COLOUR_MENU
66 SYS_COLOUR_WINDOW
= _misc_
.SYS_COLOUR_WINDOW
67 SYS_COLOUR_WINDOWFRAME
= _misc_
.SYS_COLOUR_WINDOWFRAME
68 SYS_COLOUR_MENUTEXT
= _misc_
.SYS_COLOUR_MENUTEXT
69 SYS_COLOUR_WINDOWTEXT
= _misc_
.SYS_COLOUR_WINDOWTEXT
70 SYS_COLOUR_CAPTIONTEXT
= _misc_
.SYS_COLOUR_CAPTIONTEXT
71 SYS_COLOUR_ACTIVEBORDER
= _misc_
.SYS_COLOUR_ACTIVEBORDER
72 SYS_COLOUR_INACTIVEBORDER
= _misc_
.SYS_COLOUR_INACTIVEBORDER
73 SYS_COLOUR_APPWORKSPACE
= _misc_
.SYS_COLOUR_APPWORKSPACE
74 SYS_COLOUR_HIGHLIGHT
= _misc_
.SYS_COLOUR_HIGHLIGHT
75 SYS_COLOUR_HIGHLIGHTTEXT
= _misc_
.SYS_COLOUR_HIGHLIGHTTEXT
76 SYS_COLOUR_BTNFACE
= _misc_
.SYS_COLOUR_BTNFACE
77 SYS_COLOUR_3DFACE
= _misc_
.SYS_COLOUR_3DFACE
78 SYS_COLOUR_BTNSHADOW
= _misc_
.SYS_COLOUR_BTNSHADOW
79 SYS_COLOUR_3DSHADOW
= _misc_
.SYS_COLOUR_3DSHADOW
80 SYS_COLOUR_GRAYTEXT
= _misc_
.SYS_COLOUR_GRAYTEXT
81 SYS_COLOUR_BTNTEXT
= _misc_
.SYS_COLOUR_BTNTEXT
82 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc_
.SYS_COLOUR_INACTIVECAPTIONTEXT
83 SYS_COLOUR_BTNHIGHLIGHT
= _misc_
.SYS_COLOUR_BTNHIGHLIGHT
84 SYS_COLOUR_BTNHILIGHT
= _misc_
.SYS_COLOUR_BTNHILIGHT
85 SYS_COLOUR_3DHIGHLIGHT
= _misc_
.SYS_COLOUR_3DHIGHLIGHT
86 SYS_COLOUR_3DHILIGHT
= _misc_
.SYS_COLOUR_3DHILIGHT
87 SYS_COLOUR_3DDKSHADOW
= _misc_
.SYS_COLOUR_3DDKSHADOW
88 SYS_COLOUR_3DLIGHT
= _misc_
.SYS_COLOUR_3DLIGHT
89 SYS_COLOUR_INFOTEXT
= _misc_
.SYS_COLOUR_INFOTEXT
90 SYS_COLOUR_INFOBK
= _misc_
.SYS_COLOUR_INFOBK
91 SYS_COLOUR_LISTBOX
= _misc_
.SYS_COLOUR_LISTBOX
92 SYS_COLOUR_HOTLIGHT
= _misc_
.SYS_COLOUR_HOTLIGHT
93 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTACTIVECAPTION
94 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTINACTIVECAPTION
95 SYS_COLOUR_MENUHILIGHT
= _misc_
.SYS_COLOUR_MENUHILIGHT
96 SYS_COLOUR_MENUBAR
= _misc_
.SYS_COLOUR_MENUBAR
97 SYS_COLOUR_MAX
= _misc_
.SYS_COLOUR_MAX
98 SYS_MOUSE_BUTTONS
= _misc_
.SYS_MOUSE_BUTTONS
99 SYS_BORDER_X
= _misc_
.SYS_BORDER_X
100 SYS_BORDER_Y
= _misc_
.SYS_BORDER_Y
101 SYS_CURSOR_X
= _misc_
.SYS_CURSOR_X
102 SYS_CURSOR_Y
= _misc_
.SYS_CURSOR_Y
103 SYS_DCLICK_X
= _misc_
.SYS_DCLICK_X
104 SYS_DCLICK_Y
= _misc_
.SYS_DCLICK_Y
105 SYS_DRAG_X
= _misc_
.SYS_DRAG_X
106 SYS_DRAG_Y
= _misc_
.SYS_DRAG_Y
107 SYS_EDGE_X
= _misc_
.SYS_EDGE_X
108 SYS_EDGE_Y
= _misc_
.SYS_EDGE_Y
109 SYS_HSCROLL_ARROW_X
= _misc_
.SYS_HSCROLL_ARROW_X
110 SYS_HSCROLL_ARROW_Y
= _misc_
.SYS_HSCROLL_ARROW_Y
111 SYS_HTHUMB_X
= _misc_
.SYS_HTHUMB_X
112 SYS_ICON_X
= _misc_
.SYS_ICON_X
113 SYS_ICON_Y
= _misc_
.SYS_ICON_Y
114 SYS_ICONSPACING_X
= _misc_
.SYS_ICONSPACING_X
115 SYS_ICONSPACING_Y
= _misc_
.SYS_ICONSPACING_Y
116 SYS_WINDOWMIN_X
= _misc_
.SYS_WINDOWMIN_X
117 SYS_WINDOWMIN_Y
= _misc_
.SYS_WINDOWMIN_Y
118 SYS_SCREEN_X
= _misc_
.SYS_SCREEN_X
119 SYS_SCREEN_Y
= _misc_
.SYS_SCREEN_Y
120 SYS_FRAMESIZE_X
= _misc_
.SYS_FRAMESIZE_X
121 SYS_FRAMESIZE_Y
= _misc_
.SYS_FRAMESIZE_Y
122 SYS_SMALLICON_X
= _misc_
.SYS_SMALLICON_X
123 SYS_SMALLICON_Y
= _misc_
.SYS_SMALLICON_Y
124 SYS_HSCROLL_Y
= _misc_
.SYS_HSCROLL_Y
125 SYS_VSCROLL_X
= _misc_
.SYS_VSCROLL_X
126 SYS_VSCROLL_ARROW_X
= _misc_
.SYS_VSCROLL_ARROW_X
127 SYS_VSCROLL_ARROW_Y
= _misc_
.SYS_VSCROLL_ARROW_Y
128 SYS_VTHUMB_Y
= _misc_
.SYS_VTHUMB_Y
129 SYS_CAPTION_Y
= _misc_
.SYS_CAPTION_Y
130 SYS_MENU_Y
= _misc_
.SYS_MENU_Y
131 SYS_NETWORK_PRESENT
= _misc_
.SYS_NETWORK_PRESENT
132 SYS_PENWINDOWS_PRESENT
= _misc_
.SYS_PENWINDOWS_PRESENT
133 SYS_SHOW_SOUNDS
= _misc_
.SYS_SHOW_SOUNDS
134 SYS_SWAP_BUTTONS
= _misc_
.SYS_SWAP_BUTTONS
135 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc_
.SYS_CAN_DRAW_FRAME_DECORATIONS
136 SYS_CAN_ICONIZE_FRAME
= _misc_
.SYS_CAN_ICONIZE_FRAME
137 SYS_SCREEN_NONE
= _misc_
.SYS_SCREEN_NONE
138 SYS_SCREEN_TINY
= _misc_
.SYS_SCREEN_TINY
139 SYS_SCREEN_PDA
= _misc_
.SYS_SCREEN_PDA
140 SYS_SCREEN_SMALL
= _misc_
.SYS_SCREEN_SMALL
141 SYS_SCREEN_DESKTOP
= _misc_
.SYS_SCREEN_DESKTOP
142 class SystemSettings(object):
143 """Proxy of C++ SystemSettings class"""
144 def __init__(self
): raise RuntimeError, "No constructor defined"
146 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
147 def GetColour(*args
, **kwargs
):
148 """GetColour(int index) -> Colour"""
149 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
151 GetColour
= staticmethod(GetColour
)
152 def GetFont(*args
, **kwargs
):
153 """GetFont(int index) -> Font"""
154 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
156 GetFont
= staticmethod(GetFont
)
157 def GetMetric(*args
, **kwargs
):
158 """GetMetric(int index) -> int"""
159 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
161 GetMetric
= staticmethod(GetMetric
)
162 def HasFeature(*args
, **kwargs
):
163 """HasFeature(int index) -> bool"""
164 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
166 HasFeature
= staticmethod(HasFeature
)
167 def GetScreenType(*args
, **kwargs
):
168 """GetScreenType() -> int"""
169 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
171 GetScreenType
= staticmethod(GetScreenType
)
172 def SetScreenType(*args
, **kwargs
):
173 """SetScreenType(int screen)"""
174 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
176 SetScreenType
= staticmethod(SetScreenType
)
178 class SystemSettingsPtr(SystemSettings
):
179 def __init__(self
, this
):
181 if not hasattr(self
,"thisown"): self
.thisown
= 0
182 self
.__class
__ = SystemSettings
183 _misc_
.SystemSettings_swigregister(SystemSettingsPtr
)
185 def SystemSettings_GetColour(*args
, **kwargs
):
186 """SystemSettings_GetColour(int index) -> Colour"""
187 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
189 def SystemSettings_GetFont(*args
, **kwargs
):
190 """SystemSettings_GetFont(int index) -> Font"""
191 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
193 def SystemSettings_GetMetric(*args
, **kwargs
):
194 """SystemSettings_GetMetric(int index) -> int"""
195 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
197 def SystemSettings_HasFeature(*args
, **kwargs
):
198 """SystemSettings_HasFeature(int index) -> bool"""
199 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
201 def SystemSettings_GetScreenType(*args
, **kwargs
):
202 """SystemSettings_GetScreenType() -> int"""
203 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
205 def SystemSettings_SetScreenType(*args
, **kwargs
):
206 """SystemSettings_SetScreenType(int screen)"""
207 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
209 class SystemOptions(_core
.Object
):
210 """Proxy of C++ SystemOptions class"""
212 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
213 def __init__(self
, *args
, **kwargs
):
214 """__init__(self) -> SystemOptions"""
215 newobj
= _misc_
.new_SystemOptions(*args
, **kwargs
)
216 self
.this
= newobj
.this
219 def SetOption(*args
, **kwargs
):
220 """SetOption(String name, String value)"""
221 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
223 SetOption
= staticmethod(SetOption
)
224 def SetOptionInt(*args
, **kwargs
):
225 """SetOptionInt(String name, int value)"""
226 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
228 SetOptionInt
= staticmethod(SetOptionInt
)
229 def GetOption(*args
, **kwargs
):
230 """GetOption(String name) -> String"""
231 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
233 GetOption
= staticmethod(GetOption
)
234 def GetOptionInt(*args
, **kwargs
):
235 """GetOptionInt(String name) -> int"""
236 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
238 GetOptionInt
= staticmethod(GetOptionInt
)
239 def HasOption(*args
, **kwargs
):
240 """HasOption(String name) -> bool"""
241 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
243 HasOption
= staticmethod(HasOption
)
245 class SystemOptionsPtr(SystemOptions
):
246 def __init__(self
, this
):
248 if not hasattr(self
,"thisown"): self
.thisown
= 0
249 self
.__class
__ = SystemOptions
250 _misc_
.SystemOptions_swigregister(SystemOptionsPtr
)
252 WINDOW_DEFAULT_VARIANT
= cvar
.WINDOW_DEFAULT_VARIANT
254 def SystemOptions_SetOption(*args
, **kwargs
):
255 """SystemOptions_SetOption(String name, String value)"""
256 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
258 def SystemOptions_SetOptionInt(*args
, **kwargs
):
259 """SystemOptions_SetOptionInt(String name, int value)"""
260 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
262 def SystemOptions_GetOption(*args
, **kwargs
):
263 """SystemOptions_GetOption(String name) -> String"""
264 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
266 def SystemOptions_GetOptionInt(*args
, **kwargs
):
267 """SystemOptions_GetOptionInt(String name) -> int"""
268 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
270 def SystemOptions_HasOption(*args
, **kwargs
):
271 """SystemOptions_HasOption(String name) -> bool"""
272 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
274 #---------------------------------------------------------------------------
277 def NewId(*args
, **kwargs
):
278 """NewId() -> long"""
279 return _misc_
.NewId(*args
, **kwargs
)
281 def RegisterId(*args
, **kwargs
):
282 """RegisterId(long id)"""
283 return _misc_
.RegisterId(*args
, **kwargs
)
285 def GetCurrentId(*args
, **kwargs
):
286 """GetCurrentId() -> long"""
287 return _misc_
.GetCurrentId(*args
, **kwargs
)
289 def IsStockID(*args
, **kwargs
):
290 """IsStockID(int id) -> bool"""
291 return _misc_
.IsStockID(*args
, **kwargs
)
293 def IsStockLabel(*args
, **kwargs
):
294 """IsStockLabel(int id, String label) -> bool"""
295 return _misc_
.IsStockLabel(*args
, **kwargs
)
297 def GetStockLabel(*args
, **kwargs
):
298 """GetStockLabel(int id) -> String"""
299 return _misc_
.GetStockLabel(*args
, **kwargs
)
301 def Bell(*args
, **kwargs
):
303 return _misc_
.Bell(*args
, **kwargs
)
305 def EndBusyCursor(*args
, **kwargs
):
306 """EndBusyCursor()"""
307 return _misc_
.EndBusyCursor(*args
, **kwargs
)
309 def GetElapsedTime(*args
, **kwargs
):
310 """GetElapsedTime(bool resetTimer=True) -> long"""
311 return _misc_
.GetElapsedTime(*args
, **kwargs
)
313 def GetMousePosition(*args
, **kwargs
):
314 """GetMousePosition() -> (x,y)"""
315 return _misc_
.GetMousePosition(*args
, **kwargs
)
317 def IsBusy(*args
, **kwargs
):
318 """IsBusy() -> bool"""
319 return _misc_
.IsBusy(*args
, **kwargs
)
321 def Now(*args
, **kwargs
):
322 """Now() -> String"""
323 return _misc_
.Now(*args
, **kwargs
)
325 def Shell(*args
, **kwargs
):
326 """Shell(String command=EmptyString) -> bool"""
327 return _misc_
.Shell(*args
, **kwargs
)
329 def StartTimer(*args
, **kwargs
):
331 return _misc_
.StartTimer(*args
, **kwargs
)
333 def GetOsVersion(*args
, **kwargs
):
334 """GetOsVersion() -> (platform, major, minor)"""
335 return _misc_
.GetOsVersion(*args
, **kwargs
)
337 def GetOsDescription(*args
, **kwargs
):
338 """GetOsDescription() -> String"""
339 return _misc_
.GetOsDescription(*args
, **kwargs
)
341 def GetFreeMemory(*args
, **kwargs
):
342 """GetFreeMemory() -> long"""
343 return _misc_
.GetFreeMemory(*args
, **kwargs
)
344 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
345 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
347 def Shutdown(*args
, **kwargs
):
348 """Shutdown(int wFlags) -> bool"""
349 return _misc_
.Shutdown(*args
, **kwargs
)
351 def Sleep(*args
, **kwargs
):
352 """Sleep(int secs)"""
353 return _misc_
.Sleep(*args
, **kwargs
)
355 def MilliSleep(*args
, **kwargs
):
356 """MilliSleep(unsigned long milliseconds)"""
357 return _misc_
.MilliSleep(*args
, **kwargs
)
359 def MicroSleep(*args
, **kwargs
):
360 """MicroSleep(unsigned long microseconds)"""
361 return _misc_
.MicroSleep(*args
, **kwargs
)
364 def EnableTopLevelWindows(*args
, **kwargs
):
365 """EnableTopLevelWindows(bool enable)"""
366 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
368 def StripMenuCodes(*args
, **kwargs
):
369 """StripMenuCodes(String in) -> String"""
370 return _misc_
.StripMenuCodes(*args
, **kwargs
)
372 def GetEmailAddress(*args
, **kwargs
):
373 """GetEmailAddress() -> String"""
374 return _misc_
.GetEmailAddress(*args
, **kwargs
)
376 def GetHostName(*args
, **kwargs
):
377 """GetHostName() -> String"""
378 return _misc_
.GetHostName(*args
, **kwargs
)
380 def GetFullHostName(*args
, **kwargs
):
381 """GetFullHostName() -> String"""
382 return _misc_
.GetFullHostName(*args
, **kwargs
)
384 def GetUserId(*args
, **kwargs
):
385 """GetUserId() -> String"""
386 return _misc_
.GetUserId(*args
, **kwargs
)
388 def GetUserName(*args
, **kwargs
):
389 """GetUserName() -> String"""
390 return _misc_
.GetUserName(*args
, **kwargs
)
392 def GetHomeDir(*args
, **kwargs
):
393 """GetHomeDir() -> String"""
394 return _misc_
.GetHomeDir(*args
, **kwargs
)
396 def GetUserHome(*args
, **kwargs
):
397 """GetUserHome(String user=EmptyString) -> String"""
398 return _misc_
.GetUserHome(*args
, **kwargs
)
400 def GetProcessId(*args
, **kwargs
):
401 """GetProcessId() -> unsigned long"""
402 return _misc_
.GetProcessId(*args
, **kwargs
)
404 def Trap(*args
, **kwargs
):
406 return _misc_
.Trap(*args
, **kwargs
)
408 def FileSelector(*args
, **kwargs
):
410 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
411 String default_filename=EmptyString,
412 String default_extension=EmptyString,
413 String wildcard=FileSelectorDefaultWildcardStr,
414 int flags=0, Window parent=None, int x=-1,
417 return _misc_
.FileSelector(*args
, **kwargs
)
419 def LoadFileSelector(*args
, **kwargs
):
421 LoadFileSelector(String what, String extension, String default_name=EmptyString,
422 Window parent=None) -> String
424 return _misc_
.LoadFileSelector(*args
, **kwargs
)
426 def SaveFileSelector(*args
, **kwargs
):
428 SaveFileSelector(String what, String extension, String default_name=EmptyString,
429 Window parent=None) -> String
431 return _misc_
.SaveFileSelector(*args
, **kwargs
)
433 def DirSelector(*args
, **kwargs
):
435 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
436 long style=DD_DEFAULT_STYLE,
437 Point pos=DefaultPosition, Window parent=None) -> String
439 return _misc_
.DirSelector(*args
, **kwargs
)
441 def GetTextFromUser(*args
, **kwargs
):
443 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
445 int x=-1, int y=-1, bool centre=True) -> String
447 return _misc_
.GetTextFromUser(*args
, **kwargs
)
449 def GetPasswordFromUser(*args
, **kwargs
):
451 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
452 Window parent=None) -> String
454 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
456 def GetSingleChoice(*args
, **kwargs
):
458 GetSingleChoice(String message, String caption, int choices, Window parent=None,
459 int x=-1, int y=-1, bool centre=True,
460 int width=150, int height=200) -> String
462 return _misc_
.GetSingleChoice(*args
, **kwargs
)
464 def GetSingleChoiceIndex(*args
, **kwargs
):
466 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
467 int x=-1, int y=-1, bool centre=True,
468 int width=150, int height=200) -> int
470 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
472 def MessageBox(*args
, **kwargs
):
474 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
475 Window parent=None, int x=-1,
478 return _misc_
.MessageBox(*args
, **kwargs
)
480 def GetNumberFromUser(*args
, **kwargs
):
482 GetNumberFromUser(String message, String prompt, String caption, long value,
483 long min=0, long max=100, Window parent=None,
484 Point pos=DefaultPosition) -> long
486 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
488 def ColourDisplay(*args
, **kwargs
):
489 """ColourDisplay() -> bool"""
490 return _misc_
.ColourDisplay(*args
, **kwargs
)
492 def DisplayDepth(*args
, **kwargs
):
493 """DisplayDepth() -> int"""
494 return _misc_
.DisplayDepth(*args
, **kwargs
)
496 def GetDisplayDepth(*args
, **kwargs
):
497 """GetDisplayDepth() -> int"""
498 return _misc_
.GetDisplayDepth(*args
, **kwargs
)
500 def DisplaySize(*args
, **kwargs
):
501 """DisplaySize() -> (width, height)"""
502 return _misc_
.DisplaySize(*args
, **kwargs
)
504 def GetDisplaySize(*args
, **kwargs
):
505 """GetDisplaySize() -> Size"""
506 return _misc_
.GetDisplaySize(*args
, **kwargs
)
508 def DisplaySizeMM(*args
, **kwargs
):
509 """DisplaySizeMM() -> (width, height)"""
510 return _misc_
.DisplaySizeMM(*args
, **kwargs
)
512 def GetDisplaySizeMM(*args
, **kwargs
):
513 """GetDisplaySizeMM() -> Size"""
514 return _misc_
.GetDisplaySizeMM(*args
, **kwargs
)
516 def ClientDisplayRect(*args
, **kwargs
):
517 """ClientDisplayRect() -> (x, y, width, height)"""
518 return _misc_
.ClientDisplayRect(*args
, **kwargs
)
520 def GetClientDisplayRect(*args
, **kwargs
):
521 """GetClientDisplayRect() -> Rect"""
522 return _misc_
.GetClientDisplayRect(*args
, **kwargs
)
524 def SetCursor(*args
, **kwargs
):
525 """SetCursor(Cursor cursor)"""
526 return _misc_
.SetCursor(*args
, **kwargs
)
528 def BeginBusyCursor(*args
, **kwargs
):
529 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
530 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
532 def GetActiveWindow(*args
, **kwargs
):
533 """GetActiveWindow() -> Window"""
534 return _misc_
.GetActiveWindow(*args
, **kwargs
)
536 def GenericFindWindowAtPoint(*args
, **kwargs
):
537 """GenericFindWindowAtPoint(Point pt) -> Window"""
538 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
540 def FindWindowAtPoint(*args
, **kwargs
):
541 """FindWindowAtPoint(Point pt) -> Window"""
542 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
544 def GetTopLevelParent(*args
, **kwargs
):
545 """GetTopLevelParent(Window win) -> Window"""
546 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
548 def GetKeyState(*args
, **kwargs
):
550 GetKeyState(int key) -> bool
552 Get the state of a key (true if pressed or toggled on, false if not.)
553 This is generally most useful getting the state of the modifier or
554 toggle keys. On some platforms those may be the only keys that work.
557 return _misc_
.GetKeyState(*args
, **kwargs
)
559 def WakeUpMainThread(*args
, **kwargs
):
560 """WakeUpMainThread()"""
561 return _misc_
.WakeUpMainThread(*args
, **kwargs
)
563 def MutexGuiEnter(*args
, **kwargs
):
564 """MutexGuiEnter()"""
565 return _misc_
.MutexGuiEnter(*args
, **kwargs
)
567 def MutexGuiLeave(*args
, **kwargs
):
568 """MutexGuiLeave()"""
569 return _misc_
.MutexGuiLeave(*args
, **kwargs
)
570 class MutexGuiLocker(object):
571 """Proxy of C++ MutexGuiLocker class"""
573 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
574 def __init__(self
, *args
, **kwargs
):
575 """__init__(self) -> MutexGuiLocker"""
576 newobj
= _misc_
.new_MutexGuiLocker(*args
, **kwargs
)
577 self
.this
= newobj
.this
580 def __del__(self
, destroy
=_misc_
.delete_MutexGuiLocker
):
583 if self
.thisown
: destroy(self
)
587 class MutexGuiLockerPtr(MutexGuiLocker
):
588 def __init__(self
, this
):
590 if not hasattr(self
,"thisown"): self
.thisown
= 0
591 self
.__class
__ = MutexGuiLocker
592 _misc_
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
593 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
594 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
595 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
598 def Thread_IsMain(*args
, **kwargs
):
599 """Thread_IsMain() -> bool"""
600 return _misc_
.Thread_IsMain(*args
, **kwargs
)
601 #---------------------------------------------------------------------------
603 class ToolTip(_core
.Object
):
604 """Proxy of C++ ToolTip class"""
606 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
607 def __init__(self
, *args
, **kwargs
):
608 """__init__(self, String tip) -> ToolTip"""
609 newobj
= _misc_
.new_ToolTip(*args
, **kwargs
)
610 self
.this
= newobj
.this
613 def SetTip(*args
, **kwargs
):
614 """SetTip(self, String tip)"""
615 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
617 def GetTip(*args
, **kwargs
):
618 """GetTip(self) -> String"""
619 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
621 def GetWindow(*args
, **kwargs
):
622 """GetWindow(self) -> Window"""
623 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
625 def Enable(*args
, **kwargs
):
626 """Enable(bool flag)"""
627 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
629 Enable
= staticmethod(Enable
)
630 def SetDelay(*args
, **kwargs
):
631 """SetDelay(long milliseconds)"""
632 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
634 SetDelay
= staticmethod(SetDelay
)
636 class ToolTipPtr(ToolTip
):
637 def __init__(self
, this
):
639 if not hasattr(self
,"thisown"): self
.thisown
= 0
640 self
.__class
__ = ToolTip
641 _misc_
.ToolTip_swigregister(ToolTipPtr
)
643 def ToolTip_Enable(*args
, **kwargs
):
644 """ToolTip_Enable(bool flag)"""
645 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
647 def ToolTip_SetDelay(*args
, **kwargs
):
648 """ToolTip_SetDelay(long milliseconds)"""
649 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
652 """Proxy of C++ Caret class"""
654 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
655 def __init__(self
, *args
, **kwargs
):
656 """__init__(self, Window window, Size size) -> Caret"""
657 newobj
= _misc_
.new_Caret(*args
, **kwargs
)
658 self
.this
= newobj
.this
661 def __del__(self
, destroy
=_misc_
.delete_Caret
):
664 if self
.thisown
: destroy(self
)
667 def IsOk(*args
, **kwargs
):
668 """IsOk(self) -> bool"""
669 return _misc_
.Caret_IsOk(*args
, **kwargs
)
671 def IsVisible(*args
, **kwargs
):
672 """IsVisible(self) -> bool"""
673 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
675 def GetPosition(*args
, **kwargs
):
676 """GetPosition(self) -> Point"""
677 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
679 def GetPositionTuple(*args
, **kwargs
):
680 """GetPositionTuple() -> (x,y)"""
681 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
683 def GetSize(*args
, **kwargs
):
684 """GetSize(self) -> Size"""
685 return _misc_
.Caret_GetSize(*args
, **kwargs
)
687 def GetSizeTuple(*args
, **kwargs
):
688 """GetSizeTuple() -> (width, height)"""
689 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
691 def GetWindow(*args
, **kwargs
):
692 """GetWindow(self) -> Window"""
693 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
695 def MoveXY(*args
, **kwargs
):
696 """MoveXY(self, int x, int y)"""
697 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
699 def Move(*args
, **kwargs
):
700 """Move(self, Point pt)"""
701 return _misc_
.Caret_Move(*args
, **kwargs
)
703 def SetSizeWH(*args
, **kwargs
):
704 """SetSizeWH(self, int width, int height)"""
705 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
707 def SetSize(*args
, **kwargs
):
708 """SetSize(self, Size size)"""
709 return _misc_
.Caret_SetSize(*args
, **kwargs
)
711 def Show(*args
, **kwargs
):
712 """Show(self, int show=True)"""
713 return _misc_
.Caret_Show(*args
, **kwargs
)
715 def Hide(*args
, **kwargs
):
717 return _misc_
.Caret_Hide(*args
, **kwargs
)
719 def __nonzero__(self
): return self
.IsOk()
721 class CaretPtr(Caret
):
722 def __init__(self
, this
):
724 if not hasattr(self
,"thisown"): self
.thisown
= 0
725 self
.__class
__ = Caret
726 _misc_
.Caret_swigregister(CaretPtr
)
729 def Caret_GetBlinkTime(*args
, **kwargs
):
730 """Caret_GetBlinkTime() -> int"""
731 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
733 def Caret_SetBlinkTime(*args
, **kwargs
):
734 """Caret_SetBlinkTime(int milliseconds)"""
735 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
736 class BusyCursor(object):
737 """Proxy of C++ BusyCursor class"""
739 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
740 def __init__(self
, *args
, **kwargs
):
741 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
742 newobj
= _misc_
.new_BusyCursor(*args
, **kwargs
)
743 self
.this
= newobj
.this
746 def __del__(self
, destroy
=_misc_
.delete_BusyCursor
):
749 if self
.thisown
: destroy(self
)
753 class BusyCursorPtr(BusyCursor
):
754 def __init__(self
, this
):
756 if not hasattr(self
,"thisown"): self
.thisown
= 0
757 self
.__class
__ = BusyCursor
758 _misc_
.BusyCursor_swigregister(BusyCursorPtr
)
760 class WindowDisabler(object):
761 """Proxy of C++ WindowDisabler class"""
763 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
764 def __init__(self
, *args
, **kwargs
):
765 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
766 newobj
= _misc_
.new_WindowDisabler(*args
, **kwargs
)
767 self
.this
= newobj
.this
770 def __del__(self
, destroy
=_misc_
.delete_WindowDisabler
):
773 if self
.thisown
: destroy(self
)
777 class WindowDisablerPtr(WindowDisabler
):
778 def __init__(self
, this
):
780 if not hasattr(self
,"thisown"): self
.thisown
= 0
781 self
.__class
__ = WindowDisabler
782 _misc_
.WindowDisabler_swigregister(WindowDisablerPtr
)
784 class BusyInfo(_core
.Object
):
785 """Proxy of C++ BusyInfo class"""
787 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
788 def __init__(self
, *args
, **kwargs
):
789 """__init__(self, String message) -> BusyInfo"""
790 newobj
= _misc_
.new_BusyInfo(*args
, **kwargs
)
791 self
.this
= newobj
.this
794 def __del__(self
, destroy
=_misc_
.delete_BusyInfo
):
797 if self
.thisown
: destroy(self
)
801 class BusyInfoPtr(BusyInfo
):
802 def __init__(self
, this
):
804 if not hasattr(self
,"thisown"): self
.thisown
= 0
805 self
.__class
__ = BusyInfo
806 _misc_
.BusyInfo_swigregister(BusyInfoPtr
)
808 class StopWatch(object):
809 """Proxy of C++ StopWatch class"""
811 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
812 def __init__(self
, *args
, **kwargs
):
813 """__init__(self) -> StopWatch"""
814 newobj
= _misc_
.new_StopWatch(*args
, **kwargs
)
815 self
.this
= newobj
.this
818 def Start(*args
, **kwargs
):
819 """Start(self, long t0=0)"""
820 return _misc_
.StopWatch_Start(*args
, **kwargs
)
822 def Pause(*args
, **kwargs
):
824 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
826 def Resume(*args
, **kwargs
):
828 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
830 def Time(*args
, **kwargs
):
831 """Time(self) -> long"""
832 return _misc_
.StopWatch_Time(*args
, **kwargs
)
835 class StopWatchPtr(StopWatch
):
836 def __init__(self
, this
):
838 if not hasattr(self
,"thisown"): self
.thisown
= 0
839 self
.__class
__ = StopWatch
840 _misc_
.StopWatch_swigregister(StopWatchPtr
)
842 class FileHistory(_core
.Object
):
843 """Proxy of C++ FileHistory class"""
845 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
846 def __init__(self
, *args
, **kwargs
):
847 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
848 newobj
= _misc_
.new_FileHistory(*args
, **kwargs
)
849 self
.this
= newobj
.this
852 def __del__(self
, destroy
=_misc_
.delete_FileHistory
):
855 if self
.thisown
: destroy(self
)
858 def AddFileToHistory(*args
, **kwargs
):
859 """AddFileToHistory(self, String file)"""
860 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
862 def RemoveFileFromHistory(*args
, **kwargs
):
863 """RemoveFileFromHistory(self, int i)"""
864 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
866 def GetMaxFiles(*args
, **kwargs
):
867 """GetMaxFiles(self) -> int"""
868 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
870 def UseMenu(*args
, **kwargs
):
871 """UseMenu(self, Menu menu)"""
872 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
874 def RemoveMenu(*args
, **kwargs
):
875 """RemoveMenu(self, Menu menu)"""
876 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
878 def Load(*args
, **kwargs
):
879 """Load(self, ConfigBase config)"""
880 return _misc_
.FileHistory_Load(*args
, **kwargs
)
882 def Save(*args
, **kwargs
):
883 """Save(self, ConfigBase config)"""
884 return _misc_
.FileHistory_Save(*args
, **kwargs
)
886 def AddFilesToMenu(*args
, **kwargs
):
887 """AddFilesToMenu(self)"""
888 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
890 def AddFilesToThisMenu(*args
, **kwargs
):
891 """AddFilesToThisMenu(self, Menu menu)"""
892 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
894 def GetHistoryFile(*args
, **kwargs
):
895 """GetHistoryFile(self, int i) -> String"""
896 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
898 def GetCount(*args
, **kwargs
):
899 """GetCount(self) -> int"""
900 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
902 GetNoHistoryFiles
= GetCount
904 class FileHistoryPtr(FileHistory
):
905 def __init__(self
, this
):
907 if not hasattr(self
,"thisown"): self
.thisown
= 0
908 self
.__class
__ = FileHistory
909 _misc_
.FileHistory_swigregister(FileHistoryPtr
)
911 class SingleInstanceChecker(object):
912 """Proxy of C++ SingleInstanceChecker class"""
914 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
915 def __init__(self
, *args
, **kwargs
):
916 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
917 newobj
= _misc_
.new_SingleInstanceChecker(*args
, **kwargs
)
918 self
.this
= newobj
.this
921 def __del__(self
, destroy
=_misc_
.delete_SingleInstanceChecker
):
924 if self
.thisown
: destroy(self
)
927 def Create(*args
, **kwargs
):
928 """Create(self, String name, String path=EmptyString) -> bool"""
929 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
931 def IsAnotherRunning(*args
, **kwargs
):
932 """IsAnotherRunning(self) -> bool"""
933 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
936 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
937 def __init__(self
, this
):
939 if not hasattr(self
,"thisown"): self
.thisown
= 0
940 self
.__class
__ = SingleInstanceChecker
941 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
943 def PreSingleInstanceChecker(*args
, **kwargs
):
944 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
945 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
949 #---------------------------------------------------------------------------
951 class TipProvider(object):
952 """Proxy of C++ TipProvider class"""
953 def __init__(self
): raise RuntimeError, "No constructor defined"
955 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
956 def __del__(self
, destroy
=_misc_
.delete_TipProvider
):
959 if self
.thisown
: destroy(self
)
962 def GetTip(*args
, **kwargs
):
963 """GetTip(self) -> String"""
964 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
966 def GetCurrentTip(*args
, **kwargs
):
967 """GetCurrentTip(self) -> size_t"""
968 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
970 def PreprocessTip(*args
, **kwargs
):
971 """PreprocessTip(self, String tip) -> String"""
972 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
975 class TipProviderPtr(TipProvider
):
976 def __init__(self
, this
):
978 if not hasattr(self
,"thisown"): self
.thisown
= 0
979 self
.__class
__ = TipProvider
980 _misc_
.TipProvider_swigregister(TipProviderPtr
)
982 class PyTipProvider(TipProvider
):
983 """Proxy of C++ PyTipProvider class"""
985 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
986 def __init__(self
, *args
, **kwargs
):
987 """__init__(self, size_t currentTip) -> PyTipProvider"""
988 newobj
= _misc_
.new_PyTipProvider(*args
, **kwargs
)
989 self
.this
= newobj
.this
992 self
._setCallbackInfo
(self
, PyTipProvider
)
994 def _setCallbackInfo(*args
, **kwargs
):
995 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
996 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
999 class PyTipProviderPtr(PyTipProvider
):
1000 def __init__(self
, this
):
1002 if not hasattr(self
,"thisown"): self
.thisown
= 0
1003 self
.__class
__ = PyTipProvider
1004 _misc_
.PyTipProvider_swigregister(PyTipProviderPtr
)
1007 def ShowTip(*args
, **kwargs
):
1008 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1009 return _misc_
.ShowTip(*args
, **kwargs
)
1011 def CreateFileTipProvider(*args
, **kwargs
):
1012 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1013 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1014 #---------------------------------------------------------------------------
1016 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1017 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1018 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1019 class Timer(_core
.EvtHandler
):
1020 """Proxy of C++ Timer class"""
1022 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1023 def __init__(self
, *args
, **kwargs
):
1024 """__init__(self, EvtHandler owner=None, int id=-1) -> Timer"""
1025 newobj
= _misc_
.new_Timer(*args
, **kwargs
)
1026 self
.this
= newobj
.this
1029 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1031 def __del__(self
, destroy
=_misc_
.delete_Timer
):
1034 if self
.thisown
: destroy(self
)
1037 def _setCallbackInfo(*args
, **kwargs
):
1038 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1039 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1041 def SetOwner(*args
, **kwargs
):
1042 """SetOwner(self, EvtHandler owner, int id=-1)"""
1043 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1045 def GetOwner(*args
, **kwargs
):
1046 """GetOwner(self) -> EvtHandler"""
1047 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1049 def Start(*args
, **kwargs
):
1050 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1051 return _misc_
.Timer_Start(*args
, **kwargs
)
1053 def Stop(*args
, **kwargs
):
1055 return _misc_
.Timer_Stop(*args
, **kwargs
)
1057 def IsRunning(*args
, **kwargs
):
1058 """IsRunning(self) -> bool"""
1059 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1061 def GetInterval(*args
, **kwargs
):
1062 """GetInterval(self) -> int"""
1063 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1065 def IsOneShot(*args
, **kwargs
):
1066 """IsOneShot(self) -> bool"""
1067 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1069 def GetId(*args
, **kwargs
):
1070 """GetId(self) -> int"""
1071 return _misc_
.Timer_GetId(*args
, **kwargs
)
1074 """NO-OP: Timers must be destroyed by normal refrence counting"""
1078 class TimerPtr(Timer
):
1079 def __init__(self
, this
):
1081 if not hasattr(self
,"thisown"): self
.thisown
= 0
1082 self
.__class
__ = Timer
1083 _misc_
.Timer_swigregister(TimerPtr
)
1085 # For backwards compatibility with 2.4
1086 class PyTimer(Timer
):
1087 def __init__(self
, notify
):
1088 Timer
.__init
__(self
)
1089 self
.notify
= notify
1096 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1099 class TimerEvent(_core
.Event
):
1100 """Proxy of C++ TimerEvent class"""
1102 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1103 def __init__(self
, *args
, **kwargs
):
1104 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1105 newobj
= _misc_
.new_TimerEvent(*args
, **kwargs
)
1106 self
.this
= newobj
.this
1109 def GetInterval(*args
, **kwargs
):
1110 """GetInterval(self) -> int"""
1111 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1114 class TimerEventPtr(TimerEvent
):
1115 def __init__(self
, this
):
1117 if not hasattr(self
,"thisown"): self
.thisown
= 0
1118 self
.__class
__ = TimerEvent
1119 _misc_
.TimerEvent_swigregister(TimerEventPtr
)
1121 class TimerRunner(object):
1122 """Proxy of C++ TimerRunner class"""
1124 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1125 def __init__(self
, *args
):
1127 __init__(self, wxTimer timer) -> TimerRunner
1128 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1130 newobj
= _misc_
.new_TimerRunner(*args
)
1131 self
.this
= newobj
.this
1134 def __del__(self
, destroy
=_misc_
.delete_TimerRunner
):
1137 if self
.thisown
: destroy(self
)
1140 def Start(*args
, **kwargs
):
1141 """Start(self, int milli, bool oneShot=False)"""
1142 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1145 class TimerRunnerPtr(TimerRunner
):
1146 def __init__(self
, this
):
1148 if not hasattr(self
,"thisown"): self
.thisown
= 0
1149 self
.__class
__ = TimerRunner
1150 _misc_
.TimerRunner_swigregister(TimerRunnerPtr
)
1152 #---------------------------------------------------------------------------
1154 LOG_FatalError
= _misc_
.LOG_FatalError
1155 LOG_Error
= _misc_
.LOG_Error
1156 LOG_Warning
= _misc_
.LOG_Warning
1157 LOG_Message
= _misc_
.LOG_Message
1158 LOG_Status
= _misc_
.LOG_Status
1159 LOG_Info
= _misc_
.LOG_Info
1160 LOG_Debug
= _misc_
.LOG_Debug
1161 LOG_Trace
= _misc_
.LOG_Trace
1162 LOG_Progress
= _misc_
.LOG_Progress
1163 LOG_User
= _misc_
.LOG_User
1164 LOG_Max
= _misc_
.LOG_Max
1165 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1166 TRACE_Messages
= _misc_
.TRACE_Messages
1167 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1168 TRACE_RefCount
= _misc_
.TRACE_RefCount
1169 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1170 TraceMemAlloc
= _misc_
.TraceMemAlloc
1171 TraceMessages
= _misc_
.TraceMessages
1172 TraceResAlloc
= _misc_
.TraceResAlloc
1173 TraceRefCount
= _misc_
.TraceRefCount
1174 TraceOleCalls
= _misc_
.TraceOleCalls
1176 """Proxy of C++ Log class"""
1178 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1179 def __init__(self
, *args
, **kwargs
):
1180 """__init__(self) -> Log"""
1181 newobj
= _misc_
.new_Log(*args
, **kwargs
)
1182 self
.this
= newobj
.this
1185 def IsEnabled(*args
, **kwargs
):
1186 """IsEnabled() -> bool"""
1187 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1189 IsEnabled
= staticmethod(IsEnabled
)
1190 def EnableLogging(*args
, **kwargs
):
1191 """EnableLogging(bool doIt=True) -> bool"""
1192 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1194 EnableLogging
= staticmethod(EnableLogging
)
1195 def OnLog(*args
, **kwargs
):
1196 """OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1197 return _misc_
.Log_OnLog(*args
, **kwargs
)
1199 OnLog
= staticmethod(OnLog
)
1200 def Flush(*args
, **kwargs
):
1202 return _misc_
.Log_Flush(*args
, **kwargs
)
1204 def FlushActive(*args
, **kwargs
):
1206 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1208 FlushActive
= staticmethod(FlushActive
)
1209 def GetActiveTarget(*args
, **kwargs
):
1210 """GetActiveTarget() -> Log"""
1211 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1213 GetActiveTarget
= staticmethod(GetActiveTarget
)
1214 def SetActiveTarget(*args
, **kwargs
):
1215 """SetActiveTarget(Log pLogger) -> Log"""
1216 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1218 SetActiveTarget
= staticmethod(SetActiveTarget
)
1219 def Suspend(*args
, **kwargs
):
1221 return _misc_
.Log_Suspend(*args
, **kwargs
)
1223 Suspend
= staticmethod(Suspend
)
1224 def Resume(*args
, **kwargs
):
1226 return _misc_
.Log_Resume(*args
, **kwargs
)
1228 Resume
= staticmethod(Resume
)
1229 def SetVerbose(*args
, **kwargs
):
1230 """SetVerbose(bool bVerbose=True)"""
1231 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1233 SetVerbose
= staticmethod(SetVerbose
)
1234 def SetLogLevel(*args
, **kwargs
):
1235 """SetLogLevel(wxLogLevel logLevel)"""
1236 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1238 SetLogLevel
= staticmethod(SetLogLevel
)
1239 def DontCreateOnDemand(*args
, **kwargs
):
1240 """DontCreateOnDemand()"""
1241 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1243 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1244 def SetTraceMask(*args
, **kwargs
):
1245 """SetTraceMask(wxTraceMask ulMask)"""
1246 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1248 SetTraceMask
= staticmethod(SetTraceMask
)
1249 def AddTraceMask(*args
, **kwargs
):
1250 """AddTraceMask(String str)"""
1251 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1253 AddTraceMask
= staticmethod(AddTraceMask
)
1254 def RemoveTraceMask(*args
, **kwargs
):
1255 """RemoveTraceMask(String str)"""
1256 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1258 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1259 def ClearTraceMasks(*args
, **kwargs
):
1260 """ClearTraceMasks()"""
1261 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1263 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1264 def GetTraceMasks(*args
, **kwargs
):
1265 """GetTraceMasks() -> wxArrayString"""
1266 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1268 GetTraceMasks
= staticmethod(GetTraceMasks
)
1269 def SetTimestamp(*args
, **kwargs
):
1270 """SetTimestamp(wxChar ts)"""
1271 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1273 SetTimestamp
= staticmethod(SetTimestamp
)
1274 def GetVerbose(*args
, **kwargs
):
1275 """GetVerbose() -> bool"""
1276 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1278 GetVerbose
= staticmethod(GetVerbose
)
1279 def GetTraceMask(*args
, **kwargs
):
1280 """GetTraceMask() -> wxTraceMask"""
1281 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1283 GetTraceMask
= staticmethod(GetTraceMask
)
1284 def IsAllowedTraceMask(*args
, **kwargs
):
1285 """IsAllowedTraceMask(wxChar mask) -> bool"""
1286 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1288 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1289 def GetLogLevel(*args
, **kwargs
):
1290 """GetLogLevel() -> wxLogLevel"""
1291 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1293 GetLogLevel
= staticmethod(GetLogLevel
)
1294 def GetTimestamp(*args
, **kwargs
):
1295 """GetTimestamp() -> wxChar"""
1296 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1298 GetTimestamp
= staticmethod(GetTimestamp
)
1299 def TimeStamp(*args
, **kwargs
):
1300 """TimeStamp() -> String"""
1301 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1303 TimeStamp
= staticmethod(TimeStamp
)
1304 def Destroy(*args
, **kwargs
):
1306 return _misc_
.Log_Destroy(*args
, **kwargs
)
1310 def __init__(self
, this
):
1312 if not hasattr(self
,"thisown"): self
.thisown
= 0
1313 self
.__class
__ = Log
1314 _misc_
.Log_swigregister(LogPtr
)
1316 def Log_IsEnabled(*args
, **kwargs
):
1317 """Log_IsEnabled() -> bool"""
1318 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1320 def Log_EnableLogging(*args
, **kwargs
):
1321 """Log_EnableLogging(bool doIt=True) -> bool"""
1322 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1324 def Log_OnLog(*args
, **kwargs
):
1325 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1326 return _misc_
.Log_OnLog(*args
, **kwargs
)
1328 def Log_FlushActive(*args
, **kwargs
):
1329 """Log_FlushActive()"""
1330 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1332 def Log_GetActiveTarget(*args
, **kwargs
):
1333 """Log_GetActiveTarget() -> Log"""
1334 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1336 def Log_SetActiveTarget(*args
, **kwargs
):
1337 """Log_SetActiveTarget(Log pLogger) -> Log"""
1338 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1340 def Log_Suspend(*args
, **kwargs
):
1342 return _misc_
.Log_Suspend(*args
, **kwargs
)
1344 def Log_Resume(*args
, **kwargs
):
1346 return _misc_
.Log_Resume(*args
, **kwargs
)
1348 def Log_SetVerbose(*args
, **kwargs
):
1349 """Log_SetVerbose(bool bVerbose=True)"""
1350 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1352 def Log_SetLogLevel(*args
, **kwargs
):
1353 """Log_SetLogLevel(wxLogLevel logLevel)"""
1354 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1356 def Log_DontCreateOnDemand(*args
, **kwargs
):
1357 """Log_DontCreateOnDemand()"""
1358 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1360 def Log_SetTraceMask(*args
, **kwargs
):
1361 """Log_SetTraceMask(wxTraceMask ulMask)"""
1362 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1364 def Log_AddTraceMask(*args
, **kwargs
):
1365 """Log_AddTraceMask(String str)"""
1366 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1368 def Log_RemoveTraceMask(*args
, **kwargs
):
1369 """Log_RemoveTraceMask(String str)"""
1370 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1372 def Log_ClearTraceMasks(*args
, **kwargs
):
1373 """Log_ClearTraceMasks()"""
1374 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1376 def Log_GetTraceMasks(*args
, **kwargs
):
1377 """Log_GetTraceMasks() -> wxArrayString"""
1378 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1380 def Log_SetTimestamp(*args
, **kwargs
):
1381 """Log_SetTimestamp(wxChar ts)"""
1382 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1384 def Log_GetVerbose(*args
, **kwargs
):
1385 """Log_GetVerbose() -> bool"""
1386 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1388 def Log_GetTraceMask(*args
, **kwargs
):
1389 """Log_GetTraceMask() -> wxTraceMask"""
1390 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1392 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1393 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1394 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1396 def Log_GetLogLevel(*args
, **kwargs
):
1397 """Log_GetLogLevel() -> wxLogLevel"""
1398 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1400 def Log_GetTimestamp(*args
, **kwargs
):
1401 """Log_GetTimestamp() -> wxChar"""
1402 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1404 def Log_TimeStamp(*args
, **kwargs
):
1405 """Log_TimeStamp() -> String"""
1406 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1408 class LogStderr(Log
):
1409 """Proxy of C++ LogStderr class"""
1411 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1412 def __init__(self
, *args
, **kwargs
):
1413 """__init__(self) -> LogStderr"""
1414 newobj
= _misc_
.new_LogStderr(*args
, **kwargs
)
1415 self
.this
= newobj
.this
1419 class LogStderrPtr(LogStderr
):
1420 def __init__(self
, this
):
1422 if not hasattr(self
,"thisown"): self
.thisown
= 0
1423 self
.__class
__ = LogStderr
1424 _misc_
.LogStderr_swigregister(LogStderrPtr
)
1426 class LogTextCtrl(Log
):
1427 """Proxy of C++ LogTextCtrl class"""
1429 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1430 def __init__(self
, *args
, **kwargs
):
1431 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1432 newobj
= _misc_
.new_LogTextCtrl(*args
, **kwargs
)
1433 self
.this
= newobj
.this
1437 class LogTextCtrlPtr(LogTextCtrl
):
1438 def __init__(self
, this
):
1440 if not hasattr(self
,"thisown"): self
.thisown
= 0
1441 self
.__class
__ = LogTextCtrl
1442 _misc_
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1445 """Proxy of C++ LogGui class"""
1447 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1448 def __init__(self
, *args
, **kwargs
):
1449 """__init__(self) -> LogGui"""
1450 newobj
= _misc_
.new_LogGui(*args
, **kwargs
)
1451 self
.this
= newobj
.this
1455 class LogGuiPtr(LogGui
):
1456 def __init__(self
, this
):
1458 if not hasattr(self
,"thisown"): self
.thisown
= 0
1459 self
.__class
__ = LogGui
1460 _misc_
.LogGui_swigregister(LogGuiPtr
)
1462 class LogWindow(Log
):
1463 """Proxy of C++ LogWindow class"""
1465 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1466 def __init__(self
, *args
, **kwargs
):
1467 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1468 newobj
= _misc_
.new_LogWindow(*args
, **kwargs
)
1469 self
.this
= newobj
.this
1472 def Show(*args
, **kwargs
):
1473 """Show(self, bool bShow=True)"""
1474 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1476 def GetFrame(*args
, **kwargs
):
1477 """GetFrame(self) -> wxFrame"""
1478 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1480 def GetOldLog(*args
, **kwargs
):
1481 """GetOldLog(self) -> Log"""
1482 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1484 def IsPassingMessages(*args
, **kwargs
):
1485 """IsPassingMessages(self) -> bool"""
1486 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1488 def PassMessages(*args
, **kwargs
):
1489 """PassMessages(self, bool bDoPass)"""
1490 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1493 class LogWindowPtr(LogWindow
):
1494 def __init__(self
, this
):
1496 if not hasattr(self
,"thisown"): self
.thisown
= 0
1497 self
.__class
__ = LogWindow
1498 _misc_
.LogWindow_swigregister(LogWindowPtr
)
1500 class LogChain(Log
):
1501 """Proxy of C++ LogChain class"""
1503 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1504 def __init__(self
, *args
, **kwargs
):
1505 """__init__(self, Log logger) -> LogChain"""
1506 newobj
= _misc_
.new_LogChain(*args
, **kwargs
)
1507 self
.this
= newobj
.this
1510 def SetLog(*args
, **kwargs
):
1511 """SetLog(self, Log logger)"""
1512 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1514 def PassMessages(*args
, **kwargs
):
1515 """PassMessages(self, bool bDoPass)"""
1516 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1518 def IsPassingMessages(*args
, **kwargs
):
1519 """IsPassingMessages(self) -> bool"""
1520 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1522 def GetOldLog(*args
, **kwargs
):
1523 """GetOldLog(self) -> Log"""
1524 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1527 class LogChainPtr(LogChain
):
1528 def __init__(self
, this
):
1530 if not hasattr(self
,"thisown"): self
.thisown
= 0
1531 self
.__class
__ = LogChain
1532 _misc_
.LogChain_swigregister(LogChainPtr
)
1535 def SysErrorCode(*args
, **kwargs
):
1536 """SysErrorCode() -> unsigned long"""
1537 return _misc_
.SysErrorCode(*args
, **kwargs
)
1539 def SysErrorMsg(*args
, **kwargs
):
1540 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1541 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1543 def LogFatalError(*args
, **kwargs
):
1544 """LogFatalError(String msg)"""
1545 return _misc_
.LogFatalError(*args
, **kwargs
)
1547 def LogError(*args
, **kwargs
):
1548 """LogError(String msg)"""
1549 return _misc_
.LogError(*args
, **kwargs
)
1551 def LogWarning(*args
, **kwargs
):
1552 """LogWarning(String msg)"""
1553 return _misc_
.LogWarning(*args
, **kwargs
)
1555 def LogMessage(*args
, **kwargs
):
1556 """LogMessage(String msg)"""
1557 return _misc_
.LogMessage(*args
, **kwargs
)
1559 def LogInfo(*args
, **kwargs
):
1560 """LogInfo(String msg)"""
1561 return _misc_
.LogInfo(*args
, **kwargs
)
1563 def LogDebug(*args
, **kwargs
):
1564 """LogDebug(String msg)"""
1565 return _misc_
.LogDebug(*args
, **kwargs
)
1567 def LogVerbose(*args
, **kwargs
):
1568 """LogVerbose(String msg)"""
1569 return _misc_
.LogVerbose(*args
, **kwargs
)
1571 def LogStatus(*args
, **kwargs
):
1572 """LogStatus(String msg)"""
1573 return _misc_
.LogStatus(*args
, **kwargs
)
1575 def LogStatusFrame(*args
, **kwargs
):
1576 """LogStatusFrame(wxFrame pFrame, String msg)"""
1577 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1579 def LogSysError(*args
, **kwargs
):
1580 """LogSysError(String msg)"""
1581 return _misc_
.LogSysError(*args
, **kwargs
)
1583 def LogGeneric(*args
, **kwargs
):
1584 """LogGeneric(unsigned long level, String msg)"""
1585 return _misc_
.LogGeneric(*args
, **kwargs
)
1587 def SafeShowMessage(*args
, **kwargs
):
1588 """SafeShowMessage(String title, String text)"""
1589 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1590 class LogNull(object):
1591 """Proxy of C++ LogNull class"""
1593 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1594 def __init__(self
, *args
, **kwargs
):
1595 """__init__(self) -> LogNull"""
1596 newobj
= _misc_
.new_LogNull(*args
, **kwargs
)
1597 self
.this
= newobj
.this
1600 def __del__(self
, destroy
=_misc_
.delete_LogNull
):
1603 if self
.thisown
: destroy(self
)
1607 class LogNullPtr(LogNull
):
1608 def __init__(self
, this
):
1610 if not hasattr(self
,"thisown"): self
.thisown
= 0
1611 self
.__class
__ = LogNull
1612 _misc_
.LogNull_swigregister(LogNullPtr
)
1614 def LogTrace(*args
):
1616 LogTrace(unsigned long mask, String msg)
1617 LogTrace(String mask, String msg)
1619 return _misc_
.LogTrace(*args
)
1622 """Proxy of C++ PyLog class"""
1624 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1625 def __init__(self
, *args
, **kwargs
):
1626 """__init__(self) -> PyLog"""
1627 newobj
= _misc_
.new_PyLog(*args
, **kwargs
)
1628 self
.this
= newobj
.this
1631 self
._setCallbackInfo
(self
, PyLog
)
1633 def _setCallbackInfo(*args
, **kwargs
):
1634 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1635 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1638 class PyLogPtr(PyLog
):
1639 def __init__(self
, this
):
1641 if not hasattr(self
,"thisown"): self
.thisown
= 0
1642 self
.__class
__ = PyLog
1643 _misc_
.PyLog_swigregister(PyLogPtr
)
1645 #---------------------------------------------------------------------------
1647 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1648 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1649 KILL_OK
= _misc_
.KILL_OK
1650 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1651 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1652 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1653 KILL_ERROR
= _misc_
.KILL_ERROR
1654 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1655 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1656 SIGNONE
= _misc_
.SIGNONE
1657 SIGHUP
= _misc_
.SIGHUP
1658 SIGINT
= _misc_
.SIGINT
1659 SIGQUIT
= _misc_
.SIGQUIT
1660 SIGILL
= _misc_
.SIGILL
1661 SIGTRAP
= _misc_
.SIGTRAP
1662 SIGABRT
= _misc_
.SIGABRT
1663 SIGIOT
= _misc_
.SIGIOT
1664 SIGEMT
= _misc_
.SIGEMT
1665 SIGFPE
= _misc_
.SIGFPE
1666 SIGKILL
= _misc_
.SIGKILL
1667 SIGBUS
= _misc_
.SIGBUS
1668 SIGSEGV
= _misc_
.SIGSEGV
1669 SIGSYS
= _misc_
.SIGSYS
1670 SIGPIPE
= _misc_
.SIGPIPE
1671 SIGALRM
= _misc_
.SIGALRM
1672 SIGTERM
= _misc_
.SIGTERM
1673 class Process(_core
.EvtHandler
):
1674 """Proxy of C++ Process class"""
1676 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1677 def Kill(*args
, **kwargs
):
1678 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1679 return _misc_
.Process_Kill(*args
, **kwargs
)
1681 Kill
= staticmethod(Kill
)
1682 def Exists(*args
, **kwargs
):
1683 """Exists(int pid) -> bool"""
1684 return _misc_
.Process_Exists(*args
, **kwargs
)
1686 Exists
= staticmethod(Exists
)
1687 def Open(*args
, **kwargs
):
1688 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1689 return _misc_
.Process_Open(*args
, **kwargs
)
1691 Open
= staticmethod(Open
)
1692 def __init__(self
, *args
, **kwargs
):
1693 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1694 newobj
= _misc_
.new_Process(*args
, **kwargs
)
1695 self
.this
= newobj
.this
1698 self
._setCallbackInfo
(self
, Process
)
1700 def _setCallbackInfo(*args
, **kwargs
):
1701 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1702 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1704 def base_OnTerminate(*args
, **kwargs
):
1705 """base_OnTerminate(self, int pid, int status)"""
1706 return _misc_
.Process_base_OnTerminate(*args
, **kwargs
)
1708 def Redirect(*args
, **kwargs
):
1709 """Redirect(self)"""
1710 return _misc_
.Process_Redirect(*args
, **kwargs
)
1712 def IsRedirected(*args
, **kwargs
):
1713 """IsRedirected(self) -> bool"""
1714 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1716 def Detach(*args
, **kwargs
):
1718 return _misc_
.Process_Detach(*args
, **kwargs
)
1720 def GetInputStream(*args
, **kwargs
):
1721 """GetInputStream(self) -> InputStream"""
1722 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1724 def GetErrorStream(*args
, **kwargs
):
1725 """GetErrorStream(self) -> InputStream"""
1726 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1728 def GetOutputStream(*args
, **kwargs
):
1729 """GetOutputStream(self) -> OutputStream"""
1730 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1732 def CloseOutput(*args
, **kwargs
):
1733 """CloseOutput(self)"""
1734 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1736 def IsInputOpened(*args
, **kwargs
):
1737 """IsInputOpened(self) -> bool"""
1738 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1740 def IsInputAvailable(*args
, **kwargs
):
1741 """IsInputAvailable(self) -> bool"""
1742 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1744 def IsErrorAvailable(*args
, **kwargs
):
1745 """IsErrorAvailable(self) -> bool"""
1746 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1749 class ProcessPtr(Process
):
1750 def __init__(self
, this
):
1752 if not hasattr(self
,"thisown"): self
.thisown
= 0
1753 self
.__class
__ = Process
1754 _misc_
.Process_swigregister(ProcessPtr
)
1756 def Process_Kill(*args
, **kwargs
):
1757 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1758 return _misc_
.Process_Kill(*args
, **kwargs
)
1760 def Process_Exists(*args
, **kwargs
):
1761 """Process_Exists(int pid) -> bool"""
1762 return _misc_
.Process_Exists(*args
, **kwargs
)
1764 def Process_Open(*args
, **kwargs
):
1765 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1766 return _misc_
.Process_Open(*args
, **kwargs
)
1768 class ProcessEvent(_core
.Event
):
1769 """Proxy of C++ ProcessEvent class"""
1771 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1772 def __init__(self
, *args
, **kwargs
):
1773 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1774 newobj
= _misc_
.new_ProcessEvent(*args
, **kwargs
)
1775 self
.this
= newobj
.this
1778 def GetPid(*args
, **kwargs
):
1779 """GetPid(self) -> int"""
1780 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1782 def GetExitCode(*args
, **kwargs
):
1783 """GetExitCode(self) -> int"""
1784 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1786 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1787 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1789 class ProcessEventPtr(ProcessEvent
):
1790 def __init__(self
, this
):
1792 if not hasattr(self
,"thisown"): self
.thisown
= 0
1793 self
.__class
__ = ProcessEvent
1794 _misc_
.ProcessEvent_swigregister(ProcessEventPtr
)
1796 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1797 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1799 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1800 EXEC_SYNC
= _misc_
.EXEC_SYNC
1801 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1802 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1803 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1805 def Execute(*args
, **kwargs
):
1806 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1807 return _misc_
.Execute(*args
, **kwargs
)
1809 def Kill(*args
, **kwargs
):
1810 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1811 return _misc_
.Kill(*args
, **kwargs
)
1812 #---------------------------------------------------------------------------
1814 JOYSTICK1
= _misc_
.JOYSTICK1
1815 JOYSTICK2
= _misc_
.JOYSTICK2
1816 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
1817 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
1818 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
1819 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
1820 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
1821 class Joystick(object):
1822 """Proxy of C++ Joystick class"""
1824 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1825 def __init__(self
, *args
, **kwargs
):
1826 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1827 newobj
= _misc_
.new_Joystick(*args
, **kwargs
)
1828 self
.this
= newobj
.this
1831 def __del__(self
, destroy
=_misc_
.delete_Joystick
):
1834 if self
.thisown
: destroy(self
)
1837 def GetPosition(*args
, **kwargs
):
1838 """GetPosition(self) -> Point"""
1839 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
1841 def GetZPosition(*args
, **kwargs
):
1842 """GetZPosition(self) -> int"""
1843 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
1845 def GetButtonState(*args
, **kwargs
):
1846 """GetButtonState(self) -> int"""
1847 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
1849 def GetPOVPosition(*args
, **kwargs
):
1850 """GetPOVPosition(self) -> int"""
1851 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
1853 def GetPOVCTSPosition(*args
, **kwargs
):
1854 """GetPOVCTSPosition(self) -> int"""
1855 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1857 def GetRudderPosition(*args
, **kwargs
):
1858 """GetRudderPosition(self) -> int"""
1859 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
1861 def GetUPosition(*args
, **kwargs
):
1862 """GetUPosition(self) -> int"""
1863 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
1865 def GetVPosition(*args
, **kwargs
):
1866 """GetVPosition(self) -> int"""
1867 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
1869 def GetMovementThreshold(*args
, **kwargs
):
1870 """GetMovementThreshold(self) -> int"""
1871 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1873 def SetMovementThreshold(*args
, **kwargs
):
1874 """SetMovementThreshold(self, int threshold)"""
1875 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1877 def IsOk(*args
, **kwargs
):
1878 """IsOk(self) -> bool"""
1879 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
1881 def GetNumberJoysticks(*args
, **kwargs
):
1882 """GetNumberJoysticks(self) -> int"""
1883 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1885 def GetManufacturerId(*args
, **kwargs
):
1886 """GetManufacturerId(self) -> int"""
1887 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
1889 def GetProductId(*args
, **kwargs
):
1890 """GetProductId(self) -> int"""
1891 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
1893 def GetProductName(*args
, **kwargs
):
1894 """GetProductName(self) -> String"""
1895 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
1897 def GetXMin(*args
, **kwargs
):
1898 """GetXMin(self) -> int"""
1899 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
1901 def GetYMin(*args
, **kwargs
):
1902 """GetYMin(self) -> int"""
1903 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
1905 def GetZMin(*args
, **kwargs
):
1906 """GetZMin(self) -> int"""
1907 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
1909 def GetXMax(*args
, **kwargs
):
1910 """GetXMax(self) -> int"""
1911 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
1913 def GetYMax(*args
, **kwargs
):
1914 """GetYMax(self) -> int"""
1915 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
1917 def GetZMax(*args
, **kwargs
):
1918 """GetZMax(self) -> int"""
1919 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
1921 def GetNumberButtons(*args
, **kwargs
):
1922 """GetNumberButtons(self) -> int"""
1923 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
1925 def GetNumberAxes(*args
, **kwargs
):
1926 """GetNumberAxes(self) -> int"""
1927 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
1929 def GetMaxButtons(*args
, **kwargs
):
1930 """GetMaxButtons(self) -> int"""
1931 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
1933 def GetMaxAxes(*args
, **kwargs
):
1934 """GetMaxAxes(self) -> int"""
1935 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
1937 def GetPollingMin(*args
, **kwargs
):
1938 """GetPollingMin(self) -> int"""
1939 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
1941 def GetPollingMax(*args
, **kwargs
):
1942 """GetPollingMax(self) -> int"""
1943 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
1945 def GetRudderMin(*args
, **kwargs
):
1946 """GetRudderMin(self) -> int"""
1947 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
1949 def GetRudderMax(*args
, **kwargs
):
1950 """GetRudderMax(self) -> int"""
1951 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
1953 def GetUMin(*args
, **kwargs
):
1954 """GetUMin(self) -> int"""
1955 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
1957 def GetUMax(*args
, **kwargs
):
1958 """GetUMax(self) -> int"""
1959 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
1961 def GetVMin(*args
, **kwargs
):
1962 """GetVMin(self) -> int"""
1963 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
1965 def GetVMax(*args
, **kwargs
):
1966 """GetVMax(self) -> int"""
1967 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
1969 def HasRudder(*args
, **kwargs
):
1970 """HasRudder(self) -> bool"""
1971 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
1973 def HasZ(*args
, **kwargs
):
1974 """HasZ(self) -> bool"""
1975 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
1977 def HasU(*args
, **kwargs
):
1978 """HasU(self) -> bool"""
1979 return _misc_
.Joystick_HasU(*args
, **kwargs
)
1981 def HasV(*args
, **kwargs
):
1982 """HasV(self) -> bool"""
1983 return _misc_
.Joystick_HasV(*args
, **kwargs
)
1985 def HasPOV(*args
, **kwargs
):
1986 """HasPOV(self) -> bool"""
1987 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
1989 def HasPOV4Dir(*args
, **kwargs
):
1990 """HasPOV4Dir(self) -> bool"""
1991 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1993 def HasPOVCTS(*args
, **kwargs
):
1994 """HasPOVCTS(self) -> bool"""
1995 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
1997 def SetCapture(*args
, **kwargs
):
1998 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
1999 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2001 def ReleaseCapture(*args
, **kwargs
):
2002 """ReleaseCapture(self) -> bool"""
2003 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2005 def __nonzero__(self
): return self
.IsOk()
2007 class JoystickPtr(Joystick
):
2008 def __init__(self
, this
):
2010 if not hasattr(self
,"thisown"): self
.thisown
= 0
2011 self
.__class
__ = Joystick
2012 _misc_
.Joystick_swigregister(JoystickPtr
)
2014 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2015 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2016 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2017 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2018 class JoystickEvent(_core
.Event
):
2019 """Proxy of C++ JoystickEvent class"""
2021 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2022 m_pos
= property(_misc_
.JoystickEvent_m_pos_get
, _misc_
.JoystickEvent_m_pos_set
)
2023 m_zPosition
= property(_misc_
.JoystickEvent_m_zPosition_get
, _misc_
.JoystickEvent_m_zPosition_set
)
2024 m_buttonChange
= property(_misc_
.JoystickEvent_m_buttonChange_get
, _misc_
.JoystickEvent_m_buttonChange_set
)
2025 m_buttonState
= property(_misc_
.JoystickEvent_m_buttonState_get
, _misc_
.JoystickEvent_m_buttonState_set
)
2026 m_joyStick
= property(_misc_
.JoystickEvent_m_joyStick_get
, _misc_
.JoystickEvent_m_joyStick_set
)
2027 def __init__(self
, *args
, **kwargs
):
2029 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2030 int change=0) -> JoystickEvent
2032 newobj
= _misc_
.new_JoystickEvent(*args
, **kwargs
)
2033 self
.this
= newobj
.this
2036 def GetPosition(*args
, **kwargs
):
2037 """GetPosition(self) -> Point"""
2038 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2040 def GetZPosition(*args
, **kwargs
):
2041 """GetZPosition(self) -> int"""
2042 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2044 def GetButtonState(*args
, **kwargs
):
2045 """GetButtonState(self) -> int"""
2046 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2048 def GetButtonChange(*args
, **kwargs
):
2049 """GetButtonChange(self) -> int"""
2050 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2052 def GetJoystick(*args
, **kwargs
):
2053 """GetJoystick(self) -> int"""
2054 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2056 def SetJoystick(*args
, **kwargs
):
2057 """SetJoystick(self, int stick)"""
2058 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2060 def SetButtonState(*args
, **kwargs
):
2061 """SetButtonState(self, int state)"""
2062 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2064 def SetButtonChange(*args
, **kwargs
):
2065 """SetButtonChange(self, int change)"""
2066 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2068 def SetPosition(*args
, **kwargs
):
2069 """SetPosition(self, Point pos)"""
2070 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2072 def SetZPosition(*args
, **kwargs
):
2073 """SetZPosition(self, int zPos)"""
2074 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2076 def IsButton(*args
, **kwargs
):
2077 """IsButton(self) -> bool"""
2078 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2080 def IsMove(*args
, **kwargs
):
2081 """IsMove(self) -> bool"""
2082 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2084 def IsZMove(*args
, **kwargs
):
2085 """IsZMove(self) -> bool"""
2086 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2088 def ButtonDown(*args
, **kwargs
):
2089 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2090 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2092 def ButtonUp(*args
, **kwargs
):
2093 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2094 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2096 def ButtonIsDown(*args
, **kwargs
):
2097 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2098 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2101 class JoystickEventPtr(JoystickEvent
):
2102 def __init__(self
, this
):
2104 if not hasattr(self
,"thisown"): self
.thisown
= 0
2105 self
.__class
__ = JoystickEvent
2106 _misc_
.JoystickEvent_swigregister(JoystickEventPtr
)
2108 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2109 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2110 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2111 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2113 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2114 wxEVT_JOY_BUTTON_UP
,
2120 #---------------------------------------------------------------------------
2122 SOUND_SYNC
= _misc_
.SOUND_SYNC
2123 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2124 SOUND_LOOP
= _misc_
.SOUND_LOOP
2125 class Sound(object):
2126 """Proxy of C++ Sound class"""
2128 return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2129 def __init__(self
, *args
, **kwargs
):
2130 """__init__(self, String fileName=EmptyString) -> Sound"""
2131 newobj
= _misc_
.new_Sound(*args
, **kwargs
)
2132 self
.this
= newobj
.this
2135 def __del__(self
, destroy
=_misc_
.delete_Sound
):
2138 if self
.thisown
: destroy(self
)
2141 def Create(*args
, **kwargs
):
2142 """Create(self, String fileName) -> bool"""
2143 return _misc_
.Sound_Create(*args
, **kwargs
)
2145 def CreateFromData(*args
, **kwargs
):
2146 """CreateFromData(self, PyObject data) -> bool"""
2147 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2149 def IsOk(*args
, **kwargs
):
2150 """IsOk(self) -> bool"""
2151 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2153 def Play(*args
, **kwargs
):
2154 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2155 return _misc_
.Sound_Play(*args
, **kwargs
)
2157 def PlaySound(*args
, **kwargs
):
2158 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2159 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2161 PlaySound
= staticmethod(PlaySound
)
2162 def Stop(*args
, **kwargs
):
2164 return _misc_
.Sound_Stop(*args
, **kwargs
)
2166 Stop
= staticmethod(Stop
)
2167 def __nonzero__(self
): return self
.IsOk()
2169 class SoundPtr(Sound
):
2170 def __init__(self
, this
):
2172 if not hasattr(self
,"thisown"): self
.thisown
= 0
2173 self
.__class
__ = Sound
2174 _misc_
.Sound_swigregister(SoundPtr
)
2176 def SoundFromData(*args
, **kwargs
):
2177 """SoundFromData(PyObject data) -> Sound"""
2178 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2182 def Sound_PlaySound(*args
, **kwargs
):
2183 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2184 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2186 def Sound_Stop(*args
, **kwargs
):
2188 return _misc_
.Sound_Stop(*args
, **kwargs
)
2190 #---------------------------------------------------------------------------
2192 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2193 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2194 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2195 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2196 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2197 class FileTypeInfo(object):
2198 """Proxy of C++ FileTypeInfo class"""
2200 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2201 def __init__(self
, *args
, **kwargs
):
2202 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2203 newobj
= _misc_
.new_FileTypeInfo(*args
, **kwargs
)
2204 self
.this
= newobj
.this
2207 def IsValid(*args
, **kwargs
):
2208 """IsValid(self) -> bool"""
2209 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2211 def SetIcon(*args
, **kwargs
):
2212 """SetIcon(self, String iconFile, int iconIndex=0)"""
2213 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2215 def SetShortDesc(*args
, **kwargs
):
2216 """SetShortDesc(self, String shortDesc)"""
2217 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2219 def GetMimeType(*args
, **kwargs
):
2220 """GetMimeType(self) -> String"""
2221 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2223 def GetOpenCommand(*args
, **kwargs
):
2224 """GetOpenCommand(self) -> String"""
2225 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2227 def GetPrintCommand(*args
, **kwargs
):
2228 """GetPrintCommand(self) -> String"""
2229 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2231 def GetShortDesc(*args
, **kwargs
):
2232 """GetShortDesc(self) -> String"""
2233 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2235 def GetDescription(*args
, **kwargs
):
2236 """GetDescription(self) -> String"""
2237 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2239 def GetExtensions(*args
, **kwargs
):
2240 """GetExtensions(self) -> wxArrayString"""
2241 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2243 def GetExtensionsCount(*args
, **kwargs
):
2244 """GetExtensionsCount(self) -> int"""
2245 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2247 def GetIconFile(*args
, **kwargs
):
2248 """GetIconFile(self) -> String"""
2249 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2251 def GetIconIndex(*args
, **kwargs
):
2252 """GetIconIndex(self) -> int"""
2253 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2256 class FileTypeInfoPtr(FileTypeInfo
):
2257 def __init__(self
, this
):
2259 if not hasattr(self
,"thisown"): self
.thisown
= 0
2260 self
.__class
__ = FileTypeInfo
2261 _misc_
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2263 def FileTypeInfoSequence(*args
, **kwargs
):
2264 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2265 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2269 def NullFileTypeInfo(*args
, **kwargs
):
2270 """NullFileTypeInfo() -> FileTypeInfo"""
2271 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2275 class FileType(object):
2276 """Proxy of C++ FileType class"""
2278 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2279 def __init__(self
, *args
, **kwargs
):
2280 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2281 newobj
= _misc_
.new_FileType(*args
, **kwargs
)
2282 self
.this
= newobj
.this
2285 def __del__(self
, destroy
=_misc_
.delete_FileType
):
2288 if self
.thisown
: destroy(self
)
2291 def GetMimeType(*args
, **kwargs
):
2292 """GetMimeType(self) -> PyObject"""
2293 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2295 def GetMimeTypes(*args
, **kwargs
):
2296 """GetMimeTypes(self) -> PyObject"""
2297 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2299 def GetExtensions(*args
, **kwargs
):
2300 """GetExtensions(self) -> PyObject"""
2301 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2303 def GetIcon(*args
, **kwargs
):
2304 """GetIcon(self) -> Icon"""
2305 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2307 def GetIconInfo(*args
, **kwargs
):
2308 """GetIconInfo(self) -> PyObject"""
2309 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2311 def GetDescription(*args
, **kwargs
):
2312 """GetDescription(self) -> PyObject"""
2313 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2315 def GetOpenCommand(*args
, **kwargs
):
2316 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2317 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2319 def GetPrintCommand(*args
, **kwargs
):
2320 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2321 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2323 def GetAllCommands(*args
, **kwargs
):
2324 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2325 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2327 def SetCommand(*args
, **kwargs
):
2328 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2329 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2331 def SetDefaultIcon(*args
, **kwargs
):
2332 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2333 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2335 def Unassociate(*args
, **kwargs
):
2336 """Unassociate(self) -> bool"""
2337 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2339 def ExpandCommand(*args
, **kwargs
):
2340 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2341 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2343 ExpandCommand
= staticmethod(ExpandCommand
)
2345 class FileTypePtr(FileType
):
2346 def __init__(self
, this
):
2348 if not hasattr(self
,"thisown"): self
.thisown
= 0
2349 self
.__class
__ = FileType
2350 _misc_
.FileType_swigregister(FileTypePtr
)
2352 def FileType_ExpandCommand(*args
, **kwargs
):
2353 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2354 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2356 class MimeTypesManager(object):
2357 """Proxy of C++ MimeTypesManager class"""
2359 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2360 def IsOfType(*args
, **kwargs
):
2361 """IsOfType(String mimeType, String wildcard) -> bool"""
2362 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2364 IsOfType
= staticmethod(IsOfType
)
2365 def __init__(self
, *args
, **kwargs
):
2366 """__init__(self) -> MimeTypesManager"""
2367 newobj
= _misc_
.new_MimeTypesManager(*args
, **kwargs
)
2368 self
.this
= newobj
.this
2371 def Initialize(*args
, **kwargs
):
2372 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2373 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2375 def ClearData(*args
, **kwargs
):
2376 """ClearData(self)"""
2377 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2379 def GetFileTypeFromExtension(*args
, **kwargs
):
2380 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2381 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2383 def GetFileTypeFromMimeType(*args
, **kwargs
):
2384 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2385 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2387 def ReadMailcap(*args
, **kwargs
):
2388 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2389 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2391 def ReadMimeTypes(*args
, **kwargs
):
2392 """ReadMimeTypes(self, String filename) -> bool"""
2393 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2395 def EnumAllFileTypes(*args
, **kwargs
):
2396 """EnumAllFileTypes(self) -> PyObject"""
2397 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2399 def AddFallback(*args
, **kwargs
):
2400 """AddFallback(self, FileTypeInfo ft)"""
2401 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2403 def Associate(*args
, **kwargs
):
2404 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2405 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2407 def Unassociate(*args
, **kwargs
):
2408 """Unassociate(self, FileType ft) -> bool"""
2409 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2411 def __del__(self
, destroy
=_misc_
.delete_MimeTypesManager
):
2414 if self
.thisown
: destroy(self
)
2418 class MimeTypesManagerPtr(MimeTypesManager
):
2419 def __init__(self
, this
):
2421 if not hasattr(self
,"thisown"): self
.thisown
= 0
2422 self
.__class
__ = MimeTypesManager
2423 _misc_
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2424 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2426 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2427 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2428 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2430 #---------------------------------------------------------------------------
2432 class ArtProvider(object):
2434 The wx.ArtProvider class is used to customize the look of wxWidgets
2435 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2436 in the standard file dialog), it does not use hard-coded resource but
2437 asks wx.ArtProvider for it instead. This way the users can plug in
2438 their own wx.ArtProvider class and easily replace standard art with
2439 his/her own version. It is easy thing to do: all that is needed is
2440 to derive a class from wx.ArtProvider, override it's CreateBitmap
2441 method and register the provider with wx.ArtProvider.PushProvider::
2443 class MyArtProvider(wx.ArtProvider):
2445 wx.ArtProvider.__init__(self)
2447 def CreateBitmap(self, artid, client, size):
2453 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2454 def __init__(self
, *args
, **kwargs
):
2456 __init__(self) -> ArtProvider
2458 The wx.ArtProvider class is used to customize the look of wxWidgets
2459 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2460 in the standard file dialog), it does not use hard-coded resource but
2461 asks wx.ArtProvider for it instead. This way the users can plug in
2462 their own wx.ArtProvider class and easily replace standard art with
2463 his/her own version. It is easy thing to do: all that is needed is
2464 to derive a class from wx.ArtProvider, override it's CreateBitmap
2465 method and register the provider with wx.ArtProvider.PushProvider::
2467 class MyArtProvider(wx.ArtProvider):
2469 wx.ArtProvider.__init__(self)
2471 def CreateBitmap(self, artid, client, size):
2476 newobj
= _misc_
.new_ArtProvider(*args
, **kwargs
)
2477 self
.this
= newobj
.this
2480 self
._setCallbackInfo
(self
, ArtProvider
)
2482 def _setCallbackInfo(*args
, **kwargs
):
2483 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2484 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2486 def PushProvider(*args
, **kwargs
):
2488 PushProvider(ArtProvider provider)
2490 Add new provider to the top of providers stack.
2492 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2494 PushProvider
= staticmethod(PushProvider
)
2495 def PopProvider(*args
, **kwargs
):
2497 PopProvider() -> bool
2499 Remove latest added provider and delete it.
2501 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2503 PopProvider
= staticmethod(PopProvider
)
2504 def RemoveProvider(*args
, **kwargs
):
2506 RemoveProvider(ArtProvider provider) -> bool
2508 Remove provider. The provider must have been added previously! The
2509 provider is _not_ deleted.
2511 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2513 RemoveProvider
= staticmethod(RemoveProvider
)
2514 def GetBitmap(*args
, **kwargs
):
2516 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2518 Query the providers for bitmap with given ID and return it. Return
2519 wx.NullBitmap if no provider provides it.
2521 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2523 GetBitmap
= staticmethod(GetBitmap
)
2524 def GetIcon(*args
, **kwargs
):
2526 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2528 Query the providers for icon with given ID and return it. Return
2529 wx.NullIcon if no provider provides it.
2531 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2533 GetIcon
= staticmethod(GetIcon
)
2534 def Destroy(*args
, **kwargs
):
2536 return _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2539 class ArtProviderPtr(ArtProvider
):
2540 def __init__(self
, this
):
2542 if not hasattr(self
,"thisown"): self
.thisown
= 0
2543 self
.__class
__ = ArtProvider
2544 _misc_
.ArtProvider_swigregister(ArtProviderPtr
)
2545 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2546 ART_MENU
= cvar
.ART_MENU
2547 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2548 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2549 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2550 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2551 ART_BUTTON
= cvar
.ART_BUTTON
2552 ART_OTHER
= cvar
.ART_OTHER
2553 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2554 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2555 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2556 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2557 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2558 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2559 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2560 ART_GO_BACK
= cvar
.ART_GO_BACK
2561 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2562 ART_GO_UP
= cvar
.ART_GO_UP
2563 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2564 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2565 ART_GO_HOME
= cvar
.ART_GO_HOME
2566 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2567 ART_PRINT
= cvar
.ART_PRINT
2568 ART_HELP
= cvar
.ART_HELP
2569 ART_TIP
= cvar
.ART_TIP
2570 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2571 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2572 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2573 ART_HARDDISK
= cvar
.ART_HARDDISK
2574 ART_FLOPPY
= cvar
.ART_FLOPPY
2575 ART_CDROM
= cvar
.ART_CDROM
2576 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2577 ART_FOLDER
= cvar
.ART_FOLDER
2578 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2579 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2580 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2581 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2582 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2583 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2584 ART_ERROR
= cvar
.ART_ERROR
2585 ART_QUESTION
= cvar
.ART_QUESTION
2586 ART_WARNING
= cvar
.ART_WARNING
2587 ART_INFORMATION
= cvar
.ART_INFORMATION
2588 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2590 def ArtProvider_PushProvider(*args
, **kwargs
):
2592 ArtProvider_PushProvider(ArtProvider provider)
2594 Add new provider to the top of providers stack.
2596 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2598 def ArtProvider_PopProvider(*args
, **kwargs
):
2600 ArtProvider_PopProvider() -> bool
2602 Remove latest added provider and delete it.
2604 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2606 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2608 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2610 Remove provider. The provider must have been added previously! The
2611 provider is _not_ deleted.
2613 return _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2615 def ArtProvider_GetBitmap(*args
, **kwargs
):
2617 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2619 Query the providers for bitmap with given ID and return it. Return
2620 wx.NullBitmap if no provider provides it.
2622 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2624 def ArtProvider_GetIcon(*args
, **kwargs
):
2626 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2628 Query the providers for icon with given ID and return it. Return
2629 wx.NullIcon if no provider provides it.
2631 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2633 #---------------------------------------------------------------------------
2635 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2636 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2637 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2638 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2639 class ConfigBase(object):
2641 wx.ConfigBase class defines the basic interface of all config
2642 classes. It can not be used by itself (it is an abstract base class)
2643 and you will always use one of its derivations: wx.Config or
2646 wx.ConfigBase organizes the items in a tree-like structure, modeled
2647 after the Unix/Dos filesystem. There are groups that act like
2648 directories and entries, key/value pairs that act like files. There
2649 is always one current group given by the current path. As in the file
2650 system case, to specify a key in the config class you must use a path
2651 to it. Config classes also support the notion of the current group,
2652 which makes it possible to use relative paths.
2654 Keys are pairs "key_name = value" where value may be of string,
2655 integer floating point or boolean, you can not store binary data
2656 without first encoding it as a string. For performance reasons items
2657 should be kept small, no more than a couple kilobytes.
2660 def __init__(self
): raise RuntimeError, "No constructor defined"
2662 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2663 def __del__(self
, destroy
=_misc_
.delete_ConfigBase
):
2666 if self
.thisown
: destroy(self
)
2669 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2670 Type_String
= _misc_
.ConfigBase_Type_String
2671 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2672 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2673 Type_Float
= _misc_
.ConfigBase_Type_Float
2674 def Set(*args
, **kwargs
):
2676 Set(ConfigBase config) -> ConfigBase
2678 Sets the global config object (the one returned by Get) and returns a
2679 reference to the previous global config object.
2681 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2683 Set
= staticmethod(Set
)
2684 def Get(*args
, **kwargs
):
2686 Get(bool createOnDemand=True) -> ConfigBase
2688 Returns the current global config object, creating one if neccessary.
2690 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2692 Get
= staticmethod(Get
)
2693 def Create(*args
, **kwargs
):
2695 Create() -> ConfigBase
2697 Create and return a new global config object. This function will
2698 create the "best" implementation of wx.Config available for the
2701 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2703 Create
= staticmethod(Create
)
2704 def DontCreateOnDemand(*args
, **kwargs
):
2706 DontCreateOnDemand()
2708 Should Get() try to create a new log object if there isn't a current
2711 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2713 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2714 def SetPath(*args
, **kwargs
):
2716 SetPath(self, String path)
2718 Set current path: if the first character is '/', it's the absolute
2719 path, otherwise it's a relative path. '..' is supported. If the
2720 strPath doesn't exist it is created.
2722 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2724 def GetPath(*args
, **kwargs
):
2726 GetPath(self) -> String
2728 Retrieve the current path (always as absolute path)
2730 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2732 def GetFirstGroup(*args
, **kwargs
):
2734 GetFirstGroup() -> (more, value, index)
2736 Allows enumerating the subgroups in a config object. Returns a tuple
2737 containing a flag indicating there are more items, the name of the
2738 current item, and an index to pass to GetNextGroup to fetch the next
2741 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2743 def GetNextGroup(*args
, **kwargs
):
2745 GetNextGroup(long index) -> (more, value, index)
2747 Allows enumerating the subgroups in a config object. Returns a tuple
2748 containing a flag indicating there are more items, the name of the
2749 current item, and an index to pass to GetNextGroup to fetch the next
2752 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2754 def GetFirstEntry(*args
, **kwargs
):
2756 GetFirstEntry() -> (more, value, index)
2758 Allows enumerating the entries in the current group in a config
2759 object. Returns a tuple containing a flag indicating there are more
2760 items, the name of the current item, and an index to pass to
2761 GetNextGroup to fetch the next item.
2763 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2765 def GetNextEntry(*args
, **kwargs
):
2767 GetNextEntry(long index) -> (more, value, index)
2769 Allows enumerating the entries in the current group in a config
2770 object. Returns a tuple containing a flag indicating there are more
2771 items, the name of the current item, and an index to pass to
2772 GetNextGroup to fetch the next item.
2774 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2776 def GetNumberOfEntries(*args
, **kwargs
):
2778 GetNumberOfEntries(self, bool recursive=False) -> size_t
2780 Get the number of entries in the current group, with or without its
2783 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2785 def GetNumberOfGroups(*args
, **kwargs
):
2787 GetNumberOfGroups(self, bool recursive=False) -> size_t
2789 Get the number of subgroups in the current group, with or without its
2792 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2794 def HasGroup(*args
, **kwargs
):
2796 HasGroup(self, String name) -> bool
2798 Returns True if the group by this name exists
2800 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
2802 def HasEntry(*args
, **kwargs
):
2804 HasEntry(self, String name) -> bool
2806 Returns True if the entry by this name exists
2808 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
2810 def Exists(*args
, **kwargs
):
2812 Exists(self, String name) -> bool
2814 Returns True if either a group or an entry with a given name exists
2816 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
2818 def GetEntryType(*args
, **kwargs
):
2820 GetEntryType(self, String name) -> int
2822 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
2824 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
2826 def Read(*args
, **kwargs
):
2828 Read(self, String key, String defaultVal=EmptyString) -> String
2830 Returns the value of key if it exists, defaultVal otherwise.
2832 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
2834 def ReadInt(*args
, **kwargs
):
2836 ReadInt(self, String key, long defaultVal=0) -> long
2838 Returns the value of key if it exists, defaultVal otherwise.
2840 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
2842 def ReadFloat(*args
, **kwargs
):
2844 ReadFloat(self, String key, double defaultVal=0.0) -> double
2846 Returns the value of key if it exists, defaultVal otherwise.
2848 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
2850 def ReadBool(*args
, **kwargs
):
2852 ReadBool(self, String key, bool defaultVal=False) -> bool
2854 Returns the value of key if it exists, defaultVal otherwise.
2856 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
2858 def Write(*args
, **kwargs
):
2860 Write(self, String key, String value) -> bool
2862 write the value (return True on success)
2864 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
2866 def WriteInt(*args
, **kwargs
):
2868 WriteInt(self, String key, long value) -> bool
2870 write the value (return True on success)
2872 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
2874 def WriteFloat(*args
, **kwargs
):
2876 WriteFloat(self, String key, double value) -> bool
2878 write the value (return True on success)
2880 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
2882 def WriteBool(*args
, **kwargs
):
2884 WriteBool(self, String key, bool value) -> bool
2886 write the value (return True on success)
2888 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
2890 def Flush(*args
, **kwargs
):
2892 Flush(self, bool currentOnly=False) -> bool
2894 permanently writes all changes
2896 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
2898 def RenameEntry(*args
, **kwargs
):
2900 RenameEntry(self, String oldName, String newName) -> bool
2902 Rename an entry. Returns False on failure (probably because the new
2903 name is already taken by an existing entry)
2905 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
2907 def RenameGroup(*args
, **kwargs
):
2909 RenameGroup(self, String oldName, String newName) -> bool
2911 Rename a group. Returns False on failure (probably because the new
2912 name is already taken by an existing entry)
2914 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
2916 def DeleteEntry(*args
, **kwargs
):
2918 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
2920 Deletes the specified entry and the group it belongs to if it was the
2921 last key in it and the second parameter is True
2923 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2925 def DeleteGroup(*args
, **kwargs
):
2927 DeleteGroup(self, String key) -> bool
2929 Delete the group (with all subgroups)
2931 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2933 def DeleteAll(*args
, **kwargs
):
2935 DeleteAll(self) -> bool
2937 Delete the whole underlying object (disk file, registry key, ...)
2938 primarly intended for use by deinstallation routine.
2940 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
2942 def SetExpandEnvVars(*args
, **kwargs
):
2944 SetExpandEnvVars(self, bool doIt=True)
2946 We can automatically expand environment variables in the config
2947 entries this option is on by default, you can turn it on/off at any
2950 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2952 def IsExpandingEnvVars(*args
, **kwargs
):
2954 IsExpandingEnvVars(self) -> bool
2956 Are we currently expanding environment variables?
2958 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2960 def SetRecordDefaults(*args
, **kwargs
):
2962 SetRecordDefaults(self, bool doIt=True)
2964 Set whether the config objec should record default values.
2966 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2968 def IsRecordingDefaults(*args
, **kwargs
):
2970 IsRecordingDefaults(self) -> bool
2972 Are we currently recording default values?
2974 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2976 def ExpandEnvVars(*args
, **kwargs
):
2978 ExpandEnvVars(self, String str) -> String
2980 Expand any environment variables in str and return the result
2982 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2984 def GetAppName(*args
, **kwargs
):
2985 """GetAppName(self) -> String"""
2986 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
2988 def GetVendorName(*args
, **kwargs
):
2989 """GetVendorName(self) -> String"""
2990 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
2992 def SetAppName(*args
, **kwargs
):
2993 """SetAppName(self, String appName)"""
2994 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
2996 def SetVendorName(*args
, **kwargs
):
2997 """SetVendorName(self, String vendorName)"""
2998 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3000 def SetStyle(*args
, **kwargs
):
3001 """SetStyle(self, long style)"""
3002 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3004 def GetStyle(*args
, **kwargs
):
3005 """GetStyle(self) -> long"""
3006 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3009 class ConfigBasePtr(ConfigBase
):
3010 def __init__(self
, this
):
3012 if not hasattr(self
,"thisown"): self
.thisown
= 0
3013 self
.__class
__ = ConfigBase
3014 _misc_
.ConfigBase_swigregister(ConfigBasePtr
)
3016 def ConfigBase_Set(*args
, **kwargs
):
3018 ConfigBase_Set(ConfigBase config) -> ConfigBase
3020 Sets the global config object (the one returned by Get) and returns a
3021 reference to the previous global config object.
3023 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3025 def ConfigBase_Get(*args
, **kwargs
):
3027 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3029 Returns the current global config object, creating one if neccessary.
3031 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3033 def ConfigBase_Create(*args
, **kwargs
):
3035 ConfigBase_Create() -> ConfigBase
3037 Create and return a new global config object. This function will
3038 create the "best" implementation of wx.Config available for the
3041 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
3043 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
3045 ConfigBase_DontCreateOnDemand()
3047 Should Get() try to create a new log object if there isn't a current
3050 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
3052 class Config(ConfigBase
):
3054 This ConfigBase-derived class will use the registry on Windows,
3055 and will be a wx.FileConfig on other platforms.
3058 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3059 def __init__(self
, *args
, **kwargs
):
3061 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3062 String localFilename=EmptyString, String globalFilename=EmptyString,
3063 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3065 newobj
= _misc_
.new_Config(*args
, **kwargs
)
3066 self
.this
= newobj
.this
3069 def __del__(self
, destroy
=_misc_
.delete_Config
):
3072 if self
.thisown
: destroy(self
)
3076 class ConfigPtr(Config
):
3077 def __init__(self
, this
):
3079 if not hasattr(self
,"thisown"): self
.thisown
= 0
3080 self
.__class
__ = Config
3081 _misc_
.Config_swigregister(ConfigPtr
)
3083 class FileConfig(ConfigBase
):
3084 """This config class will use a file for storage on all platforms."""
3086 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3087 def __init__(self
, *args
, **kwargs
):
3089 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3090 String localFilename=EmptyString, String globalFilename=EmptyString,
3091 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3093 newobj
= _misc_
.new_FileConfig(*args
, **kwargs
)
3094 self
.this
= newobj
.this
3097 def __del__(self
, destroy
=_misc_
.delete_FileConfig
):
3100 if self
.thisown
: destroy(self
)
3104 class FileConfigPtr(FileConfig
):
3105 def __init__(self
, this
):
3107 if not hasattr(self
,"thisown"): self
.thisown
= 0
3108 self
.__class
__ = FileConfig
3109 _misc_
.FileConfig_swigregister(FileConfigPtr
)
3111 class ConfigPathChanger(object):
3113 A handy little class which changes current path to the path of given
3114 entry and restores it in the destructoir: so if you declare a local
3115 variable of this type, you work in the entry directory and the path is
3116 automatically restored when the function returns.
3119 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3120 def __init__(self
, *args
, **kwargs
):
3121 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3122 newobj
= _misc_
.new_ConfigPathChanger(*args
, **kwargs
)
3123 self
.this
= newobj
.this
3126 def __del__(self
, destroy
=_misc_
.delete_ConfigPathChanger
):
3129 if self
.thisown
: destroy(self
)
3132 def Name(*args
, **kwargs
):
3134 Name(self) -> String
3138 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3141 class ConfigPathChangerPtr(ConfigPathChanger
):
3142 def __init__(self
, this
):
3144 if not hasattr(self
,"thisown"): self
.thisown
= 0
3145 self
.__class
__ = ConfigPathChanger
3146 _misc_
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
3149 def ExpandEnvVars(*args
, **kwargs
):
3151 ExpandEnvVars(String sz) -> String
3153 Replace environment variables ($SOMETHING) with their values. The
3154 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3155 characters and '_' only. '$' must be escaped ('\$') in order to be
3158 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3159 #---------------------------------------------------------------------------
3161 class DateTime(object):
3162 """Proxy of C++ DateTime class"""
3164 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3165 Local
= _misc_
.DateTime_Local
3166 GMT_12
= _misc_
.DateTime_GMT_12
3167 GMT_11
= _misc_
.DateTime_GMT_11
3168 GMT_10
= _misc_
.DateTime_GMT_10
3169 GMT_9
= _misc_
.DateTime_GMT_9
3170 GMT_8
= _misc_
.DateTime_GMT_8
3171 GMT_7
= _misc_
.DateTime_GMT_7
3172 GMT_6
= _misc_
.DateTime_GMT_6
3173 GMT_5
= _misc_
.DateTime_GMT_5
3174 GMT_4
= _misc_
.DateTime_GMT_4
3175 GMT_3
= _misc_
.DateTime_GMT_3
3176 GMT_2
= _misc_
.DateTime_GMT_2
3177 GMT_1
= _misc_
.DateTime_GMT_1
3178 GMT0
= _misc_
.DateTime_GMT0
3179 GMT1
= _misc_
.DateTime_GMT1
3180 GMT2
= _misc_
.DateTime_GMT2
3181 GMT3
= _misc_
.DateTime_GMT3
3182 GMT4
= _misc_
.DateTime_GMT4
3183 GMT5
= _misc_
.DateTime_GMT5
3184 GMT6
= _misc_
.DateTime_GMT6
3185 GMT7
= _misc_
.DateTime_GMT7
3186 GMT8
= _misc_
.DateTime_GMT8
3187 GMT9
= _misc_
.DateTime_GMT9
3188 GMT10
= _misc_
.DateTime_GMT10
3189 GMT11
= _misc_
.DateTime_GMT11
3190 GMT12
= _misc_
.DateTime_GMT12
3191 WET
= _misc_
.DateTime_WET
3192 WEST
= _misc_
.DateTime_WEST
3193 CET
= _misc_
.DateTime_CET
3194 CEST
= _misc_
.DateTime_CEST
3195 EET
= _misc_
.DateTime_EET
3196 EEST
= _misc_
.DateTime_EEST
3197 MSK
= _misc_
.DateTime_MSK
3198 MSD
= _misc_
.DateTime_MSD
3199 AST
= _misc_
.DateTime_AST
3200 ADT
= _misc_
.DateTime_ADT
3201 EST
= _misc_
.DateTime_EST
3202 EDT
= _misc_
.DateTime_EDT
3203 CST
= _misc_
.DateTime_CST
3204 CDT
= _misc_
.DateTime_CDT
3205 MST
= _misc_
.DateTime_MST
3206 MDT
= _misc_
.DateTime_MDT
3207 PST
= _misc_
.DateTime_PST
3208 PDT
= _misc_
.DateTime_PDT
3209 HST
= _misc_
.DateTime_HST
3210 AKST
= _misc_
.DateTime_AKST
3211 AKDT
= _misc_
.DateTime_AKDT
3212 A_WST
= _misc_
.DateTime_A_WST
3213 A_CST
= _misc_
.DateTime_A_CST
3214 A_EST
= _misc_
.DateTime_A_EST
3215 A_ESST
= _misc_
.DateTime_A_ESST
3216 UTC
= _misc_
.DateTime_UTC
3217 Gregorian
= _misc_
.DateTime_Gregorian
3218 Julian
= _misc_
.DateTime_Julian
3219 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3220 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3221 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3222 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3223 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3224 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3225 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3226 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3227 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3228 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3229 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3230 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3231 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3232 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3233 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3234 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3235 Gr_China
= _misc_
.DateTime_Gr_China
3236 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3237 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3238 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3239 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3240 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3241 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3242 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3243 Gr_France
= _misc_
.DateTime_Gr_France
3244 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3245 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3246 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3247 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3248 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3249 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3250 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3251 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3252 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3253 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3254 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3255 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3256 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3257 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3258 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3259 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3260 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3261 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3262 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3263 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3264 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3265 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3266 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3267 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3268 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3269 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3270 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3271 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3272 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3273 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3274 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3275 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3276 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3277 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3278 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3279 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3280 Gr_USA
= _misc_
.DateTime_Gr_USA
3281 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3282 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3283 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3284 Country_Default
= _misc_
.DateTime_Country_Default
3285 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3286 Country_EEC
= _misc_
.DateTime_Country_EEC
3287 France
= _misc_
.DateTime_France
3288 Germany
= _misc_
.DateTime_Germany
3289 UK
= _misc_
.DateTime_UK
3290 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3291 Russia
= _misc_
.DateTime_Russia
3292 USA
= _misc_
.DateTime_USA
3293 Jan
= _misc_
.DateTime_Jan
3294 Feb
= _misc_
.DateTime_Feb
3295 Mar
= _misc_
.DateTime_Mar
3296 Apr
= _misc_
.DateTime_Apr
3297 May
= _misc_
.DateTime_May
3298 Jun
= _misc_
.DateTime_Jun
3299 Jul
= _misc_
.DateTime_Jul
3300 Aug
= _misc_
.DateTime_Aug
3301 Sep
= _misc_
.DateTime_Sep
3302 Oct
= _misc_
.DateTime_Oct
3303 Nov
= _misc_
.DateTime_Nov
3304 Dec
= _misc_
.DateTime_Dec
3305 Inv_Month
= _misc_
.DateTime_Inv_Month
3306 Sun
= _misc_
.DateTime_Sun
3307 Mon
= _misc_
.DateTime_Mon
3308 Tue
= _misc_
.DateTime_Tue
3309 Wed
= _misc_
.DateTime_Wed
3310 Thu
= _misc_
.DateTime_Thu
3311 Fri
= _misc_
.DateTime_Fri
3312 Sat
= _misc_
.DateTime_Sat
3313 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3314 Inv_Year
= _misc_
.DateTime_Inv_Year
3315 Name_Full
= _misc_
.DateTime_Name_Full
3316 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3317 Default_First
= _misc_
.DateTime_Default_First
3318 Monday_First
= _misc_
.DateTime_Monday_First
3319 Sunday_First
= _misc_
.DateTime_Sunday_First
3320 def SetCountry(*args
, **kwargs
):
3321 """SetCountry(int country)"""
3322 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3324 SetCountry
= staticmethod(SetCountry
)
3325 def GetCountry(*args
, **kwargs
):
3326 """GetCountry() -> int"""
3327 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3329 GetCountry
= staticmethod(GetCountry
)
3330 def IsWestEuropeanCountry(*args
, **kwargs
):
3331 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3332 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3334 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3335 def GetCurrentYear(*args
, **kwargs
):
3336 """GetCurrentYear(int cal=Gregorian) -> int"""
3337 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3339 GetCurrentYear
= staticmethod(GetCurrentYear
)
3340 def ConvertYearToBC(*args
, **kwargs
):
3341 """ConvertYearToBC(int year) -> int"""
3342 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3344 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3345 def GetCurrentMonth(*args
, **kwargs
):
3346 """GetCurrentMonth(int cal=Gregorian) -> int"""
3347 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3349 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3350 def IsLeapYear(*args
, **kwargs
):
3351 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3352 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3354 IsLeapYear
= staticmethod(IsLeapYear
)
3355 def GetCentury(*args
, **kwargs
):
3356 """GetCentury(int year=Inv_Year) -> int"""
3357 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3359 GetCentury
= staticmethod(GetCentury
)
3360 def GetNumberOfDaysinYear(*args
, **kwargs
):
3361 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3362 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3364 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3365 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3366 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3367 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3369 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3370 def GetMonthName(*args
, **kwargs
):
3371 """GetMonthName(int month, int flags=Name_Full) -> String"""
3372 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3374 GetMonthName
= staticmethod(GetMonthName
)
3375 def GetWeekDayName(*args
, **kwargs
):
3376 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3377 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3379 GetWeekDayName
= staticmethod(GetWeekDayName
)
3380 def GetAmPmStrings(*args
, **kwargs
):
3382 GetAmPmStrings() -> (am, pm)
3384 Get the AM and PM strings in the current locale (may be empty)
3386 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3388 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3389 def IsDSTApplicable(*args
, **kwargs
):
3390 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3391 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3393 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3394 def GetBeginDST(*args
, **kwargs
):
3395 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3396 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3398 GetBeginDST
= staticmethod(GetBeginDST
)
3399 def GetEndDST(*args
, **kwargs
):
3400 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3401 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3403 GetEndDST
= staticmethod(GetEndDST
)
3404 def Now(*args
, **kwargs
):
3405 """Now() -> DateTime"""
3406 return _misc_
.DateTime_Now(*args
, **kwargs
)
3408 Now
= staticmethod(Now
)
3409 def UNow(*args
, **kwargs
):
3410 """UNow() -> DateTime"""
3411 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3413 UNow
= staticmethod(UNow
)
3414 def Today(*args
, **kwargs
):
3415 """Today() -> DateTime"""
3416 return _misc_
.DateTime_Today(*args
, **kwargs
)
3418 Today
= staticmethod(Today
)
3419 def __init__(self
, *args
, **kwargs
):
3420 """__init__(self) -> DateTime"""
3421 newobj
= _misc_
.new_DateTime(*args
, **kwargs
)
3422 self
.this
= newobj
.this
3425 def __del__(self
, destroy
=_misc_
.delete_DateTime
):
3428 if self
.thisown
: destroy(self
)
3431 def SetToCurrent(*args
, **kwargs
):
3432 """SetToCurrent(self) -> DateTime"""
3433 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3435 def SetTimeT(*args
, **kwargs
):
3436 """SetTimeT(self, time_t timet) -> DateTime"""
3437 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3439 def SetJDN(*args
, **kwargs
):
3440 """SetJDN(self, double jdn) -> DateTime"""
3441 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3443 def SetHMS(*args
, **kwargs
):
3444 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3445 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3447 def Set(*args
, **kwargs
):
3449 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3450 int minute=0, int second=0, int millisec=0) -> DateTime
3452 return _misc_
.DateTime_Set(*args
, **kwargs
)
3454 def ResetTime(*args
, **kwargs
):
3455 """ResetTime(self) -> DateTime"""
3456 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3458 def SetYear(*args
, **kwargs
):
3459 """SetYear(self, int year) -> DateTime"""
3460 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3462 def SetMonth(*args
, **kwargs
):
3463 """SetMonth(self, int month) -> DateTime"""
3464 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3466 def SetDay(*args
, **kwargs
):
3467 """SetDay(self, int day) -> DateTime"""
3468 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3470 def SetHour(*args
, **kwargs
):
3471 """SetHour(self, int hour) -> DateTime"""
3472 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3474 def SetMinute(*args
, **kwargs
):
3475 """SetMinute(self, int minute) -> DateTime"""
3476 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3478 def SetSecond(*args
, **kwargs
):
3479 """SetSecond(self, int second) -> DateTime"""
3480 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3482 def SetMillisecond(*args
, **kwargs
):
3483 """SetMillisecond(self, int millisecond) -> DateTime"""
3484 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3486 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3487 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3488 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3490 def GetWeekDayInSameWeek(*args
, **kwargs
):
3491 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3492 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3494 def SetToNextWeekDay(*args
, **kwargs
):
3495 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3496 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3498 def GetNextWeekDay(*args
, **kwargs
):
3499 """GetNextWeekDay(self, int weekday) -> DateTime"""
3500 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3502 def SetToPrevWeekDay(*args
, **kwargs
):
3503 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3504 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3506 def GetPrevWeekDay(*args
, **kwargs
):
3507 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3508 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3510 def SetToWeekDay(*args
, **kwargs
):
3511 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3512 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3514 def SetToLastWeekDay(*args
, **kwargs
):
3515 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3516 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3518 def GetLastWeekDay(*args
, **kwargs
):
3519 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3520 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3522 def SetToTheWeek(*args
, **kwargs
):
3523 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3524 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3526 def GetWeek(*args
, **kwargs
):
3527 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3528 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3530 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3531 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3533 def SetToWeekOfYear(*args
, **kwargs
):
3534 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3535 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3537 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3538 def SetToLastMonthDay(*args
, **kwargs
):
3539 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3540 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3542 def GetLastMonthDay(*args
, **kwargs
):
3543 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3544 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3546 def SetToYearDay(*args
, **kwargs
):
3547 """SetToYearDay(self, int yday) -> DateTime"""
3548 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3550 def GetYearDay(*args
, **kwargs
):
3551 """GetYearDay(self, int yday) -> DateTime"""
3552 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3554 def GetJulianDayNumber(*args
, **kwargs
):
3555 """GetJulianDayNumber(self) -> double"""
3556 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3558 def GetJDN(*args
, **kwargs
):
3559 """GetJDN(self) -> double"""
3560 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3562 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3563 """GetModifiedJulianDayNumber(self) -> double"""
3564 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3566 def GetMJD(*args
, **kwargs
):
3567 """GetMJD(self) -> double"""
3568 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3570 def GetRataDie(*args
, **kwargs
):
3571 """GetRataDie(self) -> double"""
3572 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3574 def ToTimezone(*args
, **kwargs
):
3575 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3576 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3578 def MakeTimezone(*args
, **kwargs
):
3579 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3580 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3582 def ToGMT(*args
, **kwargs
):
3583 """ToGMT(self, bool noDST=False) -> DateTime"""
3584 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3586 def MakeGMT(*args
, **kwargs
):
3587 """MakeGMT(self, bool noDST=False) -> DateTime"""
3588 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3590 def IsDST(*args
, **kwargs
):
3591 """IsDST(self, int country=Country_Default) -> int"""
3592 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3594 def IsValid(*args
, **kwargs
):
3595 """IsValid(self) -> bool"""
3596 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3599 def __nonzero__(self
): return self
.Ok()
3600 def GetTicks(*args
, **kwargs
):
3601 """GetTicks(self) -> time_t"""
3602 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3604 def GetYear(*args
, **kwargs
):
3605 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3606 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3608 def GetMonth(*args
, **kwargs
):
3609 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3610 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3612 def GetDay(*args
, **kwargs
):
3613 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3614 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3616 def GetWeekDay(*args
, **kwargs
):
3617 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3618 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3620 def GetHour(*args
, **kwargs
):
3621 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3622 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3624 def GetMinute(*args
, **kwargs
):
3625 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3626 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3628 def GetSecond(*args
, **kwargs
):
3629 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3630 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3632 def GetMillisecond(*args
, **kwargs
):
3633 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3634 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3636 def GetDayOfYear(*args
, **kwargs
):
3637 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3638 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3640 def GetWeekOfYear(*args
, **kwargs
):
3641 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3642 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3644 def GetWeekOfMonth(*args
, **kwargs
):
3645 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3646 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3648 def IsWorkDay(*args
, **kwargs
):
3649 """IsWorkDay(self, int country=Country_Default) -> bool"""
3650 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3652 def IsEqualTo(*args
, **kwargs
):
3653 """IsEqualTo(self, DateTime datetime) -> bool"""
3654 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3656 def IsEarlierThan(*args
, **kwargs
):
3657 """IsEarlierThan(self, DateTime datetime) -> bool"""
3658 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3660 def IsLaterThan(*args
, **kwargs
):
3661 """IsLaterThan(self, DateTime datetime) -> bool"""
3662 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3664 def IsStrictlyBetween(*args
, **kwargs
):
3665 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3666 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3668 def IsBetween(*args
, **kwargs
):
3669 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3670 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3672 def IsSameDate(*args
, **kwargs
):
3673 """IsSameDate(self, DateTime dt) -> bool"""
3674 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3676 def IsSameTime(*args
, **kwargs
):
3677 """IsSameTime(self, DateTime dt) -> bool"""
3678 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3680 def IsEqualUpTo(*args
, **kwargs
):
3681 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3682 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3684 def AddTS(*args
, **kwargs
):
3685 """AddTS(self, TimeSpan diff) -> DateTime"""
3686 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3688 def AddDS(*args
, **kwargs
):
3689 """AddDS(self, DateSpan diff) -> DateTime"""
3690 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3692 def SubtractTS(*args
, **kwargs
):
3693 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3694 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3696 def SubtractDS(*args
, **kwargs
):
3697 """SubtractDS(self, DateSpan diff) -> DateTime"""
3698 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3700 def Subtract(*args
, **kwargs
):
3701 """Subtract(self, DateTime dt) -> TimeSpan"""
3702 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3704 def __iadd__(*args
):
3706 __iadd__(self, TimeSpan diff) -> DateTime
3707 __iadd__(self, DateSpan diff) -> DateTime
3709 return _misc_
.DateTime___iadd__(*args
)
3711 def __isub__(*args
):
3713 __isub__(self, TimeSpan diff) -> DateTime
3714 __isub__(self, DateSpan diff) -> DateTime
3716 return _misc_
.DateTime___isub__(*args
)
3720 __add__(self, TimeSpan other) -> DateTime
3721 __add__(self, DateSpan other) -> DateTime
3723 return _misc_
.DateTime___add__(*args
)
3727 __sub__(self, DateTime other) -> TimeSpan
3728 __sub__(self, TimeSpan other) -> DateTime
3729 __sub__(self, DateSpan other) -> DateTime
3731 return _misc_
.DateTime___sub__(*args
)
3734 """__lt__(self, DateTime other) -> bool"""
3735 return _misc_
.DateTime___lt__(*args
)
3738 """__le__(self, DateTime other) -> bool"""
3739 return _misc_
.DateTime___le__(*args
)
3742 """__gt__(self, DateTime other) -> bool"""
3743 return _misc_
.DateTime___gt__(*args
)
3746 """__ge__(self, DateTime other) -> bool"""
3747 return _misc_
.DateTime___ge__(*args
)
3750 """__eq__(self, DateTime other) -> bool"""
3751 return _misc_
.DateTime___eq__(*args
)
3754 """__ne__(self, DateTime other) -> bool"""
3755 return _misc_
.DateTime___ne__(*args
)
3757 def ParseRfc822Date(*args
, **kwargs
):
3758 """ParseRfc822Date(self, String date) -> int"""
3759 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3761 def ParseFormat(*args
, **kwargs
):
3762 """ParseFormat(self, String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int"""
3763 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3765 def ParseDateTime(*args
, **kwargs
):
3766 """ParseDateTime(self, String datetime) -> int"""
3767 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3769 def ParseDate(*args
, **kwargs
):
3770 """ParseDate(self, String date) -> int"""
3771 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3773 def ParseTime(*args
, **kwargs
):
3774 """ParseTime(self, String time) -> int"""
3775 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3777 def Format(*args
, **kwargs
):
3778 """Format(self, String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3779 return _misc_
.DateTime_Format(*args
, **kwargs
)
3781 def FormatDate(*args
, **kwargs
):
3782 """FormatDate(self) -> String"""
3783 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3785 def FormatTime(*args
, **kwargs
):
3786 """FormatTime(self) -> String"""
3787 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3789 def FormatISODate(*args
, **kwargs
):
3790 """FormatISODate(self) -> String"""
3791 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3793 def FormatISOTime(*args
, **kwargs
):
3794 """FormatISOTime(self) -> String"""
3795 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3799 return '<wx.DateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3801 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
3804 return self
.Format()
3806 return "INVALID DateTime"
3809 class DateTimePtr(DateTime
):
3810 def __init__(self
, this
):
3812 if not hasattr(self
,"thisown"): self
.thisown
= 0
3813 self
.__class
__ = DateTime
3814 _misc_
.DateTime_swigregister(DateTimePtr
)
3815 DateFormatStr
= cvar
.DateFormatStr
3816 TimeSpanFormatStr
= cvar
.TimeSpanFormatStr
3818 def DateTime_SetCountry(*args
, **kwargs
):
3819 """DateTime_SetCountry(int country)"""
3820 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3822 def DateTime_GetCountry(*args
, **kwargs
):
3823 """DateTime_GetCountry() -> int"""
3824 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3826 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3827 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3828 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3830 def DateTime_GetCurrentYear(*args
, **kwargs
):
3831 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3832 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3834 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3835 """DateTime_ConvertYearToBC(int year) -> int"""
3836 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3838 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3839 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3840 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3842 def DateTime_IsLeapYear(*args
, **kwargs
):
3843 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3844 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3846 def DateTime_GetCentury(*args
, **kwargs
):
3847 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3848 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3850 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3851 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3852 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3854 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3855 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3856 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3858 def DateTime_GetMonthName(*args
, **kwargs
):
3859 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3860 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3862 def DateTime_GetWeekDayName(*args
, **kwargs
):
3863 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3864 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3866 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3868 GetAmPmStrings() -> (am, pm)
3870 Get the AM and PM strings in the current locale (may be empty)
3872 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3874 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3875 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3876 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3878 def DateTime_GetBeginDST(*args
, **kwargs
):
3879 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3880 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3882 def DateTime_GetEndDST(*args
, **kwargs
):
3883 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3884 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3886 def DateTime_Now(*args
, **kwargs
):
3887 """DateTime_Now() -> DateTime"""
3888 return _misc_
.DateTime_Now(*args
, **kwargs
)
3890 def DateTime_UNow(*args
, **kwargs
):
3891 """DateTime_UNow() -> DateTime"""
3892 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3894 def DateTime_Today(*args
, **kwargs
):
3895 """DateTime_Today() -> DateTime"""
3896 return _misc_
.DateTime_Today(*args
, **kwargs
)
3898 def DateTimeFromTimeT(*args
, **kwargs
):
3899 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3900 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
3904 def DateTimeFromJDN(*args
, **kwargs
):
3905 """DateTimeFromJDN(double jdn) -> DateTime"""
3906 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
3910 def DateTimeFromHMS(*args
, **kwargs
):
3911 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3912 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
3916 def DateTimeFromDMY(*args
, **kwargs
):
3918 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3919 int minute=0, int second=0, int millisec=0) -> DateTime
3921 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
3925 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
3926 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3927 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3929 class TimeSpan(object):
3930 """Proxy of C++ TimeSpan class"""
3932 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3933 def Seconds(*args
, **kwargs
):
3934 """Seconds(long sec) -> TimeSpan"""
3935 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
3937 Seconds
= staticmethod(Seconds
)
3938 def Second(*args
, **kwargs
):
3939 """Second() -> TimeSpan"""
3940 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
3942 Second
= staticmethod(Second
)
3943 def Minutes(*args
, **kwargs
):
3944 """Minutes(long min) -> TimeSpan"""
3945 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
3947 Minutes
= staticmethod(Minutes
)
3948 def Minute(*args
, **kwargs
):
3949 """Minute() -> TimeSpan"""
3950 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
3952 Minute
= staticmethod(Minute
)
3953 def Hours(*args
, **kwargs
):
3954 """Hours(long hours) -> TimeSpan"""
3955 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
3957 Hours
= staticmethod(Hours
)
3958 def Hour(*args
, **kwargs
):
3959 """Hour() -> TimeSpan"""
3960 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
3962 Hour
= staticmethod(Hour
)
3963 def Days(*args
, **kwargs
):
3964 """Days(long days) -> TimeSpan"""
3965 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
3967 Days
= staticmethod(Days
)
3968 def Day(*args
, **kwargs
):
3969 """Day() -> TimeSpan"""
3970 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
3972 Day
= staticmethod(Day
)
3973 def Weeks(*args
, **kwargs
):
3974 """Weeks(long days) -> TimeSpan"""
3975 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
3977 Weeks
= staticmethod(Weeks
)
3978 def Week(*args
, **kwargs
):
3979 """Week() -> TimeSpan"""
3980 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
3982 Week
= staticmethod(Week
)
3983 def __init__(self
, *args
, **kwargs
):
3984 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3985 newobj
= _misc_
.new_TimeSpan(*args
, **kwargs
)
3986 self
.this
= newobj
.this
3989 def __del__(self
, destroy
=_misc_
.delete_TimeSpan
):
3992 if self
.thisown
: destroy(self
)
3995 def Add(*args
, **kwargs
):
3996 """Add(self, TimeSpan diff) -> TimeSpan"""
3997 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
3999 def Subtract(*args
, **kwargs
):
4000 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4001 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4003 def Multiply(*args
, **kwargs
):
4004 """Multiply(self, int n) -> TimeSpan"""
4005 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4007 def Neg(*args
, **kwargs
):
4008 """Neg(self) -> TimeSpan"""
4009 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4011 def Abs(*args
, **kwargs
):
4012 """Abs(self) -> TimeSpan"""
4013 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4015 def __iadd__(*args
, **kwargs
):
4016 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4017 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4019 def __isub__(*args
, **kwargs
):
4020 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4021 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4023 def __imul__(*args
, **kwargs
):
4024 """__imul__(self, int n) -> TimeSpan"""
4025 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4027 def __neg__(*args
, **kwargs
):
4028 """__neg__(self) -> TimeSpan"""
4029 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4031 def __add__(*args
, **kwargs
):
4032 """__add__(self, TimeSpan other) -> TimeSpan"""
4033 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4035 def __sub__(*args
, **kwargs
):
4036 """__sub__(self, TimeSpan other) -> TimeSpan"""
4037 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4039 def __mul__(*args
, **kwargs
):
4040 """__mul__(self, int n) -> TimeSpan"""
4041 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4043 def __rmul__(*args
, **kwargs
):
4044 """__rmul__(self, int n) -> TimeSpan"""
4045 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4047 def __lt__(*args
, **kwargs
):
4048 """__lt__(self, TimeSpan other) -> bool"""
4049 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4051 def __le__(*args
, **kwargs
):
4052 """__le__(self, TimeSpan other) -> bool"""
4053 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4055 def __gt__(*args
, **kwargs
):
4056 """__gt__(self, TimeSpan other) -> bool"""
4057 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4059 def __ge__(*args
, **kwargs
):
4060 """__ge__(self, TimeSpan other) -> bool"""
4061 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4063 def __eq__(*args
, **kwargs
):
4064 """__eq__(self, TimeSpan other) -> bool"""
4065 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4067 def __ne__(*args
, **kwargs
):
4068 """__ne__(self, TimeSpan other) -> bool"""
4069 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4071 def IsNull(*args
, **kwargs
):
4072 """IsNull(self) -> bool"""
4073 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4075 def IsPositive(*args
, **kwargs
):
4076 """IsPositive(self) -> bool"""
4077 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4079 def IsNegative(*args
, **kwargs
):
4080 """IsNegative(self) -> bool"""
4081 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4083 def IsEqualTo(*args
, **kwargs
):
4084 """IsEqualTo(self, TimeSpan ts) -> bool"""
4085 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4087 def IsLongerThan(*args
, **kwargs
):
4088 """IsLongerThan(self, TimeSpan ts) -> bool"""
4089 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4091 def IsShorterThan(*args
, **kwargs
):
4092 """IsShorterThan(self, TimeSpan t) -> bool"""
4093 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4095 def GetWeeks(*args
, **kwargs
):
4096 """GetWeeks(self) -> int"""
4097 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4099 def GetDays(*args
, **kwargs
):
4100 """GetDays(self) -> int"""
4101 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4103 def GetHours(*args
, **kwargs
):
4104 """GetHours(self) -> int"""
4105 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4107 def GetMinutes(*args
, **kwargs
):
4108 """GetMinutes(self) -> int"""
4109 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4111 def GetSeconds(*args
, **kwargs
):
4112 """GetSeconds(self) -> wxLongLong"""
4113 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4115 def GetMilliseconds(*args
, **kwargs
):
4116 """GetMilliseconds(self) -> wxLongLong"""
4117 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4119 def Format(*args
, **kwargs
):
4120 """Format(self, String format=TimeSpanFormatStr) -> String"""
4121 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4124 return '<wx.TimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
4126 return self
.Format()
4129 class TimeSpanPtr(TimeSpan
):
4130 def __init__(self
, this
):
4132 if not hasattr(self
,"thisown"): self
.thisown
= 0
4133 self
.__class
__ = TimeSpan
4134 _misc_
.TimeSpan_swigregister(TimeSpanPtr
)
4136 def TimeSpan_Seconds(*args
, **kwargs
):
4137 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4138 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4140 def TimeSpan_Second(*args
, **kwargs
):
4141 """TimeSpan_Second() -> TimeSpan"""
4142 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4144 def TimeSpan_Minutes(*args
, **kwargs
):
4145 """TimeSpan_Minutes(long min) -> TimeSpan"""
4146 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4148 def TimeSpan_Minute(*args
, **kwargs
):
4149 """TimeSpan_Minute() -> TimeSpan"""
4150 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4152 def TimeSpan_Hours(*args
, **kwargs
):
4153 """TimeSpan_Hours(long hours) -> TimeSpan"""
4154 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4156 def TimeSpan_Hour(*args
, **kwargs
):
4157 """TimeSpan_Hour() -> TimeSpan"""
4158 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4160 def TimeSpan_Days(*args
, **kwargs
):
4161 """TimeSpan_Days(long days) -> TimeSpan"""
4162 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4164 def TimeSpan_Day(*args
, **kwargs
):
4165 """TimeSpan_Day() -> TimeSpan"""
4166 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4168 def TimeSpan_Weeks(*args
, **kwargs
):
4169 """TimeSpan_Weeks(long days) -> TimeSpan"""
4170 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4172 def TimeSpan_Week(*args
, **kwargs
):
4173 """TimeSpan_Week() -> TimeSpan"""
4174 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4176 class DateSpan(object):
4177 """Proxy of C++ DateSpan class"""
4179 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4180 def __init__(self
, *args
, **kwargs
):
4181 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4182 newobj
= _misc_
.new_DateSpan(*args
, **kwargs
)
4183 self
.this
= newobj
.this
4186 def __del__(self
, destroy
=_misc_
.delete_DateSpan
):
4189 if self
.thisown
: destroy(self
)
4192 def Days(*args
, **kwargs
):
4193 """Days(int days) -> DateSpan"""
4194 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4196 Days
= staticmethod(Days
)
4197 def Day(*args
, **kwargs
):
4198 """Day() -> DateSpan"""
4199 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4201 Day
= staticmethod(Day
)
4202 def Weeks(*args
, **kwargs
):
4203 """Weeks(int weeks) -> DateSpan"""
4204 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4206 Weeks
= staticmethod(Weeks
)
4207 def Week(*args
, **kwargs
):
4208 """Week() -> DateSpan"""
4209 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4211 Week
= staticmethod(Week
)
4212 def Months(*args
, **kwargs
):
4213 """Months(int mon) -> DateSpan"""
4214 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4216 Months
= staticmethod(Months
)
4217 def Month(*args
, **kwargs
):
4218 """Month() -> DateSpan"""
4219 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4221 Month
= staticmethod(Month
)
4222 def Years(*args
, **kwargs
):
4223 """Years(int years) -> DateSpan"""
4224 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4226 Years
= staticmethod(Years
)
4227 def Year(*args
, **kwargs
):
4228 """Year() -> DateSpan"""
4229 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4231 Year
= staticmethod(Year
)
4232 def SetYears(*args
, **kwargs
):
4233 """SetYears(self, int n) -> DateSpan"""
4234 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4236 def SetMonths(*args
, **kwargs
):
4237 """SetMonths(self, int n) -> DateSpan"""
4238 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4240 def SetWeeks(*args
, **kwargs
):
4241 """SetWeeks(self, int n) -> DateSpan"""
4242 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4244 def SetDays(*args
, **kwargs
):
4245 """SetDays(self, int n) -> DateSpan"""
4246 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4248 def GetYears(*args
, **kwargs
):
4249 """GetYears(self) -> int"""
4250 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4252 def GetMonths(*args
, **kwargs
):
4253 """GetMonths(self) -> int"""
4254 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4256 def GetWeeks(*args
, **kwargs
):
4257 """GetWeeks(self) -> int"""
4258 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4260 def GetDays(*args
, **kwargs
):
4261 """GetDays(self) -> int"""
4262 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4264 def GetTotalDays(*args
, **kwargs
):
4265 """GetTotalDays(self) -> int"""
4266 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4268 def Add(*args
, **kwargs
):
4269 """Add(self, DateSpan other) -> DateSpan"""
4270 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4272 def Subtract(*args
, **kwargs
):
4273 """Subtract(self, DateSpan other) -> DateSpan"""
4274 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4276 def Neg(*args
, **kwargs
):
4277 """Neg(self) -> DateSpan"""
4278 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4280 def Multiply(*args
, **kwargs
):
4281 """Multiply(self, int factor) -> DateSpan"""
4282 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4284 def __iadd__(*args
, **kwargs
):
4285 """__iadd__(self, DateSpan other) -> DateSpan"""
4286 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4288 def __isub__(*args
, **kwargs
):
4289 """__isub__(self, DateSpan other) -> DateSpan"""
4290 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4292 def __neg__(*args
, **kwargs
):
4293 """__neg__(self) -> DateSpan"""
4294 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4296 def __imul__(*args
, **kwargs
):
4297 """__imul__(self, int factor) -> DateSpan"""
4298 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4300 def __add__(*args
, **kwargs
):
4301 """__add__(self, DateSpan other) -> DateSpan"""
4302 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4304 def __sub__(*args
, **kwargs
):
4305 """__sub__(self, DateSpan other) -> DateSpan"""
4306 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4308 def __mul__(*args
, **kwargs
):
4309 """__mul__(self, int n) -> DateSpan"""
4310 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4312 def __rmul__(*args
, **kwargs
):
4313 """__rmul__(self, int n) -> DateSpan"""
4314 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4316 def __eq__(*args
, **kwargs
):
4317 """__eq__(self, DateSpan other) -> bool"""
4318 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4320 def __ne__(*args
, **kwargs
):
4321 """__ne__(self, DateSpan other) -> bool"""
4322 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4325 class DateSpanPtr(DateSpan
):
4326 def __init__(self
, this
):
4328 if not hasattr(self
,"thisown"): self
.thisown
= 0
4329 self
.__class
__ = DateSpan
4330 _misc_
.DateSpan_swigregister(DateSpanPtr
)
4332 def DateSpan_Days(*args
, **kwargs
):
4333 """DateSpan_Days(int days) -> DateSpan"""
4334 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4336 def DateSpan_Day(*args
, **kwargs
):
4337 """DateSpan_Day() -> DateSpan"""
4338 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4340 def DateSpan_Weeks(*args
, **kwargs
):
4341 """DateSpan_Weeks(int weeks) -> DateSpan"""
4342 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4344 def DateSpan_Week(*args
, **kwargs
):
4345 """DateSpan_Week() -> DateSpan"""
4346 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4348 def DateSpan_Months(*args
, **kwargs
):
4349 """DateSpan_Months(int mon) -> DateSpan"""
4350 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4352 def DateSpan_Month(*args
, **kwargs
):
4353 """DateSpan_Month() -> DateSpan"""
4354 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4356 def DateSpan_Years(*args
, **kwargs
):
4357 """DateSpan_Years(int years) -> DateSpan"""
4358 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4360 def DateSpan_Year(*args
, **kwargs
):
4361 """DateSpan_Year() -> DateSpan"""
4362 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4365 def GetLocalTime(*args
, **kwargs
):
4366 """GetLocalTime() -> long"""
4367 return _misc_
.GetLocalTime(*args
, **kwargs
)
4369 def GetUTCTime(*args
, **kwargs
):
4370 """GetUTCTime() -> long"""
4371 return _misc_
.GetUTCTime(*args
, **kwargs
)
4373 def GetCurrentTime(*args
, **kwargs
):
4374 """GetCurrentTime() -> long"""
4375 return _misc_
.GetCurrentTime(*args
, **kwargs
)
4377 def GetLocalTimeMillis(*args
, **kwargs
):
4378 """GetLocalTimeMillis() -> wxLongLong"""
4379 return _misc_
.GetLocalTimeMillis(*args
, **kwargs
)
4380 #---------------------------------------------------------------------------
4382 DF_INVALID
= _misc_
.DF_INVALID
4383 DF_TEXT
= _misc_
.DF_TEXT
4384 DF_BITMAP
= _misc_
.DF_BITMAP
4385 DF_METAFILE
= _misc_
.DF_METAFILE
4386 DF_SYLK
= _misc_
.DF_SYLK
4387 DF_DIF
= _misc_
.DF_DIF
4388 DF_TIFF
= _misc_
.DF_TIFF
4389 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4390 DF_DIB
= _misc_
.DF_DIB
4391 DF_PALETTE
= _misc_
.DF_PALETTE
4392 DF_PENDATA
= _misc_
.DF_PENDATA
4393 DF_RIFF
= _misc_
.DF_RIFF
4394 DF_WAVE
= _misc_
.DF_WAVE
4395 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4396 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4397 DF_FILENAME
= _misc_
.DF_FILENAME
4398 DF_LOCALE
= _misc_
.DF_LOCALE
4399 DF_PRIVATE
= _misc_
.DF_PRIVATE
4400 DF_HTML
= _misc_
.DF_HTML
4401 DF_MAX
= _misc_
.DF_MAX
4402 class DataFormat(object):
4404 A wx.DataFormat is an encapsulation of a platform-specific format
4405 handle which is used by the system for the clipboard and drag and drop
4406 operations. The applications are usually only interested in, for
4407 example, pasting data from the clipboard only if the data is in a
4408 format the program understands. A data format is is used to uniquely
4409 identify this format.
4412 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4413 def __init__(self
, *args
, **kwargs
):
4415 __init__(self, int type) -> DataFormat
4417 Constructs a data format object for one of the standard data formats
4418 or an empty data object (use SetType or SetId later in this case)
4420 newobj
= _misc_
.new_DataFormat(*args
, **kwargs
)
4421 self
.this
= newobj
.this
4424 def __del__(self
, destroy
=_misc_
.delete_DataFormat
):
4427 if self
.thisown
: destroy(self
)
4432 __eq__(self, int format) -> bool
4433 __eq__(self, DataFormat format) -> bool
4435 return _misc_
.DataFormat___eq__(*args
)
4439 __ne__(self, int format) -> bool
4440 __ne__(self, DataFormat format) -> bool
4442 return _misc_
.DataFormat___ne__(*args
)
4444 def SetType(*args
, **kwargs
):
4446 SetType(self, int format)
4448 Sets the format to the given value, which should be one of wx.DF_XXX
4451 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4453 def GetType(*args
, **kwargs
):
4455 GetType(self) -> int
4457 Returns the platform-specific number identifying the format.
4459 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4461 def GetId(*args
, **kwargs
):
4463 GetId(self) -> String
4465 Returns the name of a custom format (this function will fail for a
4468 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4470 def SetId(*args
, **kwargs
):
4472 SetId(self, String format)
4474 Sets the format to be the custom format identified by the given name.
4476 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4479 class DataFormatPtr(DataFormat
):
4480 def __init__(self
, this
):
4482 if not hasattr(self
,"thisown"): self
.thisown
= 0
4483 self
.__class
__ = DataFormat
4484 _misc_
.DataFormat_swigregister(DataFormatPtr
)
4485 DefaultDateTime
= cvar
.DefaultDateTime
4487 def CustomDataFormat(*args
, **kwargs
):
4489 CustomDataFormat(String format) -> DataFormat
4491 Constructs a data format object for a custom format identified by its
4494 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4498 class DataObject(object):
4500 A wx.DataObject represents data that can be copied to or from the
4501 clipboard, or dragged and dropped. The important thing about
4502 wx.DataObject is that this is a 'smart' piece of data unlike usual
4503 'dumb' data containers such as memory buffers or files. Being 'smart'
4504 here means that the data object itself should know what data formats
4505 it supports and how to render itself in each of supported formats.
4507 **NOTE**: This class is an abstract base class and can not be used
4508 directly from Python. If you need a custom type of data object then
4509 you should instead derive from `wx.PyDataObjectSimple` or use
4510 `wx.CustomDataObject`.
4513 def __init__(self
): raise RuntimeError, "No constructor defined"
4515 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4516 Get
= _misc_
.DataObject_Get
4517 Set
= _misc_
.DataObject_Set
4518 Both
= _misc_
.DataObject_Both
4519 def __del__(self
, destroy
=_misc_
.delete_DataObject
):
4522 if self
.thisown
: destroy(self
)
4525 def GetPreferredFormat(*args
, **kwargs
):
4527 GetPreferredFormat(self, int dir=Get) -> DataFormat
4529 Returns the preferred format for either rendering the data (if dir is
4530 Get, its default value) or for setting it. Usually this will be the
4531 native format of the wx.DataObject.
4533 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4535 def GetFormatCount(*args
, **kwargs
):
4537 GetFormatCount(self, int dir=Get) -> size_t
4539 Returns the number of available formats for rendering or setting the
4542 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4544 def IsSupported(*args
, **kwargs
):
4546 IsSupported(self, DataFormat format, int dir=Get) -> bool
4548 Returns True if this format is supported.
4550 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4552 def GetDataSize(*args
, **kwargs
):
4554 GetDataSize(self, DataFormat format) -> size_t
4556 Get the (total) size of data for the given format
4558 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4560 def GetAllFormats(*args
, **kwargs
):
4562 GetAllFormats(self, int dir=Get) -> [formats]
4564 Returns a list of all the wx.DataFormats that this dataobject supports
4565 in the given direction.
4567 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4569 def GetDataHere(*args
, **kwargs
):
4571 GetDataHere(self, DataFormat format) -> String
4573 Get the data bytes in the specified format, returns None on failure.
4576 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4578 def SetData(*args
, **kwargs
):
4580 SetData(self, DataFormat format, String data) -> bool
4582 Set the data in the specified format from the bytes in the the data string.
4585 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4588 class DataObjectPtr(DataObject
):
4589 def __init__(self
, this
):
4591 if not hasattr(self
,"thisown"): self
.thisown
= 0
4592 self
.__class
__ = DataObject
4593 _misc_
.DataObject_swigregister(DataObjectPtr
)
4594 FormatInvalid
= cvar
.FormatInvalid
4596 class DataObjectSimple(DataObject
):
4598 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4599 format. This is the simplest possible `wx.DataObject` implementation.
4601 This is still an "abstract base class" meaning that you can't use it
4602 directly. You either need to use one of the predefined base classes,
4603 or derive your own class from `wx.PyDataObjectSimple`.
4607 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4608 def __init__(self
, *args
, **kwargs
):
4610 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4612 Constructor accepts the supported format (none by default) which may
4613 also be set later with `SetFormat`.
4615 newobj
= _misc_
.new_DataObjectSimple(*args
, **kwargs
)
4616 self
.this
= newobj
.this
4619 def GetFormat(*args
, **kwargs
):
4621 GetFormat(self) -> DataFormat
4623 Returns the (one and only one) format supported by this object. It is
4624 assumed that the format is supported in both directions.
4626 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4628 def SetFormat(*args
, **kwargs
):
4630 SetFormat(self, DataFormat format)
4632 Sets the supported format.
4634 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4636 def GetDataSize(*args
, **kwargs
):
4638 GetDataSize(self) -> size_t
4640 Get the size of our data.
4642 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4644 def GetDataHere(*args
, **kwargs
):
4646 GetDataHere(self) -> String
4648 Returns the data bytes from the data object as a string, returns None
4649 on failure. Must be implemented in the derived class if the object
4650 supports rendering its data.
4652 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4654 def SetData(*args
, **kwargs
):
4656 SetData(self, String data) -> bool
4658 Copy the data value to the data object. Must be implemented in the
4659 derived class if the object supports setting its data.
4662 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4665 class DataObjectSimplePtr(DataObjectSimple
):
4666 def __init__(self
, this
):
4668 if not hasattr(self
,"thisown"): self
.thisown
= 0
4669 self
.__class
__ = DataObjectSimple
4670 _misc_
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4672 class PyDataObjectSimple(DataObjectSimple
):
4674 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4675 Python-aware and knows how to reflect calls to its C++ virtual methods
4676 to methods in the Python derived class. You should derive from this
4677 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4678 need to create your own simple single-format type of `wx.DataObject`.
4682 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4683 def __init__(self
, *args
, **kwargs
):
4685 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4687 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4688 Python-aware and knows how to reflect calls to its C++ virtual methods
4689 to methods in the Python derived class. You should derive from this
4690 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4691 need to create your own simple single-format type of `wx.DataObject`.
4694 newobj
= _misc_
.new_PyDataObjectSimple(*args
, **kwargs
)
4695 self
.this
= newobj
.this
4698 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4700 def _setCallbackInfo(*args
, **kwargs
):
4701 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4702 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4705 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4706 def __init__(self
, this
):
4708 if not hasattr(self
,"thisown"): self
.thisown
= 0
4709 self
.__class
__ = PyDataObjectSimple
4710 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4712 class DataObjectComposite(DataObject
):
4714 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4715 which may be sued to support multiple formats. It contains several
4716 'wx.DataObjectSimple` objects and supports any format supported by at
4717 least one of them. Only one of these data objects is *preferred* (the
4718 first one if not explicitly changed by using the second parameter of
4719 `Add`) and its format determines the preferred format of the composite
4720 data object as well.
4722 See `wx.DataObject` documentation for the reasons why you might prefer
4723 to use wx.DataObject directly instead of wx.DataObjectComposite for
4728 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4729 def __init__(self
, *args
, **kwargs
):
4731 __init__(self) -> DataObjectComposite
4733 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4734 which may be sued to support multiple formats. It contains several
4735 'wx.DataObjectSimple` objects and supports any format supported by at
4736 least one of them. Only one of these data objects is *preferred* (the
4737 first one if not explicitly changed by using the second parameter of
4738 `Add`) and its format determines the preferred format of the composite
4739 data object as well.
4741 See `wx.DataObject` documentation for the reasons why you might prefer
4742 to use wx.DataObject directly instead of wx.DataObjectComposite for
4746 newobj
= _misc_
.new_DataObjectComposite(*args
, **kwargs
)
4747 self
.this
= newobj
.this
4750 def Add(*args
, **kwargs
):
4752 Add(self, DataObjectSimple dataObject, bool preferred=False)
4754 Adds the dataObject to the list of supported objects and it becomes
4755 the preferred object if preferred is True.
4757 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4760 class DataObjectCompositePtr(DataObjectComposite
):
4761 def __init__(self
, this
):
4763 if not hasattr(self
,"thisown"): self
.thisown
= 0
4764 self
.__class
__ = DataObjectComposite
4765 _misc_
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4767 class TextDataObject(DataObjectSimple
):
4769 wx.TextDataObject is a specialization of `wx.DataObject` for text
4770 data. It can be used without change to paste data into the `wx.Clipboard`
4771 or a `wx.DropSource`.
4773 Alternativly, you may wish to derive a new class from the
4774 `wx.PyTextDataObject` class for providing text on-demand in order to
4775 minimize memory consumption when offering data in several formats,
4776 such as plain text and RTF, because by default the text is stored in a
4777 string in this class, but it might as well be generated on demand when
4778 requested. For this, `GetTextLength` and `GetText` will have to be
4782 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4783 def __init__(self
, *args
, **kwargs
):
4785 __init__(self, String text=EmptyString) -> TextDataObject
4787 Constructor, may be used to initialise the text (otherwise `SetText`
4788 should be used later).
4790 newobj
= _misc_
.new_TextDataObject(*args
, **kwargs
)
4791 self
.this
= newobj
.this
4794 def GetTextLength(*args
, **kwargs
):
4796 GetTextLength(self) -> size_t
4798 Returns the data size. By default, returns the size of the text data
4799 set in the constructor or using `SetText`. This can be overridden (via
4800 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4801 recommended to return the text length plus 1 for a trailing zero, but
4802 this is not strictly required.
4804 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4806 def GetText(*args
, **kwargs
):
4808 GetText(self) -> String
4810 Returns the text associated with the data object.
4812 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
4814 def SetText(*args
, **kwargs
):
4816 SetText(self, String text)
4818 Sets the text associated with the data object. This method is called
4819 when the data object receives the data and, by default, copies the
4820 text into the member variable. If you want to process the text on the
4821 fly you may wish to override this function (via
4822 `wx.PyTextDataObject`.)
4824 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
4827 class TextDataObjectPtr(TextDataObject
):
4828 def __init__(self
, this
):
4830 if not hasattr(self
,"thisown"): self
.thisown
= 0
4831 self
.__class
__ = TextDataObject
4832 _misc_
.TextDataObject_swigregister(TextDataObjectPtr
)
4834 class PyTextDataObject(TextDataObject
):
4836 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4837 Python-aware and knows how to reflect calls to its C++ virtual methods
4838 to methods in the Python derived class. You should derive from this
4839 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4840 want to be able to provide text on demand instead of preloading it
4841 into the data object.
4844 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4845 def __init__(self
, *args
, **kwargs
):
4847 __init__(self, String text=EmptyString) -> PyTextDataObject
4849 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4850 Python-aware and knows how to reflect calls to its C++ virtual methods
4851 to methods in the Python derived class. You should derive from this
4852 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4853 want to be able to provide text on demand instead of preloading it
4854 into the data object.
4856 newobj
= _misc_
.new_PyTextDataObject(*args
, **kwargs
)
4857 self
.this
= newobj
.this
4860 self
._setCallbackInfo
(self
, PyTextDataObject
)
4862 def _setCallbackInfo(*args
, **kwargs
):
4863 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4864 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4867 class PyTextDataObjectPtr(PyTextDataObject
):
4868 def __init__(self
, this
):
4870 if not hasattr(self
,"thisown"): self
.thisown
= 0
4871 self
.__class
__ = PyTextDataObject
4872 _misc_
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4874 class BitmapDataObject(DataObjectSimple
):
4876 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
4877 data. It can be used without change to paste data into the `wx.Clipboard`
4878 or a `wx.DropSource`.
4882 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4883 def __init__(self
, *args
, **kwargs
):
4885 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
4887 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
4890 newobj
= _misc_
.new_BitmapDataObject(*args
, **kwargs
)
4891 self
.this
= newobj
.this
4894 def GetBitmap(*args
, **kwargs
):
4896 GetBitmap(self) -> Bitmap
4898 Returns the bitmap associated with the data object. You may wish to
4899 override this method (by deriving from `wx.PyBitmapDataObject`) when
4900 offering data on-demand, but this is not required by wxWidgets'
4901 internals. Use this method to get data in bitmap form from the
4904 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4906 def SetBitmap(*args
, **kwargs
):
4908 SetBitmap(self, Bitmap bitmap)
4910 Sets the bitmap associated with the data object. This method is called
4911 when the data object receives data. Usually there will be no reason to
4912 override this function.
4914 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4917 class BitmapDataObjectPtr(BitmapDataObject
):
4918 def __init__(self
, this
):
4920 if not hasattr(self
,"thisown"): self
.thisown
= 0
4921 self
.__class
__ = BitmapDataObject
4922 _misc_
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4924 class PyBitmapDataObject(BitmapDataObject
):
4926 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4927 Python-aware and knows how to reflect calls to its C++ virtual methods
4928 to methods in the Python derived class. To be able to provide bitmap
4929 data on demand derive from this class and overload `GetBitmap`.
4932 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4933 def __init__(self
, *args
, **kwargs
):
4935 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
4937 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
4938 Python-aware and knows how to reflect calls to its C++ virtual methods
4939 to methods in the Python derived class. To be able to provide bitmap
4940 data on demand derive from this class and overload `GetBitmap`.
4942 newobj
= _misc_
.new_PyBitmapDataObject(*args
, **kwargs
)
4943 self
.this
= newobj
.this
4946 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4948 def _setCallbackInfo(*args
, **kwargs
):
4949 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4950 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4953 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4954 def __init__(self
, this
):
4956 if not hasattr(self
,"thisown"): self
.thisown
= 0
4957 self
.__class
__ = PyBitmapDataObject
4958 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4960 class FileDataObject(DataObjectSimple
):
4962 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
4963 file names. The program works with it just as if it were a list of
4964 absolute file names, but internally it uses the same format as
4965 Explorer and other compatible programs under Windows or GNOME/KDE
4966 filemanager under Unix which makes it possible to receive files from
4967 them using this class.
4969 :Warning: Under all non-Windows platforms this class is currently
4970 "input-only", i.e. you can receive the files from another
4971 application, but copying (or dragging) file(s) from a wxWidgets
4972 application is not currently supported.
4976 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4977 def __init__(self
, *args
, **kwargs
):
4978 """__init__(self) -> FileDataObject"""
4979 newobj
= _misc_
.new_FileDataObject(*args
, **kwargs
)
4980 self
.this
= newobj
.this
4983 def GetFilenames(*args
, **kwargs
):
4985 GetFilenames(self) -> [names]
4987 Returns a list of file names.
4989 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
4991 def AddFile(*args
, **kwargs
):
4993 AddFile(self, String filename)
4995 Adds a file to the list of files represented by this data object.
4997 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5000 class FileDataObjectPtr(FileDataObject
):
5001 def __init__(self
, this
):
5003 if not hasattr(self
,"thisown"): self
.thisown
= 0
5004 self
.__class
__ = FileDataObject
5005 _misc_
.FileDataObject_swigregister(FileDataObjectPtr
)
5007 class CustomDataObject(DataObjectSimple
):
5009 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5010 some application-specific data in arbitrary format. Python strings
5011 are used for getting and setting data, but any picklable object can
5012 easily be transfered via strings. A copy of the data is stored in the
5016 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5017 def __init__(self
, *args
, **kwargs
):
5019 __init__(self, DataFormat format=FormatInvalid) -> CustomDataObject
5021 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5022 some application-specific data in arbitrary format. Python strings
5023 are used for getting and setting data, but any picklable object can
5024 easily be transfered via strings. A copy of the data is stored in the
5027 newobj
= _misc_
.new_CustomDataObject(*args
, **kwargs
)
5028 self
.this
= newobj
.this
5031 def SetData(*args
, **kwargs
):
5033 SetData(self, String data) -> bool
5035 Copy the data value to the data object.
5037 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5040 def GetSize(*args
, **kwargs
):
5042 GetSize(self) -> size_t
5044 Get the size of the data.
5046 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5048 def GetData(*args
, **kwargs
):
5050 GetData(self) -> String
5052 Returns the data bytes from the data object as a string.
5054 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5057 class CustomDataObjectPtr(CustomDataObject
):
5058 def __init__(self
, this
):
5060 if not hasattr(self
,"thisown"): self
.thisown
= 0
5061 self
.__class
__ = CustomDataObject
5062 _misc_
.CustomDataObject_swigregister(CustomDataObjectPtr
)
5064 class URLDataObject(DataObjectComposite
):
5066 This data object holds a URL in a format that is compatible with some
5067 browsers such that it is able to be dragged to or from them.
5070 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5071 def __init__(self
, *args
, **kwargs
):
5073 __init__(self) -> URLDataObject
5075 This data object holds a URL in a format that is compatible with some
5076 browsers such that it is able to be dragged to or from them.
5078 newobj
= _misc_
.new_URLDataObject(*args
, **kwargs
)
5079 self
.this
= newobj
.this
5082 def GetURL(*args
, **kwargs
):
5084 GetURL(self) -> String
5086 Returns a string containing the current URL.
5088 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5090 def SetURL(*args
, **kwargs
):
5092 SetURL(self, String url)
5096 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5099 class URLDataObjectPtr(URLDataObject
):
5100 def __init__(self
, this
):
5102 if not hasattr(self
,"thisown"): self
.thisown
= 0
5103 self
.__class
__ = URLDataObject
5104 _misc_
.URLDataObject_swigregister(URLDataObjectPtr
)
5106 class MetafileDataObject(DataObjectSimple
):
5107 """Proxy of C++ MetafileDataObject class"""
5109 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5110 def __init__(self
, *args
, **kwargs
):
5111 """__init__(self) -> MetafileDataObject"""
5112 newobj
= _misc_
.new_MetafileDataObject(*args
, **kwargs
)
5113 self
.this
= newobj
.this
5117 class MetafileDataObjectPtr(MetafileDataObject
):
5118 def __init__(self
, this
):
5120 if not hasattr(self
,"thisown"): self
.thisown
= 0
5121 self
.__class
__ = MetafileDataObject
5122 _misc_
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
5124 #---------------------------------------------------------------------------
5126 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5127 Drag_AllowMove
= _misc_
.Drag_AllowMove
5128 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5129 DragError
= _misc_
.DragError
5130 DragNone
= _misc_
.DragNone
5131 DragCopy
= _misc_
.DragCopy
5132 DragMove
= _misc_
.DragMove
5133 DragLink
= _misc_
.DragLink
5134 DragCancel
= _misc_
.DragCancel
5136 def IsDragResultOk(*args
, **kwargs
):
5137 """IsDragResultOk(int res) -> bool"""
5138 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5139 class DropSource(object):
5140 """Proxy of C++ DropSource class"""
5142 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5143 def __init__(self
, *args
, **kwargs
):
5145 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
5146 Icon none=wxNullIcon) -> DropSource
5148 newobj
= _misc_
.new_DropSource(*args
, **kwargs
)
5149 self
.this
= newobj
.this
5152 self
._setCallbackInfo
(self
, DropSource
, 0)
5154 def _setCallbackInfo(*args
, **kwargs
):
5155 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5156 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5158 def __del__(self
, destroy
=_misc_
.delete_DropSource
):
5161 if self
.thisown
: destroy(self
)
5164 def SetData(*args
, **kwargs
):
5165 """SetData(self, DataObject data)"""
5166 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5168 def GetDataObject(*args
, **kwargs
):
5169 """GetDataObject(self) -> DataObject"""
5170 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5172 def SetCursor(*args
, **kwargs
):
5173 """SetCursor(self, int res, Cursor cursor)"""
5174 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5176 def DoDragDrop(*args
, **kwargs
):
5177 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5178 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5180 def base_GiveFeedback(*args
, **kwargs
):
5181 """base_GiveFeedback(self, int effect) -> bool"""
5182 return _misc_
.DropSource_base_GiveFeedback(*args
, **kwargs
)
5185 class DropSourcePtr(DropSource
):
5186 def __init__(self
, this
):
5188 if not hasattr(self
,"thisown"): self
.thisown
= 0
5189 self
.__class
__ = DropSource
5190 _misc_
.DropSource_swigregister(DropSourcePtr
)
5192 class DropTarget(object):
5193 """Proxy of C++ DropTarget class"""
5195 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5196 def __init__(self
, *args
, **kwargs
):
5197 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5198 newobj
= _misc_
.new_DropTarget(*args
, **kwargs
)
5199 self
.this
= newobj
.this
5202 self
._setCallbackInfo
(self
, DropTarget
)
5204 def _setCallbackInfo(*args
, **kwargs
):
5205 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5206 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5208 def __del__(self
, destroy
=_misc_
.delete_DropTarget
):
5211 if self
.thisown
: destroy(self
)
5214 def GetDataObject(*args
, **kwargs
):
5215 """GetDataObject(self) -> DataObject"""
5216 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5218 def SetDataObject(*args
, **kwargs
):
5219 """SetDataObject(self, DataObject dataObject)"""
5220 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5222 def base_OnEnter(*args
, **kwargs
):
5223 """base_OnEnter(self, int x, int y, int def) -> int"""
5224 return _misc_
.DropTarget_base_OnEnter(*args
, **kwargs
)
5226 def base_OnDragOver(*args
, **kwargs
):
5227 """base_OnDragOver(self, int x, int y, int def) -> int"""
5228 return _misc_
.DropTarget_base_OnDragOver(*args
, **kwargs
)
5230 def base_OnLeave(*args
, **kwargs
):
5231 """base_OnLeave(self)"""
5232 return _misc_
.DropTarget_base_OnLeave(*args
, **kwargs
)
5234 def base_OnDrop(*args
, **kwargs
):
5235 """base_OnDrop(self, int x, int y) -> bool"""
5236 return _misc_
.DropTarget_base_OnDrop(*args
, **kwargs
)
5238 def GetData(*args
, **kwargs
):
5239 """GetData(self) -> bool"""
5240 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5243 class DropTargetPtr(DropTarget
):
5244 def __init__(self
, this
):
5246 if not hasattr(self
,"thisown"): self
.thisown
= 0
5247 self
.__class
__ = DropTarget
5248 _misc_
.DropTarget_swigregister(DropTargetPtr
)
5250 PyDropTarget
= DropTarget
5251 class TextDropTarget(DropTarget
):
5252 """Proxy of C++ TextDropTarget class"""
5254 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5255 def __init__(self
, *args
, **kwargs
):
5256 """__init__(self) -> TextDropTarget"""
5257 newobj
= _misc_
.new_TextDropTarget(*args
, **kwargs
)
5258 self
.this
= newobj
.this
5261 self
._setCallbackInfo
(self
, TextDropTarget
)
5263 def _setCallbackInfo(*args
, **kwargs
):
5264 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5265 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5267 def base_OnEnter(*args
, **kwargs
):
5268 """base_OnEnter(self, int x, int y, int def) -> int"""
5269 return _misc_
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
5271 def base_OnDragOver(*args
, **kwargs
):
5272 """base_OnDragOver(self, int x, int y, int def) -> int"""
5273 return _misc_
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
5275 def base_OnLeave(*args
, **kwargs
):
5276 """base_OnLeave(self)"""
5277 return _misc_
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
5279 def base_OnDrop(*args
, **kwargs
):
5280 """base_OnDrop(self, int x, int y) -> bool"""
5281 return _misc_
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
5283 def base_OnData(*args
, **kwargs
):
5284 """base_OnData(self, int x, int y, int def) -> int"""
5285 return _misc_
.TextDropTarget_base_OnData(*args
, **kwargs
)
5288 class TextDropTargetPtr(TextDropTarget
):
5289 def __init__(self
, this
):
5291 if not hasattr(self
,"thisown"): self
.thisown
= 0
5292 self
.__class
__ = TextDropTarget
5293 _misc_
.TextDropTarget_swigregister(TextDropTargetPtr
)
5295 class FileDropTarget(DropTarget
):
5296 """Proxy of C++ FileDropTarget class"""
5298 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5299 def __init__(self
, *args
, **kwargs
):
5300 """__init__(self) -> FileDropTarget"""
5301 newobj
= _misc_
.new_FileDropTarget(*args
, **kwargs
)
5302 self
.this
= newobj
.this
5305 self
._setCallbackInfo
(self
, FileDropTarget
)
5307 def _setCallbackInfo(*args
, **kwargs
):
5308 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5309 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5311 def base_OnEnter(*args
, **kwargs
):
5312 """base_OnEnter(self, int x, int y, int def) -> int"""
5313 return _misc_
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
5315 def base_OnDragOver(*args
, **kwargs
):
5316 """base_OnDragOver(self, int x, int y, int def) -> int"""
5317 return _misc_
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
5319 def base_OnLeave(*args
, **kwargs
):
5320 """base_OnLeave(self)"""
5321 return _misc_
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
5323 def base_OnDrop(*args
, **kwargs
):
5324 """base_OnDrop(self, int x, int y) -> bool"""
5325 return _misc_
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
5327 def base_OnData(*args
, **kwargs
):
5328 """base_OnData(self, int x, int y, int def) -> int"""
5329 return _misc_
.FileDropTarget_base_OnData(*args
, **kwargs
)
5332 class FileDropTargetPtr(FileDropTarget
):
5333 def __init__(self
, this
):
5335 if not hasattr(self
,"thisown"): self
.thisown
= 0
5336 self
.__class
__ = FileDropTarget
5337 _misc_
.FileDropTarget_swigregister(FileDropTargetPtr
)
5339 #---------------------------------------------------------------------------
5341 class Clipboard(_core
.Object
):
5343 wx.Clipboard represents the system clipboard and provides methods to
5344 copy data to it or paste data from it. Normally, you should only use
5345 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5348 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5349 clipboard. If this operation returns True, you now own the
5350 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5351 to retrieve data from the clipboard. Call `Close` to close the
5352 clipboard and relinquish ownership. You should keep the clipboard open
5355 :see: `wx.DataObject`
5359 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5360 def __init__(self
, *args
, **kwargs
):
5361 """__init__(self) -> Clipboard"""
5362 newobj
= _misc_
.new_Clipboard(*args
, **kwargs
)
5363 self
.this
= newobj
.this
5366 def __del__(self
, destroy
=_misc_
.delete_Clipboard
):
5369 if self
.thisown
: destroy(self
)
5372 def Open(*args
, **kwargs
):
5376 Call this function to open the clipboard before calling SetData and
5377 GetData. Call Close when you have finished with the clipboard. You
5378 should keep the clipboard open for only a very short time. Returns
5381 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5383 def Close(*args
, **kwargs
):
5387 Closes the clipboard.
5389 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5391 def IsOpened(*args
, **kwargs
):
5393 IsOpened(self) -> bool
5395 Query whether the clipboard is opened
5397 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5399 def AddData(*args
, **kwargs
):
5401 AddData(self, DataObject data) -> bool
5403 Call this function to add the data object to the clipboard. You may
5404 call this function repeatedly after having cleared the clipboard.
5405 After this function has been called, the clipboard owns the data, so
5406 do not delete the data explicitly.
5408 :see: `wx.DataObject`
5410 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5412 def SetData(*args
, **kwargs
):
5414 SetData(self, DataObject data) -> bool
5416 Set the clipboard data, this is the same as `Clear` followed by
5419 :see: `wx.DataObject`
5421 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5423 def IsSupported(*args
, **kwargs
):
5425 IsSupported(self, DataFormat format) -> bool
5427 Returns True if the given format is available in the data object(s) on
5430 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5432 def GetData(*args
, **kwargs
):
5434 GetData(self, DataObject data) -> bool
5436 Call this function to fill data with data on the clipboard, if
5437 available in the required format. Returns true on success.
5439 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5441 def Clear(*args
, **kwargs
):
5445 Clears data from the clipboard object and also the system's clipboard
5448 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5450 def Flush(*args
, **kwargs
):
5454 Flushes the clipboard: this means that the data which is currently on
5455 clipboard will stay available even after the application exits,
5456 possibly eating memory, otherwise the clipboard will be emptied on
5457 exit. Returns False if the operation is unsuccesful for any reason.
5459 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5461 def UsePrimarySelection(*args
, **kwargs
):
5463 UsePrimarySelection(self, bool primary=True)
5465 On platforms supporting it (the X11 based platforms), selects the
5466 so called PRIMARY SELECTION as the clipboard as opposed to the
5467 normal clipboard, if primary is True.
5469 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5471 def Get(*args
, **kwargs
):
5475 Returns global instance (wxTheClipboard) of the object.
5477 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5479 Get
= staticmethod(Get
)
5481 class ClipboardPtr(Clipboard
):
5482 def __init__(self
, this
):
5484 if not hasattr(self
,"thisown"): self
.thisown
= 0
5485 self
.__class
__ = Clipboard
5486 _misc_
.Clipboard_swigregister(ClipboardPtr
)
5488 def Clipboard_Get(*args
, **kwargs
):
5490 Clipboard_Get() -> Clipboard
5492 Returns global instance (wxTheClipboard) of the object.
5494 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5496 class _wxPyDelayedInitWrapper(object):
5497 def __init__(self
, initfunc
, *args
, **kwargs
):
5498 self
._initfunc
= initfunc
5500 self
._kwargs
= kwargs
5501 self
._instance
= None
5502 def _checkInstance(self
):
5503 if self
._instance
is None:
5504 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5505 def __getattr__(self
, name
):
5506 self
._checkInstance
()
5507 return getattr(self
._instance
, name
)
5509 self
._checkInstance
()
5510 return repr(self
._instance
)
5511 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5513 class ClipboardLocker(object):
5515 A helpful class for opening the clipboard and automatically
5516 closing it when the locker is destroyed.
5519 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5520 def __init__(self
, *args
, **kwargs
):
5522 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5524 A helpful class for opening the clipboard and automatically
5525 closing it when the locker is destroyed.
5527 newobj
= _misc_
.new_ClipboardLocker(*args
, **kwargs
)
5528 self
.this
= newobj
.this
5531 def __del__(self
, destroy
=_misc_
.delete_ClipboardLocker
):
5534 if self
.thisown
: destroy(self
)
5537 def __nonzero__(*args
, **kwargs
):
5539 __nonzero__(self) -> bool
5541 A ClipboardLocker instance evaluates to True if the clipboard was
5542 successfully opened.
5544 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5547 class ClipboardLockerPtr(ClipboardLocker
):
5548 def __init__(self
, this
):
5550 if not hasattr(self
,"thisown"): self
.thisown
= 0
5551 self
.__class
__ = ClipboardLocker
5552 _misc_
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
5554 #---------------------------------------------------------------------------
5556 class VideoMode(object):
5557 """A simple struct containing video mode parameters for a display"""
5559 return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5560 def __init__(self
, *args
, **kwargs
):
5562 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5564 A simple struct containing video mode parameters for a display
5566 newobj
= _misc_
.new_VideoMode(*args
, **kwargs
)
5567 self
.this
= newobj
.this
5570 def __del__(self
, destroy
=_misc_
.delete_VideoMode
):
5573 if self
.thisown
: destroy(self
)
5576 def Matches(*args
, **kwargs
):
5578 Matches(self, VideoMode other) -> bool
5580 Returns true if this mode matches the other one in the sense that all
5581 non zero fields of the other mode have the same value in this
5582 one (except for refresh which is allowed to have a greater value)
5584 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5586 def GetWidth(*args
, **kwargs
):
5588 GetWidth(self) -> int
5590 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5592 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5594 def GetHeight(*args
, **kwargs
):
5596 GetHeight(self) -> int
5598 Returns the screen width in pixels (e.g. 640*480), 0 means
5601 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5603 def GetDepth(*args
, **kwargs
):
5605 GetDepth(self) -> int
5607 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5608 means unspecified/known
5610 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5612 def IsOk(*args
, **kwargs
):
5616 returns true if the object has been initialized
5618 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5620 def __nonzero__(self
): return self
.IsOk()
5621 def __eq__(*args
, **kwargs
):
5622 """__eq__(self, VideoMode other) -> bool"""
5623 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5625 def __ne__(*args
, **kwargs
):
5626 """__ne__(self, VideoMode other) -> bool"""
5627 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5629 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5630 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5631 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5632 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5634 class VideoModePtr(VideoMode
):
5635 def __init__(self
, this
):
5637 if not hasattr(self
,"thisown"): self
.thisown
= 0
5638 self
.__class
__ = VideoMode
5639 _misc_
.VideoMode_swigregister(VideoModePtr
)
5641 class Display(object):
5642 """Represents a display/monitor attached to the system"""
5644 return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5645 def __init__(self
, *args
, **kwargs
):
5647 __init__(self, size_t index=0) -> Display
5649 Set up a Display instance with the specified display. The displays
5650 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5651 and the only one which is always supported
5653 newobj
= _misc_
.new_Display(*args
, **kwargs
)
5654 self
.this
= newobj
.this
5657 def __del__(self
, destroy
=_misc_
.delete_Display
):
5660 if self
.thisown
: destroy(self
)
5663 def GetCount(*args
, **kwargs
):
5665 GetCount() -> size_t
5667 Return the number of available displays.
5669 return _misc_
.Display_GetCount(*args
, **kwargs
)
5671 GetCount
= staticmethod(GetCount
)
5672 def GetFromPoint(*args
, **kwargs
):
5674 GetFromPoint(Point pt) -> int
5676 Find the display where the given point lies, return wx.NOT_FOUND if it
5677 doesn't belong to any display
5679 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5681 GetFromPoint
= staticmethod(GetFromPoint
)
5682 def GetFromWindow(*args
, **kwargs
):
5684 GetFromWindow(Window window) -> int
5686 Find the display where the given window lies, return wx.NOT_FOUND if
5687 it is not shown at all.
5689 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5691 GetFromWindow
= staticmethod(GetFromWindow
)
5692 def IsOk(*args
, **kwargs
):
5696 Return true if the object was initialized successfully
5698 return _misc_
.Display_IsOk(*args
, **kwargs
)
5700 def __nonzero__(self
): return self
.IsOk()
5701 def GetGeometry(*args
, **kwargs
):
5703 GetGeometry(self) -> Rect
5705 Returns the bounding rectangle of the display whose index was passed
5708 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5710 def GetName(*args
, **kwargs
):
5712 GetName(self) -> String
5714 Returns the display's name. A name is not available on all platforms.
5716 return _misc_
.Display_GetName(*args
, **kwargs
)
5718 def IsPrimary(*args
, **kwargs
):
5720 IsPrimary(self) -> bool
5722 Returns true if the display is the primary display. The primary
5723 display is the one whose index is 0.
5725 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5727 def GetModes(*args
, **kwargs
):
5729 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5731 Enumerate all video modes supported by this display matching the given
5732 one (in the sense of VideoMode.Match()).
5734 As any mode matches the default value of the argument and there is
5735 always at least one video mode supported by display, the returned
5736 array is only empty for the default value of the argument if this
5737 function is not supported at all on this platform.
5739 return _misc_
.Display_GetModes(*args
, **kwargs
)
5741 def GetCurrentMode(*args
, **kwargs
):
5743 GetCurrentMode(self) -> VideoMode
5745 Get the current video mode.
5747 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5749 def ChangeMode(*args
, **kwargs
):
5751 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5753 Changes the video mode of this display to the mode specified in the
5756 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5757 behaviour is that wx.Display will reset the video mode to the default
5758 mode used by the display. On Windows, the behavior is normal.
5759 However, there are differences on other platforms. On Unix variations
5760 using X11 extensions it should behave as defined, but some
5761 irregularities may occur.
5763 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5764 nothing. This happens because Carbon no longer has access to
5765 DMUseScreenPrefs, an undocumented function that changed the video mode
5766 to the system default by using the system's 'scrn' resource.
5768 Returns True if succeeded, False otherwise
5770 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5772 def ResetMode(*args
, **kwargs
):
5776 Restore the default video mode (just a more readable synonym)
5778 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5781 class DisplayPtr(Display
):
5782 def __init__(self
, this
):
5784 if not hasattr(self
,"thisown"): self
.thisown
= 0
5785 self
.__class
__ = Display
5786 _misc_
.Display_swigregister(DisplayPtr
)
5787 DefaultVideoMode
= cvar
.DefaultVideoMode
5789 def Display_GetCount(*args
, **kwargs
):
5791 Display_GetCount() -> size_t
5793 Return the number of available displays.
5795 return _misc_
.Display_GetCount(*args
, **kwargs
)
5797 def Display_GetFromPoint(*args
, **kwargs
):
5799 Display_GetFromPoint(Point pt) -> int
5801 Find the display where the given point lies, return wx.NOT_FOUND if it
5802 doesn't belong to any display
5804 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5806 def Display_GetFromWindow(*args
, **kwargs
):
5808 Display_GetFromWindow(Window window) -> int
5810 Find the display where the given window lies, return wx.NOT_FOUND if
5811 it is not shown at all.
5813 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5815 #---------------------------------------------------------------------------
5817 class StandardPaths(object):
5819 wx.StandardPaths returns the standard locations in the file system and
5820 should be used by the programs to find their data files in a portable
5823 In the description of the methods below, the example return values are
5824 given for the Unix, Windows and Mac OS X systems, however please note
5825 that these are just the examples and the actual values may differ. For
5826 example, under Windows: the system administrator may change the
5827 standard directories locations, i.e. the Windows directory may be
5828 named W:\Win2003 instead of the default C:\Windows.
5830 The strings appname and username should be replaced with the value
5831 returned by `wx.App.GetAppName` and the name of the currently logged
5832 in user, respectively. The string prefix is only used under Unix and
5833 is /usr/local by default but may be changed using `SetInstallPrefix`.
5835 The directories returned by the methods of this class may or may not
5836 exist. If they don't exist, it's up to the caller to create them,
5837 wxStandardPaths doesn't do it.
5839 Finally note that these functions only work with standardly packaged
5840 applications. I.e. under Unix you should follow the standard
5841 installation conventions and under Mac you should create your
5842 application bundle according to the Apple guidelines. Again, this
5843 class doesn't help you to do it.
5845 def __init__(self
): raise RuntimeError, "No constructor defined"
5847 return "<%s.%s; proxy of C++ wxStandardPaths instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5848 def Get(*args
, **kwargs
):
5850 Get() -> StandardPaths
5852 Return the global standard paths singleton
5854 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
5856 Get
= staticmethod(Get
)
5857 def GetConfigDir(*args
, **kwargs
):
5859 GetConfigDir(self) -> String
5861 Return the directory with system config files: /etc under Unix,
5862 'c:\Documents and Settings\All Users\Application Data' under Windows,
5863 /Library/Preferences for Mac
5865 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
5867 def GetUserConfigDir(*args
, **kwargs
):
5869 GetUserConfigDir(self) -> String
5871 Return the directory for the user config files: $HOME under Unix,
5872 'c:\Documents and Settings\username' under Windows, and
5873 ~/Library/Preferences under Mac
5875 Only use this if you have a single file to put there, otherwise
5876 `GetUserDataDir` is more appropriate
5878 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
5880 def GetDataDir(*args
, **kwargs
):
5882 GetDataDir(self) -> String
5884 Return the location of the application's global, (i.e. not
5885 user-specific,) data files: prefix/share/appname under Unix,
5886 'c:\Program Files\appname' under Windows,
5887 appname.app/Contents/SharedSupport app bundle directory under Mac.
5889 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
5891 def GetLocalDataDir(*args
, **kwargs
):
5893 GetLocalDataDir(self) -> String
5895 Return the location for application data files which are
5896 host-specific. Same as `GetDataDir` except under Unix where it is
5899 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
5901 def GetUserDataDir(*args
, **kwargs
):
5903 GetUserDataDir(self) -> String
5905 Return the directory for the user-dependent application data files:
5906 $HOME/.appname under Unix, c:\Documents and
5907 Settings\username\Application Data\appname under Windows and
5908 ~/Library/Application Support/appname under Mac
5910 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
5912 def GetUserLocalDataDir(*args
, **kwargs
):
5914 GetUserLocalDataDir(self) -> String
5916 Return the directory for user data files which shouldn't be shared
5917 with the other machines
5919 Same as `GetUserDataDir` for all platforms except Windows where it is
5920 the 'Local Settings\Application Data\appname' directory.
5922 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
5924 def GetPluginsDir(*args
, **kwargs
):
5926 GetPluginsDir(self) -> String
5928 Return the directory where the loadable modules (plugins) live:
5929 prefix/lib/appname under Unix, program directory under Windows and
5930 Contents/Plugins app bundle subdirectory under Mac
5932 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
5934 def SetInstallPrefix(*args
, **kwargs
):
5936 SetInstallPrefix(self, String prefix)
5938 Set the program installation directory which is /usr/local by default.
5939 This value will be used by other methods such as `GetDataDir` and
5940 `GetPluginsDir` as the prefix for what they return. (This function
5941 only has meaning on Unix systems.)
5943 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
5945 def GetInstallPrefix(*args
, **kwargs
):
5947 GetInstallPrefix(self) -> String
5949 Get the program installation prefix. The default is the prefix where
5950 Python is installed. (This function only has meaning on Unix systems.)
5952 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
5955 class StandardPathsPtr(StandardPaths
):
5956 def __init__(self
, this
):
5958 if not hasattr(self
,"thisown"): self
.thisown
= 0
5959 self
.__class
__ = StandardPaths
5960 _misc_
.StandardPaths_swigregister(StandardPathsPtr
)
5962 def StandardPaths_Get(*args
, **kwargs
):
5964 StandardPaths_Get() -> StandardPaths
5966 Return the global standard paths singleton
5968 return _misc_
.StandardPaths_Get(*args
, **kwargs
)