1 # This file was created automatically by SWIG 1.3.27.
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_TABLET_PRESENT
= _misc_
.SYS_TABLET_PRESENT
138 SYS_SCREEN_NONE
= _misc_
.SYS_SCREEN_NONE
139 SYS_SCREEN_TINY
= _misc_
.SYS_SCREEN_TINY
140 SYS_SCREEN_PDA
= _misc_
.SYS_SCREEN_PDA
141 SYS_SCREEN_SMALL
= _misc_
.SYS_SCREEN_SMALL
142 SYS_SCREEN_DESKTOP
= _misc_
.SYS_SCREEN_DESKTOP
143 class SystemSettings(object):
144 """Proxy of C++ SystemSettings class"""
145 def __init__(self
): raise RuntimeError, "No constructor defined"
147 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
148 def GetColour(*args
, **kwargs
):
149 """GetColour(int index) -> Colour"""
150 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
152 GetColour
= staticmethod(GetColour
)
153 def GetFont(*args
, **kwargs
):
154 """GetFont(int index) -> Font"""
155 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
157 GetFont
= staticmethod(GetFont
)
158 def GetMetric(*args
, **kwargs
):
159 """GetMetric(int index, Window win=None) -> int"""
160 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
162 GetMetric
= staticmethod(GetMetric
)
163 def HasFeature(*args
, **kwargs
):
164 """HasFeature(int index) -> bool"""
165 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
167 HasFeature
= staticmethod(HasFeature
)
168 def GetScreenType(*args
, **kwargs
):
169 """GetScreenType() -> int"""
170 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
172 GetScreenType
= staticmethod(GetScreenType
)
173 def SetScreenType(*args
, **kwargs
):
174 """SetScreenType(int screen)"""
175 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
177 SetScreenType
= staticmethod(SetScreenType
)
179 class SystemSettingsPtr(SystemSettings
):
180 def __init__(self
, this
):
182 if not hasattr(self
,"thisown"): self
.thisown
= 0
183 self
.__class
__ = SystemSettings
184 _misc_
.SystemSettings_swigregister(SystemSettingsPtr
)
186 def SystemSettings_GetColour(*args
, **kwargs
):
187 """SystemSettings_GetColour(int index) -> Colour"""
188 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
190 def SystemSettings_GetFont(*args
, **kwargs
):
191 """SystemSettings_GetFont(int index) -> Font"""
192 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
194 def SystemSettings_GetMetric(*args
, **kwargs
):
195 """SystemSettings_GetMetric(int index, Window win=None) -> int"""
196 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
198 def SystemSettings_HasFeature(*args
, **kwargs
):
199 """SystemSettings_HasFeature(int index) -> bool"""
200 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
202 def SystemSettings_GetScreenType(*args
, **kwargs
):
203 """SystemSettings_GetScreenType() -> int"""
204 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
206 def SystemSettings_SetScreenType(*args
, **kwargs
):
207 """SystemSettings_SetScreenType(int screen)"""
208 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
210 class SystemOptions(_core
.Object
):
211 """Proxy of C++ SystemOptions class"""
213 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
214 def __init__(self
, *args
, **kwargs
):
215 """__init__(self) -> SystemOptions"""
216 newobj
= _misc_
.new_SystemOptions(*args
, **kwargs
)
217 self
.this
= newobj
.this
220 def SetOption(*args
, **kwargs
):
221 """SetOption(String name, String value)"""
222 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
224 SetOption
= staticmethod(SetOption
)
225 def SetOptionInt(*args
, **kwargs
):
226 """SetOptionInt(String name, int value)"""
227 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
229 SetOptionInt
= staticmethod(SetOptionInt
)
230 def GetOption(*args
, **kwargs
):
231 """GetOption(String name) -> String"""
232 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
234 GetOption
= staticmethod(GetOption
)
235 def GetOptionInt(*args
, **kwargs
):
236 """GetOptionInt(String name) -> int"""
237 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
239 GetOptionInt
= staticmethod(GetOptionInt
)
240 def HasOption(*args
, **kwargs
):
241 """HasOption(String name) -> bool"""
242 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
244 HasOption
= staticmethod(HasOption
)
245 def IsFalse(*args
, **kwargs
):
246 """IsFalse(String name) -> bool"""
247 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
249 IsFalse
= staticmethod(IsFalse
)
251 class SystemOptionsPtr(SystemOptions
):
252 def __init__(self
, this
):
254 if not hasattr(self
,"thisown"): self
.thisown
= 0
255 self
.__class
__ = SystemOptions
256 _misc_
.SystemOptions_swigregister(SystemOptionsPtr
)
258 WINDOW_DEFAULT_VARIANT
= cvar
.WINDOW_DEFAULT_VARIANT
260 def SystemOptions_SetOption(*args
, **kwargs
):
261 """SystemOptions_SetOption(String name, String value)"""
262 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
264 def SystemOptions_SetOptionInt(*args
, **kwargs
):
265 """SystemOptions_SetOptionInt(String name, int value)"""
266 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
268 def SystemOptions_GetOption(*args
, **kwargs
):
269 """SystemOptions_GetOption(String name) -> String"""
270 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
272 def SystemOptions_GetOptionInt(*args
, **kwargs
):
273 """SystemOptions_GetOptionInt(String name) -> int"""
274 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
276 def SystemOptions_HasOption(*args
, **kwargs
):
277 """SystemOptions_HasOption(String name) -> bool"""
278 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
280 def SystemOptions_IsFalse(*args
, **kwargs
):
281 """SystemOptions_IsFalse(String name) -> bool"""
282 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
284 #---------------------------------------------------------------------------
287 def NewId(*args
, **kwargs
):
288 """NewId() -> long"""
289 return _misc_
.NewId(*args
, **kwargs
)
291 def RegisterId(*args
, **kwargs
):
292 """RegisterId(long id)"""
293 return _misc_
.RegisterId(*args
, **kwargs
)
295 def GetCurrentId(*args
, **kwargs
):
296 """GetCurrentId() -> long"""
297 return _misc_
.GetCurrentId(*args
, **kwargs
)
299 def IsStockID(*args
, **kwargs
):
300 """IsStockID(int id) -> bool"""
301 return _misc_
.IsStockID(*args
, **kwargs
)
303 def IsStockLabel(*args
, **kwargs
):
304 """IsStockLabel(int id, String label) -> bool"""
305 return _misc_
.IsStockLabel(*args
, **kwargs
)
307 def GetStockLabel(*args
, **kwargs
):
308 """GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String"""
309 return _misc_
.GetStockLabel(*args
, **kwargs
)
311 def Bell(*args
, **kwargs
):
313 return _misc_
.Bell(*args
, **kwargs
)
315 def EndBusyCursor(*args
, **kwargs
):
316 """EndBusyCursor()"""
317 return _misc_
.EndBusyCursor(*args
, **kwargs
)
319 def GetElapsedTime(*args
, **kwargs
):
320 """GetElapsedTime(bool resetTimer=True) -> long"""
321 return _misc_
.GetElapsedTime(*args
, **kwargs
)
323 def IsBusy(*args
, **kwargs
):
324 """IsBusy() -> bool"""
325 return _misc_
.IsBusy(*args
, **kwargs
)
327 def Now(*args
, **kwargs
):
328 """Now() -> String"""
329 return _misc_
.Now(*args
, **kwargs
)
331 def Shell(*args
, **kwargs
):
332 """Shell(String command=EmptyString) -> bool"""
333 return _misc_
.Shell(*args
, **kwargs
)
335 def StartTimer(*args
, **kwargs
):
337 return _misc_
.StartTimer(*args
, **kwargs
)
339 def GetOsVersion(*args
, **kwargs
):
340 """GetOsVersion() -> (platform, major, minor)"""
341 return _misc_
.GetOsVersion(*args
, **kwargs
)
343 def GetOsDescription(*args
, **kwargs
):
344 """GetOsDescription() -> String"""
345 return _misc_
.GetOsDescription(*args
, **kwargs
)
347 def GetFreeMemory(*args
, **kwargs
):
348 """GetFreeMemory() -> wxMemorySize"""
349 return _misc_
.GetFreeMemory(*args
, **kwargs
)
350 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
351 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
353 def Shutdown(*args
, **kwargs
):
354 """Shutdown(int wFlags) -> bool"""
355 return _misc_
.Shutdown(*args
, **kwargs
)
357 def Sleep(*args
, **kwargs
):
358 """Sleep(int secs)"""
359 return _misc_
.Sleep(*args
, **kwargs
)
361 def MilliSleep(*args
, **kwargs
):
362 """MilliSleep(unsigned long milliseconds)"""
363 return _misc_
.MilliSleep(*args
, **kwargs
)
365 def MicroSleep(*args
, **kwargs
):
366 """MicroSleep(unsigned long microseconds)"""
367 return _misc_
.MicroSleep(*args
, **kwargs
)
370 def EnableTopLevelWindows(*args
, **kwargs
):
371 """EnableTopLevelWindows(bool enable)"""
372 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
374 def StripMenuCodes(*args
, **kwargs
):
375 """StripMenuCodes(String in) -> String"""
376 return _misc_
.StripMenuCodes(*args
, **kwargs
)
378 def GetEmailAddress(*args
, **kwargs
):
379 """GetEmailAddress() -> String"""
380 return _misc_
.GetEmailAddress(*args
, **kwargs
)
382 def GetHostName(*args
, **kwargs
):
383 """GetHostName() -> String"""
384 return _misc_
.GetHostName(*args
, **kwargs
)
386 def GetFullHostName(*args
, **kwargs
):
387 """GetFullHostName() -> String"""
388 return _misc_
.GetFullHostName(*args
, **kwargs
)
390 def GetUserId(*args
, **kwargs
):
391 """GetUserId() -> String"""
392 return _misc_
.GetUserId(*args
, **kwargs
)
394 def GetUserName(*args
, **kwargs
):
395 """GetUserName() -> String"""
396 return _misc_
.GetUserName(*args
, **kwargs
)
398 def GetHomeDir(*args
, **kwargs
):
399 """GetHomeDir() -> String"""
400 return _misc_
.GetHomeDir(*args
, **kwargs
)
402 def GetUserHome(*args
, **kwargs
):
403 """GetUserHome(String user=EmptyString) -> String"""
404 return _misc_
.GetUserHome(*args
, **kwargs
)
406 def GetProcessId(*args
, **kwargs
):
407 """GetProcessId() -> unsigned long"""
408 return _misc_
.GetProcessId(*args
, **kwargs
)
410 def Trap(*args
, **kwargs
):
412 return _misc_
.Trap(*args
, **kwargs
)
414 def FileSelector(*args
, **kwargs
):
416 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
417 String default_filename=EmptyString,
418 String default_extension=EmptyString,
419 String wildcard=FileSelectorDefaultWildcardStr,
420 int flags=0, Window parent=None, int x=-1,
423 return _misc_
.FileSelector(*args
, **kwargs
)
425 def LoadFileSelector(*args
, **kwargs
):
427 LoadFileSelector(String what, String extension, String default_name=EmptyString,
428 Window parent=None) -> String
430 return _misc_
.LoadFileSelector(*args
, **kwargs
)
432 def SaveFileSelector(*args
, **kwargs
):
434 SaveFileSelector(String what, String extension, String default_name=EmptyString,
435 Window parent=None) -> String
437 return _misc_
.SaveFileSelector(*args
, **kwargs
)
439 def DirSelector(*args
, **kwargs
):
441 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
442 long style=DD_DEFAULT_STYLE,
443 Point pos=DefaultPosition, Window parent=None) -> String
445 return _misc_
.DirSelector(*args
, **kwargs
)
447 def GetTextFromUser(*args
, **kwargs
):
449 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
451 int x=-1, int y=-1, bool centre=True) -> String
453 return _misc_
.GetTextFromUser(*args
, **kwargs
)
455 def GetPasswordFromUser(*args
, **kwargs
):
457 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
458 Window parent=None) -> String
460 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
462 def GetSingleChoice(*args
, **kwargs
):
464 GetSingleChoice(String message, String caption, int choices, Window parent=None,
465 int x=-1, int y=-1, bool centre=True,
466 int width=150, int height=200) -> String
468 return _misc_
.GetSingleChoice(*args
, **kwargs
)
470 def GetSingleChoiceIndex(*args
, **kwargs
):
472 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
473 int x=-1, int y=-1, bool centre=True,
474 int width=150, int height=200) -> int
476 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
478 def MessageBox(*args
, **kwargs
):
480 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
481 Window parent=None, int x=-1,
484 return _misc_
.MessageBox(*args
, **kwargs
)
486 def ColourDisplay(*args
, **kwargs
):
487 """ColourDisplay() -> bool"""
488 return _misc_
.ColourDisplay(*args
, **kwargs
)
490 def DisplayDepth(*args
, **kwargs
):
491 """DisplayDepth() -> int"""
492 return _misc_
.DisplayDepth(*args
, **kwargs
)
494 def GetDisplayDepth(*args
, **kwargs
):
495 """GetDisplayDepth() -> int"""
496 return _misc_
.GetDisplayDepth(*args
, **kwargs
)
498 def DisplaySize(*args
, **kwargs
):
499 """DisplaySize() -> (width, height)"""
500 return _misc_
.DisplaySize(*args
, **kwargs
)
502 def GetDisplaySize(*args
, **kwargs
):
503 """GetDisplaySize() -> Size"""
504 return _misc_
.GetDisplaySize(*args
, **kwargs
)
506 def DisplaySizeMM(*args
, **kwargs
):
507 """DisplaySizeMM() -> (width, height)"""
508 return _misc_
.DisplaySizeMM(*args
, **kwargs
)
510 def GetDisplaySizeMM(*args
, **kwargs
):
511 """GetDisplaySizeMM() -> Size"""
512 return _misc_
.GetDisplaySizeMM(*args
, **kwargs
)
514 def ClientDisplayRect(*args
, **kwargs
):
515 """ClientDisplayRect() -> (x, y, width, height)"""
516 return _misc_
.ClientDisplayRect(*args
, **kwargs
)
518 def GetClientDisplayRect(*args
, **kwargs
):
519 """GetClientDisplayRect() -> Rect"""
520 return _misc_
.GetClientDisplayRect(*args
, **kwargs
)
522 def SetCursor(*args
, **kwargs
):
523 """SetCursor(Cursor cursor)"""
524 return _misc_
.SetCursor(*args
, **kwargs
)
526 def GetXDisplay(*args
, **kwargs
):
528 GetXDisplay() -> void
530 Returns a swigified pointer to the X11 display. Returns None on
533 return _misc_
.GetXDisplay(*args
, **kwargs
)
535 def BeginBusyCursor(*args
, **kwargs
):
536 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
537 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
539 def GetMousePosition(*args
, **kwargs
):
541 GetMousePosition() -> Point
543 Get the current mouse position on the screen.
545 return _misc_
.GetMousePosition(*args
, **kwargs
)
547 def FindWindowAtPointer(*args
, **kwargs
):
549 FindWindowAtPointer() -> Window
551 Returns the window currently under the mouse pointer, if it belongs to
552 this application. Otherwise it returns None.
554 return _misc_
.FindWindowAtPointer(*args
, **kwargs
)
556 def GetActiveWindow(*args
, **kwargs
):
558 GetActiveWindow() -> Window
560 Get the currently active window of this application, or None
562 return _misc_
.GetActiveWindow(*args
, **kwargs
)
564 def GenericFindWindowAtPoint(*args
, **kwargs
):
565 """GenericFindWindowAtPoint(Point pt) -> Window"""
566 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
568 def FindWindowAtPoint(*args
, **kwargs
):
569 """FindWindowAtPoint(Point pt) -> Window"""
570 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
572 def GetTopLevelParent(*args
, **kwargs
):
573 """GetTopLevelParent(Window win) -> Window"""
574 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
576 def LaunchDefaultBrowser(*args
, **kwargs
):
578 LaunchDefaultBrowser(String url) -> bool
580 Launches the user's default browser and tells it to open the location
581 at ``url``. Returns ``True`` if the application was successfully
584 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
586 def GetKeyState(*args
, **kwargs
):
588 GetKeyState(int key) -> bool
590 Get the state of a key (true if pressed or toggled on, false if not.)
591 This is generally most useful getting the state of the modifier or
592 toggle keys. On some platforms those may be the only keys that this
593 function is able to detect.
596 return _misc_
.GetKeyState(*args
, **kwargs
)
597 class MouseState(object):
599 `wx.MouseState` is used to hold information about mouse button and
600 modifier key states and is what is returned from `wx.GetMouseState`.
603 return "<%s.%s; proxy of C++ wxMouseState instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
604 def __init__(self
, *args
, **kwargs
):
606 __init__(self) -> MouseState
608 `wx.MouseState` is used to hold information about mouse button and
609 modifier key states and is what is returned from `wx.GetMouseState`.
611 newobj
= _misc_
.new_MouseState(*args
, **kwargs
)
612 self
.this
= newobj
.this
615 def __del__(self
, destroy
=_misc_
.delete_MouseState
):
618 if self
.thisown
: destroy(self
)
621 def GetX(*args
, **kwargs
):
622 """GetX(self) -> int"""
623 return _misc_
.MouseState_GetX(*args
, **kwargs
)
625 def GetY(*args
, **kwargs
):
626 """GetY(self) -> int"""
627 return _misc_
.MouseState_GetY(*args
, **kwargs
)
629 def LeftDown(*args
, **kwargs
):
630 """LeftDown(self) -> bool"""
631 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
633 def MiddleDown(*args
, **kwargs
):
634 """MiddleDown(self) -> bool"""
635 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
637 def RightDown(*args
, **kwargs
):
638 """RightDown(self) -> bool"""
639 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
641 def ControlDown(*args
, **kwargs
):
642 """ControlDown(self) -> bool"""
643 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
645 def ShiftDown(*args
, **kwargs
):
646 """ShiftDown(self) -> bool"""
647 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
649 def AltDown(*args
, **kwargs
):
650 """AltDown(self) -> bool"""
651 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
653 def MetaDown(*args
, **kwargs
):
654 """MetaDown(self) -> bool"""
655 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
657 def CmdDown(*args
, **kwargs
):
658 """CmdDown(self) -> bool"""
659 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
661 def SetX(*args
, **kwargs
):
662 """SetX(self, int x)"""
663 return _misc_
.MouseState_SetX(*args
, **kwargs
)
665 def SetY(*args
, **kwargs
):
666 """SetY(self, int y)"""
667 return _misc_
.MouseState_SetY(*args
, **kwargs
)
669 def SetLeftDown(*args
, **kwargs
):
670 """SetLeftDown(self, bool down)"""
671 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
673 def SetMiddleDown(*args
, **kwargs
):
674 """SetMiddleDown(self, bool down)"""
675 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
677 def SetRightDown(*args
, **kwargs
):
678 """SetRightDown(self, bool down)"""
679 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
681 def SetControlDown(*args
, **kwargs
):
682 """SetControlDown(self, bool down)"""
683 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
685 def SetShiftDown(*args
, **kwargs
):
686 """SetShiftDown(self, bool down)"""
687 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
689 def SetAltDown(*args
, **kwargs
):
690 """SetAltDown(self, bool down)"""
691 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
693 def SetMetaDown(*args
, **kwargs
):
694 """SetMetaDown(self, bool down)"""
695 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
697 x
= property(GetX
, SetX
)
698 y
= property(GetY
, SetY
)
699 leftDown
= property(LeftDown
, SetLeftDown
)
700 middleDown
= property(MiddleDown
, SetMiddleDown
)
701 rightDown
= property(RightDown
, SetRightDown
)
702 controlDown
= property(ControlDown
, SetControlDown
)
703 shiftDown
= property(ShiftDown
, SetShiftDown
)
704 altDown
= property(AltDown
, SetAltDown
)
705 metaDown
= property(MetaDown
, SetMetaDown
)
706 cmdDown
= property(CmdDown
)
709 class MouseStatePtr(MouseState
):
710 def __init__(self
, this
):
712 if not hasattr(self
,"thisown"): self
.thisown
= 0
713 self
.__class
__ = MouseState
714 _misc_
.MouseState_swigregister(MouseStatePtr
)
715 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
716 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
717 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
720 def GetMouseState(*args
, **kwargs
):
722 GetMouseState() -> MouseState
724 Returns the current state of the mouse. Returns an instance of a
725 `wx.MouseState` object that contains the current position of the mouse
726 pointer in screen coordinants, as well as boolean values indicating
727 the up/down status of the mouse buttons and the modifier keys.
729 return _misc_
.GetMouseState(*args
, **kwargs
)
731 def WakeUpMainThread(*args
, **kwargs
):
732 """WakeUpMainThread()"""
733 return _misc_
.WakeUpMainThread(*args
, **kwargs
)
735 def MutexGuiEnter(*args
, **kwargs
):
736 """MutexGuiEnter()"""
737 return _misc_
.MutexGuiEnter(*args
, **kwargs
)
739 def MutexGuiLeave(*args
, **kwargs
):
740 """MutexGuiLeave()"""
741 return _misc_
.MutexGuiLeave(*args
, **kwargs
)
742 class MutexGuiLocker(object):
743 """Proxy of C++ MutexGuiLocker class"""
745 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
746 def __init__(self
, *args
, **kwargs
):
747 """__init__(self) -> MutexGuiLocker"""
748 newobj
= _misc_
.new_MutexGuiLocker(*args
, **kwargs
)
749 self
.this
= newobj
.this
752 def __del__(self
, destroy
=_misc_
.delete_MutexGuiLocker
):
755 if self
.thisown
: destroy(self
)
759 class MutexGuiLockerPtr(MutexGuiLocker
):
760 def __init__(self
, this
):
762 if not hasattr(self
,"thisown"): self
.thisown
= 0
763 self
.__class
__ = MutexGuiLocker
764 _misc_
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
767 def Thread_IsMain(*args
, **kwargs
):
768 """Thread_IsMain() -> bool"""
769 return _misc_
.Thread_IsMain(*args
, **kwargs
)
770 #---------------------------------------------------------------------------
772 class ToolTip(_core
.Object
):
773 """Proxy of C++ ToolTip class"""
775 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
776 def __init__(self
, *args
, **kwargs
):
777 """__init__(self, String tip) -> ToolTip"""
778 newobj
= _misc_
.new_ToolTip(*args
, **kwargs
)
779 self
.this
= newobj
.this
782 def __del__(self
, destroy
=_misc_
.delete_ToolTip
):
785 if self
.thisown
: destroy(self
)
788 def SetTip(*args
, **kwargs
):
789 """SetTip(self, String tip)"""
790 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
792 def GetTip(*args
, **kwargs
):
793 """GetTip(self) -> String"""
794 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
796 def GetWindow(*args
, **kwargs
):
797 """GetWindow(self) -> Window"""
798 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
800 def Enable(*args
, **kwargs
):
801 """Enable(bool flag)"""
802 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
804 Enable
= staticmethod(Enable
)
805 def SetDelay(*args
, **kwargs
):
806 """SetDelay(long milliseconds)"""
807 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
809 SetDelay
= staticmethod(SetDelay
)
811 class ToolTipPtr(ToolTip
):
812 def __init__(self
, this
):
814 if not hasattr(self
,"thisown"): self
.thisown
= 0
815 self
.__class
__ = ToolTip
816 _misc_
.ToolTip_swigregister(ToolTipPtr
)
818 def ToolTip_Enable(*args
, **kwargs
):
819 """ToolTip_Enable(bool flag)"""
820 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
822 def ToolTip_SetDelay(*args
, **kwargs
):
823 """ToolTip_SetDelay(long milliseconds)"""
824 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
827 """Proxy of C++ Caret class"""
829 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
830 def __init__(self
, *args
, **kwargs
):
831 """__init__(self, Window window, Size size) -> Caret"""
832 newobj
= _misc_
.new_Caret(*args
, **kwargs
)
833 self
.this
= newobj
.this
836 def __del__(self
, destroy
=_misc_
.delete_Caret
):
839 if self
.thisown
: destroy(self
)
842 def Destroy(*args
, **kwargs
):
846 Deletes the C++ object this Python object is a proxy for.
848 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
852 def IsOk(*args
, **kwargs
):
853 """IsOk(self) -> bool"""
854 return _misc_
.Caret_IsOk(*args
, **kwargs
)
856 def IsVisible(*args
, **kwargs
):
857 """IsVisible(self) -> bool"""
858 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
860 def GetPosition(*args
, **kwargs
):
861 """GetPosition(self) -> Point"""
862 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
864 def GetPositionTuple(*args
, **kwargs
):
865 """GetPositionTuple() -> (x,y)"""
866 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
868 def GetSize(*args
, **kwargs
):
869 """GetSize(self) -> Size"""
870 return _misc_
.Caret_GetSize(*args
, **kwargs
)
872 def GetSizeTuple(*args
, **kwargs
):
873 """GetSizeTuple() -> (width, height)"""
874 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
876 def GetWindow(*args
, **kwargs
):
877 """GetWindow(self) -> Window"""
878 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
880 def MoveXY(*args
, **kwargs
):
881 """MoveXY(self, int x, int y)"""
882 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
884 def Move(*args
, **kwargs
):
885 """Move(self, Point pt)"""
886 return _misc_
.Caret_Move(*args
, **kwargs
)
888 def SetSizeWH(*args
, **kwargs
):
889 """SetSizeWH(self, int width, int height)"""
890 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
892 def SetSize(*args
, **kwargs
):
893 """SetSize(self, Size size)"""
894 return _misc_
.Caret_SetSize(*args
, **kwargs
)
896 def Show(*args
, **kwargs
):
897 """Show(self, int show=True)"""
898 return _misc_
.Caret_Show(*args
, **kwargs
)
900 def Hide(*args
, **kwargs
):
902 return _misc_
.Caret_Hide(*args
, **kwargs
)
904 def __nonzero__(self
): return self
.IsOk()
905 def GetBlinkTime(*args
, **kwargs
):
906 """GetBlinkTime() -> int"""
907 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
909 GetBlinkTime
= staticmethod(GetBlinkTime
)
910 def SetBlinkTime(*args
, **kwargs
):
911 """SetBlinkTime(int milliseconds)"""
912 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
914 SetBlinkTime
= staticmethod(SetBlinkTime
)
916 class CaretPtr(Caret
):
917 def __init__(self
, this
):
919 if not hasattr(self
,"thisown"): self
.thisown
= 0
920 self
.__class
__ = Caret
921 _misc_
.Caret_swigregister(CaretPtr
)
923 def Caret_GetBlinkTime(*args
, **kwargs
):
924 """Caret_GetBlinkTime() -> int"""
925 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
927 def Caret_SetBlinkTime(*args
, **kwargs
):
928 """Caret_SetBlinkTime(int milliseconds)"""
929 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
931 class BusyCursor(object):
932 """Proxy of C++ BusyCursor class"""
934 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
935 def __init__(self
, *args
, **kwargs
):
936 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
937 newobj
= _misc_
.new_BusyCursor(*args
, **kwargs
)
938 self
.this
= newobj
.this
941 def __del__(self
, destroy
=_misc_
.delete_BusyCursor
):
944 if self
.thisown
: destroy(self
)
948 class BusyCursorPtr(BusyCursor
):
949 def __init__(self
, this
):
951 if not hasattr(self
,"thisown"): self
.thisown
= 0
952 self
.__class
__ = BusyCursor
953 _misc_
.BusyCursor_swigregister(BusyCursorPtr
)
955 class WindowDisabler(object):
956 """Proxy of C++ WindowDisabler class"""
958 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
959 def __init__(self
, *args
, **kwargs
):
960 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
961 newobj
= _misc_
.new_WindowDisabler(*args
, **kwargs
)
962 self
.this
= newobj
.this
965 def __del__(self
, destroy
=_misc_
.delete_WindowDisabler
):
968 if self
.thisown
: destroy(self
)
972 class WindowDisablerPtr(WindowDisabler
):
973 def __init__(self
, this
):
975 if not hasattr(self
,"thisown"): self
.thisown
= 0
976 self
.__class
__ = WindowDisabler
977 _misc_
.WindowDisabler_swigregister(WindowDisablerPtr
)
979 class BusyInfo(_core
.Object
):
980 """Proxy of C++ BusyInfo class"""
982 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
983 def __init__(self
, *args
, **kwargs
):
984 """__init__(self, String message) -> BusyInfo"""
985 newobj
= _misc_
.new_BusyInfo(*args
, **kwargs
)
986 self
.this
= newobj
.this
989 def __del__(self
, destroy
=_misc_
.delete_BusyInfo
):
992 if self
.thisown
: destroy(self
)
996 class BusyInfoPtr(BusyInfo
):
997 def __init__(self
, this
):
999 if not hasattr(self
,"thisown"): self
.thisown
= 0
1000 self
.__class
__ = BusyInfo
1001 _misc_
.BusyInfo_swigregister(BusyInfoPtr
)
1003 class StopWatch(object):
1004 """Proxy of C++ StopWatch class"""
1006 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1007 def __init__(self
, *args
, **kwargs
):
1008 """__init__(self) -> StopWatch"""
1009 newobj
= _misc_
.new_StopWatch(*args
, **kwargs
)
1010 self
.this
= newobj
.this
1013 def Start(*args
, **kwargs
):
1014 """Start(self, long t0=0)"""
1015 return _misc_
.StopWatch_Start(*args
, **kwargs
)
1017 def Pause(*args
, **kwargs
):
1019 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
1021 def Resume(*args
, **kwargs
):
1023 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
1025 def Time(*args
, **kwargs
):
1026 """Time(self) -> long"""
1027 return _misc_
.StopWatch_Time(*args
, **kwargs
)
1030 class StopWatchPtr(StopWatch
):
1031 def __init__(self
, this
):
1033 if not hasattr(self
,"thisown"): self
.thisown
= 0
1034 self
.__class
__ = StopWatch
1035 _misc_
.StopWatch_swigregister(StopWatchPtr
)
1037 class FileHistory(_core
.Object
):
1038 """Proxy of C++ FileHistory class"""
1040 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1041 def __init__(self
, *args
, **kwargs
):
1042 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
1043 newobj
= _misc_
.new_FileHistory(*args
, **kwargs
)
1044 self
.this
= newobj
.this
1047 def __del__(self
, destroy
=_misc_
.delete_FileHistory
):
1050 if self
.thisown
: destroy(self
)
1053 def AddFileToHistory(*args
, **kwargs
):
1054 """AddFileToHistory(self, String file)"""
1055 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
1057 def RemoveFileFromHistory(*args
, **kwargs
):
1058 """RemoveFileFromHistory(self, int i)"""
1059 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
1061 def GetMaxFiles(*args
, **kwargs
):
1062 """GetMaxFiles(self) -> int"""
1063 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
1065 def UseMenu(*args
, **kwargs
):
1066 """UseMenu(self, Menu menu)"""
1067 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
1069 def RemoveMenu(*args
, **kwargs
):
1070 """RemoveMenu(self, Menu menu)"""
1071 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
1073 def Load(*args
, **kwargs
):
1074 """Load(self, ConfigBase config)"""
1075 return _misc_
.FileHistory_Load(*args
, **kwargs
)
1077 def Save(*args
, **kwargs
):
1078 """Save(self, ConfigBase config)"""
1079 return _misc_
.FileHistory_Save(*args
, **kwargs
)
1081 def AddFilesToMenu(*args
, **kwargs
):
1082 """AddFilesToMenu(self)"""
1083 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
1085 def AddFilesToThisMenu(*args
, **kwargs
):
1086 """AddFilesToThisMenu(self, Menu menu)"""
1087 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
1089 def GetHistoryFile(*args
, **kwargs
):
1090 """GetHistoryFile(self, int i) -> String"""
1091 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
1093 def GetCount(*args
, **kwargs
):
1094 """GetCount(self) -> int"""
1095 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
1097 GetNoHistoryFiles
= GetCount
1099 class FileHistoryPtr(FileHistory
):
1100 def __init__(self
, this
):
1102 if not hasattr(self
,"thisown"): self
.thisown
= 0
1103 self
.__class
__ = FileHistory
1104 _misc_
.FileHistory_swigregister(FileHistoryPtr
)
1106 class SingleInstanceChecker(object):
1107 """Proxy of C++ SingleInstanceChecker class"""
1109 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1110 def __init__(self
, *args
, **kwargs
):
1111 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1112 newobj
= _misc_
.new_SingleInstanceChecker(*args
, **kwargs
)
1113 self
.this
= newobj
.this
1116 def __del__(self
, destroy
=_misc_
.delete_SingleInstanceChecker
):
1119 if self
.thisown
: destroy(self
)
1122 def Create(*args
, **kwargs
):
1123 """Create(self, String name, String path=EmptyString) -> bool"""
1124 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1126 def IsAnotherRunning(*args
, **kwargs
):
1127 """IsAnotherRunning(self) -> bool"""
1128 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1131 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
1132 def __init__(self
, this
):
1134 if not hasattr(self
,"thisown"): self
.thisown
= 0
1135 self
.__class
__ = SingleInstanceChecker
1136 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
1138 def PreSingleInstanceChecker(*args
, **kwargs
):
1139 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1140 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1145 def DrawWindowOnDC(*args
, **kwargs
):
1146 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1147 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1148 #---------------------------------------------------------------------------
1150 class TipProvider(object):
1151 """Proxy of C++ TipProvider class"""
1152 def __init__(self
): raise RuntimeError, "No constructor defined"
1154 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1155 def __del__(self
, destroy
=_misc_
.delete_TipProvider
):
1158 if self
.thisown
: destroy(self
)
1161 def GetTip(*args
, **kwargs
):
1162 """GetTip(self) -> String"""
1163 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1165 def GetCurrentTip(*args
, **kwargs
):
1166 """GetCurrentTip(self) -> size_t"""
1167 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1169 def PreprocessTip(*args
, **kwargs
):
1170 """PreprocessTip(self, String tip) -> String"""
1171 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1174 class TipProviderPtr(TipProvider
):
1175 def __init__(self
, this
):
1177 if not hasattr(self
,"thisown"): self
.thisown
= 0
1178 self
.__class
__ = TipProvider
1179 _misc_
.TipProvider_swigregister(TipProviderPtr
)
1181 class PyTipProvider(TipProvider
):
1182 """Proxy of C++ PyTipProvider class"""
1184 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1185 def __init__(self
, *args
, **kwargs
):
1186 """__init__(self, size_t currentTip) -> PyTipProvider"""
1187 newobj
= _misc_
.new_PyTipProvider(*args
, **kwargs
)
1188 self
.this
= newobj
.this
1191 self
._setCallbackInfo
(self
, PyTipProvider
)
1193 def _setCallbackInfo(*args
, **kwargs
):
1194 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1195 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1198 class PyTipProviderPtr(PyTipProvider
):
1199 def __init__(self
, this
):
1201 if not hasattr(self
,"thisown"): self
.thisown
= 0
1202 self
.__class
__ = PyTipProvider
1203 _misc_
.PyTipProvider_swigregister(PyTipProviderPtr
)
1206 def ShowTip(*args
, **kwargs
):
1207 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1208 return _misc_
.ShowTip(*args
, **kwargs
)
1210 def CreateFileTipProvider(*args
, **kwargs
):
1211 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1212 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1213 #---------------------------------------------------------------------------
1215 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1216 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1217 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1218 class Timer(_core
.EvtHandler
):
1219 """Proxy of C++ Timer class"""
1221 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1222 def __init__(self
, *args
, **kwargs
):
1223 """__init__(self, EvtHandler owner=None, int id=-1) -> Timer"""
1224 newobj
= _misc_
.new_Timer(*args
, **kwargs
)
1225 self
.this
= newobj
.this
1228 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1230 def __del__(self
, destroy
=_misc_
.delete_Timer
):
1233 if self
.thisown
: destroy(self
)
1236 def _setCallbackInfo(*args
, **kwargs
):
1237 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1238 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1240 def SetOwner(*args
, **kwargs
):
1241 """SetOwner(self, EvtHandler owner, int id=-1)"""
1242 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1244 def GetOwner(*args
, **kwargs
):
1245 """GetOwner(self) -> EvtHandler"""
1246 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1248 def Start(*args
, **kwargs
):
1249 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1250 return _misc_
.Timer_Start(*args
, **kwargs
)
1252 def Stop(*args
, **kwargs
):
1254 return _misc_
.Timer_Stop(*args
, **kwargs
)
1256 def Notify(*args
, **kwargs
):
1258 return _misc_
.Timer_Notify(*args
, **kwargs
)
1260 def IsRunning(*args
, **kwargs
):
1261 """IsRunning(self) -> bool"""
1262 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1264 def GetInterval(*args
, **kwargs
):
1265 """GetInterval(self) -> int"""
1266 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1268 def IsOneShot(*args
, **kwargs
):
1269 """IsOneShot(self) -> bool"""
1270 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1272 def GetId(*args
, **kwargs
):
1273 """GetId(self) -> int"""
1274 return _misc_
.Timer_GetId(*args
, **kwargs
)
1277 """NO-OP: Timers must be destroyed by normal refrence counting"""
1281 class TimerPtr(Timer
):
1282 def __init__(self
, this
):
1284 if not hasattr(self
,"thisown"): self
.thisown
= 0
1285 self
.__class
__ = Timer
1286 _misc_
.Timer_swigregister(TimerPtr
)
1288 # For backwards compatibility with 2.4
1289 class PyTimer(Timer
):
1290 def __init__(self
, notify
):
1291 Timer
.__init
__(self
)
1292 self
.notify
= notify
1299 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1302 class TimerEvent(_core
.Event
):
1303 """Proxy of C++ TimerEvent class"""
1305 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1306 def __init__(self
, *args
, **kwargs
):
1307 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1308 newobj
= _misc_
.new_TimerEvent(*args
, **kwargs
)
1309 self
.this
= newobj
.this
1312 def GetInterval(*args
, **kwargs
):
1313 """GetInterval(self) -> int"""
1314 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1317 class TimerEventPtr(TimerEvent
):
1318 def __init__(self
, this
):
1320 if not hasattr(self
,"thisown"): self
.thisown
= 0
1321 self
.__class
__ = TimerEvent
1322 _misc_
.TimerEvent_swigregister(TimerEventPtr
)
1324 class TimerRunner(object):
1325 """Proxy of C++ TimerRunner class"""
1327 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1328 def __init__(self
, *args
):
1330 __init__(self, wxTimer timer) -> TimerRunner
1331 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1333 newobj
= _misc_
.new_TimerRunner(*args
)
1334 self
.this
= newobj
.this
1337 def __del__(self
, destroy
=_misc_
.delete_TimerRunner
):
1340 if self
.thisown
: destroy(self
)
1343 def Start(*args
, **kwargs
):
1344 """Start(self, int milli, bool oneShot=False)"""
1345 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1348 class TimerRunnerPtr(TimerRunner
):
1349 def __init__(self
, this
):
1351 if not hasattr(self
,"thisown"): self
.thisown
= 0
1352 self
.__class
__ = TimerRunner
1353 _misc_
.TimerRunner_swigregister(TimerRunnerPtr
)
1355 #---------------------------------------------------------------------------
1357 LOG_FatalError
= _misc_
.LOG_FatalError
1358 LOG_Error
= _misc_
.LOG_Error
1359 LOG_Warning
= _misc_
.LOG_Warning
1360 LOG_Message
= _misc_
.LOG_Message
1361 LOG_Status
= _misc_
.LOG_Status
1362 LOG_Info
= _misc_
.LOG_Info
1363 LOG_Debug
= _misc_
.LOG_Debug
1364 LOG_Trace
= _misc_
.LOG_Trace
1365 LOG_Progress
= _misc_
.LOG_Progress
1366 LOG_User
= _misc_
.LOG_User
1367 LOG_Max
= _misc_
.LOG_Max
1368 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1369 TRACE_Messages
= _misc_
.TRACE_Messages
1370 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1371 TRACE_RefCount
= _misc_
.TRACE_RefCount
1372 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1373 TraceMemAlloc
= _misc_
.TraceMemAlloc
1374 TraceMessages
= _misc_
.TraceMessages
1375 TraceResAlloc
= _misc_
.TraceResAlloc
1376 TraceRefCount
= _misc_
.TraceRefCount
1377 TraceOleCalls
= _misc_
.TraceOleCalls
1379 """Proxy of C++ Log class"""
1381 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1382 def __init__(self
, *args
, **kwargs
):
1383 """__init__(self) -> Log"""
1384 newobj
= _misc_
.new_Log(*args
, **kwargs
)
1385 self
.this
= newobj
.this
1388 def __del__(self
, destroy
=_misc_
.delete_Log
):
1391 if self
.thisown
: destroy(self
)
1394 def IsEnabled(*args
, **kwargs
):
1395 """IsEnabled() -> bool"""
1396 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1398 IsEnabled
= staticmethod(IsEnabled
)
1399 def EnableLogging(*args
, **kwargs
):
1400 """EnableLogging(bool doIt=True) -> bool"""
1401 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1403 EnableLogging
= staticmethod(EnableLogging
)
1404 def OnLog(*args
, **kwargs
):
1405 """OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1406 return _misc_
.Log_OnLog(*args
, **kwargs
)
1408 OnLog
= staticmethod(OnLog
)
1409 def Flush(*args
, **kwargs
):
1411 return _misc_
.Log_Flush(*args
, **kwargs
)
1413 def FlushActive(*args
, **kwargs
):
1415 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1417 FlushActive
= staticmethod(FlushActive
)
1418 def GetActiveTarget(*args
, **kwargs
):
1419 """GetActiveTarget() -> Log"""
1420 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1422 GetActiveTarget
= staticmethod(GetActiveTarget
)
1423 def SetActiveTarget(*args
, **kwargs
):
1424 """SetActiveTarget(Log pLogger) -> Log"""
1425 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1427 SetActiveTarget
= staticmethod(SetActiveTarget
)
1428 def Suspend(*args
, **kwargs
):
1430 return _misc_
.Log_Suspend(*args
, **kwargs
)
1432 Suspend
= staticmethod(Suspend
)
1433 def Resume(*args
, **kwargs
):
1435 return _misc_
.Log_Resume(*args
, **kwargs
)
1437 Resume
= staticmethod(Resume
)
1438 def SetVerbose(*args
, **kwargs
):
1439 """SetVerbose(bool bVerbose=True)"""
1440 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1442 SetVerbose
= staticmethod(SetVerbose
)
1443 def SetLogLevel(*args
, **kwargs
):
1444 """SetLogLevel(wxLogLevel logLevel)"""
1445 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1447 SetLogLevel
= staticmethod(SetLogLevel
)
1448 def DontCreateOnDemand(*args
, **kwargs
):
1449 """DontCreateOnDemand()"""
1450 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1452 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1453 def SetTraceMask(*args
, **kwargs
):
1454 """SetTraceMask(wxTraceMask ulMask)"""
1455 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1457 SetTraceMask
= staticmethod(SetTraceMask
)
1458 def AddTraceMask(*args
, **kwargs
):
1459 """AddTraceMask(String str)"""
1460 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1462 AddTraceMask
= staticmethod(AddTraceMask
)
1463 def RemoveTraceMask(*args
, **kwargs
):
1464 """RemoveTraceMask(String str)"""
1465 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1467 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1468 def ClearTraceMasks(*args
, **kwargs
):
1469 """ClearTraceMasks()"""
1470 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1472 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1473 def GetTraceMasks(*args
, **kwargs
):
1474 """GetTraceMasks() -> wxArrayString"""
1475 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1477 GetTraceMasks
= staticmethod(GetTraceMasks
)
1478 def SetTimestamp(*args
, **kwargs
):
1479 """SetTimestamp(wxChar ts)"""
1480 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1482 SetTimestamp
= staticmethod(SetTimestamp
)
1483 def GetVerbose(*args
, **kwargs
):
1484 """GetVerbose() -> bool"""
1485 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1487 GetVerbose
= staticmethod(GetVerbose
)
1488 def GetTraceMask(*args
, **kwargs
):
1489 """GetTraceMask() -> wxTraceMask"""
1490 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1492 GetTraceMask
= staticmethod(GetTraceMask
)
1493 def IsAllowedTraceMask(*args
, **kwargs
):
1494 """IsAllowedTraceMask(wxChar mask) -> bool"""
1495 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1497 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1498 def GetLogLevel(*args
, **kwargs
):
1499 """GetLogLevel() -> wxLogLevel"""
1500 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1502 GetLogLevel
= staticmethod(GetLogLevel
)
1503 def GetTimestamp(*args
, **kwargs
):
1504 """GetTimestamp() -> wxChar"""
1505 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1507 GetTimestamp
= staticmethod(GetTimestamp
)
1508 def TimeStamp(*args
, **kwargs
):
1509 """TimeStamp() -> String"""
1510 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1512 TimeStamp
= staticmethod(TimeStamp
)
1513 def Destroy(*args
, **kwargs
):
1515 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1521 def __init__(self
, this
):
1523 if not hasattr(self
,"thisown"): self
.thisown
= 0
1524 self
.__class
__ = Log
1525 _misc_
.Log_swigregister(LogPtr
)
1527 def Log_IsEnabled(*args
, **kwargs
):
1528 """Log_IsEnabled() -> bool"""
1529 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1531 def Log_EnableLogging(*args
, **kwargs
):
1532 """Log_EnableLogging(bool doIt=True) -> bool"""
1533 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1535 def Log_OnLog(*args
, **kwargs
):
1536 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1537 return _misc_
.Log_OnLog(*args
, **kwargs
)
1539 def Log_FlushActive(*args
, **kwargs
):
1540 """Log_FlushActive()"""
1541 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1543 def Log_GetActiveTarget(*args
, **kwargs
):
1544 """Log_GetActiveTarget() -> Log"""
1545 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1547 def Log_SetActiveTarget(*args
, **kwargs
):
1548 """Log_SetActiveTarget(Log pLogger) -> Log"""
1549 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1551 def Log_Suspend(*args
, **kwargs
):
1553 return _misc_
.Log_Suspend(*args
, **kwargs
)
1555 def Log_Resume(*args
, **kwargs
):
1557 return _misc_
.Log_Resume(*args
, **kwargs
)
1559 def Log_SetVerbose(*args
, **kwargs
):
1560 """Log_SetVerbose(bool bVerbose=True)"""
1561 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1563 def Log_SetLogLevel(*args
, **kwargs
):
1564 """Log_SetLogLevel(wxLogLevel logLevel)"""
1565 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1567 def Log_DontCreateOnDemand(*args
, **kwargs
):
1568 """Log_DontCreateOnDemand()"""
1569 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1571 def Log_SetTraceMask(*args
, **kwargs
):
1572 """Log_SetTraceMask(wxTraceMask ulMask)"""
1573 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1575 def Log_AddTraceMask(*args
, **kwargs
):
1576 """Log_AddTraceMask(String str)"""
1577 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1579 def Log_RemoveTraceMask(*args
, **kwargs
):
1580 """Log_RemoveTraceMask(String str)"""
1581 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1583 def Log_ClearTraceMasks(*args
, **kwargs
):
1584 """Log_ClearTraceMasks()"""
1585 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1587 def Log_GetTraceMasks(*args
, **kwargs
):
1588 """Log_GetTraceMasks() -> wxArrayString"""
1589 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1591 def Log_SetTimestamp(*args
, **kwargs
):
1592 """Log_SetTimestamp(wxChar ts)"""
1593 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1595 def Log_GetVerbose(*args
, **kwargs
):
1596 """Log_GetVerbose() -> bool"""
1597 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1599 def Log_GetTraceMask(*args
, **kwargs
):
1600 """Log_GetTraceMask() -> wxTraceMask"""
1601 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1603 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1604 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1605 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1607 def Log_GetLogLevel(*args
, **kwargs
):
1608 """Log_GetLogLevel() -> wxLogLevel"""
1609 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1611 def Log_GetTimestamp(*args
, **kwargs
):
1612 """Log_GetTimestamp() -> wxChar"""
1613 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1615 def Log_TimeStamp(*args
, **kwargs
):
1616 """Log_TimeStamp() -> String"""
1617 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1619 class LogStderr(Log
):
1620 """Proxy of C++ LogStderr class"""
1622 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1623 def __init__(self
, *args
, **kwargs
):
1624 """__init__(self) -> LogStderr"""
1625 newobj
= _misc_
.new_LogStderr(*args
, **kwargs
)
1626 self
.this
= newobj
.this
1630 class LogStderrPtr(LogStderr
):
1631 def __init__(self
, this
):
1633 if not hasattr(self
,"thisown"): self
.thisown
= 0
1634 self
.__class
__ = LogStderr
1635 _misc_
.LogStderr_swigregister(LogStderrPtr
)
1637 class LogTextCtrl(Log
):
1638 """Proxy of C++ LogTextCtrl class"""
1640 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1641 def __init__(self
, *args
, **kwargs
):
1642 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1643 newobj
= _misc_
.new_LogTextCtrl(*args
, **kwargs
)
1644 self
.this
= newobj
.this
1648 class LogTextCtrlPtr(LogTextCtrl
):
1649 def __init__(self
, this
):
1651 if not hasattr(self
,"thisown"): self
.thisown
= 0
1652 self
.__class
__ = LogTextCtrl
1653 _misc_
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1656 """Proxy of C++ LogGui class"""
1658 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1659 def __init__(self
, *args
, **kwargs
):
1660 """__init__(self) -> LogGui"""
1661 newobj
= _misc_
.new_LogGui(*args
, **kwargs
)
1662 self
.this
= newobj
.this
1666 class LogGuiPtr(LogGui
):
1667 def __init__(self
, this
):
1669 if not hasattr(self
,"thisown"): self
.thisown
= 0
1670 self
.__class
__ = LogGui
1671 _misc_
.LogGui_swigregister(LogGuiPtr
)
1673 class LogWindow(Log
):
1674 """Proxy of C++ LogWindow class"""
1676 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1677 def __init__(self
, *args
, **kwargs
):
1678 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1679 newobj
= _misc_
.new_LogWindow(*args
, **kwargs
)
1680 self
.this
= newobj
.this
1683 def Show(*args
, **kwargs
):
1684 """Show(self, bool bShow=True)"""
1685 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1687 def GetFrame(*args
, **kwargs
):
1688 """GetFrame(self) -> wxFrame"""
1689 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1691 def GetOldLog(*args
, **kwargs
):
1692 """GetOldLog(self) -> Log"""
1693 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1695 def IsPassingMessages(*args
, **kwargs
):
1696 """IsPassingMessages(self) -> bool"""
1697 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1699 def PassMessages(*args
, **kwargs
):
1700 """PassMessages(self, bool bDoPass)"""
1701 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1704 class LogWindowPtr(LogWindow
):
1705 def __init__(self
, this
):
1707 if not hasattr(self
,"thisown"): self
.thisown
= 0
1708 self
.__class
__ = LogWindow
1709 _misc_
.LogWindow_swigregister(LogWindowPtr
)
1711 class LogChain(Log
):
1712 """Proxy of C++ LogChain class"""
1714 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1715 def __init__(self
, *args
, **kwargs
):
1716 """__init__(self, Log logger) -> LogChain"""
1717 newobj
= _misc_
.new_LogChain(*args
, **kwargs
)
1718 self
.this
= newobj
.this
1721 def SetLog(*args
, **kwargs
):
1722 """SetLog(self, Log logger)"""
1723 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1725 def PassMessages(*args
, **kwargs
):
1726 """PassMessages(self, bool bDoPass)"""
1727 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1729 def IsPassingMessages(*args
, **kwargs
):
1730 """IsPassingMessages(self) -> bool"""
1731 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1733 def GetOldLog(*args
, **kwargs
):
1734 """GetOldLog(self) -> Log"""
1735 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1738 class LogChainPtr(LogChain
):
1739 def __init__(self
, this
):
1741 if not hasattr(self
,"thisown"): self
.thisown
= 0
1742 self
.__class
__ = LogChain
1743 _misc_
.LogChain_swigregister(LogChainPtr
)
1745 class LogBuffer(Log
):
1746 """Proxy of C++ LogBuffer class"""
1748 return "<%s.%s; proxy of C++ wxLogBuffer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1749 def __init__(self
, *args
, **kwargs
):
1750 """__init__(self) -> LogBuffer"""
1751 newobj
= _misc_
.new_LogBuffer(*args
, **kwargs
)
1752 self
.this
= newobj
.this
1755 def GetBuffer(*args
, **kwargs
):
1756 """GetBuffer(self) -> String"""
1757 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1759 def Flush(*args
, **kwargs
):
1761 return _misc_
.LogBuffer_Flush(*args
, **kwargs
)
1764 class LogBufferPtr(LogBuffer
):
1765 def __init__(self
, this
):
1767 if not hasattr(self
,"thisown"): self
.thisown
= 0
1768 self
.__class
__ = LogBuffer
1769 _misc_
.LogBuffer_swigregister(LogBufferPtr
)
1772 def SysErrorCode(*args
, **kwargs
):
1773 """SysErrorCode() -> unsigned long"""
1774 return _misc_
.SysErrorCode(*args
, **kwargs
)
1776 def SysErrorMsg(*args
, **kwargs
):
1777 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1778 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1780 def LogFatalError(*args
, **kwargs
):
1781 """LogFatalError(String msg)"""
1782 return _misc_
.LogFatalError(*args
, **kwargs
)
1784 def LogError(*args
, **kwargs
):
1785 """LogError(String msg)"""
1786 return _misc_
.LogError(*args
, **kwargs
)
1788 def LogWarning(*args
, **kwargs
):
1789 """LogWarning(String msg)"""
1790 return _misc_
.LogWarning(*args
, **kwargs
)
1792 def LogMessage(*args
, **kwargs
):
1793 """LogMessage(String msg)"""
1794 return _misc_
.LogMessage(*args
, **kwargs
)
1796 def LogInfo(*args
, **kwargs
):
1797 """LogInfo(String msg)"""
1798 return _misc_
.LogInfo(*args
, **kwargs
)
1800 def LogDebug(*args
, **kwargs
):
1801 """LogDebug(String msg)"""
1802 return _misc_
.LogDebug(*args
, **kwargs
)
1804 def LogVerbose(*args
, **kwargs
):
1805 """LogVerbose(String msg)"""
1806 return _misc_
.LogVerbose(*args
, **kwargs
)
1808 def LogStatus(*args
, **kwargs
):
1809 """LogStatus(String msg)"""
1810 return _misc_
.LogStatus(*args
, **kwargs
)
1812 def LogStatusFrame(*args
, **kwargs
):
1813 """LogStatusFrame(wxFrame pFrame, String msg)"""
1814 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1816 def LogSysError(*args
, **kwargs
):
1817 """LogSysError(String msg)"""
1818 return _misc_
.LogSysError(*args
, **kwargs
)
1820 def LogGeneric(*args
, **kwargs
):
1821 """LogGeneric(unsigned long level, String msg)"""
1822 return _misc_
.LogGeneric(*args
, **kwargs
)
1824 def SafeShowMessage(*args
, **kwargs
):
1825 """SafeShowMessage(String title, String text)"""
1826 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1827 class LogNull(object):
1828 """Proxy of C++ LogNull class"""
1830 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1831 def __init__(self
, *args
, **kwargs
):
1832 """__init__(self) -> LogNull"""
1833 newobj
= _misc_
.new_LogNull(*args
, **kwargs
)
1834 self
.this
= newobj
.this
1837 def __del__(self
, destroy
=_misc_
.delete_LogNull
):
1840 if self
.thisown
: destroy(self
)
1844 class LogNullPtr(LogNull
):
1845 def __init__(self
, this
):
1847 if not hasattr(self
,"thisown"): self
.thisown
= 0
1848 self
.__class
__ = LogNull
1849 _misc_
.LogNull_swigregister(LogNullPtr
)
1851 def LogTrace(*args
):
1853 LogTrace(unsigned long mask, String msg)
1854 LogTrace(String mask, String msg)
1856 return _misc_
.LogTrace(*args
)
1859 """Proxy of C++ PyLog class"""
1861 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1862 def __init__(self
, *args
, **kwargs
):
1863 """__init__(self) -> PyLog"""
1864 newobj
= _misc_
.new_PyLog(*args
, **kwargs
)
1865 self
.this
= newobj
.this
1868 self
._setCallbackInfo
(self
, PyLog
)
1870 def _setCallbackInfo(*args
, **kwargs
):
1871 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1872 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1875 class PyLogPtr(PyLog
):
1876 def __init__(self
, this
):
1878 if not hasattr(self
,"thisown"): self
.thisown
= 0
1879 self
.__class
__ = PyLog
1880 _misc_
.PyLog_swigregister(PyLogPtr
)
1882 #---------------------------------------------------------------------------
1884 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1885 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1886 KILL_OK
= _misc_
.KILL_OK
1887 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1888 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1889 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1890 KILL_ERROR
= _misc_
.KILL_ERROR
1891 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1892 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1893 SIGNONE
= _misc_
.SIGNONE
1894 SIGHUP
= _misc_
.SIGHUP
1895 SIGINT
= _misc_
.SIGINT
1896 SIGQUIT
= _misc_
.SIGQUIT
1897 SIGILL
= _misc_
.SIGILL
1898 SIGTRAP
= _misc_
.SIGTRAP
1899 SIGABRT
= _misc_
.SIGABRT
1900 SIGIOT
= _misc_
.SIGIOT
1901 SIGEMT
= _misc_
.SIGEMT
1902 SIGFPE
= _misc_
.SIGFPE
1903 SIGKILL
= _misc_
.SIGKILL
1904 SIGBUS
= _misc_
.SIGBUS
1905 SIGSEGV
= _misc_
.SIGSEGV
1906 SIGSYS
= _misc_
.SIGSYS
1907 SIGPIPE
= _misc_
.SIGPIPE
1908 SIGALRM
= _misc_
.SIGALRM
1909 SIGTERM
= _misc_
.SIGTERM
1910 class Process(_core
.EvtHandler
):
1911 """Proxy of C++ Process class"""
1913 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1914 def Kill(*args
, **kwargs
):
1915 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1916 return _misc_
.Process_Kill(*args
, **kwargs
)
1918 Kill
= staticmethod(Kill
)
1919 def Exists(*args
, **kwargs
):
1920 """Exists(int pid) -> bool"""
1921 return _misc_
.Process_Exists(*args
, **kwargs
)
1923 Exists
= staticmethod(Exists
)
1924 def Open(*args
, **kwargs
):
1925 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1926 return _misc_
.Process_Open(*args
, **kwargs
)
1928 Open
= staticmethod(Open
)
1929 def __init__(self
, *args
, **kwargs
):
1930 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1931 newobj
= _misc_
.new_Process(*args
, **kwargs
)
1932 self
.this
= newobj
.this
1935 self
._setCallbackInfo
(self
, Process
)
1937 def _setCallbackInfo(*args
, **kwargs
):
1938 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1939 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1941 def OnTerminate(*args
, **kwargs
):
1942 """OnTerminate(self, int pid, int status)"""
1943 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1945 def base_OnTerminate(*args
, **kw
):
1946 return Process
.OnTerminate(*args
, **kw
)
1947 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1948 "Please use Process.OnTerminate instead.")
1950 def Redirect(*args
, **kwargs
):
1951 """Redirect(self)"""
1952 return _misc_
.Process_Redirect(*args
, **kwargs
)
1954 def IsRedirected(*args
, **kwargs
):
1955 """IsRedirected(self) -> bool"""
1956 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1958 def Detach(*args
, **kwargs
):
1960 return _misc_
.Process_Detach(*args
, **kwargs
)
1962 def GetInputStream(*args
, **kwargs
):
1963 """GetInputStream(self) -> InputStream"""
1964 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1966 def GetErrorStream(*args
, **kwargs
):
1967 """GetErrorStream(self) -> InputStream"""
1968 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1970 def GetOutputStream(*args
, **kwargs
):
1971 """GetOutputStream(self) -> OutputStream"""
1972 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1974 def CloseOutput(*args
, **kwargs
):
1975 """CloseOutput(self)"""
1976 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1978 def IsInputOpened(*args
, **kwargs
):
1979 """IsInputOpened(self) -> bool"""
1980 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1982 def IsInputAvailable(*args
, **kwargs
):
1983 """IsInputAvailable(self) -> bool"""
1984 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1986 def IsErrorAvailable(*args
, **kwargs
):
1987 """IsErrorAvailable(self) -> bool"""
1988 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1991 class ProcessPtr(Process
):
1992 def __init__(self
, this
):
1994 if not hasattr(self
,"thisown"): self
.thisown
= 0
1995 self
.__class
__ = Process
1996 _misc_
.Process_swigregister(ProcessPtr
)
1998 def Process_Kill(*args
, **kwargs
):
1999 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
2000 return _misc_
.Process_Kill(*args
, **kwargs
)
2002 def Process_Exists(*args
, **kwargs
):
2003 """Process_Exists(int pid) -> bool"""
2004 return _misc_
.Process_Exists(*args
, **kwargs
)
2006 def Process_Open(*args
, **kwargs
):
2007 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
2008 return _misc_
.Process_Open(*args
, **kwargs
)
2010 class ProcessEvent(_core
.Event
):
2011 """Proxy of C++ ProcessEvent class"""
2013 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2014 def __init__(self
, *args
, **kwargs
):
2015 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
2016 newobj
= _misc_
.new_ProcessEvent(*args
, **kwargs
)
2017 self
.this
= newobj
.this
2020 def GetPid(*args
, **kwargs
):
2021 """GetPid(self) -> int"""
2022 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
2024 def GetExitCode(*args
, **kwargs
):
2025 """GetExitCode(self) -> int"""
2026 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
2028 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
2029 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
2031 class ProcessEventPtr(ProcessEvent
):
2032 def __init__(self
, this
):
2034 if not hasattr(self
,"thisown"): self
.thisown
= 0
2035 self
.__class
__ = ProcessEvent
2036 _misc_
.ProcessEvent_swigregister(ProcessEventPtr
)
2038 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
2039 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
2041 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
2042 EXEC_SYNC
= _misc_
.EXEC_SYNC
2043 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
2044 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
2045 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
2047 def Execute(*args
, **kwargs
):
2048 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
2049 return _misc_
.Execute(*args
, **kwargs
)
2051 def Kill(*args
, **kwargs
):
2052 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
2053 return _misc_
.Kill(*args
, **kwargs
)
2054 #---------------------------------------------------------------------------
2056 JOYSTICK1
= _misc_
.JOYSTICK1
2057 JOYSTICK2
= _misc_
.JOYSTICK2
2058 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
2059 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
2060 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
2061 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
2062 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
2063 class Joystick(object):
2064 """Proxy of C++ Joystick class"""
2066 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2067 def __init__(self
, *args
, **kwargs
):
2068 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
2069 newobj
= _misc_
.new_Joystick(*args
, **kwargs
)
2070 self
.this
= newobj
.this
2073 def __del__(self
, destroy
=_misc_
.delete_Joystick
):
2076 if self
.thisown
: destroy(self
)
2079 def GetPosition(*args
, **kwargs
):
2080 """GetPosition(self) -> Point"""
2081 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
2083 def GetZPosition(*args
, **kwargs
):
2084 """GetZPosition(self) -> int"""
2085 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
2087 def GetButtonState(*args
, **kwargs
):
2088 """GetButtonState(self) -> int"""
2089 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
2091 def GetPOVPosition(*args
, **kwargs
):
2092 """GetPOVPosition(self) -> int"""
2093 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
2095 def GetPOVCTSPosition(*args
, **kwargs
):
2096 """GetPOVCTSPosition(self) -> int"""
2097 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
2099 def GetRudderPosition(*args
, **kwargs
):
2100 """GetRudderPosition(self) -> int"""
2101 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
2103 def GetUPosition(*args
, **kwargs
):
2104 """GetUPosition(self) -> int"""
2105 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
2107 def GetVPosition(*args
, **kwargs
):
2108 """GetVPosition(self) -> int"""
2109 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
2111 def GetMovementThreshold(*args
, **kwargs
):
2112 """GetMovementThreshold(self) -> int"""
2113 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
2115 def SetMovementThreshold(*args
, **kwargs
):
2116 """SetMovementThreshold(self, int threshold)"""
2117 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
2119 def IsOk(*args
, **kwargs
):
2120 """IsOk(self) -> bool"""
2121 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
2123 def GetNumberJoysticks(*args
, **kwargs
):
2124 """GetNumberJoysticks(self) -> int"""
2125 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
2127 def GetManufacturerId(*args
, **kwargs
):
2128 """GetManufacturerId(self) -> int"""
2129 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
2131 def GetProductId(*args
, **kwargs
):
2132 """GetProductId(self) -> int"""
2133 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
2135 def GetProductName(*args
, **kwargs
):
2136 """GetProductName(self) -> String"""
2137 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
2139 def GetXMin(*args
, **kwargs
):
2140 """GetXMin(self) -> int"""
2141 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
2143 def GetYMin(*args
, **kwargs
):
2144 """GetYMin(self) -> int"""
2145 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
2147 def GetZMin(*args
, **kwargs
):
2148 """GetZMin(self) -> int"""
2149 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
2151 def GetXMax(*args
, **kwargs
):
2152 """GetXMax(self) -> int"""
2153 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
2155 def GetYMax(*args
, **kwargs
):
2156 """GetYMax(self) -> int"""
2157 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
2159 def GetZMax(*args
, **kwargs
):
2160 """GetZMax(self) -> int"""
2161 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
2163 def GetNumberButtons(*args
, **kwargs
):
2164 """GetNumberButtons(self) -> int"""
2165 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
2167 def GetNumberAxes(*args
, **kwargs
):
2168 """GetNumberAxes(self) -> int"""
2169 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
2171 def GetMaxButtons(*args
, **kwargs
):
2172 """GetMaxButtons(self) -> int"""
2173 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
2175 def GetMaxAxes(*args
, **kwargs
):
2176 """GetMaxAxes(self) -> int"""
2177 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
2179 def GetPollingMin(*args
, **kwargs
):
2180 """GetPollingMin(self) -> int"""
2181 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
2183 def GetPollingMax(*args
, **kwargs
):
2184 """GetPollingMax(self) -> int"""
2185 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
2187 def GetRudderMin(*args
, **kwargs
):
2188 """GetRudderMin(self) -> int"""
2189 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
2191 def GetRudderMax(*args
, **kwargs
):
2192 """GetRudderMax(self) -> int"""
2193 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
2195 def GetUMin(*args
, **kwargs
):
2196 """GetUMin(self) -> int"""
2197 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
2199 def GetUMax(*args
, **kwargs
):
2200 """GetUMax(self) -> int"""
2201 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
2203 def GetVMin(*args
, **kwargs
):
2204 """GetVMin(self) -> int"""
2205 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
2207 def GetVMax(*args
, **kwargs
):
2208 """GetVMax(self) -> int"""
2209 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
2211 def HasRudder(*args
, **kwargs
):
2212 """HasRudder(self) -> bool"""
2213 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
2215 def HasZ(*args
, **kwargs
):
2216 """HasZ(self) -> bool"""
2217 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
2219 def HasU(*args
, **kwargs
):
2220 """HasU(self) -> bool"""
2221 return _misc_
.Joystick_HasU(*args
, **kwargs
)
2223 def HasV(*args
, **kwargs
):
2224 """HasV(self) -> bool"""
2225 return _misc_
.Joystick_HasV(*args
, **kwargs
)
2227 def HasPOV(*args
, **kwargs
):
2228 """HasPOV(self) -> bool"""
2229 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
2231 def HasPOV4Dir(*args
, **kwargs
):
2232 """HasPOV4Dir(self) -> bool"""
2233 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
2235 def HasPOVCTS(*args
, **kwargs
):
2236 """HasPOVCTS(self) -> bool"""
2237 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
2239 def SetCapture(*args
, **kwargs
):
2240 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2241 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2243 def ReleaseCapture(*args
, **kwargs
):
2244 """ReleaseCapture(self) -> bool"""
2245 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2247 def __nonzero__(self
): return self
.IsOk()
2249 class JoystickPtr(Joystick
):
2250 def __init__(self
, this
):
2252 if not hasattr(self
,"thisown"): self
.thisown
= 0
2253 self
.__class
__ = Joystick
2254 _misc_
.Joystick_swigregister(JoystickPtr
)
2256 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2257 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2258 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2259 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2260 class JoystickEvent(_core
.Event
):
2261 """Proxy of C++ JoystickEvent class"""
2263 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2264 def __init__(self
, *args
, **kwargs
):
2266 __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2267 int change=0) -> JoystickEvent
2269 newobj
= _misc_
.new_JoystickEvent(*args
, **kwargs
)
2270 self
.this
= newobj
.this
2273 def GetPosition(*args
, **kwargs
):
2274 """GetPosition(self) -> Point"""
2275 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2277 def GetZPosition(*args
, **kwargs
):
2278 """GetZPosition(self) -> int"""
2279 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2281 def GetButtonState(*args
, **kwargs
):
2282 """GetButtonState(self) -> int"""
2283 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2285 def GetButtonChange(*args
, **kwargs
):
2286 """GetButtonChange(self) -> int"""
2287 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2289 def GetJoystick(*args
, **kwargs
):
2290 """GetJoystick(self) -> int"""
2291 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2293 def SetJoystick(*args
, **kwargs
):
2294 """SetJoystick(self, int stick)"""
2295 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2297 def SetButtonState(*args
, **kwargs
):
2298 """SetButtonState(self, int state)"""
2299 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2301 def SetButtonChange(*args
, **kwargs
):
2302 """SetButtonChange(self, int change)"""
2303 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2305 def SetPosition(*args
, **kwargs
):
2306 """SetPosition(self, Point pos)"""
2307 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2309 def SetZPosition(*args
, **kwargs
):
2310 """SetZPosition(self, int zPos)"""
2311 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2313 def IsButton(*args
, **kwargs
):
2314 """IsButton(self) -> bool"""
2315 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2317 def IsMove(*args
, **kwargs
):
2318 """IsMove(self) -> bool"""
2319 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2321 def IsZMove(*args
, **kwargs
):
2322 """IsZMove(self) -> bool"""
2323 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2325 def ButtonDown(*args
, **kwargs
):
2326 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2327 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2329 def ButtonUp(*args
, **kwargs
):
2330 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2331 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2333 def ButtonIsDown(*args
, **kwargs
):
2334 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2335 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2337 m_pos
= property(GetPosition
, SetPosition
)
2338 m_zPosition
= property(GetZPosition
, SetZPosition
)
2339 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2340 m_buttonState
= property(GetButtonState
, SetButtonState
)
2341 m_joyStick
= property(GetJoystick
, SetJoystick
)
2344 class JoystickEventPtr(JoystickEvent
):
2345 def __init__(self
, this
):
2347 if not hasattr(self
,"thisown"): self
.thisown
= 0
2348 self
.__class
__ = JoystickEvent
2349 _misc_
.JoystickEvent_swigregister(JoystickEventPtr
)
2351 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2352 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2353 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2354 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2356 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2357 wxEVT_JOY_BUTTON_UP
,
2363 #---------------------------------------------------------------------------
2365 SOUND_SYNC
= _misc_
.SOUND_SYNC
2366 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2367 SOUND_LOOP
= _misc_
.SOUND_LOOP
2368 class Sound(object):
2369 """Proxy of C++ Sound class"""
2371 return "<%s.%s; proxy of C++ wxSound instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2372 def __init__(self
, *args
, **kwargs
):
2373 """__init__(self, String fileName=EmptyString) -> Sound"""
2374 newobj
= _misc_
.new_Sound(*args
, **kwargs
)
2375 self
.this
= newobj
.this
2378 def __del__(self
, destroy
=_misc_
.delete_Sound
):
2381 if self
.thisown
: destroy(self
)
2384 def Create(*args
, **kwargs
):
2385 """Create(self, String fileName) -> bool"""
2386 return _misc_
.Sound_Create(*args
, **kwargs
)
2388 def CreateFromData(*args
, **kwargs
):
2389 """CreateFromData(self, PyObject data) -> bool"""
2390 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2392 def IsOk(*args
, **kwargs
):
2393 """IsOk(self) -> bool"""
2394 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2396 def Play(*args
, **kwargs
):
2397 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2398 return _misc_
.Sound_Play(*args
, **kwargs
)
2400 def PlaySound(*args
, **kwargs
):
2401 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2402 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2404 PlaySound
= staticmethod(PlaySound
)
2405 def Stop(*args
, **kwargs
):
2407 return _misc_
.Sound_Stop(*args
, **kwargs
)
2409 Stop
= staticmethod(Stop
)
2410 def __nonzero__(self
): return self
.IsOk()
2412 class SoundPtr(Sound
):
2413 def __init__(self
, this
):
2415 if not hasattr(self
,"thisown"): self
.thisown
= 0
2416 self
.__class
__ = Sound
2417 _misc_
.Sound_swigregister(SoundPtr
)
2419 def SoundFromData(*args
, **kwargs
):
2420 """SoundFromData(PyObject data) -> Sound"""
2421 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2425 def Sound_PlaySound(*args
, **kwargs
):
2426 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2427 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2429 def Sound_Stop(*args
, **kwargs
):
2431 return _misc_
.Sound_Stop(*args
, **kwargs
)
2433 #---------------------------------------------------------------------------
2435 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2436 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2437 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2438 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2439 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2440 class FileTypeInfo(object):
2441 """Proxy of C++ FileTypeInfo class"""
2443 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2444 def __init__(self
, *args
, **kwargs
):
2445 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2446 newobj
= _misc_
.new_FileTypeInfo(*args
, **kwargs
)
2447 self
.this
= newobj
.this
2450 def IsValid(*args
, **kwargs
):
2451 """IsValid(self) -> bool"""
2452 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2454 def SetIcon(*args
, **kwargs
):
2455 """SetIcon(self, String iconFile, int iconIndex=0)"""
2456 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2458 def SetShortDesc(*args
, **kwargs
):
2459 """SetShortDesc(self, String shortDesc)"""
2460 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2462 def GetMimeType(*args
, **kwargs
):
2463 """GetMimeType(self) -> String"""
2464 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2466 def GetOpenCommand(*args
, **kwargs
):
2467 """GetOpenCommand(self) -> String"""
2468 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2470 def GetPrintCommand(*args
, **kwargs
):
2471 """GetPrintCommand(self) -> String"""
2472 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2474 def GetShortDesc(*args
, **kwargs
):
2475 """GetShortDesc(self) -> String"""
2476 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2478 def GetDescription(*args
, **kwargs
):
2479 """GetDescription(self) -> String"""
2480 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2482 def GetExtensions(*args
, **kwargs
):
2483 """GetExtensions(self) -> wxArrayString"""
2484 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2486 def GetExtensionsCount(*args
, **kwargs
):
2487 """GetExtensionsCount(self) -> int"""
2488 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2490 def GetIconFile(*args
, **kwargs
):
2491 """GetIconFile(self) -> String"""
2492 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2494 def GetIconIndex(*args
, **kwargs
):
2495 """GetIconIndex(self) -> int"""
2496 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2499 class FileTypeInfoPtr(FileTypeInfo
):
2500 def __init__(self
, this
):
2502 if not hasattr(self
,"thisown"): self
.thisown
= 0
2503 self
.__class
__ = FileTypeInfo
2504 _misc_
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2506 def FileTypeInfoSequence(*args
, **kwargs
):
2507 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2508 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2512 def NullFileTypeInfo(*args
, **kwargs
):
2513 """NullFileTypeInfo() -> FileTypeInfo"""
2514 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2518 class FileType(object):
2519 """Proxy of C++ FileType class"""
2521 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2522 def __init__(self
, *args
, **kwargs
):
2523 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2524 newobj
= _misc_
.new_FileType(*args
, **kwargs
)
2525 self
.this
= newobj
.this
2528 def __del__(self
, destroy
=_misc_
.delete_FileType
):
2531 if self
.thisown
: destroy(self
)
2534 def GetMimeType(*args
, **kwargs
):
2535 """GetMimeType(self) -> PyObject"""
2536 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2538 def GetMimeTypes(*args
, **kwargs
):
2539 """GetMimeTypes(self) -> PyObject"""
2540 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2542 def GetExtensions(*args
, **kwargs
):
2543 """GetExtensions(self) -> PyObject"""
2544 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2546 def GetIcon(*args
, **kwargs
):
2547 """GetIcon(self) -> Icon"""
2548 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2550 def GetIconInfo(*args
, **kwargs
):
2551 """GetIconInfo(self) -> PyObject"""
2552 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2554 def GetDescription(*args
, **kwargs
):
2555 """GetDescription(self) -> PyObject"""
2556 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2558 def GetOpenCommand(*args
, **kwargs
):
2559 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2560 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2562 def GetPrintCommand(*args
, **kwargs
):
2563 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2564 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2566 def GetAllCommands(*args
, **kwargs
):
2567 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2568 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2570 def SetCommand(*args
, **kwargs
):
2571 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2572 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2574 def SetDefaultIcon(*args
, **kwargs
):
2575 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2576 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2578 def Unassociate(*args
, **kwargs
):
2579 """Unassociate(self) -> bool"""
2580 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2582 def ExpandCommand(*args
, **kwargs
):
2583 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2584 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2586 ExpandCommand
= staticmethod(ExpandCommand
)
2588 class FileTypePtr(FileType
):
2589 def __init__(self
, this
):
2591 if not hasattr(self
,"thisown"): self
.thisown
= 0
2592 self
.__class
__ = FileType
2593 _misc_
.FileType_swigregister(FileTypePtr
)
2595 def FileType_ExpandCommand(*args
, **kwargs
):
2596 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2597 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2599 class MimeTypesManager(object):
2600 """Proxy of C++ MimeTypesManager class"""
2602 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2603 def IsOfType(*args
, **kwargs
):
2604 """IsOfType(String mimeType, String wildcard) -> bool"""
2605 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2607 IsOfType
= staticmethod(IsOfType
)
2608 def __init__(self
, *args
, **kwargs
):
2609 """__init__(self) -> MimeTypesManager"""
2610 newobj
= _misc_
.new_MimeTypesManager(*args
, **kwargs
)
2611 self
.this
= newobj
.this
2614 def Initialize(*args
, **kwargs
):
2615 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2616 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2618 def ClearData(*args
, **kwargs
):
2619 """ClearData(self)"""
2620 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2622 def GetFileTypeFromExtension(*args
, **kwargs
):
2623 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2624 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2626 def GetFileTypeFromMimeType(*args
, **kwargs
):
2627 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2628 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2630 def ReadMailcap(*args
, **kwargs
):
2631 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2632 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2634 def ReadMimeTypes(*args
, **kwargs
):
2635 """ReadMimeTypes(self, String filename) -> bool"""
2636 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2638 def EnumAllFileTypes(*args
, **kwargs
):
2639 """EnumAllFileTypes(self) -> PyObject"""
2640 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2642 def AddFallback(*args
, **kwargs
):
2643 """AddFallback(self, FileTypeInfo ft)"""
2644 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2646 def Associate(*args
, **kwargs
):
2647 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2648 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2650 def Unassociate(*args
, **kwargs
):
2651 """Unassociate(self, FileType ft) -> bool"""
2652 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2654 def __del__(self
, destroy
=_misc_
.delete_MimeTypesManager
):
2657 if self
.thisown
: destroy(self
)
2661 class MimeTypesManagerPtr(MimeTypesManager
):
2662 def __init__(self
, this
):
2664 if not hasattr(self
,"thisown"): self
.thisown
= 0
2665 self
.__class
__ = MimeTypesManager
2666 _misc_
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2667 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2669 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2670 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2671 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2673 #---------------------------------------------------------------------------
2675 class ArtProvider(object):
2677 The wx.ArtProvider class is used to customize the look of wxWidgets
2678 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2679 in the standard file dialog), it does not use hard-coded resource but
2680 asks wx.ArtProvider for it instead. This way the users can plug in
2681 their own wx.ArtProvider class and easily replace standard art with
2682 his/her own version. It is easy thing to do: all that is needed is
2683 to derive a class from wx.ArtProvider, override it's CreateBitmap
2684 method and register the provider with wx.ArtProvider.PushProvider::
2686 class MyArtProvider(wx.ArtProvider):
2688 wx.ArtProvider.__init__(self)
2690 def CreateBitmap(self, artid, client, size):
2696 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2697 def __init__(self
, *args
, **kwargs
):
2699 __init__(self) -> ArtProvider
2701 The wx.ArtProvider class is used to customize the look of wxWidgets
2702 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2703 in the standard file dialog), it does not use hard-coded resource but
2704 asks wx.ArtProvider for it instead. This way the users can plug in
2705 their own wx.ArtProvider class and easily replace standard art with
2706 his/her own version. It is easy thing to do: all that is needed is
2707 to derive a class from wx.ArtProvider, override it's CreateBitmap
2708 method and register the provider with wx.ArtProvider.PushProvider::
2710 class MyArtProvider(wx.ArtProvider):
2712 wx.ArtProvider.__init__(self)
2714 def CreateBitmap(self, artid, client, size):
2719 newobj
= _misc_
.new_ArtProvider(*args
, **kwargs
)
2720 self
.this
= newobj
.this
2723 self
._setCallbackInfo
(self
, ArtProvider
)
2725 def __del__(self
, destroy
=_misc_
.delete_ArtProvider
):
2728 if self
.thisown
: destroy(self
)
2731 def _setCallbackInfo(*args
, **kwargs
):
2732 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2733 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2735 def PushProvider(*args
, **kwargs
):
2737 PushProvider(ArtProvider provider)
2739 Add new provider to the top of providers stack.
2741 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2743 PushProvider
= staticmethod(PushProvider
)
2744 def PopProvider(*args
, **kwargs
):
2746 PopProvider() -> bool
2748 Remove latest added provider and delete it.
2750 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2752 PopProvider
= staticmethod(PopProvider
)
2753 def RemoveProvider(*args
, **kwargs
):
2755 RemoveProvider(ArtProvider provider) -> bool
2757 Remove provider. The provider must have been added previously! The
2758 provider is _not_ deleted.
2760 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2764 RemoveProvider
= staticmethod(RemoveProvider
)
2765 def GetBitmap(*args
, **kwargs
):
2767 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2769 Query the providers for bitmap with given ID and return it. Return
2770 wx.NullBitmap if no provider provides it.
2772 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2774 GetBitmap
= staticmethod(GetBitmap
)
2775 def GetIcon(*args
, **kwargs
):
2777 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2779 Query the providers for icon with given ID and return it. Return
2780 wx.NullIcon if no provider provides it.
2782 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2784 GetIcon
= staticmethod(GetIcon
)
2785 def GetSizeHint(*args
, **kwargs
):
2787 GetSizeHint(String client, bool platform_dependent=False) -> Size
2789 Get the size hint of an icon from a specific Art Client, queries the
2790 topmost provider if platform_dependent = false
2792 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2794 GetSizeHint
= staticmethod(GetSizeHint
)
2795 def Destroy(*args
, **kwargs
):
2797 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2802 class ArtProviderPtr(ArtProvider
):
2803 def __init__(self
, this
):
2805 if not hasattr(self
,"thisown"): self
.thisown
= 0
2806 self
.__class
__ = ArtProvider
2807 _misc_
.ArtProvider_swigregister(ArtProviderPtr
)
2808 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2809 ART_MENU
= cvar
.ART_MENU
2810 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2811 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2812 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2813 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2814 ART_BUTTON
= cvar
.ART_BUTTON
2815 ART_OTHER
= cvar
.ART_OTHER
2816 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2817 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2818 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2819 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2820 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2821 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2822 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2823 ART_GO_BACK
= cvar
.ART_GO_BACK
2824 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2825 ART_GO_UP
= cvar
.ART_GO_UP
2826 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2827 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2828 ART_GO_HOME
= cvar
.ART_GO_HOME
2829 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2830 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2831 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2832 ART_PRINT
= cvar
.ART_PRINT
2833 ART_HELP
= cvar
.ART_HELP
2834 ART_TIP
= cvar
.ART_TIP
2835 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2836 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2837 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2838 ART_HARDDISK
= cvar
.ART_HARDDISK
2839 ART_FLOPPY
= cvar
.ART_FLOPPY
2840 ART_CDROM
= cvar
.ART_CDROM
2841 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2842 ART_FOLDER
= cvar
.ART_FOLDER
2843 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2844 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2845 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2846 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2847 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2848 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2849 ART_ERROR
= cvar
.ART_ERROR
2850 ART_QUESTION
= cvar
.ART_QUESTION
2851 ART_WARNING
= cvar
.ART_WARNING
2852 ART_INFORMATION
= cvar
.ART_INFORMATION
2853 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2854 ART_COPY
= cvar
.ART_COPY
2855 ART_CUT
= cvar
.ART_CUT
2856 ART_PASTE
= cvar
.ART_PASTE
2857 ART_DELETE
= cvar
.ART_DELETE
2858 ART_NEW
= cvar
.ART_NEW
2859 ART_UNDO
= cvar
.ART_UNDO
2860 ART_REDO
= cvar
.ART_REDO
2861 ART_QUIT
= cvar
.ART_QUIT
2862 ART_FIND
= cvar
.ART_FIND
2863 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2865 def ArtProvider_PushProvider(*args
, **kwargs
):
2867 ArtProvider_PushProvider(ArtProvider provider)
2869 Add new provider to the top of providers stack.
2871 return _misc_
.ArtProvider_PushProvider(*args
, **kwargs
)
2873 def ArtProvider_PopProvider(*args
, **kwargs
):
2875 ArtProvider_PopProvider() -> bool
2877 Remove latest added provider and delete it.
2879 return _misc_
.ArtProvider_PopProvider(*args
, **kwargs
)
2881 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2883 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2885 Remove provider. The provider must have been added previously! The
2886 provider is _not_ deleted.
2888 val
= _misc_
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2892 def ArtProvider_GetBitmap(*args
, **kwargs
):
2894 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2896 Query the providers for bitmap with given ID and return it. Return
2897 wx.NullBitmap if no provider provides it.
2899 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2901 def ArtProvider_GetIcon(*args
, **kwargs
):
2903 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2905 Query the providers for icon with given ID and return it. Return
2906 wx.NullIcon if no provider provides it.
2908 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2910 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2912 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2914 Get the size hint of an icon from a specific Art Client, queries the
2915 topmost provider if platform_dependent = false
2917 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2919 #---------------------------------------------------------------------------
2921 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2922 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2923 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2924 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2925 class ConfigBase(object):
2927 wx.ConfigBase class defines the basic interface of all config
2928 classes. It can not be used by itself (it is an abstract base class)
2929 and you will always use one of its derivations: wx.Config or
2932 wx.ConfigBase organizes the items in a tree-like structure, modeled
2933 after the Unix/Dos filesystem. There are groups that act like
2934 directories and entries, key/value pairs that act like files. There
2935 is always one current group given by the current path. As in the file
2936 system case, to specify a key in the config class you must use a path
2937 to it. Config classes also support the notion of the current group,
2938 which makes it possible to use relative paths.
2940 Keys are pairs "key_name = value" where value may be of string,
2941 integer floating point or boolean, you can not store binary data
2942 without first encoding it as a string. For performance reasons items
2943 should be kept small, no more than a couple kilobytes.
2946 def __init__(self
): raise RuntimeError, "No constructor defined"
2948 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2949 def __del__(self
, destroy
=_misc_
.delete_ConfigBase
):
2952 if self
.thisown
: destroy(self
)
2955 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2956 Type_String
= _misc_
.ConfigBase_Type_String
2957 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2958 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2959 Type_Float
= _misc_
.ConfigBase_Type_Float
2960 def Set(*args
, **kwargs
):
2962 Set(ConfigBase config) -> ConfigBase
2964 Sets the global config object (the one returned by Get) and returns a
2965 reference to the previous global config object.
2967 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2969 Set
= staticmethod(Set
)
2970 def Get(*args
, **kwargs
):
2972 Get(bool createOnDemand=True) -> ConfigBase
2974 Returns the current global config object, creating one if neccessary.
2976 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2978 Get
= staticmethod(Get
)
2979 def Create(*args
, **kwargs
):
2981 Create() -> ConfigBase
2983 Create and return a new global config object. This function will
2984 create the "best" implementation of wx.Config available for the
2987 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2989 Create
= staticmethod(Create
)
2990 def DontCreateOnDemand(*args
, **kwargs
):
2992 DontCreateOnDemand()
2994 Should Get() try to create a new log object if there isn't a current
2997 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2999 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
3000 def SetPath(*args
, **kwargs
):
3002 SetPath(self, String path)
3004 Set current path: if the first character is '/', it's the absolute
3005 path, otherwise it's a relative path. '..' is supported. If the
3006 strPath doesn't exist it is created.
3008 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
3010 def GetPath(*args
, **kwargs
):
3012 GetPath(self) -> String
3014 Retrieve the current path (always as absolute path)
3016 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
3018 def GetFirstGroup(*args
, **kwargs
):
3020 GetFirstGroup() -> (more, value, index)
3022 Allows enumerating the subgroups in a config object. Returns a tuple
3023 containing a flag indicating there are more items, the name of the
3024 current item, and an index to pass to GetNextGroup to fetch the next
3027 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
3029 def GetNextGroup(*args
, **kwargs
):
3031 GetNextGroup(long index) -> (more, value, index)
3033 Allows enumerating the subgroups in a config object. Returns a tuple
3034 containing a flag indicating there are more items, the name of the
3035 current item, and an index to pass to GetNextGroup to fetch the next
3038 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
3040 def GetFirstEntry(*args
, **kwargs
):
3042 GetFirstEntry() -> (more, value, index)
3044 Allows enumerating the entries in the current group in a config
3045 object. Returns a tuple containing a flag indicating there are more
3046 items, the name of the current item, and an index to pass to
3047 GetNextGroup to fetch the next item.
3049 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
3051 def GetNextEntry(*args
, **kwargs
):
3053 GetNextEntry(long index) -> (more, value, index)
3055 Allows enumerating the entries in the current group in a config
3056 object. Returns a tuple containing a flag indicating there are more
3057 items, the name of the current item, and an index to pass to
3058 GetNextGroup to fetch the next item.
3060 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
3062 def GetNumberOfEntries(*args
, **kwargs
):
3064 GetNumberOfEntries(self, bool recursive=False) -> size_t
3066 Get the number of entries in the current group, with or without its
3069 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
3071 def GetNumberOfGroups(*args
, **kwargs
):
3073 GetNumberOfGroups(self, bool recursive=False) -> size_t
3075 Get the number of subgroups in the current group, with or without its
3078 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
3080 def HasGroup(*args
, **kwargs
):
3082 HasGroup(self, String name) -> bool
3084 Returns True if the group by this name exists
3086 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
3088 def HasEntry(*args
, **kwargs
):
3090 HasEntry(self, String name) -> bool
3092 Returns True if the entry by this name exists
3094 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
3096 def Exists(*args
, **kwargs
):
3098 Exists(self, String name) -> bool
3100 Returns True if either a group or an entry with a given name exists
3102 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
3104 def GetEntryType(*args
, **kwargs
):
3106 GetEntryType(self, String name) -> int
3108 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
3110 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
3112 def Read(*args
, **kwargs
):
3114 Read(self, String key, String defaultVal=EmptyString) -> String
3116 Returns the value of key if it exists, defaultVal otherwise.
3118 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
3120 def ReadInt(*args
, **kwargs
):
3122 ReadInt(self, String key, long defaultVal=0) -> long
3124 Returns the value of key if it exists, defaultVal otherwise.
3126 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
3128 def ReadFloat(*args
, **kwargs
):
3130 ReadFloat(self, String key, double defaultVal=0.0) -> double
3132 Returns the value of key if it exists, defaultVal otherwise.
3134 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
3136 def ReadBool(*args
, **kwargs
):
3138 ReadBool(self, String key, bool defaultVal=False) -> bool
3140 Returns the value of key if it exists, defaultVal otherwise.
3142 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
3144 def Write(*args
, **kwargs
):
3146 Write(self, String key, String value) -> bool
3148 write the value (return True on success)
3150 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
3152 def WriteInt(*args
, **kwargs
):
3154 WriteInt(self, String key, long value) -> bool
3156 write the value (return True on success)
3158 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
3160 def WriteFloat(*args
, **kwargs
):
3162 WriteFloat(self, String key, double value) -> bool
3164 write the value (return True on success)
3166 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
3168 def WriteBool(*args
, **kwargs
):
3170 WriteBool(self, String key, bool value) -> bool
3172 write the value (return True on success)
3174 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
3176 def Flush(*args
, **kwargs
):
3178 Flush(self, bool currentOnly=False) -> bool
3180 permanently writes all changes
3182 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
3184 def RenameEntry(*args
, **kwargs
):
3186 RenameEntry(self, String oldName, String newName) -> bool
3188 Rename an entry. Returns False on failure (probably because the new
3189 name is already taken by an existing entry)
3191 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
3193 def RenameGroup(*args
, **kwargs
):
3195 RenameGroup(self, String oldName, String newName) -> bool
3197 Rename a group. Returns False on failure (probably because the new
3198 name is already taken by an existing entry)
3200 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
3202 def DeleteEntry(*args
, **kwargs
):
3204 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3206 Deletes the specified entry and the group it belongs to if it was the
3207 last key in it and the second parameter is True
3209 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
3211 def DeleteGroup(*args
, **kwargs
):
3213 DeleteGroup(self, String key) -> bool
3215 Delete the group (with all subgroups)
3217 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
3219 def DeleteAll(*args
, **kwargs
):
3221 DeleteAll(self) -> bool
3223 Delete the whole underlying object (disk file, registry key, ...)
3224 primarly intended for use by deinstallation routine.
3226 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
3228 def SetExpandEnvVars(*args
, **kwargs
):
3230 SetExpandEnvVars(self, bool doIt=True)
3232 We can automatically expand environment variables in the config
3233 entries this option is on by default, you can turn it on/off at any
3236 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
3238 def IsExpandingEnvVars(*args
, **kwargs
):
3240 IsExpandingEnvVars(self) -> bool
3242 Are we currently expanding environment variables?
3244 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
3246 def SetRecordDefaults(*args
, **kwargs
):
3248 SetRecordDefaults(self, bool doIt=True)
3250 Set whether the config objec should record default values.
3252 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
3254 def IsRecordingDefaults(*args
, **kwargs
):
3256 IsRecordingDefaults(self) -> bool
3258 Are we currently recording default values?
3260 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
3262 def ExpandEnvVars(*args
, **kwargs
):
3264 ExpandEnvVars(self, String str) -> String
3266 Expand any environment variables in str and return the result
3268 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
3270 def GetAppName(*args
, **kwargs
):
3271 """GetAppName(self) -> String"""
3272 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3274 def GetVendorName(*args
, **kwargs
):
3275 """GetVendorName(self) -> String"""
3276 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3278 def SetAppName(*args
, **kwargs
):
3279 """SetAppName(self, String appName)"""
3280 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3282 def SetVendorName(*args
, **kwargs
):
3283 """SetVendorName(self, String vendorName)"""
3284 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3286 def SetStyle(*args
, **kwargs
):
3287 """SetStyle(self, long style)"""
3288 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3290 def GetStyle(*args
, **kwargs
):
3291 """GetStyle(self) -> long"""
3292 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3295 class ConfigBasePtr(ConfigBase
):
3296 def __init__(self
, this
):
3298 if not hasattr(self
,"thisown"): self
.thisown
= 0
3299 self
.__class
__ = ConfigBase
3300 _misc_
.ConfigBase_swigregister(ConfigBasePtr
)
3302 def ConfigBase_Set(*args
, **kwargs
):
3304 ConfigBase_Set(ConfigBase config) -> ConfigBase
3306 Sets the global config object (the one returned by Get) and returns a
3307 reference to the previous global config object.
3309 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3311 def ConfigBase_Get(*args
, **kwargs
):
3313 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3315 Returns the current global config object, creating one if neccessary.
3317 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3319 def ConfigBase_Create(*args
, **kwargs
):
3321 ConfigBase_Create() -> ConfigBase
3323 Create and return a new global config object. This function will
3324 create the "best" implementation of wx.Config available for the
3327 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
3329 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
3331 ConfigBase_DontCreateOnDemand()
3333 Should Get() try to create a new log object if there isn't a current
3336 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
3338 class Config(ConfigBase
):
3340 This ConfigBase-derived class will use the registry on Windows,
3341 and will be a wx.FileConfig on other platforms.
3344 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3345 def __init__(self
, *args
, **kwargs
):
3347 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3348 String localFilename=EmptyString, String globalFilename=EmptyString,
3349 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3351 newobj
= _misc_
.new_Config(*args
, **kwargs
)
3352 self
.this
= newobj
.this
3355 def __del__(self
, destroy
=_misc_
.delete_Config
):
3358 if self
.thisown
: destroy(self
)
3362 class ConfigPtr(Config
):
3363 def __init__(self
, this
):
3365 if not hasattr(self
,"thisown"): self
.thisown
= 0
3366 self
.__class
__ = Config
3367 _misc_
.Config_swigregister(ConfigPtr
)
3369 class FileConfig(ConfigBase
):
3370 """This config class will use a file for storage on all platforms."""
3372 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3373 def __init__(self
, *args
, **kwargs
):
3375 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3376 String localFilename=EmptyString, String globalFilename=EmptyString,
3377 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3379 newobj
= _misc_
.new_FileConfig(*args
, **kwargs
)
3380 self
.this
= newobj
.this
3383 def __del__(self
, destroy
=_misc_
.delete_FileConfig
):
3386 if self
.thisown
: destroy(self
)
3390 class FileConfigPtr(FileConfig
):
3391 def __init__(self
, this
):
3393 if not hasattr(self
,"thisown"): self
.thisown
= 0
3394 self
.__class
__ = FileConfig
3395 _misc_
.FileConfig_swigregister(FileConfigPtr
)
3397 class ConfigPathChanger(object):
3399 A handy little class which changes current path to the path of given
3400 entry and restores it in the destructoir: so if you declare a local
3401 variable of this type, you work in the entry directory and the path is
3402 automatically restored when the function returns.
3405 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3406 def __init__(self
, *args
, **kwargs
):
3407 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3408 newobj
= _misc_
.new_ConfigPathChanger(*args
, **kwargs
)
3409 self
.this
= newobj
.this
3412 def __del__(self
, destroy
=_misc_
.delete_ConfigPathChanger
):
3415 if self
.thisown
: destroy(self
)
3418 def Name(*args
, **kwargs
):
3420 Name(self) -> String
3424 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3427 class ConfigPathChangerPtr(ConfigPathChanger
):
3428 def __init__(self
, this
):
3430 if not hasattr(self
,"thisown"): self
.thisown
= 0
3431 self
.__class
__ = ConfigPathChanger
3432 _misc_
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
3435 def ExpandEnvVars(*args
, **kwargs
):
3437 ExpandEnvVars(String sz) -> String
3439 Replace environment variables ($SOMETHING) with their values. The
3440 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3441 characters and '_' only. '$' must be escaped ('\$') in order to be
3444 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3445 #---------------------------------------------------------------------------
3447 class DateTime(object):
3448 """Proxy of C++ DateTime class"""
3450 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3451 Local
= _misc_
.DateTime_Local
3452 GMT_12
= _misc_
.DateTime_GMT_12
3453 GMT_11
= _misc_
.DateTime_GMT_11
3454 GMT_10
= _misc_
.DateTime_GMT_10
3455 GMT_9
= _misc_
.DateTime_GMT_9
3456 GMT_8
= _misc_
.DateTime_GMT_8
3457 GMT_7
= _misc_
.DateTime_GMT_7
3458 GMT_6
= _misc_
.DateTime_GMT_6
3459 GMT_5
= _misc_
.DateTime_GMT_5
3460 GMT_4
= _misc_
.DateTime_GMT_4
3461 GMT_3
= _misc_
.DateTime_GMT_3
3462 GMT_2
= _misc_
.DateTime_GMT_2
3463 GMT_1
= _misc_
.DateTime_GMT_1
3464 GMT0
= _misc_
.DateTime_GMT0
3465 GMT1
= _misc_
.DateTime_GMT1
3466 GMT2
= _misc_
.DateTime_GMT2
3467 GMT3
= _misc_
.DateTime_GMT3
3468 GMT4
= _misc_
.DateTime_GMT4
3469 GMT5
= _misc_
.DateTime_GMT5
3470 GMT6
= _misc_
.DateTime_GMT6
3471 GMT7
= _misc_
.DateTime_GMT7
3472 GMT8
= _misc_
.DateTime_GMT8
3473 GMT9
= _misc_
.DateTime_GMT9
3474 GMT10
= _misc_
.DateTime_GMT10
3475 GMT11
= _misc_
.DateTime_GMT11
3476 GMT12
= _misc_
.DateTime_GMT12
3477 WET
= _misc_
.DateTime_WET
3478 WEST
= _misc_
.DateTime_WEST
3479 CET
= _misc_
.DateTime_CET
3480 CEST
= _misc_
.DateTime_CEST
3481 EET
= _misc_
.DateTime_EET
3482 EEST
= _misc_
.DateTime_EEST
3483 MSK
= _misc_
.DateTime_MSK
3484 MSD
= _misc_
.DateTime_MSD
3485 AST
= _misc_
.DateTime_AST
3486 ADT
= _misc_
.DateTime_ADT
3487 EST
= _misc_
.DateTime_EST
3488 EDT
= _misc_
.DateTime_EDT
3489 CST
= _misc_
.DateTime_CST
3490 CDT
= _misc_
.DateTime_CDT
3491 MST
= _misc_
.DateTime_MST
3492 MDT
= _misc_
.DateTime_MDT
3493 PST
= _misc_
.DateTime_PST
3494 PDT
= _misc_
.DateTime_PDT
3495 HST
= _misc_
.DateTime_HST
3496 AKST
= _misc_
.DateTime_AKST
3497 AKDT
= _misc_
.DateTime_AKDT
3498 A_WST
= _misc_
.DateTime_A_WST
3499 A_CST
= _misc_
.DateTime_A_CST
3500 A_EST
= _misc_
.DateTime_A_EST
3501 A_ESST
= _misc_
.DateTime_A_ESST
3502 UTC
= _misc_
.DateTime_UTC
3503 Gregorian
= _misc_
.DateTime_Gregorian
3504 Julian
= _misc_
.DateTime_Julian
3505 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3506 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3507 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3508 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3509 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3510 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3511 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3512 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3513 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3514 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3515 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3516 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3517 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3518 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3519 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3520 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3521 Gr_China
= _misc_
.DateTime_Gr_China
3522 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3523 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3524 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3525 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3526 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3527 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3528 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3529 Gr_France
= _misc_
.DateTime_Gr_France
3530 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3531 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3532 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3533 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3534 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3535 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3536 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3537 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3538 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3539 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3540 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3541 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3542 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3543 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3544 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3545 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3546 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3547 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3548 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3549 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3550 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3551 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3552 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3553 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3554 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3555 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3556 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3557 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3558 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3559 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3560 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3561 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3562 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3563 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3564 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3565 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3566 Gr_USA
= _misc_
.DateTime_Gr_USA
3567 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3568 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3569 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3570 Country_Default
= _misc_
.DateTime_Country_Default
3571 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3572 Country_EEC
= _misc_
.DateTime_Country_EEC
3573 France
= _misc_
.DateTime_France
3574 Germany
= _misc_
.DateTime_Germany
3575 UK
= _misc_
.DateTime_UK
3576 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3577 Russia
= _misc_
.DateTime_Russia
3578 USA
= _misc_
.DateTime_USA
3579 Jan
= _misc_
.DateTime_Jan
3580 Feb
= _misc_
.DateTime_Feb
3581 Mar
= _misc_
.DateTime_Mar
3582 Apr
= _misc_
.DateTime_Apr
3583 May
= _misc_
.DateTime_May
3584 Jun
= _misc_
.DateTime_Jun
3585 Jul
= _misc_
.DateTime_Jul
3586 Aug
= _misc_
.DateTime_Aug
3587 Sep
= _misc_
.DateTime_Sep
3588 Oct
= _misc_
.DateTime_Oct
3589 Nov
= _misc_
.DateTime_Nov
3590 Dec
= _misc_
.DateTime_Dec
3591 Inv_Month
= _misc_
.DateTime_Inv_Month
3592 Sun
= _misc_
.DateTime_Sun
3593 Mon
= _misc_
.DateTime_Mon
3594 Tue
= _misc_
.DateTime_Tue
3595 Wed
= _misc_
.DateTime_Wed
3596 Thu
= _misc_
.DateTime_Thu
3597 Fri
= _misc_
.DateTime_Fri
3598 Sat
= _misc_
.DateTime_Sat
3599 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3600 Inv_Year
= _misc_
.DateTime_Inv_Year
3601 Name_Full
= _misc_
.DateTime_Name_Full
3602 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3603 Default_First
= _misc_
.DateTime_Default_First
3604 Monday_First
= _misc_
.DateTime_Monday_First
3605 Sunday_First
= _misc_
.DateTime_Sunday_First
3606 def SetCountry(*args
, **kwargs
):
3607 """SetCountry(int country)"""
3608 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3610 SetCountry
= staticmethod(SetCountry
)
3611 def GetCountry(*args
, **kwargs
):
3612 """GetCountry() -> int"""
3613 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3615 GetCountry
= staticmethod(GetCountry
)
3616 def IsWestEuropeanCountry(*args
, **kwargs
):
3617 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3618 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3620 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3621 def GetCurrentYear(*args
, **kwargs
):
3622 """GetCurrentYear(int cal=Gregorian) -> int"""
3623 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3625 GetCurrentYear
= staticmethod(GetCurrentYear
)
3626 def ConvertYearToBC(*args
, **kwargs
):
3627 """ConvertYearToBC(int year) -> int"""
3628 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3630 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3631 def GetCurrentMonth(*args
, **kwargs
):
3632 """GetCurrentMonth(int cal=Gregorian) -> int"""
3633 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3635 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3636 def IsLeapYear(*args
, **kwargs
):
3637 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3638 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3640 IsLeapYear
= staticmethod(IsLeapYear
)
3641 def GetCentury(*args
, **kwargs
):
3642 """GetCentury(int year=Inv_Year) -> int"""
3643 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3645 GetCentury
= staticmethod(GetCentury
)
3646 def GetNumberOfDaysinYear(*args
, **kwargs
):
3647 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3648 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3650 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3651 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3652 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3653 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3655 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3656 def GetMonthName(*args
, **kwargs
):
3657 """GetMonthName(int month, int flags=Name_Full) -> String"""
3658 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3660 GetMonthName
= staticmethod(GetMonthName
)
3661 def GetWeekDayName(*args
, **kwargs
):
3662 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3663 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3665 GetWeekDayName
= staticmethod(GetWeekDayName
)
3666 def GetAmPmStrings(*args
, **kwargs
):
3668 GetAmPmStrings() -> (am, pm)
3670 Get the AM and PM strings in the current locale (may be empty)
3672 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3674 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3675 def IsDSTApplicable(*args
, **kwargs
):
3676 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3677 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3679 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3680 def GetBeginDST(*args
, **kwargs
):
3681 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3682 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3684 GetBeginDST
= staticmethod(GetBeginDST
)
3685 def GetEndDST(*args
, **kwargs
):
3686 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3687 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3689 GetEndDST
= staticmethod(GetEndDST
)
3690 def Now(*args
, **kwargs
):
3691 """Now() -> DateTime"""
3692 return _misc_
.DateTime_Now(*args
, **kwargs
)
3694 Now
= staticmethod(Now
)
3695 def UNow(*args
, **kwargs
):
3696 """UNow() -> DateTime"""
3697 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3699 UNow
= staticmethod(UNow
)
3700 def Today(*args
, **kwargs
):
3701 """Today() -> DateTime"""
3702 return _misc_
.DateTime_Today(*args
, **kwargs
)
3704 Today
= staticmethod(Today
)
3705 def __init__(self
, *args
, **kwargs
):
3706 """__init__(self) -> DateTime"""
3707 newobj
= _misc_
.new_DateTime(*args
, **kwargs
)
3708 self
.this
= newobj
.this
3711 def __del__(self
, destroy
=_misc_
.delete_DateTime
):
3714 if self
.thisown
: destroy(self
)
3717 def SetToCurrent(*args
, **kwargs
):
3718 """SetToCurrent(self) -> DateTime"""
3719 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3721 def SetTimeT(*args
, **kwargs
):
3722 """SetTimeT(self, time_t timet) -> DateTime"""
3723 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3725 def SetJDN(*args
, **kwargs
):
3726 """SetJDN(self, double jdn) -> DateTime"""
3727 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3729 def SetHMS(*args
, **kwargs
):
3730 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3731 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3733 def Set(*args
, **kwargs
):
3735 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3736 int minute=0, int second=0, int millisec=0) -> DateTime
3738 return _misc_
.DateTime_Set(*args
, **kwargs
)
3740 def ResetTime(*args
, **kwargs
):
3741 """ResetTime(self) -> DateTime"""
3742 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3744 def SetYear(*args
, **kwargs
):
3745 """SetYear(self, int year) -> DateTime"""
3746 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3748 def SetMonth(*args
, **kwargs
):
3749 """SetMonth(self, int month) -> DateTime"""
3750 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3752 def SetDay(*args
, **kwargs
):
3753 """SetDay(self, int day) -> DateTime"""
3754 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3756 def SetHour(*args
, **kwargs
):
3757 """SetHour(self, int hour) -> DateTime"""
3758 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3760 def SetMinute(*args
, **kwargs
):
3761 """SetMinute(self, int minute) -> DateTime"""
3762 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3764 def SetSecond(*args
, **kwargs
):
3765 """SetSecond(self, int second) -> DateTime"""
3766 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3768 def SetMillisecond(*args
, **kwargs
):
3769 """SetMillisecond(self, int millisecond) -> DateTime"""
3770 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3772 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3773 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3774 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3776 def GetWeekDayInSameWeek(*args
, **kwargs
):
3777 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3778 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3780 def SetToNextWeekDay(*args
, **kwargs
):
3781 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3782 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3784 def GetNextWeekDay(*args
, **kwargs
):
3785 """GetNextWeekDay(self, int weekday) -> DateTime"""
3786 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3788 def SetToPrevWeekDay(*args
, **kwargs
):
3789 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3790 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3792 def GetPrevWeekDay(*args
, **kwargs
):
3793 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3794 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3796 def SetToWeekDay(*args
, **kwargs
):
3797 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3798 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3800 def SetToLastWeekDay(*args
, **kwargs
):
3801 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3802 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3804 def GetLastWeekDay(*args
, **kwargs
):
3805 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3806 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3808 def SetToTheWeek(*args
, **kwargs
):
3809 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3810 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3812 def GetWeek(*args
, **kwargs
):
3813 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3814 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3816 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3817 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3819 def SetToWeekOfYear(*args
, **kwargs
):
3820 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3821 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3823 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3824 def SetToLastMonthDay(*args
, **kwargs
):
3825 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3826 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3828 def GetLastMonthDay(*args
, **kwargs
):
3829 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3830 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3832 def SetToYearDay(*args
, **kwargs
):
3833 """SetToYearDay(self, int yday) -> DateTime"""
3834 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3836 def GetYearDay(*args
, **kwargs
):
3837 """GetYearDay(self, int yday) -> DateTime"""
3838 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3840 def GetJulianDayNumber(*args
, **kwargs
):
3841 """GetJulianDayNumber(self) -> double"""
3842 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3844 def GetJDN(*args
, **kwargs
):
3845 """GetJDN(self) -> double"""
3846 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3848 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3849 """GetModifiedJulianDayNumber(self) -> double"""
3850 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3852 def GetMJD(*args
, **kwargs
):
3853 """GetMJD(self) -> double"""
3854 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3856 def GetRataDie(*args
, **kwargs
):
3857 """GetRataDie(self) -> double"""
3858 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3860 def ToTimezone(*args
, **kwargs
):
3861 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3862 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3864 def MakeTimezone(*args
, **kwargs
):
3865 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3866 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3868 def FromTimezone(*args
, **kwargs
):
3869 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3870 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3872 def MakeFromTimezone(*args
, **kwargs
):
3873 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3874 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3876 def ToUTC(*args
, **kwargs
):
3877 """ToUTC(self, bool noDST=False) -> DateTime"""
3878 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3880 def MakeUTC(*args
, **kwargs
):
3881 """MakeUTC(self, bool noDST=False) -> DateTime"""
3882 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3884 def ToGMT(*args
, **kwargs
):
3885 """ToGMT(self, bool noDST=False) -> DateTime"""
3886 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3888 def MakeGMT(*args
, **kwargs
):
3889 """MakeGMT(self, bool noDST=False) -> DateTime"""
3890 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3892 def FromUTC(*args
, **kwargs
):
3893 """FromUTC(self, bool noDST=False) -> DateTime"""
3894 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3896 def MakeFromUTC(*args
, **kwargs
):
3897 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3898 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3900 def IsDST(*args
, **kwargs
):
3901 """IsDST(self, int country=Country_Default) -> int"""
3902 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3904 def IsValid(*args
, **kwargs
):
3905 """IsValid(self) -> bool"""
3906 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3909 def __nonzero__(self
): return self
.Ok()
3910 def GetTicks(*args
, **kwargs
):
3911 """GetTicks(self) -> time_t"""
3912 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3914 def GetYear(*args
, **kwargs
):
3915 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3916 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3918 def GetMonth(*args
, **kwargs
):
3919 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3920 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3922 def GetDay(*args
, **kwargs
):
3923 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3924 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3926 def GetWeekDay(*args
, **kwargs
):
3927 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3928 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3930 def GetHour(*args
, **kwargs
):
3931 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3932 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3934 def GetMinute(*args
, **kwargs
):
3935 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3936 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3938 def GetSecond(*args
, **kwargs
):
3939 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3940 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3942 def GetMillisecond(*args
, **kwargs
):
3943 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3944 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3946 def GetDayOfYear(*args
, **kwargs
):
3947 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3948 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3950 def GetWeekOfYear(*args
, **kwargs
):
3951 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3952 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3954 def GetWeekOfMonth(*args
, **kwargs
):
3955 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3956 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3958 def IsWorkDay(*args
, **kwargs
):
3959 """IsWorkDay(self, int country=Country_Default) -> bool"""
3960 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3962 def IsEqualTo(*args
, **kwargs
):
3963 """IsEqualTo(self, DateTime datetime) -> bool"""
3964 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3966 def IsEarlierThan(*args
, **kwargs
):
3967 """IsEarlierThan(self, DateTime datetime) -> bool"""
3968 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3970 def IsLaterThan(*args
, **kwargs
):
3971 """IsLaterThan(self, DateTime datetime) -> bool"""
3972 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3974 def IsStrictlyBetween(*args
, **kwargs
):
3975 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3976 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3978 def IsBetween(*args
, **kwargs
):
3979 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3980 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3982 def IsSameDate(*args
, **kwargs
):
3983 """IsSameDate(self, DateTime dt) -> bool"""
3984 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3986 def IsSameTime(*args
, **kwargs
):
3987 """IsSameTime(self, DateTime dt) -> bool"""
3988 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3990 def IsEqualUpTo(*args
, **kwargs
):
3991 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3992 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3994 def AddTS(*args
, **kwargs
):
3995 """AddTS(self, TimeSpan diff) -> DateTime"""
3996 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3998 def AddDS(*args
, **kwargs
):
3999 """AddDS(self, DateSpan diff) -> DateTime"""
4000 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
4002 def SubtractTS(*args
, **kwargs
):
4003 """SubtractTS(self, TimeSpan diff) -> DateTime"""
4004 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
4006 def SubtractDS(*args
, **kwargs
):
4007 """SubtractDS(self, DateSpan diff) -> DateTime"""
4008 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
4010 def Subtract(*args
, **kwargs
):
4011 """Subtract(self, DateTime dt) -> TimeSpan"""
4012 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
4014 def __iadd__(*args
):
4016 __iadd__(self, TimeSpan diff) -> DateTime
4017 __iadd__(self, DateSpan diff) -> DateTime
4019 return _misc_
.DateTime___iadd__(*args
)
4021 def __isub__(*args
):
4023 __isub__(self, TimeSpan diff) -> DateTime
4024 __isub__(self, DateSpan diff) -> DateTime
4026 return _misc_
.DateTime___isub__(*args
)
4030 __add__(self, TimeSpan other) -> DateTime
4031 __add__(self, DateSpan other) -> DateTime
4033 return _misc_
.DateTime___add__(*args
)
4037 __sub__(self, DateTime other) -> TimeSpan
4038 __sub__(self, TimeSpan other) -> DateTime
4039 __sub__(self, DateSpan other) -> DateTime
4041 return _misc_
.DateTime___sub__(*args
)
4043 def __lt__(*args
, **kwargs
):
4044 """__lt__(self, DateTime other) -> bool"""
4045 return _misc_
.DateTime___lt__(*args
, **kwargs
)
4047 def __le__(*args
, **kwargs
):
4048 """__le__(self, DateTime other) -> bool"""
4049 return _misc_
.DateTime___le__(*args
, **kwargs
)
4051 def __gt__(*args
, **kwargs
):
4052 """__gt__(self, DateTime other) -> bool"""
4053 return _misc_
.DateTime___gt__(*args
, **kwargs
)
4055 def __ge__(*args
, **kwargs
):
4056 """__ge__(self, DateTime other) -> bool"""
4057 return _misc_
.DateTime___ge__(*args
, **kwargs
)
4059 def __eq__(*args
, **kwargs
):
4060 """__eq__(self, DateTime other) -> bool"""
4061 return _misc_
.DateTime___eq__(*args
, **kwargs
)
4063 def __ne__(*args
, **kwargs
):
4064 """__ne__(self, DateTime other) -> bool"""
4065 return _misc_
.DateTime___ne__(*args
, **kwargs
)
4067 def ParseRfc822Date(*args
, **kwargs
):
4068 """ParseRfc822Date(self, String date) -> int"""
4069 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
4071 def ParseFormat(*args
, **kwargs
):
4072 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
4073 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
4075 def ParseDateTime(*args
, **kwargs
):
4076 """ParseDateTime(self, String datetime) -> int"""
4077 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
4079 def ParseDate(*args
, **kwargs
):
4080 """ParseDate(self, String date) -> int"""
4081 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
4083 def ParseTime(*args
, **kwargs
):
4084 """ParseTime(self, String time) -> int"""
4085 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
4087 def Format(*args
, **kwargs
):
4088 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
4089 return _misc_
.DateTime_Format(*args
, **kwargs
)
4091 def FormatDate(*args
, **kwargs
):
4092 """FormatDate(self) -> String"""
4093 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
4095 def FormatTime(*args
, **kwargs
):
4096 """FormatTime(self) -> String"""
4097 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
4099 def FormatISODate(*args
, **kwargs
):
4100 """FormatISODate(self) -> String"""
4101 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
4103 def FormatISOTime(*args
, **kwargs
):
4104 """FormatISOTime(self) -> String"""
4105 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
4109 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4110 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
4112 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
4115 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4117 return "INVALID DateTime"
4120 class DateTimePtr(DateTime
):
4121 def __init__(self
, this
):
4123 if not hasattr(self
,"thisown"): self
.thisown
= 0
4124 self
.__class
__ = DateTime
4125 _misc_
.DateTime_swigregister(DateTimePtr
)
4126 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
4127 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
4129 def DateTime_SetCountry(*args
, **kwargs
):
4130 """DateTime_SetCountry(int country)"""
4131 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
4133 def DateTime_GetCountry(*args
, **kwargs
):
4134 """DateTime_GetCountry() -> int"""
4135 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
4137 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
4138 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
4139 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
4141 def DateTime_GetCurrentYear(*args
, **kwargs
):
4142 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
4143 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
4145 def DateTime_ConvertYearToBC(*args
, **kwargs
):
4146 """DateTime_ConvertYearToBC(int year) -> int"""
4147 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
4149 def DateTime_GetCurrentMonth(*args
, **kwargs
):
4150 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
4151 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
4153 def DateTime_IsLeapYear(*args
, **kwargs
):
4154 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
4155 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
4157 def DateTime_GetCentury(*args
, **kwargs
):
4158 """DateTime_GetCentury(int year=Inv_Year) -> int"""
4159 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
4161 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
4162 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
4163 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
4165 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
4166 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
4167 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
4169 def DateTime_GetMonthName(*args
, **kwargs
):
4170 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
4171 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
4173 def DateTime_GetWeekDayName(*args
, **kwargs
):
4174 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
4175 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
4177 def DateTime_GetAmPmStrings(*args
, **kwargs
):
4179 GetAmPmStrings() -> (am, pm)
4181 Get the AM and PM strings in the current locale (may be empty)
4183 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
4185 def DateTime_IsDSTApplicable(*args
, **kwargs
):
4186 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
4187 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
4189 def DateTime_GetBeginDST(*args
, **kwargs
):
4190 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4191 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
4193 def DateTime_GetEndDST(*args
, **kwargs
):
4194 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4195 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
4197 def DateTime_Now(*args
, **kwargs
):
4198 """DateTime_Now() -> DateTime"""
4199 return _misc_
.DateTime_Now(*args
, **kwargs
)
4201 def DateTime_UNow(*args
, **kwargs
):
4202 """DateTime_UNow() -> DateTime"""
4203 return _misc_
.DateTime_UNow(*args
, **kwargs
)
4205 def DateTime_Today(*args
, **kwargs
):
4206 """DateTime_Today() -> DateTime"""
4207 return _misc_
.DateTime_Today(*args
, **kwargs
)
4209 def DateTimeFromTimeT(*args
, **kwargs
):
4210 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4211 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
4215 def DateTimeFromJDN(*args
, **kwargs
):
4216 """DateTimeFromJDN(double jdn) -> DateTime"""
4217 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
4221 def DateTimeFromHMS(*args
, **kwargs
):
4222 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4223 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
4227 def DateTimeFromDMY(*args
, **kwargs
):
4229 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4230 int minute=0, int second=0, int millisec=0) -> DateTime
4232 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
4236 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
4237 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4238 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
4240 class TimeSpan(object):
4241 """Proxy of C++ TimeSpan class"""
4243 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4244 def Seconds(*args
, **kwargs
):
4245 """Seconds(long sec) -> TimeSpan"""
4246 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4248 Seconds
= staticmethod(Seconds
)
4249 def Second(*args
, **kwargs
):
4250 """Second() -> TimeSpan"""
4251 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4253 Second
= staticmethod(Second
)
4254 def Minutes(*args
, **kwargs
):
4255 """Minutes(long min) -> TimeSpan"""
4256 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4258 Minutes
= staticmethod(Minutes
)
4259 def Minute(*args
, **kwargs
):
4260 """Minute() -> TimeSpan"""
4261 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4263 Minute
= staticmethod(Minute
)
4264 def Hours(*args
, **kwargs
):
4265 """Hours(long hours) -> TimeSpan"""
4266 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4268 Hours
= staticmethod(Hours
)
4269 def Hour(*args
, **kwargs
):
4270 """Hour() -> TimeSpan"""
4271 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4273 Hour
= staticmethod(Hour
)
4274 def Days(*args
, **kwargs
):
4275 """Days(long days) -> TimeSpan"""
4276 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4278 Days
= staticmethod(Days
)
4279 def Day(*args
, **kwargs
):
4280 """Day() -> TimeSpan"""
4281 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4283 Day
= staticmethod(Day
)
4284 def Weeks(*args
, **kwargs
):
4285 """Weeks(long days) -> TimeSpan"""
4286 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4288 Weeks
= staticmethod(Weeks
)
4289 def Week(*args
, **kwargs
):
4290 """Week() -> TimeSpan"""
4291 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4293 Week
= staticmethod(Week
)
4294 def __init__(self
, *args
, **kwargs
):
4295 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4296 newobj
= _misc_
.new_TimeSpan(*args
, **kwargs
)
4297 self
.this
= newobj
.this
4300 def __del__(self
, destroy
=_misc_
.delete_TimeSpan
):
4303 if self
.thisown
: destroy(self
)
4306 def Add(*args
, **kwargs
):
4307 """Add(self, TimeSpan diff) -> TimeSpan"""
4308 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
4310 def Subtract(*args
, **kwargs
):
4311 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4312 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4314 def Multiply(*args
, **kwargs
):
4315 """Multiply(self, int n) -> TimeSpan"""
4316 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4318 def Neg(*args
, **kwargs
):
4319 """Neg(self) -> TimeSpan"""
4320 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4322 def Abs(*args
, **kwargs
):
4323 """Abs(self) -> TimeSpan"""
4324 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4326 def __iadd__(*args
, **kwargs
):
4327 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4328 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4330 def __isub__(*args
, **kwargs
):
4331 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4332 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4334 def __imul__(*args
, **kwargs
):
4335 """__imul__(self, int n) -> TimeSpan"""
4336 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4338 def __neg__(*args
, **kwargs
):
4339 """__neg__(self) -> TimeSpan"""
4340 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4342 def __add__(*args
, **kwargs
):
4343 """__add__(self, TimeSpan other) -> TimeSpan"""
4344 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4346 def __sub__(*args
, **kwargs
):
4347 """__sub__(self, TimeSpan other) -> TimeSpan"""
4348 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4350 def __mul__(*args
, **kwargs
):
4351 """__mul__(self, int n) -> TimeSpan"""
4352 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4354 def __rmul__(*args
, **kwargs
):
4355 """__rmul__(self, int n) -> TimeSpan"""
4356 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4358 def __lt__(*args
, **kwargs
):
4359 """__lt__(self, TimeSpan other) -> bool"""
4360 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4362 def __le__(*args
, **kwargs
):
4363 """__le__(self, TimeSpan other) -> bool"""
4364 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4366 def __gt__(*args
, **kwargs
):
4367 """__gt__(self, TimeSpan other) -> bool"""
4368 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4370 def __ge__(*args
, **kwargs
):
4371 """__ge__(self, TimeSpan other) -> bool"""
4372 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4374 def __eq__(*args
, **kwargs
):
4375 """__eq__(self, TimeSpan other) -> bool"""
4376 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4378 def __ne__(*args
, **kwargs
):
4379 """__ne__(self, TimeSpan other) -> bool"""
4380 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4382 def IsNull(*args
, **kwargs
):
4383 """IsNull(self) -> bool"""
4384 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4386 def IsPositive(*args
, **kwargs
):
4387 """IsPositive(self) -> bool"""
4388 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4390 def IsNegative(*args
, **kwargs
):
4391 """IsNegative(self) -> bool"""
4392 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4394 def IsEqualTo(*args
, **kwargs
):
4395 """IsEqualTo(self, TimeSpan ts) -> bool"""
4396 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4398 def IsLongerThan(*args
, **kwargs
):
4399 """IsLongerThan(self, TimeSpan ts) -> bool"""
4400 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4402 def IsShorterThan(*args
, **kwargs
):
4403 """IsShorterThan(self, TimeSpan t) -> bool"""
4404 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4406 def GetWeeks(*args
, **kwargs
):
4407 """GetWeeks(self) -> int"""
4408 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4410 def GetDays(*args
, **kwargs
):
4411 """GetDays(self) -> int"""
4412 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4414 def GetHours(*args
, **kwargs
):
4415 """GetHours(self) -> int"""
4416 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4418 def GetMinutes(*args
, **kwargs
):
4419 """GetMinutes(self) -> int"""
4420 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4422 def GetSeconds(*args
, **kwargs
):
4423 """GetSeconds(self) -> wxLongLong"""
4424 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4426 def GetMilliseconds(*args
, **kwargs
):
4427 """GetMilliseconds(self) -> wxLongLong"""
4428 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4430 def Format(*args
, **kwargs
):
4431 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4432 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4435 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4436 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4438 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4441 class TimeSpanPtr(TimeSpan
):
4442 def __init__(self
, this
):
4444 if not hasattr(self
,"thisown"): self
.thisown
= 0
4445 self
.__class
__ = TimeSpan
4446 _misc_
.TimeSpan_swigregister(TimeSpanPtr
)
4448 def TimeSpan_Seconds(*args
, **kwargs
):
4449 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4450 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4452 def TimeSpan_Second(*args
, **kwargs
):
4453 """TimeSpan_Second() -> TimeSpan"""
4454 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4456 def TimeSpan_Minutes(*args
, **kwargs
):
4457 """TimeSpan_Minutes(long min) -> TimeSpan"""
4458 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4460 def TimeSpan_Minute(*args
, **kwargs
):
4461 """TimeSpan_Minute() -> TimeSpan"""
4462 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4464 def TimeSpan_Hours(*args
, **kwargs
):
4465 """TimeSpan_Hours(long hours) -> TimeSpan"""
4466 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4468 def TimeSpan_Hour(*args
, **kwargs
):
4469 """TimeSpan_Hour() -> TimeSpan"""
4470 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4472 def TimeSpan_Days(*args
, **kwargs
):
4473 """TimeSpan_Days(long days) -> TimeSpan"""
4474 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4476 def TimeSpan_Day(*args
, **kwargs
):
4477 """TimeSpan_Day() -> TimeSpan"""
4478 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4480 def TimeSpan_Weeks(*args
, **kwargs
):
4481 """TimeSpan_Weeks(long days) -> TimeSpan"""
4482 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4484 def TimeSpan_Week(*args
, **kwargs
):
4485 """TimeSpan_Week() -> TimeSpan"""
4486 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4488 class DateSpan(object):
4489 """Proxy of C++ DateSpan class"""
4491 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4492 def __init__(self
, *args
, **kwargs
):
4493 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4494 newobj
= _misc_
.new_DateSpan(*args
, **kwargs
)
4495 self
.this
= newobj
.this
4498 def __del__(self
, destroy
=_misc_
.delete_DateSpan
):
4501 if self
.thisown
: destroy(self
)
4504 def Days(*args
, **kwargs
):
4505 """Days(int days) -> DateSpan"""
4506 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4508 Days
= staticmethod(Days
)
4509 def Day(*args
, **kwargs
):
4510 """Day() -> DateSpan"""
4511 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4513 Day
= staticmethod(Day
)
4514 def Weeks(*args
, **kwargs
):
4515 """Weeks(int weeks) -> DateSpan"""
4516 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4518 Weeks
= staticmethod(Weeks
)
4519 def Week(*args
, **kwargs
):
4520 """Week() -> DateSpan"""
4521 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4523 Week
= staticmethod(Week
)
4524 def Months(*args
, **kwargs
):
4525 """Months(int mon) -> DateSpan"""
4526 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4528 Months
= staticmethod(Months
)
4529 def Month(*args
, **kwargs
):
4530 """Month() -> DateSpan"""
4531 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4533 Month
= staticmethod(Month
)
4534 def Years(*args
, **kwargs
):
4535 """Years(int years) -> DateSpan"""
4536 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4538 Years
= staticmethod(Years
)
4539 def Year(*args
, **kwargs
):
4540 """Year() -> DateSpan"""
4541 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4543 Year
= staticmethod(Year
)
4544 def SetYears(*args
, **kwargs
):
4545 """SetYears(self, int n) -> DateSpan"""
4546 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4548 def SetMonths(*args
, **kwargs
):
4549 """SetMonths(self, int n) -> DateSpan"""
4550 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4552 def SetWeeks(*args
, **kwargs
):
4553 """SetWeeks(self, int n) -> DateSpan"""
4554 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4556 def SetDays(*args
, **kwargs
):
4557 """SetDays(self, int n) -> DateSpan"""
4558 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4560 def GetYears(*args
, **kwargs
):
4561 """GetYears(self) -> int"""
4562 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4564 def GetMonths(*args
, **kwargs
):
4565 """GetMonths(self) -> int"""
4566 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4568 def GetWeeks(*args
, **kwargs
):
4569 """GetWeeks(self) -> int"""
4570 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4572 def GetDays(*args
, **kwargs
):
4573 """GetDays(self) -> int"""
4574 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4576 def GetTotalDays(*args
, **kwargs
):
4577 """GetTotalDays(self) -> int"""
4578 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4580 def Add(*args
, **kwargs
):
4581 """Add(self, DateSpan other) -> DateSpan"""
4582 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4584 def Subtract(*args
, **kwargs
):
4585 """Subtract(self, DateSpan other) -> DateSpan"""
4586 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4588 def Neg(*args
, **kwargs
):
4589 """Neg(self) -> DateSpan"""
4590 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4592 def Multiply(*args
, **kwargs
):
4593 """Multiply(self, int factor) -> DateSpan"""
4594 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4596 def __iadd__(*args
, **kwargs
):
4597 """__iadd__(self, DateSpan other) -> DateSpan"""
4598 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4600 def __isub__(*args
, **kwargs
):
4601 """__isub__(self, DateSpan other) -> DateSpan"""
4602 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4604 def __neg__(*args
, **kwargs
):
4605 """__neg__(self) -> DateSpan"""
4606 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4608 def __imul__(*args
, **kwargs
):
4609 """__imul__(self, int factor) -> DateSpan"""
4610 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4612 def __add__(*args
, **kwargs
):
4613 """__add__(self, DateSpan other) -> DateSpan"""
4614 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4616 def __sub__(*args
, **kwargs
):
4617 """__sub__(self, DateSpan other) -> DateSpan"""
4618 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4620 def __mul__(*args
, **kwargs
):
4621 """__mul__(self, int n) -> DateSpan"""
4622 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4624 def __rmul__(*args
, **kwargs
):
4625 """__rmul__(self, int n) -> DateSpan"""
4626 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4628 def __eq__(*args
, **kwargs
):
4629 """__eq__(self, DateSpan other) -> bool"""
4630 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4632 def __ne__(*args
, **kwargs
):
4633 """__ne__(self, DateSpan other) -> bool"""
4634 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4637 class DateSpanPtr(DateSpan
):
4638 def __init__(self
, this
):
4640 if not hasattr(self
,"thisown"): self
.thisown
= 0
4641 self
.__class
__ = DateSpan
4642 _misc_
.DateSpan_swigregister(DateSpanPtr
)
4644 def DateSpan_Days(*args
, **kwargs
):
4645 """DateSpan_Days(int days) -> DateSpan"""
4646 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4648 def DateSpan_Day(*args
, **kwargs
):
4649 """DateSpan_Day() -> DateSpan"""
4650 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4652 def DateSpan_Weeks(*args
, **kwargs
):
4653 """DateSpan_Weeks(int weeks) -> DateSpan"""
4654 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4656 def DateSpan_Week(*args
, **kwargs
):
4657 """DateSpan_Week() -> DateSpan"""
4658 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4660 def DateSpan_Months(*args
, **kwargs
):
4661 """DateSpan_Months(int mon) -> DateSpan"""
4662 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4664 def DateSpan_Month(*args
, **kwargs
):
4665 """DateSpan_Month() -> DateSpan"""
4666 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4668 def DateSpan_Years(*args
, **kwargs
):
4669 """DateSpan_Years(int years) -> DateSpan"""
4670 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4672 def DateSpan_Year(*args
, **kwargs
):
4673 """DateSpan_Year() -> DateSpan"""
4674 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4677 def GetLocalTime(*args
, **kwargs
):
4678 """GetLocalTime() -> long"""
4679 return _misc_
.GetLocalTime(*args
, **kwargs
)
4681 def GetUTCTime(*args
, **kwargs
):
4682 """GetUTCTime() -> long"""
4683 return _misc_
.GetUTCTime(*args
, **kwargs
)
4685 def GetCurrentTime(*args
, **kwargs
):
4686 """GetCurrentTime() -> long"""
4687 return _misc_
.GetCurrentTime(*args
, **kwargs
)
4689 def GetLocalTimeMillis(*args
, **kwargs
):
4690 """GetLocalTimeMillis() -> wxLongLong"""
4691 return _misc_
.GetLocalTimeMillis(*args
, **kwargs
)
4692 #---------------------------------------------------------------------------
4694 DF_INVALID
= _misc_
.DF_INVALID
4695 DF_TEXT
= _misc_
.DF_TEXT
4696 DF_BITMAP
= _misc_
.DF_BITMAP
4697 DF_METAFILE
= _misc_
.DF_METAFILE
4698 DF_SYLK
= _misc_
.DF_SYLK
4699 DF_DIF
= _misc_
.DF_DIF
4700 DF_TIFF
= _misc_
.DF_TIFF
4701 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4702 DF_DIB
= _misc_
.DF_DIB
4703 DF_PALETTE
= _misc_
.DF_PALETTE
4704 DF_PENDATA
= _misc_
.DF_PENDATA
4705 DF_RIFF
= _misc_
.DF_RIFF
4706 DF_WAVE
= _misc_
.DF_WAVE
4707 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4708 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4709 DF_FILENAME
= _misc_
.DF_FILENAME
4710 DF_LOCALE
= _misc_
.DF_LOCALE
4711 DF_PRIVATE
= _misc_
.DF_PRIVATE
4712 DF_HTML
= _misc_
.DF_HTML
4713 DF_MAX
= _misc_
.DF_MAX
4714 class DataFormat(object):
4716 A wx.DataFormat is an encapsulation of a platform-specific format
4717 handle which is used by the system for the clipboard and drag and drop
4718 operations. The applications are usually only interested in, for
4719 example, pasting data from the clipboard only if the data is in a
4720 format the program understands. A data format is is used to uniquely
4721 identify this format.
4724 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4725 def __init__(self
, *args
, **kwargs
):
4727 __init__(self, int type) -> DataFormat
4729 Constructs a data format object for one of the standard data formats
4730 or an empty data object (use SetType or SetId later in this case)
4732 newobj
= _misc_
.new_DataFormat(*args
, **kwargs
)
4733 self
.this
= newobj
.this
4736 def __del__(self
, destroy
=_misc_
.delete_DataFormat
):
4739 if self
.thisown
: destroy(self
)
4744 __eq__(self, int format) -> bool
4745 __eq__(self, DataFormat format) -> bool
4747 return _misc_
.DataFormat___eq__(*args
)
4751 __ne__(self, int format) -> bool
4752 __ne__(self, DataFormat format) -> bool
4754 return _misc_
.DataFormat___ne__(*args
)
4756 def SetType(*args
, **kwargs
):
4758 SetType(self, int format)
4760 Sets the format to the given value, which should be one of wx.DF_XXX
4763 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4765 def GetType(*args
, **kwargs
):
4767 GetType(self) -> int
4769 Returns the platform-specific number identifying the format.
4771 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4773 def GetId(*args
, **kwargs
):
4775 GetId(self) -> String
4777 Returns the name of a custom format (this function will fail for a
4780 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4782 def SetId(*args
, **kwargs
):
4784 SetId(self, String format)
4786 Sets the format to be the custom format identified by the given name.
4788 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4791 class DataFormatPtr(DataFormat
):
4792 def __init__(self
, this
):
4794 if not hasattr(self
,"thisown"): self
.thisown
= 0
4795 self
.__class
__ = DataFormat
4796 _misc_
.DataFormat_swigregister(DataFormatPtr
)
4797 DefaultDateTime
= cvar
.DefaultDateTime
4799 def CustomDataFormat(*args
, **kwargs
):
4801 CustomDataFormat(String format) -> DataFormat
4803 Constructs a data format object for a custom format identified by its
4806 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4810 class DataObject(object):
4812 A wx.DataObject represents data that can be copied to or from the
4813 clipboard, or dragged and dropped. The important thing about
4814 wx.DataObject is that this is a 'smart' piece of data unlike usual
4815 'dumb' data containers such as memory buffers or files. Being 'smart'
4816 here means that the data object itself should know what data formats
4817 it supports and how to render itself in each of supported formats.
4819 **NOTE**: This class is an abstract base class and can not be used
4820 directly from Python. If you need a custom type of data object then
4821 you should instead derive from `wx.PyDataObjectSimple` or use
4822 `wx.CustomDataObject`.
4825 def __init__(self
): raise RuntimeError, "No constructor defined"
4827 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4828 Get
= _misc_
.DataObject_Get
4829 Set
= _misc_
.DataObject_Set
4830 Both
= _misc_
.DataObject_Both
4831 def __del__(self
, destroy
=_misc_
.delete_DataObject
):
4834 if self
.thisown
: destroy(self
)
4837 def GetPreferredFormat(*args
, **kwargs
):
4839 GetPreferredFormat(self, int dir=Get) -> DataFormat
4841 Returns the preferred format for either rendering the data (if dir is
4842 Get, its default value) or for setting it. Usually this will be the
4843 native format of the wx.DataObject.
4845 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4847 def GetFormatCount(*args
, **kwargs
):
4849 GetFormatCount(self, int dir=Get) -> size_t
4851 Returns the number of available formats for rendering or setting the
4854 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4856 def IsSupported(*args
, **kwargs
):
4858 IsSupported(self, DataFormat format, int dir=Get) -> bool
4860 Returns True if this format is supported.
4862 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4864 def GetDataSize(*args
, **kwargs
):
4866 GetDataSize(self, DataFormat format) -> size_t
4868 Get the (total) size of data for the given format
4870 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4872 def GetAllFormats(*args
, **kwargs
):
4874 GetAllFormats(self, int dir=Get) -> [formats]
4876 Returns a list of all the wx.DataFormats that this dataobject supports
4877 in the given direction.
4879 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4881 def GetDataHere(*args
, **kwargs
):
4883 GetDataHere(self, DataFormat format) -> String
4885 Get the data bytes in the specified format, returns None on failure.
4887 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4889 def SetData(*args
, **kwargs
):
4891 SetData(self, DataFormat format, String data) -> bool
4893 Set the data in the specified format from the bytes in the the data string.
4896 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4899 class DataObjectPtr(DataObject
):
4900 def __init__(self
, this
):
4902 if not hasattr(self
,"thisown"): self
.thisown
= 0
4903 self
.__class
__ = DataObject
4904 _misc_
.DataObject_swigregister(DataObjectPtr
)
4905 FormatInvalid
= cvar
.FormatInvalid
4907 class DataObjectSimple(DataObject
):
4909 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4910 format. This is the simplest possible `wx.DataObject` implementation.
4912 This is still an "abstract base class" meaning that you can't use it
4913 directly. You either need to use one of the predefined base classes,
4914 or derive your own class from `wx.PyDataObjectSimple`.
4918 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4919 def __init__(self
, *args
, **kwargs
):
4921 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4923 Constructor accepts the supported format (none by default) which may
4924 also be set later with `SetFormat`.
4926 newobj
= _misc_
.new_DataObjectSimple(*args
, **kwargs
)
4927 self
.this
= newobj
.this
4930 def GetFormat(*args
, **kwargs
):
4932 GetFormat(self) -> DataFormat
4934 Returns the (one and only one) format supported by this object. It is
4935 assumed that the format is supported in both directions.
4937 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4939 def SetFormat(*args
, **kwargs
):
4941 SetFormat(self, DataFormat format)
4943 Sets the supported format.
4945 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4947 def GetDataSize(*args
, **kwargs
):
4949 GetDataSize(self) -> size_t
4951 Get the size of our data.
4953 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4955 def GetDataHere(*args
, **kwargs
):
4957 GetDataHere(self) -> String
4959 Returns the data bytes from the data object as a string, returns None
4960 on failure. Must be implemented in the derived class if the object
4961 supports rendering its data.
4963 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4965 def SetData(*args
, **kwargs
):
4967 SetData(self, String data) -> bool
4969 Copy the data value to the data object. Must be implemented in the
4970 derived class if the object supports setting its data.
4973 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4976 class DataObjectSimplePtr(DataObjectSimple
):
4977 def __init__(self
, this
):
4979 if not hasattr(self
,"thisown"): self
.thisown
= 0
4980 self
.__class
__ = DataObjectSimple
4981 _misc_
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4983 class PyDataObjectSimple(DataObjectSimple
):
4985 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4986 Python-aware and knows how to reflect calls to its C++ virtual methods
4987 to methods in the Python derived class. You should derive from this
4988 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4989 need to create your own simple single-format type of `wx.DataObject`.
4993 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4994 def __init__(self
, *args
, **kwargs
):
4996 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4998 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4999 Python-aware and knows how to reflect calls to its C++ virtual methods
5000 to methods in the Python derived class. You should derive from this
5001 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
5002 need to create your own simple single-format type of `wx.DataObject`.
5005 newobj
= _misc_
.new_PyDataObjectSimple(*args
, **kwargs
)
5006 self
.this
= newobj
.this
5009 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
5011 def _setCallbackInfo(*args
, **kwargs
):
5012 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5013 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
5016 class PyDataObjectSimplePtr(PyDataObjectSimple
):
5017 def __init__(self
, this
):
5019 if not hasattr(self
,"thisown"): self
.thisown
= 0
5020 self
.__class
__ = PyDataObjectSimple
5021 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
5023 class DataObjectComposite(DataObject
):
5025 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
5026 which may be sued to support multiple formats. It contains several
5027 'wx.DataObjectSimple` objects and supports any format supported by at
5028 least one of them. Only one of these data objects is *preferred* (the
5029 first one if not explicitly changed by using the second parameter of
5030 `Add`) and its format determines the preferred format of the composite
5031 data object as well.
5033 See `wx.DataObject` documentation for the reasons why you might prefer
5034 to use wx.DataObject directly instead of wx.DataObjectComposite for
5039 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5040 def __init__(self
, *args
, **kwargs
):
5042 __init__(self) -> DataObjectComposite
5044 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
5045 which may be sued to support multiple formats. It contains several
5046 'wx.DataObjectSimple` objects and supports any format supported by at
5047 least one of them. Only one of these data objects is *preferred* (the
5048 first one if not explicitly changed by using the second parameter of
5049 `Add`) and its format determines the preferred format of the composite
5050 data object as well.
5052 See `wx.DataObject` documentation for the reasons why you might prefer
5053 to use wx.DataObject directly instead of wx.DataObjectComposite for
5057 newobj
= _misc_
.new_DataObjectComposite(*args
, **kwargs
)
5058 self
.this
= newobj
.this
5061 def Add(*args
, **kwargs
):
5063 Add(self, DataObjectSimple dataObject, bool preferred=False)
5065 Adds the dataObject to the list of supported objects and it becomes
5066 the preferred object if preferred is True.
5068 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
5071 class DataObjectCompositePtr(DataObjectComposite
):
5072 def __init__(self
, this
):
5074 if not hasattr(self
,"thisown"): self
.thisown
= 0
5075 self
.__class
__ = DataObjectComposite
5076 _misc_
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
5078 class TextDataObject(DataObjectSimple
):
5080 wx.TextDataObject is a specialization of `wx.DataObject` for text
5081 data. It can be used without change to paste data into the `wx.Clipboard`
5082 or a `wx.DropSource`.
5084 Alternativly, you may wish to derive a new class from the
5085 `wx.PyTextDataObject` class for providing text on-demand in order to
5086 minimize memory consumption when offering data in several formats,
5087 such as plain text and RTF, because by default the text is stored in a
5088 string in this class, but it might as well be generated on demand when
5089 requested. For this, `GetTextLength` and `GetText` will have to be
5093 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5094 def __init__(self
, *args
, **kwargs
):
5096 __init__(self, String text=EmptyString) -> TextDataObject
5098 Constructor, may be used to initialise the text (otherwise `SetText`
5099 should be used later).
5101 newobj
= _misc_
.new_TextDataObject(*args
, **kwargs
)
5102 self
.this
= newobj
.this
5105 def GetTextLength(*args
, **kwargs
):
5107 GetTextLength(self) -> size_t
5109 Returns the data size. By default, returns the size of the text data
5110 set in the constructor or using `SetText`. This can be overridden (via
5111 `wx.PyTextDataObject`) to provide text size data on-demand. It is
5112 recommended to return the text length plus 1 for a trailing zero, but
5113 this is not strictly required.
5115 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
5117 def GetText(*args
, **kwargs
):
5119 GetText(self) -> String
5121 Returns the text associated with the data object.
5123 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
5125 def SetText(*args
, **kwargs
):
5127 SetText(self, String text)
5129 Sets the text associated with the data object. This method is called
5130 when the data object receives the data and, by default, copies the
5131 text into the member variable. If you want to process the text on the
5132 fly you may wish to override this function (via
5133 `wx.PyTextDataObject`.)
5135 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
5138 class TextDataObjectPtr(TextDataObject
):
5139 def __init__(self
, this
):
5141 if not hasattr(self
,"thisown"): self
.thisown
= 0
5142 self
.__class
__ = TextDataObject
5143 _misc_
.TextDataObject_swigregister(TextDataObjectPtr
)
5145 class PyTextDataObject(TextDataObject
):
5147 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5148 Python-aware and knows how to reflect calls to its C++ virtual methods
5149 to methods in the Python derived class. You should derive from this
5150 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5151 want to be able to provide text on demand instead of preloading it
5152 into the data object.
5155 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5156 def __init__(self
, *args
, **kwargs
):
5158 __init__(self, String text=EmptyString) -> PyTextDataObject
5160 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5161 Python-aware and knows how to reflect calls to its C++ virtual methods
5162 to methods in the Python derived class. You should derive from this
5163 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5164 want to be able to provide text on demand instead of preloading it
5165 into the data object.
5167 newobj
= _misc_
.new_PyTextDataObject(*args
, **kwargs
)
5168 self
.this
= newobj
.this
5171 self
._setCallbackInfo
(self
, PyTextDataObject
)
5173 def _setCallbackInfo(*args
, **kwargs
):
5174 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5175 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
5178 class PyTextDataObjectPtr(PyTextDataObject
):
5179 def __init__(self
, this
):
5181 if not hasattr(self
,"thisown"): self
.thisown
= 0
5182 self
.__class
__ = PyTextDataObject
5183 _misc_
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
5185 class BitmapDataObject(DataObjectSimple
):
5187 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
5188 data. It can be used without change to paste data into the `wx.Clipboard`
5189 or a `wx.DropSource`.
5193 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5194 def __init__(self
, *args
, **kwargs
):
5196 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
5198 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
5201 newobj
= _misc_
.new_BitmapDataObject(*args
, **kwargs
)
5202 self
.this
= newobj
.this
5205 def GetBitmap(*args
, **kwargs
):
5207 GetBitmap(self) -> Bitmap
5209 Returns the bitmap associated with the data object. You may wish to
5210 override this method (by deriving from `wx.PyBitmapDataObject`) when
5211 offering data on-demand, but this is not required by wxWidgets'
5212 internals. Use this method to get data in bitmap form from the
5215 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
5217 def SetBitmap(*args
, **kwargs
):
5219 SetBitmap(self, Bitmap bitmap)
5221 Sets the bitmap associated with the data object. This method is called
5222 when the data object receives data. Usually there will be no reason to
5223 override this function.
5225 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
5228 class BitmapDataObjectPtr(BitmapDataObject
):
5229 def __init__(self
, this
):
5231 if not hasattr(self
,"thisown"): self
.thisown
= 0
5232 self
.__class
__ = BitmapDataObject
5233 _misc_
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
5235 class PyBitmapDataObject(BitmapDataObject
):
5237 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5238 Python-aware and knows how to reflect calls to its C++ virtual methods
5239 to methods in the Python derived class. To be able to provide bitmap
5240 data on demand derive from this class and overload `GetBitmap`.
5243 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5244 def __init__(self
, *args
, **kwargs
):
5246 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
5248 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5249 Python-aware and knows how to reflect calls to its C++ virtual methods
5250 to methods in the Python derived class. To be able to provide bitmap
5251 data on demand derive from this class and overload `GetBitmap`.
5253 newobj
= _misc_
.new_PyBitmapDataObject(*args
, **kwargs
)
5254 self
.this
= newobj
.this
5257 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
5259 def _setCallbackInfo(*args
, **kwargs
):
5260 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5261 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
5264 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
5265 def __init__(self
, this
):
5267 if not hasattr(self
,"thisown"): self
.thisown
= 0
5268 self
.__class
__ = PyBitmapDataObject
5269 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
5271 class FileDataObject(DataObjectSimple
):
5273 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
5274 file names. The program works with it just as if it were a list of
5275 absolute file names, but internally it uses the same format as
5276 Explorer and other compatible programs under Windows or GNOME/KDE
5277 filemanager under Unix which makes it possible to receive files from
5278 them using this class.
5281 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5282 def __init__(self
, *args
, **kwargs
):
5283 """__init__(self) -> FileDataObject"""
5284 newobj
= _misc_
.new_FileDataObject(*args
, **kwargs
)
5285 self
.this
= newobj
.this
5288 def GetFilenames(*args
, **kwargs
):
5290 GetFilenames(self) -> [names]
5292 Returns a list of file names.
5294 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
5296 def AddFile(*args
, **kwargs
):
5298 AddFile(self, String filename)
5300 Adds a file to the list of files represented by this data object.
5302 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5305 class FileDataObjectPtr(FileDataObject
):
5306 def __init__(self
, this
):
5308 if not hasattr(self
,"thisown"): self
.thisown
= 0
5309 self
.__class
__ = FileDataObject
5310 _misc_
.FileDataObject_swigregister(FileDataObjectPtr
)
5312 class CustomDataObject(DataObjectSimple
):
5314 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5315 some application-specific data in arbitrary format. Python strings
5316 are used for getting and setting data, but any picklable object can
5317 easily be transfered via strings. A copy of the data is stored in the
5321 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5322 def __init__(self
, *args
):
5324 __init__(self, DataFormat format) -> CustomDataObject
5325 __init__(self, String formatName) -> CustomDataObject
5326 __init__(self) -> CustomDataObject
5328 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5329 some application-specific data in arbitrary format. Python strings
5330 are used for getting and setting data, but any picklable object can
5331 easily be transfered via strings. A copy of the data is stored in the
5334 newobj
= _misc_
.new_CustomDataObject(*args
)
5335 self
.this
= newobj
.this
5338 def SetData(*args
, **kwargs
):
5340 SetData(self, String data) -> bool
5342 Copy the data value to the data object.
5344 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5347 def GetSize(*args
, **kwargs
):
5349 GetSize(self) -> size_t
5351 Get the size of the data.
5353 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5355 def GetData(*args
, **kwargs
):
5357 GetData(self) -> String
5359 Returns the data bytes from the data object as a string.
5361 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5364 class CustomDataObjectPtr(CustomDataObject
):
5365 def __init__(self
, this
):
5367 if not hasattr(self
,"thisown"): self
.thisown
= 0
5368 self
.__class
__ = CustomDataObject
5369 _misc_
.CustomDataObject_swigregister(CustomDataObjectPtr
)
5371 class URLDataObject(DataObject
):
5373 This data object holds a URL in a format that is compatible with some
5374 browsers such that it is able to be dragged to or from them.
5377 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5378 def __init__(self
, *args
, **kwargs
):
5380 __init__(self) -> URLDataObject
5382 This data object holds a URL in a format that is compatible with some
5383 browsers such that it is able to be dragged to or from them.
5385 newobj
= _misc_
.new_URLDataObject(*args
, **kwargs
)
5386 self
.this
= newobj
.this
5389 def GetURL(*args
, **kwargs
):
5391 GetURL(self) -> String
5393 Returns a string containing the current URL.
5395 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5397 def SetURL(*args
, **kwargs
):
5399 SetURL(self, String url)
5403 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5406 class URLDataObjectPtr(URLDataObject
):
5407 def __init__(self
, this
):
5409 if not hasattr(self
,"thisown"): self
.thisown
= 0
5410 self
.__class
__ = URLDataObject
5411 _misc_
.URLDataObject_swigregister(URLDataObjectPtr
)
5413 class MetafileDataObject(DataObjectSimple
):
5414 """Proxy of C++ MetafileDataObject class"""
5416 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5417 def __init__(self
, *args
, **kwargs
):
5418 """__init__(self) -> MetafileDataObject"""
5419 newobj
= _misc_
.new_MetafileDataObject(*args
, **kwargs
)
5420 self
.this
= newobj
.this
5423 def SetMetafile(*args
, **kwargs
):
5424 """SetMetafile(self, wxMetafile metafile)"""
5425 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
5427 def GetMetafile(*args
, **kwargs
):
5428 """GetMetafile(self) -> wxMetafile"""
5429 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
5432 class MetafileDataObjectPtr(MetafileDataObject
):
5433 def __init__(self
, this
):
5435 if not hasattr(self
,"thisown"): self
.thisown
= 0
5436 self
.__class
__ = MetafileDataObject
5437 _misc_
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
5439 #---------------------------------------------------------------------------
5441 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5442 Drag_AllowMove
= _misc_
.Drag_AllowMove
5443 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5444 DragError
= _misc_
.DragError
5445 DragNone
= _misc_
.DragNone
5446 DragCopy
= _misc_
.DragCopy
5447 DragMove
= _misc_
.DragMove
5448 DragLink
= _misc_
.DragLink
5449 DragCancel
= _misc_
.DragCancel
5451 def IsDragResultOk(*args
, **kwargs
):
5452 """IsDragResultOk(int res) -> bool"""
5453 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5454 class DropSource(object):
5455 """Proxy of C++ DropSource class"""
5457 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5458 def __init__(self
, *args
, **kwargs
):
5460 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
5461 Cursor none=wxNullCursor) -> DropSource
5463 newobj
= _misc_
.new_DropSource(*args
, **kwargs
)
5464 self
.this
= newobj
.this
5467 self
._setCallbackInfo
(self
, DropSource
, 0)
5469 def _setCallbackInfo(*args
, **kwargs
):
5470 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5471 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5473 def __del__(self
, destroy
=_misc_
.delete_DropSource
):
5476 if self
.thisown
: destroy(self
)
5479 def SetData(*args
, **kwargs
):
5480 """SetData(self, DataObject data)"""
5481 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5483 def GetDataObject(*args
, **kwargs
):
5484 """GetDataObject(self) -> DataObject"""
5485 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5487 def SetCursor(*args
, **kwargs
):
5488 """SetCursor(self, int res, Cursor cursor)"""
5489 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5491 def DoDragDrop(*args
, **kwargs
):
5492 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5493 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5495 def GiveFeedback(*args
, **kwargs
):
5496 """GiveFeedback(self, int effect) -> bool"""
5497 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
5499 def base_GiveFeedback(*args
, **kw
):
5500 return DropSource
.GiveFeedback(*args
, **kw
)
5501 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
5502 "Please use DropSource.GiveFeedback instead.")
5505 class DropSourcePtr(DropSource
):
5506 def __init__(self
, this
):
5508 if not hasattr(self
,"thisown"): self
.thisown
= 0
5509 self
.__class
__ = DropSource
5510 _misc_
.DropSource_swigregister(DropSourcePtr
)
5512 def DROP_ICON(filename
):
5514 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5515 ``filename``. This function is useful with the `wx.DropSource` class
5516 which, depending on platform accepts either a icon or a cursor.
5518 img
= wx
.Image(filename
)
5519 if wx
.Platform
== '__WXGTK__':
5520 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
5522 return wx
.CursorFromImage(img
)
5524 class DropTarget(object):
5525 """Proxy of C++ DropTarget class"""
5527 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5528 def __init__(self
, *args
, **kwargs
):
5529 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5530 newobj
= _misc_
.new_DropTarget(*args
, **kwargs
)
5531 self
.this
= newobj
.this
5534 self
._setCallbackInfo
(self
, DropTarget
)
5536 def _setCallbackInfo(*args
, **kwargs
):
5537 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5538 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5540 def __del__(self
, destroy
=_misc_
.delete_DropTarget
):
5543 if self
.thisown
: destroy(self
)
5546 def GetDataObject(*args
, **kwargs
):
5547 """GetDataObject(self) -> DataObject"""
5548 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5550 def SetDataObject(*args
, **kwargs
):
5551 """SetDataObject(self, DataObject dataObject)"""
5552 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5554 def OnEnter(*args
, **kwargs
):
5555 """OnEnter(self, int x, int y, int def) -> int"""
5556 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5558 def OnDragOver(*args
, **kwargs
):
5559 """OnDragOver(self, int x, int y, int def) -> int"""
5560 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5562 def OnLeave(*args
, **kwargs
):
5564 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5566 def OnDrop(*args
, **kwargs
):
5567 """OnDrop(self, int x, int y) -> bool"""
5568 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5570 def base_OnEnter(*args
, **kw
):
5571 return DropTarget
.OnEnter(*args
, **kw
)
5572 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5573 "Please use DropTarget.OnEnter instead.")
5575 def base_OnDragOver(*args
, **kw
):
5576 return DropTarget
.OnDragOver(*args
, **kw
)
5577 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5578 "Please use DropTarget.OnDragOver instead.")
5580 def base_OnLeave(*args
, **kw
):
5581 return DropTarget
.OnLeave(*args
, **kw
)
5582 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5583 "Please use DropTarget.OnLeave instead.")
5585 def base_OnDrop(*args
, **kw
):
5586 return DropTarget
.OnDrop(*args
, **kw
)
5587 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5588 "Please use DropTarget.OnDrop instead.")
5590 def GetData(*args
, **kwargs
):
5591 """GetData(self) -> bool"""
5592 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5594 def SetDefaultAction(*args
, **kwargs
):
5595 """SetDefaultAction(self, int action)"""
5596 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5598 def GetDefaultAction(*args
, **kwargs
):
5599 """GetDefaultAction(self) -> int"""
5600 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5603 class DropTargetPtr(DropTarget
):
5604 def __init__(self
, this
):
5606 if not hasattr(self
,"thisown"): self
.thisown
= 0
5607 self
.__class
__ = DropTarget
5608 _misc_
.DropTarget_swigregister(DropTargetPtr
)
5610 PyDropTarget
= DropTarget
5611 class TextDropTarget(DropTarget
):
5612 """Proxy of C++ TextDropTarget class"""
5614 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5615 def __init__(self
, *args
, **kwargs
):
5616 """__init__(self) -> TextDropTarget"""
5617 newobj
= _misc_
.new_TextDropTarget(*args
, **kwargs
)
5618 self
.this
= newobj
.this
5621 self
._setCallbackInfo
(self
, TextDropTarget
)
5623 def _setCallbackInfo(*args
, **kwargs
):
5624 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5625 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5627 def OnDropText(*args
, **kwargs
):
5628 """OnDropText(self, int x, int y, String text) -> bool"""
5629 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5631 def OnEnter(*args
, **kwargs
):
5632 """OnEnter(self, int x, int y, int def) -> int"""
5633 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5635 def OnDragOver(*args
, **kwargs
):
5636 """OnDragOver(self, int x, int y, int def) -> int"""
5637 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5639 def OnLeave(*args
, **kwargs
):
5641 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5643 def OnDrop(*args
, **kwargs
):
5644 """OnDrop(self, int x, int y) -> bool"""
5645 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5647 def OnData(*args
, **kwargs
):
5648 """OnData(self, int x, int y, int def) -> int"""
5649 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5651 def base_OnDropText(*args
, **kw
):
5652 return TextDropTarget
.OnDropText(*args
, **kw
)
5653 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5654 "Please use TextDropTarget.OnDropText instead.")
5656 def base_OnEnter(*args
, **kw
):
5657 return TextDropTarget
.OnEnter(*args
, **kw
)
5658 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5659 "Please use TextDropTarget.OnEnter instead.")
5661 def base_OnDragOver(*args
, **kw
):
5662 return TextDropTarget
.OnDragOver(*args
, **kw
)
5663 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5664 "Please use TextDropTarget.OnDragOver instead.")
5666 def base_OnLeave(*args
, **kw
):
5667 return TextDropTarget
.OnLeave(*args
, **kw
)
5668 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5669 "Please use TextDropTarget.OnLeave instead.")
5671 def base_OnDrop(*args
, **kw
):
5672 return TextDropTarget
.OnDrop(*args
, **kw
)
5673 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5674 "Please use TextDropTarget.OnDrop instead.")
5676 def base_OnData(*args
, **kw
):
5677 return TextDropTarget
.OnData(*args
, **kw
)
5678 base_OnData
= wx
._deprecated
(base_OnData
,
5679 "Please use TextDropTarget.OnData instead.")
5682 class TextDropTargetPtr(TextDropTarget
):
5683 def __init__(self
, this
):
5685 if not hasattr(self
,"thisown"): self
.thisown
= 0
5686 self
.__class
__ = TextDropTarget
5687 _misc_
.TextDropTarget_swigregister(TextDropTargetPtr
)
5689 class FileDropTarget(DropTarget
):
5690 """Proxy of C++ FileDropTarget class"""
5692 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5693 def __init__(self
, *args
, **kwargs
):
5694 """__init__(self) -> FileDropTarget"""
5695 newobj
= _misc_
.new_FileDropTarget(*args
, **kwargs
)
5696 self
.this
= newobj
.this
5699 self
._setCallbackInfo
(self
, FileDropTarget
)
5701 def _setCallbackInfo(*args
, **kwargs
):
5702 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5703 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5705 def OnDropFiles(*args
, **kwargs
):
5706 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5707 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5709 def OnEnter(*args
, **kwargs
):
5710 """OnEnter(self, int x, int y, int def) -> int"""
5711 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5713 def OnDragOver(*args
, **kwargs
):
5714 """OnDragOver(self, int x, int y, int def) -> int"""
5715 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5717 def OnLeave(*args
, **kwargs
):
5719 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5721 def OnDrop(*args
, **kwargs
):
5722 """OnDrop(self, int x, int y) -> bool"""
5723 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5725 def OnData(*args
, **kwargs
):
5726 """OnData(self, int x, int y, int def) -> int"""
5727 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5729 def base_OnDropFiles(*args
, **kw
):
5730 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5731 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5732 "Please use FileDropTarget.OnDropFiles instead.")
5734 def base_OnEnter(*args
, **kw
):
5735 return FileDropTarget
.OnEnter(*args
, **kw
)
5736 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5737 "Please use FileDropTarget.OnEnter instead.")
5739 def base_OnDragOver(*args
, **kw
):
5740 return FileDropTarget
.OnDragOver(*args
, **kw
)
5741 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5742 "Please use FileDropTarget.OnDragOver instead.")
5744 def base_OnLeave(*args
, **kw
):
5745 return FileDropTarget
.OnLeave(*args
, **kw
)
5746 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5747 "Please use FileDropTarget.OnLeave instead.")
5749 def base_OnDrop(*args
, **kw
):
5750 return FileDropTarget
.OnDrop(*args
, **kw
)
5751 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5752 "Please use FileDropTarget.OnDrop instead.")
5754 def base_OnData(*args
, **kw
):
5755 return FileDropTarget
.OnData(*args
, **kw
)
5756 base_OnData
= wx
._deprecated
(base_OnData
,
5757 "Please use FileDropTarget.OnData instead.")
5760 class FileDropTargetPtr(FileDropTarget
):
5761 def __init__(self
, this
):
5763 if not hasattr(self
,"thisown"): self
.thisown
= 0
5764 self
.__class
__ = FileDropTarget
5765 _misc_
.FileDropTarget_swigregister(FileDropTargetPtr
)
5767 #---------------------------------------------------------------------------
5769 class Clipboard(_core
.Object
):
5771 wx.Clipboard represents the system clipboard and provides methods to
5772 copy data to it or paste data from it. Normally, you should only use
5773 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5776 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5777 clipboard. If this operation returns True, you now own the
5778 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5779 to retrieve data from the clipboard. Call `Close` to close the
5780 clipboard and relinquish ownership. You should keep the clipboard open
5783 :see: `wx.DataObject`
5787 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5788 def __init__(self
, *args
, **kwargs
):
5789 """__init__(self) -> Clipboard"""
5790 newobj
= _misc_
.new_Clipboard(*args
, **kwargs
)
5791 self
.this
= newobj
.this
5794 def __del__(self
, destroy
=_misc_
.delete_Clipboard
):
5797 if self
.thisown
: destroy(self
)
5800 def Open(*args
, **kwargs
):
5804 Call this function to open the clipboard before calling SetData and
5805 GetData. Call Close when you have finished with the clipboard. You
5806 should keep the clipboard open for only a very short time. Returns
5809 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5811 def Close(*args
, **kwargs
):
5815 Closes the clipboard.
5817 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5819 def IsOpened(*args
, **kwargs
):
5821 IsOpened(self) -> bool
5823 Query whether the clipboard is opened
5825 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5827 def AddData(*args
, **kwargs
):
5829 AddData(self, DataObject data) -> bool
5831 Call this function to add the data object to the clipboard. You may
5832 call this function repeatedly after having cleared the clipboard.
5833 After this function has been called, the clipboard owns the data, so
5834 do not delete the data explicitly.
5836 :see: `wx.DataObject`
5838 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5840 def SetData(*args
, **kwargs
):
5842 SetData(self, DataObject data) -> bool
5844 Set the clipboard data, this is the same as `Clear` followed by
5847 :see: `wx.DataObject`
5849 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5851 def IsSupported(*args
, **kwargs
):
5853 IsSupported(self, DataFormat format) -> bool
5855 Returns True if the given format is available in the data object(s) on
5858 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5860 def GetData(*args
, **kwargs
):
5862 GetData(self, DataObject data) -> bool
5864 Call this function to fill data with data on the clipboard, if
5865 available in the required format. Returns true on success.
5867 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5869 def Clear(*args
, **kwargs
):
5873 Clears data from the clipboard object and also the system's clipboard
5876 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5878 def Flush(*args
, **kwargs
):
5882 Flushes the clipboard: this means that the data which is currently on
5883 clipboard will stay available even after the application exits,
5884 possibly eating memory, otherwise the clipboard will be emptied on
5885 exit. Returns False if the operation is unsuccesful for any reason.
5887 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5889 def UsePrimarySelection(*args
, **kwargs
):
5891 UsePrimarySelection(self, bool primary=True)
5893 On platforms supporting it (the X11 based platforms), selects the
5894 so called PRIMARY SELECTION as the clipboard as opposed to the
5895 normal clipboard, if primary is True.
5897 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5899 def Get(*args
, **kwargs
):
5903 Returns global instance (wxTheClipboard) of the object.
5905 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5907 Get
= staticmethod(Get
)
5909 class ClipboardPtr(Clipboard
):
5910 def __init__(self
, this
):
5912 if not hasattr(self
,"thisown"): self
.thisown
= 0
5913 self
.__class
__ = Clipboard
5914 _misc_
.Clipboard_swigregister(ClipboardPtr
)
5916 def Clipboard_Get(*args
, **kwargs
):
5918 Clipboard_Get() -> Clipboard
5920 Returns global instance (wxTheClipboard) of the object.
5922 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5924 class _wxPyDelayedInitWrapper(object):
5925 def __init__(self
, initfunc
, *args
, **kwargs
):
5926 self
._initfunc
= initfunc
5928 self
._kwargs
= kwargs
5929 self
._instance
= None
5930 def _checkInstance(self
):
5931 if self
._instance
is None:
5933 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5934 def __getattr__(self
, name
):
5935 self
._checkInstance
()
5936 return getattr(self
._instance
, name
)
5938 self
._checkInstance
()
5939 return repr(self
._instance
)
5940 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5942 class ClipboardLocker(object):
5944 A helpful class for opening the clipboard and automatically
5945 closing it when the locker is destroyed.
5948 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5949 def __init__(self
, *args
, **kwargs
):
5951 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5953 A helpful class for opening the clipboard and automatically
5954 closing it when the locker is destroyed.
5956 newobj
= _misc_
.new_ClipboardLocker(*args
, **kwargs
)
5957 self
.this
= newobj
.this
5960 def __del__(self
, destroy
=_misc_
.delete_ClipboardLocker
):
5963 if self
.thisown
: destroy(self
)
5966 def __nonzero__(*args
, **kwargs
):
5968 __nonzero__(self) -> bool
5970 A ClipboardLocker instance evaluates to True if the clipboard was
5971 successfully opened.
5973 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5976 class ClipboardLockerPtr(ClipboardLocker
):
5977 def __init__(self
, this
):
5979 if not hasattr(self
,"thisown"): self
.thisown
= 0
5980 self
.__class
__ = ClipboardLocker
5981 _misc_
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
5983 #---------------------------------------------------------------------------
5985 class VideoMode(object):
5986 """A simple struct containing video mode parameters for a display"""
5988 return "<%s.%s; proxy of C++ wxVideoMode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5989 def __init__(self
, *args
, **kwargs
):
5991 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5993 A simple struct containing video mode parameters for a display
5995 newobj
= _misc_
.new_VideoMode(*args
, **kwargs
)
5996 self
.this
= newobj
.this
5999 def __del__(self
, destroy
=_misc_
.delete_VideoMode
):
6002 if self
.thisown
: destroy(self
)
6005 def Matches(*args
, **kwargs
):
6007 Matches(self, VideoMode other) -> bool
6009 Returns true if this mode matches the other one in the sense that all
6010 non zero fields of the other mode have the same value in this
6011 one (except for refresh which is allowed to have a greater value)
6013 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
6015 def GetWidth(*args
, **kwargs
):
6017 GetWidth(self) -> int
6019 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
6021 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
6023 def GetHeight(*args
, **kwargs
):
6025 GetHeight(self) -> int
6027 Returns the screen width in pixels (e.g. 640*480), 0 means
6030 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
6032 def GetDepth(*args
, **kwargs
):
6034 GetDepth(self) -> int
6036 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
6037 means unspecified/known
6039 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
6041 def IsOk(*args
, **kwargs
):
6045 returns true if the object has been initialized
6047 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
6049 def __nonzero__(self
): return self
.IsOk()
6050 def __eq__(*args
, **kwargs
):
6051 """__eq__(self, VideoMode other) -> bool"""
6052 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
6054 def __ne__(*args
, **kwargs
):
6055 """__ne__(self, VideoMode other) -> bool"""
6056 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
6058 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
6059 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
6060 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
6061 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
6063 class VideoModePtr(VideoMode
):
6064 def __init__(self
, this
):
6066 if not hasattr(self
,"thisown"): self
.thisown
= 0
6067 self
.__class
__ = VideoMode
6068 _misc_
.VideoMode_swigregister(VideoModePtr
)
6070 class Display(object):
6071 """Represents a display/monitor attached to the system"""
6073 return "<%s.%s; proxy of C++ wxDisplay instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6074 def __init__(self
, *args
, **kwargs
):
6076 __init__(self, size_t index=0) -> Display
6078 Set up a Display instance with the specified display. The displays
6079 are numbered from 0 to GetCount() - 1, 0 is always the primary display
6080 and the only one which is always supported
6082 newobj
= _misc_
.new_Display(*args
, **kwargs
)
6083 self
.this
= newobj
.this
6086 def __del__(self
, destroy
=_misc_
.delete_Display
):
6089 if self
.thisown
: destroy(self
)
6092 def GetCount(*args
, **kwargs
):
6094 GetCount() -> size_t
6096 Return the number of available displays.
6098 return _misc_
.Display_GetCount(*args
, **kwargs
)
6100 GetCount
= staticmethod(GetCount
)
6101 def GetFromPoint(*args
, **kwargs
):
6103 GetFromPoint(Point pt) -> int
6105 Find the display where the given point lies, return wx.NOT_FOUND if it
6106 doesn't belong to any display
6108 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
6110 GetFromPoint
= staticmethod(GetFromPoint
)
6111 def GetFromWindow(*args
, **kwargs
):
6113 GetFromWindow(Window window) -> int
6115 Find the display where the given window lies, return wx.NOT_FOUND if
6116 it is not shown at all.
6118 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
6120 GetFromWindow
= staticmethod(GetFromWindow
)
6121 def IsOk(*args
, **kwargs
):
6125 Return true if the object was initialized successfully
6127 return _misc_
.Display_IsOk(*args
, **kwargs
)
6129 def __nonzero__(self
): return self
.IsOk()
6130 def GetGeometry(*args
, **kwargs
):
6132 GetGeometry(self) -> Rect
6134 Returns the bounding rectangle of the display whose index was passed
6137 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
6139 def GetName(*args
, **kwargs
):
6141 GetName(self) -> String
6143 Returns the display's name. A name is not available on all platforms.
6145 return _misc_
.Display_GetName(*args
, **kwargs
)
6147 def IsPrimary(*args
, **kwargs
):
6149 IsPrimary(self) -> bool
6151 Returns true if the display is the primary display. The primary
6152 display is the one whose index is 0.
6154 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
6156 def GetModes(*args
, **kwargs
):
6158 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
6160 Enumerate all video modes supported by this display matching the given
6161 one (in the sense of VideoMode.Match()).
6163 As any mode matches the default value of the argument and there is
6164 always at least one video mode supported by display, the returned
6165 array is only empty for the default value of the argument if this
6166 function is not supported at all on this platform.
6168 return _misc_
.Display_GetModes(*args
, **kwargs
)
6170 def GetCurrentMode(*args
, **kwargs
):
6172 GetCurrentMode(self) -> VideoMode
6174 Get the current video mode.
6176 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
6178 def ChangeMode(*args
, **kwargs
):
6180 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
6182 Changes the video mode of this display to the mode specified in the
6185 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
6186 behaviour is that wx.Display will reset the video mode to the default
6187 mode used by the display. On Windows, the behavior is normal.
6188 However, there are differences on other platforms. On Unix variations
6189 using X11 extensions it should behave as defined, but some
6190 irregularities may occur.
6192 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
6193 nothing. This happens because Carbon no longer has access to
6194 DMUseScreenPrefs, an undocumented function that changed the video mode
6195 to the system default by using the system's 'scrn' resource.
6197 Returns True if succeeded, False otherwise
6199 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
6201 def ResetMode(*args
, **kwargs
):
6205 Restore the default video mode (just a more readable synonym)
6207 return _misc_
.Display_ResetMode(*args
, **kwargs
)
6210 class DisplayPtr(Display
):
6211 def __init__(self
, this
):
6213 if not hasattr(self
,"thisown"): self
.thisown
= 0
6214 self
.__class
__ = Display
6215 _misc_
.Display_swigregister(DisplayPtr
)
6216 DefaultVideoMode
= cvar
.DefaultVideoMode
6218 def Display_GetCount(*args
, **kwargs
):
6220 Display_GetCount() -> size_t
6222 Return the number of available displays.
6224 return _misc_
.Display_GetCount(*args
, **kwargs
)
6226 def Display_GetFromPoint(*args
, **kwargs
):
6228 Display_GetFromPoint(Point pt) -> int
6230 Find the display where the given point lies, return wx.NOT_FOUND if it
6231 doesn't belong to any display
6233 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
6235 def Display_GetFromWindow(*args
, **kwargs
):
6237 Display_GetFromWindow(Window window) -> int
6239 Find the display where the given window lies, return wx.NOT_FOUND if
6240 it is not shown at all.
6242 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
6244 #---------------------------------------------------------------------------
6246 class StandardPaths(object):
6248 wx.StandardPaths returns the standard locations in the file system and
6249 should be used by the programs to find their data files in a portable
6252 In the description of the methods below, the example return values are
6253 given for the Unix, Windows and Mac OS X systems, however please note
6254 that these are just the examples and the actual values may differ. For
6255 example, under Windows: the system administrator may change the
6256 standard directories locations, i.e. the Windows directory may be
6257 named W:\Win2003 instead of the default C:\Windows.
6259 The strings appname and username should be replaced with the value
6260 returned by `wx.App.GetAppName` and the name of the currently logged
6261 in user, respectively. The string prefix is only used under Unix and
6262 is /usr/local by default but may be changed using `SetInstallPrefix`.
6264 The directories returned by the methods of this class may or may not
6265 exist. If they don't exist, it's up to the caller to create them,
6266 wxStandardPaths doesn't do it.
6268 Finally note that these functions only work with standardly packaged
6269 applications. I.e. under Unix you should follow the standard
6270 installation conventions and under Mac you should create your
6271 application bundle according to the Apple guidelines. Again, this
6272 class doesn't help you to do it.
6274 def __init__(self
): raise RuntimeError, "No constructor defined"
6276 return "<%s.%s; proxy of C++ wxStandardPaths instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6277 def Get(*args
, **kwargs
):
6279 Get() -> StandardPaths
6281 Return the global standard paths singleton
6283 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
6285 Get
= staticmethod(Get
)
6286 def GetConfigDir(*args
, **kwargs
):
6288 GetConfigDir(self) -> String
6290 Return the directory with system config files: /etc under Unix,
6291 'c:\Documents and Settings\All Users\Application Data' under Windows,
6292 /Library/Preferences for Mac
6294 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
6296 def GetUserConfigDir(*args
, **kwargs
):
6298 GetUserConfigDir(self) -> String
6300 Return the directory for the user config files: $HOME under Unix,
6301 'c:\Documents and Settings\username' under Windows, and
6302 ~/Library/Preferences under Mac
6304 Only use this if you have a single file to put there, otherwise
6305 `GetUserDataDir` is more appropriate
6307 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
6309 def GetDataDir(*args
, **kwargs
):
6311 GetDataDir(self) -> String
6313 Return the location of the application's global, (i.e. not
6314 user-specific,) data files: prefix/share/appname under Unix,
6315 'c:\Program Files\appname' under Windows,
6316 appname.app/Contents/SharedSupport app bundle directory under Mac.
6318 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
6320 def GetLocalDataDir(*args
, **kwargs
):
6322 GetLocalDataDir(self) -> String
6324 Return the location for application data files which are
6325 host-specific. Same as `GetDataDir` except under Unix where it is
6328 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
6330 def GetUserDataDir(*args
, **kwargs
):
6332 GetUserDataDir(self) -> String
6334 Return the directory for the user-dependent application data files:
6335 $HOME/.appname under Unix, c:\Documents and
6336 Settings\username\Application Data\appname under Windows and
6337 ~/Library/Application Support/appname under Mac
6339 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
6341 def GetUserLocalDataDir(*args
, **kwargs
):
6343 GetUserLocalDataDir(self) -> String
6345 Return the directory for user data files which shouldn't be shared
6346 with the other machines
6348 Same as `GetUserDataDir` for all platforms except Windows where it is
6349 the 'Local Settings\Application Data\appname' directory.
6351 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
6353 def GetPluginsDir(*args
, **kwargs
):
6355 GetPluginsDir(self) -> String
6357 Return the directory where the loadable modules (plugins) live:
6358 prefix/lib/appname under Unix, program directory under Windows and
6359 Contents/Plugins app bundle subdirectory under Mac
6361 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
6363 def SetInstallPrefix(*args
, **kwargs
):
6365 SetInstallPrefix(self, String prefix)
6367 Set the program installation directory which is /usr/local by default.
6368 This value will be used by other methods such as `GetDataDir` and
6369 `GetPluginsDir` as the prefix for what they return. (This function
6370 only has meaning on Unix systems.)
6372 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
6374 def GetInstallPrefix(*args
, **kwargs
):
6376 GetInstallPrefix(self) -> String
6378 Get the program installation prefix. The default is the prefix where
6379 Python is installed. (This function only has meaning on Unix systems.)
6381 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
6384 class StandardPathsPtr(StandardPaths
):
6385 def __init__(self
, this
):
6387 if not hasattr(self
,"thisown"): self
.thisown
= 0
6388 self
.__class
__ = StandardPaths
6389 _misc_
.StandardPaths_swigregister(StandardPathsPtr
)
6391 def StandardPaths_Get(*args
, **kwargs
):
6393 StandardPaths_Get() -> StandardPaths
6395 Return the global standard paths singleton
6397 return _misc_
.StandardPaths_Get(*args
, **kwargs
)