1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
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 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 SYS_OEM_FIXED_FONT
= _misc_
.SYS_OEM_FIXED_FONT
59 SYS_ANSI_FIXED_FONT
= _misc_
.SYS_ANSI_FIXED_FONT
60 SYS_ANSI_VAR_FONT
= _misc_
.SYS_ANSI_VAR_FONT
61 SYS_SYSTEM_FONT
= _misc_
.SYS_SYSTEM_FONT
62 SYS_DEVICE_DEFAULT_FONT
= _misc_
.SYS_DEVICE_DEFAULT_FONT
63 SYS_DEFAULT_PALETTE
= _misc_
.SYS_DEFAULT_PALETTE
64 SYS_SYSTEM_FIXED_FONT
= _misc_
.SYS_SYSTEM_FIXED_FONT
65 SYS_DEFAULT_GUI_FONT
= _misc_
.SYS_DEFAULT_GUI_FONT
66 SYS_ICONTITLE_FONT
= _misc_
.SYS_ICONTITLE_FONT
67 SYS_COLOUR_SCROLLBAR
= _misc_
.SYS_COLOUR_SCROLLBAR
68 SYS_COLOUR_BACKGROUND
= _misc_
.SYS_COLOUR_BACKGROUND
69 SYS_COLOUR_DESKTOP
= _misc_
.SYS_COLOUR_DESKTOP
70 SYS_COLOUR_ACTIVECAPTION
= _misc_
.SYS_COLOUR_ACTIVECAPTION
71 SYS_COLOUR_INACTIVECAPTION
= _misc_
.SYS_COLOUR_INACTIVECAPTION
72 SYS_COLOUR_MENU
= _misc_
.SYS_COLOUR_MENU
73 SYS_COLOUR_WINDOW
= _misc_
.SYS_COLOUR_WINDOW
74 SYS_COLOUR_WINDOWFRAME
= _misc_
.SYS_COLOUR_WINDOWFRAME
75 SYS_COLOUR_MENUTEXT
= _misc_
.SYS_COLOUR_MENUTEXT
76 SYS_COLOUR_WINDOWTEXT
= _misc_
.SYS_COLOUR_WINDOWTEXT
77 SYS_COLOUR_CAPTIONTEXT
= _misc_
.SYS_COLOUR_CAPTIONTEXT
78 SYS_COLOUR_ACTIVEBORDER
= _misc_
.SYS_COLOUR_ACTIVEBORDER
79 SYS_COLOUR_INACTIVEBORDER
= _misc_
.SYS_COLOUR_INACTIVEBORDER
80 SYS_COLOUR_APPWORKSPACE
= _misc_
.SYS_COLOUR_APPWORKSPACE
81 SYS_COLOUR_HIGHLIGHT
= _misc_
.SYS_COLOUR_HIGHLIGHT
82 SYS_COLOUR_HIGHLIGHTTEXT
= _misc_
.SYS_COLOUR_HIGHLIGHTTEXT
83 SYS_COLOUR_BTNFACE
= _misc_
.SYS_COLOUR_BTNFACE
84 SYS_COLOUR_3DFACE
= _misc_
.SYS_COLOUR_3DFACE
85 SYS_COLOUR_BTNSHADOW
= _misc_
.SYS_COLOUR_BTNSHADOW
86 SYS_COLOUR_3DSHADOW
= _misc_
.SYS_COLOUR_3DSHADOW
87 SYS_COLOUR_GRAYTEXT
= _misc_
.SYS_COLOUR_GRAYTEXT
88 SYS_COLOUR_BTNTEXT
= _misc_
.SYS_COLOUR_BTNTEXT
89 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc_
.SYS_COLOUR_INACTIVECAPTIONTEXT
90 SYS_COLOUR_BTNHIGHLIGHT
= _misc_
.SYS_COLOUR_BTNHIGHLIGHT
91 SYS_COLOUR_BTNHILIGHT
= _misc_
.SYS_COLOUR_BTNHILIGHT
92 SYS_COLOUR_3DHIGHLIGHT
= _misc_
.SYS_COLOUR_3DHIGHLIGHT
93 SYS_COLOUR_3DHILIGHT
= _misc_
.SYS_COLOUR_3DHILIGHT
94 SYS_COLOUR_3DDKSHADOW
= _misc_
.SYS_COLOUR_3DDKSHADOW
95 SYS_COLOUR_3DLIGHT
= _misc_
.SYS_COLOUR_3DLIGHT
96 SYS_COLOUR_INFOTEXT
= _misc_
.SYS_COLOUR_INFOTEXT
97 SYS_COLOUR_INFOBK
= _misc_
.SYS_COLOUR_INFOBK
98 SYS_COLOUR_LISTBOX
= _misc_
.SYS_COLOUR_LISTBOX
99 SYS_COLOUR_HOTLIGHT
= _misc_
.SYS_COLOUR_HOTLIGHT
100 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTACTIVECAPTION
101 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc_
.SYS_COLOUR_GRADIENTINACTIVECAPTION
102 SYS_COLOUR_MENUHILIGHT
= _misc_
.SYS_COLOUR_MENUHILIGHT
103 SYS_COLOUR_MENUBAR
= _misc_
.SYS_COLOUR_MENUBAR
104 SYS_COLOUR_MAX
= _misc_
.SYS_COLOUR_MAX
105 SYS_MOUSE_BUTTONS
= _misc_
.SYS_MOUSE_BUTTONS
106 SYS_BORDER_X
= _misc_
.SYS_BORDER_X
107 SYS_BORDER_Y
= _misc_
.SYS_BORDER_Y
108 SYS_CURSOR_X
= _misc_
.SYS_CURSOR_X
109 SYS_CURSOR_Y
= _misc_
.SYS_CURSOR_Y
110 SYS_DCLICK_X
= _misc_
.SYS_DCLICK_X
111 SYS_DCLICK_Y
= _misc_
.SYS_DCLICK_Y
112 SYS_DRAG_X
= _misc_
.SYS_DRAG_X
113 SYS_DRAG_Y
= _misc_
.SYS_DRAG_Y
114 SYS_EDGE_X
= _misc_
.SYS_EDGE_X
115 SYS_EDGE_Y
= _misc_
.SYS_EDGE_Y
116 SYS_HSCROLL_ARROW_X
= _misc_
.SYS_HSCROLL_ARROW_X
117 SYS_HSCROLL_ARROW_Y
= _misc_
.SYS_HSCROLL_ARROW_Y
118 SYS_HTHUMB_X
= _misc_
.SYS_HTHUMB_X
119 SYS_ICON_X
= _misc_
.SYS_ICON_X
120 SYS_ICON_Y
= _misc_
.SYS_ICON_Y
121 SYS_ICONSPACING_X
= _misc_
.SYS_ICONSPACING_X
122 SYS_ICONSPACING_Y
= _misc_
.SYS_ICONSPACING_Y
123 SYS_WINDOWMIN_X
= _misc_
.SYS_WINDOWMIN_X
124 SYS_WINDOWMIN_Y
= _misc_
.SYS_WINDOWMIN_Y
125 SYS_SCREEN_X
= _misc_
.SYS_SCREEN_X
126 SYS_SCREEN_Y
= _misc_
.SYS_SCREEN_Y
127 SYS_FRAMESIZE_X
= _misc_
.SYS_FRAMESIZE_X
128 SYS_FRAMESIZE_Y
= _misc_
.SYS_FRAMESIZE_Y
129 SYS_SMALLICON_X
= _misc_
.SYS_SMALLICON_X
130 SYS_SMALLICON_Y
= _misc_
.SYS_SMALLICON_Y
131 SYS_HSCROLL_Y
= _misc_
.SYS_HSCROLL_Y
132 SYS_VSCROLL_X
= _misc_
.SYS_VSCROLL_X
133 SYS_VSCROLL_ARROW_X
= _misc_
.SYS_VSCROLL_ARROW_X
134 SYS_VSCROLL_ARROW_Y
= _misc_
.SYS_VSCROLL_ARROW_Y
135 SYS_VTHUMB_Y
= _misc_
.SYS_VTHUMB_Y
136 SYS_CAPTION_Y
= _misc_
.SYS_CAPTION_Y
137 SYS_MENU_Y
= _misc_
.SYS_MENU_Y
138 SYS_NETWORK_PRESENT
= _misc_
.SYS_NETWORK_PRESENT
139 SYS_PENWINDOWS_PRESENT
= _misc_
.SYS_PENWINDOWS_PRESENT
140 SYS_SHOW_SOUNDS
= _misc_
.SYS_SHOW_SOUNDS
141 SYS_SWAP_BUTTONS
= _misc_
.SYS_SWAP_BUTTONS
142 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc_
.SYS_CAN_DRAW_FRAME_DECORATIONS
143 SYS_CAN_ICONIZE_FRAME
= _misc_
.SYS_CAN_ICONIZE_FRAME
144 SYS_TABLET_PRESENT
= _misc_
.SYS_TABLET_PRESENT
145 SYS_SCREEN_NONE
= _misc_
.SYS_SCREEN_NONE
146 SYS_SCREEN_TINY
= _misc_
.SYS_SCREEN_TINY
147 SYS_SCREEN_PDA
= _misc_
.SYS_SCREEN_PDA
148 SYS_SCREEN_SMALL
= _misc_
.SYS_SCREEN_SMALL
149 SYS_SCREEN_DESKTOP
= _misc_
.SYS_SCREEN_DESKTOP
150 class SystemSettings(object):
151 """Proxy of C++ SystemSettings class"""
152 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
153 def __init__(self
): raise AttributeError, "No constructor defined"
154 __repr__
= _swig_repr
155 def GetColour(*args
, **kwargs
):
156 """GetColour(int index) -> Colour"""
157 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
159 GetColour
= staticmethod(GetColour
)
160 def GetFont(*args
, **kwargs
):
161 """GetFont(int index) -> Font"""
162 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
164 GetFont
= staticmethod(GetFont
)
165 def GetMetric(*args
, **kwargs
):
166 """GetMetric(int index, Window win=None) -> int"""
167 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
169 GetMetric
= staticmethod(GetMetric
)
170 def HasFeature(*args
, **kwargs
):
171 """HasFeature(int index) -> bool"""
172 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
174 HasFeature
= staticmethod(HasFeature
)
175 def GetScreenType(*args
, **kwargs
):
176 """GetScreenType() -> int"""
177 return _misc_
.SystemSettings_GetScreenType(*args
, **kwargs
)
179 GetScreenType
= staticmethod(GetScreenType
)
180 def SetScreenType(*args
, **kwargs
):
181 """SetScreenType(int screen)"""
182 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
184 SetScreenType
= staticmethod(SetScreenType
)
185 _misc_
.SystemSettings_swigregister(SystemSettings
)
187 def SystemSettings_GetColour(*args
, **kwargs
):
188 """SystemSettings_GetColour(int index) -> Colour"""
189 return _misc_
.SystemSettings_GetColour(*args
, **kwargs
)
191 def SystemSettings_GetFont(*args
, **kwargs
):
192 """SystemSettings_GetFont(int index) -> Font"""
193 return _misc_
.SystemSettings_GetFont(*args
, **kwargs
)
195 def SystemSettings_GetMetric(*args
, **kwargs
):
196 """SystemSettings_GetMetric(int index, Window win=None) -> int"""
197 return _misc_
.SystemSettings_GetMetric(*args
, **kwargs
)
199 def SystemSettings_HasFeature(*args
, **kwargs
):
200 """SystemSettings_HasFeature(int index) -> bool"""
201 return _misc_
.SystemSettings_HasFeature(*args
, **kwargs
)
203 def SystemSettings_GetScreenType(*args
):
204 """SystemSettings_GetScreenType() -> int"""
205 return _misc_
.SystemSettings_GetScreenType(*args
)
207 def SystemSettings_SetScreenType(*args
, **kwargs
):
208 """SystemSettings_SetScreenType(int screen)"""
209 return _misc_
.SystemSettings_SetScreenType(*args
, **kwargs
)
211 class SystemOptions(_core
.Object
):
212 """Proxy of C++ SystemOptions class"""
213 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
214 __repr__
= _swig_repr
215 def __init__(self
, *args
, **kwargs
):
216 """__init__(self) -> SystemOptions"""
217 _misc_
.SystemOptions_swiginit(self
,_misc_
.new_SystemOptions(*args
, **kwargs
))
218 def SetOption(*args
, **kwargs
):
219 """SetOption(String name, String value)"""
220 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
222 SetOption
= staticmethod(SetOption
)
223 def SetOptionInt(*args
, **kwargs
):
224 """SetOptionInt(String name, int value)"""
225 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
227 SetOptionInt
= staticmethod(SetOptionInt
)
228 def GetOption(*args
, **kwargs
):
229 """GetOption(String name) -> String"""
230 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
232 GetOption
= staticmethod(GetOption
)
233 def GetOptionInt(*args
, **kwargs
):
234 """GetOptionInt(String name) -> int"""
235 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
237 GetOptionInt
= staticmethod(GetOptionInt
)
238 def HasOption(*args
, **kwargs
):
239 """HasOption(String name) -> bool"""
240 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
242 HasOption
= staticmethod(HasOption
)
243 def IsFalse(*args
, **kwargs
):
244 """IsFalse(String name) -> bool"""
245 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
247 IsFalse
= staticmethod(IsFalse
)
248 _misc_
.SystemOptions_swigregister(SystemOptions
)
250 WINDOW_DEFAULT_VARIANT
= cvar
.WINDOW_DEFAULT_VARIANT
252 def SystemOptions_SetOption(*args
, **kwargs
):
253 """SystemOptions_SetOption(String name, String value)"""
254 return _misc_
.SystemOptions_SetOption(*args
, **kwargs
)
256 def SystemOptions_SetOptionInt(*args
, **kwargs
):
257 """SystemOptions_SetOptionInt(String name, int value)"""
258 return _misc_
.SystemOptions_SetOptionInt(*args
, **kwargs
)
260 def SystemOptions_GetOption(*args
, **kwargs
):
261 """SystemOptions_GetOption(String name) -> String"""
262 return _misc_
.SystemOptions_GetOption(*args
, **kwargs
)
264 def SystemOptions_GetOptionInt(*args
, **kwargs
):
265 """SystemOptions_GetOptionInt(String name) -> int"""
266 return _misc_
.SystemOptions_GetOptionInt(*args
, **kwargs
)
268 def SystemOptions_HasOption(*args
, **kwargs
):
269 """SystemOptions_HasOption(String name) -> bool"""
270 return _misc_
.SystemOptions_HasOption(*args
, **kwargs
)
272 def SystemOptions_IsFalse(*args
, **kwargs
):
273 """SystemOptions_IsFalse(String name) -> bool"""
274 return _misc_
.SystemOptions_IsFalse(*args
, **kwargs
)
276 # Until the new native control for wxMac is up to par, still use the generic one.
277 SystemOptions
.SetOptionInt("mac.listctrl.always_use_generic", 1)
279 #---------------------------------------------------------------------------
283 """NewId() -> long"""
284 return _misc_
.NewId(*args
)
286 def RegisterId(*args
, **kwargs
):
287 """RegisterId(long id)"""
288 return _misc_
.RegisterId(*args
, **kwargs
)
290 def GetCurrentId(*args
):
291 """GetCurrentId() -> long"""
292 return _misc_
.GetCurrentId(*args
)
294 def IsStockID(*args
, **kwargs
):
295 """IsStockID(int id) -> bool"""
296 return _misc_
.IsStockID(*args
, **kwargs
)
298 def IsStockLabel(*args
, **kwargs
):
299 """IsStockLabel(int id, String label) -> bool"""
300 return _misc_
.IsStockLabel(*args
, **kwargs
)
301 STOCK_NOFLAGS
= _misc_
.STOCK_NOFLAGS
302 STOCK_WITH_MNEMONIC
= _misc_
.STOCK_WITH_MNEMONIC
303 STOCK_WITH_ACCELERATOR
= _misc_
.STOCK_WITH_ACCELERATOR
305 def GetStockLabel(*args
, **kwargs
):
306 """GetStockLabel(int id, long flags=STOCK_WITH_MNEMONIC) -> String"""
307 return _misc_
.GetStockLabel(*args
, **kwargs
)
308 STOCK_MENU
= _misc_
.STOCK_MENU
310 def GetStockHelpString(*args
, **kwargs
):
311 """GetStockHelpString(int id, int client=STOCK_MENU) -> String"""
312 return _misc_
.GetStockHelpString(*args
, **kwargs
)
316 return _misc_
.Bell(*args
)
318 def EndBusyCursor(*args
):
319 """EndBusyCursor()"""
320 return _misc_
.EndBusyCursor(*args
)
322 def GetElapsedTime(*args
, **kwargs
):
323 """GetElapsedTime(bool resetTimer=True) -> long"""
324 return _misc_
.GetElapsedTime(*args
, **kwargs
)
325 GetElapsedTime
= wx
._deprecated
(GetElapsedTime
)
328 """IsBusy() -> bool"""
329 return _misc_
.IsBusy(*args
)
332 """Now() -> String"""
333 return _misc_
.Now(*args
)
335 def Shell(*args
, **kwargs
):
336 """Shell(String command=EmptyString) -> bool"""
337 return _misc_
.Shell(*args
, **kwargs
)
339 def StartTimer(*args
):
341 return _misc_
.StartTimer(*args
)
343 def GetOsVersion(*args
):
344 """GetOsVersion() -> (platform, major, minor)"""
345 return _misc_
.GetOsVersion(*args
)
347 def GetOsDescription(*args
):
348 """GetOsDescription() -> String"""
349 return _misc_
.GetOsDescription(*args
)
351 def IsPlatformLittleEndian(*args
):
352 """IsPlatformLittleEndian() -> bool"""
353 return _misc_
.IsPlatformLittleEndian(*args
)
355 def IsPlatform64Bit(*args
):
356 """IsPlatform64Bit() -> bool"""
357 return _misc_
.IsPlatform64Bit(*args
)
359 def GetFreeMemory(*args
):
360 """GetFreeMemory() -> wxMemorySize"""
361 return _misc_
.GetFreeMemory(*args
)
362 SHUTDOWN_POWEROFF
= _misc_
.SHUTDOWN_POWEROFF
363 SHUTDOWN_REBOOT
= _misc_
.SHUTDOWN_REBOOT
365 def Shutdown(*args
, **kwargs
):
366 """Shutdown(int wFlags) -> bool"""
367 return _misc_
.Shutdown(*args
, **kwargs
)
369 def Sleep(*args
, **kwargs
):
370 """Sleep(int secs)"""
371 return _misc_
.Sleep(*args
, **kwargs
)
373 def MilliSleep(*args
, **kwargs
):
374 """MilliSleep(unsigned long milliseconds)"""
375 return _misc_
.MilliSleep(*args
, **kwargs
)
377 def MicroSleep(*args
, **kwargs
):
378 """MicroSleep(unsigned long microseconds)"""
379 return _misc_
.MicroSleep(*args
, **kwargs
)
382 def EnableTopLevelWindows(*args
, **kwargs
):
383 """EnableTopLevelWindows(bool enable)"""
384 return _misc_
.EnableTopLevelWindows(*args
, **kwargs
)
386 def StripMenuCodes(*args
, **kwargs
):
387 """StripMenuCodes(String in) -> String"""
388 return _misc_
.StripMenuCodes(*args
, **kwargs
)
390 def GetEmailAddress(*args
):
391 """GetEmailAddress() -> String"""
392 return _misc_
.GetEmailAddress(*args
)
394 def GetHostName(*args
):
395 """GetHostName() -> String"""
396 return _misc_
.GetHostName(*args
)
398 def GetFullHostName(*args
):
399 """GetFullHostName() -> String"""
400 return _misc_
.GetFullHostName(*args
)
402 def GetUserId(*args
):
403 """GetUserId() -> String"""
404 return _misc_
.GetUserId(*args
)
406 def GetUserName(*args
):
407 """GetUserName() -> String"""
408 return _misc_
.GetUserName(*args
)
410 def GetHomeDir(*args
):
411 """GetHomeDir() -> String"""
412 return _misc_
.GetHomeDir(*args
)
414 def GetUserHome(*args
, **kwargs
):
415 """GetUserHome(String user=EmptyString) -> String"""
416 return _misc_
.GetUserHome(*args
, **kwargs
)
418 def GetProcessId(*args
):
419 """GetProcessId() -> unsigned long"""
420 return _misc_
.GetProcessId(*args
)
424 return _misc_
.Trap(*args
)
426 def FileSelector(*args
, **kwargs
):
428 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
429 String default_filename=EmptyString,
430 String default_extension=EmptyString,
431 String wildcard=FileSelectorDefaultWildcardStr,
432 int flags=0, Window parent=None, int x=-1,
435 return _misc_
.FileSelector(*args
, **kwargs
)
437 def LoadFileSelector(*args
, **kwargs
):
439 LoadFileSelector(String what, String extension, String default_name=EmptyString,
440 Window parent=None) -> String
442 return _misc_
.LoadFileSelector(*args
, **kwargs
)
444 def SaveFileSelector(*args
, **kwargs
):
446 SaveFileSelector(String what, String extension, String default_name=EmptyString,
447 Window parent=None) -> String
449 return _misc_
.SaveFileSelector(*args
, **kwargs
)
451 def DirSelector(*args
, **kwargs
):
453 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
454 long style=wxDD_DEFAULT_STYLE,
455 Point pos=DefaultPosition, Window parent=None) -> String
457 return _misc_
.DirSelector(*args
, **kwargs
)
459 def GetTextFromUser(*args
, **kwargs
):
461 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
463 int x=-1, int y=-1, bool centre=True) -> String
465 return _misc_
.GetTextFromUser(*args
, **kwargs
)
467 def GetPasswordFromUser(*args
, **kwargs
):
469 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
470 Window parent=None) -> String
472 return _misc_
.GetPasswordFromUser(*args
, **kwargs
)
474 def GetSingleChoice(*args
, **kwargs
):
476 GetSingleChoice(String message, String caption, int choices, Window parent=None,
477 int x=-1, int y=-1, bool centre=True,
478 int width=150, int height=200) -> String
480 return _misc_
.GetSingleChoice(*args
, **kwargs
)
482 def GetSingleChoiceIndex(*args
, **kwargs
):
484 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
485 int x=-1, int y=-1, bool centre=True,
486 int width=150, int height=200) -> int
488 return _misc_
.GetSingleChoiceIndex(*args
, **kwargs
)
490 def MessageBox(*args
, **kwargs
):
492 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
493 Window parent=None, int x=-1,
496 return _misc_
.MessageBox(*args
, **kwargs
)
498 def GetNumberFromUser(*args
, **kwargs
):
500 GetNumberFromUser(String message, String prompt, String caption, long value,
501 long min=0, long max=100, Window parent=None,
502 Point pos=DefaultPosition) -> long
504 return _misc_
.GetNumberFromUser(*args
, **kwargs
)
506 def ColourDisplay(*args
):
507 """ColourDisplay() -> bool"""
508 return _misc_
.ColourDisplay(*args
)
510 def DisplayDepth(*args
):
511 """DisplayDepth() -> int"""
512 return _misc_
.DisplayDepth(*args
)
514 def GetDisplayDepth(*args
):
515 """GetDisplayDepth() -> int"""
516 return _misc_
.GetDisplayDepth(*args
)
518 def DisplaySize(*args
):
519 """DisplaySize() -> (width, height)"""
520 return _misc_
.DisplaySize(*args
)
522 def GetDisplaySize(*args
):
523 """GetDisplaySize() -> Size"""
524 return _misc_
.GetDisplaySize(*args
)
526 def DisplaySizeMM(*args
):
527 """DisplaySizeMM() -> (width, height)"""
528 return _misc_
.DisplaySizeMM(*args
)
530 def GetDisplaySizeMM(*args
):
531 """GetDisplaySizeMM() -> Size"""
532 return _misc_
.GetDisplaySizeMM(*args
)
534 def ClientDisplayRect(*args
):
535 """ClientDisplayRect() -> (x, y, width, height)"""
536 return _misc_
.ClientDisplayRect(*args
)
538 def GetClientDisplayRect(*args
):
539 """GetClientDisplayRect() -> Rect"""
540 return _misc_
.GetClientDisplayRect(*args
)
542 def SetCursor(*args
, **kwargs
):
543 """SetCursor(Cursor cursor)"""
544 return _misc_
.SetCursor(*args
, **kwargs
)
546 def GetXDisplay(*args
):
548 GetXDisplay() -> void
550 Returns a swigified pointer to the X11 display. Returns None on
553 return _misc_
.GetXDisplay(*args
)
555 def BeginBusyCursor(*args
, **kwargs
):
556 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
557 return _misc_
.BeginBusyCursor(*args
, **kwargs
)
559 def GetMousePosition(*args
):
561 GetMousePosition() -> Point
563 Get the current mouse position on the screen.
565 return _misc_
.GetMousePosition(*args
)
567 def FindWindowAtPointer(*args
):
569 FindWindowAtPointer() -> Window
571 Returns the window currently under the mouse pointer, if it belongs to
572 this application. Otherwise it returns None.
574 return _misc_
.FindWindowAtPointer(*args
)
576 def GetActiveWindow(*args
):
578 GetActiveWindow() -> Window
580 Get the currently active window of this application, or None
582 return _misc_
.GetActiveWindow(*args
)
584 def GenericFindWindowAtPoint(*args
, **kwargs
):
585 """GenericFindWindowAtPoint(Point pt) -> Window"""
586 return _misc_
.GenericFindWindowAtPoint(*args
, **kwargs
)
588 def FindWindowAtPoint(*args
, **kwargs
):
589 """FindWindowAtPoint(Point pt) -> Window"""
590 return _misc_
.FindWindowAtPoint(*args
, **kwargs
)
592 def GetTopLevelParent(*args
, **kwargs
):
593 """GetTopLevelParent(Window win) -> Window"""
594 return _misc_
.GetTopLevelParent(*args
, **kwargs
)
596 def LaunchDefaultBrowser(*args
, **kwargs
):
598 LaunchDefaultBrowser(String url) -> bool
600 Launches the user's default browser and tells it to open the location
601 at ``url``. Returns ``True`` if the application was successfully
604 return _misc_
.LaunchDefaultBrowser(*args
, **kwargs
)
606 def GetKeyState(*args
, **kwargs
):
608 GetKeyState(int key) -> bool
610 Get the state of a key (true if pressed or toggled on, false if not.)
611 This is generally most useful getting the state of the modifier or
612 toggle keys. On some platforms those may be the only keys that this
613 function is able to detect.
616 return _misc_
.GetKeyState(*args
, **kwargs
)
617 class MouseState(object):
619 `wx.MouseState` is used to hold information about mouse button and
620 modifier key states and is what is returned from `wx.GetMouseState`.
622 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
623 __repr__
= _swig_repr
624 def __init__(self
, *args
, **kwargs
):
626 __init__(self) -> MouseState
628 `wx.MouseState` is used to hold information about mouse button and
629 modifier key states and is what is returned from `wx.GetMouseState`.
631 _misc_
.MouseState_swiginit(self
,_misc_
.new_MouseState(*args
, **kwargs
))
632 __swig_destroy__
= _misc_
.delete_MouseState
633 __del__
= lambda self
: None;
634 def GetX(*args
, **kwargs
):
635 """GetX(self) -> int"""
636 return _misc_
.MouseState_GetX(*args
, **kwargs
)
638 def GetY(*args
, **kwargs
):
639 """GetY(self) -> int"""
640 return _misc_
.MouseState_GetY(*args
, **kwargs
)
642 def LeftDown(*args
, **kwargs
):
643 """LeftDown(self) -> bool"""
644 return _misc_
.MouseState_LeftDown(*args
, **kwargs
)
646 def MiddleDown(*args
, **kwargs
):
647 """MiddleDown(self) -> bool"""
648 return _misc_
.MouseState_MiddleDown(*args
, **kwargs
)
650 def RightDown(*args
, **kwargs
):
651 """RightDown(self) -> bool"""
652 return _misc_
.MouseState_RightDown(*args
, **kwargs
)
654 def ControlDown(*args
, **kwargs
):
655 """ControlDown(self) -> bool"""
656 return _misc_
.MouseState_ControlDown(*args
, **kwargs
)
658 def ShiftDown(*args
, **kwargs
):
659 """ShiftDown(self) -> bool"""
660 return _misc_
.MouseState_ShiftDown(*args
, **kwargs
)
662 def AltDown(*args
, **kwargs
):
663 """AltDown(self) -> bool"""
664 return _misc_
.MouseState_AltDown(*args
, **kwargs
)
666 def MetaDown(*args
, **kwargs
):
667 """MetaDown(self) -> bool"""
668 return _misc_
.MouseState_MetaDown(*args
, **kwargs
)
670 def CmdDown(*args
, **kwargs
):
671 """CmdDown(self) -> bool"""
672 return _misc_
.MouseState_CmdDown(*args
, **kwargs
)
674 def SetX(*args
, **kwargs
):
675 """SetX(self, int x)"""
676 return _misc_
.MouseState_SetX(*args
, **kwargs
)
678 def SetY(*args
, **kwargs
):
679 """SetY(self, int y)"""
680 return _misc_
.MouseState_SetY(*args
, **kwargs
)
682 def SetLeftDown(*args
, **kwargs
):
683 """SetLeftDown(self, bool down)"""
684 return _misc_
.MouseState_SetLeftDown(*args
, **kwargs
)
686 def SetMiddleDown(*args
, **kwargs
):
687 """SetMiddleDown(self, bool down)"""
688 return _misc_
.MouseState_SetMiddleDown(*args
, **kwargs
)
690 def SetRightDown(*args
, **kwargs
):
691 """SetRightDown(self, bool down)"""
692 return _misc_
.MouseState_SetRightDown(*args
, **kwargs
)
694 def SetControlDown(*args
, **kwargs
):
695 """SetControlDown(self, bool down)"""
696 return _misc_
.MouseState_SetControlDown(*args
, **kwargs
)
698 def SetShiftDown(*args
, **kwargs
):
699 """SetShiftDown(self, bool down)"""
700 return _misc_
.MouseState_SetShiftDown(*args
, **kwargs
)
702 def SetAltDown(*args
, **kwargs
):
703 """SetAltDown(self, bool down)"""
704 return _misc_
.MouseState_SetAltDown(*args
, **kwargs
)
706 def SetMetaDown(*args
, **kwargs
):
707 """SetMetaDown(self, bool down)"""
708 return _misc_
.MouseState_SetMetaDown(*args
, **kwargs
)
710 x
= property(GetX
, SetX
)
711 y
= property(GetY
, SetY
)
712 leftDown
= property(LeftDown
, SetLeftDown
)
713 middleDown
= property(MiddleDown
, SetMiddleDown
)
714 rightDown
= property(RightDown
, SetRightDown
)
715 controlDown
= property(ControlDown
, SetControlDown
)
716 shiftDown
= property(ShiftDown
, SetShiftDown
)
717 altDown
= property(AltDown
, SetAltDown
)
718 metaDown
= property(MetaDown
, SetMetaDown
)
719 cmdDown
= property(CmdDown
)
721 _misc_
.MouseState_swigregister(MouseState
)
722 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
723 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
724 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
727 def GetMouseState(*args
):
729 GetMouseState() -> MouseState
731 Returns the current state of the mouse. Returns an instance of a
732 `wx.MouseState` object that contains the current position of the mouse
733 pointer in screen coordinants, as well as boolean values indicating
734 the up/down status of the mouse buttons and the modifier keys.
736 return _misc_
.GetMouseState(*args
)
738 def WakeUpMainThread(*args
):
739 """WakeUpMainThread()"""
740 return _misc_
.WakeUpMainThread(*args
)
742 def MutexGuiEnter(*args
):
743 """MutexGuiEnter()"""
744 return _misc_
.MutexGuiEnter(*args
)
746 def MutexGuiLeave(*args
):
747 """MutexGuiLeave()"""
748 return _misc_
.MutexGuiLeave(*args
)
749 class MutexGuiLocker(object):
750 """Proxy of C++ MutexGuiLocker class"""
751 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
752 __repr__
= _swig_repr
753 def __init__(self
, *args
, **kwargs
):
754 """__init__(self) -> MutexGuiLocker"""
755 _misc_
.MutexGuiLocker_swiginit(self
,_misc_
.new_MutexGuiLocker(*args
, **kwargs
))
756 __swig_destroy__
= _misc_
.delete_MutexGuiLocker
757 __del__
= lambda self
: None;
758 _misc_
.MutexGuiLocker_swigregister(MutexGuiLocker
)
761 def Thread_IsMain(*args
):
762 """Thread_IsMain() -> bool"""
763 return _misc_
.Thread_IsMain(*args
)
764 #---------------------------------------------------------------------------
766 class ToolTip(_core
.Object
):
767 """Proxy of C++ ToolTip class"""
768 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
769 __repr__
= _swig_repr
770 def __init__(self
, *args
, **kwargs
):
771 """__init__(self, String tip) -> ToolTip"""
772 _misc_
.ToolTip_swiginit(self
,_misc_
.new_ToolTip(*args
, **kwargs
))
773 __swig_destroy__
= _misc_
.delete_ToolTip
774 __del__
= lambda self
: None;
775 def SetTip(*args
, **kwargs
):
776 """SetTip(self, String tip)"""
777 return _misc_
.ToolTip_SetTip(*args
, **kwargs
)
779 def GetTip(*args
, **kwargs
):
780 """GetTip(self) -> String"""
781 return _misc_
.ToolTip_GetTip(*args
, **kwargs
)
783 def GetWindow(*args
, **kwargs
):
784 """GetWindow(self) -> Window"""
785 return _misc_
.ToolTip_GetWindow(*args
, **kwargs
)
787 def Enable(*args
, **kwargs
):
788 """Enable(bool flag)"""
789 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
791 Enable
= staticmethod(Enable
)
792 def SetDelay(*args
, **kwargs
):
793 """SetDelay(long milliseconds)"""
794 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
796 SetDelay
= staticmethod(SetDelay
)
797 Tip
= property(GetTip
,SetTip
,doc
="See `GetTip` and `SetTip`")
798 Window
= property(GetWindow
,doc
="See `GetWindow`")
799 _misc_
.ToolTip_swigregister(ToolTip
)
801 def ToolTip_Enable(*args
, **kwargs
):
802 """ToolTip_Enable(bool flag)"""
803 return _misc_
.ToolTip_Enable(*args
, **kwargs
)
805 def ToolTip_SetDelay(*args
, **kwargs
):
806 """ToolTip_SetDelay(long milliseconds)"""
807 return _misc_
.ToolTip_SetDelay(*args
, **kwargs
)
810 """Proxy of C++ Caret class"""
811 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
812 __repr__
= _swig_repr
813 def __init__(self
, *args
, **kwargs
):
814 """__init__(self, Window window, Size size) -> Caret"""
815 _misc_
.Caret_swiginit(self
,_misc_
.new_Caret(*args
, **kwargs
))
816 __swig_destroy__
= _misc_
.delete_Caret
817 __del__
= lambda self
: None;
818 def Destroy(*args
, **kwargs
):
822 Deletes the C++ object this Python object is a proxy for.
824 val
= _misc_
.Caret_Destroy(*args
, **kwargs
)
828 def IsOk(*args
, **kwargs
):
829 """IsOk(self) -> bool"""
830 return _misc_
.Caret_IsOk(*args
, **kwargs
)
832 def IsVisible(*args
, **kwargs
):
833 """IsVisible(self) -> bool"""
834 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
836 def GetPosition(*args
, **kwargs
):
837 """GetPosition(self) -> Point"""
838 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
840 def GetPositionTuple(*args
, **kwargs
):
841 """GetPositionTuple() -> (x,y)"""
842 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
844 def GetSize(*args
, **kwargs
):
845 """GetSize(self) -> Size"""
846 return _misc_
.Caret_GetSize(*args
, **kwargs
)
848 def GetSizeTuple(*args
, **kwargs
):
849 """GetSizeTuple() -> (width, height)"""
850 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
852 def GetWindow(*args
, **kwargs
):
853 """GetWindow(self) -> Window"""
854 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
856 def MoveXY(*args
, **kwargs
):
857 """MoveXY(self, int x, int y)"""
858 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
860 def Move(*args
, **kwargs
):
861 """Move(self, Point pt)"""
862 return _misc_
.Caret_Move(*args
, **kwargs
)
864 def SetSizeWH(*args
, **kwargs
):
865 """SetSizeWH(self, int width, int height)"""
866 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
868 def SetSize(*args
, **kwargs
):
869 """SetSize(self, Size size)"""
870 return _misc_
.Caret_SetSize(*args
, **kwargs
)
872 def Show(*args
, **kwargs
):
873 """Show(self, int show=True)"""
874 return _misc_
.Caret_Show(*args
, **kwargs
)
876 def Hide(*args
, **kwargs
):
878 return _misc_
.Caret_Hide(*args
, **kwargs
)
880 def __nonzero__(self
): return self
.IsOk()
881 def GetBlinkTime(*args
, **kwargs
):
882 """GetBlinkTime() -> int"""
883 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
885 GetBlinkTime
= staticmethod(GetBlinkTime
)
886 def SetBlinkTime(*args
, **kwargs
):
887 """SetBlinkTime(int milliseconds)"""
888 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
890 SetBlinkTime
= staticmethod(SetBlinkTime
)
891 Position
= property(GetPosition
,doc
="See `GetPosition`")
892 Size
= property(GetSize
,SetSize
,doc
="See `GetSize` and `SetSize`")
893 Window
= property(GetWindow
,doc
="See `GetWindow`")
894 _misc_
.Caret_swigregister(Caret
)
896 def Caret_GetBlinkTime(*args
):
897 """Caret_GetBlinkTime() -> int"""
898 return _misc_
.Caret_GetBlinkTime(*args
)
900 def Caret_SetBlinkTime(*args
, **kwargs
):
901 """Caret_SetBlinkTime(int milliseconds)"""
902 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
904 class BusyCursor(object):
905 """Proxy of C++ BusyCursor class"""
906 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
907 __repr__
= _swig_repr
908 def __init__(self
, *args
, **kwargs
):
909 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
910 _misc_
.BusyCursor_swiginit(self
,_misc_
.new_BusyCursor(*args
, **kwargs
))
911 __swig_destroy__
= _misc_
.delete_BusyCursor
912 __del__
= lambda self
: None;
913 _misc_
.BusyCursor_swigregister(BusyCursor
)
915 class WindowDisabler(object):
916 """Proxy of C++ WindowDisabler class"""
917 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
918 __repr__
= _swig_repr
919 def __init__(self
, *args
, **kwargs
):
920 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
921 _misc_
.WindowDisabler_swiginit(self
,_misc_
.new_WindowDisabler(*args
, **kwargs
))
922 __swig_destroy__
= _misc_
.delete_WindowDisabler
923 __del__
= lambda self
: None;
924 _misc_
.WindowDisabler_swigregister(WindowDisabler
)
926 class BusyInfo(_core
.Object
):
927 """Proxy of C++ BusyInfo class"""
928 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
929 __repr__
= _swig_repr
930 def __init__(self
, *args
, **kwargs
):
931 """__init__(self, String message) -> BusyInfo"""
932 _misc_
.BusyInfo_swiginit(self
,_misc_
.new_BusyInfo(*args
, **kwargs
))
933 __swig_destroy__
= _misc_
.delete_BusyInfo
934 __del__
= lambda self
: None;
935 def Destroy(self
): pass
936 _misc_
.BusyInfo_swigregister(BusyInfo
)
938 class StopWatch(object):
939 """Proxy of C++ StopWatch class"""
940 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
941 __repr__
= _swig_repr
942 def __init__(self
, *args
, **kwargs
):
943 """__init__(self) -> StopWatch"""
944 _misc_
.StopWatch_swiginit(self
,_misc_
.new_StopWatch(*args
, **kwargs
))
945 def Start(*args
, **kwargs
):
946 """Start(self, long t0=0)"""
947 return _misc_
.StopWatch_Start(*args
, **kwargs
)
949 def Pause(*args
, **kwargs
):
951 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
953 def Resume(*args
, **kwargs
):
955 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
957 def Time(*args
, **kwargs
):
958 """Time(self) -> long"""
959 return _misc_
.StopWatch_Time(*args
, **kwargs
)
961 _misc_
.StopWatch_swigregister(StopWatch
)
963 class FileHistory(_core
.Object
):
964 """Proxy of C++ FileHistory class"""
965 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
966 __repr__
= _swig_repr
967 def __init__(self
, *args
, **kwargs
):
968 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
969 _misc_
.FileHistory_swiginit(self
,_misc_
.new_FileHistory(*args
, **kwargs
))
970 __swig_destroy__
= _misc_
.delete_FileHistory
971 __del__
= lambda self
: None;
972 def AddFileToHistory(*args
, **kwargs
):
973 """AddFileToHistory(self, String file)"""
974 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
976 def RemoveFileFromHistory(*args
, **kwargs
):
977 """RemoveFileFromHistory(self, int i)"""
978 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
980 def GetMaxFiles(*args
, **kwargs
):
981 """GetMaxFiles(self) -> int"""
982 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
984 def UseMenu(*args
, **kwargs
):
985 """UseMenu(self, Menu menu)"""
986 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
988 def RemoveMenu(*args
, **kwargs
):
989 """RemoveMenu(self, Menu menu)"""
990 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
992 def Load(*args
, **kwargs
):
993 """Load(self, ConfigBase config)"""
994 return _misc_
.FileHistory_Load(*args
, **kwargs
)
996 def Save(*args
, **kwargs
):
997 """Save(self, ConfigBase config)"""
998 return _misc_
.FileHistory_Save(*args
, **kwargs
)
1000 def AddFilesToMenu(*args
, **kwargs
):
1001 """AddFilesToMenu(self)"""
1002 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
1004 def AddFilesToThisMenu(*args
, **kwargs
):
1005 """AddFilesToThisMenu(self, Menu menu)"""
1006 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
1008 def GetHistoryFile(*args
, **kwargs
):
1009 """GetHistoryFile(self, int i) -> String"""
1010 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
1012 def GetCount(*args
, **kwargs
):
1013 """GetCount(self) -> int"""
1014 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
1016 GetNoHistoryFiles
= GetCount
1017 Count
= property(GetCount
,doc
="See `GetCount`")
1018 HistoryFile
= property(GetHistoryFile
,doc
="See `GetHistoryFile`")
1019 MaxFiles
= property(GetMaxFiles
,doc
="See `GetMaxFiles`")
1020 NoHistoryFiles
= property(GetNoHistoryFiles
,doc
="See `GetNoHistoryFiles`")
1021 _misc_
.FileHistory_swigregister(FileHistory
)
1023 class SingleInstanceChecker(object):
1024 """Proxy of C++ SingleInstanceChecker class"""
1025 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1026 __repr__
= _swig_repr
1027 def __init__(self
, *args
, **kwargs
):
1028 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1029 _misc_
.SingleInstanceChecker_swiginit(self
,_misc_
.new_SingleInstanceChecker(*args
, **kwargs
))
1030 __swig_destroy__
= _misc_
.delete_SingleInstanceChecker
1031 __del__
= lambda self
: None;
1032 def Create(*args
, **kwargs
):
1033 """Create(self, String name, String path=EmptyString) -> bool"""
1034 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1036 def IsAnotherRunning(*args
, **kwargs
):
1037 """IsAnotherRunning(self) -> bool"""
1038 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1040 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1042 def PreSingleInstanceChecker(*args
, **kwargs
):
1043 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1044 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1047 #---------------------------------------------------------------------------
1049 OS_UNKNOWN
= _misc_
.OS_UNKNOWN
1050 OS_MAC_OS
= _misc_
.OS_MAC_OS
1051 OS_MAC_OSX_DARWIN
= _misc_
.OS_MAC_OSX_DARWIN
1052 OS_MAC
= _misc_
.OS_MAC
1053 OS_WINDOWS_9X
= _misc_
.OS_WINDOWS_9X
1054 OS_WINDOWS_NT
= _misc_
.OS_WINDOWS_NT
1055 OS_WINDOWS_MICRO
= _misc_
.OS_WINDOWS_MICRO
1056 OS_WINDOWS_CE
= _misc_
.OS_WINDOWS_CE
1057 OS_WINDOWS
= _misc_
.OS_WINDOWS
1058 OS_UNIX_LINUX
= _misc_
.OS_UNIX_LINUX
1059 OS_UNIX_FREEBSD
= _misc_
.OS_UNIX_FREEBSD
1060 OS_UNIX_OPENBSD
= _misc_
.OS_UNIX_OPENBSD
1061 OS_UNIX_NETBSD
= _misc_
.OS_UNIX_NETBSD
1062 OS_UNIX_SOLARIS
= _misc_
.OS_UNIX_SOLARIS
1063 OS_UNIX_AIX
= _misc_
.OS_UNIX_AIX
1064 OS_UNIX_HPUX
= _misc_
.OS_UNIX_HPUX
1065 OS_UNIX
= _misc_
.OS_UNIX
1066 OS_DOS
= _misc_
.OS_DOS
1067 OS_OS2
= _misc_
.OS_OS2
1068 PORT_UNKNOWN
= _misc_
.PORT_UNKNOWN
1069 PORT_BASE
= _misc_
.PORT_BASE
1070 PORT_MSW
= _misc_
.PORT_MSW
1071 PORT_MOTIF
= _misc_
.PORT_MOTIF
1072 PORT_GTK
= _misc_
.PORT_GTK
1073 PORT_MGL
= _misc_
.PORT_MGL
1074 PORT_X11
= _misc_
.PORT_X11
1075 PORT_PM
= _misc_
.PORT_PM
1076 PORT_OS2
= _misc_
.PORT_OS2
1077 PORT_MAC
= _misc_
.PORT_MAC
1078 PORT_COCOA
= _misc_
.PORT_COCOA
1079 PORT_WINCE
= _misc_
.PORT_WINCE
1080 PORT_PALMOS
= _misc_
.PORT_PALMOS
1081 PORT_DFB
= _misc_
.PORT_DFB
1082 ARCH_INVALID
= _misc_
.ARCH_INVALID
1083 ARCH_32
= _misc_
.ARCH_32
1084 ARCH_64
= _misc_
.ARCH_64
1085 ARCH_MAX
= _misc_
.ARCH_MAX
1086 ENDIAN_INVALID
= _misc_
.ENDIAN_INVALID
1087 ENDIAN_BIG
= _misc_
.ENDIAN_BIG
1088 ENDIAN_LITTLE
= _misc_
.ENDIAN_LITTLE
1089 ENDIAN_PDP
= _misc_
.ENDIAN_PDP
1090 ENDIAN_MAX
= _misc_
.ENDIAN_MAX
1091 class PlatformInformation(object):
1092 """Proxy of C++ PlatformInformation class"""
1093 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1094 __repr__
= _swig_repr
1095 def __init__(self
, *args
, **kwargs
):
1096 """__init__(self) -> PlatformInformation"""
1097 _misc_
.PlatformInformation_swiginit(self
,_misc_
.new_PlatformInformation(*args
, **kwargs
))
1098 def __eq__(*args
, **kwargs
):
1099 """__eq__(self, PlatformInformation t) -> bool"""
1100 return _misc_
.PlatformInformation___eq__(*args
, **kwargs
)
1102 def __ne__(*args
, **kwargs
):
1103 """__ne__(self, PlatformInformation t) -> bool"""
1104 return _misc_
.PlatformInformation___ne__(*args
, **kwargs
)
1106 def GetOSMajorVersion(*args
, **kwargs
):
1107 """GetOSMajorVersion(self) -> int"""
1108 return _misc_
.PlatformInformation_GetOSMajorVersion(*args
, **kwargs
)
1110 def GetOSMinorVersion(*args
, **kwargs
):
1111 """GetOSMinorVersion(self) -> int"""
1112 return _misc_
.PlatformInformation_GetOSMinorVersion(*args
, **kwargs
)
1114 def CheckOSVersion(*args
, **kwargs
):
1115 """CheckOSVersion(self, int major, int minor) -> bool"""
1116 return _misc_
.PlatformInformation_CheckOSVersion(*args
, **kwargs
)
1118 def GetToolkitMajorVersion(*args
, **kwargs
):
1119 """GetToolkitMajorVersion(self) -> int"""
1120 return _misc_
.PlatformInformation_GetToolkitMajorVersion(*args
, **kwargs
)
1122 def GetToolkitMinorVersion(*args
, **kwargs
):
1123 """GetToolkitMinorVersion(self) -> int"""
1124 return _misc_
.PlatformInformation_GetToolkitMinorVersion(*args
, **kwargs
)
1126 def CheckToolkitVersion(*args
, **kwargs
):
1127 """CheckToolkitVersion(self, int major, int minor) -> bool"""
1128 return _misc_
.PlatformInformation_CheckToolkitVersion(*args
, **kwargs
)
1130 def IsUsingUniversalWidgets(*args
, **kwargs
):
1131 """IsUsingUniversalWidgets(self) -> bool"""
1132 return _misc_
.PlatformInformation_IsUsingUniversalWidgets(*args
, **kwargs
)
1134 def GetOperatingSystemId(*args
, **kwargs
):
1135 """GetOperatingSystemId(self) -> int"""
1136 return _misc_
.PlatformInformation_GetOperatingSystemId(*args
, **kwargs
)
1138 def GetPortId(*args
, **kwargs
):
1139 """GetPortId(self) -> int"""
1140 return _misc_
.PlatformInformation_GetPortId(*args
, **kwargs
)
1142 def GetArchitecture(*args
, **kwargs
):
1143 """GetArchitecture(self) -> int"""
1144 return _misc_
.PlatformInformation_GetArchitecture(*args
, **kwargs
)
1146 def GetEndianness(*args
, **kwargs
):
1147 """GetEndianness(self) -> int"""
1148 return _misc_
.PlatformInformation_GetEndianness(*args
, **kwargs
)
1150 def GetOperatingSystemFamilyName(*args
, **kwargs
):
1151 """GetOperatingSystemFamilyName(self) -> String"""
1152 return _misc_
.PlatformInformation_GetOperatingSystemFamilyName(*args
, **kwargs
)
1154 def GetOperatingSystemIdName(*args
, **kwargs
):
1155 """GetOperatingSystemIdName(self) -> String"""
1156 return _misc_
.PlatformInformation_GetOperatingSystemIdName(*args
, **kwargs
)
1158 def GetPortIdName(*args
, **kwargs
):
1159 """GetPortIdName(self) -> String"""
1160 return _misc_
.PlatformInformation_GetPortIdName(*args
, **kwargs
)
1162 def GetPortIdShortName(*args
, **kwargs
):
1163 """GetPortIdShortName(self) -> String"""
1164 return _misc_
.PlatformInformation_GetPortIdShortName(*args
, **kwargs
)
1166 def GetArchName(*args
, **kwargs
):
1167 """GetArchName(self) -> String"""
1168 return _misc_
.PlatformInformation_GetArchName(*args
, **kwargs
)
1170 def GetEndiannessName(*args
, **kwargs
):
1171 """GetEndiannessName(self) -> String"""
1172 return _misc_
.PlatformInformation_GetEndiannessName(*args
, **kwargs
)
1174 def SetOSVersion(*args
, **kwargs
):
1175 """SetOSVersion(self, int major, int minor)"""
1176 return _misc_
.PlatformInformation_SetOSVersion(*args
, **kwargs
)
1178 def SetToolkitVersion(*args
, **kwargs
):
1179 """SetToolkitVersion(self, int major, int minor)"""
1180 return _misc_
.PlatformInformation_SetToolkitVersion(*args
, **kwargs
)
1182 def SetOperatingSystemId(*args
, **kwargs
):
1183 """SetOperatingSystemId(self, int n)"""
1184 return _misc_
.PlatformInformation_SetOperatingSystemId(*args
, **kwargs
)
1186 def SetPortId(*args
, **kwargs
):
1187 """SetPortId(self, int n)"""
1188 return _misc_
.PlatformInformation_SetPortId(*args
, **kwargs
)
1190 def SetArchitecture(*args
, **kwargs
):
1191 """SetArchitecture(self, int n)"""
1192 return _misc_
.PlatformInformation_SetArchitecture(*args
, **kwargs
)
1194 def SetEndianness(*args
, **kwargs
):
1195 """SetEndianness(self, int n)"""
1196 return _misc_
.PlatformInformation_SetEndianness(*args
, **kwargs
)
1198 def IsOk(*args
, **kwargs
):
1199 """IsOk(self) -> bool"""
1200 return _misc_
.PlatformInformation_IsOk(*args
, **kwargs
)
1202 ArchName
= property(GetArchName
,doc
="See `GetArchName`")
1203 Architecture
= property(GetArchitecture
,SetArchitecture
,doc
="See `GetArchitecture` and `SetArchitecture`")
1204 Endianness
= property(GetEndianness
,SetEndianness
,doc
="See `GetEndianness` and `SetEndianness`")
1205 EndiannessName
= property(GetEndiannessName
,doc
="See `GetEndiannessName`")
1206 OSMajorVersion
= property(GetOSMajorVersion
,doc
="See `GetOSMajorVersion`")
1207 OSMinorVersion
= property(GetOSMinorVersion
,doc
="See `GetOSMinorVersion`")
1208 OperatingSystemFamilyName
= property(GetOperatingSystemFamilyName
,doc
="See `GetOperatingSystemFamilyName`")
1209 OperatingSystemId
= property(GetOperatingSystemId
,SetOperatingSystemId
,doc
="See `GetOperatingSystemId` and `SetOperatingSystemId`")
1210 OperatingSystemIdName
= property(GetOperatingSystemIdName
,doc
="See `GetOperatingSystemIdName`")
1211 PortId
= property(GetPortId
,SetPortId
,doc
="See `GetPortId` and `SetPortId`")
1212 PortIdName
= property(GetPortIdName
,doc
="See `GetPortIdName`")
1213 PortIdShortName
= property(GetPortIdShortName
,doc
="See `GetPortIdShortName`")
1214 ToolkitMajorVersion
= property(GetToolkitMajorVersion
,doc
="See `GetToolkitMajorVersion`")
1215 ToolkitMinorVersion
= property(GetToolkitMinorVersion
,doc
="See `GetToolkitMinorVersion`")
1216 _misc_
.PlatformInformation_swigregister(PlatformInformation
)
1219 def DrawWindowOnDC(*args
, **kwargs
):
1220 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1221 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1222 #---------------------------------------------------------------------------
1224 class TipProvider(object):
1225 """Proxy of C++ TipProvider class"""
1226 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1227 def __init__(self
): raise AttributeError, "No constructor defined"
1228 __repr__
= _swig_repr
1229 __swig_destroy__
= _misc_
.delete_TipProvider
1230 __del__
= lambda self
: None;
1231 def GetTip(*args
, **kwargs
):
1232 """GetTip(self) -> String"""
1233 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1235 def GetCurrentTip(*args
, **kwargs
):
1236 """GetCurrentTip(self) -> size_t"""
1237 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1239 def PreprocessTip(*args
, **kwargs
):
1240 """PreprocessTip(self, String tip) -> String"""
1241 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1243 CurrentTip
= property(GetCurrentTip
,doc
="See `GetCurrentTip`")
1244 Tip
= property(GetTip
,doc
="See `GetTip`")
1245 _misc_
.TipProvider_swigregister(TipProvider
)
1247 class PyTipProvider(TipProvider
):
1248 """Proxy of C++ PyTipProvider class"""
1249 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1250 __repr__
= _swig_repr
1251 def __init__(self
, *args
, **kwargs
):
1252 """__init__(self, size_t currentTip) -> PyTipProvider"""
1253 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1254 self
._setCallbackInfo
(self
, PyTipProvider
)
1256 def _setCallbackInfo(*args
, **kwargs
):
1257 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1258 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1260 _misc_
.PyTipProvider_swigregister(PyTipProvider
)
1263 def ShowTip(*args
, **kwargs
):
1264 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1265 return _misc_
.ShowTip(*args
, **kwargs
)
1267 def CreateFileTipProvider(*args
, **kwargs
):
1268 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1269 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1270 #---------------------------------------------------------------------------
1272 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1273 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1274 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1275 class Timer(_core
.EvtHandler
):
1276 """Proxy of C++ Timer class"""
1277 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1278 __repr__
= _swig_repr
1279 def __init__(self
, *args
, **kwargs
):
1280 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1281 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1282 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1284 __swig_destroy__
= _misc_
.delete_Timer
1285 __del__
= lambda self
: None;
1286 def _setCallbackInfo(*args
, **kwargs
):
1287 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1288 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1290 def SetOwner(*args
, **kwargs
):
1291 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1292 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1294 def GetOwner(*args
, **kwargs
):
1295 """GetOwner(self) -> EvtHandler"""
1296 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1298 def Start(*args
, **kwargs
):
1299 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1300 return _misc_
.Timer_Start(*args
, **kwargs
)
1302 def Stop(*args
, **kwargs
):
1304 return _misc_
.Timer_Stop(*args
, **kwargs
)
1306 def Notify(*args
, **kwargs
):
1308 return _misc_
.Timer_Notify(*args
, **kwargs
)
1310 def IsRunning(*args
, **kwargs
):
1311 """IsRunning(self) -> bool"""
1312 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1314 def GetInterval(*args
, **kwargs
):
1315 """GetInterval(self) -> int"""
1316 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1318 def GetId(*args
, **kwargs
):
1319 """GetId(self) -> int"""
1320 return _misc_
.Timer_GetId(*args
, **kwargs
)
1322 def IsOneShot(*args
, **kwargs
):
1323 """IsOneShot(self) -> bool"""
1324 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1327 """NO-OP: Timers must be destroyed by normal reference counting"""
1330 Id
= property(GetId
,doc
="See `GetId`")
1331 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1332 Owner
= property(GetOwner
,SetOwner
,doc
="See `GetOwner` and `SetOwner`")
1333 _misc_
.Timer_swigregister(Timer
)
1335 # For backwards compatibility with 2.4
1336 class PyTimer(Timer
):
1337 def __init__(self
, notify
):
1338 Timer
.__init
__(self
)
1339 self
.notify
= notify
1346 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1349 class TimerEvent(_core
.Event
):
1350 """Proxy of C++ TimerEvent class"""
1351 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1352 __repr__
= _swig_repr
1353 def __init__(self
, *args
, **kwargs
):
1354 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1355 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1356 def GetInterval(*args
, **kwargs
):
1357 """GetInterval(self) -> int"""
1358 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1360 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1361 _misc_
.TimerEvent_swigregister(TimerEvent
)
1363 class TimerRunner(object):
1364 """Proxy of C++ TimerRunner class"""
1365 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1366 __repr__
= _swig_repr
1367 def __init__(self
, *args
):
1369 __init__(self, wxTimer timer) -> TimerRunner
1370 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1372 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1373 __swig_destroy__
= _misc_
.delete_TimerRunner
1374 __del__
= lambda self
: None;
1375 def Start(*args
, **kwargs
):
1376 """Start(self, int milli, bool oneShot=False)"""
1377 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1379 _misc_
.TimerRunner_swigregister(TimerRunner
)
1381 #---------------------------------------------------------------------------
1383 LOG_FatalError
= _misc_
.LOG_FatalError
1384 LOG_Error
= _misc_
.LOG_Error
1385 LOG_Warning
= _misc_
.LOG_Warning
1386 LOG_Message
= _misc_
.LOG_Message
1387 LOG_Status
= _misc_
.LOG_Status
1388 LOG_Info
= _misc_
.LOG_Info
1389 LOG_Debug
= _misc_
.LOG_Debug
1390 LOG_Trace
= _misc_
.LOG_Trace
1391 LOG_Progress
= _misc_
.LOG_Progress
1392 LOG_User
= _misc_
.LOG_User
1393 LOG_Max
= _misc_
.LOG_Max
1394 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1395 TRACE_Messages
= _misc_
.TRACE_Messages
1396 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1397 TRACE_RefCount
= _misc_
.TRACE_RefCount
1398 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1399 TraceMemAlloc
= _misc_
.TraceMemAlloc
1400 TraceMessages
= _misc_
.TraceMessages
1401 TraceResAlloc
= _misc_
.TraceResAlloc
1402 TraceRefCount
= _misc_
.TraceRefCount
1403 TraceOleCalls
= _misc_
.TraceOleCalls
1405 """Proxy of C++ Log class"""
1406 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1407 __repr__
= _swig_repr
1408 def __init__(self
, *args
, **kwargs
):
1409 """__init__(self) -> Log"""
1410 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1411 __swig_destroy__
= _misc_
.delete_Log
1412 __del__
= lambda self
: None;
1413 def IsEnabled(*args
, **kwargs
):
1414 """IsEnabled() -> bool"""
1415 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1417 IsEnabled
= staticmethod(IsEnabled
)
1418 def EnableLogging(*args
, **kwargs
):
1419 """EnableLogging(bool doIt=True) -> bool"""
1420 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1422 EnableLogging
= staticmethod(EnableLogging
)
1423 def OnLog(*args
, **kwargs
):
1424 """OnLog(LogLevel level, wxChar szString, time_t t)"""
1425 return _misc_
.Log_OnLog(*args
, **kwargs
)
1427 OnLog
= staticmethod(OnLog
)
1428 def Flush(*args
, **kwargs
):
1430 return _misc_
.Log_Flush(*args
, **kwargs
)
1432 def FlushActive(*args
, **kwargs
):
1434 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1436 FlushActive
= staticmethod(FlushActive
)
1437 def GetActiveTarget(*args
, **kwargs
):
1438 """GetActiveTarget() -> Log"""
1439 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1441 GetActiveTarget
= staticmethod(GetActiveTarget
)
1442 def SetActiveTarget(*args
, **kwargs
):
1443 """SetActiveTarget(Log pLogger) -> Log"""
1444 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1446 SetActiveTarget
= staticmethod(SetActiveTarget
)
1447 def Suspend(*args
, **kwargs
):
1449 return _misc_
.Log_Suspend(*args
, **kwargs
)
1451 Suspend
= staticmethod(Suspend
)
1452 def Resume(*args
, **kwargs
):
1454 return _misc_
.Log_Resume(*args
, **kwargs
)
1456 Resume
= staticmethod(Resume
)
1457 def SetVerbose(*args
, **kwargs
):
1458 """SetVerbose(bool bVerbose=True)"""
1459 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1461 SetVerbose
= staticmethod(SetVerbose
)
1462 def SetLogLevel(*args
, **kwargs
):
1463 """SetLogLevel(LogLevel logLevel)"""
1464 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1466 SetLogLevel
= staticmethod(SetLogLevel
)
1467 def DontCreateOnDemand(*args
, **kwargs
):
1468 """DontCreateOnDemand()"""
1469 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1471 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1472 def SetRepetitionCounting(*args
, **kwargs
):
1473 """SetRepetitionCounting(bool bRepetCounting=True)"""
1474 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1476 SetRepetitionCounting
= staticmethod(SetRepetitionCounting
)
1477 def GetRepetitionCounting(*args
, **kwargs
):
1478 """GetRepetitionCounting() -> bool"""
1479 return _misc_
.Log_GetRepetitionCounting(*args
, **kwargs
)
1481 GetRepetitionCounting
= staticmethod(GetRepetitionCounting
)
1482 def SetTraceMask(*args
, **kwargs
):
1483 """SetTraceMask(TraceMask ulMask)"""
1484 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1486 SetTraceMask
= staticmethod(SetTraceMask
)
1487 def AddTraceMask(*args
, **kwargs
):
1488 """AddTraceMask(String str)"""
1489 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1491 AddTraceMask
= staticmethod(AddTraceMask
)
1492 def RemoveTraceMask(*args
, **kwargs
):
1493 """RemoveTraceMask(String str)"""
1494 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1496 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1497 def ClearTraceMasks(*args
, **kwargs
):
1498 """ClearTraceMasks()"""
1499 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1501 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1502 def GetTraceMasks(*args
, **kwargs
):
1503 """GetTraceMasks() -> wxArrayString"""
1504 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1506 GetTraceMasks
= staticmethod(GetTraceMasks
)
1507 def SetTimestamp(*args
, **kwargs
):
1508 """SetTimestamp(wxChar ts)"""
1509 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1511 SetTimestamp
= staticmethod(SetTimestamp
)
1512 def GetVerbose(*args
, **kwargs
):
1513 """GetVerbose() -> bool"""
1514 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1516 GetVerbose
= staticmethod(GetVerbose
)
1517 def GetTraceMask(*args
, **kwargs
):
1518 """GetTraceMask() -> TraceMask"""
1519 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1521 GetTraceMask
= staticmethod(GetTraceMask
)
1522 def IsAllowedTraceMask(*args
, **kwargs
):
1523 """IsAllowedTraceMask(wxChar mask) -> bool"""
1524 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1526 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1527 def GetLogLevel(*args
, **kwargs
):
1528 """GetLogLevel() -> LogLevel"""
1529 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1531 GetLogLevel
= staticmethod(GetLogLevel
)
1532 def GetTimestamp(*args
, **kwargs
):
1533 """GetTimestamp() -> wxChar"""
1534 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1536 GetTimestamp
= staticmethod(GetTimestamp
)
1537 def TimeStamp(*args
, **kwargs
):
1538 """TimeStamp() -> String"""
1539 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1541 TimeStamp
= staticmethod(TimeStamp
)
1542 def Destroy(*args
, **kwargs
):
1544 val
= _misc_
.Log_Destroy(*args
, **kwargs
)
1548 _misc_
.Log_swigregister(Log
)
1550 def Log_IsEnabled(*args
):
1551 """Log_IsEnabled() -> bool"""
1552 return _misc_
.Log_IsEnabled(*args
)
1554 def Log_EnableLogging(*args
, **kwargs
):
1555 """Log_EnableLogging(bool doIt=True) -> bool"""
1556 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1558 def Log_OnLog(*args
, **kwargs
):
1559 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1560 return _misc_
.Log_OnLog(*args
, **kwargs
)
1562 def Log_FlushActive(*args
):
1563 """Log_FlushActive()"""
1564 return _misc_
.Log_FlushActive(*args
)
1566 def Log_GetActiveTarget(*args
):
1567 """Log_GetActiveTarget() -> Log"""
1568 return _misc_
.Log_GetActiveTarget(*args
)
1570 def Log_SetActiveTarget(*args
, **kwargs
):
1571 """Log_SetActiveTarget(Log pLogger) -> Log"""
1572 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1574 def Log_Suspend(*args
):
1576 return _misc_
.Log_Suspend(*args
)
1578 def Log_Resume(*args
):
1580 return _misc_
.Log_Resume(*args
)
1582 def Log_SetVerbose(*args
, **kwargs
):
1583 """Log_SetVerbose(bool bVerbose=True)"""
1584 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1586 def Log_SetLogLevel(*args
, **kwargs
):
1587 """Log_SetLogLevel(LogLevel logLevel)"""
1588 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1590 def Log_DontCreateOnDemand(*args
):
1591 """Log_DontCreateOnDemand()"""
1592 return _misc_
.Log_DontCreateOnDemand(*args
)
1594 def Log_SetRepetitionCounting(*args
, **kwargs
):
1595 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1596 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1598 def Log_GetRepetitionCounting(*args
):
1599 """Log_GetRepetitionCounting() -> bool"""
1600 return _misc_
.Log_GetRepetitionCounting(*args
)
1602 def Log_SetTraceMask(*args
, **kwargs
):
1603 """Log_SetTraceMask(TraceMask ulMask)"""
1604 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1606 def Log_AddTraceMask(*args
, **kwargs
):
1607 """Log_AddTraceMask(String str)"""
1608 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1610 def Log_RemoveTraceMask(*args
, **kwargs
):
1611 """Log_RemoveTraceMask(String str)"""
1612 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1614 def Log_ClearTraceMasks(*args
):
1615 """Log_ClearTraceMasks()"""
1616 return _misc_
.Log_ClearTraceMasks(*args
)
1618 def Log_GetTraceMasks(*args
):
1619 """Log_GetTraceMasks() -> wxArrayString"""
1620 return _misc_
.Log_GetTraceMasks(*args
)
1622 def Log_SetTimestamp(*args
, **kwargs
):
1623 """Log_SetTimestamp(wxChar ts)"""
1624 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1626 def Log_GetVerbose(*args
):
1627 """Log_GetVerbose() -> bool"""
1628 return _misc_
.Log_GetVerbose(*args
)
1630 def Log_GetTraceMask(*args
):
1631 """Log_GetTraceMask() -> TraceMask"""
1632 return _misc_
.Log_GetTraceMask(*args
)
1634 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1635 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1636 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1638 def Log_GetLogLevel(*args
):
1639 """Log_GetLogLevel() -> LogLevel"""
1640 return _misc_
.Log_GetLogLevel(*args
)
1642 def Log_GetTimestamp(*args
):
1643 """Log_GetTimestamp() -> wxChar"""
1644 return _misc_
.Log_GetTimestamp(*args
)
1646 def Log_TimeStamp(*args
):
1647 """Log_TimeStamp() -> String"""
1648 return _misc_
.Log_TimeStamp(*args
)
1650 class LogStderr(Log
):
1651 """Proxy of C++ LogStderr class"""
1652 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1653 __repr__
= _swig_repr
1654 def __init__(self
, *args
, **kwargs
):
1655 """__init__(self) -> LogStderr"""
1656 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1657 _misc_
.LogStderr_swigregister(LogStderr
)
1659 class LogTextCtrl(Log
):
1660 """Proxy of C++ LogTextCtrl class"""
1661 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1662 __repr__
= _swig_repr
1663 def __init__(self
, *args
, **kwargs
):
1664 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1665 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1666 _misc_
.LogTextCtrl_swigregister(LogTextCtrl
)
1669 """Proxy of C++ LogGui class"""
1670 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1671 __repr__
= _swig_repr
1672 def __init__(self
, *args
, **kwargs
):
1673 """__init__(self) -> LogGui"""
1674 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1675 _misc_
.LogGui_swigregister(LogGui
)
1677 class LogWindow(Log
):
1678 """Proxy of C++ LogWindow class"""
1679 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1680 __repr__
= _swig_repr
1681 def __init__(self
, *args
, **kwargs
):
1682 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1683 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1684 def Show(*args
, **kwargs
):
1685 """Show(self, bool bShow=True)"""
1686 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1688 def GetFrame(*args
, **kwargs
):
1689 """GetFrame(self) -> wxFrame"""
1690 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1692 def GetOldLog(*args
, **kwargs
):
1693 """GetOldLog(self) -> Log"""
1694 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1696 def IsPassingMessages(*args
, **kwargs
):
1697 """IsPassingMessages(self) -> bool"""
1698 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1700 def PassMessages(*args
, **kwargs
):
1701 """PassMessages(self, bool bDoPass)"""
1702 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1704 Frame
= property(GetFrame
,doc
="See `GetFrame`")
1705 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1706 _misc_
.LogWindow_swigregister(LogWindow
)
1708 class LogChain(Log
):
1709 """Proxy of C++ LogChain class"""
1710 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1711 __repr__
= _swig_repr
1712 def __init__(self
, *args
, **kwargs
):
1713 """__init__(self, Log logger) -> LogChain"""
1714 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1715 def SetLog(*args
, **kwargs
):
1716 """SetLog(self, Log logger)"""
1717 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1719 def PassMessages(*args
, **kwargs
):
1720 """PassMessages(self, bool bDoPass)"""
1721 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1723 def IsPassingMessages(*args
, **kwargs
):
1724 """IsPassingMessages(self) -> bool"""
1725 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1727 def GetOldLog(*args
, **kwargs
):
1728 """GetOldLog(self) -> Log"""
1729 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1731 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1732 _misc_
.LogChain_swigregister(LogChain
)
1734 class LogBuffer(Log
):
1735 """Proxy of C++ LogBuffer class"""
1736 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1737 __repr__
= _swig_repr
1738 def __init__(self
, *args
, **kwargs
):
1739 """__init__(self) -> LogBuffer"""
1740 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1741 def GetBuffer(*args
, **kwargs
):
1742 """GetBuffer(self) -> String"""
1743 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1745 Buffer
= property(GetBuffer
,doc
="See `GetBuffer`")
1746 _misc_
.LogBuffer_swigregister(LogBuffer
)
1749 def SysErrorCode(*args
):
1750 """SysErrorCode() -> unsigned long"""
1751 return _misc_
.SysErrorCode(*args
)
1753 def SysErrorMsg(*args
, **kwargs
):
1754 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1755 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1757 def LogFatalError(*args
, **kwargs
):
1758 """LogFatalError(String msg)"""
1759 return _misc_
.LogFatalError(*args
, **kwargs
)
1761 def LogError(*args
, **kwargs
):
1762 """LogError(String msg)"""
1763 return _misc_
.LogError(*args
, **kwargs
)
1765 def LogWarning(*args
, **kwargs
):
1766 """LogWarning(String msg)"""
1767 return _misc_
.LogWarning(*args
, **kwargs
)
1769 def LogMessage(*args
, **kwargs
):
1770 """LogMessage(String msg)"""
1771 return _misc_
.LogMessage(*args
, **kwargs
)
1773 def LogInfo(*args
, **kwargs
):
1774 """LogInfo(String msg)"""
1775 return _misc_
.LogInfo(*args
, **kwargs
)
1777 def LogDebug(*args
, **kwargs
):
1778 """LogDebug(String msg)"""
1779 return _misc_
.LogDebug(*args
, **kwargs
)
1781 def LogVerbose(*args
, **kwargs
):
1782 """LogVerbose(String msg)"""
1783 return _misc_
.LogVerbose(*args
, **kwargs
)
1785 def LogStatus(*args
, **kwargs
):
1786 """LogStatus(String msg)"""
1787 return _misc_
.LogStatus(*args
, **kwargs
)
1789 def LogStatusFrame(*args
, **kwargs
):
1790 """LogStatusFrame(wxFrame pFrame, String msg)"""
1791 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1793 def LogSysError(*args
, **kwargs
):
1794 """LogSysError(String msg)"""
1795 return _misc_
.LogSysError(*args
, **kwargs
)
1797 def LogGeneric(*args
, **kwargs
):
1798 """LogGeneric(unsigned long level, String msg)"""
1799 return _misc_
.LogGeneric(*args
, **kwargs
)
1801 def SafeShowMessage(*args
, **kwargs
):
1802 """SafeShowMessage(String title, String text)"""
1803 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1804 class LogNull(object):
1805 """Proxy of C++ LogNull class"""
1806 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1807 __repr__
= _swig_repr
1808 def __init__(self
, *args
, **kwargs
):
1809 """__init__(self) -> LogNull"""
1810 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1811 __swig_destroy__
= _misc_
.delete_LogNull
1812 __del__
= lambda self
: None;
1813 _misc_
.LogNull_swigregister(LogNull
)
1815 def LogTrace(*args
):
1817 LogTrace(unsigned long mask, String msg)
1818 LogTrace(String mask, String msg)
1820 return _misc_
.LogTrace(*args
)
1823 """Proxy of C++ PyLog class"""
1824 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1825 __repr__
= _swig_repr
1826 def __init__(self
, *args
, **kwargs
):
1827 """__init__(self) -> PyLog"""
1828 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1829 self
._setCallbackInfo
(self
, PyLog
)
1831 def _setCallbackInfo(*args
, **kwargs
):
1832 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1833 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1835 _misc_
.PyLog_swigregister(PyLog
)
1837 #---------------------------------------------------------------------------
1839 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1840 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1841 KILL_OK
= _misc_
.KILL_OK
1842 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1843 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1844 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1845 KILL_ERROR
= _misc_
.KILL_ERROR
1846 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1847 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1848 SIGNONE
= _misc_
.SIGNONE
1849 SIGHUP
= _misc_
.SIGHUP
1850 SIGINT
= _misc_
.SIGINT
1851 SIGQUIT
= _misc_
.SIGQUIT
1852 SIGILL
= _misc_
.SIGILL
1853 SIGTRAP
= _misc_
.SIGTRAP
1854 SIGABRT
= _misc_
.SIGABRT
1855 SIGIOT
= _misc_
.SIGIOT
1856 SIGEMT
= _misc_
.SIGEMT
1857 SIGFPE
= _misc_
.SIGFPE
1858 SIGKILL
= _misc_
.SIGKILL
1859 SIGBUS
= _misc_
.SIGBUS
1860 SIGSEGV
= _misc_
.SIGSEGV
1861 SIGSYS
= _misc_
.SIGSYS
1862 SIGPIPE
= _misc_
.SIGPIPE
1863 SIGALRM
= _misc_
.SIGALRM
1864 SIGTERM
= _misc_
.SIGTERM
1865 class Process(_core
.EvtHandler
):
1866 """Proxy of C++ Process class"""
1867 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1868 __repr__
= _swig_repr
1869 def Kill(*args
, **kwargs
):
1870 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1871 return _misc_
.Process_Kill(*args
, **kwargs
)
1873 Kill
= staticmethod(Kill
)
1874 def Exists(*args
, **kwargs
):
1875 """Exists(int pid) -> bool"""
1876 return _misc_
.Process_Exists(*args
, **kwargs
)
1878 Exists
= staticmethod(Exists
)
1879 def Open(*args
, **kwargs
):
1880 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1881 return _misc_
.Process_Open(*args
, **kwargs
)
1883 Open
= staticmethod(Open
)
1884 def __init__(self
, *args
, **kwargs
):
1885 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1886 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1887 self
._setCallbackInfo
(self
, Process
)
1889 def _setCallbackInfo(*args
, **kwargs
):
1890 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1891 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1893 def OnTerminate(*args
, **kwargs
):
1894 """OnTerminate(self, int pid, int status)"""
1895 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1897 def base_OnTerminate(*args
, **kw
):
1898 return Process
.OnTerminate(*args
, **kw
)
1899 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1900 "Please use Process.OnTerminate instead.")
1902 def Redirect(*args
, **kwargs
):
1903 """Redirect(self)"""
1904 return _misc_
.Process_Redirect(*args
, **kwargs
)
1906 def IsRedirected(*args
, **kwargs
):
1907 """IsRedirected(self) -> bool"""
1908 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1910 def Detach(*args
, **kwargs
):
1912 return _misc_
.Process_Detach(*args
, **kwargs
)
1914 def GetInputStream(*args
, **kwargs
):
1915 """GetInputStream(self) -> InputStream"""
1916 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1918 def GetErrorStream(*args
, **kwargs
):
1919 """GetErrorStream(self) -> InputStream"""
1920 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1922 def GetOutputStream(*args
, **kwargs
):
1923 """GetOutputStream(self) -> OutputStream"""
1924 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1926 def CloseOutput(*args
, **kwargs
):
1927 """CloseOutput(self)"""
1928 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1930 def IsInputOpened(*args
, **kwargs
):
1931 """IsInputOpened(self) -> bool"""
1932 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1934 def IsInputAvailable(*args
, **kwargs
):
1935 """IsInputAvailable(self) -> bool"""
1936 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1938 def IsErrorAvailable(*args
, **kwargs
):
1939 """IsErrorAvailable(self) -> bool"""
1940 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1942 ErrorStream
= property(GetErrorStream
,doc
="See `GetErrorStream`")
1943 InputStream
= property(GetInputStream
,doc
="See `GetInputStream`")
1944 OutputStream
= property(GetOutputStream
,doc
="See `GetOutputStream`")
1945 InputOpened
= property(IsInputOpened
)
1946 InputAvailable
= property(IsInputAvailable
)
1947 ErrorAvailable
= property(IsErrorAvailable
)
1948 _misc_
.Process_swigregister(Process
)
1950 def Process_Kill(*args
, **kwargs
):
1951 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1952 return _misc_
.Process_Kill(*args
, **kwargs
)
1954 def Process_Exists(*args
, **kwargs
):
1955 """Process_Exists(int pid) -> bool"""
1956 return _misc_
.Process_Exists(*args
, **kwargs
)
1958 def Process_Open(*args
, **kwargs
):
1959 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1960 return _misc_
.Process_Open(*args
, **kwargs
)
1962 class ProcessEvent(_core
.Event
):
1963 """Proxy of C++ ProcessEvent class"""
1964 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1965 __repr__
= _swig_repr
1966 def __init__(self
, *args
, **kwargs
):
1967 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1968 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1969 def GetPid(*args
, **kwargs
):
1970 """GetPid(self) -> int"""
1971 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1973 def GetExitCode(*args
, **kwargs
):
1974 """GetExitCode(self) -> int"""
1975 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1977 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1978 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1979 ExitCode
= property(GetExitCode
,doc
="See `GetExitCode`")
1980 Pid
= property(GetPid
,doc
="See `GetPid`")
1981 _misc_
.ProcessEvent_swigregister(ProcessEvent
)
1983 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1984 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1986 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1987 EXEC_SYNC
= _misc_
.EXEC_SYNC
1988 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1989 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1990 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1992 def Execute(*args
, **kwargs
):
1993 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1994 return _misc_
.Execute(*args
, **kwargs
)
1996 def Kill(*args
, **kwargs
):
1997 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1998 return _misc_
.Kill(*args
, **kwargs
)
1999 #---------------------------------------------------------------------------
2001 JOYSTICK1
= _misc_
.JOYSTICK1
2002 JOYSTICK2
= _misc_
.JOYSTICK2
2003 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
2004 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
2005 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
2006 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
2007 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
2008 class Joystick(object):
2009 """Proxy of C++ Joystick class"""
2010 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2011 __repr__
= _swig_repr
2012 def __init__(self
, *args
, **kwargs
):
2013 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
2014 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
2015 __swig_destroy__
= _misc_
.delete_Joystick
2016 __del__
= lambda self
: None;
2017 def GetPosition(*args
, **kwargs
):
2018 """GetPosition(self) -> Point"""
2019 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
2021 def GetZPosition(*args
, **kwargs
):
2022 """GetZPosition(self) -> int"""
2023 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
2025 def GetButtonState(*args
, **kwargs
):
2026 """GetButtonState(self) -> int"""
2027 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
2029 def GetPOVPosition(*args
, **kwargs
):
2030 """GetPOVPosition(self) -> int"""
2031 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
2033 def GetPOVCTSPosition(*args
, **kwargs
):
2034 """GetPOVCTSPosition(self) -> int"""
2035 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
2037 def GetRudderPosition(*args
, **kwargs
):
2038 """GetRudderPosition(self) -> int"""
2039 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
2041 def GetUPosition(*args
, **kwargs
):
2042 """GetUPosition(self) -> int"""
2043 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
2045 def GetVPosition(*args
, **kwargs
):
2046 """GetVPosition(self) -> int"""
2047 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
2049 def GetMovementThreshold(*args
, **kwargs
):
2050 """GetMovementThreshold(self) -> int"""
2051 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
2053 def SetMovementThreshold(*args
, **kwargs
):
2054 """SetMovementThreshold(self, int threshold)"""
2055 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
2057 def IsOk(*args
, **kwargs
):
2058 """IsOk(self) -> bool"""
2059 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
2061 def GetNumberJoysticks(*args
, **kwargs
):
2062 """GetNumberJoysticks(self) -> int"""
2063 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
2065 def GetManufacturerId(*args
, **kwargs
):
2066 """GetManufacturerId(self) -> int"""
2067 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
2069 def GetProductId(*args
, **kwargs
):
2070 """GetProductId(self) -> int"""
2071 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
2073 def GetProductName(*args
, **kwargs
):
2074 """GetProductName(self) -> String"""
2075 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
2077 def GetXMin(*args
, **kwargs
):
2078 """GetXMin(self) -> int"""
2079 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
2081 def GetYMin(*args
, **kwargs
):
2082 """GetYMin(self) -> int"""
2083 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
2085 def GetZMin(*args
, **kwargs
):
2086 """GetZMin(self) -> int"""
2087 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
2089 def GetXMax(*args
, **kwargs
):
2090 """GetXMax(self) -> int"""
2091 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
2093 def GetYMax(*args
, **kwargs
):
2094 """GetYMax(self) -> int"""
2095 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
2097 def GetZMax(*args
, **kwargs
):
2098 """GetZMax(self) -> int"""
2099 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
2101 def GetNumberButtons(*args
, **kwargs
):
2102 """GetNumberButtons(self) -> int"""
2103 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
2105 def GetNumberAxes(*args
, **kwargs
):
2106 """GetNumberAxes(self) -> int"""
2107 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
2109 def GetMaxButtons(*args
, **kwargs
):
2110 """GetMaxButtons(self) -> int"""
2111 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
2113 def GetMaxAxes(*args
, **kwargs
):
2114 """GetMaxAxes(self) -> int"""
2115 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
2117 def GetPollingMin(*args
, **kwargs
):
2118 """GetPollingMin(self) -> int"""
2119 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
2121 def GetPollingMax(*args
, **kwargs
):
2122 """GetPollingMax(self) -> int"""
2123 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
2125 def GetRudderMin(*args
, **kwargs
):
2126 """GetRudderMin(self) -> int"""
2127 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
2129 def GetRudderMax(*args
, **kwargs
):
2130 """GetRudderMax(self) -> int"""
2131 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
2133 def GetUMin(*args
, **kwargs
):
2134 """GetUMin(self) -> int"""
2135 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
2137 def GetUMax(*args
, **kwargs
):
2138 """GetUMax(self) -> int"""
2139 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
2141 def GetVMin(*args
, **kwargs
):
2142 """GetVMin(self) -> int"""
2143 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
2145 def GetVMax(*args
, **kwargs
):
2146 """GetVMax(self) -> int"""
2147 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
2149 def HasRudder(*args
, **kwargs
):
2150 """HasRudder(self) -> bool"""
2151 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
2153 def HasZ(*args
, **kwargs
):
2154 """HasZ(self) -> bool"""
2155 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
2157 def HasU(*args
, **kwargs
):
2158 """HasU(self) -> bool"""
2159 return _misc_
.Joystick_HasU(*args
, **kwargs
)
2161 def HasV(*args
, **kwargs
):
2162 """HasV(self) -> bool"""
2163 return _misc_
.Joystick_HasV(*args
, **kwargs
)
2165 def HasPOV(*args
, **kwargs
):
2166 """HasPOV(self) -> bool"""
2167 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
2169 def HasPOV4Dir(*args
, **kwargs
):
2170 """HasPOV4Dir(self) -> bool"""
2171 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
2173 def HasPOVCTS(*args
, **kwargs
):
2174 """HasPOVCTS(self) -> bool"""
2175 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
2177 def SetCapture(*args
, **kwargs
):
2178 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2179 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2181 def ReleaseCapture(*args
, **kwargs
):
2182 """ReleaseCapture(self) -> bool"""
2183 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2185 def __nonzero__(self
): return self
.IsOk()
2186 ButtonState
= property(GetButtonState
,doc
="See `GetButtonState`")
2187 ManufacturerId
= property(GetManufacturerId
,doc
="See `GetManufacturerId`")
2188 MaxAxes
= property(GetMaxAxes
,doc
="See `GetMaxAxes`")
2189 MaxButtons
= property(GetMaxButtons
,doc
="See `GetMaxButtons`")
2190 MovementThreshold
= property(GetMovementThreshold
,SetMovementThreshold
,doc
="See `GetMovementThreshold` and `SetMovementThreshold`")
2191 NumberAxes
= property(GetNumberAxes
,doc
="See `GetNumberAxes`")
2192 NumberButtons
= property(GetNumberButtons
,doc
="See `GetNumberButtons`")
2193 NumberJoysticks
= property(GetNumberJoysticks
,doc
="See `GetNumberJoysticks`")
2194 POVCTSPosition
= property(GetPOVCTSPosition
,doc
="See `GetPOVCTSPosition`")
2195 POVPosition
= property(GetPOVPosition
,doc
="See `GetPOVPosition`")
2196 PollingMax
= property(GetPollingMax
,doc
="See `GetPollingMax`")
2197 PollingMin
= property(GetPollingMin
,doc
="See `GetPollingMin`")
2198 Position
= property(GetPosition
,doc
="See `GetPosition`")
2199 ProductId
= property(GetProductId
,doc
="See `GetProductId`")
2200 ProductName
= property(GetProductName
,doc
="See `GetProductName`")
2201 RudderMax
= property(GetRudderMax
,doc
="See `GetRudderMax`")
2202 RudderMin
= property(GetRudderMin
,doc
="See `GetRudderMin`")
2203 RudderPosition
= property(GetRudderPosition
,doc
="See `GetRudderPosition`")
2204 UMax
= property(GetUMax
,doc
="See `GetUMax`")
2205 UMin
= property(GetUMin
,doc
="See `GetUMin`")
2206 UPosition
= property(GetUPosition
,doc
="See `GetUPosition`")
2207 VMax
= property(GetVMax
,doc
="See `GetVMax`")
2208 VMin
= property(GetVMin
,doc
="See `GetVMin`")
2209 VPosition
= property(GetVPosition
,doc
="See `GetVPosition`")
2210 XMax
= property(GetXMax
,doc
="See `GetXMax`")
2211 XMin
= property(GetXMin
,doc
="See `GetXMin`")
2212 YMax
= property(GetYMax
,doc
="See `GetYMax`")
2213 YMin
= property(GetYMin
,doc
="See `GetYMin`")
2214 ZMax
= property(GetZMax
,doc
="See `GetZMax`")
2215 ZMin
= property(GetZMin
,doc
="See `GetZMin`")
2216 ZPosition
= property(GetZPosition
,doc
="See `GetZPosition`")
2217 _misc_
.Joystick_swigregister(Joystick
)
2219 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2220 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2221 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2222 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2223 class JoystickEvent(_core
.Event
):
2224 """Proxy of C++ JoystickEvent class"""
2225 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2226 __repr__
= _swig_repr
2227 def __init__(self
, *args
, **kwargs
):
2229 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2230 int change=0) -> JoystickEvent
2232 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
2233 def GetPosition(*args
, **kwargs
):
2234 """GetPosition(self) -> Point"""
2235 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2237 def GetZPosition(*args
, **kwargs
):
2238 """GetZPosition(self) -> int"""
2239 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2241 def GetButtonState(*args
, **kwargs
):
2242 """GetButtonState(self) -> int"""
2243 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2245 def GetButtonChange(*args
, **kwargs
):
2246 """GetButtonChange(self) -> int"""
2247 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2249 def GetJoystick(*args
, **kwargs
):
2250 """GetJoystick(self) -> int"""
2251 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2253 def SetJoystick(*args
, **kwargs
):
2254 """SetJoystick(self, int stick)"""
2255 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2257 def SetButtonState(*args
, **kwargs
):
2258 """SetButtonState(self, int state)"""
2259 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2261 def SetButtonChange(*args
, **kwargs
):
2262 """SetButtonChange(self, int change)"""
2263 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2265 def SetPosition(*args
, **kwargs
):
2266 """SetPosition(self, Point pos)"""
2267 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2269 def SetZPosition(*args
, **kwargs
):
2270 """SetZPosition(self, int zPos)"""
2271 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2273 def IsButton(*args
, **kwargs
):
2274 """IsButton(self) -> bool"""
2275 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2277 def IsMove(*args
, **kwargs
):
2278 """IsMove(self) -> bool"""
2279 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2281 def IsZMove(*args
, **kwargs
):
2282 """IsZMove(self) -> bool"""
2283 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2285 def ButtonDown(*args
, **kwargs
):
2286 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2287 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2289 def ButtonUp(*args
, **kwargs
):
2290 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2291 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2293 def ButtonIsDown(*args
, **kwargs
):
2294 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2295 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2297 m_pos
= property(GetPosition
, SetPosition
)
2298 m_zPosition
= property(GetZPosition
, SetZPosition
)
2299 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2300 m_buttonState
= property(GetButtonState
, SetButtonState
)
2301 m_joyStick
= property(GetJoystick
, SetJoystick
)
2303 ButtonChange
= property(GetButtonChange
,SetButtonChange
,doc
="See `GetButtonChange` and `SetButtonChange`")
2304 ButtonState
= property(GetButtonState
,SetButtonState
,doc
="See `GetButtonState` and `SetButtonState`")
2305 Joystick
= property(GetJoystick
,SetJoystick
,doc
="See `GetJoystick` and `SetJoystick`")
2306 Position
= property(GetPosition
,SetPosition
,doc
="See `GetPosition` and `SetPosition`")
2307 ZPosition
= property(GetZPosition
,SetZPosition
,doc
="See `GetZPosition` and `SetZPosition`")
2308 _misc_
.JoystickEvent_swigregister(JoystickEvent
)
2310 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2311 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2312 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2313 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2315 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2316 wxEVT_JOY_BUTTON_UP
,
2322 #---------------------------------------------------------------------------
2324 SOUND_SYNC
= _misc_
.SOUND_SYNC
2325 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2326 SOUND_LOOP
= _misc_
.SOUND_LOOP
2327 class Sound(object):
2328 """Proxy of C++ Sound class"""
2329 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2330 __repr__
= _swig_repr
2331 def __init__(self
, *args
, **kwargs
):
2332 """__init__(self, String fileName=EmptyString) -> Sound"""
2333 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2334 __swig_destroy__
= _misc_
.delete_Sound
2335 __del__
= lambda self
: None;
2336 def Create(*args
, **kwargs
):
2337 """Create(self, String fileName) -> bool"""
2338 return _misc_
.Sound_Create(*args
, **kwargs
)
2340 def CreateFromData(*args
, **kwargs
):
2341 """CreateFromData(self, PyObject data) -> bool"""
2342 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2344 def IsOk(*args
, **kwargs
):
2345 """IsOk(self) -> bool"""
2346 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2348 def Play(*args
, **kwargs
):
2349 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2350 return _misc_
.Sound_Play(*args
, **kwargs
)
2352 def PlaySound(*args
, **kwargs
):
2353 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2354 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2356 PlaySound
= staticmethod(PlaySound
)
2357 def Stop(*args
, **kwargs
):
2359 return _misc_
.Sound_Stop(*args
, **kwargs
)
2361 Stop
= staticmethod(Stop
)
2362 def __nonzero__(self
): return self
.IsOk()
2363 _misc_
.Sound_swigregister(Sound
)
2365 def SoundFromData(*args
, **kwargs
):
2366 """SoundFromData(PyObject data) -> Sound"""
2367 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2370 def Sound_PlaySound(*args
, **kwargs
):
2371 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2372 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2374 def Sound_Stop(*args
):
2376 return _misc_
.Sound_Stop(*args
)
2378 #---------------------------------------------------------------------------
2380 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2381 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2382 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2383 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2384 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2385 class FileTypeInfo(object):
2386 """Proxy of C++ FileTypeInfo class"""
2387 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2388 __repr__
= _swig_repr
2389 def __init__(self
, *args
, **kwargs
):
2390 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2391 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2392 def IsValid(*args
, **kwargs
):
2393 """IsValid(self) -> bool"""
2394 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2396 def SetIcon(*args
, **kwargs
):
2397 """SetIcon(self, String iconFile, int iconIndex=0)"""
2398 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2400 def SetShortDesc(*args
, **kwargs
):
2401 """SetShortDesc(self, String shortDesc)"""
2402 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2404 def GetMimeType(*args
, **kwargs
):
2405 """GetMimeType(self) -> String"""
2406 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2408 def GetOpenCommand(*args
, **kwargs
):
2409 """GetOpenCommand(self) -> String"""
2410 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2412 def GetPrintCommand(*args
, **kwargs
):
2413 """GetPrintCommand(self) -> String"""
2414 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2416 def GetShortDesc(*args
, **kwargs
):
2417 """GetShortDesc(self) -> String"""
2418 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2420 def GetDescription(*args
, **kwargs
):
2421 """GetDescription(self) -> String"""
2422 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2424 def GetExtensions(*args
, **kwargs
):
2425 """GetExtensions(self) -> wxArrayString"""
2426 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2428 def GetExtensionsCount(*args
, **kwargs
):
2429 """GetExtensionsCount(self) -> size_t"""
2430 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2432 def GetIconFile(*args
, **kwargs
):
2433 """GetIconFile(self) -> String"""
2434 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2436 def GetIconIndex(*args
, **kwargs
):
2437 """GetIconIndex(self) -> int"""
2438 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2440 Description
= property(GetDescription
,doc
="See `GetDescription`")
2441 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2442 ExtensionsCount
= property(GetExtensionsCount
,doc
="See `GetExtensionsCount`")
2443 IconFile
= property(GetIconFile
,doc
="See `GetIconFile`")
2444 IconIndex
= property(GetIconIndex
,doc
="See `GetIconIndex`")
2445 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2446 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2447 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2448 ShortDesc
= property(GetShortDesc
,SetShortDesc
,doc
="See `GetShortDesc` and `SetShortDesc`")
2449 _misc_
.FileTypeInfo_swigregister(FileTypeInfo
)
2451 def FileTypeInfoSequence(*args
, **kwargs
):
2452 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2453 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2456 def NullFileTypeInfo(*args
, **kwargs
):
2457 """NullFileTypeInfo() -> FileTypeInfo"""
2458 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2461 class FileType(object):
2462 """Proxy of C++ FileType class"""
2463 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2464 __repr__
= _swig_repr
2465 def __init__(self
, *args
, **kwargs
):
2466 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2467 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2468 __swig_destroy__
= _misc_
.delete_FileType
2469 __del__
= lambda self
: None;
2470 def GetMimeType(*args
, **kwargs
):
2471 """GetMimeType(self) -> PyObject"""
2472 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2474 def GetMimeTypes(*args
, **kwargs
):
2475 """GetMimeTypes(self) -> PyObject"""
2476 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2478 def GetExtensions(*args
, **kwargs
):
2479 """GetExtensions(self) -> PyObject"""
2480 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2482 def GetIcon(*args
, **kwargs
):
2483 """GetIcon(self) -> Icon"""
2484 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2486 def GetIconInfo(*args
, **kwargs
):
2487 """GetIconInfo(self) -> PyObject"""
2488 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2490 def GetDescription(*args
, **kwargs
):
2491 """GetDescription(self) -> PyObject"""
2492 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2494 def GetOpenCommand(*args
, **kwargs
):
2495 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2496 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2498 def GetPrintCommand(*args
, **kwargs
):
2499 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2500 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2502 def GetAllCommands(*args
, **kwargs
):
2503 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2504 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2506 def SetCommand(*args
, **kwargs
):
2507 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2508 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2510 def SetDefaultIcon(*args
, **kwargs
):
2511 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2512 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2514 def Unassociate(*args
, **kwargs
):
2515 """Unassociate(self) -> bool"""
2516 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2518 def ExpandCommand(*args
, **kwargs
):
2519 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2520 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2522 ExpandCommand
= staticmethod(ExpandCommand
)
2523 AllCommands
= property(GetAllCommands
,doc
="See `GetAllCommands`")
2524 Description
= property(GetDescription
,doc
="See `GetDescription`")
2525 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2526 Icon
= property(GetIcon
,doc
="See `GetIcon`")
2527 IconInfo
= property(GetIconInfo
,doc
="See `GetIconInfo`")
2528 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2529 MimeTypes
= property(GetMimeTypes
,doc
="See `GetMimeTypes`")
2530 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2531 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2532 _misc_
.FileType_swigregister(FileType
)
2534 def FileType_ExpandCommand(*args
, **kwargs
):
2535 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2536 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2538 class MimeTypesManager(object):
2539 """Proxy of C++ MimeTypesManager class"""
2540 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2541 __repr__
= _swig_repr
2542 def IsOfType(*args
, **kwargs
):
2543 """IsOfType(String mimeType, String wildcard) -> bool"""
2544 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2546 IsOfType
= staticmethod(IsOfType
)
2547 def __init__(self
, *args
, **kwargs
):
2548 """__init__(self) -> MimeTypesManager"""
2549 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2550 def Initialize(*args
, **kwargs
):
2551 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2552 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2554 def ClearData(*args
, **kwargs
):
2555 """ClearData(self)"""
2556 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2558 def GetFileTypeFromExtension(*args
, **kwargs
):
2559 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2560 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2562 def GetFileTypeFromMimeType(*args
, **kwargs
):
2563 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2564 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2566 def ReadMailcap(*args
, **kwargs
):
2567 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2568 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2570 def ReadMimeTypes(*args
, **kwargs
):
2571 """ReadMimeTypes(self, String filename) -> bool"""
2572 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2574 def EnumAllFileTypes(*args
, **kwargs
):
2575 """EnumAllFileTypes(self) -> PyObject"""
2576 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2578 def AddFallback(*args
, **kwargs
):
2579 """AddFallback(self, FileTypeInfo ft)"""
2580 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2582 def Associate(*args
, **kwargs
):
2583 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2584 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2586 def Unassociate(*args
, **kwargs
):
2587 """Unassociate(self, FileType ft) -> bool"""
2588 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2590 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2591 __del__
= lambda self
: None;
2592 _misc_
.MimeTypesManager_swigregister(MimeTypesManager
)
2593 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2595 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2596 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2597 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2599 #---------------------------------------------------------------------------
2601 class ArtProvider(object):
2603 The wx.ArtProvider class is used to customize the look of wxWidgets
2604 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2605 in the standard file dialog), it does not use hard-coded resource but
2606 asks wx.ArtProvider for it instead. This way the users can plug in
2607 their own wx.ArtProvider class and easily replace standard art with
2608 his/her own version. It is easy thing to do: all that is needed is
2609 to derive a class from wx.ArtProvider, override it's CreateBitmap
2610 method and register the provider with `wx.ArtProvider.Push`::
2612 class MyArtProvider(wx.ArtProvider):
2614 wx.ArtProvider.__init__(self)
2616 def CreateBitmap(self, artid, client, size):
2621 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2622 __repr__
= _swig_repr
2623 def __init__(self
, *args
, **kwargs
):
2625 __init__(self) -> ArtProvider
2627 The wx.ArtProvider class is used to customize the look of wxWidgets
2628 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2629 in the standard file dialog), it does not use hard-coded resource but
2630 asks wx.ArtProvider for it instead. This way the users can plug in
2631 their own wx.ArtProvider class and easily replace standard art with
2632 his/her own version. It is easy thing to do: all that is needed is
2633 to derive a class from wx.ArtProvider, override it's CreateBitmap
2634 method and register the provider with `wx.ArtProvider.Push`::
2636 class MyArtProvider(wx.ArtProvider):
2638 wx.ArtProvider.__init__(self)
2640 def CreateBitmap(self, artid, client, size):
2645 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2646 self
._setCallbackInfo
(self
, ArtProvider
)
2648 __swig_destroy__
= _misc_
.delete_ArtProvider
2649 __del__
= lambda self
: None;
2650 def _setCallbackInfo(*args
, **kwargs
):
2651 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2652 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2654 def Push(*args
, **kwargs
):
2656 Push(ArtProvider provider)
2658 Add new provider to the top of providers stack.
2660 return _misc_
.ArtProvider_Push(*args
, **kwargs
)
2662 Push
= staticmethod(Push
)
2663 PushProvider
= wx
._deprecated
(Push
, "See `Push`")
2664 def Insert(*args
, **kwargs
):
2666 Insert(ArtProvider provider)
2668 Add new provider to the bottom of providers stack.
2670 return _misc_
.ArtProvider_Insert(*args
, **kwargs
)
2672 Insert
= staticmethod(Insert
)
2673 InsertProvider
= wx
._deprecated
(Insert
, "See `Insert`")
2674 def Pop(*args
, **kwargs
):
2678 Remove latest added provider and delete it.
2680 return _misc_
.ArtProvider_Pop(*args
, **kwargs
)
2682 Pop
= staticmethod(Pop
)
2683 PopProvider
= wx
._deprecated
(Pop
, "See `Pop`")
2684 def Delete(*args
, **kwargs
):
2686 Delete(ArtProvider provider) -> bool
2688 Remove provider. The provider must have been added previously! The
2689 provider is _not_ deleted.
2691 val
= _misc_
.ArtProvider_Delete(*args
, **kwargs
)
2695 Delete
= staticmethod(Delete
)
2696 RemoveProvider
= wx
._deprecated
(Delete
, "See `Delete`")
2697 def GetBitmap(*args
, **kwargs
):
2699 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2701 Query the providers for bitmap with given ID and return it. Return
2702 wx.NullBitmap if no provider provides it.
2704 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2706 GetBitmap
= staticmethod(GetBitmap
)
2707 def GetIcon(*args
, **kwargs
):
2709 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2711 Query the providers for icon with given ID and return it. Return
2712 wx.NullIcon if no provider provides it.
2714 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2716 GetIcon
= staticmethod(GetIcon
)
2717 def GetSizeHint(*args
, **kwargs
):
2719 GetSizeHint(String client, bool platform_dependent=False) -> Size
2721 Get the size hint of an icon from a specific Art Client, queries the
2722 topmost provider if platform_dependent = false
2724 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2726 GetSizeHint
= staticmethod(GetSizeHint
)
2727 def Destroy(*args
, **kwargs
):
2729 val
= _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2733 _misc_
.ArtProvider_swigregister(ArtProvider
)
2734 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2735 ART_MENU
= cvar
.ART_MENU
2736 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2737 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2738 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2739 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2740 ART_BUTTON
= cvar
.ART_BUTTON
2741 ART_OTHER
= cvar
.ART_OTHER
2742 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2743 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2744 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2745 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2746 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2747 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2748 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2749 ART_GO_BACK
= cvar
.ART_GO_BACK
2750 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2751 ART_GO_UP
= cvar
.ART_GO_UP
2752 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2753 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2754 ART_GO_HOME
= cvar
.ART_GO_HOME
2755 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2756 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2757 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2758 ART_PRINT
= cvar
.ART_PRINT
2759 ART_HELP
= cvar
.ART_HELP
2760 ART_TIP
= cvar
.ART_TIP
2761 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2762 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2763 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2764 ART_HARDDISK
= cvar
.ART_HARDDISK
2765 ART_FLOPPY
= cvar
.ART_FLOPPY
2766 ART_CDROM
= cvar
.ART_CDROM
2767 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2768 ART_FOLDER
= cvar
.ART_FOLDER
2769 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2770 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2771 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2772 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2773 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2774 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2775 ART_ERROR
= cvar
.ART_ERROR
2776 ART_QUESTION
= cvar
.ART_QUESTION
2777 ART_WARNING
= cvar
.ART_WARNING
2778 ART_INFORMATION
= cvar
.ART_INFORMATION
2779 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2780 ART_COPY
= cvar
.ART_COPY
2781 ART_CUT
= cvar
.ART_CUT
2782 ART_PASTE
= cvar
.ART_PASTE
2783 ART_DELETE
= cvar
.ART_DELETE
2784 ART_NEW
= cvar
.ART_NEW
2785 ART_UNDO
= cvar
.ART_UNDO
2786 ART_REDO
= cvar
.ART_REDO
2787 ART_QUIT
= cvar
.ART_QUIT
2788 ART_FIND
= cvar
.ART_FIND
2789 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2791 def ArtProvider_Push(*args
, **kwargs
):
2793 ArtProvider_Push(ArtProvider provider)
2795 Add new provider to the top of providers stack.
2797 return _misc_
.ArtProvider_Push(*args
, **kwargs
)
2799 def ArtProvider_Insert(*args
, **kwargs
):
2801 ArtProvider_Insert(ArtProvider provider)
2803 Add new provider to the bottom of providers stack.
2805 return _misc_
.ArtProvider_Insert(*args
, **kwargs
)
2807 def ArtProvider_Pop(*args
):
2809 ArtProvider_Pop() -> bool
2811 Remove latest added provider and delete it.
2813 return _misc_
.ArtProvider_Pop(*args
)
2815 def ArtProvider_Delete(*args
, **kwargs
):
2817 ArtProvider_Delete(ArtProvider provider) -> bool
2819 Remove provider. The provider must have been added previously! The
2820 provider is _not_ deleted.
2822 val
= _misc_
.ArtProvider_Delete(*args
, **kwargs
)
2826 def ArtProvider_GetBitmap(*args
, **kwargs
):
2828 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2830 Query the providers for bitmap with given ID and return it. Return
2831 wx.NullBitmap if no provider provides it.
2833 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2835 def ArtProvider_GetIcon(*args
, **kwargs
):
2837 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2839 Query the providers for icon with given ID and return it. Return
2840 wx.NullIcon if no provider provides it.
2842 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2844 def ArtProvider_GetSizeHint(*args
, **kwargs
):
2846 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2848 Get the size hint of an icon from a specific Art Client, queries the
2849 topmost provider if platform_dependent = false
2851 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2853 #---------------------------------------------------------------------------
2855 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
2856 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
2857 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
2858 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2859 class ConfigBase(object):
2861 wx.ConfigBase class defines the basic interface of all config
2862 classes. It can not be used by itself (it is an abstract base class)
2863 and you will always use one of its derivations: wx.Config or
2866 wx.ConfigBase organizes the items in a tree-like structure, modeled
2867 after the Unix/Dos filesystem. There are groups that act like
2868 directories and entries, key/value pairs that act like files. There
2869 is always one current group given by the current path. As in the file
2870 system case, to specify a key in the config class you must use a path
2871 to it. Config classes also support the notion of the current group,
2872 which makes it possible to use relative paths.
2874 Keys are pairs "key_name = value" where value may be of string,
2875 integer floating point or boolean, you can not store binary data
2876 without first encoding it as a string. For performance reasons items
2877 should be kept small, no more than a couple kilobytes.
2880 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2881 def __init__(self
): raise AttributeError, "No constructor defined"
2882 __repr__
= _swig_repr
2883 __swig_destroy__
= _misc_
.delete_ConfigBase
2884 __del__
= lambda self
: None;
2885 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
2886 Type_String
= _misc_
.ConfigBase_Type_String
2887 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
2888 Type_Integer
= _misc_
.ConfigBase_Type_Integer
2889 Type_Float
= _misc_
.ConfigBase_Type_Float
2890 def Set(*args
, **kwargs
):
2892 Set(ConfigBase config) -> ConfigBase
2894 Sets the global config object (the one returned by Get) and returns a
2895 reference to the previous global config object.
2897 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
2899 Set
= staticmethod(Set
)
2900 def Get(*args
, **kwargs
):
2902 Get(bool createOnDemand=True) -> ConfigBase
2904 Returns the current global config object, creating one if neccessary.
2906 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
2908 Get
= staticmethod(Get
)
2909 def Create(*args
, **kwargs
):
2911 Create() -> ConfigBase
2913 Create and return a new global config object. This function will
2914 create the "best" implementation of wx.Config available for the
2917 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
2919 Create
= staticmethod(Create
)
2920 def DontCreateOnDemand(*args
, **kwargs
):
2922 DontCreateOnDemand()
2924 Should Get() try to create a new log object if there isn't a current
2927 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2929 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2930 def SetPath(*args
, **kwargs
):
2932 SetPath(self, String path)
2934 Set current path: if the first character is '/', it's the absolute
2935 path, otherwise it's a relative path. '..' is supported. If the
2936 strPath doesn't exist it is created.
2938 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
2940 def GetPath(*args
, **kwargs
):
2942 GetPath(self) -> String
2944 Retrieve the current path (always as absolute path)
2946 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
2948 def GetFirstGroup(*args
, **kwargs
):
2950 GetFirstGroup() -> (more, value, index)
2952 Allows enumerating the subgroups in a config object. Returns a tuple
2953 containing a flag indicating there are more items, the name of the
2954 current item, and an index to pass to GetNextGroup to fetch the next
2957 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2959 def GetNextGroup(*args
, **kwargs
):
2961 GetNextGroup(long index) -> (more, value, index)
2963 Allows enumerating the subgroups in a config object. Returns a tuple
2964 containing a flag indicating there are more items, the name of the
2965 current item, and an index to pass to GetNextGroup to fetch the next
2968 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2970 def GetFirstEntry(*args
, **kwargs
):
2972 GetFirstEntry() -> (more, value, index)
2974 Allows enumerating the entries in the current group in a config
2975 object. Returns a tuple containing a flag indicating there are more
2976 items, the name of the current item, and an index to pass to
2977 GetNextGroup to fetch the next item.
2979 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2981 def GetNextEntry(*args
, **kwargs
):
2983 GetNextEntry(long index) -> (more, value, index)
2985 Allows enumerating the entries in the current group in a config
2986 object. Returns a tuple containing a flag indicating there are more
2987 items, the name of the current item, and an index to pass to
2988 GetNextGroup to fetch the next item.
2990 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2992 def GetNumberOfEntries(*args
, **kwargs
):
2994 GetNumberOfEntries(self, bool recursive=False) -> size_t
2996 Get the number of entries in the current group, with or without its
2999 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
3001 def GetNumberOfGroups(*args
, **kwargs
):
3003 GetNumberOfGroups(self, bool recursive=False) -> size_t
3005 Get the number of subgroups in the current group, with or without its
3008 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
3010 def HasGroup(*args
, **kwargs
):
3012 HasGroup(self, String name) -> bool
3014 Returns True if the group by this name exists
3016 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
3018 def HasEntry(*args
, **kwargs
):
3020 HasEntry(self, String name) -> bool
3022 Returns True if the entry by this name exists
3024 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
3026 def Exists(*args
, **kwargs
):
3028 Exists(self, String name) -> bool
3030 Returns True if either a group or an entry with a given name exists
3032 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
3034 def GetEntryType(*args
, **kwargs
):
3036 GetEntryType(self, String name) -> int
3038 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
3040 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
3042 def Read(*args
, **kwargs
):
3044 Read(self, String key, String defaultVal=EmptyString) -> String
3046 Returns the value of key if it exists, defaultVal otherwise.
3048 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
3050 def ReadInt(*args
, **kwargs
):
3052 ReadInt(self, String key, long defaultVal=0) -> long
3054 Returns the value of key if it exists, defaultVal otherwise.
3056 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
3058 def ReadFloat(*args
, **kwargs
):
3060 ReadFloat(self, String key, double defaultVal=0.0) -> double
3062 Returns the value of key if it exists, defaultVal otherwise.
3064 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
3066 def ReadBool(*args
, **kwargs
):
3068 ReadBool(self, String key, bool defaultVal=False) -> bool
3070 Returns the value of key if it exists, defaultVal otherwise.
3072 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
3074 def Write(*args
, **kwargs
):
3076 Write(self, String key, String value) -> bool
3078 write the value (return True on success)
3080 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
3082 def WriteInt(*args
, **kwargs
):
3084 WriteInt(self, String key, long value) -> bool
3086 write the value (return True on success)
3088 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
3090 def WriteFloat(*args
, **kwargs
):
3092 WriteFloat(self, String key, double value) -> bool
3094 write the value (return True on success)
3096 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
3098 def WriteBool(*args
, **kwargs
):
3100 WriteBool(self, String key, bool value) -> bool
3102 write the value (return True on success)
3104 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
3106 def Flush(*args
, **kwargs
):
3108 Flush(self, bool currentOnly=False) -> bool
3110 permanently writes all changes
3112 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
3114 def RenameEntry(*args
, **kwargs
):
3116 RenameEntry(self, String oldName, String newName) -> bool
3118 Rename an entry. Returns False on failure (probably because the new
3119 name is already taken by an existing entry)
3121 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
3123 def RenameGroup(*args
, **kwargs
):
3125 RenameGroup(self, String oldName, String newName) -> bool
3127 Rename a group. Returns False on failure (probably because the new
3128 name is already taken by an existing entry)
3130 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
3132 def DeleteEntry(*args
, **kwargs
):
3134 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3136 Deletes the specified entry and the group it belongs to if it was the
3137 last key in it and the second parameter is True
3139 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
3141 def DeleteGroup(*args
, **kwargs
):
3143 DeleteGroup(self, String key) -> bool
3145 Delete the group (with all subgroups)
3147 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
3149 def DeleteAll(*args
, **kwargs
):
3151 DeleteAll(self) -> bool
3153 Delete the whole underlying object (disk file, registry key, ...)
3154 primarly intended for use by deinstallation routine.
3156 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
3158 def SetExpandEnvVars(*args
, **kwargs
):
3160 SetExpandEnvVars(self, bool doIt=True)
3162 We can automatically expand environment variables in the config
3163 entries this option is on by default, you can turn it on/off at any
3166 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
3168 def IsExpandingEnvVars(*args
, **kwargs
):
3170 IsExpandingEnvVars(self) -> bool
3172 Are we currently expanding environment variables?
3174 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
3176 def SetRecordDefaults(*args
, **kwargs
):
3178 SetRecordDefaults(self, bool doIt=True)
3180 Set whether the config objec should record default values.
3182 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
3184 def IsRecordingDefaults(*args
, **kwargs
):
3186 IsRecordingDefaults(self) -> bool
3188 Are we currently recording default values?
3190 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
3192 def ExpandEnvVars(*args
, **kwargs
):
3194 ExpandEnvVars(self, String str) -> String
3196 Expand any environment variables in str and return the result
3198 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
3200 def GetAppName(*args
, **kwargs
):
3201 """GetAppName(self) -> String"""
3202 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3204 def GetVendorName(*args
, **kwargs
):
3205 """GetVendorName(self) -> String"""
3206 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3208 def SetAppName(*args
, **kwargs
):
3209 """SetAppName(self, String appName)"""
3210 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3212 def SetVendorName(*args
, **kwargs
):
3213 """SetVendorName(self, String vendorName)"""
3214 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3216 def SetStyle(*args
, **kwargs
):
3217 """SetStyle(self, long style)"""
3218 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3220 def GetStyle(*args
, **kwargs
):
3221 """GetStyle(self) -> long"""
3222 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3224 AppName
= property(GetAppName
,SetAppName
,doc
="See `GetAppName` and `SetAppName`")
3225 EntryType
= property(GetEntryType
,doc
="See `GetEntryType`")
3226 FirstEntry
= property(GetFirstEntry
,doc
="See `GetFirstEntry`")
3227 FirstGroup
= property(GetFirstGroup
,doc
="See `GetFirstGroup`")
3228 NextEntry
= property(GetNextEntry
,doc
="See `GetNextEntry`")
3229 NextGroup
= property(GetNextGroup
,doc
="See `GetNextGroup`")
3230 NumberOfEntries
= property(GetNumberOfEntries
,doc
="See `GetNumberOfEntries`")
3231 NumberOfGroups
= property(GetNumberOfGroups
,doc
="See `GetNumberOfGroups`")
3232 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
3233 Style
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")
3234 VendorName
= property(GetVendorName
,SetVendorName
,doc
="See `GetVendorName` and `SetVendorName`")
3235 _misc_
.ConfigBase_swigregister(ConfigBase
)
3237 def ConfigBase_Set(*args
, **kwargs
):
3239 ConfigBase_Set(ConfigBase config) -> ConfigBase
3241 Sets the global config object (the one returned by Get) and returns a
3242 reference to the previous global config object.
3244 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3246 def ConfigBase_Get(*args
, **kwargs
):
3248 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3250 Returns the current global config object, creating one if neccessary.
3252 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3254 def ConfigBase_Create(*args
):
3256 ConfigBase_Create() -> ConfigBase
3258 Create and return a new global config object. This function will
3259 create the "best" implementation of wx.Config available for the
3262 return _misc_
.ConfigBase_Create(*args
)
3264 def ConfigBase_DontCreateOnDemand(*args
):
3266 ConfigBase_DontCreateOnDemand()
3268 Should Get() try to create a new log object if there isn't a current
3271 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
3273 class Config(ConfigBase
):
3275 This ConfigBase-derived class will use the registry on Windows,
3276 and will be a wx.FileConfig on other platforms.
3278 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3279 __repr__
= _swig_repr
3280 def __init__(self
, *args
, **kwargs
):
3282 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3283 String localFilename=EmptyString, String globalFilename=EmptyString,
3284 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3286 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
3287 __swig_destroy__
= _misc_
.delete_Config
3288 __del__
= lambda self
: None;
3289 _misc_
.Config_swigregister(Config
)
3291 class FileConfig(ConfigBase
):
3292 """This config class will use a file for storage on all platforms."""
3293 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3294 __repr__
= _swig_repr
3295 def __init__(self
, *args
, **kwargs
):
3297 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3298 String localFilename=EmptyString, String globalFilename=EmptyString,
3299 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3301 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3302 __swig_destroy__
= _misc_
.delete_FileConfig
3303 __del__
= lambda self
: None;
3304 _misc_
.FileConfig_swigregister(FileConfig
)
3306 class ConfigPathChanger(object):
3308 A handy little class which changes current path to the path of given
3309 entry and restores it in the destructoir: so if you declare a local
3310 variable of this type, you work in the entry directory and the path is
3311 automatically restored when the function returns.
3313 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3314 __repr__
= _swig_repr
3315 def __init__(self
, *args
, **kwargs
):
3316 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3317 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3318 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3319 __del__
= lambda self
: None;
3320 def Name(*args
, **kwargs
):
3322 Name(self) -> String
3326 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3328 _misc_
.ConfigPathChanger_swigregister(ConfigPathChanger
)
3331 def ExpandEnvVars(*args
, **kwargs
):
3333 ExpandEnvVars(String sz) -> String
3335 Replace environment variables ($SOMETHING) with their values. The
3336 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3337 characters and '_' only. '$' must be escaped ('\$') in order to be
3340 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3341 #---------------------------------------------------------------------------
3343 class DateTime(object):
3344 """Proxy of C++ DateTime class"""
3345 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3346 __repr__
= _swig_repr
3347 Local
= _misc_
.DateTime_Local
3348 GMT_12
= _misc_
.DateTime_GMT_12
3349 GMT_11
= _misc_
.DateTime_GMT_11
3350 GMT_10
= _misc_
.DateTime_GMT_10
3351 GMT_9
= _misc_
.DateTime_GMT_9
3352 GMT_8
= _misc_
.DateTime_GMT_8
3353 GMT_7
= _misc_
.DateTime_GMT_7
3354 GMT_6
= _misc_
.DateTime_GMT_6
3355 GMT_5
= _misc_
.DateTime_GMT_5
3356 GMT_4
= _misc_
.DateTime_GMT_4
3357 GMT_3
= _misc_
.DateTime_GMT_3
3358 GMT_2
= _misc_
.DateTime_GMT_2
3359 GMT_1
= _misc_
.DateTime_GMT_1
3360 GMT0
= _misc_
.DateTime_GMT0
3361 GMT1
= _misc_
.DateTime_GMT1
3362 GMT2
= _misc_
.DateTime_GMT2
3363 GMT3
= _misc_
.DateTime_GMT3
3364 GMT4
= _misc_
.DateTime_GMT4
3365 GMT5
= _misc_
.DateTime_GMT5
3366 GMT6
= _misc_
.DateTime_GMT6
3367 GMT7
= _misc_
.DateTime_GMT7
3368 GMT8
= _misc_
.DateTime_GMT8
3369 GMT9
= _misc_
.DateTime_GMT9
3370 GMT10
= _misc_
.DateTime_GMT10
3371 GMT11
= _misc_
.DateTime_GMT11
3372 GMT12
= _misc_
.DateTime_GMT12
3373 WET
= _misc_
.DateTime_WET
3374 WEST
= _misc_
.DateTime_WEST
3375 CET
= _misc_
.DateTime_CET
3376 CEST
= _misc_
.DateTime_CEST
3377 EET
= _misc_
.DateTime_EET
3378 EEST
= _misc_
.DateTime_EEST
3379 MSK
= _misc_
.DateTime_MSK
3380 MSD
= _misc_
.DateTime_MSD
3381 AST
= _misc_
.DateTime_AST
3382 ADT
= _misc_
.DateTime_ADT
3383 EST
= _misc_
.DateTime_EST
3384 EDT
= _misc_
.DateTime_EDT
3385 CST
= _misc_
.DateTime_CST
3386 CDT
= _misc_
.DateTime_CDT
3387 MST
= _misc_
.DateTime_MST
3388 MDT
= _misc_
.DateTime_MDT
3389 PST
= _misc_
.DateTime_PST
3390 PDT
= _misc_
.DateTime_PDT
3391 HST
= _misc_
.DateTime_HST
3392 AKST
= _misc_
.DateTime_AKST
3393 AKDT
= _misc_
.DateTime_AKDT
3394 A_WST
= _misc_
.DateTime_A_WST
3395 A_CST
= _misc_
.DateTime_A_CST
3396 A_EST
= _misc_
.DateTime_A_EST
3397 A_ESST
= _misc_
.DateTime_A_ESST
3398 UTC
= _misc_
.DateTime_UTC
3399 Gregorian
= _misc_
.DateTime_Gregorian
3400 Julian
= _misc_
.DateTime_Julian
3401 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3402 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3403 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3404 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3405 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3406 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3407 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3408 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3409 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3410 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3411 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3412 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3413 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3414 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3415 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3416 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3417 Gr_China
= _misc_
.DateTime_Gr_China
3418 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3419 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3420 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3421 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3422 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3423 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3424 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3425 Gr_France
= _misc_
.DateTime_Gr_France
3426 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3427 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3428 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3429 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3430 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3431 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3432 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3433 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3434 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3435 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3436 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3437 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3438 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3439 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3440 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3441 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3442 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3443 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3444 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3445 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3446 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3447 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3448 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3449 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3450 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3451 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3452 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3453 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3454 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3455 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3456 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3457 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3458 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3459 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3460 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3461 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3462 Gr_USA
= _misc_
.DateTime_Gr_USA
3463 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3464 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3465 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3466 Country_Default
= _misc_
.DateTime_Country_Default
3467 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3468 Country_EEC
= _misc_
.DateTime_Country_EEC
3469 France
= _misc_
.DateTime_France
3470 Germany
= _misc_
.DateTime_Germany
3471 UK
= _misc_
.DateTime_UK
3472 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3473 Russia
= _misc_
.DateTime_Russia
3474 USA
= _misc_
.DateTime_USA
3475 Jan
= _misc_
.DateTime_Jan
3476 Feb
= _misc_
.DateTime_Feb
3477 Mar
= _misc_
.DateTime_Mar
3478 Apr
= _misc_
.DateTime_Apr
3479 May
= _misc_
.DateTime_May
3480 Jun
= _misc_
.DateTime_Jun
3481 Jul
= _misc_
.DateTime_Jul
3482 Aug
= _misc_
.DateTime_Aug
3483 Sep
= _misc_
.DateTime_Sep
3484 Oct
= _misc_
.DateTime_Oct
3485 Nov
= _misc_
.DateTime_Nov
3486 Dec
= _misc_
.DateTime_Dec
3487 Inv_Month
= _misc_
.DateTime_Inv_Month
3488 Sun
= _misc_
.DateTime_Sun
3489 Mon
= _misc_
.DateTime_Mon
3490 Tue
= _misc_
.DateTime_Tue
3491 Wed
= _misc_
.DateTime_Wed
3492 Thu
= _misc_
.DateTime_Thu
3493 Fri
= _misc_
.DateTime_Fri
3494 Sat
= _misc_
.DateTime_Sat
3495 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3496 Inv_Year
= _misc_
.DateTime_Inv_Year
3497 Name_Full
= _misc_
.DateTime_Name_Full
3498 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3499 Default_First
= _misc_
.DateTime_Default_First
3500 Monday_First
= _misc_
.DateTime_Monday_First
3501 Sunday_First
= _misc_
.DateTime_Sunday_First
3502 def SetCountry(*args
, **kwargs
):
3503 """SetCountry(int country)"""
3504 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3506 SetCountry
= staticmethod(SetCountry
)
3507 def GetCountry(*args
, **kwargs
):
3508 """GetCountry() -> int"""
3509 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3511 GetCountry
= staticmethod(GetCountry
)
3512 def IsWestEuropeanCountry(*args
, **kwargs
):
3513 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3514 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3516 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3517 def GetCurrentYear(*args
, **kwargs
):
3518 """GetCurrentYear(int cal=Gregorian) -> int"""
3519 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3521 GetCurrentYear
= staticmethod(GetCurrentYear
)
3522 def ConvertYearToBC(*args
, **kwargs
):
3523 """ConvertYearToBC(int year) -> int"""
3524 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3526 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3527 def GetCurrentMonth(*args
, **kwargs
):
3528 """GetCurrentMonth(int cal=Gregorian) -> int"""
3529 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3531 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3532 def IsLeapYear(*args
, **kwargs
):
3533 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3534 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3536 IsLeapYear
= staticmethod(IsLeapYear
)
3537 def GetCentury(*args
, **kwargs
):
3538 """GetCentury(int year=Inv_Year) -> int"""
3539 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3541 GetCentury
= staticmethod(GetCentury
)
3542 def GetNumberOfDaysinYear(*args
, **kwargs
):
3543 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3544 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3546 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3547 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3548 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3549 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3551 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3552 def GetMonthName(*args
, **kwargs
):
3553 """GetMonthName(int month, int flags=Name_Full) -> String"""
3554 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3556 GetMonthName
= staticmethod(GetMonthName
)
3557 def GetWeekDayName(*args
, **kwargs
):
3558 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3559 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3561 GetWeekDayName
= staticmethod(GetWeekDayName
)
3562 def GetAmPmStrings(*args
, **kwargs
):
3564 GetAmPmStrings() -> (am, pm)
3566 Get the AM and PM strings in the current locale (may be empty)
3568 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3570 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3571 def IsDSTApplicable(*args
, **kwargs
):
3572 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3573 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3575 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3576 def GetBeginDST(*args
, **kwargs
):
3577 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3578 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3580 GetBeginDST
= staticmethod(GetBeginDST
)
3581 def GetEndDST(*args
, **kwargs
):
3582 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3583 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3585 GetEndDST
= staticmethod(GetEndDST
)
3586 def Now(*args
, **kwargs
):
3587 """Now() -> DateTime"""
3588 return _misc_
.DateTime_Now(*args
, **kwargs
)
3590 Now
= staticmethod(Now
)
3591 def UNow(*args
, **kwargs
):
3592 """UNow() -> DateTime"""
3593 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3595 UNow
= staticmethod(UNow
)
3596 def Today(*args
, **kwargs
):
3597 """Today() -> DateTime"""
3598 return _misc_
.DateTime_Today(*args
, **kwargs
)
3600 Today
= staticmethod(Today
)
3601 def __init__(self
, *args
, **kwargs
):
3602 """__init__(self) -> DateTime"""
3603 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3604 __swig_destroy__
= _misc_
.delete_DateTime
3605 __del__
= lambda self
: None;
3606 def SetToCurrent(*args
, **kwargs
):
3607 """SetToCurrent(self) -> DateTime"""
3608 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3610 def SetTimeT(*args
, **kwargs
):
3611 """SetTimeT(self, time_t timet) -> DateTime"""
3612 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3614 def SetJDN(*args
, **kwargs
):
3615 """SetJDN(self, double jdn) -> DateTime"""
3616 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3618 def SetHMS(*args
, **kwargs
):
3619 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3620 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3622 def Set(*args
, **kwargs
):
3624 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3625 int minute=0, int second=0, int millisec=0) -> DateTime
3627 return _misc_
.DateTime_Set(*args
, **kwargs
)
3629 def ResetTime(*args
, **kwargs
):
3630 """ResetTime(self) -> DateTime"""
3631 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3633 def SetYear(*args
, **kwargs
):
3634 """SetYear(self, int year) -> DateTime"""
3635 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3637 def SetMonth(*args
, **kwargs
):
3638 """SetMonth(self, int month) -> DateTime"""
3639 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3641 def SetDay(*args
, **kwargs
):
3642 """SetDay(self, int day) -> DateTime"""
3643 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3645 def SetHour(*args
, **kwargs
):
3646 """SetHour(self, int hour) -> DateTime"""
3647 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3649 def SetMinute(*args
, **kwargs
):
3650 """SetMinute(self, int minute) -> DateTime"""
3651 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3653 def SetSecond(*args
, **kwargs
):
3654 """SetSecond(self, int second) -> DateTime"""
3655 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3657 def SetMillisecond(*args
, **kwargs
):
3658 """SetMillisecond(self, int millisecond) -> DateTime"""
3659 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3661 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3662 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3663 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3665 def GetWeekDayInSameWeek(*args
, **kwargs
):
3666 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3667 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3669 def SetToNextWeekDay(*args
, **kwargs
):
3670 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3671 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3673 def GetNextWeekDay(*args
, **kwargs
):
3674 """GetNextWeekDay(self, int weekday) -> DateTime"""
3675 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3677 def SetToPrevWeekDay(*args
, **kwargs
):
3678 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3679 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3681 def GetPrevWeekDay(*args
, **kwargs
):
3682 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3683 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3685 def SetToWeekDay(*args
, **kwargs
):
3686 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3687 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3689 def SetToLastWeekDay(*args
, **kwargs
):
3690 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3691 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3693 def GetLastWeekDay(*args
, **kwargs
):
3694 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3695 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3697 def SetToTheWeek(*args
, **kwargs
):
3698 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3699 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3701 def GetWeek(*args
, **kwargs
):
3702 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3703 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3705 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3706 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3708 def SetToWeekOfYear(*args
, **kwargs
):
3709 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3710 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3712 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3713 def SetToLastMonthDay(*args
, **kwargs
):
3714 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3715 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3717 def GetLastMonthDay(*args
, **kwargs
):
3718 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3719 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3721 def SetToYearDay(*args
, **kwargs
):
3722 """SetToYearDay(self, int yday) -> DateTime"""
3723 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3725 def GetYearDay(*args
, **kwargs
):
3726 """GetYearDay(self, int yday) -> DateTime"""
3727 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3729 def GetJulianDayNumber(*args
, **kwargs
):
3730 """GetJulianDayNumber(self) -> double"""
3731 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3733 def GetJDN(*args
, **kwargs
):
3734 """GetJDN(self) -> double"""
3735 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3737 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3738 """GetModifiedJulianDayNumber(self) -> double"""
3739 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3741 def GetMJD(*args
, **kwargs
):
3742 """GetMJD(self) -> double"""
3743 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3745 def GetRataDie(*args
, **kwargs
):
3746 """GetRataDie(self) -> double"""
3747 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3749 def ToTimezone(*args
, **kwargs
):
3750 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3751 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3753 def MakeTimezone(*args
, **kwargs
):
3754 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3755 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3757 def FromTimezone(*args
, **kwargs
):
3758 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3759 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3761 def MakeFromTimezone(*args
, **kwargs
):
3762 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3763 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3765 def ToUTC(*args
, **kwargs
):
3766 """ToUTC(self, bool noDST=False) -> DateTime"""
3767 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3769 def MakeUTC(*args
, **kwargs
):
3770 """MakeUTC(self, bool noDST=False) -> DateTime"""
3771 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3773 def ToGMT(*args
, **kwargs
):
3774 """ToGMT(self, bool noDST=False) -> DateTime"""
3775 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3777 def MakeGMT(*args
, **kwargs
):
3778 """MakeGMT(self, bool noDST=False) -> DateTime"""
3779 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3781 def FromUTC(*args
, **kwargs
):
3782 """FromUTC(self, bool noDST=False) -> DateTime"""
3783 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3785 def MakeFromUTC(*args
, **kwargs
):
3786 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3787 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3789 def IsDST(*args
, **kwargs
):
3790 """IsDST(self, int country=Country_Default) -> int"""
3791 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3793 def IsValid(*args
, **kwargs
):
3794 """IsValid(self) -> bool"""
3795 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3798 def __nonzero__(self
): return self
.Ok()
3799 def GetTicks(*args
, **kwargs
):
3800 """GetTicks(self) -> time_t"""
3801 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3803 def GetYear(*args
, **kwargs
):
3804 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3805 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3807 def GetMonth(*args
, **kwargs
):
3808 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3809 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3811 def GetDay(*args
, **kwargs
):
3812 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3813 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3815 def GetWeekDay(*args
, **kwargs
):
3816 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3817 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
3819 def GetHour(*args
, **kwargs
):
3820 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3821 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
3823 def GetMinute(*args
, **kwargs
):
3824 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3825 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
3827 def GetSecond(*args
, **kwargs
):
3828 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3829 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
3831 def GetMillisecond(*args
, **kwargs
):
3832 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3833 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
3835 def GetDayOfYear(*args
, **kwargs
):
3836 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3837 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
3839 def GetWeekOfYear(*args
, **kwargs
):
3840 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3841 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3843 def GetWeekOfMonth(*args
, **kwargs
):
3844 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3845 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3847 def IsWorkDay(*args
, **kwargs
):
3848 """IsWorkDay(self, int country=Country_Default) -> bool"""
3849 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
3851 def IsEqualTo(*args
, **kwargs
):
3852 """IsEqualTo(self, DateTime datetime) -> bool"""
3853 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
3855 def IsEarlierThan(*args
, **kwargs
):
3856 """IsEarlierThan(self, DateTime datetime) -> bool"""
3857 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
3859 def IsLaterThan(*args
, **kwargs
):
3860 """IsLaterThan(self, DateTime datetime) -> bool"""
3861 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
3863 def IsStrictlyBetween(*args
, **kwargs
):
3864 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3865 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3867 def IsBetween(*args
, **kwargs
):
3868 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3869 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
3871 def IsSameDate(*args
, **kwargs
):
3872 """IsSameDate(self, DateTime dt) -> bool"""
3873 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
3875 def IsSameTime(*args
, **kwargs
):
3876 """IsSameTime(self, DateTime dt) -> bool"""
3877 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
3879 def IsEqualUpTo(*args
, **kwargs
):
3880 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3881 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3883 def AddTS(*args
, **kwargs
):
3884 """AddTS(self, TimeSpan diff) -> DateTime"""
3885 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
3887 def AddDS(*args
, **kwargs
):
3888 """AddDS(self, DateSpan diff) -> DateTime"""
3889 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
3891 def SubtractTS(*args
, **kwargs
):
3892 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3893 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
3895 def SubtractDS(*args
, **kwargs
):
3896 """SubtractDS(self, DateSpan diff) -> DateTime"""
3897 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
3899 def Subtract(*args
, **kwargs
):
3900 """Subtract(self, DateTime dt) -> TimeSpan"""
3901 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
3903 def __iadd__(*args
):
3905 __iadd__(self, TimeSpan diff) -> DateTime
3906 __iadd__(self, DateSpan diff) -> DateTime
3908 return _misc_
.DateTime___iadd__(*args
)
3910 def __isub__(*args
):
3912 __isub__(self, TimeSpan diff) -> DateTime
3913 __isub__(self, DateSpan diff) -> DateTime
3915 return _misc_
.DateTime___isub__(*args
)
3919 __add__(self, TimeSpan other) -> DateTime
3920 __add__(self, DateSpan other) -> DateTime
3922 return _misc_
.DateTime___add__(*args
)
3926 __sub__(self, DateTime other) -> TimeSpan
3927 __sub__(self, TimeSpan other) -> DateTime
3928 __sub__(self, DateSpan other) -> DateTime
3930 return _misc_
.DateTime___sub__(*args
)
3932 def __lt__(*args
, **kwargs
):
3933 """__lt__(self, DateTime other) -> bool"""
3934 return _misc_
.DateTime___lt__(*args
, **kwargs
)
3936 def __le__(*args
, **kwargs
):
3937 """__le__(self, DateTime other) -> bool"""
3938 return _misc_
.DateTime___le__(*args
, **kwargs
)
3940 def __gt__(*args
, **kwargs
):
3941 """__gt__(self, DateTime other) -> bool"""
3942 return _misc_
.DateTime___gt__(*args
, **kwargs
)
3944 def __ge__(*args
, **kwargs
):
3945 """__ge__(self, DateTime other) -> bool"""
3946 return _misc_
.DateTime___ge__(*args
, **kwargs
)
3948 def __eq__(*args
, **kwargs
):
3949 """__eq__(self, DateTime other) -> bool"""
3950 return _misc_
.DateTime___eq__(*args
, **kwargs
)
3952 def __ne__(*args
, **kwargs
):
3953 """__ne__(self, DateTime other) -> bool"""
3954 return _misc_
.DateTime___ne__(*args
, **kwargs
)
3956 def ParseRfc822Date(*args
, **kwargs
):
3957 """ParseRfc822Date(self, String date) -> int"""
3958 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3960 def ParseFormat(*args
, **kwargs
):
3961 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3962 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
3964 def ParseDateTime(*args
, **kwargs
):
3965 """ParseDateTime(self, String datetime) -> int"""
3966 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
3968 def ParseDate(*args
, **kwargs
):
3969 """ParseDate(self, String date) -> int"""
3970 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
3972 def ParseTime(*args
, **kwargs
):
3973 """ParseTime(self, String time) -> int"""
3974 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
3976 def Format(*args
, **kwargs
):
3977 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3978 return _misc_
.DateTime_Format(*args
, **kwargs
)
3980 def FormatDate(*args
, **kwargs
):
3981 """FormatDate(self) -> String"""
3982 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
3984 def FormatTime(*args
, **kwargs
):
3985 """FormatTime(self) -> String"""
3986 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
3988 def FormatISODate(*args
, **kwargs
):
3989 """FormatISODate(self) -> String"""
3990 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
3992 def FormatISOTime(*args
, **kwargs
):
3993 """FormatISOTime(self) -> String"""
3994 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
3998 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
3999 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
4001 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
4004 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4006 return "INVALID DateTime"
4008 Day
= property(GetDay
,SetDay
,doc
="See `GetDay` and `SetDay`")
4009 DayOfYear
= property(GetDayOfYear
,doc
="See `GetDayOfYear`")
4010 Hour
= property(GetHour
,SetHour
,doc
="See `GetHour` and `SetHour`")
4011 JDN
= property(GetJDN
,SetJDN
,doc
="See `GetJDN` and `SetJDN`")
4012 JulianDayNumber
= property(GetJulianDayNumber
,doc
="See `GetJulianDayNumber`")
4013 LastMonthDay
= property(GetLastMonthDay
,doc
="See `GetLastMonthDay`")
4014 LastWeekDay
= property(GetLastWeekDay
,doc
="See `GetLastWeekDay`")
4015 MJD
= property(GetMJD
,doc
="See `GetMJD`")
4016 Millisecond
= property(GetMillisecond
,SetMillisecond
,doc
="See `GetMillisecond` and `SetMillisecond`")
4017 Minute
= property(GetMinute
,SetMinute
,doc
="See `GetMinute` and `SetMinute`")
4018 ModifiedJulianDayNumber
= property(GetModifiedJulianDayNumber
,doc
="See `GetModifiedJulianDayNumber`")
4019 Month
= property(GetMonth
,SetMonth
,doc
="See `GetMonth` and `SetMonth`")
4020 NextWeekDay
= property(GetNextWeekDay
,doc
="See `GetNextWeekDay`")
4021 PrevWeekDay
= property(GetPrevWeekDay
,doc
="See `GetPrevWeekDay`")
4022 RataDie
= property(GetRataDie
,doc
="See `GetRataDie`")
4023 Second
= property(GetSecond
,SetSecond
,doc
="See `GetSecond` and `SetSecond`")
4024 Ticks
= property(GetTicks
,doc
="See `GetTicks`")
4025 Week
= property(GetWeek
,doc
="See `GetWeek`")
4026 WeekDay
= property(GetWeekDay
,doc
="See `GetWeekDay`")
4027 WeekDayInSameWeek
= property(GetWeekDayInSameWeek
,doc
="See `GetWeekDayInSameWeek`")
4028 WeekOfMonth
= property(GetWeekOfMonth
,doc
="See `GetWeekOfMonth`")
4029 WeekOfYear
= property(GetWeekOfYear
,doc
="See `GetWeekOfYear`")
4030 Year
= property(GetYear
,SetYear
,doc
="See `GetYear` and `SetYear`")
4031 YearDay
= property(GetYearDay
,doc
="See `GetYearDay`")
4032 _misc_
.DateTime_swigregister(DateTime
)
4033 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
4034 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
4036 def DateTime_SetCountry(*args
, **kwargs
):
4037 """DateTime_SetCountry(int country)"""
4038 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
4040 def DateTime_GetCountry(*args
):
4041 """DateTime_GetCountry() -> int"""
4042 return _misc_
.DateTime_GetCountry(*args
)
4044 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
4045 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
4046 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
4048 def DateTime_GetCurrentYear(*args
, **kwargs
):
4049 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
4050 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
4052 def DateTime_ConvertYearToBC(*args
, **kwargs
):
4053 """DateTime_ConvertYearToBC(int year) -> int"""
4054 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
4056 def DateTime_GetCurrentMonth(*args
, **kwargs
):
4057 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
4058 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
4060 def DateTime_IsLeapYear(*args
, **kwargs
):
4061 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
4062 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
4064 def DateTime_GetCentury(*args
, **kwargs
):
4065 """DateTime_GetCentury(int year=Inv_Year) -> int"""
4066 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
4068 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
4069 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
4070 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
4072 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
4073 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
4074 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
4076 def DateTime_GetMonthName(*args
, **kwargs
):
4077 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
4078 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
4080 def DateTime_GetWeekDayName(*args
, **kwargs
):
4081 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
4082 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
4084 def DateTime_GetAmPmStrings(*args
):
4086 GetAmPmStrings() -> (am, pm)
4088 Get the AM and PM strings in the current locale (may be empty)
4090 return _misc_
.DateTime_GetAmPmStrings(*args
)
4092 def DateTime_IsDSTApplicable(*args
, **kwargs
):
4093 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
4094 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
4096 def DateTime_GetBeginDST(*args
, **kwargs
):
4097 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4098 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
4100 def DateTime_GetEndDST(*args
, **kwargs
):
4101 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4102 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
4104 def DateTime_Now(*args
):
4105 """DateTime_Now() -> DateTime"""
4106 return _misc_
.DateTime_Now(*args
)
4108 def DateTime_UNow(*args
):
4109 """DateTime_UNow() -> DateTime"""
4110 return _misc_
.DateTime_UNow(*args
)
4112 def DateTime_Today(*args
):
4113 """DateTime_Today() -> DateTime"""
4114 return _misc_
.DateTime_Today(*args
)
4116 def DateTimeFromTimeT(*args
, **kwargs
):
4117 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4118 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
4121 def DateTimeFromJDN(*args
, **kwargs
):
4122 """DateTimeFromJDN(double jdn) -> DateTime"""
4123 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
4126 def DateTimeFromHMS(*args
, **kwargs
):
4127 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4128 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
4131 def DateTimeFromDMY(*args
, **kwargs
):
4133 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4134 int minute=0, int second=0, int millisec=0) -> DateTime
4136 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
4139 def DateTimeFromDateTime(*args
, **kwargs
):
4140 """DateTimeFromDateTime(DateTime date) -> DateTime"""
4141 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
4144 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
4145 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4146 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
4148 class TimeSpan(object):
4149 """Proxy of C++ TimeSpan class"""
4150 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4151 __repr__
= _swig_repr
4152 def Milliseconds(*args
, **kwargs
):
4153 """Milliseconds(long ms) -> TimeSpan"""
4154 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4156 Milliseconds
= staticmethod(Milliseconds
)
4157 def Millisecond(*args
, **kwargs
):
4158 """Millisecond() -> TimeSpan"""
4159 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
4161 Millisecond
= staticmethod(Millisecond
)
4162 def Seconds(*args
, **kwargs
):
4163 """Seconds(long sec) -> TimeSpan"""
4164 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4166 Seconds
= staticmethod(Seconds
)
4167 def Second(*args
, **kwargs
):
4168 """Second() -> TimeSpan"""
4169 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4171 Second
= staticmethod(Second
)
4172 def Minutes(*args
, **kwargs
):
4173 """Minutes(long min) -> TimeSpan"""
4174 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4176 Minutes
= staticmethod(Minutes
)
4177 def Minute(*args
, **kwargs
):
4178 """Minute() -> TimeSpan"""
4179 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4181 Minute
= staticmethod(Minute
)
4182 def Hours(*args
, **kwargs
):
4183 """Hours(long hours) -> TimeSpan"""
4184 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4186 Hours
= staticmethod(Hours
)
4187 def Hour(*args
, **kwargs
):
4188 """Hour() -> TimeSpan"""
4189 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4191 Hour
= staticmethod(Hour
)
4192 def Days(*args
, **kwargs
):
4193 """Days(long days) -> TimeSpan"""
4194 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4196 Days
= staticmethod(Days
)
4197 def Day(*args
, **kwargs
):
4198 """Day() -> TimeSpan"""
4199 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4201 Day
= staticmethod(Day
)
4202 def Weeks(*args
, **kwargs
):
4203 """Weeks(long days) -> TimeSpan"""
4204 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4206 Weeks
= staticmethod(Weeks
)
4207 def Week(*args
, **kwargs
):
4208 """Week() -> TimeSpan"""
4209 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4211 Week
= staticmethod(Week
)
4212 def __init__(self
, *args
, **kwargs
):
4213 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4214 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
4215 __swig_destroy__
= _misc_
.delete_TimeSpan
4216 __del__
= lambda self
: None;
4217 def Add(*args
, **kwargs
):
4218 """Add(self, TimeSpan diff) -> TimeSpan"""
4219 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
4221 def Subtract(*args
, **kwargs
):
4222 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4223 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4225 def Multiply(*args
, **kwargs
):
4226 """Multiply(self, int n) -> TimeSpan"""
4227 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4229 def Neg(*args
, **kwargs
):
4230 """Neg(self) -> TimeSpan"""
4231 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4233 def Abs(*args
, **kwargs
):
4234 """Abs(self) -> TimeSpan"""
4235 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4237 def __iadd__(*args
, **kwargs
):
4238 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4239 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4241 def __isub__(*args
, **kwargs
):
4242 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4243 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4245 def __imul__(*args
, **kwargs
):
4246 """__imul__(self, int n) -> TimeSpan"""
4247 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4249 def __neg__(*args
, **kwargs
):
4250 """__neg__(self) -> TimeSpan"""
4251 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4253 def __add__(*args
, **kwargs
):
4254 """__add__(self, TimeSpan other) -> TimeSpan"""
4255 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4257 def __sub__(*args
, **kwargs
):
4258 """__sub__(self, TimeSpan other) -> TimeSpan"""
4259 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4261 def __mul__(*args
, **kwargs
):
4262 """__mul__(self, int n) -> TimeSpan"""
4263 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4265 def __rmul__(*args
, **kwargs
):
4266 """__rmul__(self, int n) -> TimeSpan"""
4267 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4269 def __lt__(*args
, **kwargs
):
4270 """__lt__(self, TimeSpan other) -> bool"""
4271 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4273 def __le__(*args
, **kwargs
):
4274 """__le__(self, TimeSpan other) -> bool"""
4275 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4277 def __gt__(*args
, **kwargs
):
4278 """__gt__(self, TimeSpan other) -> bool"""
4279 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4281 def __ge__(*args
, **kwargs
):
4282 """__ge__(self, TimeSpan other) -> bool"""
4283 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4285 def __eq__(*args
, **kwargs
):
4286 """__eq__(self, TimeSpan other) -> bool"""
4287 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4289 def __ne__(*args
, **kwargs
):
4290 """__ne__(self, TimeSpan other) -> bool"""
4291 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4293 def IsNull(*args
, **kwargs
):
4294 """IsNull(self) -> bool"""
4295 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4297 def IsPositive(*args
, **kwargs
):
4298 """IsPositive(self) -> bool"""
4299 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4301 def IsNegative(*args
, **kwargs
):
4302 """IsNegative(self) -> bool"""
4303 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4305 def IsEqualTo(*args
, **kwargs
):
4306 """IsEqualTo(self, TimeSpan ts) -> bool"""
4307 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4309 def IsLongerThan(*args
, **kwargs
):
4310 """IsLongerThan(self, TimeSpan ts) -> bool"""
4311 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4313 def IsShorterThan(*args
, **kwargs
):
4314 """IsShorterThan(self, TimeSpan t) -> bool"""
4315 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4317 def GetWeeks(*args
, **kwargs
):
4318 """GetWeeks(self) -> int"""
4319 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4321 def GetDays(*args
, **kwargs
):
4322 """GetDays(self) -> int"""
4323 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4325 def GetHours(*args
, **kwargs
):
4326 """GetHours(self) -> int"""
4327 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4329 def GetMinutes(*args
, **kwargs
):
4330 """GetMinutes(self) -> int"""
4331 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4333 def GetSeconds(*args
, **kwargs
):
4334 """GetSeconds(self) -> wxLongLong"""
4335 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4337 def GetMilliseconds(*args
, **kwargs
):
4338 """GetMilliseconds(self) -> wxLongLong"""
4339 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4341 def Format(*args
, **kwargs
):
4342 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4343 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4346 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4347 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4349 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4351 Days
= property(GetDays
,doc
="See `GetDays`")
4352 Hours
= property(GetHours
,doc
="See `GetHours`")
4353 Milliseconds
= property(GetMilliseconds
,doc
="See `GetMilliseconds`")
4354 Minutes
= property(GetMinutes
,doc
="See `GetMinutes`")
4355 Seconds
= property(GetSeconds
,doc
="See `GetSeconds`")
4356 Weeks
= property(GetWeeks
,doc
="See `GetWeeks`")
4357 _misc_
.TimeSpan_swigregister(TimeSpan
)
4359 def TimeSpan_Milliseconds(*args
, **kwargs
):
4360 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4361 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4363 def TimeSpan_Millisecond(*args
):
4364 """TimeSpan_Millisecond() -> TimeSpan"""
4365 return _misc_
.TimeSpan_Millisecond(*args
)
4367 def TimeSpan_Seconds(*args
, **kwargs
):
4368 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4369 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4371 def TimeSpan_Second(*args
):
4372 """TimeSpan_Second() -> TimeSpan"""
4373 return _misc_
.TimeSpan_Second(*args
)
4375 def TimeSpan_Minutes(*args
, **kwargs
):
4376 """TimeSpan_Minutes(long min) -> TimeSpan"""
4377 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4379 def TimeSpan_Minute(*args
):
4380 """TimeSpan_Minute() -> TimeSpan"""
4381 return _misc_
.TimeSpan_Minute(*args
)
4383 def TimeSpan_Hours(*args
, **kwargs
):
4384 """TimeSpan_Hours(long hours) -> TimeSpan"""
4385 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4387 def TimeSpan_Hour(*args
):
4388 """TimeSpan_Hour() -> TimeSpan"""
4389 return _misc_
.TimeSpan_Hour(*args
)
4391 def TimeSpan_Days(*args
, **kwargs
):
4392 """TimeSpan_Days(long days) -> TimeSpan"""
4393 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4395 def TimeSpan_Day(*args
):
4396 """TimeSpan_Day() -> TimeSpan"""
4397 return _misc_
.TimeSpan_Day(*args
)
4399 def TimeSpan_Weeks(*args
, **kwargs
):
4400 """TimeSpan_Weeks(long days) -> TimeSpan"""
4401 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4403 def TimeSpan_Week(*args
):
4404 """TimeSpan_Week() -> TimeSpan"""
4405 return _misc_
.TimeSpan_Week(*args
)
4407 class DateSpan(object):
4408 """Proxy of C++ DateSpan class"""
4409 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4410 __repr__
= _swig_repr
4411 def __init__(self
, *args
, **kwargs
):
4412 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4413 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4414 __swig_destroy__
= _misc_
.delete_DateSpan
4415 __del__
= lambda self
: None;
4416 def Days(*args
, **kwargs
):
4417 """Days(int days) -> DateSpan"""
4418 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4420 Days
= staticmethod(Days
)
4421 def Day(*args
, **kwargs
):
4422 """Day() -> DateSpan"""
4423 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4425 Day
= staticmethod(Day
)
4426 def Weeks(*args
, **kwargs
):
4427 """Weeks(int weeks) -> DateSpan"""
4428 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4430 Weeks
= staticmethod(Weeks
)
4431 def Week(*args
, **kwargs
):
4432 """Week() -> DateSpan"""
4433 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4435 Week
= staticmethod(Week
)
4436 def Months(*args
, **kwargs
):
4437 """Months(int mon) -> DateSpan"""
4438 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4440 Months
= staticmethod(Months
)
4441 def Month(*args
, **kwargs
):
4442 """Month() -> DateSpan"""
4443 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4445 Month
= staticmethod(Month
)
4446 def Years(*args
, **kwargs
):
4447 """Years(int years) -> DateSpan"""
4448 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4450 Years
= staticmethod(Years
)
4451 def Year(*args
, **kwargs
):
4452 """Year() -> DateSpan"""
4453 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4455 Year
= staticmethod(Year
)
4456 def SetYears(*args
, **kwargs
):
4457 """SetYears(self, int n) -> DateSpan"""
4458 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4460 def SetMonths(*args
, **kwargs
):
4461 """SetMonths(self, int n) -> DateSpan"""
4462 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4464 def SetWeeks(*args
, **kwargs
):
4465 """SetWeeks(self, int n) -> DateSpan"""
4466 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4468 def SetDays(*args
, **kwargs
):
4469 """SetDays(self, int n) -> DateSpan"""
4470 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4472 def GetYears(*args
, **kwargs
):
4473 """GetYears(self) -> int"""
4474 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4476 def GetMonths(*args
, **kwargs
):
4477 """GetMonths(self) -> int"""
4478 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4480 def GetWeeks(*args
, **kwargs
):
4481 """GetWeeks(self) -> int"""
4482 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4484 def GetDays(*args
, **kwargs
):
4485 """GetDays(self) -> int"""
4486 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4488 def GetTotalDays(*args
, **kwargs
):
4489 """GetTotalDays(self) -> int"""
4490 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4492 def Add(*args
, **kwargs
):
4493 """Add(self, DateSpan other) -> DateSpan"""
4494 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4496 def Subtract(*args
, **kwargs
):
4497 """Subtract(self, DateSpan other) -> DateSpan"""
4498 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4500 def Neg(*args
, **kwargs
):
4501 """Neg(self) -> DateSpan"""
4502 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4504 def Multiply(*args
, **kwargs
):
4505 """Multiply(self, int factor) -> DateSpan"""
4506 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4508 def __iadd__(*args
, **kwargs
):
4509 """__iadd__(self, DateSpan other) -> DateSpan"""
4510 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4512 def __isub__(*args
, **kwargs
):
4513 """__isub__(self, DateSpan other) -> DateSpan"""
4514 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4516 def __neg__(*args
, **kwargs
):
4517 """__neg__(self) -> DateSpan"""
4518 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4520 def __imul__(*args
, **kwargs
):
4521 """__imul__(self, int factor) -> DateSpan"""
4522 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4524 def __add__(*args
, **kwargs
):
4525 """__add__(self, DateSpan other) -> DateSpan"""
4526 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4528 def __sub__(*args
, **kwargs
):
4529 """__sub__(self, DateSpan other) -> DateSpan"""
4530 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4532 def __mul__(*args
, **kwargs
):
4533 """__mul__(self, int n) -> DateSpan"""
4534 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4536 def __rmul__(*args
, **kwargs
):
4537 """__rmul__(self, int n) -> DateSpan"""
4538 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4540 def __eq__(*args
, **kwargs
):
4541 """__eq__(self, DateSpan other) -> bool"""
4542 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4544 def __ne__(*args
, **kwargs
):
4545 """__ne__(self, DateSpan other) -> bool"""
4546 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4548 Days
= property(GetDays
,SetDays
,doc
="See `GetDays` and `SetDays`")
4549 Months
= property(GetMonths
,SetMonths
,doc
="See `GetMonths` and `SetMonths`")
4550 TotalDays
= property(GetTotalDays
,doc
="See `GetTotalDays`")
4551 Weeks
= property(GetWeeks
,SetWeeks
,doc
="See `GetWeeks` and `SetWeeks`")
4552 Years
= property(GetYears
,SetYears
,doc
="See `GetYears` and `SetYears`")
4553 _misc_
.DateSpan_swigregister(DateSpan
)
4555 def DateSpan_Days(*args
, **kwargs
):
4556 """DateSpan_Days(int days) -> DateSpan"""
4557 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4559 def DateSpan_Day(*args
):
4560 """DateSpan_Day() -> DateSpan"""
4561 return _misc_
.DateSpan_Day(*args
)
4563 def DateSpan_Weeks(*args
, **kwargs
):
4564 """DateSpan_Weeks(int weeks) -> DateSpan"""
4565 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4567 def DateSpan_Week(*args
):
4568 """DateSpan_Week() -> DateSpan"""
4569 return _misc_
.DateSpan_Week(*args
)
4571 def DateSpan_Months(*args
, **kwargs
):
4572 """DateSpan_Months(int mon) -> DateSpan"""
4573 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4575 def DateSpan_Month(*args
):
4576 """DateSpan_Month() -> DateSpan"""
4577 return _misc_
.DateSpan_Month(*args
)
4579 def DateSpan_Years(*args
, **kwargs
):
4580 """DateSpan_Years(int years) -> DateSpan"""
4581 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4583 def DateSpan_Year(*args
):
4584 """DateSpan_Year() -> DateSpan"""
4585 return _misc_
.DateSpan_Year(*args
)
4588 def GetLocalTime(*args
):
4589 """GetLocalTime() -> long"""
4590 return _misc_
.GetLocalTime(*args
)
4592 def GetUTCTime(*args
):
4593 """GetUTCTime() -> long"""
4594 return _misc_
.GetUTCTime(*args
)
4596 def GetCurrentTime(*args
):
4597 """GetCurrentTime() -> long"""
4598 return _misc_
.GetCurrentTime(*args
)
4600 def GetLocalTimeMillis(*args
):
4601 """GetLocalTimeMillis() -> wxLongLong"""
4602 return _misc_
.GetLocalTimeMillis(*args
)
4603 #---------------------------------------------------------------------------
4605 DF_INVALID
= _misc_
.DF_INVALID
4606 DF_TEXT
= _misc_
.DF_TEXT
4607 DF_BITMAP
= _misc_
.DF_BITMAP
4608 DF_METAFILE
= _misc_
.DF_METAFILE
4609 DF_SYLK
= _misc_
.DF_SYLK
4610 DF_DIF
= _misc_
.DF_DIF
4611 DF_TIFF
= _misc_
.DF_TIFF
4612 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4613 DF_DIB
= _misc_
.DF_DIB
4614 DF_PALETTE
= _misc_
.DF_PALETTE
4615 DF_PENDATA
= _misc_
.DF_PENDATA
4616 DF_RIFF
= _misc_
.DF_RIFF
4617 DF_WAVE
= _misc_
.DF_WAVE
4618 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4619 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4620 DF_FILENAME
= _misc_
.DF_FILENAME
4621 DF_LOCALE
= _misc_
.DF_LOCALE
4622 DF_PRIVATE
= _misc_
.DF_PRIVATE
4623 DF_HTML
= _misc_
.DF_HTML
4624 DF_MAX
= _misc_
.DF_MAX
4625 class DataFormat(object):
4627 A wx.DataFormat is an encapsulation of a platform-specific format
4628 handle which is used by the system for the clipboard and drag and drop
4629 operations. The applications are usually only interested in, for
4630 example, pasting data from the clipboard only if the data is in a
4631 format the program understands. A data format is is used to uniquely
4632 identify this format.
4634 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4635 __repr__
= _swig_repr
4636 def __init__(self
, *args
, **kwargs
):
4638 __init__(self, int type) -> DataFormat
4640 Constructs a data format object for one of the standard data formats
4641 or an empty data object (use SetType or SetId later in this case)
4643 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4644 __swig_destroy__
= _misc_
.delete_DataFormat
4645 __del__
= lambda self
: None;
4648 __eq__(self, int format) -> bool
4649 __eq__(self, DataFormat format) -> bool
4651 return _misc_
.DataFormat___eq__(*args
)
4655 __ne__(self, int format) -> bool
4656 __ne__(self, DataFormat format) -> bool
4658 return _misc_
.DataFormat___ne__(*args
)
4660 def SetType(*args
, **kwargs
):
4662 SetType(self, int format)
4664 Sets the format to the given value, which should be one of wx.DF_XXX
4667 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4669 def GetType(*args
, **kwargs
):
4671 GetType(self) -> int
4673 Returns the platform-specific number identifying the format.
4675 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4677 def GetId(*args
, **kwargs
):
4679 GetId(self) -> String
4681 Returns the name of a custom format (this function will fail for a
4684 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4686 def SetId(*args
, **kwargs
):
4688 SetId(self, String format)
4690 Sets the format to be the custom format identified by the given name.
4692 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4694 Id
= property(GetId
,SetId
,doc
="See `GetId` and `SetId`")
4695 Type
= property(GetType
,SetType
,doc
="See `GetType` and `SetType`")
4696 _misc_
.DataFormat_swigregister(DataFormat
)
4697 DefaultDateTime
= cvar
.DefaultDateTime
4699 def CustomDataFormat(*args
, **kwargs
):
4701 CustomDataFormat(String format) -> DataFormat
4703 Constructs a data format object for a custom format identified by its
4706 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4709 class DataObject(object):
4711 A wx.DataObject represents data that can be copied to or from the
4712 clipboard, or dragged and dropped. The important thing about
4713 wx.DataObject is that this is a 'smart' piece of data unlike usual
4714 'dumb' data containers such as memory buffers or files. Being 'smart'
4715 here means that the data object itself should know what data formats
4716 it supports and how to render itself in each of supported formats.
4718 **NOTE**: This class is an abstract base class and can not be used
4719 directly from Python. If you need a custom type of data object then
4720 you should instead derive from `wx.PyDataObjectSimple` or use
4721 `wx.CustomDataObject`.
4724 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4725 def __init__(self
): raise AttributeError, "No constructor defined"
4726 __repr__
= _swig_repr
4727 Get
= _misc_
.DataObject_Get
4728 Set
= _misc_
.DataObject_Set
4729 Both
= _misc_
.DataObject_Both
4730 __swig_destroy__
= _misc_
.delete_DataObject
4731 __del__
= lambda self
: None;
4732 def GetPreferredFormat(*args
, **kwargs
):
4734 GetPreferredFormat(self, int dir=Get) -> DataFormat
4736 Returns the preferred format for either rendering the data (if dir is
4737 Get, its default value) or for setting it. Usually this will be the
4738 native format of the wx.DataObject.
4740 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4742 def GetFormatCount(*args
, **kwargs
):
4744 GetFormatCount(self, int dir=Get) -> size_t
4746 Returns the number of available formats for rendering or setting the
4749 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4751 def IsSupported(*args
, **kwargs
):
4753 IsSupported(self, DataFormat format, int dir=Get) -> bool
4755 Returns True if this format is supported.
4757 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4759 def GetDataSize(*args
, **kwargs
):
4761 GetDataSize(self, DataFormat format) -> size_t
4763 Get the (total) size of data for the given format
4765 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
4767 def GetAllFormats(*args
, **kwargs
):
4769 GetAllFormats(self, int dir=Get) -> [formats]
4771 Returns a list of all the wx.DataFormats that this dataobject supports
4772 in the given direction.
4774 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
4776 def GetDataHere(*args
, **kwargs
):
4778 GetDataHere(self, DataFormat format) -> String
4780 Get the data bytes in the specified format, returns None on failure.
4782 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
4784 def SetData(*args
, **kwargs
):
4786 SetData(self, DataFormat format, String data) -> bool
4788 Set the data in the specified format from the bytes in the the data string.
4791 return _misc_
.DataObject_SetData(*args
, **kwargs
)
4793 AllFormats
= property(GetAllFormats
,doc
="See `GetAllFormats`")
4794 DataHere
= property(GetDataHere
,doc
="See `GetDataHere`")
4795 DataSize
= property(GetDataSize
,doc
="See `GetDataSize`")
4796 FormatCount
= property(GetFormatCount
,doc
="See `GetFormatCount`")
4797 PreferredFormat
= property(GetPreferredFormat
,doc
="See `GetPreferredFormat`")
4798 _misc_
.DataObject_swigregister(DataObject
)
4799 FormatInvalid
= cvar
.FormatInvalid
4801 class DataObjectSimple(DataObject
):
4803 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4804 format. This is the simplest possible `wx.DataObject` implementation.
4806 This is still an "abstract base class" meaning that you can't use it
4807 directly. You either need to use one of the predefined base classes,
4808 or derive your own class from `wx.PyDataObjectSimple`.
4811 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4812 __repr__
= _swig_repr
4813 def __init__(self
, *args
, **kwargs
):
4815 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4817 Constructor accepts the supported format (none by default) which may
4818 also be set later with `SetFormat`.
4820 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
4821 def GetFormat(*args
, **kwargs
):
4823 GetFormat(self) -> DataFormat
4825 Returns the (one and only one) format supported by this object. It is
4826 assumed that the format is supported in both directions.
4828 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4830 def SetFormat(*args
, **kwargs
):
4832 SetFormat(self, DataFormat format)
4834 Sets the supported format.
4836 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4838 def GetDataSize(*args
, **kwargs
):
4840 GetDataSize(self) -> size_t
4842 Get the size of our data.
4844 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
4846 def GetDataHere(*args
, **kwargs
):
4848 GetDataHere(self) -> String
4850 Returns the data bytes from the data object as a string, returns None
4851 on failure. Must be implemented in the derived class if the object
4852 supports rendering its data.
4854 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
4856 def SetData(*args
, **kwargs
):
4858 SetData(self, String data) -> bool
4860 Copy the data value to the data object. Must be implemented in the
4861 derived class if the object supports setting its data.
4864 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
4866 Format
= property(GetFormat
,SetFormat
,doc
="See `GetFormat` and `SetFormat`")
4867 _misc_
.DataObjectSimple_swigregister(DataObjectSimple
)
4869 class PyDataObjectSimple(DataObjectSimple
):
4871 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4872 Python-aware and knows how to reflect calls to its C++ virtual methods
4873 to methods in the Python derived class. You should derive from this
4874 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4875 need to create your own simple single-format type of `wx.DataObject`.
4878 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4879 __repr__
= _swig_repr
4880 def __init__(self
, *args
, **kwargs
):
4882 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4884 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4885 Python-aware and knows how to reflect calls to its C++ virtual methods
4886 to methods in the Python derived class. You should derive from this
4887 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4888 need to create your own simple single-format type of `wx.DataObject`.
4891 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
4892 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4894 def _setCallbackInfo(*args
, **kwargs
):
4895 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4896 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4898 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimple
)
4900 class DataObjectComposite(DataObject
):
4902 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4903 which may be sued to support multiple formats. It contains several
4904 'wx.DataObjectSimple` objects and supports any format supported by at
4905 least one of them. Only one of these data objects is *preferred* (the
4906 first one if not explicitly changed by using the second parameter of
4907 `Add`) and its format determines the preferred format of the composite
4908 data object as well.
4910 See `wx.DataObject` documentation for the reasons why you might prefer
4911 to use wx.DataObject directly instead of wx.DataObjectComposite for
4915 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4916 __repr__
= _swig_repr
4917 def __init__(self
, *args
, **kwargs
):
4919 __init__(self) -> DataObjectComposite
4921 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4922 which may be sued to support multiple formats. It contains several
4923 'wx.DataObjectSimple` objects and supports any format supported by at
4924 least one of them. Only one of these data objects is *preferred* (the
4925 first one if not explicitly changed by using the second parameter of
4926 `Add`) and its format determines the preferred format of the composite
4927 data object as well.
4929 See `wx.DataObject` documentation for the reasons why you might prefer
4930 to use wx.DataObject directly instead of wx.DataObjectComposite for
4934 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
4935 def Add(*args
, **kwargs
):
4937 Add(self, DataObjectSimple dataObject, bool preferred=False)
4939 Adds the dataObject to the list of supported objects and it becomes
4940 the preferred object if preferred is True.
4942 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
4944 def GetReceivedFormat(*args
, **kwargs
):
4946 GetReceivedFormat(self) -> DataFormat
4948 Report the format passed to the `SetData` method. This should be the
4949 format of the data object within the composite that recieved data from
4950 the clipboard or the DnD operation. You can use this method to find
4951 out what kind of data object was recieved.
4953 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
4955 ReceivedFormat
= property(GetReceivedFormat
,doc
="See `GetReceivedFormat`")
4956 _misc_
.DataObjectComposite_swigregister(DataObjectComposite
)
4958 class TextDataObject(DataObjectSimple
):
4960 wx.TextDataObject is a specialization of `wx.DataObject` for text
4961 data. It can be used without change to paste data into the `wx.Clipboard`
4962 or a `wx.DropSource`.
4964 Alternativly, you may wish to derive a new class from the
4965 `wx.PyTextDataObject` class for providing text on-demand in order to
4966 minimize memory consumption when offering data in several formats,
4967 such as plain text and RTF, because by default the text is stored in a
4968 string in this class, but it might as well be generated on demand when
4969 requested. For this, `GetTextLength` and `GetText` will have to be
4972 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4973 __repr__
= _swig_repr
4974 def __init__(self
, *args
, **kwargs
):
4976 __init__(self, String text=EmptyString) -> TextDataObject
4978 Constructor, may be used to initialise the text (otherwise `SetText`
4979 should be used later).
4981 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
4982 def GetTextLength(*args
, **kwargs
):
4984 GetTextLength(self) -> size_t
4986 Returns the data size. By default, returns the size of the text data
4987 set in the constructor or using `SetText`. This can be overridden (via
4988 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4989 recommended to return the text length plus 1 for a trailing zero, but
4990 this is not strictly required.
4992 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
4994 def GetText(*args
, **kwargs
):
4996 GetText(self) -> String
4998 Returns the text associated with the data object.
5000 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
5002 def SetText(*args
, **kwargs
):
5004 SetText(self, String text)
5006 Sets the text associated with the data object. This method is called
5007 when the data object receives the data and, by default, copies the
5008 text into the member variable. If you want to process the text on the
5009 fly you may wish to override this function (via
5010 `wx.PyTextDataObject`.)
5012 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
5014 Text
= property(GetText
,SetText
,doc
="See `GetText` and `SetText`")
5015 TextLength
= property(GetTextLength
,doc
="See `GetTextLength`")
5016 _misc_
.TextDataObject_swigregister(TextDataObject
)
5018 class PyTextDataObject(TextDataObject
):
5020 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5021 Python-aware and knows how to reflect calls to its C++ virtual methods
5022 to methods in the Python derived class. You should derive from this
5023 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5024 want to be able to provide text on demand instead of preloading it
5025 into the data object.
5027 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5028 __repr__
= _swig_repr
5029 def __init__(self
, *args
, **kwargs
):
5031 __init__(self, String text=EmptyString) -> PyTextDataObject
5033 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5034 Python-aware and knows how to reflect calls to its C++ virtual methods
5035 to methods in the Python derived class. You should derive from this
5036 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5037 want to be able to provide text on demand instead of preloading it
5038 into the data object.
5040 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
5041 self
._setCallbackInfo
(self
, PyTextDataObject
)
5043 def _setCallbackInfo(*args
, **kwargs
):
5044 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5045 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
5047 _misc_
.PyTextDataObject_swigregister(PyTextDataObject
)
5049 class BitmapDataObject(DataObjectSimple
):
5051 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
5052 data. It can be used without change to paste data into the `wx.Clipboard`
5053 or a `wx.DropSource`.
5056 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5057 __repr__
= _swig_repr
5058 def __init__(self
, *args
, **kwargs
):
5060 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
5062 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
5065 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
5066 def GetBitmap(*args
, **kwargs
):
5068 GetBitmap(self) -> Bitmap
5070 Returns the bitmap associated with the data object. You may wish to
5071 override this method (by deriving from `wx.PyBitmapDataObject`) when
5072 offering data on-demand, but this is not required by wxWidgets'
5073 internals. Use this method to get data in bitmap form from the
5076 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
5078 def SetBitmap(*args
, **kwargs
):
5080 SetBitmap(self, Bitmap bitmap)
5082 Sets the bitmap associated with the data object. This method is called
5083 when the data object receives data. Usually there will be no reason to
5084 override this function.
5086 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
5088 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
5089 _misc_
.BitmapDataObject_swigregister(BitmapDataObject
)
5091 class PyBitmapDataObject(BitmapDataObject
):
5093 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5094 Python-aware and knows how to reflect calls to its C++ virtual methods
5095 to methods in the Python derived class. To be able to provide bitmap
5096 data on demand derive from this class and overload `GetBitmap`.
5098 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5099 __repr__
= _swig_repr
5100 def __init__(self
, *args
, **kwargs
):
5102 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
5104 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5105 Python-aware and knows how to reflect calls to its C++ virtual methods
5106 to methods in the Python derived class. To be able to provide bitmap
5107 data on demand derive from this class and overload `GetBitmap`.
5109 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
5110 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
5112 def _setCallbackInfo(*args
, **kwargs
):
5113 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5114 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
5116 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObject
)
5118 class FileDataObject(DataObjectSimple
):
5120 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
5121 file names. The program works with it just as if it were a list of
5122 absolute file names, but internally it uses the same format as
5123 Explorer and other compatible programs under Windows or GNOME/KDE
5124 filemanager under Unix which makes it possible to receive files from
5125 them using this class.
5127 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5128 __repr__
= _swig_repr
5129 def __init__(self
, *args
, **kwargs
):
5130 """__init__(self) -> FileDataObject"""
5131 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
5132 def GetFilenames(*args
, **kwargs
):
5134 GetFilenames(self) -> [names]
5136 Returns a list of file names.
5138 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
5140 def AddFile(*args
, **kwargs
):
5142 AddFile(self, String filename)
5144 Adds a file to the list of files represented by this data object.
5146 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5148 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
5149 _misc_
.FileDataObject_swigregister(FileDataObject
)
5151 class CustomDataObject(DataObjectSimple
):
5153 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5154 some application-specific data in arbitrary format. Python strings
5155 are used for getting and setting data, but any picklable object can
5156 easily be transfered via strings. A copy of the data is stored in the
5159 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5160 __repr__
= _swig_repr
5161 def __init__(self
, *args
):
5163 __init__(self, DataFormat format) -> CustomDataObject
5164 __init__(self, String formatName) -> CustomDataObject
5165 __init__(self) -> CustomDataObject
5167 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5168 some application-specific data in arbitrary format. Python strings
5169 are used for getting and setting data, but any picklable object can
5170 easily be transfered via strings. A copy of the data is stored in the
5173 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
5174 def SetData(*args
, **kwargs
):
5176 SetData(self, String data) -> bool
5178 Copy the data value to the data object.
5180 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5183 def GetSize(*args
, **kwargs
):
5185 GetSize(self) -> size_t
5187 Get the size of the data.
5189 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5191 def GetData(*args
, **kwargs
):
5193 GetData(self) -> String
5195 Returns the data bytes from the data object as a string.
5197 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5199 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5200 Size
= property(GetSize
,doc
="See `GetSize`")
5201 _misc_
.CustomDataObject_swigregister(CustomDataObject
)
5203 class URLDataObject(DataObject
):
5205 This data object holds a URL in a format that is compatible with some
5206 browsers such that it is able to be dragged to or from them.
5208 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5209 __repr__
= _swig_repr
5210 def __init__(self
, *args
, **kwargs
):
5212 __init__(self, String url=EmptyString) -> URLDataObject
5214 This data object holds a URL in a format that is compatible with some
5215 browsers such that it is able to be dragged to or from them.
5217 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
5218 def GetURL(*args
, **kwargs
):
5220 GetURL(self) -> String
5222 Returns a string containing the current URL.
5224 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5226 def SetURL(*args
, **kwargs
):
5228 SetURL(self, String url)
5232 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5234 URL
= property(GetURL
,SetURL
,doc
="See `GetURL` and `SetURL`")
5235 _misc_
.URLDataObject_swigregister(URLDataObject
)
5237 class MetafileDataObject(DataObjectSimple
):
5238 """Proxy of C++ MetafileDataObject class"""
5239 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5240 __repr__
= _swig_repr
5241 def __init__(self
, *args
, **kwargs
):
5242 """__init__(self) -> MetafileDataObject"""
5243 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
5244 def SetMetafile(*args
, **kwargs
):
5245 """SetMetafile(self, wxMetafile metafile)"""
5246 return _misc_
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
5248 def GetMetafile(*args
, **kwargs
):
5249 """GetMetafile(self) -> wxMetafile"""
5250 return _misc_
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
5252 _misc_
.MetafileDataObject_swigregister(MetafileDataObject
)
5254 #---------------------------------------------------------------------------
5256 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5257 Drag_AllowMove
= _misc_
.Drag_AllowMove
5258 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5259 DragError
= _misc_
.DragError
5260 DragNone
= _misc_
.DragNone
5261 DragCopy
= _misc_
.DragCopy
5262 DragMove
= _misc_
.DragMove
5263 DragLink
= _misc_
.DragLink
5264 DragCancel
= _misc_
.DragCancel
5266 def IsDragResultOk(*args
, **kwargs
):
5267 """IsDragResultOk(int res) -> bool"""
5268 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5269 class DropSource(object):
5270 """Proxy of C++ DropSource class"""
5271 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5272 __repr__
= _swig_repr
5273 def __init__(self
, *args
, **kwargs
):
5275 __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor,
5276 Cursor none=wxNullCursor) -> DropSource
5278 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
5279 self
._setCallbackInfo
(self
, DropSource
, 0)
5281 def _setCallbackInfo(*args
, **kwargs
):
5282 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5283 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5285 __swig_destroy__
= _misc_
.delete_DropSource
5286 __del__
= lambda self
: None;
5287 def SetData(*args
, **kwargs
):
5288 """SetData(self, DataObject data)"""
5289 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5291 def GetDataObject(*args
, **kwargs
):
5292 """GetDataObject(self) -> DataObject"""
5293 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5295 def SetCursor(*args
, **kwargs
):
5296 """SetCursor(self, int res, Cursor cursor)"""
5297 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5299 def DoDragDrop(*args
, **kwargs
):
5300 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5301 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5303 def GiveFeedback(*args
, **kwargs
):
5304 """GiveFeedback(self, int effect) -> bool"""
5305 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
5307 def base_GiveFeedback(*args
, **kw
):
5308 return DropSource
.GiveFeedback(*args
, **kw
)
5309 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
5310 "Please use DropSource.GiveFeedback instead.")
5312 DataObject
= property(GetDataObject
,SetData
,doc
="See `GetDataObject` and `SetData`")
5313 _misc_
.DropSource_swigregister(DropSource
)
5315 def DROP_ICON(filename
):
5317 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5318 ``filename``. This function is useful with the `wx.DropSource` class
5319 which, depending on platform accepts either a icon or a cursor.
5321 img
= wx
.Image(filename
)
5322 if wx
.Platform
== '__WXGTK__':
5323 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
5325 return wx
.CursorFromImage(img
)
5327 class DropTarget(object):
5328 """Proxy of C++ DropTarget class"""
5329 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5330 __repr__
= _swig_repr
5331 def __init__(self
, *args
, **kwargs
):
5332 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5333 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5334 self
._setCallbackInfo
(self
, DropTarget
)
5336 def _setCallbackInfo(*args
, **kwargs
):
5337 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5338 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5340 __swig_destroy__
= _misc_
.delete_DropTarget
5341 __del__
= lambda self
: None;
5342 def GetDataObject(*args
, **kwargs
):
5343 """GetDataObject(self) -> DataObject"""
5344 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5346 def SetDataObject(*args
, **kwargs
):
5347 """SetDataObject(self, DataObject dataObject)"""
5348 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5350 def OnEnter(*args
, **kwargs
):
5351 """OnEnter(self, int x, int y, int def) -> int"""
5352 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5354 def OnDragOver(*args
, **kwargs
):
5355 """OnDragOver(self, int x, int y, int def) -> int"""
5356 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5358 def OnLeave(*args
, **kwargs
):
5360 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5362 def OnDrop(*args
, **kwargs
):
5363 """OnDrop(self, int x, int y) -> bool"""
5364 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5366 def base_OnEnter(*args
, **kw
):
5367 return DropTarget
.OnEnter(*args
, **kw
)
5368 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5369 "Please use DropTarget.OnEnter instead.")
5371 def base_OnDragOver(*args
, **kw
):
5372 return DropTarget
.OnDragOver(*args
, **kw
)
5373 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5374 "Please use DropTarget.OnDragOver instead.")
5376 def base_OnLeave(*args
, **kw
):
5377 return DropTarget
.OnLeave(*args
, **kw
)
5378 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5379 "Please use DropTarget.OnLeave instead.")
5381 def base_OnDrop(*args
, **kw
):
5382 return DropTarget
.OnDrop(*args
, **kw
)
5383 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5384 "Please use DropTarget.OnDrop instead.")
5386 def GetData(*args
, **kwargs
):
5387 """GetData(self) -> bool"""
5388 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5390 def SetDefaultAction(*args
, **kwargs
):
5391 """SetDefaultAction(self, int action)"""
5392 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5394 def GetDefaultAction(*args
, **kwargs
):
5395 """GetDefaultAction(self) -> int"""
5396 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5398 Data
= property(GetData
,doc
="See `GetData`")
5399 DataObject
= property(GetDataObject
,SetDataObject
,doc
="See `GetDataObject` and `SetDataObject`")
5400 DefaultAction
= property(GetDefaultAction
,SetDefaultAction
,doc
="See `GetDefaultAction` and `SetDefaultAction`")
5401 _misc_
.DropTarget_swigregister(DropTarget
)
5403 PyDropTarget
= DropTarget
5404 class TextDropTarget(DropTarget
):
5405 """Proxy of C++ TextDropTarget class"""
5406 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5407 __repr__
= _swig_repr
5408 def __init__(self
, *args
, **kwargs
):
5409 """__init__(self) -> TextDropTarget"""
5410 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5411 self
._setCallbackInfo
(self
, TextDropTarget
)
5413 def _setCallbackInfo(*args
, **kwargs
):
5414 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5415 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5417 def OnDropText(*args
, **kwargs
):
5418 """OnDropText(self, int x, int y, String text) -> bool"""
5419 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5421 def OnEnter(*args
, **kwargs
):
5422 """OnEnter(self, int x, int y, int def) -> int"""
5423 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5425 def OnDragOver(*args
, **kwargs
):
5426 """OnDragOver(self, int x, int y, int def) -> int"""
5427 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5429 def OnLeave(*args
, **kwargs
):
5431 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5433 def OnDrop(*args
, **kwargs
):
5434 """OnDrop(self, int x, int y) -> bool"""
5435 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5437 def OnData(*args
, **kwargs
):
5438 """OnData(self, int x, int y, int def) -> int"""
5439 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5441 def base_OnDropText(*args
, **kw
):
5442 return TextDropTarget
.OnDropText(*args
, **kw
)
5443 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5444 "Please use TextDropTarget.OnDropText instead.")
5446 def base_OnEnter(*args
, **kw
):
5447 return TextDropTarget
.OnEnter(*args
, **kw
)
5448 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5449 "Please use TextDropTarget.OnEnter instead.")
5451 def base_OnDragOver(*args
, **kw
):
5452 return TextDropTarget
.OnDragOver(*args
, **kw
)
5453 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5454 "Please use TextDropTarget.OnDragOver instead.")
5456 def base_OnLeave(*args
, **kw
):
5457 return TextDropTarget
.OnLeave(*args
, **kw
)
5458 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5459 "Please use TextDropTarget.OnLeave instead.")
5461 def base_OnDrop(*args
, **kw
):
5462 return TextDropTarget
.OnDrop(*args
, **kw
)
5463 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5464 "Please use TextDropTarget.OnDrop instead.")
5466 def base_OnData(*args
, **kw
):
5467 return TextDropTarget
.OnData(*args
, **kw
)
5468 base_OnData
= wx
._deprecated
(base_OnData
,
5469 "Please use TextDropTarget.OnData instead.")
5471 _misc_
.TextDropTarget_swigregister(TextDropTarget
)
5473 class FileDropTarget(DropTarget
):
5474 """Proxy of C++ FileDropTarget class"""
5475 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5476 __repr__
= _swig_repr
5477 def __init__(self
, *args
, **kwargs
):
5478 """__init__(self) -> FileDropTarget"""
5479 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5480 self
._setCallbackInfo
(self
, FileDropTarget
)
5482 def _setCallbackInfo(*args
, **kwargs
):
5483 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5484 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5486 def OnDropFiles(*args
, **kwargs
):
5487 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5488 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5490 def OnEnter(*args
, **kwargs
):
5491 """OnEnter(self, int x, int y, int def) -> int"""
5492 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5494 def OnDragOver(*args
, **kwargs
):
5495 """OnDragOver(self, int x, int y, int def) -> int"""
5496 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5498 def OnLeave(*args
, **kwargs
):
5500 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5502 def OnDrop(*args
, **kwargs
):
5503 """OnDrop(self, int x, int y) -> bool"""
5504 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5506 def OnData(*args
, **kwargs
):
5507 """OnData(self, int x, int y, int def) -> int"""
5508 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5510 def base_OnDropFiles(*args
, **kw
):
5511 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5512 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5513 "Please use FileDropTarget.OnDropFiles instead.")
5515 def base_OnEnter(*args
, **kw
):
5516 return FileDropTarget
.OnEnter(*args
, **kw
)
5517 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5518 "Please use FileDropTarget.OnEnter instead.")
5520 def base_OnDragOver(*args
, **kw
):
5521 return FileDropTarget
.OnDragOver(*args
, **kw
)
5522 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5523 "Please use FileDropTarget.OnDragOver instead.")
5525 def base_OnLeave(*args
, **kw
):
5526 return FileDropTarget
.OnLeave(*args
, **kw
)
5527 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5528 "Please use FileDropTarget.OnLeave instead.")
5530 def base_OnDrop(*args
, **kw
):
5531 return FileDropTarget
.OnDrop(*args
, **kw
)
5532 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5533 "Please use FileDropTarget.OnDrop instead.")
5535 def base_OnData(*args
, **kw
):
5536 return FileDropTarget
.OnData(*args
, **kw
)
5537 base_OnData
= wx
._deprecated
(base_OnData
,
5538 "Please use FileDropTarget.OnData instead.")
5540 _misc_
.FileDropTarget_swigregister(FileDropTarget
)
5542 #---------------------------------------------------------------------------
5544 class Clipboard(_core
.Object
):
5546 wx.Clipboard represents the system clipboard and provides methods to
5547 copy data to it or paste data from it. Normally, you should only use
5548 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5551 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5552 clipboard. If this operation returns True, you now own the
5553 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5554 to retrieve data from the clipboard. Call `Close` to close the
5555 clipboard and relinquish ownership. You should keep the clipboard open
5558 :see: `wx.DataObject`
5561 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5562 __repr__
= _swig_repr
5563 def __init__(self
, *args
, **kwargs
):
5564 """__init__(self) -> Clipboard"""
5565 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5566 __swig_destroy__
= _misc_
.delete_Clipboard
5567 __del__
= lambda self
: None;
5568 def Open(*args
, **kwargs
):
5572 Call this function to open the clipboard before calling SetData and
5573 GetData. Call Close when you have finished with the clipboard. You
5574 should keep the clipboard open for only a very short time. Returns
5577 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5579 def Close(*args
, **kwargs
):
5583 Closes the clipboard.
5585 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5587 def IsOpened(*args
, **kwargs
):
5589 IsOpened(self) -> bool
5591 Query whether the clipboard is opened
5593 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5595 def AddData(*args
, **kwargs
):
5597 AddData(self, DataObject data) -> bool
5599 Call this function to add the data object to the clipboard. You may
5600 call this function repeatedly after having cleared the clipboard.
5601 After this function has been called, the clipboard owns the data, so
5602 do not delete the data explicitly.
5604 :see: `wx.DataObject`
5606 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5608 def SetData(*args
, **kwargs
):
5610 SetData(self, DataObject data) -> bool
5612 Set the clipboard data, this is the same as `Clear` followed by
5615 :see: `wx.DataObject`
5617 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5619 def IsSupported(*args
, **kwargs
):
5621 IsSupported(self, DataFormat format) -> bool
5623 Returns True if the given format is available in the data object(s) on
5626 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5628 def GetData(*args
, **kwargs
):
5630 GetData(self, DataObject data) -> bool
5632 Call this function to fill data with data on the clipboard, if
5633 available in the required format. Returns true on success.
5635 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5637 def Clear(*args
, **kwargs
):
5641 Clears data from the clipboard object and also the system's clipboard
5644 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5646 def Flush(*args
, **kwargs
):
5650 Flushes the clipboard: this means that the data which is currently on
5651 clipboard will stay available even after the application exits,
5652 possibly eating memory, otherwise the clipboard will be emptied on
5653 exit. Returns False if the operation is unsuccesful for any reason.
5655 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5657 def UsePrimarySelection(*args
, **kwargs
):
5659 UsePrimarySelection(self, bool primary=True)
5661 On platforms supporting it (the X11 based platforms), selects the
5662 so called PRIMARY SELECTION as the clipboard as opposed to the
5663 normal clipboard, if primary is True.
5665 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5667 def Get(*args
, **kwargs
):
5671 Returns global instance (wxTheClipboard) of the object.
5673 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5675 Get
= staticmethod(Get
)
5676 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5677 _misc_
.Clipboard_swigregister(Clipboard
)
5679 def Clipboard_Get(*args
):
5681 Clipboard_Get() -> Clipboard
5683 Returns global instance (wxTheClipboard) of the object.
5685 return _misc_
.Clipboard_Get(*args
)
5687 class _wxPyDelayedInitWrapper(object):
5688 def __init__(self
, initfunc
, *args
, **kwargs
):
5689 self
._initfunc
= initfunc
5691 self
._kwargs
= kwargs
5692 self
._instance
= None
5693 def _checkInstance(self
):
5694 if self
._instance
is None:
5696 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5697 def __getattr__(self
, name
):
5698 self
._checkInstance
()
5699 return getattr(self
._instance
, name
)
5701 self
._checkInstance
()
5702 return repr(self
._instance
)
5703 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5705 class ClipboardLocker(object):
5707 A helpful class for opening the clipboard and automatically
5708 closing it when the locker is destroyed.
5710 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5711 __repr__
= _swig_repr
5712 def __init__(self
, *args
, **kwargs
):
5714 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5716 A helpful class for opening the clipboard and automatically
5717 closing it when the locker is destroyed.
5719 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5720 __swig_destroy__
= _misc_
.delete_ClipboardLocker
5721 __del__
= lambda self
: None;
5722 def __nonzero__(*args
, **kwargs
):
5724 __nonzero__(self) -> bool
5726 A ClipboardLocker instance evaluates to True if the clipboard was
5727 successfully opened.
5729 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
5731 _misc_
.ClipboardLocker_swigregister(ClipboardLocker
)
5733 #---------------------------------------------------------------------------
5735 class VideoMode(object):
5736 """A simple struct containing video mode parameters for a display"""
5737 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5738 __repr__
= _swig_repr
5739 def __init__(self
, *args
, **kwargs
):
5741 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5743 A simple struct containing video mode parameters for a display
5745 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
5746 __swig_destroy__
= _misc_
.delete_VideoMode
5747 __del__
= lambda self
: None;
5748 def Matches(*args
, **kwargs
):
5750 Matches(self, VideoMode other) -> bool
5752 Returns True if this mode matches the other one in the sense that all
5753 non-zero fields of the other mode have the same value in this
5754 one (except for refresh which is allowed to have a greater value)
5756 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
5758 def GetWidth(*args
, **kwargs
):
5760 GetWidth(self) -> int
5762 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5764 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
5766 def GetHeight(*args
, **kwargs
):
5768 GetHeight(self) -> int
5770 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5772 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
5774 def GetDepth(*args
, **kwargs
):
5776 GetDepth(self) -> int
5778 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5779 means unspecified/known
5781 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
5783 def IsOk(*args
, **kwargs
):
5787 returns true if the object has been initialized
5789 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
5791 def __nonzero__(self
): return self
.IsOk()
5792 def __eq__(*args
, **kwargs
):
5793 """__eq__(self, VideoMode other) -> bool"""
5794 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
5796 def __ne__(*args
, **kwargs
):
5797 """__ne__(self, VideoMode other) -> bool"""
5798 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
5800 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
5801 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
5802 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
5803 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
5804 Depth
= property(GetDepth
,doc
="See `GetDepth`")
5805 Height
= property(GetHeight
,doc
="See `GetHeight`")
5806 Width
= property(GetWidth
,doc
="See `GetWidth`")
5807 _misc_
.VideoMode_swigregister(VideoMode
)
5809 class Display(object):
5810 """Represents a display/monitor attached to the system"""
5811 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5812 __repr__
= _swig_repr
5813 def __init__(self
, *args
, **kwargs
):
5815 __init__(self, unsigned int index=0) -> Display
5817 Set up a Display instance with the specified display. The displays
5818 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5819 and the only one which is always supported
5821 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
5822 __swig_destroy__
= _misc_
.delete_Display
5823 __del__
= lambda self
: None;
5824 def GetCount(*args
, **kwargs
):
5826 GetCount() -> unsigned int
5828 Return the number of available displays.
5830 return _misc_
.Display_GetCount(*args
, **kwargs
)
5832 GetCount
= staticmethod(GetCount
)
5833 def GetFromPoint(*args
, **kwargs
):
5835 GetFromPoint(Point pt) -> int
5837 Find the display where the given point lies, return wx.NOT_FOUND if it
5838 doesn't belong to any display
5840 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5842 GetFromPoint
= staticmethod(GetFromPoint
)
5843 def GetFromWindow(*args
, **kwargs
):
5845 GetFromWindow(Window window) -> int
5847 Find the display where the given window lies, return wx.NOT_FOUND if
5848 it is not shown at all.
5850 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5852 GetFromWindow
= staticmethod(GetFromWindow
)
5853 def IsOk(*args
, **kwargs
):
5857 Return true if the object was initialized successfully
5859 return _misc_
.Display_IsOk(*args
, **kwargs
)
5861 def __nonzero__(self
): return self
.IsOk()
5862 def GetGeometry(*args
, **kwargs
):
5864 GetGeometry(self) -> Rect
5866 Returns the bounding rectangle of the display whose index was passed
5869 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
5871 def GetClientArea(*args
, **kwargs
):
5873 GetClientArea(self) -> Rect
5875 Returns the bounding rectangle the client area of the display,
5876 i.e., without taskbars and such.
5878 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
5880 def GetName(*args
, **kwargs
):
5882 GetName(self) -> String
5884 Returns the display's name. A name is not available on all platforms.
5886 return _misc_
.Display_GetName(*args
, **kwargs
)
5888 def IsPrimary(*args
, **kwargs
):
5890 IsPrimary(self) -> bool
5892 Returns True if the display is the primary display. The primary
5893 display is the one whose index is 0.
5895 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
5897 def GetModes(*args
, **kwargs
):
5899 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5901 Enumerate all video modes supported by this display matching the given
5902 one (in the sense of VideoMode.Match()).
5904 As any mode matches the default value of the argument and there is
5905 always at least one video mode supported by display, the returned
5906 array is only empty for the default value of the argument if this
5907 function is not supported at all on this platform.
5909 return _misc_
.Display_GetModes(*args
, **kwargs
)
5911 def GetCurrentMode(*args
, **kwargs
):
5913 GetCurrentMode(self) -> VideoMode
5915 Get the current video mode.
5917 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
5919 def ChangeMode(*args
, **kwargs
):
5921 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5923 Changes the video mode of this display to the mode specified in the
5926 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5927 behaviour is that wx.Display will reset the video mode to the default
5928 mode used by the display. On Windows, the behavior is normal.
5929 However, there are differences on other platforms. On Unix variations
5930 using X11 extensions it should behave as defined, but some
5931 irregularities may occur.
5933 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5934 nothing. This happens because Carbon no longer has access to
5935 DMUseScreenPrefs, an undocumented function that changed the video mode
5936 to the system default by using the system's 'scrn' resource.
5938 Returns True if succeeded, False otherwise
5940 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
5942 def ResetMode(*args
, **kwargs
):
5946 Restore the default video mode (just a more readable synonym)
5948 return _misc_
.Display_ResetMode(*args
, **kwargs
)
5950 ClientArea
= property(GetClientArea
,doc
="See `GetClientArea`")
5951 CurrentMode
= property(GetCurrentMode
,doc
="See `GetCurrentMode`")
5952 Geometry
= property(GetGeometry
,doc
="See `GetGeometry`")
5953 Modes
= property(GetModes
,doc
="See `GetModes`")
5954 Name
= property(GetName
,doc
="See `GetName`")
5955 _misc_
.Display_swigregister(Display
)
5956 DefaultVideoMode
= cvar
.DefaultVideoMode
5958 def Display_GetCount(*args
):
5960 Display_GetCount() -> unsigned int
5962 Return the number of available displays.
5964 return _misc_
.Display_GetCount(*args
)
5966 def Display_GetFromPoint(*args
, **kwargs
):
5968 Display_GetFromPoint(Point pt) -> int
5970 Find the display where the given point lies, return wx.NOT_FOUND if it
5971 doesn't belong to any display
5973 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
5975 def Display_GetFromWindow(*args
, **kwargs
):
5977 Display_GetFromWindow(Window window) -> int
5979 Find the display where the given window lies, return wx.NOT_FOUND if
5980 it is not shown at all.
5982 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
5984 #---------------------------------------------------------------------------
5986 class StandardPaths(object):
5988 wx.StandardPaths returns standard locations in the file system and
5989 should be used by programs to find their data files in a portable way.
5991 In the description of the methods below, the example return values are
5992 given for the Unix, Windows and Mac OS X systems, however please note
5993 that these are just examples and the actual values may differ. For
5994 example, under Windows the system administrator may change the
5995 standard directories locations, i.e. the Windows directory may be
5996 named W:\Win2003 instead of the default C:\Windows.
5998 The strings appname and username should be replaced with the value
5999 returned by `wx.App.GetAppName` and the name of the currently logged
6000 in user, respectively. The string prefix is only used under Unix and
6001 is /usr/local by default but may be changed using `SetInstallPrefix`.
6003 The directories returned by the methods of this class may or may not
6004 exist. If they don't exist, it's up to the caller to create them,
6005 wx.StandardPaths doesn't do it.
6007 Finally note that these functions only work with standardly packaged
6008 applications. I.e. under Unix you should follow the standard
6009 installation conventions and under Mac you should create your
6010 application bundle according to the Apple guidelines. Again, this
6011 class doesn't help you to do it.
6013 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6014 def __init__(self
): raise AttributeError, "No constructor defined"
6015 __repr__
= _swig_repr
6016 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
6017 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
6018 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
6019 def Get(*args
, **kwargs
):
6021 Get() -> StandardPaths
6023 Return the global standard paths singleton
6025 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
6027 Get
= staticmethod(Get
)
6028 def GetConfigDir(*args
, **kwargs
):
6030 GetConfigDir(self) -> String
6032 Return the directory with system config files: /etc under Unix,
6033 'c:\Documents and Settings\All Users\Application Data' under Windows,
6034 /Library/Preferences for Mac
6036 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
6038 def GetUserConfigDir(*args
, **kwargs
):
6040 GetUserConfigDir(self) -> String
6042 Return the directory for the user config files: $HOME under Unix,
6043 'c:\Documents and Settings\username' under Windows, and
6044 ~/Library/Preferences under Mac
6046 Only use this if you have a single file to put there, otherwise
6047 `GetUserDataDir` is more appropriate
6049 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
6051 def GetDataDir(*args
, **kwargs
):
6053 GetDataDir(self) -> String
6055 Return the location of the application's global, (i.e. not
6056 user-specific,) data files: prefix/share/appname under Unix,
6057 'c:\Program Files\appname' under Windows,
6058 appname.app/Contents/SharedSupport app bundle directory under Mac.
6060 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
6062 def GetLocalDataDir(*args
, **kwargs
):
6064 GetLocalDataDir(self) -> String
6066 Return the location for application data files which are
6067 host-specific. Same as `GetDataDir` except under Unix where it is
6070 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
6072 def GetUserDataDir(*args
, **kwargs
):
6074 GetUserDataDir(self) -> String
6076 Return the directory for the user-dependent application data files:
6077 $HOME/.appname under Unix, c:\Documents and
6078 Settings\username\Application Data\appname under Windows and
6079 ~/Library/Application Support/appname under Mac
6081 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
6083 def GetUserLocalDataDir(*args
, **kwargs
):
6085 GetUserLocalDataDir(self) -> String
6087 Return the directory for user data files which shouldn't be shared
6088 with the other machines
6090 Same as `GetUserDataDir` for all platforms except Windows where it is
6091 the 'Local Settings\Application Data\appname' directory.
6093 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
6095 def GetPluginsDir(*args
, **kwargs
):
6097 GetPluginsDir(self) -> String
6099 Return the directory where the loadable modules (plugins) live:
6100 prefix/lib/appname under Unix, program directory under Windows and
6101 Contents/Plugins app bundle subdirectory under Mac
6103 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
6105 def GetResourcesDir(*args
, **kwargs
):
6107 GetResourcesDir(self) -> String
6109 Get resources directory. Resources are auxiliary files used by the
6110 application and include things like image and sound files.
6112 Same as `GetDataDir` for all platforms except Mac where it returns
6113 Contents/Resources subdirectory of the app bundle.
6115 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
6117 def GetLocalizedResourcesDir(*args
, **kwargs
):
6119 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
6121 Get localized resources directory containing the resource files of the
6122 specified category for the given language.
6124 In general this is just GetResourcesDir()/lang under Windows and Unix
6125 and GetResourcesDir()/lang.lproj under Mac but is something quite
6126 different under Unix for the message catalog category (namely the
6127 standard prefix/share/locale/lang/LC_MESSAGES.)
6129 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
6131 def GetDocumentsDir(*args
, **kwargs
):
6133 GetDocumentsDir(self) -> String
6135 Return the Documents directory for the current user.
6137 C:\Documents and Settings\username\Documents under Windows,
6138 $HOME under Unix and ~/Documents under Mac
6140 return _misc_
.StandardPaths_GetDocumentsDir(*args
, **kwargs
)
6142 def SetInstallPrefix(*args
, **kwargs
):
6144 SetInstallPrefix(self, String prefix)
6146 Set the program installation directory which is /usr/local by default.
6147 This value will be used by other methods such as `GetDataDir` and
6148 `GetPluginsDir` as the prefix for what they return. (This function
6149 only has meaning on Unix systems.)
6151 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
6153 def GetInstallPrefix(*args
, **kwargs
):
6155 GetInstallPrefix(self) -> String
6157 Get the program installation prefix. The default is the prefix where
6158 Python is installed. (This function only has meaning on Unix systems.)
6160 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
6162 _misc_
.StandardPaths_swigregister(StandardPaths
)
6164 def StandardPaths_Get(*args
):
6166 StandardPaths_Get() -> StandardPaths
6168 Return the global standard paths singleton
6170 return _misc_
.StandardPaths_Get(*args
)
6172 #---------------------------------------------------------------------------
6174 POWER_SOCKET
= _misc_
.POWER_SOCKET
6175 POWER_BATTERY
= _misc_
.POWER_BATTERY
6176 POWER_UNKNOWN
= _misc_
.POWER_UNKNOWN
6177 BATTERY_NORMAL_STATE
= _misc_
.BATTERY_NORMAL_STATE
6178 BATTERY_LOW_STATE
= _misc_
.BATTERY_LOW_STATE
6179 BATTERY_CRITICAL_STATE
= _misc_
.BATTERY_CRITICAL_STATE
6180 BATTERY_SHUTDOWN_STATE
= _misc_
.BATTERY_SHUTDOWN_STATE
6181 BATTERY_UNKNOWN_STATE
= _misc_
.BATTERY_UNKNOWN_STATE
6182 class PowerEvent(_core
.Event
):
6184 wx.PowerEvent is generated when the system online status changes.
6185 Currently this is only implemented for Windows.
6187 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6188 __repr__
= _swig_repr
6189 def __init__(self
, *args
, **kwargs
):
6191 __init__(self, EventType evtType) -> PowerEvent
6193 wx.PowerEvent is generated when the system online status changes.
6194 Currently this is only implemented for Windows.
6196 _misc_
.PowerEvent_swiginit(self
,_misc_
.new_PowerEvent(*args
, **kwargs
))
6197 def Veto(*args
, **kwargs
):
6199 return _misc_
.PowerEvent_Veto(*args
, **kwargs
)
6201 def IsVetoed(*args
, **kwargs
):
6202 """IsVetoed(self) -> bool"""
6203 return _misc_
.PowerEvent_IsVetoed(*args
, **kwargs
)
6205 _misc_
.PowerEvent_swigregister(PowerEvent
)
6207 wxEVT_POWER_SUSPENDING
= _misc_
.wxEVT_POWER_SUSPENDING
6208 wxEVT_POWER_SUSPENDED
= _misc_
.wxEVT_POWER_SUSPENDED
6209 wxEVT_POWER_SUSPEND_CANCEL
= _misc_
.wxEVT_POWER_SUSPEND_CANCEL
6210 wxEVT_POWER_RESUME
= _misc_
.wxEVT_POWER_RESUME
6211 EVT_POWER_SUSPENDING
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDING
, 1 )
6212 EVT_POWER_SUSPENDED
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDED
, 1 )
6213 EVT_POWER_SUSPEND_CANCEL
= wx
.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL
, 1 )
6214 EVT_POWER_RESUME
= wx
.PyEventBinder( wxEVT_POWER_RESUME
, 1 )
6217 def GetPowerType(*args
):
6219 GetPowerType() -> int
6221 return the current system power state: online or offline
6223 return _misc_
.GetPowerType(*args
)
6225 def GetBatteryState(*args
):
6227 GetBatteryState() -> int
6229 return approximate battery state
6231 return _misc_
.GetBatteryState(*args
)