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 args
[0].this
.own(False)
825 return _misc_
.Caret_Destroy(*args
, **kwargs
)
827 def IsOk(*args
, **kwargs
):
828 """IsOk(self) -> bool"""
829 return _misc_
.Caret_IsOk(*args
, **kwargs
)
831 def IsVisible(*args
, **kwargs
):
832 """IsVisible(self) -> bool"""
833 return _misc_
.Caret_IsVisible(*args
, **kwargs
)
835 def GetPosition(*args
, **kwargs
):
836 """GetPosition(self) -> Point"""
837 return _misc_
.Caret_GetPosition(*args
, **kwargs
)
839 def GetPositionTuple(*args
, **kwargs
):
840 """GetPositionTuple() -> (x,y)"""
841 return _misc_
.Caret_GetPositionTuple(*args
, **kwargs
)
843 def GetSize(*args
, **kwargs
):
844 """GetSize(self) -> Size"""
845 return _misc_
.Caret_GetSize(*args
, **kwargs
)
847 def GetSizeTuple(*args
, **kwargs
):
848 """GetSizeTuple() -> (width, height)"""
849 return _misc_
.Caret_GetSizeTuple(*args
, **kwargs
)
851 def GetWindow(*args
, **kwargs
):
852 """GetWindow(self) -> Window"""
853 return _misc_
.Caret_GetWindow(*args
, **kwargs
)
855 def MoveXY(*args
, **kwargs
):
856 """MoveXY(self, int x, int y)"""
857 return _misc_
.Caret_MoveXY(*args
, **kwargs
)
859 def Move(*args
, **kwargs
):
860 """Move(self, Point pt)"""
861 return _misc_
.Caret_Move(*args
, **kwargs
)
863 def SetSizeWH(*args
, **kwargs
):
864 """SetSizeWH(self, int width, int height)"""
865 return _misc_
.Caret_SetSizeWH(*args
, **kwargs
)
867 def SetSize(*args
, **kwargs
):
868 """SetSize(self, Size size)"""
869 return _misc_
.Caret_SetSize(*args
, **kwargs
)
871 def Show(*args
, **kwargs
):
872 """Show(self, int show=True)"""
873 return _misc_
.Caret_Show(*args
, **kwargs
)
875 def Hide(*args
, **kwargs
):
877 return _misc_
.Caret_Hide(*args
, **kwargs
)
879 def __nonzero__(self
): return self
.IsOk()
880 def GetBlinkTime(*args
, **kwargs
):
881 """GetBlinkTime() -> int"""
882 return _misc_
.Caret_GetBlinkTime(*args
, **kwargs
)
884 GetBlinkTime
= staticmethod(GetBlinkTime
)
885 def SetBlinkTime(*args
, **kwargs
):
886 """SetBlinkTime(int milliseconds)"""
887 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
889 SetBlinkTime
= staticmethod(SetBlinkTime
)
890 Position
= property(GetPosition
,doc
="See `GetPosition`")
891 Size
= property(GetSize
,SetSize
,doc
="See `GetSize` and `SetSize`")
892 Window
= property(GetWindow
,doc
="See `GetWindow`")
893 _misc_
.Caret_swigregister(Caret
)
895 def Caret_GetBlinkTime(*args
):
896 """Caret_GetBlinkTime() -> int"""
897 return _misc_
.Caret_GetBlinkTime(*args
)
899 def Caret_SetBlinkTime(*args
, **kwargs
):
900 """Caret_SetBlinkTime(int milliseconds)"""
901 return _misc_
.Caret_SetBlinkTime(*args
, **kwargs
)
903 class BusyCursor(object):
904 """Proxy of C++ BusyCursor class"""
905 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
906 __repr__
= _swig_repr
907 def __init__(self
, *args
, **kwargs
):
908 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
909 _misc_
.BusyCursor_swiginit(self
,_misc_
.new_BusyCursor(*args
, **kwargs
))
910 __swig_destroy__
= _misc_
.delete_BusyCursor
911 __del__
= lambda self
: None;
912 _misc_
.BusyCursor_swigregister(BusyCursor
)
914 class WindowDisabler(object):
915 """Proxy of C++ WindowDisabler class"""
916 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
917 __repr__
= _swig_repr
918 def __init__(self
, *args
, **kwargs
):
919 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
920 _misc_
.WindowDisabler_swiginit(self
,_misc_
.new_WindowDisabler(*args
, **kwargs
))
921 __swig_destroy__
= _misc_
.delete_WindowDisabler
922 __del__
= lambda self
: None;
923 _misc_
.WindowDisabler_swigregister(WindowDisabler
)
925 class BusyInfo(_core
.Object
):
926 """Proxy of C++ BusyInfo class"""
927 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
928 __repr__
= _swig_repr
929 def __init__(self
, *args
, **kwargs
):
930 """__init__(self, String message) -> BusyInfo"""
931 _misc_
.BusyInfo_swiginit(self
,_misc_
.new_BusyInfo(*args
, **kwargs
))
932 __swig_destroy__
= _misc_
.delete_BusyInfo
933 __del__
= lambda self
: None;
934 def Destroy(self
): pass
935 _misc_
.BusyInfo_swigregister(BusyInfo
)
937 class StopWatch(object):
938 """Proxy of C++ StopWatch class"""
939 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
940 __repr__
= _swig_repr
941 def __init__(self
, *args
, **kwargs
):
942 """__init__(self) -> StopWatch"""
943 _misc_
.StopWatch_swiginit(self
,_misc_
.new_StopWatch(*args
, **kwargs
))
944 def Start(*args
, **kwargs
):
945 """Start(self, long t0=0)"""
946 return _misc_
.StopWatch_Start(*args
, **kwargs
)
948 def Pause(*args
, **kwargs
):
950 return _misc_
.StopWatch_Pause(*args
, **kwargs
)
952 def Resume(*args
, **kwargs
):
954 return _misc_
.StopWatch_Resume(*args
, **kwargs
)
956 def Time(*args
, **kwargs
):
957 """Time(self) -> long"""
958 return _misc_
.StopWatch_Time(*args
, **kwargs
)
960 _misc_
.StopWatch_swigregister(StopWatch
)
962 class FileHistory(_core
.Object
):
963 """Proxy of C++ FileHistory class"""
964 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
965 __repr__
= _swig_repr
966 def __init__(self
, *args
, **kwargs
):
967 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
968 _misc_
.FileHistory_swiginit(self
,_misc_
.new_FileHistory(*args
, **kwargs
))
969 __swig_destroy__
= _misc_
.delete_FileHistory
970 __del__
= lambda self
: None;
971 def AddFileToHistory(*args
, **kwargs
):
972 """AddFileToHistory(self, String file)"""
973 return _misc_
.FileHistory_AddFileToHistory(*args
, **kwargs
)
975 def RemoveFileFromHistory(*args
, **kwargs
):
976 """RemoveFileFromHistory(self, int i)"""
977 return _misc_
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
979 def GetMaxFiles(*args
, **kwargs
):
980 """GetMaxFiles(self) -> int"""
981 return _misc_
.FileHistory_GetMaxFiles(*args
, **kwargs
)
983 def UseMenu(*args
, **kwargs
):
984 """UseMenu(self, Menu menu)"""
985 return _misc_
.FileHistory_UseMenu(*args
, **kwargs
)
987 def RemoveMenu(*args
, **kwargs
):
988 """RemoveMenu(self, Menu menu)"""
989 return _misc_
.FileHistory_RemoveMenu(*args
, **kwargs
)
991 def Load(*args
, **kwargs
):
992 """Load(self, ConfigBase config)"""
993 return _misc_
.FileHistory_Load(*args
, **kwargs
)
995 def Save(*args
, **kwargs
):
996 """Save(self, ConfigBase config)"""
997 return _misc_
.FileHistory_Save(*args
, **kwargs
)
999 def AddFilesToMenu(*args
, **kwargs
):
1000 """AddFilesToMenu(self)"""
1001 return _misc_
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
1003 def AddFilesToThisMenu(*args
, **kwargs
):
1004 """AddFilesToThisMenu(self, Menu menu)"""
1005 return _misc_
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
1007 def GetHistoryFile(*args
, **kwargs
):
1008 """GetHistoryFile(self, int i) -> String"""
1009 return _misc_
.FileHistory_GetHistoryFile(*args
, **kwargs
)
1011 def GetCount(*args
, **kwargs
):
1012 """GetCount(self) -> int"""
1013 return _misc_
.FileHistory_GetCount(*args
, **kwargs
)
1015 GetNoHistoryFiles
= GetCount
1016 Count
= property(GetCount
,doc
="See `GetCount`")
1017 HistoryFile
= property(GetHistoryFile
,doc
="See `GetHistoryFile`")
1018 MaxFiles
= property(GetMaxFiles
,doc
="See `GetMaxFiles`")
1019 NoHistoryFiles
= property(GetNoHistoryFiles
,doc
="See `GetNoHistoryFiles`")
1020 _misc_
.FileHistory_swigregister(FileHistory
)
1022 class SingleInstanceChecker(object):
1023 """Proxy of C++ SingleInstanceChecker class"""
1024 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1025 __repr__
= _swig_repr
1026 def __init__(self
, *args
, **kwargs
):
1027 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1028 _misc_
.SingleInstanceChecker_swiginit(self
,_misc_
.new_SingleInstanceChecker(*args
, **kwargs
))
1029 __swig_destroy__
= _misc_
.delete_SingleInstanceChecker
1030 __del__
= lambda self
: None;
1031 def Create(*args
, **kwargs
):
1032 """Create(self, String name, String path=EmptyString) -> bool"""
1033 return _misc_
.SingleInstanceChecker_Create(*args
, **kwargs
)
1035 def IsAnotherRunning(*args
, **kwargs
):
1036 """IsAnotherRunning(self) -> bool"""
1037 return _misc_
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
1039 _misc_
.SingleInstanceChecker_swigregister(SingleInstanceChecker
)
1041 def PreSingleInstanceChecker(*args
, **kwargs
):
1042 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1043 val
= _misc_
.new_PreSingleInstanceChecker(*args
, **kwargs
)
1046 #---------------------------------------------------------------------------
1048 OS_UNKNOWN
= _misc_
.OS_UNKNOWN
1049 OS_MAC_OS
= _misc_
.OS_MAC_OS
1050 OS_MAC_OSX_DARWIN
= _misc_
.OS_MAC_OSX_DARWIN
1051 OS_MAC
= _misc_
.OS_MAC
1052 OS_WINDOWS_9X
= _misc_
.OS_WINDOWS_9X
1053 OS_WINDOWS_NT
= _misc_
.OS_WINDOWS_NT
1054 OS_WINDOWS_MICRO
= _misc_
.OS_WINDOWS_MICRO
1055 OS_WINDOWS_CE
= _misc_
.OS_WINDOWS_CE
1056 OS_WINDOWS
= _misc_
.OS_WINDOWS
1057 OS_UNIX_LINUX
= _misc_
.OS_UNIX_LINUX
1058 OS_UNIX_FREEBSD
= _misc_
.OS_UNIX_FREEBSD
1059 OS_UNIX_OPENBSD
= _misc_
.OS_UNIX_OPENBSD
1060 OS_UNIX_NETBSD
= _misc_
.OS_UNIX_NETBSD
1061 OS_UNIX_SOLARIS
= _misc_
.OS_UNIX_SOLARIS
1062 OS_UNIX_AIX
= _misc_
.OS_UNIX_AIX
1063 OS_UNIX_HPUX
= _misc_
.OS_UNIX_HPUX
1064 OS_UNIX
= _misc_
.OS_UNIX
1065 OS_DOS
= _misc_
.OS_DOS
1066 OS_OS2
= _misc_
.OS_OS2
1067 PORT_UNKNOWN
= _misc_
.PORT_UNKNOWN
1068 PORT_BASE
= _misc_
.PORT_BASE
1069 PORT_MSW
= _misc_
.PORT_MSW
1070 PORT_MOTIF
= _misc_
.PORT_MOTIF
1071 PORT_GTK
= _misc_
.PORT_GTK
1072 PORT_MGL
= _misc_
.PORT_MGL
1073 PORT_X11
= _misc_
.PORT_X11
1074 PORT_PM
= _misc_
.PORT_PM
1075 PORT_OS2
= _misc_
.PORT_OS2
1076 PORT_MAC
= _misc_
.PORT_MAC
1077 PORT_COCOA
= _misc_
.PORT_COCOA
1078 PORT_WINCE
= _misc_
.PORT_WINCE
1079 PORT_PALMOS
= _misc_
.PORT_PALMOS
1080 PORT_DFB
= _misc_
.PORT_DFB
1081 ARCH_INVALID
= _misc_
.ARCH_INVALID
1082 ARCH_32
= _misc_
.ARCH_32
1083 ARCH_64
= _misc_
.ARCH_64
1084 ARCH_MAX
= _misc_
.ARCH_MAX
1085 ENDIAN_INVALID
= _misc_
.ENDIAN_INVALID
1086 ENDIAN_BIG
= _misc_
.ENDIAN_BIG
1087 ENDIAN_LITTLE
= _misc_
.ENDIAN_LITTLE
1088 ENDIAN_PDP
= _misc_
.ENDIAN_PDP
1089 ENDIAN_MAX
= _misc_
.ENDIAN_MAX
1090 class PlatformInformation(object):
1091 """Proxy of C++ PlatformInformation class"""
1092 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1093 __repr__
= _swig_repr
1094 def __init__(self
, *args
, **kwargs
):
1095 """__init__(self) -> PlatformInformation"""
1096 _misc_
.PlatformInformation_swiginit(self
,_misc_
.new_PlatformInformation(*args
, **kwargs
))
1097 def __eq__(*args
, **kwargs
):
1098 """__eq__(self, PlatformInformation t) -> bool"""
1099 return _misc_
.PlatformInformation___eq__(*args
, **kwargs
)
1101 def __ne__(*args
, **kwargs
):
1102 """__ne__(self, PlatformInformation t) -> bool"""
1103 return _misc_
.PlatformInformation___ne__(*args
, **kwargs
)
1105 def GetOSMajorVersion(*args
, **kwargs
):
1106 """GetOSMajorVersion(self) -> int"""
1107 return _misc_
.PlatformInformation_GetOSMajorVersion(*args
, **kwargs
)
1109 def GetOSMinorVersion(*args
, **kwargs
):
1110 """GetOSMinorVersion(self) -> int"""
1111 return _misc_
.PlatformInformation_GetOSMinorVersion(*args
, **kwargs
)
1113 def CheckOSVersion(*args
, **kwargs
):
1114 """CheckOSVersion(self, int major, int minor) -> bool"""
1115 return _misc_
.PlatformInformation_CheckOSVersion(*args
, **kwargs
)
1117 def GetToolkitMajorVersion(*args
, **kwargs
):
1118 """GetToolkitMajorVersion(self) -> int"""
1119 return _misc_
.PlatformInformation_GetToolkitMajorVersion(*args
, **kwargs
)
1121 def GetToolkitMinorVersion(*args
, **kwargs
):
1122 """GetToolkitMinorVersion(self) -> int"""
1123 return _misc_
.PlatformInformation_GetToolkitMinorVersion(*args
, **kwargs
)
1125 def CheckToolkitVersion(*args
, **kwargs
):
1126 """CheckToolkitVersion(self, int major, int minor) -> bool"""
1127 return _misc_
.PlatformInformation_CheckToolkitVersion(*args
, **kwargs
)
1129 def IsUsingUniversalWidgets(*args
, **kwargs
):
1130 """IsUsingUniversalWidgets(self) -> bool"""
1131 return _misc_
.PlatformInformation_IsUsingUniversalWidgets(*args
, **kwargs
)
1133 def GetOperatingSystemId(*args
, **kwargs
):
1134 """GetOperatingSystemId(self) -> int"""
1135 return _misc_
.PlatformInformation_GetOperatingSystemId(*args
, **kwargs
)
1137 def GetPortId(*args
, **kwargs
):
1138 """GetPortId(self) -> int"""
1139 return _misc_
.PlatformInformation_GetPortId(*args
, **kwargs
)
1141 def GetArchitecture(*args
, **kwargs
):
1142 """GetArchitecture(self) -> int"""
1143 return _misc_
.PlatformInformation_GetArchitecture(*args
, **kwargs
)
1145 def GetEndianness(*args
, **kwargs
):
1146 """GetEndianness(self) -> int"""
1147 return _misc_
.PlatformInformation_GetEndianness(*args
, **kwargs
)
1149 def GetOperatingSystemFamilyName(*args
, **kwargs
):
1150 """GetOperatingSystemFamilyName(self) -> String"""
1151 return _misc_
.PlatformInformation_GetOperatingSystemFamilyName(*args
, **kwargs
)
1153 def GetOperatingSystemIdName(*args
, **kwargs
):
1154 """GetOperatingSystemIdName(self) -> String"""
1155 return _misc_
.PlatformInformation_GetOperatingSystemIdName(*args
, **kwargs
)
1157 def GetPortIdName(*args
, **kwargs
):
1158 """GetPortIdName(self) -> String"""
1159 return _misc_
.PlatformInformation_GetPortIdName(*args
, **kwargs
)
1161 def GetPortIdShortName(*args
, **kwargs
):
1162 """GetPortIdShortName(self) -> String"""
1163 return _misc_
.PlatformInformation_GetPortIdShortName(*args
, **kwargs
)
1165 def GetArchName(*args
, **kwargs
):
1166 """GetArchName(self) -> String"""
1167 return _misc_
.PlatformInformation_GetArchName(*args
, **kwargs
)
1169 def GetEndiannessName(*args
, **kwargs
):
1170 """GetEndiannessName(self) -> String"""
1171 return _misc_
.PlatformInformation_GetEndiannessName(*args
, **kwargs
)
1173 def SetOSVersion(*args
, **kwargs
):
1174 """SetOSVersion(self, int major, int minor)"""
1175 return _misc_
.PlatformInformation_SetOSVersion(*args
, **kwargs
)
1177 def SetToolkitVersion(*args
, **kwargs
):
1178 """SetToolkitVersion(self, int major, int minor)"""
1179 return _misc_
.PlatformInformation_SetToolkitVersion(*args
, **kwargs
)
1181 def SetOperatingSystemId(*args
, **kwargs
):
1182 """SetOperatingSystemId(self, int n)"""
1183 return _misc_
.PlatformInformation_SetOperatingSystemId(*args
, **kwargs
)
1185 def SetPortId(*args
, **kwargs
):
1186 """SetPortId(self, int n)"""
1187 return _misc_
.PlatformInformation_SetPortId(*args
, **kwargs
)
1189 def SetArchitecture(*args
, **kwargs
):
1190 """SetArchitecture(self, int n)"""
1191 return _misc_
.PlatformInformation_SetArchitecture(*args
, **kwargs
)
1193 def SetEndianness(*args
, **kwargs
):
1194 """SetEndianness(self, int n)"""
1195 return _misc_
.PlatformInformation_SetEndianness(*args
, **kwargs
)
1197 def IsOk(*args
, **kwargs
):
1198 """IsOk(self) -> bool"""
1199 return _misc_
.PlatformInformation_IsOk(*args
, **kwargs
)
1201 ArchName
= property(GetArchName
,doc
="See `GetArchName`")
1202 Architecture
= property(GetArchitecture
,SetArchitecture
,doc
="See `GetArchitecture` and `SetArchitecture`")
1203 Endianness
= property(GetEndianness
,SetEndianness
,doc
="See `GetEndianness` and `SetEndianness`")
1204 EndiannessName
= property(GetEndiannessName
,doc
="See `GetEndiannessName`")
1205 OSMajorVersion
= property(GetOSMajorVersion
,doc
="See `GetOSMajorVersion`")
1206 OSMinorVersion
= property(GetOSMinorVersion
,doc
="See `GetOSMinorVersion`")
1207 OperatingSystemFamilyName
= property(GetOperatingSystemFamilyName
,doc
="See `GetOperatingSystemFamilyName`")
1208 OperatingSystemId
= property(GetOperatingSystemId
,SetOperatingSystemId
,doc
="See `GetOperatingSystemId` and `SetOperatingSystemId`")
1209 OperatingSystemIdName
= property(GetOperatingSystemIdName
,doc
="See `GetOperatingSystemIdName`")
1210 PortId
= property(GetPortId
,SetPortId
,doc
="See `GetPortId` and `SetPortId`")
1211 PortIdName
= property(GetPortIdName
,doc
="See `GetPortIdName`")
1212 PortIdShortName
= property(GetPortIdShortName
,doc
="See `GetPortIdShortName`")
1213 ToolkitMajorVersion
= property(GetToolkitMajorVersion
,doc
="See `GetToolkitMajorVersion`")
1214 ToolkitMinorVersion
= property(GetToolkitMinorVersion
,doc
="See `GetToolkitMinorVersion`")
1215 _misc_
.PlatformInformation_swigregister(PlatformInformation
)
1218 def DrawWindowOnDC(*args
, **kwargs
):
1219 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1220 return _misc_
.DrawWindowOnDC(*args
, **kwargs
)
1221 #---------------------------------------------------------------------------
1223 class TipProvider(object):
1224 """Proxy of C++ TipProvider class"""
1225 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1226 def __init__(self
): raise AttributeError, "No constructor defined"
1227 __repr__
= _swig_repr
1228 __swig_destroy__
= _misc_
.delete_TipProvider
1229 __del__
= lambda self
: None;
1230 def GetTip(*args
, **kwargs
):
1231 """GetTip(self) -> String"""
1232 return _misc_
.TipProvider_GetTip(*args
, **kwargs
)
1234 def GetCurrentTip(*args
, **kwargs
):
1235 """GetCurrentTip(self) -> size_t"""
1236 return _misc_
.TipProvider_GetCurrentTip(*args
, **kwargs
)
1238 def PreprocessTip(*args
, **kwargs
):
1239 """PreprocessTip(self, String tip) -> String"""
1240 return _misc_
.TipProvider_PreprocessTip(*args
, **kwargs
)
1242 CurrentTip
= property(GetCurrentTip
,doc
="See `GetCurrentTip`")
1243 Tip
= property(GetTip
,doc
="See `GetTip`")
1244 _misc_
.TipProvider_swigregister(TipProvider
)
1246 class PyTipProvider(TipProvider
):
1247 """Proxy of C++ PyTipProvider class"""
1248 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1249 __repr__
= _swig_repr
1250 def __init__(self
, *args
, **kwargs
):
1251 """__init__(self, size_t currentTip) -> PyTipProvider"""
1252 _misc_
.PyTipProvider_swiginit(self
,_misc_
.new_PyTipProvider(*args
, **kwargs
))
1253 self
._setCallbackInfo
(self
, PyTipProvider
)
1255 def _setCallbackInfo(*args
, **kwargs
):
1256 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1257 return _misc_
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
1259 _misc_
.PyTipProvider_swigregister(PyTipProvider
)
1262 def ShowTip(*args
, **kwargs
):
1263 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1264 return _misc_
.ShowTip(*args
, **kwargs
)
1266 def CreateFileTipProvider(*args
, **kwargs
):
1267 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1268 return _misc_
.CreateFileTipProvider(*args
, **kwargs
)
1269 #---------------------------------------------------------------------------
1271 TIMER_CONTINUOUS
= _misc_
.TIMER_CONTINUOUS
1272 TIMER_ONE_SHOT
= _misc_
.TIMER_ONE_SHOT
1273 wxEVT_TIMER
= _misc_
.wxEVT_TIMER
1274 class Timer(_core
.EvtHandler
):
1275 """Proxy of C++ Timer class"""
1276 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1277 __repr__
= _swig_repr
1278 def __init__(self
, *args
, **kwargs
):
1279 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1280 _misc_
.Timer_swiginit(self
,_misc_
.new_Timer(*args
, **kwargs
))
1281 self
._setCallbackInfo
(self
, Timer
, 0); self
._setOORInfo
(self
, 0)
1283 __swig_destroy__
= _misc_
.delete_Timer
1284 __del__
= lambda self
: None;
1285 def _setCallbackInfo(*args
, **kwargs
):
1286 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1287 return _misc_
.Timer__setCallbackInfo(*args
, **kwargs
)
1289 def SetOwner(*args
, **kwargs
):
1290 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1291 return _misc_
.Timer_SetOwner(*args
, **kwargs
)
1293 def GetOwner(*args
, **kwargs
):
1294 """GetOwner(self) -> EvtHandler"""
1295 return _misc_
.Timer_GetOwner(*args
, **kwargs
)
1297 def Start(*args
, **kwargs
):
1298 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1299 return _misc_
.Timer_Start(*args
, **kwargs
)
1301 def Stop(*args
, **kwargs
):
1303 return _misc_
.Timer_Stop(*args
, **kwargs
)
1305 def Notify(*args
, **kwargs
):
1307 return _misc_
.Timer_Notify(*args
, **kwargs
)
1309 def IsRunning(*args
, **kwargs
):
1310 """IsRunning(self) -> bool"""
1311 return _misc_
.Timer_IsRunning(*args
, **kwargs
)
1313 def GetInterval(*args
, **kwargs
):
1314 """GetInterval(self) -> int"""
1315 return _misc_
.Timer_GetInterval(*args
, **kwargs
)
1317 def GetId(*args
, **kwargs
):
1318 """GetId(self) -> int"""
1319 return _misc_
.Timer_GetId(*args
, **kwargs
)
1321 def IsOneShot(*args
, **kwargs
):
1322 """IsOneShot(self) -> bool"""
1323 return _misc_
.Timer_IsOneShot(*args
, **kwargs
)
1326 """NO-OP: Timers must be destroyed by normal reference counting"""
1329 Id
= property(GetId
,doc
="See `GetId`")
1330 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1331 Owner
= property(GetOwner
,SetOwner
,doc
="See `GetOwner` and `SetOwner`")
1332 _misc_
.Timer_swigregister(Timer
)
1334 # For backwards compatibility with 2.4
1335 class PyTimer(Timer
):
1336 def __init__(self
, notify
):
1337 Timer
.__init
__(self
)
1338 self
.notify
= notify
1345 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1348 class TimerEvent(_core
.Event
):
1349 """Proxy of C++ TimerEvent class"""
1350 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1351 __repr__
= _swig_repr
1352 def __init__(self
, *args
, **kwargs
):
1353 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1354 _misc_
.TimerEvent_swiginit(self
,_misc_
.new_TimerEvent(*args
, **kwargs
))
1355 def GetInterval(*args
, **kwargs
):
1356 """GetInterval(self) -> int"""
1357 return _misc_
.TimerEvent_GetInterval(*args
, **kwargs
)
1359 Interval
= property(GetInterval
,doc
="See `GetInterval`")
1360 _misc_
.TimerEvent_swigregister(TimerEvent
)
1362 class TimerRunner(object):
1363 """Proxy of C++ TimerRunner class"""
1364 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1365 __repr__
= _swig_repr
1366 def __init__(self
, *args
):
1368 __init__(self, wxTimer timer) -> TimerRunner
1369 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1371 _misc_
.TimerRunner_swiginit(self
,_misc_
.new_TimerRunner(*args
))
1372 __swig_destroy__
= _misc_
.delete_TimerRunner
1373 __del__
= lambda self
: None;
1374 def Start(*args
, **kwargs
):
1375 """Start(self, int milli, bool oneShot=False)"""
1376 return _misc_
.TimerRunner_Start(*args
, **kwargs
)
1378 _misc_
.TimerRunner_swigregister(TimerRunner
)
1380 #---------------------------------------------------------------------------
1382 LOG_FatalError
= _misc_
.LOG_FatalError
1383 LOG_Error
= _misc_
.LOG_Error
1384 LOG_Warning
= _misc_
.LOG_Warning
1385 LOG_Message
= _misc_
.LOG_Message
1386 LOG_Status
= _misc_
.LOG_Status
1387 LOG_Info
= _misc_
.LOG_Info
1388 LOG_Debug
= _misc_
.LOG_Debug
1389 LOG_Trace
= _misc_
.LOG_Trace
1390 LOG_Progress
= _misc_
.LOG_Progress
1391 LOG_User
= _misc_
.LOG_User
1392 LOG_Max
= _misc_
.LOG_Max
1393 TRACE_MemAlloc
= _misc_
.TRACE_MemAlloc
1394 TRACE_Messages
= _misc_
.TRACE_Messages
1395 TRACE_ResAlloc
= _misc_
.TRACE_ResAlloc
1396 TRACE_RefCount
= _misc_
.TRACE_RefCount
1397 TRACE_OleCalls
= _misc_
.TRACE_OleCalls
1398 TraceMemAlloc
= _misc_
.TraceMemAlloc
1399 TraceMessages
= _misc_
.TraceMessages
1400 TraceResAlloc
= _misc_
.TraceResAlloc
1401 TraceRefCount
= _misc_
.TraceRefCount
1402 TraceOleCalls
= _misc_
.TraceOleCalls
1404 """Proxy of C++ Log class"""
1405 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1406 __repr__
= _swig_repr
1407 def __init__(self
, *args
, **kwargs
):
1408 """__init__(self) -> Log"""
1409 _misc_
.Log_swiginit(self
,_misc_
.new_Log(*args
, **kwargs
))
1410 __swig_destroy__
= _misc_
.delete_Log
1411 __del__
= lambda self
: None;
1412 def IsEnabled(*args
, **kwargs
):
1413 """IsEnabled() -> bool"""
1414 return _misc_
.Log_IsEnabled(*args
, **kwargs
)
1416 IsEnabled
= staticmethod(IsEnabled
)
1417 def EnableLogging(*args
, **kwargs
):
1418 """EnableLogging(bool doIt=True) -> bool"""
1419 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1421 EnableLogging
= staticmethod(EnableLogging
)
1422 def OnLog(*args
, **kwargs
):
1423 """OnLog(LogLevel level, wxChar szString, time_t t)"""
1424 return _misc_
.Log_OnLog(*args
, **kwargs
)
1426 OnLog
= staticmethod(OnLog
)
1427 def Flush(*args
, **kwargs
):
1429 return _misc_
.Log_Flush(*args
, **kwargs
)
1431 def FlushActive(*args
, **kwargs
):
1433 return _misc_
.Log_FlushActive(*args
, **kwargs
)
1435 FlushActive
= staticmethod(FlushActive
)
1436 def GetActiveTarget(*args
, **kwargs
):
1437 """GetActiveTarget() -> Log"""
1438 return _misc_
.Log_GetActiveTarget(*args
, **kwargs
)
1440 GetActiveTarget
= staticmethod(GetActiveTarget
)
1441 def SetActiveTarget(*args
, **kwargs
):
1442 """SetActiveTarget(Log pLogger) -> Log"""
1443 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1445 SetActiveTarget
= staticmethod(SetActiveTarget
)
1446 def Suspend(*args
, **kwargs
):
1448 return _misc_
.Log_Suspend(*args
, **kwargs
)
1450 Suspend
= staticmethod(Suspend
)
1451 def Resume(*args
, **kwargs
):
1453 return _misc_
.Log_Resume(*args
, **kwargs
)
1455 Resume
= staticmethod(Resume
)
1456 def SetVerbose(*args
, **kwargs
):
1457 """SetVerbose(bool bVerbose=True)"""
1458 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1460 SetVerbose
= staticmethod(SetVerbose
)
1461 def SetLogLevel(*args
, **kwargs
):
1462 """SetLogLevel(LogLevel logLevel)"""
1463 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1465 SetLogLevel
= staticmethod(SetLogLevel
)
1466 def DontCreateOnDemand(*args
, **kwargs
):
1467 """DontCreateOnDemand()"""
1468 return _misc_
.Log_DontCreateOnDemand(*args
, **kwargs
)
1470 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1471 def SetRepetitionCounting(*args
, **kwargs
):
1472 """SetRepetitionCounting(bool bRepetCounting=True)"""
1473 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1475 SetRepetitionCounting
= staticmethod(SetRepetitionCounting
)
1476 def GetRepetitionCounting(*args
, **kwargs
):
1477 """GetRepetitionCounting() -> bool"""
1478 return _misc_
.Log_GetRepetitionCounting(*args
, **kwargs
)
1480 GetRepetitionCounting
= staticmethod(GetRepetitionCounting
)
1481 def SetTraceMask(*args
, **kwargs
):
1482 """SetTraceMask(TraceMask ulMask)"""
1483 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1485 SetTraceMask
= staticmethod(SetTraceMask
)
1486 def AddTraceMask(*args
, **kwargs
):
1487 """AddTraceMask(String str)"""
1488 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1490 AddTraceMask
= staticmethod(AddTraceMask
)
1491 def RemoveTraceMask(*args
, **kwargs
):
1492 """RemoveTraceMask(String str)"""
1493 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1495 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1496 def ClearTraceMasks(*args
, **kwargs
):
1497 """ClearTraceMasks()"""
1498 return _misc_
.Log_ClearTraceMasks(*args
, **kwargs
)
1500 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1501 def GetTraceMasks(*args
, **kwargs
):
1502 """GetTraceMasks() -> wxArrayString"""
1503 return _misc_
.Log_GetTraceMasks(*args
, **kwargs
)
1505 GetTraceMasks
= staticmethod(GetTraceMasks
)
1506 def SetTimestamp(*args
, **kwargs
):
1507 """SetTimestamp(wxChar ts)"""
1508 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1510 SetTimestamp
= staticmethod(SetTimestamp
)
1511 def GetVerbose(*args
, **kwargs
):
1512 """GetVerbose() -> bool"""
1513 return _misc_
.Log_GetVerbose(*args
, **kwargs
)
1515 GetVerbose
= staticmethod(GetVerbose
)
1516 def GetTraceMask(*args
, **kwargs
):
1517 """GetTraceMask() -> TraceMask"""
1518 return _misc_
.Log_GetTraceMask(*args
, **kwargs
)
1520 GetTraceMask
= staticmethod(GetTraceMask
)
1521 def IsAllowedTraceMask(*args
, **kwargs
):
1522 """IsAllowedTraceMask(wxChar mask) -> bool"""
1523 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1525 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1526 def GetLogLevel(*args
, **kwargs
):
1527 """GetLogLevel() -> LogLevel"""
1528 return _misc_
.Log_GetLogLevel(*args
, **kwargs
)
1530 GetLogLevel
= staticmethod(GetLogLevel
)
1531 def GetTimestamp(*args
, **kwargs
):
1532 """GetTimestamp() -> wxChar"""
1533 return _misc_
.Log_GetTimestamp(*args
, **kwargs
)
1535 GetTimestamp
= staticmethod(GetTimestamp
)
1536 def TimeStamp(*args
, **kwargs
):
1537 """TimeStamp() -> String"""
1538 return _misc_
.Log_TimeStamp(*args
, **kwargs
)
1540 TimeStamp
= staticmethod(TimeStamp
)
1541 def Destroy(*args
, **kwargs
):
1543 args
[0].this
.own(False)
1544 return _misc_
.Log_Destroy(*args
, **kwargs
)
1546 _misc_
.Log_swigregister(Log
)
1548 def Log_IsEnabled(*args
):
1549 """Log_IsEnabled() -> bool"""
1550 return _misc_
.Log_IsEnabled(*args
)
1552 def Log_EnableLogging(*args
, **kwargs
):
1553 """Log_EnableLogging(bool doIt=True) -> bool"""
1554 return _misc_
.Log_EnableLogging(*args
, **kwargs
)
1556 def Log_OnLog(*args
, **kwargs
):
1557 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1558 return _misc_
.Log_OnLog(*args
, **kwargs
)
1560 def Log_FlushActive(*args
):
1561 """Log_FlushActive()"""
1562 return _misc_
.Log_FlushActive(*args
)
1564 def Log_GetActiveTarget(*args
):
1565 """Log_GetActiveTarget() -> Log"""
1566 return _misc_
.Log_GetActiveTarget(*args
)
1568 def Log_SetActiveTarget(*args
, **kwargs
):
1569 """Log_SetActiveTarget(Log pLogger) -> Log"""
1570 return _misc_
.Log_SetActiveTarget(*args
, **kwargs
)
1572 def Log_Suspend(*args
):
1574 return _misc_
.Log_Suspend(*args
)
1576 def Log_Resume(*args
):
1578 return _misc_
.Log_Resume(*args
)
1580 def Log_SetVerbose(*args
, **kwargs
):
1581 """Log_SetVerbose(bool bVerbose=True)"""
1582 return _misc_
.Log_SetVerbose(*args
, **kwargs
)
1584 def Log_SetLogLevel(*args
, **kwargs
):
1585 """Log_SetLogLevel(LogLevel logLevel)"""
1586 return _misc_
.Log_SetLogLevel(*args
, **kwargs
)
1588 def Log_DontCreateOnDemand(*args
):
1589 """Log_DontCreateOnDemand()"""
1590 return _misc_
.Log_DontCreateOnDemand(*args
)
1592 def Log_SetRepetitionCounting(*args
, **kwargs
):
1593 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1594 return _misc_
.Log_SetRepetitionCounting(*args
, **kwargs
)
1596 def Log_GetRepetitionCounting(*args
):
1597 """Log_GetRepetitionCounting() -> bool"""
1598 return _misc_
.Log_GetRepetitionCounting(*args
)
1600 def Log_SetTraceMask(*args
, **kwargs
):
1601 """Log_SetTraceMask(TraceMask ulMask)"""
1602 return _misc_
.Log_SetTraceMask(*args
, **kwargs
)
1604 def Log_AddTraceMask(*args
, **kwargs
):
1605 """Log_AddTraceMask(String str)"""
1606 return _misc_
.Log_AddTraceMask(*args
, **kwargs
)
1608 def Log_RemoveTraceMask(*args
, **kwargs
):
1609 """Log_RemoveTraceMask(String str)"""
1610 return _misc_
.Log_RemoveTraceMask(*args
, **kwargs
)
1612 def Log_ClearTraceMasks(*args
):
1613 """Log_ClearTraceMasks()"""
1614 return _misc_
.Log_ClearTraceMasks(*args
)
1616 def Log_GetTraceMasks(*args
):
1617 """Log_GetTraceMasks() -> wxArrayString"""
1618 return _misc_
.Log_GetTraceMasks(*args
)
1620 def Log_SetTimestamp(*args
, **kwargs
):
1621 """Log_SetTimestamp(wxChar ts)"""
1622 return _misc_
.Log_SetTimestamp(*args
, **kwargs
)
1624 def Log_GetVerbose(*args
):
1625 """Log_GetVerbose() -> bool"""
1626 return _misc_
.Log_GetVerbose(*args
)
1628 def Log_GetTraceMask(*args
):
1629 """Log_GetTraceMask() -> TraceMask"""
1630 return _misc_
.Log_GetTraceMask(*args
)
1632 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1633 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1634 return _misc_
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1636 def Log_GetLogLevel(*args
):
1637 """Log_GetLogLevel() -> LogLevel"""
1638 return _misc_
.Log_GetLogLevel(*args
)
1640 def Log_GetTimestamp(*args
):
1641 """Log_GetTimestamp() -> wxChar"""
1642 return _misc_
.Log_GetTimestamp(*args
)
1644 def Log_TimeStamp(*args
):
1645 """Log_TimeStamp() -> String"""
1646 return _misc_
.Log_TimeStamp(*args
)
1648 class LogStderr(Log
):
1649 """Proxy of C++ LogStderr class"""
1650 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1651 __repr__
= _swig_repr
1652 def __init__(self
, *args
, **kwargs
):
1653 """__init__(self) -> LogStderr"""
1654 _misc_
.LogStderr_swiginit(self
,_misc_
.new_LogStderr(*args
, **kwargs
))
1655 _misc_
.LogStderr_swigregister(LogStderr
)
1657 class LogTextCtrl(Log
):
1658 """Proxy of C++ LogTextCtrl class"""
1659 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1660 __repr__
= _swig_repr
1661 def __init__(self
, *args
, **kwargs
):
1662 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1663 _misc_
.LogTextCtrl_swiginit(self
,_misc_
.new_LogTextCtrl(*args
, **kwargs
))
1664 _misc_
.LogTextCtrl_swigregister(LogTextCtrl
)
1667 """Proxy of C++ LogGui class"""
1668 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1669 __repr__
= _swig_repr
1670 def __init__(self
, *args
, **kwargs
):
1671 """__init__(self) -> LogGui"""
1672 _misc_
.LogGui_swiginit(self
,_misc_
.new_LogGui(*args
, **kwargs
))
1673 _misc_
.LogGui_swigregister(LogGui
)
1675 class LogWindow(Log
):
1676 """Proxy of C++ LogWindow class"""
1677 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1678 __repr__
= _swig_repr
1679 def __init__(self
, *args
, **kwargs
):
1680 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1681 _misc_
.LogWindow_swiginit(self
,_misc_
.new_LogWindow(*args
, **kwargs
))
1682 def Show(*args
, **kwargs
):
1683 """Show(self, bool bShow=True)"""
1684 return _misc_
.LogWindow_Show(*args
, **kwargs
)
1686 def GetFrame(*args
, **kwargs
):
1687 """GetFrame(self) -> wxFrame"""
1688 return _misc_
.LogWindow_GetFrame(*args
, **kwargs
)
1690 def GetOldLog(*args
, **kwargs
):
1691 """GetOldLog(self) -> Log"""
1692 return _misc_
.LogWindow_GetOldLog(*args
, **kwargs
)
1694 def IsPassingMessages(*args
, **kwargs
):
1695 """IsPassingMessages(self) -> bool"""
1696 return _misc_
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1698 def PassMessages(*args
, **kwargs
):
1699 """PassMessages(self, bool bDoPass)"""
1700 return _misc_
.LogWindow_PassMessages(*args
, **kwargs
)
1702 Frame
= property(GetFrame
,doc
="See `GetFrame`")
1703 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1704 _misc_
.LogWindow_swigregister(LogWindow
)
1706 class LogChain(Log
):
1707 """Proxy of C++ LogChain class"""
1708 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1709 __repr__
= _swig_repr
1710 def __init__(self
, *args
, **kwargs
):
1711 """__init__(self, Log logger) -> LogChain"""
1712 _misc_
.LogChain_swiginit(self
,_misc_
.new_LogChain(*args
, **kwargs
))
1713 def SetLog(*args
, **kwargs
):
1714 """SetLog(self, Log logger)"""
1715 return _misc_
.LogChain_SetLog(*args
, **kwargs
)
1717 def PassMessages(*args
, **kwargs
):
1718 """PassMessages(self, bool bDoPass)"""
1719 return _misc_
.LogChain_PassMessages(*args
, **kwargs
)
1721 def IsPassingMessages(*args
, **kwargs
):
1722 """IsPassingMessages(self) -> bool"""
1723 return _misc_
.LogChain_IsPassingMessages(*args
, **kwargs
)
1725 def GetOldLog(*args
, **kwargs
):
1726 """GetOldLog(self) -> Log"""
1727 return _misc_
.LogChain_GetOldLog(*args
, **kwargs
)
1729 OldLog
= property(GetOldLog
,doc
="See `GetOldLog`")
1730 _misc_
.LogChain_swigregister(LogChain
)
1732 class LogBuffer(Log
):
1733 """Proxy of C++ LogBuffer class"""
1734 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1735 __repr__
= _swig_repr
1736 def __init__(self
, *args
, **kwargs
):
1737 """__init__(self) -> LogBuffer"""
1738 _misc_
.LogBuffer_swiginit(self
,_misc_
.new_LogBuffer(*args
, **kwargs
))
1739 def GetBuffer(*args
, **kwargs
):
1740 """GetBuffer(self) -> String"""
1741 return _misc_
.LogBuffer_GetBuffer(*args
, **kwargs
)
1743 Buffer
= property(GetBuffer
,doc
="See `GetBuffer`")
1744 _misc_
.LogBuffer_swigregister(LogBuffer
)
1747 def SysErrorCode(*args
):
1748 """SysErrorCode() -> unsigned long"""
1749 return _misc_
.SysErrorCode(*args
)
1751 def SysErrorMsg(*args
, **kwargs
):
1752 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1753 return _misc_
.SysErrorMsg(*args
, **kwargs
)
1755 def LogFatalError(*args
, **kwargs
):
1756 """LogFatalError(String msg)"""
1757 return _misc_
.LogFatalError(*args
, **kwargs
)
1759 def LogError(*args
, **kwargs
):
1760 """LogError(String msg)"""
1761 return _misc_
.LogError(*args
, **kwargs
)
1763 def LogWarning(*args
, **kwargs
):
1764 """LogWarning(String msg)"""
1765 return _misc_
.LogWarning(*args
, **kwargs
)
1767 def LogMessage(*args
, **kwargs
):
1768 """LogMessage(String msg)"""
1769 return _misc_
.LogMessage(*args
, **kwargs
)
1771 def LogInfo(*args
, **kwargs
):
1772 """LogInfo(String msg)"""
1773 return _misc_
.LogInfo(*args
, **kwargs
)
1775 def LogDebug(*args
, **kwargs
):
1776 """LogDebug(String msg)"""
1777 return _misc_
.LogDebug(*args
, **kwargs
)
1779 def LogVerbose(*args
, **kwargs
):
1780 """LogVerbose(String msg)"""
1781 return _misc_
.LogVerbose(*args
, **kwargs
)
1783 def LogStatus(*args
, **kwargs
):
1784 """LogStatus(String msg)"""
1785 return _misc_
.LogStatus(*args
, **kwargs
)
1787 def LogStatusFrame(*args
, **kwargs
):
1788 """LogStatusFrame(wxFrame pFrame, String msg)"""
1789 return _misc_
.LogStatusFrame(*args
, **kwargs
)
1791 def LogSysError(*args
, **kwargs
):
1792 """LogSysError(String msg)"""
1793 return _misc_
.LogSysError(*args
, **kwargs
)
1795 def LogGeneric(*args
, **kwargs
):
1796 """LogGeneric(unsigned long level, String msg)"""
1797 return _misc_
.LogGeneric(*args
, **kwargs
)
1799 def SafeShowMessage(*args
, **kwargs
):
1800 """SafeShowMessage(String title, String text)"""
1801 return _misc_
.SafeShowMessage(*args
, **kwargs
)
1802 class LogNull(object):
1803 """Proxy of C++ LogNull class"""
1804 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1805 __repr__
= _swig_repr
1806 def __init__(self
, *args
, **kwargs
):
1807 """__init__(self) -> LogNull"""
1808 _misc_
.LogNull_swiginit(self
,_misc_
.new_LogNull(*args
, **kwargs
))
1809 __swig_destroy__
= _misc_
.delete_LogNull
1810 __del__
= lambda self
: None;
1811 _misc_
.LogNull_swigregister(LogNull
)
1813 def LogTrace(*args
):
1815 LogTrace(unsigned long mask, String msg)
1816 LogTrace(String mask, String msg)
1818 return _misc_
.LogTrace(*args
)
1821 """Proxy of C++ PyLog class"""
1822 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1823 __repr__
= _swig_repr
1824 def __init__(self
, *args
, **kwargs
):
1825 """__init__(self) -> PyLog"""
1826 _misc_
.PyLog_swiginit(self
,_misc_
.new_PyLog(*args
, **kwargs
))
1827 self
._setCallbackInfo
(self
, PyLog
)
1829 def _setCallbackInfo(*args
, **kwargs
):
1830 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1831 return _misc_
.PyLog__setCallbackInfo(*args
, **kwargs
)
1833 _misc_
.PyLog_swigregister(PyLog
)
1835 #---------------------------------------------------------------------------
1837 PROCESS_DEFAULT
= _misc_
.PROCESS_DEFAULT
1838 PROCESS_REDIRECT
= _misc_
.PROCESS_REDIRECT
1839 KILL_OK
= _misc_
.KILL_OK
1840 KILL_BAD_SIGNAL
= _misc_
.KILL_BAD_SIGNAL
1841 KILL_ACCESS_DENIED
= _misc_
.KILL_ACCESS_DENIED
1842 KILL_NO_PROCESS
= _misc_
.KILL_NO_PROCESS
1843 KILL_ERROR
= _misc_
.KILL_ERROR
1844 KILL_NOCHILDREN
= _misc_
.KILL_NOCHILDREN
1845 KILL_CHILDREN
= _misc_
.KILL_CHILDREN
1846 SIGNONE
= _misc_
.SIGNONE
1847 SIGHUP
= _misc_
.SIGHUP
1848 SIGINT
= _misc_
.SIGINT
1849 SIGQUIT
= _misc_
.SIGQUIT
1850 SIGILL
= _misc_
.SIGILL
1851 SIGTRAP
= _misc_
.SIGTRAP
1852 SIGABRT
= _misc_
.SIGABRT
1853 SIGIOT
= _misc_
.SIGIOT
1854 SIGEMT
= _misc_
.SIGEMT
1855 SIGFPE
= _misc_
.SIGFPE
1856 SIGKILL
= _misc_
.SIGKILL
1857 SIGBUS
= _misc_
.SIGBUS
1858 SIGSEGV
= _misc_
.SIGSEGV
1859 SIGSYS
= _misc_
.SIGSYS
1860 SIGPIPE
= _misc_
.SIGPIPE
1861 SIGALRM
= _misc_
.SIGALRM
1862 SIGTERM
= _misc_
.SIGTERM
1863 class Process(_core
.EvtHandler
):
1864 """Proxy of C++ Process class"""
1865 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1866 __repr__
= _swig_repr
1867 def Kill(*args
, **kwargs
):
1868 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1869 return _misc_
.Process_Kill(*args
, **kwargs
)
1871 Kill
= staticmethod(Kill
)
1872 def Exists(*args
, **kwargs
):
1873 """Exists(int pid) -> bool"""
1874 return _misc_
.Process_Exists(*args
, **kwargs
)
1876 Exists
= staticmethod(Exists
)
1877 def Open(*args
, **kwargs
):
1878 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1879 return _misc_
.Process_Open(*args
, **kwargs
)
1881 Open
= staticmethod(Open
)
1882 def __init__(self
, *args
, **kwargs
):
1883 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1884 _misc_
.Process_swiginit(self
,_misc_
.new_Process(*args
, **kwargs
))
1885 self
._setCallbackInfo
(self
, Process
)
1887 def _setCallbackInfo(*args
, **kwargs
):
1888 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1889 return _misc_
.Process__setCallbackInfo(*args
, **kwargs
)
1891 def OnTerminate(*args
, **kwargs
):
1892 """OnTerminate(self, int pid, int status)"""
1893 return _misc_
.Process_OnTerminate(*args
, **kwargs
)
1895 def base_OnTerminate(*args
, **kw
):
1896 return Process
.OnTerminate(*args
, **kw
)
1897 base_OnTerminate
= wx
._deprecated
(base_OnTerminate
,
1898 "Please use Process.OnTerminate instead.")
1900 def Redirect(*args
, **kwargs
):
1901 """Redirect(self)"""
1902 return _misc_
.Process_Redirect(*args
, **kwargs
)
1904 def IsRedirected(*args
, **kwargs
):
1905 """IsRedirected(self) -> bool"""
1906 return _misc_
.Process_IsRedirected(*args
, **kwargs
)
1908 def Detach(*args
, **kwargs
):
1910 return _misc_
.Process_Detach(*args
, **kwargs
)
1912 def GetInputStream(*args
, **kwargs
):
1913 """GetInputStream(self) -> InputStream"""
1914 return _misc_
.Process_GetInputStream(*args
, **kwargs
)
1916 def GetErrorStream(*args
, **kwargs
):
1917 """GetErrorStream(self) -> InputStream"""
1918 return _misc_
.Process_GetErrorStream(*args
, **kwargs
)
1920 def GetOutputStream(*args
, **kwargs
):
1921 """GetOutputStream(self) -> OutputStream"""
1922 return _misc_
.Process_GetOutputStream(*args
, **kwargs
)
1924 def CloseOutput(*args
, **kwargs
):
1925 """CloseOutput(self)"""
1926 return _misc_
.Process_CloseOutput(*args
, **kwargs
)
1928 def IsInputOpened(*args
, **kwargs
):
1929 """IsInputOpened(self) -> bool"""
1930 return _misc_
.Process_IsInputOpened(*args
, **kwargs
)
1932 def IsInputAvailable(*args
, **kwargs
):
1933 """IsInputAvailable(self) -> bool"""
1934 return _misc_
.Process_IsInputAvailable(*args
, **kwargs
)
1936 def IsErrorAvailable(*args
, **kwargs
):
1937 """IsErrorAvailable(self) -> bool"""
1938 return _misc_
.Process_IsErrorAvailable(*args
, **kwargs
)
1940 ErrorStream
= property(GetErrorStream
,doc
="See `GetErrorStream`")
1941 InputStream
= property(GetInputStream
,doc
="See `GetInputStream`")
1942 OutputStream
= property(GetOutputStream
,doc
="See `GetOutputStream`")
1943 InputOpened
= property(IsInputOpened
)
1944 InputAvailable
= property(IsInputAvailable
)
1945 ErrorAvailable
= property(IsErrorAvailable
)
1946 _misc_
.Process_swigregister(Process
)
1948 def Process_Kill(*args
, **kwargs
):
1949 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1950 return _misc_
.Process_Kill(*args
, **kwargs
)
1952 def Process_Exists(*args
, **kwargs
):
1953 """Process_Exists(int pid) -> bool"""
1954 return _misc_
.Process_Exists(*args
, **kwargs
)
1956 def Process_Open(*args
, **kwargs
):
1957 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1958 return _misc_
.Process_Open(*args
, **kwargs
)
1960 class ProcessEvent(_core
.Event
):
1961 """Proxy of C++ ProcessEvent class"""
1962 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1963 __repr__
= _swig_repr
1964 def __init__(self
, *args
, **kwargs
):
1965 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1966 _misc_
.ProcessEvent_swiginit(self
,_misc_
.new_ProcessEvent(*args
, **kwargs
))
1967 def GetPid(*args
, **kwargs
):
1968 """GetPid(self) -> int"""
1969 return _misc_
.ProcessEvent_GetPid(*args
, **kwargs
)
1971 def GetExitCode(*args
, **kwargs
):
1972 """GetExitCode(self) -> int"""
1973 return _misc_
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1975 m_pid
= property(_misc_
.ProcessEvent_m_pid_get
, _misc_
.ProcessEvent_m_pid_set
)
1976 m_exitcode
= property(_misc_
.ProcessEvent_m_exitcode_get
, _misc_
.ProcessEvent_m_exitcode_set
)
1977 ExitCode
= property(GetExitCode
,doc
="See `GetExitCode`")
1978 Pid
= property(GetPid
,doc
="See `GetPid`")
1979 _misc_
.ProcessEvent_swigregister(ProcessEvent
)
1981 wxEVT_END_PROCESS
= _misc_
.wxEVT_END_PROCESS
1982 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1984 EXEC_ASYNC
= _misc_
.EXEC_ASYNC
1985 EXEC_SYNC
= _misc_
.EXEC_SYNC
1986 EXEC_NOHIDE
= _misc_
.EXEC_NOHIDE
1987 EXEC_MAKE_GROUP_LEADER
= _misc_
.EXEC_MAKE_GROUP_LEADER
1988 EXEC_NODISABLE
= _misc_
.EXEC_NODISABLE
1990 def Execute(*args
, **kwargs
):
1991 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1992 return _misc_
.Execute(*args
, **kwargs
)
1994 def Kill(*args
, **kwargs
):
1995 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1996 return _misc_
.Kill(*args
, **kwargs
)
1997 #---------------------------------------------------------------------------
1999 JOYSTICK1
= _misc_
.JOYSTICK1
2000 JOYSTICK2
= _misc_
.JOYSTICK2
2001 JOY_BUTTON_ANY
= _misc_
.JOY_BUTTON_ANY
2002 JOY_BUTTON1
= _misc_
.JOY_BUTTON1
2003 JOY_BUTTON2
= _misc_
.JOY_BUTTON2
2004 JOY_BUTTON3
= _misc_
.JOY_BUTTON3
2005 JOY_BUTTON4
= _misc_
.JOY_BUTTON4
2006 class Joystick(object):
2007 """Proxy of C++ Joystick class"""
2008 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2009 __repr__
= _swig_repr
2010 def __init__(self
, *args
, **kwargs
):
2011 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
2012 _misc_
.Joystick_swiginit(self
,_misc_
.new_Joystick(*args
, **kwargs
))
2013 __swig_destroy__
= _misc_
.delete_Joystick
2014 __del__
= lambda self
: None;
2015 def GetPosition(*args
, **kwargs
):
2016 """GetPosition(self) -> Point"""
2017 return _misc_
.Joystick_GetPosition(*args
, **kwargs
)
2019 def GetZPosition(*args
, **kwargs
):
2020 """GetZPosition(self) -> int"""
2021 return _misc_
.Joystick_GetZPosition(*args
, **kwargs
)
2023 def GetButtonState(*args
, **kwargs
):
2024 """GetButtonState(self) -> int"""
2025 return _misc_
.Joystick_GetButtonState(*args
, **kwargs
)
2027 def GetPOVPosition(*args
, **kwargs
):
2028 """GetPOVPosition(self) -> int"""
2029 return _misc_
.Joystick_GetPOVPosition(*args
, **kwargs
)
2031 def GetPOVCTSPosition(*args
, **kwargs
):
2032 """GetPOVCTSPosition(self) -> int"""
2033 return _misc_
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
2035 def GetRudderPosition(*args
, **kwargs
):
2036 """GetRudderPosition(self) -> int"""
2037 return _misc_
.Joystick_GetRudderPosition(*args
, **kwargs
)
2039 def GetUPosition(*args
, **kwargs
):
2040 """GetUPosition(self) -> int"""
2041 return _misc_
.Joystick_GetUPosition(*args
, **kwargs
)
2043 def GetVPosition(*args
, **kwargs
):
2044 """GetVPosition(self) -> int"""
2045 return _misc_
.Joystick_GetVPosition(*args
, **kwargs
)
2047 def GetMovementThreshold(*args
, **kwargs
):
2048 """GetMovementThreshold(self) -> int"""
2049 return _misc_
.Joystick_GetMovementThreshold(*args
, **kwargs
)
2051 def SetMovementThreshold(*args
, **kwargs
):
2052 """SetMovementThreshold(self, int threshold)"""
2053 return _misc_
.Joystick_SetMovementThreshold(*args
, **kwargs
)
2055 def IsOk(*args
, **kwargs
):
2056 """IsOk(self) -> bool"""
2057 return _misc_
.Joystick_IsOk(*args
, **kwargs
)
2059 def GetNumberJoysticks(*args
, **kwargs
):
2060 """GetNumberJoysticks(self) -> int"""
2061 return _misc_
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
2063 def GetManufacturerId(*args
, **kwargs
):
2064 """GetManufacturerId(self) -> int"""
2065 return _misc_
.Joystick_GetManufacturerId(*args
, **kwargs
)
2067 def GetProductId(*args
, **kwargs
):
2068 """GetProductId(self) -> int"""
2069 return _misc_
.Joystick_GetProductId(*args
, **kwargs
)
2071 def GetProductName(*args
, **kwargs
):
2072 """GetProductName(self) -> String"""
2073 return _misc_
.Joystick_GetProductName(*args
, **kwargs
)
2075 def GetXMin(*args
, **kwargs
):
2076 """GetXMin(self) -> int"""
2077 return _misc_
.Joystick_GetXMin(*args
, **kwargs
)
2079 def GetYMin(*args
, **kwargs
):
2080 """GetYMin(self) -> int"""
2081 return _misc_
.Joystick_GetYMin(*args
, **kwargs
)
2083 def GetZMin(*args
, **kwargs
):
2084 """GetZMin(self) -> int"""
2085 return _misc_
.Joystick_GetZMin(*args
, **kwargs
)
2087 def GetXMax(*args
, **kwargs
):
2088 """GetXMax(self) -> int"""
2089 return _misc_
.Joystick_GetXMax(*args
, **kwargs
)
2091 def GetYMax(*args
, **kwargs
):
2092 """GetYMax(self) -> int"""
2093 return _misc_
.Joystick_GetYMax(*args
, **kwargs
)
2095 def GetZMax(*args
, **kwargs
):
2096 """GetZMax(self) -> int"""
2097 return _misc_
.Joystick_GetZMax(*args
, **kwargs
)
2099 def GetNumberButtons(*args
, **kwargs
):
2100 """GetNumberButtons(self) -> int"""
2101 return _misc_
.Joystick_GetNumberButtons(*args
, **kwargs
)
2103 def GetNumberAxes(*args
, **kwargs
):
2104 """GetNumberAxes(self) -> int"""
2105 return _misc_
.Joystick_GetNumberAxes(*args
, **kwargs
)
2107 def GetMaxButtons(*args
, **kwargs
):
2108 """GetMaxButtons(self) -> int"""
2109 return _misc_
.Joystick_GetMaxButtons(*args
, **kwargs
)
2111 def GetMaxAxes(*args
, **kwargs
):
2112 """GetMaxAxes(self) -> int"""
2113 return _misc_
.Joystick_GetMaxAxes(*args
, **kwargs
)
2115 def GetPollingMin(*args
, **kwargs
):
2116 """GetPollingMin(self) -> int"""
2117 return _misc_
.Joystick_GetPollingMin(*args
, **kwargs
)
2119 def GetPollingMax(*args
, **kwargs
):
2120 """GetPollingMax(self) -> int"""
2121 return _misc_
.Joystick_GetPollingMax(*args
, **kwargs
)
2123 def GetRudderMin(*args
, **kwargs
):
2124 """GetRudderMin(self) -> int"""
2125 return _misc_
.Joystick_GetRudderMin(*args
, **kwargs
)
2127 def GetRudderMax(*args
, **kwargs
):
2128 """GetRudderMax(self) -> int"""
2129 return _misc_
.Joystick_GetRudderMax(*args
, **kwargs
)
2131 def GetUMin(*args
, **kwargs
):
2132 """GetUMin(self) -> int"""
2133 return _misc_
.Joystick_GetUMin(*args
, **kwargs
)
2135 def GetUMax(*args
, **kwargs
):
2136 """GetUMax(self) -> int"""
2137 return _misc_
.Joystick_GetUMax(*args
, **kwargs
)
2139 def GetVMin(*args
, **kwargs
):
2140 """GetVMin(self) -> int"""
2141 return _misc_
.Joystick_GetVMin(*args
, **kwargs
)
2143 def GetVMax(*args
, **kwargs
):
2144 """GetVMax(self) -> int"""
2145 return _misc_
.Joystick_GetVMax(*args
, **kwargs
)
2147 def HasRudder(*args
, **kwargs
):
2148 """HasRudder(self) -> bool"""
2149 return _misc_
.Joystick_HasRudder(*args
, **kwargs
)
2151 def HasZ(*args
, **kwargs
):
2152 """HasZ(self) -> bool"""
2153 return _misc_
.Joystick_HasZ(*args
, **kwargs
)
2155 def HasU(*args
, **kwargs
):
2156 """HasU(self) -> bool"""
2157 return _misc_
.Joystick_HasU(*args
, **kwargs
)
2159 def HasV(*args
, **kwargs
):
2160 """HasV(self) -> bool"""
2161 return _misc_
.Joystick_HasV(*args
, **kwargs
)
2163 def HasPOV(*args
, **kwargs
):
2164 """HasPOV(self) -> bool"""
2165 return _misc_
.Joystick_HasPOV(*args
, **kwargs
)
2167 def HasPOV4Dir(*args
, **kwargs
):
2168 """HasPOV4Dir(self) -> bool"""
2169 return _misc_
.Joystick_HasPOV4Dir(*args
, **kwargs
)
2171 def HasPOVCTS(*args
, **kwargs
):
2172 """HasPOVCTS(self) -> bool"""
2173 return _misc_
.Joystick_HasPOVCTS(*args
, **kwargs
)
2175 def SetCapture(*args
, **kwargs
):
2176 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2177 return _misc_
.Joystick_SetCapture(*args
, **kwargs
)
2179 def ReleaseCapture(*args
, **kwargs
):
2180 """ReleaseCapture(self) -> bool"""
2181 return _misc_
.Joystick_ReleaseCapture(*args
, **kwargs
)
2183 def __nonzero__(self
): return self
.IsOk()
2184 ButtonState
= property(GetButtonState
,doc
="See `GetButtonState`")
2185 ManufacturerId
= property(GetManufacturerId
,doc
="See `GetManufacturerId`")
2186 MaxAxes
= property(GetMaxAxes
,doc
="See `GetMaxAxes`")
2187 MaxButtons
= property(GetMaxButtons
,doc
="See `GetMaxButtons`")
2188 MovementThreshold
= property(GetMovementThreshold
,SetMovementThreshold
,doc
="See `GetMovementThreshold` and `SetMovementThreshold`")
2189 NumberAxes
= property(GetNumberAxes
,doc
="See `GetNumberAxes`")
2190 NumberButtons
= property(GetNumberButtons
,doc
="See `GetNumberButtons`")
2191 NumberJoysticks
= property(GetNumberJoysticks
,doc
="See `GetNumberJoysticks`")
2192 POVCTSPosition
= property(GetPOVCTSPosition
,doc
="See `GetPOVCTSPosition`")
2193 POVPosition
= property(GetPOVPosition
,doc
="See `GetPOVPosition`")
2194 PollingMax
= property(GetPollingMax
,doc
="See `GetPollingMax`")
2195 PollingMin
= property(GetPollingMin
,doc
="See `GetPollingMin`")
2196 Position
= property(GetPosition
,doc
="See `GetPosition`")
2197 ProductId
= property(GetProductId
,doc
="See `GetProductId`")
2198 ProductName
= property(GetProductName
,doc
="See `GetProductName`")
2199 RudderMax
= property(GetRudderMax
,doc
="See `GetRudderMax`")
2200 RudderMin
= property(GetRudderMin
,doc
="See `GetRudderMin`")
2201 RudderPosition
= property(GetRudderPosition
,doc
="See `GetRudderPosition`")
2202 UMax
= property(GetUMax
,doc
="See `GetUMax`")
2203 UMin
= property(GetUMin
,doc
="See `GetUMin`")
2204 UPosition
= property(GetUPosition
,doc
="See `GetUPosition`")
2205 VMax
= property(GetVMax
,doc
="See `GetVMax`")
2206 VMin
= property(GetVMin
,doc
="See `GetVMin`")
2207 VPosition
= property(GetVPosition
,doc
="See `GetVPosition`")
2208 XMax
= property(GetXMax
,doc
="See `GetXMax`")
2209 XMin
= property(GetXMin
,doc
="See `GetXMin`")
2210 YMax
= property(GetYMax
,doc
="See `GetYMax`")
2211 YMin
= property(GetYMin
,doc
="See `GetYMin`")
2212 ZMax
= property(GetZMax
,doc
="See `GetZMax`")
2213 ZMin
= property(GetZMin
,doc
="See `GetZMin`")
2214 ZPosition
= property(GetZPosition
,doc
="See `GetZPosition`")
2215 _misc_
.Joystick_swigregister(Joystick
)
2217 wxEVT_JOY_BUTTON_DOWN
= _misc_
.wxEVT_JOY_BUTTON_DOWN
2218 wxEVT_JOY_BUTTON_UP
= _misc_
.wxEVT_JOY_BUTTON_UP
2219 wxEVT_JOY_MOVE
= _misc_
.wxEVT_JOY_MOVE
2220 wxEVT_JOY_ZMOVE
= _misc_
.wxEVT_JOY_ZMOVE
2221 class JoystickEvent(_core
.Event
):
2222 """Proxy of C++ JoystickEvent class"""
2223 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2224 __repr__
= _swig_repr
2225 def __init__(self
, *args
, **kwargs
):
2227 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2228 int change=0) -> JoystickEvent
2230 _misc_
.JoystickEvent_swiginit(self
,_misc_
.new_JoystickEvent(*args
, **kwargs
))
2231 def GetPosition(*args
, **kwargs
):
2232 """GetPosition(self) -> Point"""
2233 return _misc_
.JoystickEvent_GetPosition(*args
, **kwargs
)
2235 def GetZPosition(*args
, **kwargs
):
2236 """GetZPosition(self) -> int"""
2237 return _misc_
.JoystickEvent_GetZPosition(*args
, **kwargs
)
2239 def GetButtonState(*args
, **kwargs
):
2240 """GetButtonState(self) -> int"""
2241 return _misc_
.JoystickEvent_GetButtonState(*args
, **kwargs
)
2243 def GetButtonChange(*args
, **kwargs
):
2244 """GetButtonChange(self) -> int"""
2245 return _misc_
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
2247 def GetJoystick(*args
, **kwargs
):
2248 """GetJoystick(self) -> int"""
2249 return _misc_
.JoystickEvent_GetJoystick(*args
, **kwargs
)
2251 def SetJoystick(*args
, **kwargs
):
2252 """SetJoystick(self, int stick)"""
2253 return _misc_
.JoystickEvent_SetJoystick(*args
, **kwargs
)
2255 def SetButtonState(*args
, **kwargs
):
2256 """SetButtonState(self, int state)"""
2257 return _misc_
.JoystickEvent_SetButtonState(*args
, **kwargs
)
2259 def SetButtonChange(*args
, **kwargs
):
2260 """SetButtonChange(self, int change)"""
2261 return _misc_
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
2263 def SetPosition(*args
, **kwargs
):
2264 """SetPosition(self, Point pos)"""
2265 return _misc_
.JoystickEvent_SetPosition(*args
, **kwargs
)
2267 def SetZPosition(*args
, **kwargs
):
2268 """SetZPosition(self, int zPos)"""
2269 return _misc_
.JoystickEvent_SetZPosition(*args
, **kwargs
)
2271 def IsButton(*args
, **kwargs
):
2272 """IsButton(self) -> bool"""
2273 return _misc_
.JoystickEvent_IsButton(*args
, **kwargs
)
2275 def IsMove(*args
, **kwargs
):
2276 """IsMove(self) -> bool"""
2277 return _misc_
.JoystickEvent_IsMove(*args
, **kwargs
)
2279 def IsZMove(*args
, **kwargs
):
2280 """IsZMove(self) -> bool"""
2281 return _misc_
.JoystickEvent_IsZMove(*args
, **kwargs
)
2283 def ButtonDown(*args
, **kwargs
):
2284 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2285 return _misc_
.JoystickEvent_ButtonDown(*args
, **kwargs
)
2287 def ButtonUp(*args
, **kwargs
):
2288 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2289 return _misc_
.JoystickEvent_ButtonUp(*args
, **kwargs
)
2291 def ButtonIsDown(*args
, **kwargs
):
2292 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2293 return _misc_
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
2295 m_pos
= property(GetPosition
, SetPosition
)
2296 m_zPosition
= property(GetZPosition
, SetZPosition
)
2297 m_buttonChange
= property(GetButtonChange
, SetButtonChange
)
2298 m_buttonState
= property(GetButtonState
, SetButtonState
)
2299 m_joyStick
= property(GetJoystick
, SetJoystick
)
2301 ButtonChange
= property(GetButtonChange
,SetButtonChange
,doc
="See `GetButtonChange` and `SetButtonChange`")
2302 ButtonState
= property(GetButtonState
,SetButtonState
,doc
="See `GetButtonState` and `SetButtonState`")
2303 Joystick
= property(GetJoystick
,SetJoystick
,doc
="See `GetJoystick` and `SetJoystick`")
2304 Position
= property(GetPosition
,SetPosition
,doc
="See `GetPosition` and `SetPosition`")
2305 ZPosition
= property(GetZPosition
,SetZPosition
,doc
="See `GetZPosition` and `SetZPosition`")
2306 _misc_
.JoystickEvent_swigregister(JoystickEvent
)
2308 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2309 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2310 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2311 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2313 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2314 wxEVT_JOY_BUTTON_UP
,
2320 #---------------------------------------------------------------------------
2322 SOUND_SYNC
= _misc_
.SOUND_SYNC
2323 SOUND_ASYNC
= _misc_
.SOUND_ASYNC
2324 SOUND_LOOP
= _misc_
.SOUND_LOOP
2325 class Sound(object):
2326 """Proxy of C++ Sound class"""
2327 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2328 __repr__
= _swig_repr
2329 def __init__(self
, *args
, **kwargs
):
2330 """__init__(self, String fileName=EmptyString) -> Sound"""
2331 _misc_
.Sound_swiginit(self
,_misc_
.new_Sound(*args
, **kwargs
))
2332 __swig_destroy__
= _misc_
.delete_Sound
2333 __del__
= lambda self
: None;
2334 def Create(*args
, **kwargs
):
2335 """Create(self, String fileName) -> bool"""
2336 return _misc_
.Sound_Create(*args
, **kwargs
)
2338 def CreateFromData(*args
, **kwargs
):
2339 """CreateFromData(self, PyObject data) -> bool"""
2340 return _misc_
.Sound_CreateFromData(*args
, **kwargs
)
2342 def IsOk(*args
, **kwargs
):
2343 """IsOk(self) -> bool"""
2344 return _misc_
.Sound_IsOk(*args
, **kwargs
)
2346 def Play(*args
, **kwargs
):
2347 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2348 return _misc_
.Sound_Play(*args
, **kwargs
)
2350 def PlaySound(*args
, **kwargs
):
2351 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2352 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2354 PlaySound
= staticmethod(PlaySound
)
2355 def Stop(*args
, **kwargs
):
2357 return _misc_
.Sound_Stop(*args
, **kwargs
)
2359 Stop
= staticmethod(Stop
)
2360 def __nonzero__(self
): return self
.IsOk()
2361 _misc_
.Sound_swigregister(Sound
)
2363 def SoundFromData(*args
, **kwargs
):
2364 """SoundFromData(PyObject data) -> Sound"""
2365 val
= _misc_
.new_SoundFromData(*args
, **kwargs
)
2368 def Sound_PlaySound(*args
, **kwargs
):
2369 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2370 return _misc_
.Sound_PlaySound(*args
, **kwargs
)
2372 def Sound_Stop(*args
):
2374 return _misc_
.Sound_Stop(*args
)
2376 #---------------------------------------------------------------------------
2378 MAILCAP_STANDARD
= _misc_
.MAILCAP_STANDARD
2379 MAILCAP_NETSCAPE
= _misc_
.MAILCAP_NETSCAPE
2380 MAILCAP_KDE
= _misc_
.MAILCAP_KDE
2381 MAILCAP_GNOME
= _misc_
.MAILCAP_GNOME
2382 MAILCAP_ALL
= _misc_
.MAILCAP_ALL
2383 class FileTypeInfo(object):
2384 """Proxy of C++ FileTypeInfo class"""
2385 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2386 __repr__
= _swig_repr
2387 def __init__(self
, *args
, **kwargs
):
2388 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2389 _misc_
.FileTypeInfo_swiginit(self
,_misc_
.new_FileTypeInfo(*args
, **kwargs
))
2390 def IsValid(*args
, **kwargs
):
2391 """IsValid(self) -> bool"""
2392 return _misc_
.FileTypeInfo_IsValid(*args
, **kwargs
)
2394 def SetIcon(*args
, **kwargs
):
2395 """SetIcon(self, String iconFile, int iconIndex=0)"""
2396 return _misc_
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2398 def SetShortDesc(*args
, **kwargs
):
2399 """SetShortDesc(self, String shortDesc)"""
2400 return _misc_
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2402 def GetMimeType(*args
, **kwargs
):
2403 """GetMimeType(self) -> String"""
2404 return _misc_
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2406 def GetOpenCommand(*args
, **kwargs
):
2407 """GetOpenCommand(self) -> String"""
2408 return _misc_
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2410 def GetPrintCommand(*args
, **kwargs
):
2411 """GetPrintCommand(self) -> String"""
2412 return _misc_
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2414 def GetShortDesc(*args
, **kwargs
):
2415 """GetShortDesc(self) -> String"""
2416 return _misc_
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2418 def GetDescription(*args
, **kwargs
):
2419 """GetDescription(self) -> String"""
2420 return _misc_
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2422 def GetExtensions(*args
, **kwargs
):
2423 """GetExtensions(self) -> wxArrayString"""
2424 return _misc_
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2426 def GetExtensionsCount(*args
, **kwargs
):
2427 """GetExtensionsCount(self) -> size_t"""
2428 return _misc_
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2430 def GetIconFile(*args
, **kwargs
):
2431 """GetIconFile(self) -> String"""
2432 return _misc_
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2434 def GetIconIndex(*args
, **kwargs
):
2435 """GetIconIndex(self) -> int"""
2436 return _misc_
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2438 Description
= property(GetDescription
,doc
="See `GetDescription`")
2439 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2440 ExtensionsCount
= property(GetExtensionsCount
,doc
="See `GetExtensionsCount`")
2441 IconFile
= property(GetIconFile
,doc
="See `GetIconFile`")
2442 IconIndex
= property(GetIconIndex
,doc
="See `GetIconIndex`")
2443 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2444 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2445 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2446 ShortDesc
= property(GetShortDesc
,SetShortDesc
,doc
="See `GetShortDesc` and `SetShortDesc`")
2447 _misc_
.FileTypeInfo_swigregister(FileTypeInfo
)
2449 def FileTypeInfoSequence(*args
, **kwargs
):
2450 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2451 val
= _misc_
.new_FileTypeInfoSequence(*args
, **kwargs
)
2454 def NullFileTypeInfo(*args
, **kwargs
):
2455 """NullFileTypeInfo() -> FileTypeInfo"""
2456 val
= _misc_
.new_NullFileTypeInfo(*args
, **kwargs
)
2459 class FileType(object):
2460 """Proxy of C++ FileType class"""
2461 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2462 __repr__
= _swig_repr
2463 def __init__(self
, *args
, **kwargs
):
2464 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2465 _misc_
.FileType_swiginit(self
,_misc_
.new_FileType(*args
, **kwargs
))
2466 __swig_destroy__
= _misc_
.delete_FileType
2467 __del__
= lambda self
: None;
2468 def GetMimeType(*args
, **kwargs
):
2469 """GetMimeType(self) -> PyObject"""
2470 return _misc_
.FileType_GetMimeType(*args
, **kwargs
)
2472 def GetMimeTypes(*args
, **kwargs
):
2473 """GetMimeTypes(self) -> PyObject"""
2474 return _misc_
.FileType_GetMimeTypes(*args
, **kwargs
)
2476 def GetExtensions(*args
, **kwargs
):
2477 """GetExtensions(self) -> PyObject"""
2478 return _misc_
.FileType_GetExtensions(*args
, **kwargs
)
2480 def GetIcon(*args
, **kwargs
):
2481 """GetIcon(self) -> Icon"""
2482 return _misc_
.FileType_GetIcon(*args
, **kwargs
)
2484 def GetIconInfo(*args
, **kwargs
):
2485 """GetIconInfo(self) -> PyObject"""
2486 return _misc_
.FileType_GetIconInfo(*args
, **kwargs
)
2488 def GetDescription(*args
, **kwargs
):
2489 """GetDescription(self) -> PyObject"""
2490 return _misc_
.FileType_GetDescription(*args
, **kwargs
)
2492 def GetOpenCommand(*args
, **kwargs
):
2493 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2494 return _misc_
.FileType_GetOpenCommand(*args
, **kwargs
)
2496 def GetPrintCommand(*args
, **kwargs
):
2497 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2498 return _misc_
.FileType_GetPrintCommand(*args
, **kwargs
)
2500 def GetAllCommands(*args
, **kwargs
):
2501 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2502 return _misc_
.FileType_GetAllCommands(*args
, **kwargs
)
2504 def SetCommand(*args
, **kwargs
):
2505 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2506 return _misc_
.FileType_SetCommand(*args
, **kwargs
)
2508 def SetDefaultIcon(*args
, **kwargs
):
2509 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2510 return _misc_
.FileType_SetDefaultIcon(*args
, **kwargs
)
2512 def Unassociate(*args
, **kwargs
):
2513 """Unassociate(self) -> bool"""
2514 return _misc_
.FileType_Unassociate(*args
, **kwargs
)
2516 def ExpandCommand(*args
, **kwargs
):
2517 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2518 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2520 ExpandCommand
= staticmethod(ExpandCommand
)
2521 AllCommands
= property(GetAllCommands
,doc
="See `GetAllCommands`")
2522 Description
= property(GetDescription
,doc
="See `GetDescription`")
2523 Extensions
= property(GetExtensions
,doc
="See `GetExtensions`")
2524 Icon
= property(GetIcon
,doc
="See `GetIcon`")
2525 IconInfo
= property(GetIconInfo
,doc
="See `GetIconInfo`")
2526 MimeType
= property(GetMimeType
,doc
="See `GetMimeType`")
2527 MimeTypes
= property(GetMimeTypes
,doc
="See `GetMimeTypes`")
2528 OpenCommand
= property(GetOpenCommand
,doc
="See `GetOpenCommand`")
2529 PrintCommand
= property(GetPrintCommand
,doc
="See `GetPrintCommand`")
2530 _misc_
.FileType_swigregister(FileType
)
2532 def FileType_ExpandCommand(*args
, **kwargs
):
2533 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2534 return _misc_
.FileType_ExpandCommand(*args
, **kwargs
)
2536 class MimeTypesManager(object):
2537 """Proxy of C++ MimeTypesManager class"""
2538 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2539 __repr__
= _swig_repr
2540 def IsOfType(*args
, **kwargs
):
2541 """IsOfType(String mimeType, String wildcard) -> bool"""
2542 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2544 IsOfType
= staticmethod(IsOfType
)
2545 def __init__(self
, *args
, **kwargs
):
2546 """__init__(self) -> MimeTypesManager"""
2547 _misc_
.MimeTypesManager_swiginit(self
,_misc_
.new_MimeTypesManager(*args
, **kwargs
))
2548 def Initialize(*args
, **kwargs
):
2549 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2550 return _misc_
.MimeTypesManager_Initialize(*args
, **kwargs
)
2552 def ClearData(*args
, **kwargs
):
2553 """ClearData(self)"""
2554 return _misc_
.MimeTypesManager_ClearData(*args
, **kwargs
)
2556 def GetFileTypeFromExtension(*args
, **kwargs
):
2557 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2558 return _misc_
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2560 def GetFileTypeFromMimeType(*args
, **kwargs
):
2561 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2562 return _misc_
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2564 def ReadMailcap(*args
, **kwargs
):
2565 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2566 return _misc_
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2568 def ReadMimeTypes(*args
, **kwargs
):
2569 """ReadMimeTypes(self, String filename) -> bool"""
2570 return _misc_
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2572 def EnumAllFileTypes(*args
, **kwargs
):
2573 """EnumAllFileTypes(self) -> PyObject"""
2574 return _misc_
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2576 def AddFallback(*args
, **kwargs
):
2577 """AddFallback(self, FileTypeInfo ft)"""
2578 return _misc_
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2580 def Associate(*args
, **kwargs
):
2581 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2582 return _misc_
.MimeTypesManager_Associate(*args
, **kwargs
)
2584 def Unassociate(*args
, **kwargs
):
2585 """Unassociate(self, FileType ft) -> bool"""
2586 return _misc_
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2588 __swig_destroy__
= _misc_
.delete_MimeTypesManager
2589 __del__
= lambda self
: None;
2590 _misc_
.MimeTypesManager_swigregister(MimeTypesManager
)
2591 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2593 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2594 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2595 return _misc_
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2597 #---------------------------------------------------------------------------
2599 class ArtProvider(object):
2601 The wx.ArtProvider class is used to customize the look of wxWidgets
2602 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2603 in the standard file dialog), it does not use hard-coded resource but
2604 asks wx.ArtProvider for it instead. This way the users can plug in
2605 their own wx.ArtProvider class and easily replace standard art with
2606 his/her own version. It is easy thing to do: all that is needed is
2607 to derive a class from wx.ArtProvider, override it's CreateBitmap
2608 method and register the provider with `wx.ArtProvider.Push`::
2610 class MyArtProvider(wx.ArtProvider):
2612 wx.ArtProvider.__init__(self)
2614 def CreateBitmap(self, artid, client, size):
2619 Identifying art resources
2620 -------------------------
2622 Every bitmap is known to wx.ArtProvider under an unique ID that is
2623 used when requesting a resource from it. The IDs can have one of the
2624 following predefined values. Additionally, any string recognized by
2625 custom art providers registered using `Push` may be used.
2630 When running under GTK+ 2, GTK+ stock item IDs (e.g. 'gtk-cdrom') may be used
2631 as well. Additionally, if wxGTK was compiled against GTK+ >= 2.4, then it is
2632 also possible to load icons from current icon theme by specifying their name
2633 without the extension and directory components. Icon themes recognized by GTK+
2634 follow the freedesktop.org Icon Themes specification. Note that themes are
2635 not guaranteed to contain all icons, so wx.ArtProvider may return wx.NullBitmap
2636 or wx.NullIcon. The default theme is typically installed in /usr/share/icons/hicolor.
2638 * wx.ART_ADD_BOOKMARK
2639 * wx.ART_DEL_BOOKMARK
2640 * wx.ART_HELP_SIDE_PANEL
2641 * wx.ART_HELP_SETTINGS
2643 * wx.ART_HELP_FOLDER
2649 * wx.ART_GO_TO_PARENT
2653 * wx.ART_FILE_SAVE_AS
2657 * wx.ART_REPORT_VIEW
2665 * wx.ART_FOLDER_OPEN
2667 * wx.ART_EXECUTABLE_FILE
2668 * wx.ART_NORMAL_FILE
2674 * wx.ART_INFORMATION
2675 * wx.ART_MISSING_IMAGE
2685 * wx.ART_FIND_AND_REPLACE
2691 The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
2692 `GetIcon` function. Client IDs serve as a hint to wx.ArtProvider
2693 that is supposed to help it to choose the best looking bitmap. For
2694 example it is often desirable to use slightly different icons in menus
2695 and toolbars even though they represent the same action (e.g.
2696 wx.ART_FILE_OPEN). Remember that this is really only a hint for
2697 wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
2698 identical bitmap for different client values!
2704 * wx.ART_HELP_BROWSER
2705 * wx.ART_MESSAGE_BOX
2707 * wx.ART_OTHER (used for all requests that don't fit into any
2708 of the categories above)
2711 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2712 __repr__
= _swig_repr
2713 def __init__(self
, *args
, **kwargs
):
2715 __init__(self) -> ArtProvider
2717 The wx.ArtProvider class is used to customize the look of wxWidgets
2718 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2719 in the standard file dialog), it does not use hard-coded resource but
2720 asks wx.ArtProvider for it instead. This way the users can plug in
2721 their own wx.ArtProvider class and easily replace standard art with
2722 his/her own version. It is easy thing to do: all that is needed is
2723 to derive a class from wx.ArtProvider, override it's CreateBitmap
2724 method and register the provider with `wx.ArtProvider.Push`::
2726 class MyArtProvider(wx.ArtProvider):
2728 wx.ArtProvider.__init__(self)
2730 def CreateBitmap(self, artid, client, size):
2735 Identifying art resources
2736 -------------------------
2738 Every bitmap is known to wx.ArtProvider under an unique ID that is
2739 used when requesting a resource from it. The IDs can have one of the
2740 following predefined values. Additionally, any string recognized by
2741 custom art providers registered using `Push` may be used.
2746 When running under GTK+ 2, GTK+ stock item IDs (e.g. 'gtk-cdrom') may be used
2747 as well. Additionally, if wxGTK was compiled against GTK+ >= 2.4, then it is
2748 also possible to load icons from current icon theme by specifying their name
2749 without the extension and directory components. Icon themes recognized by GTK+
2750 follow the freedesktop.org Icon Themes specification. Note that themes are
2751 not guaranteed to contain all icons, so wx.ArtProvider may return wx.NullBitmap
2752 or wx.NullIcon. The default theme is typically installed in /usr/share/icons/hicolor.
2754 * wx.ART_ADD_BOOKMARK
2755 * wx.ART_DEL_BOOKMARK
2756 * wx.ART_HELP_SIDE_PANEL
2757 * wx.ART_HELP_SETTINGS
2759 * wx.ART_HELP_FOLDER
2765 * wx.ART_GO_TO_PARENT
2769 * wx.ART_FILE_SAVE_AS
2773 * wx.ART_REPORT_VIEW
2781 * wx.ART_FOLDER_OPEN
2783 * wx.ART_EXECUTABLE_FILE
2784 * wx.ART_NORMAL_FILE
2790 * wx.ART_INFORMATION
2791 * wx.ART_MISSING_IMAGE
2801 * wx.ART_FIND_AND_REPLACE
2807 The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
2808 `GetIcon` function. Client IDs serve as a hint to wx.ArtProvider
2809 that is supposed to help it to choose the best looking bitmap. For
2810 example it is often desirable to use slightly different icons in menus
2811 and toolbars even though they represent the same action (e.g.
2812 wx.ART_FILE_OPEN). Remember that this is really only a hint for
2813 wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
2814 identical bitmap for different client values!
2820 * wx.ART_HELP_BROWSER
2821 * wx.ART_MESSAGE_BOX
2823 * wx.ART_OTHER (used for all requests that don't fit into any
2824 of the categories above)
2827 _misc_
.ArtProvider_swiginit(self
,_misc_
.new_ArtProvider(*args
, **kwargs
))
2828 self
._setCallbackInfo
(self
, ArtProvider
)
2830 __swig_destroy__
= _misc_
.delete_ArtProvider
2831 __del__
= lambda self
: None;
2832 def _setCallbackInfo(*args
, **kwargs
):
2833 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2834 return _misc_
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2836 def Push(*args
, **kwargs
):
2838 Push(ArtProvider provider)
2840 Add new provider to the top of providers stack.
2842 return _misc_
.ArtProvider_Push(*args
, **kwargs
)
2844 Push
= staticmethod(Push
)
2846 def Insert(*args
, **kwargs
):
2848 Insert(ArtProvider provider)
2850 Add new provider to the bottom of providers stack.
2852 return _misc_
.ArtProvider_Insert(*args
, **kwargs
)
2854 Insert
= staticmethod(Insert
)
2855 InsertProvider
= Insert
2856 def Pop(*args
, **kwargs
):
2860 Remove latest added provider and delete it.
2862 return _misc_
.ArtProvider_Pop(*args
, **kwargs
)
2864 Pop
= staticmethod(Pop
)
2866 def Delete(*args
, **kwargs
):
2868 Delete(ArtProvider provider) -> bool
2870 Remove provider. The provider must have been added previously! The
2871 provider is _not_ deleted.
2873 val
= _misc_
.ArtProvider_Delete(*args
, **kwargs
)
2877 Delete
= staticmethod(Delete
)
2878 RemoveProvider
= Delete
2879 def GetBitmap(*args
, **kwargs
):
2881 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2883 Query the providers for bitmap with given ID and return it. Return
2884 wx.NullBitmap if no provider provides it.
2886 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
2888 GetBitmap
= staticmethod(GetBitmap
)
2889 def GetIcon(*args
, **kwargs
):
2891 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2893 Query the providers for icon with given ID and return it. Return
2894 wx.NullIcon if no provider provides it.
2896 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
2898 GetIcon
= staticmethod(GetIcon
)
2899 def GetSizeHint(*args
, **kwargs
):
2901 GetSizeHint(String client, bool platform_dependent=False) -> Size
2903 Get the size hint of an icon from a specific Art Client, queries the
2904 topmost provider if platform_dependent = false
2906 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
2908 GetSizeHint
= staticmethod(GetSizeHint
)
2909 def Destroy(*args
, **kwargs
):
2911 args
[0].this
.own(False)
2912 return _misc_
.ArtProvider_Destroy(*args
, **kwargs
)
2914 _misc_
.ArtProvider_swigregister(ArtProvider
)
2915 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2916 ART_MENU
= cvar
.ART_MENU
2917 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2918 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2919 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2920 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2921 ART_BUTTON
= cvar
.ART_BUTTON
2922 ART_OTHER
= cvar
.ART_OTHER
2923 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2924 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2925 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2926 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2927 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2928 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2929 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2930 ART_GO_BACK
= cvar
.ART_GO_BACK
2931 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2932 ART_GO_UP
= cvar
.ART_GO_UP
2933 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2934 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2935 ART_GO_HOME
= cvar
.ART_GO_HOME
2936 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2937 ART_FILE_SAVE
= cvar
.ART_FILE_SAVE
2938 ART_FILE_SAVE_AS
= cvar
.ART_FILE_SAVE_AS
2939 ART_PRINT
= cvar
.ART_PRINT
2940 ART_HELP
= cvar
.ART_HELP
2941 ART_TIP
= cvar
.ART_TIP
2942 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2943 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2944 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2945 ART_HARDDISK
= cvar
.ART_HARDDISK
2946 ART_FLOPPY
= cvar
.ART_FLOPPY
2947 ART_CDROM
= cvar
.ART_CDROM
2948 ART_REMOVABLE
= cvar
.ART_REMOVABLE
2949 ART_FOLDER
= cvar
.ART_FOLDER
2950 ART_FOLDER_OPEN
= cvar
.ART_FOLDER_OPEN
2951 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2952 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2953 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2954 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2955 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2956 ART_ERROR
= cvar
.ART_ERROR
2957 ART_QUESTION
= cvar
.ART_QUESTION
2958 ART_WARNING
= cvar
.ART_WARNING
2959 ART_INFORMATION
= cvar
.ART_INFORMATION
2960 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2961 ART_COPY
= cvar
.ART_COPY
2962 ART_CUT
= cvar
.ART_CUT
2963 ART_PASTE
= cvar
.ART_PASTE
2964 ART_DELETE
= cvar
.ART_DELETE
2965 ART_NEW
= cvar
.ART_NEW
2966 ART_UNDO
= cvar
.ART_UNDO
2967 ART_REDO
= cvar
.ART_REDO
2968 ART_QUIT
= cvar
.ART_QUIT
2969 ART_FIND
= cvar
.ART_FIND
2970 ART_FIND_AND_REPLACE
= cvar
.ART_FIND_AND_REPLACE
2972 def ArtProvider_Push(*args
, **kwargs
):
2974 ArtProvider_Push(ArtProvider provider)
2976 Add new provider to the top of providers stack.
2978 return _misc_
.ArtProvider_Push(*args
, **kwargs
)
2980 def ArtProvider_Insert(*args
, **kwargs
):
2982 ArtProvider_Insert(ArtProvider provider)
2984 Add new provider to the bottom of providers stack.
2986 return _misc_
.ArtProvider_Insert(*args
, **kwargs
)
2988 def ArtProvider_Pop(*args
):
2990 ArtProvider_Pop() -> bool
2992 Remove latest added provider and delete it.
2994 return _misc_
.ArtProvider_Pop(*args
)
2996 def ArtProvider_Delete(*args
, **kwargs
):
2998 ArtProvider_Delete(ArtProvider provider) -> bool
3000 Remove provider. The provider must have been added previously! The
3001 provider is _not_ deleted.
3003 val
= _misc_
.ArtProvider_Delete(*args
, **kwargs
)
3007 def ArtProvider_GetBitmap(*args
, **kwargs
):
3009 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
3011 Query the providers for bitmap with given ID and return it. Return
3012 wx.NullBitmap if no provider provides it.
3014 return _misc_
.ArtProvider_GetBitmap(*args
, **kwargs
)
3016 def ArtProvider_GetIcon(*args
, **kwargs
):
3018 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
3020 Query the providers for icon with given ID and return it. Return
3021 wx.NullIcon if no provider provides it.
3023 return _misc_
.ArtProvider_GetIcon(*args
, **kwargs
)
3025 def ArtProvider_GetSizeHint(*args
, **kwargs
):
3027 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
3029 Get the size hint of an icon from a specific Art Client, queries the
3030 topmost provider if platform_dependent = false
3032 return _misc_
.ArtProvider_GetSizeHint(*args
, **kwargs
)
3034 #---------------------------------------------------------------------------
3036 CONFIG_USE_LOCAL_FILE
= _misc_
.CONFIG_USE_LOCAL_FILE
3037 CONFIG_USE_GLOBAL_FILE
= _misc_
.CONFIG_USE_GLOBAL_FILE
3038 CONFIG_USE_RELATIVE_PATH
= _misc_
.CONFIG_USE_RELATIVE_PATH
3039 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc_
.CONFIG_USE_NO_ESCAPE_CHARACTERS
3040 class ConfigBase(object):
3042 wx.ConfigBase class defines the basic interface of all config
3043 classes. It can not be used by itself (it is an abstract base class)
3044 and you will always use one of its derivations: wx.Config or
3047 wx.ConfigBase organizes the items in a tree-like structure, modeled
3048 after the Unix/Dos filesystem. There are groups that act like
3049 directories and entries, key/value pairs that act like files. There
3050 is always one current group given by the current path. As in the file
3051 system case, to specify a key in the config class you must use a path
3052 to it. Config classes also support the notion of the current group,
3053 which makes it possible to use relative paths.
3055 Keys are pairs "key_name = value" where value may be of string,
3056 integer floating point or boolean, you can not store binary data
3057 without first encoding it as a string. For performance reasons items
3058 should be kept small, no more than a couple kilobytes.
3061 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3062 def __init__(self
): raise AttributeError, "No constructor defined"
3063 __repr__
= _swig_repr
3064 __swig_destroy__
= _misc_
.delete_ConfigBase
3065 __del__
= lambda self
: None;
3066 Type_Unknown
= _misc_
.ConfigBase_Type_Unknown
3067 Type_String
= _misc_
.ConfigBase_Type_String
3068 Type_Boolean
= _misc_
.ConfigBase_Type_Boolean
3069 Type_Integer
= _misc_
.ConfigBase_Type_Integer
3070 Type_Float
= _misc_
.ConfigBase_Type_Float
3071 def Set(*args
, **kwargs
):
3073 Set(ConfigBase config) -> ConfigBase
3075 Sets the global config object (the one returned by Get) and returns a
3076 reference to the previous global config object.
3078 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3080 Set
= staticmethod(Set
)
3081 def Get(*args
, **kwargs
):
3083 Get(bool createOnDemand=True) -> ConfigBase
3085 Returns the current global config object, creating one if neccessary.
3087 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3089 Get
= staticmethod(Get
)
3090 def Create(*args
, **kwargs
):
3092 Create() -> ConfigBase
3094 Create and return a new global config object. This function will
3095 create the "best" implementation of wx.Config available for the
3098 return _misc_
.ConfigBase_Create(*args
, **kwargs
)
3100 Create
= staticmethod(Create
)
3101 def DontCreateOnDemand(*args
, **kwargs
):
3103 DontCreateOnDemand()
3105 Should Get() try to create a new log object if there isn't a current
3108 return _misc_
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
3110 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
3111 def SetPath(*args
, **kwargs
):
3113 SetPath(self, String path)
3115 Set current path: if the first character is '/', it's the absolute
3116 path, otherwise it's a relative path. '..' is supported. If the
3117 strPath doesn't exist it is created.
3119 return _misc_
.ConfigBase_SetPath(*args
, **kwargs
)
3121 def GetPath(*args
, **kwargs
):
3123 GetPath(self) -> String
3125 Retrieve the current path (always as absolute path)
3127 return _misc_
.ConfigBase_GetPath(*args
, **kwargs
)
3129 def GetFirstGroup(*args
, **kwargs
):
3131 GetFirstGroup() -> (more, value, index)
3133 Allows enumerating the subgroups in a config object. Returns a tuple
3134 containing a flag indicating there are more items, the name of the
3135 current item, and an index to pass to GetNextGroup to fetch the next
3138 return _misc_
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
3140 def GetNextGroup(*args
, **kwargs
):
3142 GetNextGroup(long index) -> (more, value, index)
3144 Allows enumerating the subgroups in a config object. Returns a tuple
3145 containing a flag indicating there are more items, the name of the
3146 current item, and an index to pass to GetNextGroup to fetch the next
3149 return _misc_
.ConfigBase_GetNextGroup(*args
, **kwargs
)
3151 def GetFirstEntry(*args
, **kwargs
):
3153 GetFirstEntry() -> (more, value, index)
3155 Allows enumerating the entries in the current group in a config
3156 object. Returns a tuple containing a flag indicating there are more
3157 items, the name of the current item, and an index to pass to
3158 GetNextGroup to fetch the next item.
3160 return _misc_
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
3162 def GetNextEntry(*args
, **kwargs
):
3164 GetNextEntry(long index) -> (more, value, index)
3166 Allows enumerating the entries in the current group in a config
3167 object. Returns a tuple containing a flag indicating there are more
3168 items, the name of the current item, and an index to pass to
3169 GetNextGroup to fetch the next item.
3171 return _misc_
.ConfigBase_GetNextEntry(*args
, **kwargs
)
3173 def GetNumberOfEntries(*args
, **kwargs
):
3175 GetNumberOfEntries(self, bool recursive=False) -> size_t
3177 Get the number of entries in the current group, with or without its
3180 return _misc_
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
3182 def GetNumberOfGroups(*args
, **kwargs
):
3184 GetNumberOfGroups(self, bool recursive=False) -> size_t
3186 Get the number of subgroups in the current group, with or without its
3189 return _misc_
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
3191 def HasGroup(*args
, **kwargs
):
3193 HasGroup(self, String name) -> bool
3195 Returns True if the group by this name exists
3197 return _misc_
.ConfigBase_HasGroup(*args
, **kwargs
)
3199 def HasEntry(*args
, **kwargs
):
3201 HasEntry(self, String name) -> bool
3203 Returns True if the entry by this name exists
3205 return _misc_
.ConfigBase_HasEntry(*args
, **kwargs
)
3207 def Exists(*args
, **kwargs
):
3209 Exists(self, String name) -> bool
3211 Returns True if either a group or an entry with a given name exists
3213 return _misc_
.ConfigBase_Exists(*args
, **kwargs
)
3215 def GetEntryType(*args
, **kwargs
):
3217 GetEntryType(self, String name) -> int
3219 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
3221 return _misc_
.ConfigBase_GetEntryType(*args
, **kwargs
)
3223 def Read(*args
, **kwargs
):
3225 Read(self, String key, String defaultVal=EmptyString) -> String
3227 Returns the value of key if it exists, defaultVal otherwise.
3229 return _misc_
.ConfigBase_Read(*args
, **kwargs
)
3231 def ReadInt(*args
, **kwargs
):
3233 ReadInt(self, String key, long defaultVal=0) -> long
3235 Returns the value of key if it exists, defaultVal otherwise.
3237 return _misc_
.ConfigBase_ReadInt(*args
, **kwargs
)
3239 def ReadFloat(*args
, **kwargs
):
3241 ReadFloat(self, String key, double defaultVal=0.0) -> double
3243 Returns the value of key if it exists, defaultVal otherwise.
3245 return _misc_
.ConfigBase_ReadFloat(*args
, **kwargs
)
3247 def ReadBool(*args
, **kwargs
):
3249 ReadBool(self, String key, bool defaultVal=False) -> bool
3251 Returns the value of key if it exists, defaultVal otherwise.
3253 return _misc_
.ConfigBase_ReadBool(*args
, **kwargs
)
3255 def Write(*args
, **kwargs
):
3257 Write(self, String key, String value) -> bool
3259 write the value (return True on success)
3261 return _misc_
.ConfigBase_Write(*args
, **kwargs
)
3263 def WriteInt(*args
, **kwargs
):
3265 WriteInt(self, String key, long value) -> bool
3267 write the value (return True on success)
3269 return _misc_
.ConfigBase_WriteInt(*args
, **kwargs
)
3271 def WriteFloat(*args
, **kwargs
):
3273 WriteFloat(self, String key, double value) -> bool
3275 write the value (return True on success)
3277 return _misc_
.ConfigBase_WriteFloat(*args
, **kwargs
)
3279 def WriteBool(*args
, **kwargs
):
3281 WriteBool(self, String key, bool value) -> bool
3283 write the value (return True on success)
3285 return _misc_
.ConfigBase_WriteBool(*args
, **kwargs
)
3287 def Flush(*args
, **kwargs
):
3289 Flush(self, bool currentOnly=False) -> bool
3291 permanently writes all changes
3293 return _misc_
.ConfigBase_Flush(*args
, **kwargs
)
3295 def RenameEntry(*args
, **kwargs
):
3297 RenameEntry(self, String oldName, String newName) -> bool
3299 Rename an entry. Returns False on failure (probably because the new
3300 name is already taken by an existing entry)
3302 return _misc_
.ConfigBase_RenameEntry(*args
, **kwargs
)
3304 def RenameGroup(*args
, **kwargs
):
3306 RenameGroup(self, String oldName, String newName) -> bool
3308 Rename a group. Returns False on failure (probably because the new
3309 name is already taken by an existing entry)
3311 return _misc_
.ConfigBase_RenameGroup(*args
, **kwargs
)
3313 def DeleteEntry(*args
, **kwargs
):
3315 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3317 Deletes the specified entry and the group it belongs to if it was the
3318 last key in it and the second parameter is True
3320 return _misc_
.ConfigBase_DeleteEntry(*args
, **kwargs
)
3322 def DeleteGroup(*args
, **kwargs
):
3324 DeleteGroup(self, String key) -> bool
3326 Delete the group (with all subgroups)
3328 return _misc_
.ConfigBase_DeleteGroup(*args
, **kwargs
)
3330 def DeleteAll(*args
, **kwargs
):
3332 DeleteAll(self) -> bool
3334 Delete the whole underlying object (disk file, registry key, ...)
3335 primarly intended for use by deinstallation routine.
3337 return _misc_
.ConfigBase_DeleteAll(*args
, **kwargs
)
3339 def SetExpandEnvVars(*args
, **kwargs
):
3341 SetExpandEnvVars(self, bool doIt=True)
3343 We can automatically expand environment variables in the config
3344 entries this option is on by default, you can turn it on/off at any
3347 return _misc_
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
3349 def IsExpandingEnvVars(*args
, **kwargs
):
3351 IsExpandingEnvVars(self) -> bool
3353 Are we currently expanding environment variables?
3355 return _misc_
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
3357 def SetRecordDefaults(*args
, **kwargs
):
3359 SetRecordDefaults(self, bool doIt=True)
3361 Set whether the config objec should record default values.
3363 return _misc_
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
3365 def IsRecordingDefaults(*args
, **kwargs
):
3367 IsRecordingDefaults(self) -> bool
3369 Are we currently recording default values?
3371 return _misc_
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
3373 def ExpandEnvVars(*args
, **kwargs
):
3375 ExpandEnvVars(self, String str) -> String
3377 Expand any environment variables in str and return the result
3379 return _misc_
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
3381 def GetAppName(*args
, **kwargs
):
3382 """GetAppName(self) -> String"""
3383 return _misc_
.ConfigBase_GetAppName(*args
, **kwargs
)
3385 def GetVendorName(*args
, **kwargs
):
3386 """GetVendorName(self) -> String"""
3387 return _misc_
.ConfigBase_GetVendorName(*args
, **kwargs
)
3389 def SetAppName(*args
, **kwargs
):
3390 """SetAppName(self, String appName)"""
3391 return _misc_
.ConfigBase_SetAppName(*args
, **kwargs
)
3393 def SetVendorName(*args
, **kwargs
):
3394 """SetVendorName(self, String vendorName)"""
3395 return _misc_
.ConfigBase_SetVendorName(*args
, **kwargs
)
3397 def SetStyle(*args
, **kwargs
):
3398 """SetStyle(self, long style)"""
3399 return _misc_
.ConfigBase_SetStyle(*args
, **kwargs
)
3401 def GetStyle(*args
, **kwargs
):
3402 """GetStyle(self) -> long"""
3403 return _misc_
.ConfigBase_GetStyle(*args
, **kwargs
)
3405 AppName
= property(GetAppName
,SetAppName
,doc
="See `GetAppName` and `SetAppName`")
3406 EntryType
= property(GetEntryType
,doc
="See `GetEntryType`")
3407 FirstEntry
= property(GetFirstEntry
,doc
="See `GetFirstEntry`")
3408 FirstGroup
= property(GetFirstGroup
,doc
="See `GetFirstGroup`")
3409 NextEntry
= property(GetNextEntry
,doc
="See `GetNextEntry`")
3410 NextGroup
= property(GetNextGroup
,doc
="See `GetNextGroup`")
3411 NumberOfEntries
= property(GetNumberOfEntries
,doc
="See `GetNumberOfEntries`")
3412 NumberOfGroups
= property(GetNumberOfGroups
,doc
="See `GetNumberOfGroups`")
3413 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
3414 Style
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")
3415 VendorName
= property(GetVendorName
,SetVendorName
,doc
="See `GetVendorName` and `SetVendorName`")
3416 _misc_
.ConfigBase_swigregister(ConfigBase
)
3418 def ConfigBase_Set(*args
, **kwargs
):
3420 ConfigBase_Set(ConfigBase config) -> ConfigBase
3422 Sets the global config object (the one returned by Get) and returns a
3423 reference to the previous global config object.
3425 return _misc_
.ConfigBase_Set(*args
, **kwargs
)
3427 def ConfigBase_Get(*args
, **kwargs
):
3429 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3431 Returns the current global config object, creating one if neccessary.
3433 return _misc_
.ConfigBase_Get(*args
, **kwargs
)
3435 def ConfigBase_Create(*args
):
3437 ConfigBase_Create() -> ConfigBase
3439 Create and return a new global config object. This function will
3440 create the "best" implementation of wx.Config available for the
3443 return _misc_
.ConfigBase_Create(*args
)
3445 def ConfigBase_DontCreateOnDemand(*args
):
3447 ConfigBase_DontCreateOnDemand()
3449 Should Get() try to create a new log object if there isn't a current
3452 return _misc_
.ConfigBase_DontCreateOnDemand(*args
)
3454 class Config(ConfigBase
):
3456 This ConfigBase-derived class will use the registry on Windows,
3457 and will be a wx.FileConfig on other platforms.
3459 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3460 __repr__
= _swig_repr
3461 def __init__(self
, *args
, **kwargs
):
3463 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3464 String localFilename=EmptyString, String globalFilename=EmptyString,
3465 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3467 _misc_
.Config_swiginit(self
,_misc_
.new_Config(*args
, **kwargs
))
3468 __swig_destroy__
= _misc_
.delete_Config
3469 __del__
= lambda self
: None;
3470 _misc_
.Config_swigregister(Config
)
3472 class FileConfig(ConfigBase
):
3473 """This config class will use a file for storage on all platforms."""
3474 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3475 __repr__
= _swig_repr
3476 def __init__(self
, *args
, **kwargs
):
3478 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3479 String localFilename=EmptyString, String globalFilename=EmptyString,
3480 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3482 _misc_
.FileConfig_swiginit(self
,_misc_
.new_FileConfig(*args
, **kwargs
))
3483 __swig_destroy__
= _misc_
.delete_FileConfig
3484 __del__
= lambda self
: None;
3485 _misc_
.FileConfig_swigregister(FileConfig
)
3487 class ConfigPathChanger(object):
3489 A handy little class which changes current path to the path of given
3490 entry and restores it in the destructoir: so if you declare a local
3491 variable of this type, you work in the entry directory and the path is
3492 automatically restored when the function returns.
3494 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3495 __repr__
= _swig_repr
3496 def __init__(self
, *args
, **kwargs
):
3497 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3498 _misc_
.ConfigPathChanger_swiginit(self
,_misc_
.new_ConfigPathChanger(*args
, **kwargs
))
3499 __swig_destroy__
= _misc_
.delete_ConfigPathChanger
3500 __del__
= lambda self
: None;
3501 def Name(*args
, **kwargs
):
3503 Name(self) -> String
3507 return _misc_
.ConfigPathChanger_Name(*args
, **kwargs
)
3509 _misc_
.ConfigPathChanger_swigregister(ConfigPathChanger
)
3512 def ExpandEnvVars(*args
, **kwargs
):
3514 ExpandEnvVars(String sz) -> String
3516 Replace environment variables ($SOMETHING) with their values. The
3517 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3518 characters and '_' only. '$' must be escaped ('\$') in order to be
3521 return _misc_
.ExpandEnvVars(*args
, **kwargs
)
3522 #---------------------------------------------------------------------------
3524 class DateTime(object):
3525 """Proxy of C++ DateTime class"""
3526 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3527 __repr__
= _swig_repr
3528 Local
= _misc_
.DateTime_Local
3529 GMT_12
= _misc_
.DateTime_GMT_12
3530 GMT_11
= _misc_
.DateTime_GMT_11
3531 GMT_10
= _misc_
.DateTime_GMT_10
3532 GMT_9
= _misc_
.DateTime_GMT_9
3533 GMT_8
= _misc_
.DateTime_GMT_8
3534 GMT_7
= _misc_
.DateTime_GMT_7
3535 GMT_6
= _misc_
.DateTime_GMT_6
3536 GMT_5
= _misc_
.DateTime_GMT_5
3537 GMT_4
= _misc_
.DateTime_GMT_4
3538 GMT_3
= _misc_
.DateTime_GMT_3
3539 GMT_2
= _misc_
.DateTime_GMT_2
3540 GMT_1
= _misc_
.DateTime_GMT_1
3541 GMT0
= _misc_
.DateTime_GMT0
3542 GMT1
= _misc_
.DateTime_GMT1
3543 GMT2
= _misc_
.DateTime_GMT2
3544 GMT3
= _misc_
.DateTime_GMT3
3545 GMT4
= _misc_
.DateTime_GMT4
3546 GMT5
= _misc_
.DateTime_GMT5
3547 GMT6
= _misc_
.DateTime_GMT6
3548 GMT7
= _misc_
.DateTime_GMT7
3549 GMT8
= _misc_
.DateTime_GMT8
3550 GMT9
= _misc_
.DateTime_GMT9
3551 GMT10
= _misc_
.DateTime_GMT10
3552 GMT11
= _misc_
.DateTime_GMT11
3553 GMT12
= _misc_
.DateTime_GMT12
3554 WET
= _misc_
.DateTime_WET
3555 WEST
= _misc_
.DateTime_WEST
3556 CET
= _misc_
.DateTime_CET
3557 CEST
= _misc_
.DateTime_CEST
3558 EET
= _misc_
.DateTime_EET
3559 EEST
= _misc_
.DateTime_EEST
3560 MSK
= _misc_
.DateTime_MSK
3561 MSD
= _misc_
.DateTime_MSD
3562 AST
= _misc_
.DateTime_AST
3563 ADT
= _misc_
.DateTime_ADT
3564 EST
= _misc_
.DateTime_EST
3565 EDT
= _misc_
.DateTime_EDT
3566 CST
= _misc_
.DateTime_CST
3567 CDT
= _misc_
.DateTime_CDT
3568 MST
= _misc_
.DateTime_MST
3569 MDT
= _misc_
.DateTime_MDT
3570 PST
= _misc_
.DateTime_PST
3571 PDT
= _misc_
.DateTime_PDT
3572 HST
= _misc_
.DateTime_HST
3573 AKST
= _misc_
.DateTime_AKST
3574 AKDT
= _misc_
.DateTime_AKDT
3575 A_WST
= _misc_
.DateTime_A_WST
3576 A_CST
= _misc_
.DateTime_A_CST
3577 A_EST
= _misc_
.DateTime_A_EST
3578 A_ESST
= _misc_
.DateTime_A_ESST
3579 UTC
= _misc_
.DateTime_UTC
3580 Gregorian
= _misc_
.DateTime_Gregorian
3581 Julian
= _misc_
.DateTime_Julian
3582 Gr_Unknown
= _misc_
.DateTime_Gr_Unknown
3583 Gr_Standard
= _misc_
.DateTime_Gr_Standard
3584 Gr_Alaska
= _misc_
.DateTime_Gr_Alaska
3585 Gr_Albania
= _misc_
.DateTime_Gr_Albania
3586 Gr_Austria
= _misc_
.DateTime_Gr_Austria
3587 Gr_Austria_Brixen
= _misc_
.DateTime_Gr_Austria_Brixen
3588 Gr_Austria_Salzburg
= _misc_
.DateTime_Gr_Austria_Salzburg
3589 Gr_Austria_Tyrol
= _misc_
.DateTime_Gr_Austria_Tyrol
3590 Gr_Austria_Carinthia
= _misc_
.DateTime_Gr_Austria_Carinthia
3591 Gr_Austria_Styria
= _misc_
.DateTime_Gr_Austria_Styria
3592 Gr_Belgium
= _misc_
.DateTime_Gr_Belgium
3593 Gr_Bulgaria
= _misc_
.DateTime_Gr_Bulgaria
3594 Gr_Bulgaria_1
= _misc_
.DateTime_Gr_Bulgaria_1
3595 Gr_Bulgaria_2
= _misc_
.DateTime_Gr_Bulgaria_2
3596 Gr_Bulgaria_3
= _misc_
.DateTime_Gr_Bulgaria_3
3597 Gr_Canada
= _misc_
.DateTime_Gr_Canada
3598 Gr_China
= _misc_
.DateTime_Gr_China
3599 Gr_China_1
= _misc_
.DateTime_Gr_China_1
3600 Gr_China_2
= _misc_
.DateTime_Gr_China_2
3601 Gr_Czechoslovakia
= _misc_
.DateTime_Gr_Czechoslovakia
3602 Gr_Denmark
= _misc_
.DateTime_Gr_Denmark
3603 Gr_Egypt
= _misc_
.DateTime_Gr_Egypt
3604 Gr_Estonia
= _misc_
.DateTime_Gr_Estonia
3605 Gr_Finland
= _misc_
.DateTime_Gr_Finland
3606 Gr_France
= _misc_
.DateTime_Gr_France
3607 Gr_France_Alsace
= _misc_
.DateTime_Gr_France_Alsace
3608 Gr_France_Lorraine
= _misc_
.DateTime_Gr_France_Lorraine
3609 Gr_France_Strasbourg
= _misc_
.DateTime_Gr_France_Strasbourg
3610 Gr_Germany
= _misc_
.DateTime_Gr_Germany
3611 Gr_Germany_Catholic
= _misc_
.DateTime_Gr_Germany_Catholic
3612 Gr_Germany_Prussia
= _misc_
.DateTime_Gr_Germany_Prussia
3613 Gr_Germany_Protestant
= _misc_
.DateTime_Gr_Germany_Protestant
3614 Gr_GreatBritain
= _misc_
.DateTime_Gr_GreatBritain
3615 Gr_Greece
= _misc_
.DateTime_Gr_Greece
3616 Gr_Hungary
= _misc_
.DateTime_Gr_Hungary
3617 Gr_Ireland
= _misc_
.DateTime_Gr_Ireland
3618 Gr_Italy
= _misc_
.DateTime_Gr_Italy
3619 Gr_Japan
= _misc_
.DateTime_Gr_Japan
3620 Gr_Japan_1
= _misc_
.DateTime_Gr_Japan_1
3621 Gr_Japan_2
= _misc_
.DateTime_Gr_Japan_2
3622 Gr_Japan_3
= _misc_
.DateTime_Gr_Japan_3
3623 Gr_Latvia
= _misc_
.DateTime_Gr_Latvia
3624 Gr_Lithuania
= _misc_
.DateTime_Gr_Lithuania
3625 Gr_Luxemburg
= _misc_
.DateTime_Gr_Luxemburg
3626 Gr_Netherlands
= _misc_
.DateTime_Gr_Netherlands
3627 Gr_Netherlands_Groningen
= _misc_
.DateTime_Gr_Netherlands_Groningen
3628 Gr_Netherlands_Gelderland
= _misc_
.DateTime_Gr_Netherlands_Gelderland
3629 Gr_Netherlands_Utrecht
= _misc_
.DateTime_Gr_Netherlands_Utrecht
3630 Gr_Netherlands_Friesland
= _misc_
.DateTime_Gr_Netherlands_Friesland
3631 Gr_Norway
= _misc_
.DateTime_Gr_Norway
3632 Gr_Poland
= _misc_
.DateTime_Gr_Poland
3633 Gr_Portugal
= _misc_
.DateTime_Gr_Portugal
3634 Gr_Romania
= _misc_
.DateTime_Gr_Romania
3635 Gr_Russia
= _misc_
.DateTime_Gr_Russia
3636 Gr_Scotland
= _misc_
.DateTime_Gr_Scotland
3637 Gr_Spain
= _misc_
.DateTime_Gr_Spain
3638 Gr_Sweden
= _misc_
.DateTime_Gr_Sweden
3639 Gr_Switzerland
= _misc_
.DateTime_Gr_Switzerland
3640 Gr_Switzerland_Catholic
= _misc_
.DateTime_Gr_Switzerland_Catholic
3641 Gr_Switzerland_Protestant
= _misc_
.DateTime_Gr_Switzerland_Protestant
3642 Gr_Turkey
= _misc_
.DateTime_Gr_Turkey
3643 Gr_USA
= _misc_
.DateTime_Gr_USA
3644 Gr_Wales
= _misc_
.DateTime_Gr_Wales
3645 Gr_Yugoslavia
= _misc_
.DateTime_Gr_Yugoslavia
3646 Country_Unknown
= _misc_
.DateTime_Country_Unknown
3647 Country_Default
= _misc_
.DateTime_Country_Default
3648 Country_WesternEurope_Start
= _misc_
.DateTime_Country_WesternEurope_Start
3649 Country_EEC
= _misc_
.DateTime_Country_EEC
3650 France
= _misc_
.DateTime_France
3651 Germany
= _misc_
.DateTime_Germany
3652 UK
= _misc_
.DateTime_UK
3653 Country_WesternEurope_End
= _misc_
.DateTime_Country_WesternEurope_End
3654 Russia
= _misc_
.DateTime_Russia
3655 USA
= _misc_
.DateTime_USA
3656 Jan
= _misc_
.DateTime_Jan
3657 Feb
= _misc_
.DateTime_Feb
3658 Mar
= _misc_
.DateTime_Mar
3659 Apr
= _misc_
.DateTime_Apr
3660 May
= _misc_
.DateTime_May
3661 Jun
= _misc_
.DateTime_Jun
3662 Jul
= _misc_
.DateTime_Jul
3663 Aug
= _misc_
.DateTime_Aug
3664 Sep
= _misc_
.DateTime_Sep
3665 Oct
= _misc_
.DateTime_Oct
3666 Nov
= _misc_
.DateTime_Nov
3667 Dec
= _misc_
.DateTime_Dec
3668 Inv_Month
= _misc_
.DateTime_Inv_Month
3669 Sun
= _misc_
.DateTime_Sun
3670 Mon
= _misc_
.DateTime_Mon
3671 Tue
= _misc_
.DateTime_Tue
3672 Wed
= _misc_
.DateTime_Wed
3673 Thu
= _misc_
.DateTime_Thu
3674 Fri
= _misc_
.DateTime_Fri
3675 Sat
= _misc_
.DateTime_Sat
3676 Inv_WeekDay
= _misc_
.DateTime_Inv_WeekDay
3677 Inv_Year
= _misc_
.DateTime_Inv_Year
3678 Name_Full
= _misc_
.DateTime_Name_Full
3679 Name_Abbr
= _misc_
.DateTime_Name_Abbr
3680 Default_First
= _misc_
.DateTime_Default_First
3681 Monday_First
= _misc_
.DateTime_Monday_First
3682 Sunday_First
= _misc_
.DateTime_Sunday_First
3683 def SetCountry(*args
, **kwargs
):
3684 """SetCountry(int country)"""
3685 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
3687 SetCountry
= staticmethod(SetCountry
)
3688 def GetCountry(*args
, **kwargs
):
3689 """GetCountry() -> int"""
3690 return _misc_
.DateTime_GetCountry(*args
, **kwargs
)
3692 GetCountry
= staticmethod(GetCountry
)
3693 def IsWestEuropeanCountry(*args
, **kwargs
):
3694 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3695 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3697 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
3698 def GetCurrentYear(*args
, **kwargs
):
3699 """GetCurrentYear(int cal=Gregorian) -> int"""
3700 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
3702 GetCurrentYear
= staticmethod(GetCurrentYear
)
3703 def ConvertYearToBC(*args
, **kwargs
):
3704 """ConvertYearToBC(int year) -> int"""
3705 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3707 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
3708 def GetCurrentMonth(*args
, **kwargs
):
3709 """GetCurrentMonth(int cal=Gregorian) -> int"""
3710 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3712 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
3713 def IsLeapYear(*args
, **kwargs
):
3714 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3715 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
3717 IsLeapYear
= staticmethod(IsLeapYear
)
3718 def GetCentury(*args
, **kwargs
):
3719 """GetCentury(int year=Inv_Year) -> int"""
3720 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
3722 GetCentury
= staticmethod(GetCentury
)
3723 def GetNumberOfDaysinYear(*args
, **kwargs
):
3724 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3725 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3727 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
3728 def GetNumberOfDaysInMonth(*args
, **kwargs
):
3729 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3730 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3732 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
3733 def GetMonthName(*args
, **kwargs
):
3734 """GetMonthName(int month, int flags=Name_Full) -> String"""
3735 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
3737 GetMonthName
= staticmethod(GetMonthName
)
3738 def GetWeekDayName(*args
, **kwargs
):
3739 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3740 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
3742 GetWeekDayName
= staticmethod(GetWeekDayName
)
3743 def GetAmPmStrings(*args
, **kwargs
):
3745 GetAmPmStrings() -> (am, pm)
3747 Get the AM and PM strings in the current locale (may be empty)
3749 return _misc_
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3751 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
3752 def IsDSTApplicable(*args
, **kwargs
):
3753 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3754 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3756 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
3757 def GetBeginDST(*args
, **kwargs
):
3758 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3759 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
3761 GetBeginDST
= staticmethod(GetBeginDST
)
3762 def GetEndDST(*args
, **kwargs
):
3763 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3764 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
3766 GetEndDST
= staticmethod(GetEndDST
)
3767 def Now(*args
, **kwargs
):
3768 """Now() -> DateTime"""
3769 return _misc_
.DateTime_Now(*args
, **kwargs
)
3771 Now
= staticmethod(Now
)
3772 def UNow(*args
, **kwargs
):
3773 """UNow() -> DateTime"""
3774 return _misc_
.DateTime_UNow(*args
, **kwargs
)
3776 UNow
= staticmethod(UNow
)
3777 def Today(*args
, **kwargs
):
3778 """Today() -> DateTime"""
3779 return _misc_
.DateTime_Today(*args
, **kwargs
)
3781 Today
= staticmethod(Today
)
3782 def __init__(self
, *args
, **kwargs
):
3783 """__init__(self) -> DateTime"""
3784 _misc_
.DateTime_swiginit(self
,_misc_
.new_DateTime(*args
, **kwargs
))
3785 __swig_destroy__
= _misc_
.delete_DateTime
3786 __del__
= lambda self
: None;
3787 def SetToCurrent(*args
, **kwargs
):
3788 """SetToCurrent(self) -> DateTime"""
3789 return _misc_
.DateTime_SetToCurrent(*args
, **kwargs
)
3791 def SetTimeT(*args
, **kwargs
):
3792 """SetTimeT(self, time_t timet) -> DateTime"""
3793 return _misc_
.DateTime_SetTimeT(*args
, **kwargs
)
3795 def SetJDN(*args
, **kwargs
):
3796 """SetJDN(self, double jdn) -> DateTime"""
3797 return _misc_
.DateTime_SetJDN(*args
, **kwargs
)
3799 def SetHMS(*args
, **kwargs
):
3800 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3801 return _misc_
.DateTime_SetHMS(*args
, **kwargs
)
3803 def Set(*args
, **kwargs
):
3805 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3806 int minute=0, int second=0, int millisec=0) -> DateTime
3808 return _misc_
.DateTime_Set(*args
, **kwargs
)
3810 def ResetTime(*args
, **kwargs
):
3811 """ResetTime(self) -> DateTime"""
3812 return _misc_
.DateTime_ResetTime(*args
, **kwargs
)
3814 def SetYear(*args
, **kwargs
):
3815 """SetYear(self, int year) -> DateTime"""
3816 return _misc_
.DateTime_SetYear(*args
, **kwargs
)
3818 def SetMonth(*args
, **kwargs
):
3819 """SetMonth(self, int month) -> DateTime"""
3820 return _misc_
.DateTime_SetMonth(*args
, **kwargs
)
3822 def SetDay(*args
, **kwargs
):
3823 """SetDay(self, int day) -> DateTime"""
3824 return _misc_
.DateTime_SetDay(*args
, **kwargs
)
3826 def SetHour(*args
, **kwargs
):
3827 """SetHour(self, int hour) -> DateTime"""
3828 return _misc_
.DateTime_SetHour(*args
, **kwargs
)
3830 def SetMinute(*args
, **kwargs
):
3831 """SetMinute(self, int minute) -> DateTime"""
3832 return _misc_
.DateTime_SetMinute(*args
, **kwargs
)
3834 def SetSecond(*args
, **kwargs
):
3835 """SetSecond(self, int second) -> DateTime"""
3836 return _misc_
.DateTime_SetSecond(*args
, **kwargs
)
3838 def SetMillisecond(*args
, **kwargs
):
3839 """SetMillisecond(self, int millisecond) -> DateTime"""
3840 return _misc_
.DateTime_SetMillisecond(*args
, **kwargs
)
3842 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3843 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3844 return _misc_
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3846 def GetWeekDayInSameWeek(*args
, **kwargs
):
3847 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3848 return _misc_
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3850 def SetToNextWeekDay(*args
, **kwargs
):
3851 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3852 return _misc_
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3854 def GetNextWeekDay(*args
, **kwargs
):
3855 """GetNextWeekDay(self, int weekday) -> DateTime"""
3856 return _misc_
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3858 def SetToPrevWeekDay(*args
, **kwargs
):
3859 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3860 return _misc_
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3862 def GetPrevWeekDay(*args
, **kwargs
):
3863 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3864 return _misc_
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3866 def SetToWeekDay(*args
, **kwargs
):
3867 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3868 return _misc_
.DateTime_SetToWeekDay(*args
, **kwargs
)
3870 def SetToLastWeekDay(*args
, **kwargs
):
3871 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3872 return _misc_
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3874 def GetLastWeekDay(*args
, **kwargs
):
3875 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3876 return _misc_
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3878 def SetToTheWeek(*args
, **kwargs
):
3879 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3880 return _misc_
.DateTime_SetToTheWeek(*args
, **kwargs
)
3882 def GetWeek(*args
, **kwargs
):
3883 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3884 return _misc_
.DateTime_GetWeek(*args
, **kwargs
)
3886 SetToTheWeek
= wx
._deprecated
(SetToTheWeek
, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3887 GetWeek
= wx
._deprecated
(GetWeek
, "GetWeek is deprecated, use GetWeekOfYear instead")
3889 def SetToWeekOfYear(*args
, **kwargs
):
3890 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3891 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
3893 SetToWeekOfYear
= staticmethod(SetToWeekOfYear
)
3894 def SetToLastMonthDay(*args
, **kwargs
):
3895 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3896 return _misc_
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3898 def GetLastMonthDay(*args
, **kwargs
):
3899 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3900 return _misc_
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3902 def SetToYearDay(*args
, **kwargs
):
3903 """SetToYearDay(self, int yday) -> DateTime"""
3904 return _misc_
.DateTime_SetToYearDay(*args
, **kwargs
)
3906 def GetYearDay(*args
, **kwargs
):
3907 """GetYearDay(self, int yday) -> DateTime"""
3908 return _misc_
.DateTime_GetYearDay(*args
, **kwargs
)
3910 def GetJulianDayNumber(*args
, **kwargs
):
3911 """GetJulianDayNumber(self) -> double"""
3912 return _misc_
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3914 def GetJDN(*args
, **kwargs
):
3915 """GetJDN(self) -> double"""
3916 return _misc_
.DateTime_GetJDN(*args
, **kwargs
)
3918 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3919 """GetModifiedJulianDayNumber(self) -> double"""
3920 return _misc_
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3922 def GetMJD(*args
, **kwargs
):
3923 """GetMJD(self) -> double"""
3924 return _misc_
.DateTime_GetMJD(*args
, **kwargs
)
3926 def GetRataDie(*args
, **kwargs
):
3927 """GetRataDie(self) -> double"""
3928 return _misc_
.DateTime_GetRataDie(*args
, **kwargs
)
3930 def ToTimezone(*args
, **kwargs
):
3931 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3932 return _misc_
.DateTime_ToTimezone(*args
, **kwargs
)
3934 def MakeTimezone(*args
, **kwargs
):
3935 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3936 return _misc_
.DateTime_MakeTimezone(*args
, **kwargs
)
3938 def FromTimezone(*args
, **kwargs
):
3939 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3940 return _misc_
.DateTime_FromTimezone(*args
, **kwargs
)
3942 def MakeFromTimezone(*args
, **kwargs
):
3943 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3944 return _misc_
.DateTime_MakeFromTimezone(*args
, **kwargs
)
3946 def ToUTC(*args
, **kwargs
):
3947 """ToUTC(self, bool noDST=False) -> DateTime"""
3948 return _misc_
.DateTime_ToUTC(*args
, **kwargs
)
3950 def MakeUTC(*args
, **kwargs
):
3951 """MakeUTC(self, bool noDST=False) -> DateTime"""
3952 return _misc_
.DateTime_MakeUTC(*args
, **kwargs
)
3954 def ToGMT(*args
, **kwargs
):
3955 """ToGMT(self, bool noDST=False) -> DateTime"""
3956 return _misc_
.DateTime_ToGMT(*args
, **kwargs
)
3958 def MakeGMT(*args
, **kwargs
):
3959 """MakeGMT(self, bool noDST=False) -> DateTime"""
3960 return _misc_
.DateTime_MakeGMT(*args
, **kwargs
)
3962 def FromUTC(*args
, **kwargs
):
3963 """FromUTC(self, bool noDST=False) -> DateTime"""
3964 return _misc_
.DateTime_FromUTC(*args
, **kwargs
)
3966 def MakeFromUTC(*args
, **kwargs
):
3967 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3968 return _misc_
.DateTime_MakeFromUTC(*args
, **kwargs
)
3970 def IsDST(*args
, **kwargs
):
3971 """IsDST(self, int country=Country_Default) -> int"""
3972 return _misc_
.DateTime_IsDST(*args
, **kwargs
)
3974 def IsValid(*args
, **kwargs
):
3975 """IsValid(self) -> bool"""
3976 return _misc_
.DateTime_IsValid(*args
, **kwargs
)
3980 def __nonzero__(self
): return self
.IsOk()
3981 def GetTicks(*args
, **kwargs
):
3982 """GetTicks(self) -> time_t"""
3983 return _misc_
.DateTime_GetTicks(*args
, **kwargs
)
3985 def GetYear(*args
, **kwargs
):
3986 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3987 return _misc_
.DateTime_GetYear(*args
, **kwargs
)
3989 def GetMonth(*args
, **kwargs
):
3990 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3991 return _misc_
.DateTime_GetMonth(*args
, **kwargs
)
3993 def GetDay(*args
, **kwargs
):
3994 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3995 return _misc_
.DateTime_GetDay(*args
, **kwargs
)
3997 def GetWeekDay(*args
, **kwargs
):
3998 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3999 return _misc_
.DateTime_GetWeekDay(*args
, **kwargs
)
4001 def GetHour(*args
, **kwargs
):
4002 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4003 return _misc_
.DateTime_GetHour(*args
, **kwargs
)
4005 def GetMinute(*args
, **kwargs
):
4006 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4007 return _misc_
.DateTime_GetMinute(*args
, **kwargs
)
4009 def GetSecond(*args
, **kwargs
):
4010 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4011 return _misc_
.DateTime_GetSecond(*args
, **kwargs
)
4013 def GetMillisecond(*args
, **kwargs
):
4014 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4015 return _misc_
.DateTime_GetMillisecond(*args
, **kwargs
)
4017 def GetDayOfYear(*args
, **kwargs
):
4018 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4019 return _misc_
.DateTime_GetDayOfYear(*args
, **kwargs
)
4021 def GetWeekOfYear(*args
, **kwargs
):
4022 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4023 return _misc_
.DateTime_GetWeekOfYear(*args
, **kwargs
)
4025 def GetWeekOfMonth(*args
, **kwargs
):
4026 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
4027 return _misc_
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
4029 def IsWorkDay(*args
, **kwargs
):
4030 """IsWorkDay(self, int country=Country_Default) -> bool"""
4031 return _misc_
.DateTime_IsWorkDay(*args
, **kwargs
)
4033 def IsEqualTo(*args
, **kwargs
):
4034 """IsEqualTo(self, DateTime datetime) -> bool"""
4035 return _misc_
.DateTime_IsEqualTo(*args
, **kwargs
)
4037 def IsEarlierThan(*args
, **kwargs
):
4038 """IsEarlierThan(self, DateTime datetime) -> bool"""
4039 return _misc_
.DateTime_IsEarlierThan(*args
, **kwargs
)
4041 def IsLaterThan(*args
, **kwargs
):
4042 """IsLaterThan(self, DateTime datetime) -> bool"""
4043 return _misc_
.DateTime_IsLaterThan(*args
, **kwargs
)
4045 def IsStrictlyBetween(*args
, **kwargs
):
4046 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
4047 return _misc_
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
4049 def IsBetween(*args
, **kwargs
):
4050 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
4051 return _misc_
.DateTime_IsBetween(*args
, **kwargs
)
4053 def IsSameDate(*args
, **kwargs
):
4054 """IsSameDate(self, DateTime dt) -> bool"""
4055 return _misc_
.DateTime_IsSameDate(*args
, **kwargs
)
4057 def IsSameTime(*args
, **kwargs
):
4058 """IsSameTime(self, DateTime dt) -> bool"""
4059 return _misc_
.DateTime_IsSameTime(*args
, **kwargs
)
4061 def IsEqualUpTo(*args
, **kwargs
):
4062 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
4063 return _misc_
.DateTime_IsEqualUpTo(*args
, **kwargs
)
4065 def AddTS(*args
, **kwargs
):
4066 """AddTS(self, TimeSpan diff) -> DateTime"""
4067 return _misc_
.DateTime_AddTS(*args
, **kwargs
)
4069 def AddDS(*args
, **kwargs
):
4070 """AddDS(self, DateSpan diff) -> DateTime"""
4071 return _misc_
.DateTime_AddDS(*args
, **kwargs
)
4073 def SubtractTS(*args
, **kwargs
):
4074 """SubtractTS(self, TimeSpan diff) -> DateTime"""
4075 return _misc_
.DateTime_SubtractTS(*args
, **kwargs
)
4077 def SubtractDS(*args
, **kwargs
):
4078 """SubtractDS(self, DateSpan diff) -> DateTime"""
4079 return _misc_
.DateTime_SubtractDS(*args
, **kwargs
)
4081 def Subtract(*args
, **kwargs
):
4082 """Subtract(self, DateTime dt) -> TimeSpan"""
4083 return _misc_
.DateTime_Subtract(*args
, **kwargs
)
4085 def __iadd__(*args
):
4087 __iadd__(self, TimeSpan diff) -> DateTime
4088 __iadd__(self, DateSpan diff) -> DateTime
4090 return _misc_
.DateTime___iadd__(*args
)
4092 def __isub__(*args
):
4094 __isub__(self, TimeSpan diff) -> DateTime
4095 __isub__(self, DateSpan diff) -> DateTime
4097 return _misc_
.DateTime___isub__(*args
)
4101 __add__(self, TimeSpan other) -> DateTime
4102 __add__(self, DateSpan other) -> DateTime
4104 return _misc_
.DateTime___add__(*args
)
4108 __sub__(self, DateTime other) -> TimeSpan
4109 __sub__(self, TimeSpan other) -> DateTime
4110 __sub__(self, DateSpan other) -> DateTime
4112 return _misc_
.DateTime___sub__(*args
)
4114 def __lt__(*args
, **kwargs
):
4115 """__lt__(self, DateTime other) -> bool"""
4116 return _misc_
.DateTime___lt__(*args
, **kwargs
)
4118 def __le__(*args
, **kwargs
):
4119 """__le__(self, DateTime other) -> bool"""
4120 return _misc_
.DateTime___le__(*args
, **kwargs
)
4122 def __gt__(*args
, **kwargs
):
4123 """__gt__(self, DateTime other) -> bool"""
4124 return _misc_
.DateTime___gt__(*args
, **kwargs
)
4126 def __ge__(*args
, **kwargs
):
4127 """__ge__(self, DateTime other) -> bool"""
4128 return _misc_
.DateTime___ge__(*args
, **kwargs
)
4130 def __eq__(*args
, **kwargs
):
4131 """__eq__(self, DateTime other) -> bool"""
4132 return _misc_
.DateTime___eq__(*args
, **kwargs
)
4134 def __ne__(*args
, **kwargs
):
4135 """__ne__(self, DateTime other) -> bool"""
4136 return _misc_
.DateTime___ne__(*args
, **kwargs
)
4138 def ParseRfc822Date(*args
, **kwargs
):
4139 """ParseRfc822Date(self, String date) -> int"""
4140 return _misc_
.DateTime_ParseRfc822Date(*args
, **kwargs
)
4142 def ParseFormat(*args
, **kwargs
):
4143 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
4144 return _misc_
.DateTime_ParseFormat(*args
, **kwargs
)
4146 def ParseDateTime(*args
, **kwargs
):
4147 """ParseDateTime(self, String datetime) -> int"""
4148 return _misc_
.DateTime_ParseDateTime(*args
, **kwargs
)
4150 def ParseDate(*args
, **kwargs
):
4151 """ParseDate(self, String date) -> int"""
4152 return _misc_
.DateTime_ParseDate(*args
, **kwargs
)
4154 def ParseTime(*args
, **kwargs
):
4155 """ParseTime(self, String time) -> int"""
4156 return _misc_
.DateTime_ParseTime(*args
, **kwargs
)
4158 def Format(*args
, **kwargs
):
4159 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
4160 return _misc_
.DateTime_Format(*args
, **kwargs
)
4162 def FormatDate(*args
, **kwargs
):
4163 """FormatDate(self) -> String"""
4164 return _misc_
.DateTime_FormatDate(*args
, **kwargs
)
4166 def FormatTime(*args
, **kwargs
):
4167 """FormatTime(self) -> String"""
4168 return _misc_
.DateTime_FormatTime(*args
, **kwargs
)
4170 def FormatISODate(*args
, **kwargs
):
4171 """FormatISODate(self) -> String"""
4172 return _misc_
.DateTime_FormatISODate(*args
, **kwargs
)
4174 def FormatISOTime(*args
, **kwargs
):
4175 """FormatISOTime(self) -> String"""
4176 return _misc_
.DateTime_FormatISOTime(*args
, **kwargs
)
4180 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4181 return '<wx.DateTime: \"%s\" at %s>' % ( f
, self
.this
)
4183 return '<wx.DateTime: \"INVALID\" at %s>' % self
.this
4186 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4188 return "INVALID DateTime"
4190 Day
= property(GetDay
,SetDay
,doc
="See `GetDay` and `SetDay`")
4191 DayOfYear
= property(GetDayOfYear
,doc
="See `GetDayOfYear`")
4192 Hour
= property(GetHour
,SetHour
,doc
="See `GetHour` and `SetHour`")
4193 JDN
= property(GetJDN
,SetJDN
,doc
="See `GetJDN` and `SetJDN`")
4194 JulianDayNumber
= property(GetJulianDayNumber
,doc
="See `GetJulianDayNumber`")
4195 LastMonthDay
= property(GetLastMonthDay
,doc
="See `GetLastMonthDay`")
4196 LastWeekDay
= property(GetLastWeekDay
,doc
="See `GetLastWeekDay`")
4197 MJD
= property(GetMJD
,doc
="See `GetMJD`")
4198 Millisecond
= property(GetMillisecond
,SetMillisecond
,doc
="See `GetMillisecond` and `SetMillisecond`")
4199 Minute
= property(GetMinute
,SetMinute
,doc
="See `GetMinute` and `SetMinute`")
4200 ModifiedJulianDayNumber
= property(GetModifiedJulianDayNumber
,doc
="See `GetModifiedJulianDayNumber`")
4201 Month
= property(GetMonth
,SetMonth
,doc
="See `GetMonth` and `SetMonth`")
4202 NextWeekDay
= property(GetNextWeekDay
,doc
="See `GetNextWeekDay`")
4203 PrevWeekDay
= property(GetPrevWeekDay
,doc
="See `GetPrevWeekDay`")
4204 RataDie
= property(GetRataDie
,doc
="See `GetRataDie`")
4205 Second
= property(GetSecond
,SetSecond
,doc
="See `GetSecond` and `SetSecond`")
4206 Ticks
= property(GetTicks
,doc
="See `GetTicks`")
4207 Week
= property(GetWeek
,doc
="See `GetWeek`")
4208 WeekDay
= property(GetWeekDay
,doc
="See `GetWeekDay`")
4209 WeekDayInSameWeek
= property(GetWeekDayInSameWeek
,doc
="See `GetWeekDayInSameWeek`")
4210 WeekOfMonth
= property(GetWeekOfMonth
,doc
="See `GetWeekOfMonth`")
4211 WeekOfYear
= property(GetWeekOfYear
,doc
="See `GetWeekOfYear`")
4212 Year
= property(GetYear
,SetYear
,doc
="See `GetYear` and `SetYear`")
4213 YearDay
= property(GetYearDay
,doc
="See `GetYearDay`")
4214 _misc_
.DateTime_swigregister(DateTime
)
4215 DefaultDateTimeFormat
= cvar
.DefaultDateTimeFormat
4216 DefaultTimeSpanFormat
= cvar
.DefaultTimeSpanFormat
4218 def DateTime_SetCountry(*args
, **kwargs
):
4219 """DateTime_SetCountry(int country)"""
4220 return _misc_
.DateTime_SetCountry(*args
, **kwargs
)
4222 def DateTime_GetCountry(*args
):
4223 """DateTime_GetCountry() -> int"""
4224 return _misc_
.DateTime_GetCountry(*args
)
4226 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
4227 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
4228 return _misc_
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
4230 def DateTime_GetCurrentYear(*args
, **kwargs
):
4231 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
4232 return _misc_
.DateTime_GetCurrentYear(*args
, **kwargs
)
4234 def DateTime_ConvertYearToBC(*args
, **kwargs
):
4235 """DateTime_ConvertYearToBC(int year) -> int"""
4236 return _misc_
.DateTime_ConvertYearToBC(*args
, **kwargs
)
4238 def DateTime_GetCurrentMonth(*args
, **kwargs
):
4239 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
4240 return _misc_
.DateTime_GetCurrentMonth(*args
, **kwargs
)
4242 def DateTime_IsLeapYear(*args
, **kwargs
):
4243 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
4244 return _misc_
.DateTime_IsLeapYear(*args
, **kwargs
)
4246 def DateTime_GetCentury(*args
, **kwargs
):
4247 """DateTime_GetCentury(int year=Inv_Year) -> int"""
4248 return _misc_
.DateTime_GetCentury(*args
, **kwargs
)
4250 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
4251 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
4252 return _misc_
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
4254 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
4255 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
4256 return _misc_
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
4258 def DateTime_GetMonthName(*args
, **kwargs
):
4259 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
4260 return _misc_
.DateTime_GetMonthName(*args
, **kwargs
)
4262 def DateTime_GetWeekDayName(*args
, **kwargs
):
4263 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
4264 return _misc_
.DateTime_GetWeekDayName(*args
, **kwargs
)
4266 def DateTime_GetAmPmStrings(*args
):
4268 GetAmPmStrings() -> (am, pm)
4270 Get the AM and PM strings in the current locale (may be empty)
4272 return _misc_
.DateTime_GetAmPmStrings(*args
)
4274 def DateTime_IsDSTApplicable(*args
, **kwargs
):
4275 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
4276 return _misc_
.DateTime_IsDSTApplicable(*args
, **kwargs
)
4278 def DateTime_GetBeginDST(*args
, **kwargs
):
4279 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4280 return _misc_
.DateTime_GetBeginDST(*args
, **kwargs
)
4282 def DateTime_GetEndDST(*args
, **kwargs
):
4283 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4284 return _misc_
.DateTime_GetEndDST(*args
, **kwargs
)
4286 def DateTime_Now(*args
):
4287 """DateTime_Now() -> DateTime"""
4288 return _misc_
.DateTime_Now(*args
)
4290 def DateTime_UNow(*args
):
4291 """DateTime_UNow() -> DateTime"""
4292 return _misc_
.DateTime_UNow(*args
)
4294 def DateTime_Today(*args
):
4295 """DateTime_Today() -> DateTime"""
4296 return _misc_
.DateTime_Today(*args
)
4298 def DateTimeFromTimeT(*args
, **kwargs
):
4299 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4300 val
= _misc_
.new_DateTimeFromTimeT(*args
, **kwargs
)
4303 def DateTimeFromJDN(*args
, **kwargs
):
4304 """DateTimeFromJDN(double jdn) -> DateTime"""
4305 val
= _misc_
.new_DateTimeFromJDN(*args
, **kwargs
)
4308 def DateTimeFromHMS(*args
, **kwargs
):
4309 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4310 val
= _misc_
.new_DateTimeFromHMS(*args
, **kwargs
)
4313 def DateTimeFromDMY(*args
, **kwargs
):
4315 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4316 int minute=0, int second=0, int millisec=0) -> DateTime
4318 val
= _misc_
.new_DateTimeFromDMY(*args
, **kwargs
)
4321 def DateTimeFromDateTime(*args
, **kwargs
):
4322 """DateTimeFromDateTime(DateTime date) -> DateTime"""
4323 val
= _misc_
.new_DateTimeFromDateTime(*args
, **kwargs
)
4326 def DateTime_SetToWeekOfYear(*args
, **kwargs
):
4327 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4328 return _misc_
.DateTime_SetToWeekOfYear(*args
, **kwargs
)
4330 class TimeSpan(object):
4331 """Proxy of C++ TimeSpan class"""
4332 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4333 __repr__
= _swig_repr
4334 def Milliseconds(*args
, **kwargs
):
4335 """Milliseconds(long ms) -> TimeSpan"""
4336 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4338 Milliseconds
= staticmethod(Milliseconds
)
4339 def Millisecond(*args
, **kwargs
):
4340 """Millisecond() -> TimeSpan"""
4341 return _misc_
.TimeSpan_Millisecond(*args
, **kwargs
)
4343 Millisecond
= staticmethod(Millisecond
)
4344 def Seconds(*args
, **kwargs
):
4345 """Seconds(long sec) -> TimeSpan"""
4346 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4348 Seconds
= staticmethod(Seconds
)
4349 def Second(*args
, **kwargs
):
4350 """Second() -> TimeSpan"""
4351 return _misc_
.TimeSpan_Second(*args
, **kwargs
)
4353 Second
= staticmethod(Second
)
4354 def Minutes(*args
, **kwargs
):
4355 """Minutes(long min) -> TimeSpan"""
4356 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4358 Minutes
= staticmethod(Minutes
)
4359 def Minute(*args
, **kwargs
):
4360 """Minute() -> TimeSpan"""
4361 return _misc_
.TimeSpan_Minute(*args
, **kwargs
)
4363 Minute
= staticmethod(Minute
)
4364 def Hours(*args
, **kwargs
):
4365 """Hours(long hours) -> TimeSpan"""
4366 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4368 Hours
= staticmethod(Hours
)
4369 def Hour(*args
, **kwargs
):
4370 """Hour() -> TimeSpan"""
4371 return _misc_
.TimeSpan_Hour(*args
, **kwargs
)
4373 Hour
= staticmethod(Hour
)
4374 def Days(*args
, **kwargs
):
4375 """Days(long days) -> TimeSpan"""
4376 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4378 Days
= staticmethod(Days
)
4379 def Day(*args
, **kwargs
):
4380 """Day() -> TimeSpan"""
4381 return _misc_
.TimeSpan_Day(*args
, **kwargs
)
4383 Day
= staticmethod(Day
)
4384 def Weeks(*args
, **kwargs
):
4385 """Weeks(long days) -> TimeSpan"""
4386 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4388 Weeks
= staticmethod(Weeks
)
4389 def Week(*args
, **kwargs
):
4390 """Week() -> TimeSpan"""
4391 return _misc_
.TimeSpan_Week(*args
, **kwargs
)
4393 Week
= staticmethod(Week
)
4394 def __init__(self
, *args
, **kwargs
):
4395 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4396 _misc_
.TimeSpan_swiginit(self
,_misc_
.new_TimeSpan(*args
, **kwargs
))
4397 __swig_destroy__
= _misc_
.delete_TimeSpan
4398 __del__
= lambda self
: None;
4399 def Add(*args
, **kwargs
):
4400 """Add(self, TimeSpan diff) -> TimeSpan"""
4401 return _misc_
.TimeSpan_Add(*args
, **kwargs
)
4403 def Subtract(*args
, **kwargs
):
4404 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4405 return _misc_
.TimeSpan_Subtract(*args
, **kwargs
)
4407 def Multiply(*args
, **kwargs
):
4408 """Multiply(self, int n) -> TimeSpan"""
4409 return _misc_
.TimeSpan_Multiply(*args
, **kwargs
)
4411 def Neg(*args
, **kwargs
):
4412 """Neg(self) -> TimeSpan"""
4413 return _misc_
.TimeSpan_Neg(*args
, **kwargs
)
4415 def Abs(*args
, **kwargs
):
4416 """Abs(self) -> TimeSpan"""
4417 return _misc_
.TimeSpan_Abs(*args
, **kwargs
)
4419 def __iadd__(*args
, **kwargs
):
4420 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4421 return _misc_
.TimeSpan___iadd__(*args
, **kwargs
)
4423 def __isub__(*args
, **kwargs
):
4424 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4425 return _misc_
.TimeSpan___isub__(*args
, **kwargs
)
4427 def __imul__(*args
, **kwargs
):
4428 """__imul__(self, int n) -> TimeSpan"""
4429 return _misc_
.TimeSpan___imul__(*args
, **kwargs
)
4431 def __neg__(*args
, **kwargs
):
4432 """__neg__(self) -> TimeSpan"""
4433 return _misc_
.TimeSpan___neg__(*args
, **kwargs
)
4435 def __add__(*args
, **kwargs
):
4436 """__add__(self, TimeSpan other) -> TimeSpan"""
4437 return _misc_
.TimeSpan___add__(*args
, **kwargs
)
4439 def __sub__(*args
, **kwargs
):
4440 """__sub__(self, TimeSpan other) -> TimeSpan"""
4441 return _misc_
.TimeSpan___sub__(*args
, **kwargs
)
4443 def __mul__(*args
, **kwargs
):
4444 """__mul__(self, int n) -> TimeSpan"""
4445 return _misc_
.TimeSpan___mul__(*args
, **kwargs
)
4447 def __rmul__(*args
, **kwargs
):
4448 """__rmul__(self, int n) -> TimeSpan"""
4449 return _misc_
.TimeSpan___rmul__(*args
, **kwargs
)
4451 def __lt__(*args
, **kwargs
):
4452 """__lt__(self, TimeSpan other) -> bool"""
4453 return _misc_
.TimeSpan___lt__(*args
, **kwargs
)
4455 def __le__(*args
, **kwargs
):
4456 """__le__(self, TimeSpan other) -> bool"""
4457 return _misc_
.TimeSpan___le__(*args
, **kwargs
)
4459 def __gt__(*args
, **kwargs
):
4460 """__gt__(self, TimeSpan other) -> bool"""
4461 return _misc_
.TimeSpan___gt__(*args
, **kwargs
)
4463 def __ge__(*args
, **kwargs
):
4464 """__ge__(self, TimeSpan other) -> bool"""
4465 return _misc_
.TimeSpan___ge__(*args
, **kwargs
)
4467 def __eq__(*args
, **kwargs
):
4468 """__eq__(self, TimeSpan other) -> bool"""
4469 return _misc_
.TimeSpan___eq__(*args
, **kwargs
)
4471 def __ne__(*args
, **kwargs
):
4472 """__ne__(self, TimeSpan other) -> bool"""
4473 return _misc_
.TimeSpan___ne__(*args
, **kwargs
)
4475 def IsNull(*args
, **kwargs
):
4476 """IsNull(self) -> bool"""
4477 return _misc_
.TimeSpan_IsNull(*args
, **kwargs
)
4479 def IsPositive(*args
, **kwargs
):
4480 """IsPositive(self) -> bool"""
4481 return _misc_
.TimeSpan_IsPositive(*args
, **kwargs
)
4483 def IsNegative(*args
, **kwargs
):
4484 """IsNegative(self) -> bool"""
4485 return _misc_
.TimeSpan_IsNegative(*args
, **kwargs
)
4487 def IsEqualTo(*args
, **kwargs
):
4488 """IsEqualTo(self, TimeSpan ts) -> bool"""
4489 return _misc_
.TimeSpan_IsEqualTo(*args
, **kwargs
)
4491 def IsLongerThan(*args
, **kwargs
):
4492 """IsLongerThan(self, TimeSpan ts) -> bool"""
4493 return _misc_
.TimeSpan_IsLongerThan(*args
, **kwargs
)
4495 def IsShorterThan(*args
, **kwargs
):
4496 """IsShorterThan(self, TimeSpan t) -> bool"""
4497 return _misc_
.TimeSpan_IsShorterThan(*args
, **kwargs
)
4499 def GetWeeks(*args
, **kwargs
):
4500 """GetWeeks(self) -> int"""
4501 return _misc_
.TimeSpan_GetWeeks(*args
, **kwargs
)
4503 def GetDays(*args
, **kwargs
):
4504 """GetDays(self) -> int"""
4505 return _misc_
.TimeSpan_GetDays(*args
, **kwargs
)
4507 def GetHours(*args
, **kwargs
):
4508 """GetHours(self) -> int"""
4509 return _misc_
.TimeSpan_GetHours(*args
, **kwargs
)
4511 def GetMinutes(*args
, **kwargs
):
4512 """GetMinutes(self) -> int"""
4513 return _misc_
.TimeSpan_GetMinutes(*args
, **kwargs
)
4515 def GetSeconds(*args
, **kwargs
):
4516 """GetSeconds(self) -> wxLongLong"""
4517 return _misc_
.TimeSpan_GetSeconds(*args
, **kwargs
)
4519 def GetMilliseconds(*args
, **kwargs
):
4520 """GetMilliseconds(self) -> wxLongLong"""
4521 return _misc_
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
4523 def Format(*args
, **kwargs
):
4524 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4525 return _misc_
.TimeSpan_Format(*args
, **kwargs
)
4528 f
= self
.Format().encode(wx
.GetDefaultPyEncoding())
4529 return '<wx.TimeSpan: \"%s\" at %s>' % ( f
, self
.this
)
4531 return self
.Format().encode(wx
.GetDefaultPyEncoding())
4533 Days
= property(GetDays
,doc
="See `GetDays`")
4534 Hours
= property(GetHours
,doc
="See `GetHours`")
4535 Milliseconds
= property(GetMilliseconds
,doc
="See `GetMilliseconds`")
4536 Minutes
= property(GetMinutes
,doc
="See `GetMinutes`")
4537 Seconds
= property(GetSeconds
,doc
="See `GetSeconds`")
4538 Weeks
= property(GetWeeks
,doc
="See `GetWeeks`")
4539 _misc_
.TimeSpan_swigregister(TimeSpan
)
4541 def TimeSpan_Milliseconds(*args
, **kwargs
):
4542 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4543 return _misc_
.TimeSpan_Milliseconds(*args
, **kwargs
)
4545 def TimeSpan_Millisecond(*args
):
4546 """TimeSpan_Millisecond() -> TimeSpan"""
4547 return _misc_
.TimeSpan_Millisecond(*args
)
4549 def TimeSpan_Seconds(*args
, **kwargs
):
4550 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4551 return _misc_
.TimeSpan_Seconds(*args
, **kwargs
)
4553 def TimeSpan_Second(*args
):
4554 """TimeSpan_Second() -> TimeSpan"""
4555 return _misc_
.TimeSpan_Second(*args
)
4557 def TimeSpan_Minutes(*args
, **kwargs
):
4558 """TimeSpan_Minutes(long min) -> TimeSpan"""
4559 return _misc_
.TimeSpan_Minutes(*args
, **kwargs
)
4561 def TimeSpan_Minute(*args
):
4562 """TimeSpan_Minute() -> TimeSpan"""
4563 return _misc_
.TimeSpan_Minute(*args
)
4565 def TimeSpan_Hours(*args
, **kwargs
):
4566 """TimeSpan_Hours(long hours) -> TimeSpan"""
4567 return _misc_
.TimeSpan_Hours(*args
, **kwargs
)
4569 def TimeSpan_Hour(*args
):
4570 """TimeSpan_Hour() -> TimeSpan"""
4571 return _misc_
.TimeSpan_Hour(*args
)
4573 def TimeSpan_Days(*args
, **kwargs
):
4574 """TimeSpan_Days(long days) -> TimeSpan"""
4575 return _misc_
.TimeSpan_Days(*args
, **kwargs
)
4577 def TimeSpan_Day(*args
):
4578 """TimeSpan_Day() -> TimeSpan"""
4579 return _misc_
.TimeSpan_Day(*args
)
4581 def TimeSpan_Weeks(*args
, **kwargs
):
4582 """TimeSpan_Weeks(long days) -> TimeSpan"""
4583 return _misc_
.TimeSpan_Weeks(*args
, **kwargs
)
4585 def TimeSpan_Week(*args
):
4586 """TimeSpan_Week() -> TimeSpan"""
4587 return _misc_
.TimeSpan_Week(*args
)
4589 class DateSpan(object):
4590 """Proxy of C++ DateSpan class"""
4591 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4592 __repr__
= _swig_repr
4593 def __init__(self
, *args
, **kwargs
):
4594 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4595 _misc_
.DateSpan_swiginit(self
,_misc_
.new_DateSpan(*args
, **kwargs
))
4596 __swig_destroy__
= _misc_
.delete_DateSpan
4597 __del__
= lambda self
: None;
4598 def Days(*args
, **kwargs
):
4599 """Days(int days) -> DateSpan"""
4600 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4602 Days
= staticmethod(Days
)
4603 def Day(*args
, **kwargs
):
4604 """Day() -> DateSpan"""
4605 return _misc_
.DateSpan_Day(*args
, **kwargs
)
4607 Day
= staticmethod(Day
)
4608 def Weeks(*args
, **kwargs
):
4609 """Weeks(int weeks) -> DateSpan"""
4610 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4612 Weeks
= staticmethod(Weeks
)
4613 def Week(*args
, **kwargs
):
4614 """Week() -> DateSpan"""
4615 return _misc_
.DateSpan_Week(*args
, **kwargs
)
4617 Week
= staticmethod(Week
)
4618 def Months(*args
, **kwargs
):
4619 """Months(int mon) -> DateSpan"""
4620 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4622 Months
= staticmethod(Months
)
4623 def Month(*args
, **kwargs
):
4624 """Month() -> DateSpan"""
4625 return _misc_
.DateSpan_Month(*args
, **kwargs
)
4627 Month
= staticmethod(Month
)
4628 def Years(*args
, **kwargs
):
4629 """Years(int years) -> DateSpan"""
4630 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4632 Years
= staticmethod(Years
)
4633 def Year(*args
, **kwargs
):
4634 """Year() -> DateSpan"""
4635 return _misc_
.DateSpan_Year(*args
, **kwargs
)
4637 Year
= staticmethod(Year
)
4638 def SetYears(*args
, **kwargs
):
4639 """SetYears(self, int n) -> DateSpan"""
4640 return _misc_
.DateSpan_SetYears(*args
, **kwargs
)
4642 def SetMonths(*args
, **kwargs
):
4643 """SetMonths(self, int n) -> DateSpan"""
4644 return _misc_
.DateSpan_SetMonths(*args
, **kwargs
)
4646 def SetWeeks(*args
, **kwargs
):
4647 """SetWeeks(self, int n) -> DateSpan"""
4648 return _misc_
.DateSpan_SetWeeks(*args
, **kwargs
)
4650 def SetDays(*args
, **kwargs
):
4651 """SetDays(self, int n) -> DateSpan"""
4652 return _misc_
.DateSpan_SetDays(*args
, **kwargs
)
4654 def GetYears(*args
, **kwargs
):
4655 """GetYears(self) -> int"""
4656 return _misc_
.DateSpan_GetYears(*args
, **kwargs
)
4658 def GetMonths(*args
, **kwargs
):
4659 """GetMonths(self) -> int"""
4660 return _misc_
.DateSpan_GetMonths(*args
, **kwargs
)
4662 def GetWeeks(*args
, **kwargs
):
4663 """GetWeeks(self) -> int"""
4664 return _misc_
.DateSpan_GetWeeks(*args
, **kwargs
)
4666 def GetDays(*args
, **kwargs
):
4667 """GetDays(self) -> int"""
4668 return _misc_
.DateSpan_GetDays(*args
, **kwargs
)
4670 def GetTotalDays(*args
, **kwargs
):
4671 """GetTotalDays(self) -> int"""
4672 return _misc_
.DateSpan_GetTotalDays(*args
, **kwargs
)
4674 def Add(*args
, **kwargs
):
4675 """Add(self, DateSpan other) -> DateSpan"""
4676 return _misc_
.DateSpan_Add(*args
, **kwargs
)
4678 def Subtract(*args
, **kwargs
):
4679 """Subtract(self, DateSpan other) -> DateSpan"""
4680 return _misc_
.DateSpan_Subtract(*args
, **kwargs
)
4682 def Neg(*args
, **kwargs
):
4683 """Neg(self) -> DateSpan"""
4684 return _misc_
.DateSpan_Neg(*args
, **kwargs
)
4686 def Multiply(*args
, **kwargs
):
4687 """Multiply(self, int factor) -> DateSpan"""
4688 return _misc_
.DateSpan_Multiply(*args
, **kwargs
)
4690 def __iadd__(*args
, **kwargs
):
4691 """__iadd__(self, DateSpan other) -> DateSpan"""
4692 return _misc_
.DateSpan___iadd__(*args
, **kwargs
)
4694 def __isub__(*args
, **kwargs
):
4695 """__isub__(self, DateSpan other) -> DateSpan"""
4696 return _misc_
.DateSpan___isub__(*args
, **kwargs
)
4698 def __neg__(*args
, **kwargs
):
4699 """__neg__(self) -> DateSpan"""
4700 return _misc_
.DateSpan___neg__(*args
, **kwargs
)
4702 def __imul__(*args
, **kwargs
):
4703 """__imul__(self, int factor) -> DateSpan"""
4704 return _misc_
.DateSpan___imul__(*args
, **kwargs
)
4706 def __add__(*args
, **kwargs
):
4707 """__add__(self, DateSpan other) -> DateSpan"""
4708 return _misc_
.DateSpan___add__(*args
, **kwargs
)
4710 def __sub__(*args
, **kwargs
):
4711 """__sub__(self, DateSpan other) -> DateSpan"""
4712 return _misc_
.DateSpan___sub__(*args
, **kwargs
)
4714 def __mul__(*args
, **kwargs
):
4715 """__mul__(self, int n) -> DateSpan"""
4716 return _misc_
.DateSpan___mul__(*args
, **kwargs
)
4718 def __rmul__(*args
, **kwargs
):
4719 """__rmul__(self, int n) -> DateSpan"""
4720 return _misc_
.DateSpan___rmul__(*args
, **kwargs
)
4722 def __eq__(*args
, **kwargs
):
4723 """__eq__(self, DateSpan other) -> bool"""
4724 return _misc_
.DateSpan___eq__(*args
, **kwargs
)
4726 def __ne__(*args
, **kwargs
):
4727 """__ne__(self, DateSpan other) -> bool"""
4728 return _misc_
.DateSpan___ne__(*args
, **kwargs
)
4730 Days
= property(GetDays
,SetDays
,doc
="See `GetDays` and `SetDays`")
4731 Months
= property(GetMonths
,SetMonths
,doc
="See `GetMonths` and `SetMonths`")
4732 TotalDays
= property(GetTotalDays
,doc
="See `GetTotalDays`")
4733 Weeks
= property(GetWeeks
,SetWeeks
,doc
="See `GetWeeks` and `SetWeeks`")
4734 Years
= property(GetYears
,SetYears
,doc
="See `GetYears` and `SetYears`")
4735 _misc_
.DateSpan_swigregister(DateSpan
)
4737 def DateSpan_Days(*args
, **kwargs
):
4738 """DateSpan_Days(int days) -> DateSpan"""
4739 return _misc_
.DateSpan_Days(*args
, **kwargs
)
4741 def DateSpan_Day(*args
):
4742 """DateSpan_Day() -> DateSpan"""
4743 return _misc_
.DateSpan_Day(*args
)
4745 def DateSpan_Weeks(*args
, **kwargs
):
4746 """DateSpan_Weeks(int weeks) -> DateSpan"""
4747 return _misc_
.DateSpan_Weeks(*args
, **kwargs
)
4749 def DateSpan_Week(*args
):
4750 """DateSpan_Week() -> DateSpan"""
4751 return _misc_
.DateSpan_Week(*args
)
4753 def DateSpan_Months(*args
, **kwargs
):
4754 """DateSpan_Months(int mon) -> DateSpan"""
4755 return _misc_
.DateSpan_Months(*args
, **kwargs
)
4757 def DateSpan_Month(*args
):
4758 """DateSpan_Month() -> DateSpan"""
4759 return _misc_
.DateSpan_Month(*args
)
4761 def DateSpan_Years(*args
, **kwargs
):
4762 """DateSpan_Years(int years) -> DateSpan"""
4763 return _misc_
.DateSpan_Years(*args
, **kwargs
)
4765 def DateSpan_Year(*args
):
4766 """DateSpan_Year() -> DateSpan"""
4767 return _misc_
.DateSpan_Year(*args
)
4770 def GetLocalTime(*args
):
4771 """GetLocalTime() -> long"""
4772 return _misc_
.GetLocalTime(*args
)
4774 def GetUTCTime(*args
):
4775 """GetUTCTime() -> long"""
4776 return _misc_
.GetUTCTime(*args
)
4778 def GetCurrentTime(*args
):
4779 """GetCurrentTime() -> long"""
4780 return _misc_
.GetCurrentTime(*args
)
4782 def GetLocalTimeMillis(*args
):
4783 """GetLocalTimeMillis() -> wxLongLong"""
4784 return _misc_
.GetLocalTimeMillis(*args
)
4785 #---------------------------------------------------------------------------
4787 DF_INVALID
= _misc_
.DF_INVALID
4788 DF_TEXT
= _misc_
.DF_TEXT
4789 DF_BITMAP
= _misc_
.DF_BITMAP
4790 DF_METAFILE
= _misc_
.DF_METAFILE
4791 DF_SYLK
= _misc_
.DF_SYLK
4792 DF_DIF
= _misc_
.DF_DIF
4793 DF_TIFF
= _misc_
.DF_TIFF
4794 DF_OEMTEXT
= _misc_
.DF_OEMTEXT
4795 DF_DIB
= _misc_
.DF_DIB
4796 DF_PALETTE
= _misc_
.DF_PALETTE
4797 DF_PENDATA
= _misc_
.DF_PENDATA
4798 DF_RIFF
= _misc_
.DF_RIFF
4799 DF_WAVE
= _misc_
.DF_WAVE
4800 DF_UNICODETEXT
= _misc_
.DF_UNICODETEXT
4801 DF_ENHMETAFILE
= _misc_
.DF_ENHMETAFILE
4802 DF_FILENAME
= _misc_
.DF_FILENAME
4803 DF_LOCALE
= _misc_
.DF_LOCALE
4804 DF_PRIVATE
= _misc_
.DF_PRIVATE
4805 DF_HTML
= _misc_
.DF_HTML
4806 DF_MAX
= _misc_
.DF_MAX
4807 class DataFormat(object):
4809 A wx.DataFormat is an encapsulation of a platform-specific format
4810 handle which is used by the system for the clipboard and drag and drop
4811 operations. The applications are usually only interested in, for
4812 example, pasting data from the clipboard only if the data is in a
4813 format the program understands. A data format is is used to uniquely
4814 identify this format.
4815 On the system level, a data format is usually just a number, (which
4816 may be the CLIPFORMAT under Windows or Atom under X11, for example.)
4818 The standard format IDs are:
4820 ================ =====================================
4821 wx.DF_INVALID An invalid format
4822 wx.DF_TEXT Text format
4823 wx.DF_BITMAP A bitmap (wx.Bitmap)
4824 wx.DF_METAFILE A metafile (wx.Metafile, Windows only)
4825 wx.DF_FILENAME A list of filenames
4826 wx.DF_HTML An HTML string. This is only valid on
4827 Windows and non-unicode builds
4828 ================ =====================================
4830 Besies the standard formats, the application may also use custom
4831 formats which are identified by their names (strings) and not numeric
4832 identifiers. Although internally custom format must be created (or
4833 registered) first, you shouldn't care about it because it is done
4834 automatically the first time the wxDataFormat object corresponding to
4835 a given format name is created.
4839 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4840 __repr__
= _swig_repr
4841 def __init__(self
, *args
, **kwargs
):
4843 __init__(self, int type) -> DataFormat
4845 Constructs a data format object for one of the standard data formats
4846 or an empty data object (use SetType or SetId later in this case)
4848 _misc_
.DataFormat_swiginit(self
,_misc_
.new_DataFormat(*args
, **kwargs
))
4849 __swig_destroy__
= _misc_
.delete_DataFormat
4850 __del__
= lambda self
: None;
4853 __eq__(self, int format) -> bool
4854 __eq__(self, DataFormat format) -> bool
4856 return _misc_
.DataFormat___eq__(*args
)
4860 __ne__(self, int format) -> bool
4861 __ne__(self, DataFormat format) -> bool
4863 return _misc_
.DataFormat___ne__(*args
)
4865 def SetType(*args
, **kwargs
):
4867 SetType(self, int format)
4869 Sets the format to the given value, which should be one of wx.DF_XXX
4872 return _misc_
.DataFormat_SetType(*args
, **kwargs
)
4874 def GetType(*args
, **kwargs
):
4876 GetType(self) -> int
4878 Returns the platform-specific number identifying the format.
4880 return _misc_
.DataFormat_GetType(*args
, **kwargs
)
4882 def GetId(*args
, **kwargs
):
4884 GetId(self) -> String
4886 Returns the name of a custom format (this function will fail for a
4889 return _misc_
.DataFormat_GetId(*args
, **kwargs
)
4891 def SetId(*args
, **kwargs
):
4893 SetId(self, String format)
4895 Sets the format to be the custom format identified by the given name.
4897 return _misc_
.DataFormat_SetId(*args
, **kwargs
)
4899 Id
= property(GetId
,SetId
,doc
="See `GetId` and `SetId`")
4900 Type
= property(GetType
,SetType
,doc
="See `GetType` and `SetType`")
4901 _misc_
.DataFormat_swigregister(DataFormat
)
4902 DefaultDateTime
= cvar
.DefaultDateTime
4904 def CustomDataFormat(*args
, **kwargs
):
4906 CustomDataFormat(String format) -> DataFormat
4908 Constructs a data format object for a custom format identified by its
4911 val
= _misc_
.new_CustomDataFormat(*args
, **kwargs
)
4914 class DataObject(object):
4916 A wx.DataObject represents data that can be copied to or from the
4917 clipboard, or dragged and dropped. The important thing about
4918 wx.DataObject is that this is a 'smart' piece of data unlike usual
4919 'dumb' data containers such as memory buffers or files. Being 'smart'
4920 here means that the data object itself should know what data formats
4921 it supports and how to render itself in each of supported formats.
4923 **NOTE**: This class is an abstract base class and can not be used
4924 directly from Python. If you need a custom type of data object then
4925 you should instead derive from `wx.PyDataObjectSimple` or use
4926 `wx.CustomDataObject`.
4928 Not surprisingly, being 'smart' comes at a price of added
4929 complexity. This is reasonable for the situations when you really need
4930 to support multiple formats, but may be annoying if you only want to
4931 do something simple like cut and paste text.
4933 To provide a solution for both cases, wxWidgets has two predefined
4934 classes which derive from wx.DataObject: `wx.DataObjectSimple` and
4935 `wx.DataObjectComposite`. `wx.DataObjectSimple` is the simplest
4936 wx.DataObject possible and only holds data in a single format (such as
4937 text or bitmap) and `wx.DataObjectComposite` is the simplest way to
4938 implement a wx.DataObject which supports multiple simultaneous formats
4939 because it achievs this by simply holding several
4940 `wx.DataObjectSimple` objects.
4942 Please note that the easiest way to use drag and drop and the
4943 clipboard with multiple formats is by using `wx.DataObjectComposite`,
4944 but it is not the most efficient one as each `wx.DataObjectSimple`
4945 would contain the whole data in its respective formats. Now imagine
4946 that you want to paste 200 pages of text in your proprietary format,
4947 as well as Word, RTF, HTML, Unicode and plain text to the clipboard
4948 and even today's computers are in trouble. For this case, you will
4949 have to derive from wx.DataObject directly and make it enumerate its
4950 formats and provide the data in the requested format on
4951 demand. (**TODO**: This is currently not possible from Python. Make
4954 Note that the platform transfer mechanisms for the clipboard and drag
4955 and drop, do not copy any data out of the source application until
4956 another application actually requests the data. This is in contrast to
4957 the 'feel' offered to the user of a program who would normally think
4958 that the data resides in the clipboard after having pressed 'Copy' -
4959 in reality it is only declared to be available.
4962 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4963 def __init__(self
): raise AttributeError, "No constructor defined"
4964 __repr__
= _swig_repr
4965 Get
= _misc_
.DataObject_Get
4966 Set
= _misc_
.DataObject_Set
4967 Both
= _misc_
.DataObject_Both
4968 __swig_destroy__
= _misc_
.delete_DataObject
4969 __del__
= lambda self
: None;
4970 def GetPreferredFormat(*args
, **kwargs
):
4972 GetPreferredFormat(self, int dir=Get) -> DataFormat
4974 Returns the preferred format for either rendering the data (if dir is
4975 Get, its default value) or for setting it. Usually this will be the
4976 native format of the wx.DataObject.
4978 return _misc_
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4980 def GetFormatCount(*args
, **kwargs
):
4982 GetFormatCount(self, int dir=Get) -> size_t
4984 Returns the number of available formats for rendering or setting the
4987 return _misc_
.DataObject_GetFormatCount(*args
, **kwargs
)
4989 def IsSupported(*args
, **kwargs
):
4991 IsSupported(self, DataFormat format, int dir=Get) -> bool
4993 Returns True if this format is supported.
4995 return _misc_
.DataObject_IsSupported(*args
, **kwargs
)
4997 def GetDataSize(*args
, **kwargs
):
4999 GetDataSize(self, DataFormat format) -> size_t
5001 Get the (total) size of data for the given format
5003 return _misc_
.DataObject_GetDataSize(*args
, **kwargs
)
5005 def GetAllFormats(*args
, **kwargs
):
5007 GetAllFormats(self, int dir=Get) -> [formats]
5009 Returns a list of all the wx.DataFormats that this dataobject supports
5010 in the given direction.
5012 return _misc_
.DataObject_GetAllFormats(*args
, **kwargs
)
5014 def GetDataHere(*args
, **kwargs
):
5016 GetDataHere(self, DataFormat format) -> String
5018 Get the data bytes in the specified format, returns None on failure.
5019 :todo: This should use the python buffer interface isntead...
5021 return _misc_
.DataObject_GetDataHere(*args
, **kwargs
)
5023 def SetData(*args
, **kwargs
):
5025 SetData(self, DataFormat format, String data) -> bool
5027 Set the data in the specified format from the bytes in the the data string.
5029 :todo: This should use the python buffer interface isntead...
5031 return _misc_
.DataObject_SetData(*args
, **kwargs
)
5033 AllFormats
= property(GetAllFormats
,doc
="See `GetAllFormats`")
5034 DataHere
= property(GetDataHere
,doc
="See `GetDataHere`")
5035 DataSize
= property(GetDataSize
,doc
="See `GetDataSize`")
5036 FormatCount
= property(GetFormatCount
,doc
="See `GetFormatCount`")
5037 PreferredFormat
= property(GetPreferredFormat
,doc
="See `GetPreferredFormat`")
5038 _misc_
.DataObject_swigregister(DataObject
)
5039 FormatInvalid
= cvar
.FormatInvalid
5041 class DataObjectSimple(DataObject
):
5043 wx.DataObjectSimple is a `wx.DataObject` which only supports one
5044 format. This is the simplest possible `wx.DataObject` implementation.
5046 This is still an "abstract base class" meaning that you can't use it
5047 directly. You either need to use one of the predefined base classes,
5048 or derive your own class from `wx.PyDataObjectSimple`.
5051 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5052 __repr__
= _swig_repr
5053 def __init__(self
, *args
, **kwargs
):
5055 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
5057 Constructor accepts the supported format (none by default) which may
5058 also be set later with `SetFormat`.
5060 _misc_
.DataObjectSimple_swiginit(self
,_misc_
.new_DataObjectSimple(*args
, **kwargs
))
5061 def GetFormat(*args
, **kwargs
):
5063 GetFormat(self) -> DataFormat
5065 Returns the (one and only one) format supported by this object. It is
5066 assumed that the format is supported in both directions.
5068 return _misc_
.DataObjectSimple_GetFormat(*args
, **kwargs
)
5070 def SetFormat(*args
, **kwargs
):
5072 SetFormat(self, DataFormat format)
5074 Sets the supported format.
5076 return _misc_
.DataObjectSimple_SetFormat(*args
, **kwargs
)
5078 def GetDataSize(*args
, **kwargs
):
5080 GetDataSize(self) -> size_t
5082 Get the size of our data.
5084 return _misc_
.DataObjectSimple_GetDataSize(*args
, **kwargs
)
5086 def GetDataHere(*args
, **kwargs
):
5088 GetDataHere(self) -> String
5090 Returns the data bytes from the data object as a string, returns None
5091 on failure. Must be implemented in the derived class if the object
5092 supports rendering its data.
5094 return _misc_
.DataObjectSimple_GetDataHere(*args
, **kwargs
)
5096 def SetData(*args
, **kwargs
):
5098 SetData(self, String data) -> bool
5100 Copy the data value to the data object. Must be implemented in the
5101 derived class if the object supports setting its data.
5104 return _misc_
.DataObjectSimple_SetData(*args
, **kwargs
)
5106 Format
= property(GetFormat
,SetFormat
,doc
="See `GetFormat` and `SetFormat`")
5107 _misc_
.DataObjectSimple_swigregister(DataObjectSimple
)
5109 class PyDataObjectSimple(DataObjectSimple
):
5111 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
5112 Python-aware and knows how to reflect calls to its C++ virtual methods
5113 to methods in the Python derived class. You should derive from this
5114 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
5115 need to create your own simple single-format type of `wx.DataObject`.
5117 Here is a simple example::
5119 class MyDataObject(wx.PyDataObjectSimple):
5121 wx.PyDataObjectSimple.__init__(
5122 self, wx.CustomDataFormat('MyDOFormat'))
5125 def GetDataSize(self):
5126 return len(self.data)
5127 def GetDataHere(self):
5128 return self.data # returns a string
5129 def SetData(self, data):
5133 Note that there is already a `wx.CustomDataObject` class that behaves
5134 very similarly to this example. The value of creating your own
5135 derived class like this is to be able to do additional things when the
5136 data is requested or given via the clipboard or drag and drop
5137 operation, such as generate the data value or decode it into needed
5141 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5142 __repr__
= _swig_repr
5143 def __init__(self
, *args
, **kwargs
):
5145 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
5147 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
5148 Python-aware and knows how to reflect calls to its C++ virtual methods
5149 to methods in the Python derived class. You should derive from this
5150 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
5151 need to create your own simple single-format type of `wx.DataObject`.
5153 Here is a simple example::
5155 class MyDataObject(wx.PyDataObjectSimple):
5157 wx.PyDataObjectSimple.__init__(
5158 self, wx.CustomDataFormat('MyDOFormat'))
5161 def GetDataSize(self):
5162 return len(self.data)
5163 def GetDataHere(self):
5164 return self.data # returns a string
5165 def SetData(self, data):
5169 Note that there is already a `wx.CustomDataObject` class that behaves
5170 very similarly to this example. The value of creating your own
5171 derived class like this is to be able to do additional things when the
5172 data is requested or given via the clipboard or drag and drop
5173 operation, such as generate the data value or decode it into needed
5177 _misc_
.PyDataObjectSimple_swiginit(self
,_misc_
.new_PyDataObjectSimple(*args
, **kwargs
))
5178 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
5180 def _setCallbackInfo(*args
, **kwargs
):
5181 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5182 return _misc_
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
5184 _misc_
.PyDataObjectSimple_swigregister(PyDataObjectSimple
)
5186 class DataObjectComposite(DataObject
):
5188 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
5189 which may be sued to support multiple formats. It contains several
5190 'wx.DataObjectSimple` objects and supports any format supported by at
5191 least one of them. Only one of these data objects is *preferred* (the
5192 first one if not explicitly changed by using the second parameter of
5193 `Add`) and its format determines the preferred format of the composite
5194 data object as well.
5196 See `wx.DataObject` documentation for the reasons why you might prefer
5197 to use wx.DataObject directly instead of wx.DataObjectComposite for
5201 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5202 __repr__
= _swig_repr
5203 def __init__(self
, *args
, **kwargs
):
5205 __init__(self) -> DataObjectComposite
5207 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
5208 which may be sued to support multiple formats. It contains several
5209 'wx.DataObjectSimple` objects and supports any format supported by at
5210 least one of them. Only one of these data objects is *preferred* (the
5211 first one if not explicitly changed by using the second parameter of
5212 `Add`) and its format determines the preferred format of the composite
5213 data object as well.
5215 See `wx.DataObject` documentation for the reasons why you might prefer
5216 to use wx.DataObject directly instead of wx.DataObjectComposite for
5220 _misc_
.DataObjectComposite_swiginit(self
,_misc_
.new_DataObjectComposite(*args
, **kwargs
))
5221 def Add(*args
, **kwargs
):
5223 Add(self, DataObjectSimple dataObject, bool preferred=False)
5225 Adds the dataObject to the list of supported objects and it becomes
5226 the preferred object if preferred is True.
5228 return _misc_
.DataObjectComposite_Add(*args
, **kwargs
)
5230 def GetReceivedFormat(*args
, **kwargs
):
5232 GetReceivedFormat(self) -> DataFormat
5234 Report the format passed to the `SetData` method. This should be the
5235 format of the data object within the composite that recieved data from
5236 the clipboard or the DnD operation. You can use this method to find
5237 out what kind of data object was recieved.
5239 return _misc_
.DataObjectComposite_GetReceivedFormat(*args
, **kwargs
)
5241 ReceivedFormat
= property(GetReceivedFormat
,doc
="See `GetReceivedFormat`")
5242 _misc_
.DataObjectComposite_swigregister(DataObjectComposite
)
5244 class TextDataObject(DataObjectSimple
):
5246 wx.TextDataObject is a specialization of `wx.DataObject` for text
5247 data. It can be used without change to paste data into the `wx.Clipboard`
5248 or a `wx.DropSource`.
5250 Alternativly, you may wish to derive a new class from the
5251 `wx.PyTextDataObject` class for providing text on-demand in order to
5252 minimize memory consumption when offering data in several formats,
5253 such as plain text and RTF, because by default the text is stored in a
5254 string in this class, but it might as well be generated on demand when
5255 requested. For this, `GetTextLength` and `GetText` will have to be
5258 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5259 __repr__
= _swig_repr
5260 def __init__(self
, *args
, **kwargs
):
5262 __init__(self, String text=EmptyString) -> TextDataObject
5264 Constructor, may be used to initialise the text (otherwise `SetText`
5265 should be used later).
5267 _misc_
.TextDataObject_swiginit(self
,_misc_
.new_TextDataObject(*args
, **kwargs
))
5268 def GetTextLength(*args
, **kwargs
):
5270 GetTextLength(self) -> size_t
5272 Returns the data size. By default, returns the size of the text data
5273 set in the constructor or using `SetText`. This can be overridden (via
5274 `wx.PyTextDataObject`) to provide text size data on-demand. It is
5275 recommended to return the text length plus 1 for a trailing zero, but
5276 this is not strictly required.
5278 return _misc_
.TextDataObject_GetTextLength(*args
, **kwargs
)
5280 def GetText(*args
, **kwargs
):
5282 GetText(self) -> String
5284 Returns the text associated with the data object.
5286 return _misc_
.TextDataObject_GetText(*args
, **kwargs
)
5288 def SetText(*args
, **kwargs
):
5290 SetText(self, String text)
5292 Sets the text associated with the data object. This method is called
5293 when the data object receives the data and, by default, copies the
5294 text into the member variable. If you want to process the text on the
5295 fly you may wish to override this function (via
5296 `wx.PyTextDataObject`.)
5298 return _misc_
.TextDataObject_SetText(*args
, **kwargs
)
5300 Text
= property(GetText
,SetText
,doc
="See `GetText` and `SetText`")
5301 TextLength
= property(GetTextLength
,doc
="See `GetTextLength`")
5302 _misc_
.TextDataObject_swigregister(TextDataObject
)
5304 class PyTextDataObject(TextDataObject
):
5306 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5307 Python-aware and knows how to reflect calls to its C++ virtual methods
5308 to methods in the Python derived class. You should derive from this
5309 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5310 want to be able to provide text on demand instead of preloading it
5311 into the data object.
5313 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5314 __repr__
= _swig_repr
5315 def __init__(self
, *args
, **kwargs
):
5317 __init__(self, String text=EmptyString) -> PyTextDataObject
5319 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5320 Python-aware and knows how to reflect calls to its C++ virtual methods
5321 to methods in the Python derived class. You should derive from this
5322 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5323 want to be able to provide text on demand instead of preloading it
5324 into the data object.
5326 _misc_
.PyTextDataObject_swiginit(self
,_misc_
.new_PyTextDataObject(*args
, **kwargs
))
5327 self
._setCallbackInfo
(self
, PyTextDataObject
)
5329 def _setCallbackInfo(*args
, **kwargs
):
5330 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5331 return _misc_
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
5333 _misc_
.PyTextDataObject_swigregister(PyTextDataObject
)
5335 class BitmapDataObject(DataObjectSimple
):
5337 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
5338 data. It can be used without change to paste data into the `wx.Clipboard`
5339 or a `wx.DropSource`.
5341 :see: `wx.PyBitmapDataObject` if you wish to override `GetBitmap` to increase efficiency.
5343 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5344 __repr__
= _swig_repr
5345 def __init__(self
, *args
, **kwargs
):
5347 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
5349 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
5352 _misc_
.BitmapDataObject_swiginit(self
,_misc_
.new_BitmapDataObject(*args
, **kwargs
))
5353 def GetBitmap(*args
, **kwargs
):
5355 GetBitmap(self) -> Bitmap
5357 Returns the bitmap associated with the data object. You may wish to
5358 override this method (by deriving from `wx.PyBitmapDataObject`) when
5359 offering data on-demand, but this is not required by wxWidgets'
5360 internals. Use this method to get data in bitmap form from the
5363 return _misc_
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
5365 def SetBitmap(*args
, **kwargs
):
5367 SetBitmap(self, Bitmap bitmap)
5369 Sets the bitmap associated with the data object. This method is called
5370 when the data object receives data. Usually there will be no reason to
5371 override this function.
5373 return _misc_
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
5375 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
5376 _misc_
.BitmapDataObject_swigregister(BitmapDataObject
)
5378 class PyBitmapDataObject(BitmapDataObject
):
5380 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5381 Python-aware and knows how to reflect calls to its C++ virtual methods
5382 to methods in the Python derived class. To be able to provide bitmap
5383 data on demand derive from this class and overload `GetBitmap`.
5385 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5386 __repr__
= _swig_repr
5387 def __init__(self
, *args
, **kwargs
):
5389 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
5391 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5392 Python-aware and knows how to reflect calls to its C++ virtual methods
5393 to methods in the Python derived class. To be able to provide bitmap
5394 data on demand derive from this class and overload `GetBitmap`.
5396 _misc_
.PyBitmapDataObject_swiginit(self
,_misc_
.new_PyBitmapDataObject(*args
, **kwargs
))
5397 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
5399 def _setCallbackInfo(*args
, **kwargs
):
5400 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5401 return _misc_
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
5403 _misc_
.PyBitmapDataObject_swigregister(PyBitmapDataObject
)
5405 class FileDataObject(DataObjectSimple
):
5407 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
5408 file names. The program works with it just as if it were a list of
5409 absolute file names, but internally it uses the same format as
5410 Explorer and other compatible programs under Windows or GNOME/KDE
5411 filemanager under Unix which makes it possible to receive files from
5412 them using this class.
5414 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5415 __repr__
= _swig_repr
5416 def __init__(self
, *args
, **kwargs
):
5417 """__init__(self) -> FileDataObject"""
5418 _misc_
.FileDataObject_swiginit(self
,_misc_
.new_FileDataObject(*args
, **kwargs
))
5419 def GetFilenames(*args
, **kwargs
):
5421 GetFilenames(self) -> [names]
5423 Returns a list of file names.
5425 return _misc_
.FileDataObject_GetFilenames(*args
, **kwargs
)
5427 def AddFile(*args
, **kwargs
):
5429 AddFile(self, String filename)
5431 Adds a file to the list of files represented by this data object.
5433 return _misc_
.FileDataObject_AddFile(*args
, **kwargs
)
5435 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
5436 _misc_
.FileDataObject_swigregister(FileDataObject
)
5438 class CustomDataObject(DataObjectSimple
):
5440 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5441 some application-specific data in arbitrary format. Python strings
5442 are used for getting and setting data, but any picklable object can
5443 easily be transfered via strings. A copy of the data is stored in the
5446 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5447 __repr__
= _swig_repr
5448 def __init__(self
, *args
):
5450 __init__(self, DataFormat format) -> CustomDataObject
5451 __init__(self, String formatName) -> CustomDataObject
5452 __init__(self) -> CustomDataObject
5454 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5455 some application-specific data in arbitrary format. Python strings
5456 are used for getting and setting data, but any picklable object can
5457 easily be transfered via strings. A copy of the data is stored in the
5460 _misc_
.CustomDataObject_swiginit(self
,_misc_
.new_CustomDataObject(*args
))
5461 def SetData(*args
, **kwargs
):
5463 SetData(self, String data) -> bool
5465 Copy the data value to the data object.
5467 return _misc_
.CustomDataObject_SetData(*args
, **kwargs
)
5470 def GetSize(*args
, **kwargs
):
5472 GetSize(self) -> size_t
5474 Get the size of the data.
5476 return _misc_
.CustomDataObject_GetSize(*args
, **kwargs
)
5478 def GetData(*args
, **kwargs
):
5480 GetData(self) -> String
5482 Returns the data bytes from the data object as a string.
5484 return _misc_
.CustomDataObject_GetData(*args
, **kwargs
)
5486 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5487 Size
= property(GetSize
,doc
="See `GetSize`")
5488 _misc_
.CustomDataObject_swigregister(CustomDataObject
)
5490 class URLDataObject(DataObject
):
5492 This data object holds a URL in a format that is compatible with some
5493 browsers such that it is able to be dragged to or from them.
5495 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5496 __repr__
= _swig_repr
5497 def __init__(self
, *args
, **kwargs
):
5499 __init__(self, String url=EmptyString) -> URLDataObject
5501 This data object holds a URL in a format that is compatible with some
5502 browsers such that it is able to be dragged to or from them.
5504 _misc_
.URLDataObject_swiginit(self
,_misc_
.new_URLDataObject(*args
, **kwargs
))
5505 def GetURL(*args
, **kwargs
):
5507 GetURL(self) -> String
5509 Returns a string containing the current URL.
5511 return _misc_
.URLDataObject_GetURL(*args
, **kwargs
)
5513 def SetURL(*args
, **kwargs
):
5515 SetURL(self, String url)
5519 return _misc_
.URLDataObject_SetURL(*args
, **kwargs
)
5521 URL
= property(GetURL
,SetURL
,doc
="See `GetURL` and `SetURL`")
5522 _misc_
.URLDataObject_swigregister(URLDataObject
)
5524 class MetafileDataObject(DataObjectSimple
):
5525 """Proxy of C++ MetafileDataObject class"""
5526 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5527 __repr__
= _swig_repr
5528 def __init__(self
, *args
, **kwargs
):
5529 """__init__(self) -> MetafileDataObject"""
5530 _misc_
.MetafileDataObject_swiginit(self
,_misc_
.new_MetafileDataObject(*args
, **kwargs
))
5531 _misc_
.MetafileDataObject_swigregister(MetafileDataObject
)
5533 #---------------------------------------------------------------------------
5535 Drag_CopyOnly
= _misc_
.Drag_CopyOnly
5536 Drag_AllowMove
= _misc_
.Drag_AllowMove
5537 Drag_DefaultMove
= _misc_
.Drag_DefaultMove
5538 DragError
= _misc_
.DragError
5539 DragNone
= _misc_
.DragNone
5540 DragCopy
= _misc_
.DragCopy
5541 DragMove
= _misc_
.DragMove
5542 DragLink
= _misc_
.DragLink
5543 DragCancel
= _misc_
.DragCancel
5545 def IsDragResultOk(*args
, **kwargs
):
5546 """IsDragResultOk(int res) -> bool"""
5547 return _misc_
.IsDragResultOk(*args
, **kwargs
)
5548 class DropSource(object):
5549 """Proxy of C++ DropSource class"""
5550 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5551 __repr__
= _swig_repr
5552 def __init__(self
, *args
, **kwargs
):
5554 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
5555 Icon none=wxNullIcon) -> DropSource
5557 _misc_
.DropSource_swiginit(self
,_misc_
.new_DropSource(*args
, **kwargs
))
5558 self
._setCallbackInfo
(self
, DropSource
, 0)
5560 def _setCallbackInfo(*args
, **kwargs
):
5561 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5562 return _misc_
.DropSource__setCallbackInfo(*args
, **kwargs
)
5564 __swig_destroy__
= _misc_
.delete_DropSource
5565 __del__
= lambda self
: None;
5566 def SetData(*args
, **kwargs
):
5567 """SetData(self, DataObject data)"""
5568 return _misc_
.DropSource_SetData(*args
, **kwargs
)
5570 def GetDataObject(*args
, **kwargs
):
5571 """GetDataObject(self) -> DataObject"""
5572 return _misc_
.DropSource_GetDataObject(*args
, **kwargs
)
5574 def SetCursor(*args
, **kwargs
):
5575 """SetCursor(self, int res, Cursor cursor)"""
5576 return _misc_
.DropSource_SetCursor(*args
, **kwargs
)
5578 def DoDragDrop(*args
, **kwargs
):
5579 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5580 return _misc_
.DropSource_DoDragDrop(*args
, **kwargs
)
5582 def GiveFeedback(*args
, **kwargs
):
5583 """GiveFeedback(self, int effect) -> bool"""
5584 return _misc_
.DropSource_GiveFeedback(*args
, **kwargs
)
5586 def base_GiveFeedback(*args
, **kw
):
5587 return DropSource
.GiveFeedback(*args
, **kw
)
5588 base_GiveFeedback
= wx
._deprecated
(base_GiveFeedback
,
5589 "Please use DropSource.GiveFeedback instead.")
5591 DataObject
= property(GetDataObject
,SetData
,doc
="See `GetDataObject` and `SetData`")
5592 _misc_
.DropSource_swigregister(DropSource
)
5594 def DROP_ICON(filename
):
5596 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5597 ``filename``. This function is useful with the `wx.DropSource` class
5598 which, depending on platform accepts either a icon or a cursor.
5600 img
= wx
.Image(filename
)
5601 if wx
.Platform
== '__WXGTK__':
5602 return wx
.IconFromBitmap(wx
.BitmapFromImage(img
))
5604 return wx
.CursorFromImage(img
)
5606 class DropTarget(object):
5607 """Proxy of C++ DropTarget class"""
5608 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5609 __repr__
= _swig_repr
5610 def __init__(self
, *args
, **kwargs
):
5611 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5612 _misc_
.DropTarget_swiginit(self
,_misc_
.new_DropTarget(*args
, **kwargs
))
5613 self
._setCallbackInfo
(self
, DropTarget
)
5615 def _setCallbackInfo(*args
, **kwargs
):
5616 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5617 return _misc_
.DropTarget__setCallbackInfo(*args
, **kwargs
)
5619 __swig_destroy__
= _misc_
.delete_DropTarget
5620 __del__
= lambda self
: None;
5621 def GetDataObject(*args
, **kwargs
):
5622 """GetDataObject(self) -> DataObject"""
5623 return _misc_
.DropTarget_GetDataObject(*args
, **kwargs
)
5625 def SetDataObject(*args
, **kwargs
):
5626 """SetDataObject(self, DataObject dataObject)"""
5627 return _misc_
.DropTarget_SetDataObject(*args
, **kwargs
)
5629 def OnEnter(*args
, **kwargs
):
5630 """OnEnter(self, int x, int y, int def) -> int"""
5631 return _misc_
.DropTarget_OnEnter(*args
, **kwargs
)
5633 def OnDragOver(*args
, **kwargs
):
5634 """OnDragOver(self, int x, int y, int def) -> int"""
5635 return _misc_
.DropTarget_OnDragOver(*args
, **kwargs
)
5637 def OnLeave(*args
, **kwargs
):
5639 return _misc_
.DropTarget_OnLeave(*args
, **kwargs
)
5641 def OnDrop(*args
, **kwargs
):
5642 """OnDrop(self, int x, int y) -> bool"""
5643 return _misc_
.DropTarget_OnDrop(*args
, **kwargs
)
5645 def base_OnEnter(*args
, **kw
):
5646 return DropTarget
.OnEnter(*args
, **kw
)
5647 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5648 "Please use DropTarget.OnEnter instead.")
5650 def base_OnDragOver(*args
, **kw
):
5651 return DropTarget
.OnDragOver(*args
, **kw
)
5652 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5653 "Please use DropTarget.OnDragOver instead.")
5655 def base_OnLeave(*args
, **kw
):
5656 return DropTarget
.OnLeave(*args
, **kw
)
5657 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5658 "Please use DropTarget.OnLeave instead.")
5660 def base_OnDrop(*args
, **kw
):
5661 return DropTarget
.OnDrop(*args
, **kw
)
5662 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5663 "Please use DropTarget.OnDrop instead.")
5665 def GetData(*args
, **kwargs
):
5666 """GetData(self) -> bool"""
5667 return _misc_
.DropTarget_GetData(*args
, **kwargs
)
5669 def SetDefaultAction(*args
, **kwargs
):
5670 """SetDefaultAction(self, int action)"""
5671 return _misc_
.DropTarget_SetDefaultAction(*args
, **kwargs
)
5673 def GetDefaultAction(*args
, **kwargs
):
5674 """GetDefaultAction(self) -> int"""
5675 return _misc_
.DropTarget_GetDefaultAction(*args
, **kwargs
)
5677 Data
= property(GetData
,doc
="See `GetData`")
5678 DataObject
= property(GetDataObject
,SetDataObject
,doc
="See `GetDataObject` and `SetDataObject`")
5679 DefaultAction
= property(GetDefaultAction
,SetDefaultAction
,doc
="See `GetDefaultAction` and `SetDefaultAction`")
5680 _misc_
.DropTarget_swigregister(DropTarget
)
5682 PyDropTarget
= DropTarget
5683 class TextDropTarget(DropTarget
):
5684 """Proxy of C++ TextDropTarget class"""
5685 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5686 __repr__
= _swig_repr
5687 def __init__(self
, *args
, **kwargs
):
5688 """__init__(self) -> TextDropTarget"""
5689 _misc_
.TextDropTarget_swiginit(self
,_misc_
.new_TextDropTarget(*args
, **kwargs
))
5690 self
._setCallbackInfo
(self
, TextDropTarget
)
5692 def _setCallbackInfo(*args
, **kwargs
):
5693 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5694 return _misc_
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
5696 def OnDropText(*args
, **kwargs
):
5697 """OnDropText(self, int x, int y, String text) -> bool"""
5698 return _misc_
.TextDropTarget_OnDropText(*args
, **kwargs
)
5700 def OnEnter(*args
, **kwargs
):
5701 """OnEnter(self, int x, int y, int def) -> int"""
5702 return _misc_
.TextDropTarget_OnEnter(*args
, **kwargs
)
5704 def OnDragOver(*args
, **kwargs
):
5705 """OnDragOver(self, int x, int y, int def) -> int"""
5706 return _misc_
.TextDropTarget_OnDragOver(*args
, **kwargs
)
5708 def OnLeave(*args
, **kwargs
):
5710 return _misc_
.TextDropTarget_OnLeave(*args
, **kwargs
)
5712 def OnDrop(*args
, **kwargs
):
5713 """OnDrop(self, int x, int y) -> bool"""
5714 return _misc_
.TextDropTarget_OnDrop(*args
, **kwargs
)
5716 def OnData(*args
, **kwargs
):
5717 """OnData(self, int x, int y, int def) -> int"""
5718 return _misc_
.TextDropTarget_OnData(*args
, **kwargs
)
5720 def base_OnDropText(*args
, **kw
):
5721 return TextDropTarget
.OnDropText(*args
, **kw
)
5722 base_OnDropText
= wx
._deprecated
(base_OnDropText
,
5723 "Please use TextDropTarget.OnDropText instead.")
5725 def base_OnEnter(*args
, **kw
):
5726 return TextDropTarget
.OnEnter(*args
, **kw
)
5727 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5728 "Please use TextDropTarget.OnEnter instead.")
5730 def base_OnDragOver(*args
, **kw
):
5731 return TextDropTarget
.OnDragOver(*args
, **kw
)
5732 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5733 "Please use TextDropTarget.OnDragOver instead.")
5735 def base_OnLeave(*args
, **kw
):
5736 return TextDropTarget
.OnLeave(*args
, **kw
)
5737 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5738 "Please use TextDropTarget.OnLeave instead.")
5740 def base_OnDrop(*args
, **kw
):
5741 return TextDropTarget
.OnDrop(*args
, **kw
)
5742 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5743 "Please use TextDropTarget.OnDrop instead.")
5745 def base_OnData(*args
, **kw
):
5746 return TextDropTarget
.OnData(*args
, **kw
)
5747 base_OnData
= wx
._deprecated
(base_OnData
,
5748 "Please use TextDropTarget.OnData instead.")
5750 _misc_
.TextDropTarget_swigregister(TextDropTarget
)
5752 class FileDropTarget(DropTarget
):
5753 """Proxy of C++ FileDropTarget class"""
5754 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5755 __repr__
= _swig_repr
5756 def __init__(self
, *args
, **kwargs
):
5757 """__init__(self) -> FileDropTarget"""
5758 _misc_
.FileDropTarget_swiginit(self
,_misc_
.new_FileDropTarget(*args
, **kwargs
))
5759 self
._setCallbackInfo
(self
, FileDropTarget
)
5761 def _setCallbackInfo(*args
, **kwargs
):
5762 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5763 return _misc_
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
5765 def OnDropFiles(*args
, **kwargs
):
5766 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5767 return _misc_
.FileDropTarget_OnDropFiles(*args
, **kwargs
)
5769 def OnEnter(*args
, **kwargs
):
5770 """OnEnter(self, int x, int y, int def) -> int"""
5771 return _misc_
.FileDropTarget_OnEnter(*args
, **kwargs
)
5773 def OnDragOver(*args
, **kwargs
):
5774 """OnDragOver(self, int x, int y, int def) -> int"""
5775 return _misc_
.FileDropTarget_OnDragOver(*args
, **kwargs
)
5777 def OnLeave(*args
, **kwargs
):
5779 return _misc_
.FileDropTarget_OnLeave(*args
, **kwargs
)
5781 def OnDrop(*args
, **kwargs
):
5782 """OnDrop(self, int x, int y) -> bool"""
5783 return _misc_
.FileDropTarget_OnDrop(*args
, **kwargs
)
5785 def OnData(*args
, **kwargs
):
5786 """OnData(self, int x, int y, int def) -> int"""
5787 return _misc_
.FileDropTarget_OnData(*args
, **kwargs
)
5789 def base_OnDropFiles(*args
, **kw
):
5790 return FileDropTarget
.OnDropFiles(*args
, **kw
)
5791 base_OnDropFiles
= wx
._deprecated
(base_OnDropFiles
,
5792 "Please use FileDropTarget.OnDropFiles instead.")
5794 def base_OnEnter(*args
, **kw
):
5795 return FileDropTarget
.OnEnter(*args
, **kw
)
5796 base_OnEnter
= wx
._deprecated
(base_OnEnter
,
5797 "Please use FileDropTarget.OnEnter instead.")
5799 def base_OnDragOver(*args
, **kw
):
5800 return FileDropTarget
.OnDragOver(*args
, **kw
)
5801 base_OnDragOver
= wx
._deprecated
(base_OnDragOver
,
5802 "Please use FileDropTarget.OnDragOver instead.")
5804 def base_OnLeave(*args
, **kw
):
5805 return FileDropTarget
.OnLeave(*args
, **kw
)
5806 base_OnLeave
= wx
._deprecated
(base_OnLeave
,
5807 "Please use FileDropTarget.OnLeave instead.")
5809 def base_OnDrop(*args
, **kw
):
5810 return FileDropTarget
.OnDrop(*args
, **kw
)
5811 base_OnDrop
= wx
._deprecated
(base_OnDrop
,
5812 "Please use FileDropTarget.OnDrop instead.")
5814 def base_OnData(*args
, **kw
):
5815 return FileDropTarget
.OnData(*args
, **kw
)
5816 base_OnData
= wx
._deprecated
(base_OnData
,
5817 "Please use FileDropTarget.OnData instead.")
5819 _misc_
.FileDropTarget_swigregister(FileDropTarget
)
5821 #---------------------------------------------------------------------------
5823 class Clipboard(_core
.Object
):
5825 wx.Clipboard represents the system clipboard and provides methods to
5826 copy data to it or paste data from it. Normally, you should only use
5827 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5830 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5831 clipboard. If this operation returns True, you now own the
5832 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5833 to retrieve data from the clipboard. Call `Close` to close the
5834 clipboard and relinquish ownership. You should keep the clipboard open
5837 :see: `wx.DataObject`
5840 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5841 __repr__
= _swig_repr
5842 def __init__(self
, *args
, **kwargs
):
5843 """__init__(self) -> Clipboard"""
5844 _misc_
.Clipboard_swiginit(self
,_misc_
.new_Clipboard(*args
, **kwargs
))
5845 __swig_destroy__
= _misc_
.delete_Clipboard
5846 __del__
= lambda self
: None;
5847 def Open(*args
, **kwargs
):
5851 Call this function to open the clipboard before calling SetData and
5852 GetData. Call Close when you have finished with the clipboard. You
5853 should keep the clipboard open for only a very short time. Returns
5856 return _misc_
.Clipboard_Open(*args
, **kwargs
)
5858 def Close(*args
, **kwargs
):
5862 Closes the clipboard.
5864 return _misc_
.Clipboard_Close(*args
, **kwargs
)
5866 def IsOpened(*args
, **kwargs
):
5868 IsOpened(self) -> bool
5870 Query whether the clipboard is opened
5872 return _misc_
.Clipboard_IsOpened(*args
, **kwargs
)
5874 def AddData(*args
, **kwargs
):
5876 AddData(self, DataObject data) -> bool
5878 Call this function to add the data object to the clipboard. You may
5879 call this function repeatedly after having cleared the clipboard.
5880 After this function has been called, the clipboard owns the data, so
5881 do not delete the data explicitly.
5883 :see: `wx.DataObject`
5885 return _misc_
.Clipboard_AddData(*args
, **kwargs
)
5887 def SetData(*args
, **kwargs
):
5889 SetData(self, DataObject data) -> bool
5891 Set the clipboard data, this is the same as `Clear` followed by
5894 :see: `wx.DataObject`
5896 return _misc_
.Clipboard_SetData(*args
, **kwargs
)
5898 def IsSupported(*args
, **kwargs
):
5900 IsSupported(self, DataFormat format) -> bool
5902 Returns True if the given format is available in the data object(s) on
5905 return _misc_
.Clipboard_IsSupported(*args
, **kwargs
)
5907 def GetData(*args
, **kwargs
):
5909 GetData(self, DataObject data) -> bool
5911 Call this function to fill data with data on the clipboard, if
5912 available in the required format. Returns true on success.
5914 return _misc_
.Clipboard_GetData(*args
, **kwargs
)
5916 def Clear(*args
, **kwargs
):
5920 Clears data from the clipboard object and also the system's clipboard
5923 return _misc_
.Clipboard_Clear(*args
, **kwargs
)
5925 def Flush(*args
, **kwargs
):
5929 Flushes the clipboard: this means that the data which is currently on
5930 clipboard will stay available even after the application exits,
5931 possibly eating memory, otherwise the clipboard will be emptied on
5932 exit. Returns False if the operation is unsuccesful for any reason.
5934 return _misc_
.Clipboard_Flush(*args
, **kwargs
)
5936 def UsePrimarySelection(*args
, **kwargs
):
5938 UsePrimarySelection(self, bool primary=True)
5940 On platforms supporting it (the X11 based platforms), selects the
5941 so called PRIMARY SELECTION as the clipboard as opposed to the
5942 normal clipboard, if primary is True.
5944 return _misc_
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
5946 def Get(*args
, **kwargs
):
5950 Returns global instance (wxTheClipboard) of the object.
5952 return _misc_
.Clipboard_Get(*args
, **kwargs
)
5954 Get
= staticmethod(Get
)
5955 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
5956 _misc_
.Clipboard_swigregister(Clipboard
)
5958 def Clipboard_Get(*args
):
5960 Clipboard_Get() -> Clipboard
5962 Returns global instance (wxTheClipboard) of the object.
5964 return _misc_
.Clipboard_Get(*args
)
5966 class _wxPyDelayedInitWrapper(object):
5967 def __init__(self
, initfunc
, *args
, **kwargs
):
5968 self
._initfunc
= initfunc
5970 self
._kwargs
= kwargs
5971 self
._instance
= None
5972 def _checkInstance(self
):
5973 if self
._instance
is None:
5975 self
._instance
= self
._initfunc
(*self
._args
, **self
._kwargs
)
5976 def __getattr__(self
, name
):
5977 self
._checkInstance
()
5978 return getattr(self
._instance
, name
)
5980 self
._checkInstance
()
5981 return repr(self
._instance
)
5982 TheClipboard
= _wxPyDelayedInitWrapper(Clipboard
.Get
)
5984 class ClipboardLocker(object):
5986 A helpful class for opening the clipboard and automatically
5987 closing it when the locker is destroyed.
5989 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5990 __repr__
= _swig_repr
5991 def __init__(self
, *args
, **kwargs
):
5993 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5995 A helpful class for opening the clipboard and automatically
5996 closing it when the locker is destroyed.
5998 _misc_
.ClipboardLocker_swiginit(self
,_misc_
.new_ClipboardLocker(*args
, **kwargs
))
5999 __swig_destroy__
= _misc_
.delete_ClipboardLocker
6000 __del__
= lambda self
: None;
6001 def __nonzero__(*args
, **kwargs
):
6003 __nonzero__(self) -> bool
6005 A ClipboardLocker instance evaluates to True if the clipboard was
6006 successfully opened.
6008 return _misc_
.ClipboardLocker___nonzero__(*args
, **kwargs
)
6010 _misc_
.ClipboardLocker_swigregister(ClipboardLocker
)
6012 #---------------------------------------------------------------------------
6014 class VideoMode(object):
6015 """A simple struct containing video mode parameters for a display"""
6016 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6017 __repr__
= _swig_repr
6018 def __init__(self
, *args
, **kwargs
):
6020 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
6022 A simple struct containing video mode parameters for a display
6024 _misc_
.VideoMode_swiginit(self
,_misc_
.new_VideoMode(*args
, **kwargs
))
6025 __swig_destroy__
= _misc_
.delete_VideoMode
6026 __del__
= lambda self
: None;
6027 def Matches(*args
, **kwargs
):
6029 Matches(self, VideoMode other) -> bool
6031 Returns True if this mode matches the other one in the sense that all
6032 non-zero fields of the other mode have the same value in this
6033 one (except for refresh which is allowed to have a greater value)
6035 return _misc_
.VideoMode_Matches(*args
, **kwargs
)
6037 def GetWidth(*args
, **kwargs
):
6039 GetWidth(self) -> int
6041 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
6043 return _misc_
.VideoMode_GetWidth(*args
, **kwargs
)
6045 def GetHeight(*args
, **kwargs
):
6047 GetHeight(self) -> int
6049 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
6051 return _misc_
.VideoMode_GetHeight(*args
, **kwargs
)
6053 def GetDepth(*args
, **kwargs
):
6055 GetDepth(self) -> int
6057 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
6058 means unspecified/known
6060 return _misc_
.VideoMode_GetDepth(*args
, **kwargs
)
6062 def IsOk(*args
, **kwargs
):
6066 returns true if the object has been initialized
6068 return _misc_
.VideoMode_IsOk(*args
, **kwargs
)
6070 def __nonzero__(self
): return self
.IsOk()
6071 def __eq__(*args
, **kwargs
):
6072 """__eq__(self, VideoMode other) -> bool"""
6073 return _misc_
.VideoMode___eq__(*args
, **kwargs
)
6075 def __ne__(*args
, **kwargs
):
6076 """__ne__(self, VideoMode other) -> bool"""
6077 return _misc_
.VideoMode___ne__(*args
, **kwargs
)
6079 w
= property(_misc_
.VideoMode_w_get
, _misc_
.VideoMode_w_set
)
6080 h
= property(_misc_
.VideoMode_h_get
, _misc_
.VideoMode_h_set
)
6081 bpp
= property(_misc_
.VideoMode_bpp_get
, _misc_
.VideoMode_bpp_set
)
6082 refresh
= property(_misc_
.VideoMode_refresh_get
, _misc_
.VideoMode_refresh_set
)
6083 Depth
= property(GetDepth
,doc
="See `GetDepth`")
6084 Height
= property(GetHeight
,doc
="See `GetHeight`")
6085 Width
= property(GetWidth
,doc
="See `GetWidth`")
6086 _misc_
.VideoMode_swigregister(VideoMode
)
6088 class Display(object):
6089 """Represents a display/monitor attached to the system"""
6090 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6091 __repr__
= _swig_repr
6092 def __init__(self
, *args
, **kwargs
):
6094 __init__(self, unsigned int index=0) -> Display
6096 Set up a Display instance with the specified display. The displays
6097 are numbered from 0 to GetCount() - 1, 0 is always the primary display
6098 and the only one which is always supported
6100 _misc_
.Display_swiginit(self
,_misc_
.new_Display(*args
, **kwargs
))
6101 __swig_destroy__
= _misc_
.delete_Display
6102 __del__
= lambda self
: None;
6103 def GetCount(*args
, **kwargs
):
6105 GetCount() -> unsigned int
6107 Return the number of available displays.
6109 return _misc_
.Display_GetCount(*args
, **kwargs
)
6111 GetCount
= staticmethod(GetCount
)
6112 def GetFromPoint(*args
, **kwargs
):
6114 GetFromPoint(Point pt) -> int
6116 Find the display where the given point lies, return wx.NOT_FOUND if it
6117 doesn't belong to any display
6119 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
6121 GetFromPoint
= staticmethod(GetFromPoint
)
6122 def GetFromWindow(*args
, **kwargs
):
6124 GetFromWindow(Window window) -> int
6126 Find the display where the given window lies, return wx.NOT_FOUND if
6127 it is not shown at all.
6129 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
6131 GetFromWindow
= staticmethod(GetFromWindow
)
6132 def IsOk(*args
, **kwargs
):
6136 Return true if the object was initialized successfully
6138 return _misc_
.Display_IsOk(*args
, **kwargs
)
6140 def __nonzero__(self
): return self
.IsOk()
6141 def GetGeometry(*args
, **kwargs
):
6143 GetGeometry(self) -> Rect
6145 Returns the bounding rectangle of the display whose index was passed
6148 return _misc_
.Display_GetGeometry(*args
, **kwargs
)
6150 def GetClientArea(*args
, **kwargs
):
6152 GetClientArea(self) -> Rect
6154 Returns the bounding rectangle the client area of the display,
6155 i.e., without taskbars and such.
6157 return _misc_
.Display_GetClientArea(*args
, **kwargs
)
6159 def GetName(*args
, **kwargs
):
6161 GetName(self) -> String
6163 Returns the display's name. A name is not available on all platforms.
6165 return _misc_
.Display_GetName(*args
, **kwargs
)
6167 def IsPrimary(*args
, **kwargs
):
6169 IsPrimary(self) -> bool
6171 Returns True if the display is the primary display. The primary
6172 display is the one whose index is 0.
6174 return _misc_
.Display_IsPrimary(*args
, **kwargs
)
6176 def GetModes(*args
, **kwargs
):
6178 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
6180 Enumerate all video modes supported by this display matching the given
6181 one (in the sense of VideoMode.Match()).
6183 As any mode matches the default value of the argument and there is
6184 always at least one video mode supported by display, the returned
6185 array is only empty for the default value of the argument if this
6186 function is not supported at all on this platform.
6188 return _misc_
.Display_GetModes(*args
, **kwargs
)
6190 def GetCurrentMode(*args
, **kwargs
):
6192 GetCurrentMode(self) -> VideoMode
6194 Get the current video mode.
6196 return _misc_
.Display_GetCurrentMode(*args
, **kwargs
)
6198 def ChangeMode(*args
, **kwargs
):
6200 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
6202 Changes the video mode of this display to the mode specified in the
6205 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
6206 behaviour is that wx.Display will reset the video mode to the default
6207 mode used by the display. On Windows, the behavior is normal.
6208 However, there are differences on other platforms. On Unix variations
6209 using X11 extensions it should behave as defined, but some
6210 irregularities may occur.
6212 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
6213 nothing. This happens because Carbon no longer has access to
6214 DMUseScreenPrefs, an undocumented function that changed the video mode
6215 to the system default by using the system's 'scrn' resource.
6217 Returns True if succeeded, False otherwise
6219 return _misc_
.Display_ChangeMode(*args
, **kwargs
)
6221 def ResetMode(*args
, **kwargs
):
6225 Restore the default video mode (just a more readable synonym)
6227 return _misc_
.Display_ResetMode(*args
, **kwargs
)
6229 ClientArea
= property(GetClientArea
,doc
="See `GetClientArea`")
6230 CurrentMode
= property(GetCurrentMode
,doc
="See `GetCurrentMode`")
6231 Geometry
= property(GetGeometry
,doc
="See `GetGeometry`")
6232 Modes
= property(GetModes
,doc
="See `GetModes`")
6233 Name
= property(GetName
,doc
="See `GetName`")
6234 _misc_
.Display_swigregister(Display
)
6235 DefaultVideoMode
= cvar
.DefaultVideoMode
6237 def Display_GetCount(*args
):
6239 Display_GetCount() -> unsigned int
6241 Return the number of available displays.
6243 return _misc_
.Display_GetCount(*args
)
6245 def Display_GetFromPoint(*args
, **kwargs
):
6247 Display_GetFromPoint(Point pt) -> int
6249 Find the display where the given point lies, return wx.NOT_FOUND if it
6250 doesn't belong to any display
6252 return _misc_
.Display_GetFromPoint(*args
, **kwargs
)
6254 def Display_GetFromWindow(*args
, **kwargs
):
6256 Display_GetFromWindow(Window window) -> int
6258 Find the display where the given window lies, return wx.NOT_FOUND if
6259 it is not shown at all.
6261 return _misc_
.Display_GetFromWindow(*args
, **kwargs
)
6263 #---------------------------------------------------------------------------
6265 class StandardPaths(object):
6267 wx.StandardPaths returns standard locations in the file system and
6268 should be used by programs to find their data files in a portable way.
6270 In the description of the methods below, the example return values are
6271 given for the Unix, Windows and Mac OS X systems, however please note
6272 that these are just examples and the actual values may differ. For
6273 example, under Windows the system administrator may change the
6274 standard directories locations, i.e. the Windows directory may be
6275 named W:\Win2003 instead of the default C:\Windows.
6277 The strings appname and username should be replaced with the value
6278 returned by `wx.App.GetAppName` and the name of the currently logged
6279 in user, respectively. The string prefix is only used under Unix and
6280 is /usr/local by default but may be changed using `SetInstallPrefix`.
6282 The directories returned by the methods of this class may or may not
6283 exist. If they don't exist, it's up to the caller to create them,
6284 wx.StandardPaths doesn't do it.
6286 Finally note that these functions only work with standardly packaged
6287 applications. I.e. under Unix you should follow the standard
6288 installation conventions and under Mac you should create your
6289 application bundle according to the Apple guidelines. Again, this
6290 class doesn't help you to do it.
6292 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6293 def __init__(self
): raise AttributeError, "No constructor defined"
6294 __repr__
= _swig_repr
6295 ResourceCat_None
= _misc_
.StandardPaths_ResourceCat_None
6296 ResourceCat_Messages
= _misc_
.StandardPaths_ResourceCat_Messages
6297 ResourceCat_Max
= _misc_
.StandardPaths_ResourceCat_Max
6298 def Get(*args
, **kwargs
):
6300 Get() -> StandardPaths
6302 Return the global standard paths singleton
6304 return _misc_
.StandardPaths_Get(*args
, **kwargs
)
6306 Get
= staticmethod(Get
)
6307 def GetConfigDir(*args
, **kwargs
):
6309 GetConfigDir(self) -> String
6311 Return the directory with system config files: /etc under Unix,
6312 'c:\Documents and Settings\All Users\Application Data' under Windows,
6313 /Library/Preferences for Mac
6315 return _misc_
.StandardPaths_GetConfigDir(*args
, **kwargs
)
6317 def GetUserConfigDir(*args
, **kwargs
):
6319 GetUserConfigDir(self) -> String
6321 Return the directory for the user config files: $HOME under Unix,
6322 'c:\Documents and Settings\username' under Windows, and
6323 ~/Library/Preferences under Mac
6325 Only use this if you have a single file to put there, otherwise
6326 `GetUserDataDir` is more appropriate
6328 return _misc_
.StandardPaths_GetUserConfigDir(*args
, **kwargs
)
6330 def GetDataDir(*args
, **kwargs
):
6332 GetDataDir(self) -> String
6334 Return the location of the application's global, (i.e. not
6335 user-specific,) data files: prefix/share/appname under Unix,
6336 'c:\Program Files\appname' under Windows,
6337 appname.app/Contents/SharedSupport app bundle directory under Mac.
6339 return _misc_
.StandardPaths_GetDataDir(*args
, **kwargs
)
6341 def GetLocalDataDir(*args
, **kwargs
):
6343 GetLocalDataDir(self) -> String
6345 Return the location for application data files which are
6346 host-specific. Same as `GetDataDir` except under Unix where it is
6349 return _misc_
.StandardPaths_GetLocalDataDir(*args
, **kwargs
)
6351 def GetUserDataDir(*args
, **kwargs
):
6353 GetUserDataDir(self) -> String
6355 Return the directory for the user-dependent application data files:
6356 $HOME/.appname under Unix, c:\Documents and
6357 Settings\username\Application Data\appname under Windows and
6358 ~/Library/Application Support/appname under Mac
6360 return _misc_
.StandardPaths_GetUserDataDir(*args
, **kwargs
)
6362 def GetUserLocalDataDir(*args
, **kwargs
):
6364 GetUserLocalDataDir(self) -> String
6366 Return the directory for user data files which shouldn't be shared
6367 with the other machines
6369 Same as `GetUserDataDir` for all platforms except Windows where it is
6370 the 'Local Settings\Application Data\appname' directory.
6372 return _misc_
.StandardPaths_GetUserLocalDataDir(*args
, **kwargs
)
6374 def GetPluginsDir(*args
, **kwargs
):
6376 GetPluginsDir(self) -> String
6378 Return the directory where the loadable modules (plugins) live:
6379 prefix/lib/appname under Unix, program directory under Windows and
6380 Contents/Plugins app bundle subdirectory under Mac
6382 return _misc_
.StandardPaths_GetPluginsDir(*args
, **kwargs
)
6384 def GetResourcesDir(*args
, **kwargs
):
6386 GetResourcesDir(self) -> String
6388 Get resources directory. Resources are auxiliary files used by the
6389 application and include things like image and sound files.
6391 Same as `GetDataDir` for all platforms except Mac where it returns
6392 Contents/Resources subdirectory of the app bundle.
6394 return _misc_
.StandardPaths_GetResourcesDir(*args
, **kwargs
)
6396 def GetLocalizedResourcesDir(*args
, **kwargs
):
6398 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
6400 Get localized resources directory containing the resource files of the
6401 specified category for the given language.
6403 In general this is just GetResourcesDir()/lang under Windows and Unix
6404 and GetResourcesDir()/lang.lproj under Mac but is something quite
6405 different under Unix for the message catalog category (namely the
6406 standard prefix/share/locale/lang/LC_MESSAGES.)
6408 return _misc_
.StandardPaths_GetLocalizedResourcesDir(*args
, **kwargs
)
6410 def GetDocumentsDir(*args
, **kwargs
):
6412 GetDocumentsDir(self) -> String
6414 Return the Documents directory for the current user.
6416 C:\Documents and Settings\username\Documents under Windows,
6417 $HOME under Unix and ~/Documents under Mac
6419 return _misc_
.StandardPaths_GetDocumentsDir(*args
, **kwargs
)
6421 def SetInstallPrefix(*args
, **kwargs
):
6423 SetInstallPrefix(self, String prefix)
6425 Set the program installation directory which is /usr/local by default.
6426 This value will be used by other methods such as `GetDataDir` and
6427 `GetPluginsDir` as the prefix for what they return. (This function
6428 only has meaning on Unix systems.)
6430 return _misc_
.StandardPaths_SetInstallPrefix(*args
, **kwargs
)
6432 def GetInstallPrefix(*args
, **kwargs
):
6434 GetInstallPrefix(self) -> String
6436 Get the program installation prefix. The default is the prefix where
6437 Python is installed. (This function only has meaning on Unix systems.)
6439 return _misc_
.StandardPaths_GetInstallPrefix(*args
, **kwargs
)
6441 _misc_
.StandardPaths_swigregister(StandardPaths
)
6443 def StandardPaths_Get(*args
):
6445 StandardPaths_Get() -> StandardPaths
6447 Return the global standard paths singleton
6449 return _misc_
.StandardPaths_Get(*args
)
6451 #---------------------------------------------------------------------------
6453 POWER_SOCKET
= _misc_
.POWER_SOCKET
6454 POWER_BATTERY
= _misc_
.POWER_BATTERY
6455 POWER_UNKNOWN
= _misc_
.POWER_UNKNOWN
6456 BATTERY_NORMAL_STATE
= _misc_
.BATTERY_NORMAL_STATE
6457 BATTERY_LOW_STATE
= _misc_
.BATTERY_LOW_STATE
6458 BATTERY_CRITICAL_STATE
= _misc_
.BATTERY_CRITICAL_STATE
6459 BATTERY_SHUTDOWN_STATE
= _misc_
.BATTERY_SHUTDOWN_STATE
6460 BATTERY_UNKNOWN_STATE
= _misc_
.BATTERY_UNKNOWN_STATE
6461 class PowerEvent(_core
.Event
):
6463 wx.PowerEvent is generated when the system online status changes.
6464 Currently this is only implemented for Windows.
6466 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6467 __repr__
= _swig_repr
6468 def __init__(self
, *args
, **kwargs
):
6470 __init__(self, EventType evtType) -> PowerEvent
6472 wx.PowerEvent is generated when the system online status changes.
6473 Currently this is only implemented for Windows.
6475 _misc_
.PowerEvent_swiginit(self
,_misc_
.new_PowerEvent(*args
, **kwargs
))
6476 def Veto(*args
, **kwargs
):
6478 return _misc_
.PowerEvent_Veto(*args
, **kwargs
)
6480 def IsVetoed(*args
, **kwargs
):
6481 """IsVetoed(self) -> bool"""
6482 return _misc_
.PowerEvent_IsVetoed(*args
, **kwargs
)
6484 _misc_
.PowerEvent_swigregister(PowerEvent
)
6486 wxEVT_POWER_SUSPENDING
= _misc_
.wxEVT_POWER_SUSPENDING
6487 wxEVT_POWER_SUSPENDED
= _misc_
.wxEVT_POWER_SUSPENDED
6488 wxEVT_POWER_SUSPEND_CANCEL
= _misc_
.wxEVT_POWER_SUSPEND_CANCEL
6489 wxEVT_POWER_RESUME
= _misc_
.wxEVT_POWER_RESUME
6490 EVT_POWER_SUSPENDING
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDING
, 1 )
6491 EVT_POWER_SUSPENDED
= wx
.PyEventBinder( wxEVT_POWER_SUSPENDED
, 1 )
6492 EVT_POWER_SUSPEND_CANCEL
= wx
.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL
, 1 )
6493 EVT_POWER_RESUME
= wx
.PyEventBinder( wxEVT_POWER_RESUME
, 1 )
6496 def GetPowerType(*args
):
6498 GetPowerType() -> int
6500 return the current system power state: online or offline
6502 return _misc_
.GetPowerType(*args
)
6504 def GetBatteryState(*args
):
6506 GetBatteryState() -> int
6508 return approximate battery state
6510 return _misc_
.GetBatteryState(*args
)
6511 #---------------------------------------------------------------------------
6513 class AboutDialogInfo(object):
6515 `wx.AboutDialogInfo contains information shown in the standard About
6516 dialog displayed by the `wx.AboutBox` function. This class contains
6517 the general information about the program, such as its name, version,
6518 copyright and so on, as well as lists of the program developers,
6519 documentation writers, artists and translators.
6521 While all the main platforms have a native implementation of the about
6522 dialog, they are often more limited than the generic version provided
6523 by wxWidgets and so the generic version is used if
6524 `wx.AboutDialogInfo` has any fields not supported by the native
6525 version. Currently GTK+ version supports all the possible fields
6526 natively but MSW and Mac versions don't support URLs, licence text nor
6527 custom icons in the about dialog and if either of those is used,
6528 wxAboutBox() will automatically use the generic version so you should
6529 avoid specifying these fields to achieve more native look and feel.
6532 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6533 __repr__
= _swig_repr
6534 def __init__(self
, *args
, **kwargs
):
6536 __init__(self) -> AboutDialogInfo
6538 `wx.AboutDialogInfo contains information shown in the standard About
6539 dialog displayed by the `wx.AboutBox` function. This class contains
6540 the general information about the program, such as its name, version,
6541 copyright and so on, as well as lists of the program developers,
6542 documentation writers, artists and translators.
6544 While all the main platforms have a native implementation of the about
6545 dialog, they are often more limited than the generic version provided
6546 by wxWidgets and so the generic version is used if
6547 `wx.AboutDialogInfo` has any fields not supported by the native
6548 version. Currently GTK+ version supports all the possible fields
6549 natively but MSW and Mac versions don't support URLs, licence text nor
6550 custom icons in the about dialog and if either of those is used,
6551 wxAboutBox() will automatically use the generic version so you should
6552 avoid specifying these fields to achieve more native look and feel.
6555 _misc_
.AboutDialogInfo_swiginit(self
,_misc_
.new_AboutDialogInfo(*args
, **kwargs
))
6556 __swig_destroy__
= _misc_
.delete_AboutDialogInfo
6557 __del__
= lambda self
: None;
6558 def SetName(*args
, **kwargs
):
6560 SetName(self, String name)
6562 Set the name of the program. If this method is not called, the string
6563 returned by `wx.App.GetAppName` will be shown in the dialog.
6565 return _misc_
.AboutDialogInfo_SetName(*args
, **kwargs
)
6567 def GetName(*args
, **kwargs
):
6569 GetName(self) -> String
6571 Returns the program name.
6573 return _misc_
.AboutDialogInfo_GetName(*args
, **kwargs
)
6575 Name
= property(GetName
,SetName
)
6576 def SetVersion(*args
, **kwargs
):
6578 SetVersion(self, String version)
6580 Set the version of the program. The version is in free format,
6581 i.e. not necessarily in the x.y.z form but it shouldn't contain the
6584 return _misc_
.AboutDialogInfo_SetVersion(*args
, **kwargs
)
6586 def HasVersion(*args
, **kwargs
):
6588 HasVersion(self) -> bool
6590 Returns ``True`` if the version property has been set.
6592 return _misc_
.AboutDialogInfo_HasVersion(*args
, **kwargs
)
6594 def GetVersion(*args
, **kwargs
):
6596 GetVersion(self) -> String
6598 Returns the version value.
6600 return _misc_
.AboutDialogInfo_GetVersion(*args
, **kwargs
)
6602 Version
= property(GetVersion
,SetVersion
)
6603 def SetDescription(*args
, **kwargs
):
6605 SetDescription(self, String desc)
6607 Set brief, but possibly multiline, description of the program.
6609 return _misc_
.AboutDialogInfo_SetDescription(*args
, **kwargs
)
6611 def HasDescription(*args
, **kwargs
):
6613 HasDescription(self) -> bool
6615 Returns ``True`` if the description property has been set.
6617 return _misc_
.AboutDialogInfo_HasDescription(*args
, **kwargs
)
6619 def GetDescription(*args
, **kwargs
):
6621 GetDescription(self) -> String
6623 Returns the description value.
6625 return _misc_
.AboutDialogInfo_GetDescription(*args
, **kwargs
)
6627 Description
= property(GetDescription
,SetDescription
)
6628 def SetCopyright(*args
, **kwargs
):
6630 SetCopyright(self, String copyright)
6632 Set the short string containing the program copyright
6633 information. Notice that any occurrences of "(C)" in ``copyright``
6634 will be replaced by the copyright symbol (circled C) automatically,
6635 which means that you can avoid using this symbol in the program source
6636 code which can be problematic.
6638 return _misc_
.AboutDialogInfo_SetCopyright(*args
, **kwargs
)
6640 def HasCopyright(*args
, **kwargs
):
6642 HasCopyright(self) -> bool
6644 Returns ``True`` if the copyright property has been set.
6646 return _misc_
.AboutDialogInfo_HasCopyright(*args
, **kwargs
)
6648 def GetCopyright(*args
, **kwargs
):
6650 GetCopyright(self) -> String
6652 Returns the copyright value.
6654 return _misc_
.AboutDialogInfo_GetCopyright(*args
, **kwargs
)
6656 Copyright
= property(GetCopyright
,SetCopyright
)
6657 def SetLicence(*args
, **kwargs
):
6659 SetLicence(self, String licence)
6661 Set the long, multiline string containing the text of the program
6664 Only GTK+ version supports showing the licence text in the native
6665 about dialog currently so the generic version will be used under all
6666 the other platforms if this method is called. To preserve the native
6667 look and feel it is advised that you do not call this method but
6668 provide a separate menu item in the "Help" menu for displaying the
6669 text of your program licence.
6672 return _misc_
.AboutDialogInfo_SetLicence(*args
, **kwargs
)
6674 def SetLicense(*args
, **kwargs
):
6676 SetLicense(self, String licence)
6678 This is the same as `SetLicence`.
6680 return _misc_
.AboutDialogInfo_SetLicense(*args
, **kwargs
)
6682 def HasLicence(*args
, **kwargs
):
6684 HasLicence(self) -> bool
6686 Returns ``True`` if the licence property has been set.
6688 return _misc_
.AboutDialogInfo_HasLicence(*args
, **kwargs
)
6690 def GetLicence(*args
, **kwargs
):
6692 GetLicence(self) -> String
6694 Returns the licence value.
6696 return _misc_
.AboutDialogInfo_GetLicence(*args
, **kwargs
)
6698 Licence
= property(GetLicence
,SetLicence
)
6700 def SetIcon(*args
, **kwargs
):
6702 SetIcon(self, Icon icon)
6704 Set the icon to be shown in the dialog. By default the icon of the
6705 main frame will be shown if the native about dialog supports custom
6706 icons. If it doesn't but a valid icon is specified using this method,
6707 the generic about dialog is used instead so you should avoid calling
6708 this function for maximally native look and feel.
6710 return _misc_
.AboutDialogInfo_SetIcon(*args
, **kwargs
)
6712 def HasIcon(*args
, **kwargs
):
6714 HasIcon(self) -> bool
6716 Returns ``True`` if the icon property has been set.
6718 return _misc_
.AboutDialogInfo_HasIcon(*args
, **kwargs
)
6720 def GetIcon(*args
, **kwargs
):
6722 GetIcon(self) -> Icon
6724 Return the current icon value.
6726 return _misc_
.AboutDialogInfo_GetIcon(*args
, **kwargs
)
6728 Icon
= property(GetIcon
,SetIcon
)
6729 def _SetWebSite(*args
, **kwargs
):
6730 """_SetWebSite(self, String url, String desc=wxEmptyString)"""
6731 return _misc_
.AboutDialogInfo__SetWebSite(*args
, **kwargs
)
6733 def _GetWebSiteURL(*args
, **kwargs
):
6734 """_GetWebSiteURL(self) -> String"""
6735 return _misc_
.AboutDialogInfo__GetWebSiteURL(*args
, **kwargs
)
6737 def _GetWebSiteDescription(*args
, **kwargs
):
6738 """_GetWebSiteDescription(self) -> String"""
6739 return _misc_
.AboutDialogInfo__GetWebSiteDescription(*args
, **kwargs
)
6741 def HasWebSite(*args
, **kwargs
):
6742 """HasWebSite(self) -> bool"""
6743 return _misc_
.AboutDialogInfo_HasWebSite(*args
, **kwargs
)
6745 def SetWebSite(self
, args
):
6747 SetWebSite(self, URL, [Description])
6749 Set the web site property. The ``args`` parameter can
6750 either be a single string for the URL, to a 2-tuple of
6751 (URL, Description) strings.
6753 if type(args
) in [str, unicode]:
6754 self
._SetWebSite
(args
)
6756 self
._SetWebSite
(args
[0], args
[1])
6758 def GetWebSite(self
):
6760 GetWebSite(self) --> (URL, Description)
6762 return (self
._GetWebSiteURL
(), self
._GetWebSiteDescription
())
6764 WebSite
= property(GetWebSite
,SetWebSite
)
6765 def SetDevelopers(*args
, **kwargs
):
6767 SetDevelopers(self, list developers)
6769 Set the list of the developers of the program.
6771 return _misc_
.AboutDialogInfo_SetDevelopers(*args
, **kwargs
)
6773 def AddDeveloper(*args
, **kwargs
):
6775 AddDeveloper(self, String developer)
6777 Add a string to the list of developers.
6779 return _misc_
.AboutDialogInfo_AddDeveloper(*args
, **kwargs
)
6781 def HasDevelopers(*args
, **kwargs
):
6783 HasDevelopers(self) -> bool
6785 Returns ``True if any developers have been set.
6787 return _misc_
.AboutDialogInfo_HasDevelopers(*args
, **kwargs
)
6789 def GetDevelopers(*args
, **kwargs
):
6791 GetDevelopers(self) --> list
6793 Returns the list of developers.
6795 return _misc_
.AboutDialogInfo_GetDevelopers(*args
, **kwargs
)
6797 Developers
= property(GetDevelopers
,SetDevelopers
)
6798 def SetDocWriters(*args
, **kwargs
):
6800 SetDocWriters(self, list docwriters)
6802 Set the list of the documentation writers.
6804 return _misc_
.AboutDialogInfo_SetDocWriters(*args
, **kwargs
)
6806 def AddDocWriter(*args
, **kwargs
):
6808 AddDocWriter(self, String docwriter)
6810 Add a string to the list of documentation writers.
6812 return _misc_
.AboutDialogInfo_AddDocWriter(*args
, **kwargs
)
6814 def HasDocWriters(*args
, **kwargs
):
6816 HasDocWriters(self) -> bool
6818 Returns ``True if any documentation writers have been set.
6820 return _misc_
.AboutDialogInfo_HasDocWriters(*args
, **kwargs
)
6822 def GetDocWriters(*args
, **kwargs
):
6824 GetDocWriters(self) --> list
6826 Returns the list of documentation writers.
6828 return _misc_
.AboutDialogInfo_GetDocWriters(*args
, **kwargs
)
6830 DocWriters
= property(GetDocWriters
,SetDocWriters
)
6831 def SetArtists(*args
, **kwargs
):
6833 SetArtists(self, list artists)
6835 Set the list of artists for the program.
6837 return _misc_
.AboutDialogInfo_SetArtists(*args
, **kwargs
)
6839 def AddArtist(*args
, **kwargs
):
6841 AddArtist(self, String artist)
6843 Add a string to the list of artists.
6845 return _misc_
.AboutDialogInfo_AddArtist(*args
, **kwargs
)
6847 def HasArtists(*args
, **kwargs
):
6849 HasArtists(self) -> bool
6851 Returns ``True`` if any artists have been set.
6853 return _misc_
.AboutDialogInfo_HasArtists(*args
, **kwargs
)
6855 def GetArtists(*args
, **kwargs
):
6857 GetArtists(self) --> list
6859 Returns the list od artists.
6861 return _misc_
.AboutDialogInfo_GetArtists(*args
, **kwargs
)
6863 Artists
= property(GetArtists
,SetArtists
)
6864 def SetTranslators(*args
, **kwargs
):
6866 SetTranslators(self, list translators)
6868 Sets the list of program translators.
6870 return _misc_
.AboutDialogInfo_SetTranslators(*args
, **kwargs
)
6872 def AddTranslator(*args
, **kwargs
):
6874 AddTranslator(self, String translator)
6876 Add a string to the list of translators.
6878 return _misc_
.AboutDialogInfo_AddTranslator(*args
, **kwargs
)
6880 def HasTranslators(*args
, **kwargs
):
6882 HasTranslators(self) -> bool
6884 Returns ``True`` if any translators have been set.
6886 return _misc_
.AboutDialogInfo_HasTranslators(*args
, **kwargs
)
6888 def GetTranslators(*args
, **kwargs
):
6890 GetTranslators(self) --> list
6892 Returns the list of program translators.
6894 return _misc_
.AboutDialogInfo_GetTranslators(*args
, **kwargs
)
6896 Translators
= property(GetTranslators
,SetTranslators
)
6897 def IsSimple(*args
, **kwargs
):
6898 """IsSimple(self) -> bool"""
6899 return _misc_
.AboutDialogInfo_IsSimple(*args
, **kwargs
)
6901 def GetDescriptionAndCredits(*args
, **kwargs
):
6902 """GetDescriptionAndCredits(self) -> String"""
6903 return _misc_
.AboutDialogInfo_GetDescriptionAndCredits(*args
, **kwargs
)
6905 _misc_
.AboutDialogInfo_swigregister(AboutDialogInfo
)
6908 def AboutBox(*args
, **kwargs
):
6910 AboutBox(AboutDialogInfo info)
6912 This function shows the standard about dialog containing the
6913 information specified in ``info``. If the current platform has a
6914 native about dialog which is capable of showing all the fields in
6915 `wx.AboutDialogInfo`, the native dialog is used, otherwise the
6916 function falls back to the generic wxWidgets version of the dialog.
6918 return _misc_
.AboutBox(*args
, **kwargs
)