1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 SYS_OEM_FIXED_FONT
= _misc
.SYS_OEM_FIXED_FONT
11 SYS_ANSI_FIXED_FONT
= _misc
.SYS_ANSI_FIXED_FONT
12 SYS_ANSI_VAR_FONT
= _misc
.SYS_ANSI_VAR_FONT
13 SYS_SYSTEM_FONT
= _misc
.SYS_SYSTEM_FONT
14 SYS_DEVICE_DEFAULT_FONT
= _misc
.SYS_DEVICE_DEFAULT_FONT
15 SYS_DEFAULT_PALETTE
= _misc
.SYS_DEFAULT_PALETTE
16 SYS_SYSTEM_FIXED_FONT
= _misc
.SYS_SYSTEM_FIXED_FONT
17 SYS_DEFAULT_GUI_FONT
= _misc
.SYS_DEFAULT_GUI_FONT
18 SYS_ICONTITLE_FONT
= _misc
.SYS_ICONTITLE_FONT
19 SYS_COLOUR_SCROLLBAR
= _misc
.SYS_COLOUR_SCROLLBAR
20 SYS_COLOUR_BACKGROUND
= _misc
.SYS_COLOUR_BACKGROUND
21 SYS_COLOUR_DESKTOP
= _misc
.SYS_COLOUR_DESKTOP
22 SYS_COLOUR_ACTIVECAPTION
= _misc
.SYS_COLOUR_ACTIVECAPTION
23 SYS_COLOUR_INACTIVECAPTION
= _misc
.SYS_COLOUR_INACTIVECAPTION
24 SYS_COLOUR_MENU
= _misc
.SYS_COLOUR_MENU
25 SYS_COLOUR_WINDOW
= _misc
.SYS_COLOUR_WINDOW
26 SYS_COLOUR_WINDOWFRAME
= _misc
.SYS_COLOUR_WINDOWFRAME
27 SYS_COLOUR_MENUTEXT
= _misc
.SYS_COLOUR_MENUTEXT
28 SYS_COLOUR_WINDOWTEXT
= _misc
.SYS_COLOUR_WINDOWTEXT
29 SYS_COLOUR_CAPTIONTEXT
= _misc
.SYS_COLOUR_CAPTIONTEXT
30 SYS_COLOUR_ACTIVEBORDER
= _misc
.SYS_COLOUR_ACTIVEBORDER
31 SYS_COLOUR_INACTIVEBORDER
= _misc
.SYS_COLOUR_INACTIVEBORDER
32 SYS_COLOUR_APPWORKSPACE
= _misc
.SYS_COLOUR_APPWORKSPACE
33 SYS_COLOUR_HIGHLIGHT
= _misc
.SYS_COLOUR_HIGHLIGHT
34 SYS_COLOUR_HIGHLIGHTTEXT
= _misc
.SYS_COLOUR_HIGHLIGHTTEXT
35 SYS_COLOUR_BTNFACE
= _misc
.SYS_COLOUR_BTNFACE
36 SYS_COLOUR_3DFACE
= _misc
.SYS_COLOUR_3DFACE
37 SYS_COLOUR_BTNSHADOW
= _misc
.SYS_COLOUR_BTNSHADOW
38 SYS_COLOUR_3DSHADOW
= _misc
.SYS_COLOUR_3DSHADOW
39 SYS_COLOUR_GRAYTEXT
= _misc
.SYS_COLOUR_GRAYTEXT
40 SYS_COLOUR_BTNTEXT
= _misc
.SYS_COLOUR_BTNTEXT
41 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc
.SYS_COLOUR_INACTIVECAPTIONTEXT
42 SYS_COLOUR_BTNHIGHLIGHT
= _misc
.SYS_COLOUR_BTNHIGHLIGHT
43 SYS_COLOUR_BTNHILIGHT
= _misc
.SYS_COLOUR_BTNHILIGHT
44 SYS_COLOUR_3DHIGHLIGHT
= _misc
.SYS_COLOUR_3DHIGHLIGHT
45 SYS_COLOUR_3DHILIGHT
= _misc
.SYS_COLOUR_3DHILIGHT
46 SYS_COLOUR_3DDKSHADOW
= _misc
.SYS_COLOUR_3DDKSHADOW
47 SYS_COLOUR_3DLIGHT
= _misc
.SYS_COLOUR_3DLIGHT
48 SYS_COLOUR_INFOTEXT
= _misc
.SYS_COLOUR_INFOTEXT
49 SYS_COLOUR_INFOBK
= _misc
.SYS_COLOUR_INFOBK
50 SYS_COLOUR_LISTBOX
= _misc
.SYS_COLOUR_LISTBOX
51 SYS_COLOUR_HOTLIGHT
= _misc
.SYS_COLOUR_HOTLIGHT
52 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc
.SYS_COLOUR_GRADIENTACTIVECAPTION
53 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc
.SYS_COLOUR_GRADIENTINACTIVECAPTION
54 SYS_COLOUR_MENUHILIGHT
= _misc
.SYS_COLOUR_MENUHILIGHT
55 SYS_COLOUR_MENUBAR
= _misc
.SYS_COLOUR_MENUBAR
56 SYS_COLOUR_MAX
= _misc
.SYS_COLOUR_MAX
57 SYS_MOUSE_BUTTONS
= _misc
.SYS_MOUSE_BUTTONS
58 SYS_BORDER_X
= _misc
.SYS_BORDER_X
59 SYS_BORDER_Y
= _misc
.SYS_BORDER_Y
60 SYS_CURSOR_X
= _misc
.SYS_CURSOR_X
61 SYS_CURSOR_Y
= _misc
.SYS_CURSOR_Y
62 SYS_DCLICK_X
= _misc
.SYS_DCLICK_X
63 SYS_DCLICK_Y
= _misc
.SYS_DCLICK_Y
64 SYS_DRAG_X
= _misc
.SYS_DRAG_X
65 SYS_DRAG_Y
= _misc
.SYS_DRAG_Y
66 SYS_EDGE_X
= _misc
.SYS_EDGE_X
67 SYS_EDGE_Y
= _misc
.SYS_EDGE_Y
68 SYS_HSCROLL_ARROW_X
= _misc
.SYS_HSCROLL_ARROW_X
69 SYS_HSCROLL_ARROW_Y
= _misc
.SYS_HSCROLL_ARROW_Y
70 SYS_HTHUMB_X
= _misc
.SYS_HTHUMB_X
71 SYS_ICON_X
= _misc
.SYS_ICON_X
72 SYS_ICON_Y
= _misc
.SYS_ICON_Y
73 SYS_ICONSPACING_X
= _misc
.SYS_ICONSPACING_X
74 SYS_ICONSPACING_Y
= _misc
.SYS_ICONSPACING_Y
75 SYS_WINDOWMIN_X
= _misc
.SYS_WINDOWMIN_X
76 SYS_WINDOWMIN_Y
= _misc
.SYS_WINDOWMIN_Y
77 SYS_SCREEN_X
= _misc
.SYS_SCREEN_X
78 SYS_SCREEN_Y
= _misc
.SYS_SCREEN_Y
79 SYS_FRAMESIZE_X
= _misc
.SYS_FRAMESIZE_X
80 SYS_FRAMESIZE_Y
= _misc
.SYS_FRAMESIZE_Y
81 SYS_SMALLICON_X
= _misc
.SYS_SMALLICON_X
82 SYS_SMALLICON_Y
= _misc
.SYS_SMALLICON_Y
83 SYS_HSCROLL_Y
= _misc
.SYS_HSCROLL_Y
84 SYS_VSCROLL_X
= _misc
.SYS_VSCROLL_X
85 SYS_VSCROLL_ARROW_X
= _misc
.SYS_VSCROLL_ARROW_X
86 SYS_VSCROLL_ARROW_Y
= _misc
.SYS_VSCROLL_ARROW_Y
87 SYS_VTHUMB_Y
= _misc
.SYS_VTHUMB_Y
88 SYS_CAPTION_Y
= _misc
.SYS_CAPTION_Y
89 SYS_MENU_Y
= _misc
.SYS_MENU_Y
90 SYS_NETWORK_PRESENT
= _misc
.SYS_NETWORK_PRESENT
91 SYS_PENWINDOWS_PRESENT
= _misc
.SYS_PENWINDOWS_PRESENT
92 SYS_SHOW_SOUNDS
= _misc
.SYS_SHOW_SOUNDS
93 SYS_SWAP_BUTTONS
= _misc
.SYS_SWAP_BUTTONS
94 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc
.SYS_CAN_DRAW_FRAME_DECORATIONS
95 SYS_CAN_ICONIZE_FRAME
= _misc
.SYS_CAN_ICONIZE_FRAME
96 SYS_SCREEN_NONE
= _misc
.SYS_SCREEN_NONE
97 SYS_SCREEN_TINY
= _misc
.SYS_SCREEN_TINY
98 SYS_SCREEN_PDA
= _misc
.SYS_SCREEN_PDA
99 SYS_SCREEN_SMALL
= _misc
.SYS_SCREEN_SMALL
100 SYS_SCREEN_DESKTOP
= _misc
.SYS_SCREEN_DESKTOP
101 class SystemSettings(object):
102 def __init__(self
): raise RuntimeError, "No constructor defined"
104 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
105 def GetColour(*args
, **kwargs
):
106 """SystemSettings.GetColour(wxSystemColour index) -> wxColour"""
107 return _misc
.SystemSettings_GetColour(*args
, **kwargs
)
109 GetColour
= staticmethod(GetColour
)
110 def GetFont(*args
, **kwargs
):
111 """SystemSettings.GetFont(wxSystemFont index) -> wxFont"""
112 return _misc
.SystemSettings_GetFont(*args
, **kwargs
)
114 GetFont
= staticmethod(GetFont
)
115 def GetMetric(*args
, **kwargs
):
116 """SystemSettings.GetMetric(wxSystemMetric index) -> int"""
117 return _misc
.SystemSettings_GetMetric(*args
, **kwargs
)
119 GetMetric
= staticmethod(GetMetric
)
120 def HasFeature(*args
, **kwargs
):
121 """SystemSettings.HasFeature(wxSystemFeature index) -> bool"""
122 return _misc
.SystemSettings_HasFeature(*args
, **kwargs
)
124 HasFeature
= staticmethod(HasFeature
)
125 def GetScreenType(*args
, **kwargs
):
126 """SystemSettings.GetScreenType() -> wxSystemScreenType"""
127 return _misc
.SystemSettings_GetScreenType(*args
, **kwargs
)
129 GetScreenType
= staticmethod(GetScreenType
)
130 def SetScreenType(*args
, **kwargs
):
131 """SystemSettings.SetScreenType(wxSystemScreenType screen)"""
132 return _misc
.SystemSettings_SetScreenType(*args
, **kwargs
)
134 SetScreenType
= staticmethod(SetScreenType
)
136 class SystemSettingsPtr(SystemSettings
):
137 def __init__(self
, this
):
139 if not hasattr(self
,"thisown"): self
.thisown
= 0
140 self
.__class
__ = SystemSettings
141 _misc
.SystemSettings_swigregister(SystemSettingsPtr
)
143 def SystemSettings_GetColour(*args
, **kwargs
):
144 """SystemSettings_GetColour(wxSystemColour index) -> wxColour"""
145 return _misc
.SystemSettings_GetColour(*args
, **kwargs
)
147 def SystemSettings_GetFont(*args
, **kwargs
):
148 """SystemSettings_GetFont(wxSystemFont index) -> wxFont"""
149 return _misc
.SystemSettings_GetFont(*args
, **kwargs
)
151 def SystemSettings_GetMetric(*args
, **kwargs
):
152 """SystemSettings_GetMetric(wxSystemMetric index) -> int"""
153 return _misc
.SystemSettings_GetMetric(*args
, **kwargs
)
155 def SystemSettings_HasFeature(*args
, **kwargs
):
156 """SystemSettings_HasFeature(wxSystemFeature index) -> bool"""
157 return _misc
.SystemSettings_HasFeature(*args
, **kwargs
)
159 def SystemSettings_GetScreenType(*args
, **kwargs
):
160 """SystemSettings_GetScreenType() -> wxSystemScreenType"""
161 return _misc
.SystemSettings_GetScreenType(*args
, **kwargs
)
163 def SystemSettings_SetScreenType(*args
, **kwargs
):
164 """SystemSettings_SetScreenType(wxSystemScreenType screen)"""
165 return _misc
.SystemSettings_SetScreenType(*args
, **kwargs
)
167 # backwards compatibility aliasses
168 SystemSettings_GetSystemColour
= SystemSettings_GetColour
169 SystemSettings_GetSystemFont
= SystemSettings_GetFont
170 SystemSettings_GetSystemMetric
= SystemSettings_GetMetric
172 class SystemOptions(core
.Object
):
174 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
175 def __init__(self
, *args
, **kwargs
):
176 """__init__() -> SystemOptions"""
177 newobj
= _misc
.new_SystemOptions(*args
, **kwargs
)
178 self
.this
= newobj
.this
181 def SetOption(*args
, **kwargs
):
182 """SystemOptions.SetOption(wxString name, wxString value)"""
183 return _misc
.SystemOptions_SetOption(*args
, **kwargs
)
185 SetOption
= staticmethod(SetOption
)
186 def SetOptionInt(*args
, **kwargs
):
187 """SystemOptions.SetOptionInt(wxString name, int value)"""
188 return _misc
.SystemOptions_SetOptionInt(*args
, **kwargs
)
190 SetOptionInt
= staticmethod(SetOptionInt
)
191 def GetOption(*args
, **kwargs
):
192 """SystemOptions.GetOption(wxString name) -> wxString"""
193 return _misc
.SystemOptions_GetOption(*args
, **kwargs
)
195 GetOption
= staticmethod(GetOption
)
196 def GetOptionInt(*args
, **kwargs
):
197 """SystemOptions.GetOptionInt(wxString name) -> int"""
198 return _misc
.SystemOptions_GetOptionInt(*args
, **kwargs
)
200 GetOptionInt
= staticmethod(GetOptionInt
)
201 def HasOption(*args
, **kwargs
):
202 """SystemOptions.HasOption(wxString name) -> bool"""
203 return _misc
.SystemOptions_HasOption(*args
, **kwargs
)
205 HasOption
= staticmethod(HasOption
)
207 class SystemOptionsPtr(SystemOptions
):
208 def __init__(self
, this
):
210 if not hasattr(self
,"thisown"): self
.thisown
= 0
211 self
.__class
__ = SystemOptions
212 _misc
.SystemOptions_swigregister(SystemOptionsPtr
)
214 def SystemOptions_SetOption(*args
, **kwargs
):
215 """SystemOptions_SetOption(wxString name, wxString value)"""
216 return _misc
.SystemOptions_SetOption(*args
, **kwargs
)
218 def SystemOptions_SetOptionInt(*args
, **kwargs
):
219 """SystemOptions_SetOptionInt(wxString name, int value)"""
220 return _misc
.SystemOptions_SetOptionInt(*args
, **kwargs
)
222 def SystemOptions_GetOption(*args
, **kwargs
):
223 """SystemOptions_GetOption(wxString name) -> wxString"""
224 return _misc
.SystemOptions_GetOption(*args
, **kwargs
)
226 def SystemOptions_GetOptionInt(*args
, **kwargs
):
227 """SystemOptions_GetOptionInt(wxString name) -> int"""
228 return _misc
.SystemOptions_GetOptionInt(*args
, **kwargs
)
230 def SystemOptions_HasOption(*args
, **kwargs
):
231 """SystemOptions_HasOption(wxString name) -> bool"""
232 return _misc
.SystemOptions_HasOption(*args
, **kwargs
)
234 #---------------------------------------------------------------------------
237 def NewId(*args
, **kwargs
):
238 """NewId() -> long"""
239 return _misc
.NewId(*args
, **kwargs
)
241 def RegisterId(*args
, **kwargs
):
242 """RegisterId(long id)"""
243 return _misc
.RegisterId(*args
, **kwargs
)
245 def GetCurrentId(*args
, **kwargs
):
246 """GetCurrentId() -> long"""
247 return _misc
.GetCurrentId(*args
, **kwargs
)
249 def Bell(*args
, **kwargs
):
251 return _misc
.Bell(*args
, **kwargs
)
253 def EndBusyCursor(*args
, **kwargs
):
254 """EndBusyCursor()"""
255 return _misc
.EndBusyCursor(*args
, **kwargs
)
257 def GetElapsedTime(*args
, **kwargs
):
258 """GetElapsedTime(bool resetTimer=True) -> long"""
259 return _misc
.GetElapsedTime(*args
, **kwargs
)
261 def GetMousePosition(*args
, **kwargs
):
262 """GetMousePosition() -> (x,y)"""
263 return _misc
.GetMousePosition(*args
, **kwargs
)
265 def IsBusy(*args
, **kwargs
):
266 """IsBusy() -> bool"""
267 return _misc
.IsBusy(*args
, **kwargs
)
269 def Now(*args
, **kwargs
):
270 """Now() -> wxString"""
271 return _misc
.Now(*args
, **kwargs
)
273 def Shell(*args
, **kwargs
):
274 """Shell(wxString command=wxPyEmptyString) -> bool"""
275 return _misc
.Shell(*args
, **kwargs
)
277 def StartTimer(*args
, **kwargs
):
279 return _misc
.StartTimer(*args
, **kwargs
)
281 def GetOsVersion(*args
, **kwargs
):
282 """GetOsVersion() -> (platform, major, minor)"""
283 return _misc
.GetOsVersion(*args
, **kwargs
)
285 def GetOsDescription(*args
, **kwargs
):
286 """GetOsDescription() -> wxString"""
287 return _misc
.GetOsDescription(*args
, **kwargs
)
289 def GetFreeMemory(*args
, **kwargs
):
290 """GetFreeMemory() -> long"""
291 return _misc
.GetFreeMemory(*args
, **kwargs
)
292 SHUTDOWN_POWEROFF
= _misc
.SHUTDOWN_POWEROFF
293 SHUTDOWN_REBOOT
= _misc
.SHUTDOWN_REBOOT
295 def Shutdown(*args
, **kwargs
):
296 """Shutdown(wxShutdownFlags wFlags) -> bool"""
297 return _misc
.Shutdown(*args
, **kwargs
)
299 def Sleep(*args
, **kwargs
):
300 """Sleep(int secs)"""
301 return _misc
.Sleep(*args
, **kwargs
)
303 def Usleep(*args
, **kwargs
):
304 """Usleep(unsigned long milliseconds)"""
305 return _misc
.Usleep(*args
, **kwargs
)
307 def EnableTopLevelWindows(*args
, **kwargs
):
308 """EnableTopLevelWindows(bool enable)"""
309 return _misc
.EnableTopLevelWindows(*args
, **kwargs
)
311 def StripMenuCodes(*args
, **kwargs
):
312 """StripMenuCodes(wxString in) -> wxString"""
313 return _misc
.StripMenuCodes(*args
, **kwargs
)
315 def GetEmailAddress(*args
, **kwargs
):
316 """GetEmailAddress() -> wxString"""
317 return _misc
.GetEmailAddress(*args
, **kwargs
)
319 def GetHostName(*args
, **kwargs
):
320 """GetHostName() -> wxString"""
321 return _misc
.GetHostName(*args
, **kwargs
)
323 def GetFullHostName(*args
, **kwargs
):
324 """GetFullHostName() -> wxString"""
325 return _misc
.GetFullHostName(*args
, **kwargs
)
327 def GetUserId(*args
, **kwargs
):
328 """GetUserId() -> wxString"""
329 return _misc
.GetUserId(*args
, **kwargs
)
331 def GetUserName(*args
, **kwargs
):
332 """GetUserName() -> wxString"""
333 return _misc
.GetUserName(*args
, **kwargs
)
335 def GetHomeDir(*args
, **kwargs
):
336 """GetHomeDir() -> wxString"""
337 return _misc
.GetHomeDir(*args
, **kwargs
)
339 def GetUserHome(*args
, **kwargs
):
340 """GetUserHome(wxString user=wxPyEmptyString) -> wxString"""
341 return _misc
.GetUserHome(*args
, **kwargs
)
343 def GetProcessId(*args
, **kwargs
):
344 """GetProcessId() -> unsigned long"""
345 return _misc
.GetProcessId(*args
, **kwargs
)
347 def Trap(*args
, **kwargs
):
349 return _misc
.Trap(*args
, **kwargs
)
351 def FileSelector(*args
, **kwargs
):
353 FileSelector(wxString message=wxPyFileSelectorPromptStr, wxString default_path=wxPyEmptyString,
354 wxString default_filename=wxPyEmptyString,
355 wxString default_extension=wxPyEmptyString,
356 wxString wildcard=wxPyFileSelectorDefaultWildcardStr,
358 Window parent=None, int x=-1, int y=-1) -> wxString
360 return _misc
.FileSelector(*args
, **kwargs
)
362 def LoadFileSelector(*args
, **kwargs
):
364 LoadFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
365 Window parent=None) -> wxString
367 return _misc
.LoadFileSelector(*args
, **kwargs
)
369 def SaveFileSelector(*args
, **kwargs
):
371 SaveFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
372 Window parent=None) -> wxString
374 return _misc
.SaveFileSelector(*args
, **kwargs
)
376 def DirSelector(*args
, **kwargs
):
378 DirSelector(wxString message=wxPyDirSelectorPromptStr, wxString defaultPath=wxPyEmptyString,
379 long style=DD_DEFAULT_STYLE,
380 Point pos=DefaultPosition, Window parent=None) -> wxString
382 return _misc
.DirSelector(*args
, **kwargs
)
384 def GetTextFromUser(*args
, **kwargs
):
386 GetTextFromUser(wxString message, wxString caption=wxPyEmptyString,
387 wxString default_value=wxPyEmptyString, Window parent=None,
388 int x=-1, int y=-1, bool centre=True) -> wxString
390 return _misc
.GetTextFromUser(*args
, **kwargs
)
392 def GetPasswordFromUser(*args
, **kwargs
):
394 GetPasswordFromUser(wxString message, wxString caption=wxPyEmptyString,
395 wxString default_value=wxPyEmptyString, Window parent=None) -> wxString
397 return _misc
.GetPasswordFromUser(*args
, **kwargs
)
399 def GetSingleChoice(*args
, **kwargs
):
401 GetSingleChoice(wxString message, wxString caption, int choices, wxString choices_array,
402 Window parent=None, int x=-1,
403 int y=-1, bool centre=True, int width=150,
404 int height=200) -> wxString
406 return _misc
.GetSingleChoice(*args
, **kwargs
)
408 def GetSingleChoiceIndex(*args
, **kwargs
):
410 GetSingleChoiceIndex(wxString message, wxString caption, int choices, wxString choices_array,
411 Window parent=None, int x=-1,
412 int y=-1, bool centre=True, int width=150,
413 int height=200) -> int
415 return _misc
.GetSingleChoiceIndex(*args
, **kwargs
)
417 def MessageBox(*args
, **kwargs
):
419 MessageBox(wxString message, wxString caption=wxPyEmptyString,
420 int style=wxOK|wxCENTRE, Window parent=None,
421 int x=-1, int y=-1) -> int
423 return _misc
.MessageBox(*args
, **kwargs
)
425 def GetNumberFromUser(*args
, **kwargs
):
427 GetNumberFromUser(wxString message, wxString prompt, wxString caption,
428 long value, long min=0, long max=100, Window parent=None,
429 Point pos=DefaultPosition) -> long
431 return _misc
.GetNumberFromUser(*args
, **kwargs
)
433 def ColourDisplay(*args
, **kwargs
):
434 """ColourDisplay() -> bool"""
435 return _misc
.ColourDisplay(*args
, **kwargs
)
437 def DisplayDepth(*args
, **kwargs
):
438 """DisplayDepth() -> int"""
439 return _misc
.DisplayDepth(*args
, **kwargs
)
441 def GetDisplayDepth(*args
, **kwargs
):
442 """GetDisplayDepth() -> int"""
443 return _misc
.GetDisplayDepth(*args
, **kwargs
)
445 def DisplaySize(*args
, **kwargs
):
446 """DisplaySize() -> (width, height)"""
447 return _misc
.DisplaySize(*args
, **kwargs
)
449 def GetDisplaySize(*args
, **kwargs
):
450 """GetDisplaySize() -> Size"""
451 return _misc
.GetDisplaySize(*args
, **kwargs
)
453 def DisplaySizeMM(*args
, **kwargs
):
454 """DisplaySizeMM() -> (width, height)"""
455 return _misc
.DisplaySizeMM(*args
, **kwargs
)
457 def GetDisplaySizeMM(*args
, **kwargs
):
458 """GetDisplaySizeMM() -> Size"""
459 return _misc
.GetDisplaySizeMM(*args
, **kwargs
)
461 def ClientDisplayRect(*args
, **kwargs
):
462 """ClientDisplayRect() -> (x, y, width, height)"""
463 return _misc
.ClientDisplayRect(*args
, **kwargs
)
465 def GetClientDisplayRect(*args
, **kwargs
):
466 """GetClientDisplayRect() -> Rect"""
467 return _misc
.GetClientDisplayRect(*args
, **kwargs
)
469 def SetCursor(*args
, **kwargs
):
470 """SetCursor(wxCursor cursor)"""
471 return _misc
.SetCursor(*args
, **kwargs
)
473 def BeginBusyCursor(*args
, **kwargs
):
474 """BeginBusyCursor(wxCursor cursor=wxHOURGLASS_CURSOR)"""
475 return _misc
.BeginBusyCursor(*args
, **kwargs
)
477 def GetActiveWindow(*args
, **kwargs
):
478 """GetActiveWindow() -> Window"""
479 return _misc
.GetActiveWindow(*args
, **kwargs
)
481 def GenericFindWindowAtPoint(*args
, **kwargs
):
482 """GenericFindWindowAtPoint(Point pt) -> Window"""
483 return _misc
.GenericFindWindowAtPoint(*args
, **kwargs
)
485 def FindWindowAtPoint(*args
, **kwargs
):
486 """FindWindowAtPoint(Point pt) -> Window"""
487 return _misc
.FindWindowAtPoint(*args
, **kwargs
)
489 def GetTopLevelParent(*args
, **kwargs
):
490 """GetTopLevelParent(Window win) -> Window"""
491 return _misc
.GetTopLevelParent(*args
, **kwargs
)
493 def WakeUpMainThread(*args
, **kwargs
):
494 """WakeUpMainThread()"""
495 return _misc
.WakeUpMainThread(*args
, **kwargs
)
497 def MutexGuiEnter(*args
, **kwargs
):
498 """MutexGuiEnter()"""
499 return _misc
.MutexGuiEnter(*args
, **kwargs
)
501 def MutexGuiLeave(*args
, **kwargs
):
502 """MutexGuiLeave()"""
503 return _misc
.MutexGuiLeave(*args
, **kwargs
)
504 class MutexGuiLocker(object):
506 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
507 def __init__(self
, *args
, **kwargs
):
508 """__init__() -> MutexGuiLocker"""
509 newobj
= _misc
.new_MutexGuiLocker(*args
, **kwargs
)
510 self
.this
= newobj
.this
513 def __del__(self
, destroy
=_misc
.delete_MutexGuiLocker
):
516 if self
.thisown
: destroy(self
)
520 class MutexGuiLockerPtr(MutexGuiLocker
):
521 def __init__(self
, this
):
523 if not hasattr(self
,"thisown"): self
.thisown
= 0
524 self
.__class
__ = MutexGuiLocker
525 _misc
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
528 def Thread_IsMain(*args
, **kwargs
):
529 """Thread_IsMain() -> bool"""
530 return _misc
.Thread_IsMain(*args
, **kwargs
)
531 #---------------------------------------------------------------------------
533 class ToolTip(core
.Object
):
535 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
536 def __init__(self
, *args
, **kwargs
):
537 """__init__(wxString tip) -> ToolTip"""
538 newobj
= _misc
.new_ToolTip(*args
, **kwargs
)
539 self
.this
= newobj
.this
542 def SetTip(*args
, **kwargs
):
543 """SetTip(wxString tip)"""
544 return _misc
.ToolTip_SetTip(*args
, **kwargs
)
546 def GetTip(*args
, **kwargs
):
547 """GetTip() -> wxString"""
548 return _misc
.ToolTip_GetTip(*args
, **kwargs
)
550 def GetWindow(*args
, **kwargs
):
551 """GetWindow() -> Window"""
552 return _misc
.ToolTip_GetWindow(*args
, **kwargs
)
554 def Enable(*args
, **kwargs
):
555 """ToolTip.Enable(bool flag)"""
556 return _misc
.ToolTip_Enable(*args
, **kwargs
)
558 Enable
= staticmethod(Enable
)
559 def SetDelay(*args
, **kwargs
):
560 """ToolTip.SetDelay(long milliseconds)"""
561 return _misc
.ToolTip_SetDelay(*args
, **kwargs
)
563 SetDelay
= staticmethod(SetDelay
)
565 class ToolTipPtr(ToolTip
):
566 def __init__(self
, this
):
568 if not hasattr(self
,"thisown"): self
.thisown
= 0
569 self
.__class
__ = ToolTip
570 _misc
.ToolTip_swigregister(ToolTipPtr
)
572 def ToolTip_Enable(*args
, **kwargs
):
573 """ToolTip_Enable(bool flag)"""
574 return _misc
.ToolTip_Enable(*args
, **kwargs
)
576 def ToolTip_SetDelay(*args
, **kwargs
):
577 """ToolTip_SetDelay(long milliseconds)"""
578 return _misc
.ToolTip_SetDelay(*args
, **kwargs
)
582 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
583 def __init__(self
, *args
, **kwargs
):
584 """__init__(Window window, Size size) -> Caret"""
585 newobj
= _misc
.new_Caret(*args
, **kwargs
)
586 self
.this
= newobj
.this
589 def __del__(self
, destroy
=_misc
.delete_Caret
):
592 if self
.thisown
: destroy(self
)
595 def IsOk(*args
, **kwargs
):
597 return _misc
.Caret_IsOk(*args
, **kwargs
)
599 def IsVisible(*args
, **kwargs
):
600 """IsVisible() -> bool"""
601 return _misc
.Caret_IsVisible(*args
, **kwargs
)
603 def GetPosition(*args
, **kwargs
):
604 """GetPosition() -> Point"""
605 return _misc
.Caret_GetPosition(*args
, **kwargs
)
607 def GetPositionTuple(*args
, **kwargs
):
608 """GetPositionTuple() -> (x,y)"""
609 return _misc
.Caret_GetPositionTuple(*args
, **kwargs
)
611 def GetSize(*args
, **kwargs
):
612 """GetSize() -> Size"""
613 return _misc
.Caret_GetSize(*args
, **kwargs
)
615 def GetSizeTuple(*args
, **kwargs
):
616 """GetSizeTuple() -> (width, height)"""
617 return _misc
.Caret_GetSizeTuple(*args
, **kwargs
)
619 def GetWindow(*args
, **kwargs
):
620 """GetWindow() -> Window"""
621 return _misc
.Caret_GetWindow(*args
, **kwargs
)
623 def MoveXY(*args
, **kwargs
):
624 """MoveXY(int x, int y)"""
625 return _misc
.Caret_MoveXY(*args
, **kwargs
)
627 def Move(*args
, **kwargs
):
629 return _misc
.Caret_Move(*args
, **kwargs
)
631 def SetSizeWH(*args
, **kwargs
):
632 """SetSizeWH(int width, int height)"""
633 return _misc
.Caret_SetSizeWH(*args
, **kwargs
)
635 def SetSize(*args
, **kwargs
):
636 """SetSize(Size size)"""
637 return _misc
.Caret_SetSize(*args
, **kwargs
)
639 def Show(*args
, **kwargs
):
640 """Show(int show=True)"""
641 return _misc
.Caret_Show(*args
, **kwargs
)
643 def Hide(*args
, **kwargs
):
645 return _misc
.Caret_Hide(*args
, **kwargs
)
647 def __nonzero__(self
): return self
.IsOk()
649 class CaretPtr(Caret
):
650 def __init__(self
, this
):
652 if not hasattr(self
,"thisown"): self
.thisown
= 0
653 self
.__class
__ = Caret
654 _misc
.Caret_swigregister(CaretPtr
)
657 def Caret_GetBlinkTime(*args
, **kwargs
):
658 """Caret_GetBlinkTime() -> int"""
659 return _misc
.Caret_GetBlinkTime(*args
, **kwargs
)
661 def Caret_SetBlinkTime(*args
, **kwargs
):
662 """Caret_SetBlinkTime(int milliseconds)"""
663 return _misc
.Caret_SetBlinkTime(*args
, **kwargs
)
664 class BusyCursor(object):
666 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
667 def __init__(self
, *args
, **kwargs
):
668 """__init__(wxCursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
669 newobj
= _misc
.new_BusyCursor(*args
, **kwargs
)
670 self
.this
= newobj
.this
673 def __del__(self
, destroy
=_misc
.delete_BusyCursor
):
676 if self
.thisown
: destroy(self
)
680 class BusyCursorPtr(BusyCursor
):
681 def __init__(self
, this
):
683 if not hasattr(self
,"thisown"): self
.thisown
= 0
684 self
.__class
__ = BusyCursor
685 _misc
.BusyCursor_swigregister(BusyCursorPtr
)
687 class WindowDisabler(object):
689 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
690 def __init__(self
, *args
, **kwargs
):
691 """__init__(Window winToSkip=None) -> WindowDisabler"""
692 newobj
= _misc
.new_WindowDisabler(*args
, **kwargs
)
693 self
.this
= newobj
.this
696 def __del__(self
, destroy
=_misc
.delete_WindowDisabler
):
699 if self
.thisown
: destroy(self
)
703 class WindowDisablerPtr(WindowDisabler
):
704 def __init__(self
, this
):
706 if not hasattr(self
,"thisown"): self
.thisown
= 0
707 self
.__class
__ = WindowDisabler
708 _misc
.WindowDisabler_swigregister(WindowDisablerPtr
)
710 class BusyInfo(core
.Object
):
712 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
713 def __init__(self
, *args
, **kwargs
):
714 """__init__(wxString message) -> BusyInfo"""
715 newobj
= _misc
.new_BusyInfo(*args
, **kwargs
)
716 self
.this
= newobj
.this
719 def __del__(self
, destroy
=_misc
.delete_BusyInfo
):
722 if self
.thisown
: destroy(self
)
726 class BusyInfoPtr(BusyInfo
):
727 def __init__(self
, this
):
729 if not hasattr(self
,"thisown"): self
.thisown
= 0
730 self
.__class
__ = BusyInfo
731 _misc
.BusyInfo_swigregister(BusyInfoPtr
)
733 class StopWatch(object):
735 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
736 def __init__(self
, *args
, **kwargs
):
737 """__init__() -> StopWatch"""
738 newobj
= _misc
.new_StopWatch(*args
, **kwargs
)
739 self
.this
= newobj
.this
742 def Start(*args
, **kwargs
):
743 """Start(long t0=0)"""
744 return _misc
.StopWatch_Start(*args
, **kwargs
)
746 def Pause(*args
, **kwargs
):
748 return _misc
.StopWatch_Pause(*args
, **kwargs
)
750 def Resume(*args
, **kwargs
):
752 return _misc
.StopWatch_Resume(*args
, **kwargs
)
754 def Time(*args
, **kwargs
):
756 return _misc
.StopWatch_Time(*args
, **kwargs
)
759 class StopWatchPtr(StopWatch
):
760 def __init__(self
, this
):
762 if not hasattr(self
,"thisown"): self
.thisown
= 0
763 self
.__class
__ = StopWatch
764 _misc
.StopWatch_swigregister(StopWatchPtr
)
766 class FileHistory(core
.Object
):
768 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
769 def __init__(self
, *args
, **kwargs
):
770 """__init__(int maxFiles=9) -> FileHistory"""
771 newobj
= _misc
.new_FileHistory(*args
, **kwargs
)
772 self
.this
= newobj
.this
775 def __del__(self
, destroy
=_misc
.delete_FileHistory
):
778 if self
.thisown
: destroy(self
)
781 def AddFileToHistory(*args
, **kwargs
):
782 """AddFileToHistory(wxString file)"""
783 return _misc
.FileHistory_AddFileToHistory(*args
, **kwargs
)
785 def RemoveFileFromHistory(*args
, **kwargs
):
786 """RemoveFileFromHistory(int i)"""
787 return _misc
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
789 def GetMaxFiles(*args
, **kwargs
):
790 """GetMaxFiles() -> int"""
791 return _misc
.FileHistory_GetMaxFiles(*args
, **kwargs
)
793 def UseMenu(*args
, **kwargs
):
794 """UseMenu(Menu menu)"""
795 return _misc
.FileHistory_UseMenu(*args
, **kwargs
)
797 def RemoveMenu(*args
, **kwargs
):
798 """RemoveMenu(Menu menu)"""
799 return _misc
.FileHistory_RemoveMenu(*args
, **kwargs
)
801 def Load(*args
, **kwargs
):
802 """Load(ConfigBase config)"""
803 return _misc
.FileHistory_Load(*args
, **kwargs
)
805 def Save(*args
, **kwargs
):
806 """Save(ConfigBase config)"""
807 return _misc
.FileHistory_Save(*args
, **kwargs
)
809 def AddFilesToMenu(*args
, **kwargs
):
810 """AddFilesToMenu()"""
811 return _misc
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
813 def AddFilesToThisMenu(*args
, **kwargs
):
814 """AddFilesToThisMenu(Menu menu)"""
815 return _misc
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
817 def GetHistoryFile(*args
, **kwargs
):
818 """GetHistoryFile(int i) -> wxString"""
819 return _misc
.FileHistory_GetHistoryFile(*args
, **kwargs
)
821 def GetCount(*args
, **kwargs
):
822 """GetCount() -> int"""
823 return _misc
.FileHistory_GetCount(*args
, **kwargs
)
826 class FileHistoryPtr(FileHistory
):
827 def __init__(self
, this
):
829 if not hasattr(self
,"thisown"): self
.thisown
= 0
830 self
.__class
__ = FileHistory
831 _misc
.FileHistory_swigregister(FileHistoryPtr
)
833 class SingleInstanceChecker(object):
835 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
836 def __init__(self
, *args
, **kwargs
):
837 """__init__(wxString name, wxString path=wxPyEmptyString) -> SingleInstanceChecker"""
838 newobj
= _misc
.new_SingleInstanceChecker(*args
, **kwargs
)
839 self
.this
= newobj
.this
842 def __del__(self
, destroy
=_misc
.delete_SingleInstanceChecker
):
845 if self
.thisown
: destroy(self
)
848 def Create(*args
, **kwargs
):
849 """Create(wxString name, wxString path=wxPyEmptyString) -> bool"""
850 return _misc
.SingleInstanceChecker_Create(*args
, **kwargs
)
852 def IsAnotherRunning(*args
, **kwargs
):
853 """IsAnotherRunning() -> bool"""
854 return _misc
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
857 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
858 def __init__(self
, this
):
860 if not hasattr(self
,"thisown"): self
.thisown
= 0
861 self
.__class
__ = SingleInstanceChecker
862 _misc
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
864 def PreSingleInstanceChecker(*args
, **kwargs
):
865 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
866 val
= _misc
.new_PreSingleInstanceChecker(*args
, **kwargs
)
871 def DrawWindowOnDC(*args
, **kwargs
):
872 """DrawWindowOnDC(Window window, wxDC dc, int method)"""
873 return _misc
.DrawWindowOnDC(*args
, **kwargs
)
874 #---------------------------------------------------------------------------
876 class TipProvider(object):
877 def __init__(self
): raise RuntimeError, "No constructor defined"
879 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
880 def __del__(self
, destroy
=_misc
.delete_TipProvider
):
883 if self
.thisown
: destroy(self
)
886 def GetTip(*args
, **kwargs
):
887 """GetTip() -> wxString"""
888 return _misc
.TipProvider_GetTip(*args
, **kwargs
)
890 def GetCurrentTip(*args
, **kwargs
):
891 """GetCurrentTip() -> size_t"""
892 return _misc
.TipProvider_GetCurrentTip(*args
, **kwargs
)
894 def PreprocessTip(*args
, **kwargs
):
895 """PreprocessTip(wxString tip) -> wxString"""
896 return _misc
.TipProvider_PreprocessTip(*args
, **kwargs
)
899 class TipProviderPtr(TipProvider
):
900 def __init__(self
, this
):
902 if not hasattr(self
,"thisown"): self
.thisown
= 0
903 self
.__class
__ = TipProvider
904 _misc
.TipProvider_swigregister(TipProviderPtr
)
906 class PyTipProvider(TipProvider
):
908 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
909 def __init__(self
, *args
, **kwargs
):
910 """__init__(size_t currentTip) -> PyTipProvider"""
911 newobj
= _misc
.new_PyTipProvider(*args
, **kwargs
)
912 self
.this
= newobj
.this
915 def _setCallbackInfo(*args
, **kwargs
):
916 """_setCallbackInfo(PyObject self, PyObject _class)"""
917 return _misc
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
920 class PyTipProviderPtr(PyTipProvider
):
921 def __init__(self
, this
):
923 if not hasattr(self
,"thisown"): self
.thisown
= 0
924 self
.__class
__ = PyTipProvider
925 _misc
.PyTipProvider_swigregister(PyTipProviderPtr
)
928 def ShowTip(*args
, **kwargs
):
929 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
930 return _misc
.ShowTip(*args
, **kwargs
)
932 def CreateFileTipProvider(*args
, **kwargs
):
933 """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider"""
934 return _misc
.CreateFileTipProvider(*args
, **kwargs
)
935 #---------------------------------------------------------------------------
937 TIMER_CONTINUOUS
= _misc
.TIMER_CONTINUOUS
938 TIMER_ONE_SHOT
= _misc
.TIMER_ONE_SHOT
939 wxEVT_TIMER
= _misc
.wxEVT_TIMER
940 class Timer(core
.EvtHandler
):
942 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
943 def __init__(self
, *args
, **kwargs
):
944 """__init__(EvtHandler owner=None, int id=-1) -> Timer"""
945 newobj
= _misc
.new_Timer(*args
, **kwargs
)
946 self
.this
= newobj
.this
949 self
._setCallbackInfo
(self
, Timer
)
951 def __del__(self
, destroy
=_misc
.delete_Timer
):
954 if self
.thisown
: destroy(self
)
957 def _setCallbackInfo(*args
, **kwargs
):
958 """_setCallbackInfo(PyObject self, PyObject _class)"""
959 return _misc
.Timer__setCallbackInfo(*args
, **kwargs
)
961 def SetOwner(*args
, **kwargs
):
962 """SetOwner(EvtHandler owner, int id=-1)"""
963 return _misc
.Timer_SetOwner(*args
, **kwargs
)
965 def Start(*args
, **kwargs
):
966 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
967 return _misc
.Timer_Start(*args
, **kwargs
)
969 def Stop(*args
, **kwargs
):
971 return _misc
.Timer_Stop(*args
, **kwargs
)
973 def IsRunning(*args
, **kwargs
):
974 """IsRunning() -> bool"""
975 return _misc
.Timer_IsRunning(*args
, **kwargs
)
977 def GetInterval(*args
, **kwargs
):
978 """GetInterval() -> int"""
979 return _misc
.Timer_GetInterval(*args
, **kwargs
)
981 def IsOneShot(*args
, **kwargs
):
982 """IsOneShot() -> bool"""
983 return _misc
.Timer_IsOneShot(*args
, **kwargs
)
986 class TimerPtr(Timer
):
987 def __init__(self
, this
):
989 if not hasattr(self
,"thisown"): self
.thisown
= 0
990 self
.__class
__ = Timer
991 _misc
.Timer_swigregister(TimerPtr
)
993 # For backwards compatibility with 2.4
994 class PyTimer(Timer
):
995 def __init__(self
, notify
):
1004 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1007 class TimerEvent(core
.Event
):
1009 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1010 def __init__(self
, *args
, **kwargs
):
1011 """__init__(int timerid=0, int interval=0) -> TimerEvent"""
1012 newobj
= _misc
.new_TimerEvent(*args
, **kwargs
)
1013 self
.this
= newobj
.this
1016 def GetInterval(*args
, **kwargs
):
1017 """GetInterval() -> int"""
1018 return _misc
.TimerEvent_GetInterval(*args
, **kwargs
)
1021 class TimerEventPtr(TimerEvent
):
1022 def __init__(self
, this
):
1024 if not hasattr(self
,"thisown"): self
.thisown
= 0
1025 self
.__class
__ = TimerEvent
1026 _misc
.TimerEvent_swigregister(TimerEventPtr
)
1028 class TimerRunner(object):
1030 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1031 def __init__(self
, *args
):
1033 __init__(wxTimer timer) -> TimerRunner
1034 __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1036 newobj
= _misc
.new_TimerRunner(*args
)
1037 self
.this
= newobj
.this
1040 def __del__(self
, destroy
=_misc
.delete_TimerRunner
):
1043 if self
.thisown
: destroy(self
)
1046 def Start(*args
, **kwargs
):
1047 """Start(int milli, bool oneShot=False)"""
1048 return _misc
.TimerRunner_Start(*args
, **kwargs
)
1051 class TimerRunnerPtr(TimerRunner
):
1052 def __init__(self
, this
):
1054 if not hasattr(self
,"thisown"): self
.thisown
= 0
1055 self
.__class
__ = TimerRunner
1056 _misc
.TimerRunner_swigregister(TimerRunnerPtr
)
1058 #---------------------------------------------------------------------------
1060 LOG_FatalError
= _misc
.LOG_FatalError
1061 LOG_Error
= _misc
.LOG_Error
1062 LOG_Warning
= _misc
.LOG_Warning
1063 LOG_Message
= _misc
.LOG_Message
1064 LOG_Status
= _misc
.LOG_Status
1065 LOG_Info
= _misc
.LOG_Info
1066 LOG_Debug
= _misc
.LOG_Debug
1067 LOG_Trace
= _misc
.LOG_Trace
1068 LOG_Progress
= _misc
.LOG_Progress
1069 LOG_User
= _misc
.LOG_User
1070 LOG_Max
= _misc
.LOG_Max
1071 TRACE_MemAlloc
= _misc
.TRACE_MemAlloc
1072 TRACE_Messages
= _misc
.TRACE_Messages
1073 TRACE_ResAlloc
= _misc
.TRACE_ResAlloc
1074 TRACE_RefCount
= _misc
.TRACE_RefCount
1075 TRACE_OleCalls
= _misc
.TRACE_OleCalls
1076 TraceMemAlloc
= _misc
.TraceMemAlloc
1077 TraceMessages
= _misc
.TraceMessages
1078 TraceResAlloc
= _misc
.TraceResAlloc
1079 TraceRefCount
= _misc
.TraceRefCount
1080 TraceOleCalls
= _misc
.TraceOleCalls
1083 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1084 def __init__(self
, *args
, **kwargs
):
1085 """__init__() -> Log"""
1086 newobj
= _misc
.new_Log(*args
, **kwargs
)
1087 self
.this
= newobj
.this
1090 def IsEnabled(*args
, **kwargs
):
1091 """Log.IsEnabled() -> bool"""
1092 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1094 IsEnabled
= staticmethod(IsEnabled
)
1095 def EnableLogging(*args
, **kwargs
):
1096 """Log.EnableLogging(bool doIt=True) -> bool"""
1097 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1099 EnableLogging
= staticmethod(EnableLogging
)
1100 def OnLog(*args
, **kwargs
):
1101 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1102 return _misc
.Log_OnLog(*args
, **kwargs
)
1104 OnLog
= staticmethod(OnLog
)
1105 def Flush(*args
, **kwargs
):
1107 return _misc
.Log_Flush(*args
, **kwargs
)
1109 def FlushActive(*args
, **kwargs
):
1110 """Log.FlushActive()"""
1111 return _misc
.Log_FlushActive(*args
, **kwargs
)
1113 FlushActive
= staticmethod(FlushActive
)
1114 def GetActiveTarget(*args
, **kwargs
):
1115 """Log.GetActiveTarget() -> Log"""
1116 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1118 GetActiveTarget
= staticmethod(GetActiveTarget
)
1119 def SetActiveTarget(*args
, **kwargs
):
1120 """Log.SetActiveTarget(Log pLogger) -> Log"""
1121 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1123 SetActiveTarget
= staticmethod(SetActiveTarget
)
1124 def Suspend(*args
, **kwargs
):
1126 return _misc
.Log_Suspend(*args
, **kwargs
)
1128 Suspend
= staticmethod(Suspend
)
1129 def Resume(*args
, **kwargs
):
1131 return _misc
.Log_Resume(*args
, **kwargs
)
1133 Resume
= staticmethod(Resume
)
1134 def SetVerbose(*args
, **kwargs
):
1135 """Log.SetVerbose(bool bVerbose=True)"""
1136 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1138 SetVerbose
= staticmethod(SetVerbose
)
1139 def SetLogLevel(*args
, **kwargs
):
1140 """Log.SetLogLevel(wxLogLevel logLevel)"""
1141 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1143 SetLogLevel
= staticmethod(SetLogLevel
)
1144 def DontCreateOnDemand(*args
, **kwargs
):
1145 """Log.DontCreateOnDemand()"""
1146 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1148 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1149 def SetTraceMask(*args
, **kwargs
):
1150 """Log.SetTraceMask(wxTraceMask ulMask)"""
1151 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1153 SetTraceMask
= staticmethod(SetTraceMask
)
1154 def AddTraceMask(*args
, **kwargs
):
1155 """Log.AddTraceMask(wxString str)"""
1156 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1158 AddTraceMask
= staticmethod(AddTraceMask
)
1159 def RemoveTraceMask(*args
, **kwargs
):
1160 """Log.RemoveTraceMask(wxString str)"""
1161 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1163 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1164 def ClearTraceMasks(*args
, **kwargs
):
1165 """Log.ClearTraceMasks()"""
1166 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1168 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1169 def GetTraceMasks(*args
, **kwargs
):
1170 """Log.GetTraceMasks() -> wxArrayString"""
1171 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1173 GetTraceMasks
= staticmethod(GetTraceMasks
)
1174 def SetTimestamp(*args
, **kwargs
):
1175 """Log.SetTimestamp(wxChar ts)"""
1176 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1178 SetTimestamp
= staticmethod(SetTimestamp
)
1179 def GetVerbose(*args
, **kwargs
):
1180 """Log.GetVerbose() -> bool"""
1181 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1183 GetVerbose
= staticmethod(GetVerbose
)
1184 def GetTraceMask(*args
, **kwargs
):
1185 """Log.GetTraceMask() -> wxTraceMask"""
1186 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1188 GetTraceMask
= staticmethod(GetTraceMask
)
1189 def IsAllowedTraceMask(*args
, **kwargs
):
1190 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1191 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1193 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1194 def GetLogLevel(*args
, **kwargs
):
1195 """Log.GetLogLevel() -> wxLogLevel"""
1196 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1198 GetLogLevel
= staticmethod(GetLogLevel
)
1199 def GetTimestamp(*args
, **kwargs
):
1200 """Log.GetTimestamp() -> wxChar"""
1201 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1203 GetTimestamp
= staticmethod(GetTimestamp
)
1204 def TimeStamp(*args
, **kwargs
):
1205 """Log.TimeStamp() -> wxString"""
1206 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1208 TimeStamp
= staticmethod(TimeStamp
)
1209 def Destroy(*args
, **kwargs
):
1211 return _misc
.Log_Destroy(*args
, **kwargs
)
1215 def __init__(self
, this
):
1217 if not hasattr(self
,"thisown"): self
.thisown
= 0
1218 self
.__class
__ = Log
1219 _misc
.Log_swigregister(LogPtr
)
1221 def Log_IsEnabled(*args
, **kwargs
):
1222 """Log_IsEnabled() -> bool"""
1223 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1225 def Log_EnableLogging(*args
, **kwargs
):
1226 """Log_EnableLogging(bool doIt=True) -> bool"""
1227 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1229 def Log_OnLog(*args
, **kwargs
):
1230 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1231 return _misc
.Log_OnLog(*args
, **kwargs
)
1233 def Log_FlushActive(*args
, **kwargs
):
1234 """Log_FlushActive()"""
1235 return _misc
.Log_FlushActive(*args
, **kwargs
)
1237 def Log_GetActiveTarget(*args
, **kwargs
):
1238 """Log_GetActiveTarget() -> Log"""
1239 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1241 def Log_SetActiveTarget(*args
, **kwargs
):
1242 """Log_SetActiveTarget(Log pLogger) -> Log"""
1243 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1245 def Log_Suspend(*args
, **kwargs
):
1247 return _misc
.Log_Suspend(*args
, **kwargs
)
1249 def Log_Resume(*args
, **kwargs
):
1251 return _misc
.Log_Resume(*args
, **kwargs
)
1253 def Log_SetVerbose(*args
, **kwargs
):
1254 """Log_SetVerbose(bool bVerbose=True)"""
1255 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1257 def Log_SetLogLevel(*args
, **kwargs
):
1258 """Log_SetLogLevel(wxLogLevel logLevel)"""
1259 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1261 def Log_DontCreateOnDemand(*args
, **kwargs
):
1262 """Log_DontCreateOnDemand()"""
1263 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1265 def Log_SetTraceMask(*args
, **kwargs
):
1266 """Log_SetTraceMask(wxTraceMask ulMask)"""
1267 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1269 def Log_AddTraceMask(*args
, **kwargs
):
1270 """Log_AddTraceMask(wxString str)"""
1271 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1273 def Log_RemoveTraceMask(*args
, **kwargs
):
1274 """Log_RemoveTraceMask(wxString str)"""
1275 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1277 def Log_ClearTraceMasks(*args
, **kwargs
):
1278 """Log_ClearTraceMasks()"""
1279 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1281 def Log_GetTraceMasks(*args
, **kwargs
):
1282 """Log_GetTraceMasks() -> wxArrayString"""
1283 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1285 def Log_SetTimestamp(*args
, **kwargs
):
1286 """Log_SetTimestamp(wxChar ts)"""
1287 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1289 def Log_GetVerbose(*args
, **kwargs
):
1290 """Log_GetVerbose() -> bool"""
1291 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1293 def Log_GetTraceMask(*args
, **kwargs
):
1294 """Log_GetTraceMask() -> wxTraceMask"""
1295 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1297 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1298 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1299 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1301 def Log_GetLogLevel(*args
, **kwargs
):
1302 """Log_GetLogLevel() -> wxLogLevel"""
1303 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1305 def Log_GetTimestamp(*args
, **kwargs
):
1306 """Log_GetTimestamp() -> wxChar"""
1307 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1309 def Log_TimeStamp(*args
, **kwargs
):
1310 """Log_TimeStamp() -> wxString"""
1311 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1313 class LogStderr(Log
):
1315 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1316 def __init__(self
, *args
, **kwargs
):
1317 """__init__() -> LogStderr"""
1318 newobj
= _misc
.new_LogStderr(*args
, **kwargs
)
1319 self
.this
= newobj
.this
1323 class LogStderrPtr(LogStderr
):
1324 def __init__(self
, this
):
1326 if not hasattr(self
,"thisown"): self
.thisown
= 0
1327 self
.__class
__ = LogStderr
1328 _misc
.LogStderr_swigregister(LogStderrPtr
)
1330 class LogTextCtrl(Log
):
1332 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1333 def __init__(self
, *args
, **kwargs
):
1334 """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1335 newobj
= _misc
.new_LogTextCtrl(*args
, **kwargs
)
1336 self
.this
= newobj
.this
1340 class LogTextCtrlPtr(LogTextCtrl
):
1341 def __init__(self
, this
):
1343 if not hasattr(self
,"thisown"): self
.thisown
= 0
1344 self
.__class
__ = LogTextCtrl
1345 _misc
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1349 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1350 def __init__(self
, *args
, **kwargs
):
1351 """__init__() -> LogGui"""
1352 newobj
= _misc
.new_LogGui(*args
, **kwargs
)
1353 self
.this
= newobj
.this
1357 class LogGuiPtr(LogGui
):
1358 def __init__(self
, this
):
1360 if not hasattr(self
,"thisown"): self
.thisown
= 0
1361 self
.__class
__ = LogGui
1362 _misc
.LogGui_swigregister(LogGuiPtr
)
1364 class LogWindow(Log
):
1366 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1367 def __init__(self
, *args
, **kwargs
):
1369 __init__(wxFrame pParent, wxString szTitle, bool bShow=True,
1370 bool bPassToOld=True) -> LogWindow
1372 newobj
= _misc
.new_LogWindow(*args
, **kwargs
)
1373 self
.this
= newobj
.this
1376 def Show(*args
, **kwargs
):
1377 """Show(bool bShow=True)"""
1378 return _misc
.LogWindow_Show(*args
, **kwargs
)
1380 def GetFrame(*args
, **kwargs
):
1381 """GetFrame() -> wxFrame"""
1382 return _misc
.LogWindow_GetFrame(*args
, **kwargs
)
1384 def GetOldLog(*args
, **kwargs
):
1385 """GetOldLog() -> Log"""
1386 return _misc
.LogWindow_GetOldLog(*args
, **kwargs
)
1388 def IsPassingMessages(*args
, **kwargs
):
1389 """IsPassingMessages() -> bool"""
1390 return _misc
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1392 def PassMessages(*args
, **kwargs
):
1393 """PassMessages(bool bDoPass)"""
1394 return _misc
.LogWindow_PassMessages(*args
, **kwargs
)
1397 class LogWindowPtr(LogWindow
):
1398 def __init__(self
, this
):
1400 if not hasattr(self
,"thisown"): self
.thisown
= 0
1401 self
.__class
__ = LogWindow
1402 _misc
.LogWindow_swigregister(LogWindowPtr
)
1404 class LogChain(Log
):
1406 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1407 def __init__(self
, *args
, **kwargs
):
1408 """__init__(Log logger) -> LogChain"""
1409 newobj
= _misc
.new_LogChain(*args
, **kwargs
)
1410 self
.this
= newobj
.this
1413 def SetLog(*args
, **kwargs
):
1414 """SetLog(Log logger)"""
1415 return _misc
.LogChain_SetLog(*args
, **kwargs
)
1417 def PassMessages(*args
, **kwargs
):
1418 """PassMessages(bool bDoPass)"""
1419 return _misc
.LogChain_PassMessages(*args
, **kwargs
)
1421 def IsPassingMessages(*args
, **kwargs
):
1422 """IsPassingMessages() -> bool"""
1423 return _misc
.LogChain_IsPassingMessages(*args
, **kwargs
)
1425 def GetOldLog(*args
, **kwargs
):
1426 """GetOldLog() -> Log"""
1427 return _misc
.LogChain_GetOldLog(*args
, **kwargs
)
1430 class LogChainPtr(LogChain
):
1431 def __init__(self
, this
):
1433 if not hasattr(self
,"thisown"): self
.thisown
= 0
1434 self
.__class
__ = LogChain
1435 _misc
.LogChain_swigregister(LogChainPtr
)
1438 def SysErrorCode(*args
, **kwargs
):
1439 """SysErrorCode() -> unsigned long"""
1440 return _misc
.SysErrorCode(*args
, **kwargs
)
1442 def SysErrorMsg(*args
, **kwargs
):
1443 """SysErrorMsg(unsigned long nErrCode=0) -> wxString"""
1444 return _misc
.SysErrorMsg(*args
, **kwargs
)
1446 def LogFatalError(*args
, **kwargs
):
1447 """LogFatalError(wxString msg)"""
1448 return _misc
.LogFatalError(*args
, **kwargs
)
1450 def LogError(*args
, **kwargs
):
1451 """LogError(wxString msg)"""
1452 return _misc
.LogError(*args
, **kwargs
)
1454 def LogWarning(*args
, **kwargs
):
1455 """LogWarning(wxString msg)"""
1456 return _misc
.LogWarning(*args
, **kwargs
)
1458 def LogMessage(*args
, **kwargs
):
1459 """LogMessage(wxString msg)"""
1460 return _misc
.LogMessage(*args
, **kwargs
)
1462 def LogInfo(*args
, **kwargs
):
1463 """LogInfo(wxString msg)"""
1464 return _misc
.LogInfo(*args
, **kwargs
)
1466 def LogDebug(*args
, **kwargs
):
1467 """LogDebug(wxString msg)"""
1468 return _misc
.LogDebug(*args
, **kwargs
)
1470 def LogVerbose(*args
, **kwargs
):
1471 """LogVerbose(wxString msg)"""
1472 return _misc
.LogVerbose(*args
, **kwargs
)
1474 def LogStatus(*args
, **kwargs
):
1475 """LogStatus(wxString msg)"""
1476 return _misc
.LogStatus(*args
, **kwargs
)
1478 def LogStatusFrame(*args
, **kwargs
):
1479 """LogStatusFrame(wxFrame pFrame, wxString msg)"""
1480 return _misc
.LogStatusFrame(*args
, **kwargs
)
1482 def LogSysError(*args
, **kwargs
):
1483 """LogSysError(wxString msg)"""
1484 return _misc
.LogSysError(*args
, **kwargs
)
1486 def LogTrace(*args
, **kwargs
):
1487 """LogTrace(wxString msg)"""
1488 return _misc
.LogTrace(*args
, **kwargs
)
1490 def LogTraceMask(*args
, **kwargs
):
1491 """LogTraceMask(wxString mask, wxString msg)"""
1492 return _misc
.LogTraceMask(*args
, **kwargs
)
1494 def LogGeneric(*args
, **kwargs
):
1495 """LogGeneric(unsigned long level, wxString msg)"""
1496 return _misc
.LogGeneric(*args
, **kwargs
)
1498 def SafeShowMessage(*args
, **kwargs
):
1499 """SafeShowMessage(wxString title, wxString text)"""
1500 return _misc
.SafeShowMessage(*args
, **kwargs
)
1501 class LogNull(object):
1503 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1504 def __init__(self
, *args
, **kwargs
):
1505 """__init__() -> LogNull"""
1506 newobj
= _misc
.new_LogNull(*args
, **kwargs
)
1507 self
.this
= newobj
.this
1510 def __del__(self
, destroy
=_misc
.delete_LogNull
):
1513 if self
.thisown
: destroy(self
)
1517 class LogNullPtr(LogNull
):
1518 def __init__(self
, this
):
1520 if not hasattr(self
,"thisown"): self
.thisown
= 0
1521 self
.__class
__ = LogNull
1522 _misc
.LogNull_swigregister(LogNullPtr
)
1526 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1527 def __init__(self
, *args
, **kwargs
):
1528 """__init__() -> PyLog"""
1529 newobj
= _misc
.new_PyLog(*args
, **kwargs
)
1530 self
.this
= newobj
.this
1533 self
._setCallbackInfo
(self
, PyLog
)
1535 def _setCallbackInfo(*args
, **kwargs
):
1536 """_setCallbackInfo(PyObject self, PyObject _class)"""
1537 return _misc
.PyLog__setCallbackInfo(*args
, **kwargs
)
1540 class PyLogPtr(PyLog
):
1541 def __init__(self
, this
):
1543 if not hasattr(self
,"thisown"): self
.thisown
= 0
1544 self
.__class
__ = PyLog
1545 _misc
.PyLog_swigregister(PyLogPtr
)
1547 #---------------------------------------------------------------------------
1549 PROCESS_DEFAULT
= _misc
.PROCESS_DEFAULT
1550 PROCESS_REDIRECT
= _misc
.PROCESS_REDIRECT
1551 KILL_OK
= _misc
.KILL_OK
1552 KILL_BAD_SIGNAL
= _misc
.KILL_BAD_SIGNAL
1553 KILL_ACCESS_DENIED
= _misc
.KILL_ACCESS_DENIED
1554 KILL_NO_PROCESS
= _misc
.KILL_NO_PROCESS
1555 KILL_ERROR
= _misc
.KILL_ERROR
1556 SIGNONE
= _misc
.SIGNONE
1557 SIGHUP
= _misc
.SIGHUP
1558 SIGINT
= _misc
.SIGINT
1559 SIGQUIT
= _misc
.SIGQUIT
1560 SIGILL
= _misc
.SIGILL
1561 SIGTRAP
= _misc
.SIGTRAP
1562 SIGABRT
= _misc
.SIGABRT
1563 SIGIOT
= _misc
.SIGIOT
1564 SIGEMT
= _misc
.SIGEMT
1565 SIGFPE
= _misc
.SIGFPE
1566 SIGKILL
= _misc
.SIGKILL
1567 SIGBUS
= _misc
.SIGBUS
1568 SIGSEGV
= _misc
.SIGSEGV
1569 SIGSYS
= _misc
.SIGSYS
1570 SIGPIPE
= _misc
.SIGPIPE
1571 SIGALRM
= _misc
.SIGALRM
1572 SIGTERM
= _misc
.SIGTERM
1573 class Process(core
.EvtHandler
):
1575 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1576 def Kill(*args
, **kwargs
):
1577 """Process.Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1578 return _misc
.Process_Kill(*args
, **kwargs
)
1580 Kill
= staticmethod(Kill
)
1581 def Exists(*args
, **kwargs
):
1582 """Process.Exists(int pid) -> bool"""
1583 return _misc
.Process_Exists(*args
, **kwargs
)
1585 Exists
= staticmethod(Exists
)
1586 def Open(*args
, **kwargs
):
1587 """Process.Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1588 return _misc
.Process_Open(*args
, **kwargs
)
1590 Open
= staticmethod(Open
)
1591 def __init__(self
, *args
, **kwargs
):
1592 """__init__(EvtHandler parent=None, int id=-1) -> Process"""
1593 newobj
= _misc
.new_Process(*args
, **kwargs
)
1594 self
.this
= newobj
.this
1597 self
._setCallbackInfo
(self
, Process
)
1599 def _setCallbackInfo(*args
, **kwargs
):
1600 """_setCallbackInfo(PyObject self, PyObject _class)"""
1601 return _misc
.Process__setCallbackInfo(*args
, **kwargs
)
1603 def base_OnTerminate(*args
, **kwargs
):
1604 """base_OnTerminate(int pid, int status)"""
1605 return _misc
.Process_base_OnTerminate(*args
, **kwargs
)
1607 def Redirect(*args
, **kwargs
):
1609 return _misc
.Process_Redirect(*args
, **kwargs
)
1611 def IsRedirected(*args
, **kwargs
):
1612 """IsRedirected() -> bool"""
1613 return _misc
.Process_IsRedirected(*args
, **kwargs
)
1615 def Detach(*args
, **kwargs
):
1617 return _misc
.Process_Detach(*args
, **kwargs
)
1619 def GetInputStream(*args
, **kwargs
):
1620 """GetInputStream() -> wxInputStream"""
1621 return _misc
.Process_GetInputStream(*args
, **kwargs
)
1623 def GetErrorStream(*args
, **kwargs
):
1624 """GetErrorStream() -> wxInputStream"""
1625 return _misc
.Process_GetErrorStream(*args
, **kwargs
)
1627 def GetOutputStream(*args
, **kwargs
):
1628 """GetOutputStream() -> OutputStream"""
1629 return _misc
.Process_GetOutputStream(*args
, **kwargs
)
1631 def CloseOutput(*args
, **kwargs
):
1633 return _misc
.Process_CloseOutput(*args
, **kwargs
)
1635 def IsInputOpened(*args
, **kwargs
):
1636 """IsInputOpened() -> bool"""
1637 return _misc
.Process_IsInputOpened(*args
, **kwargs
)
1639 def IsInputAvailable(*args
, **kwargs
):
1640 """IsInputAvailable() -> bool"""
1641 return _misc
.Process_IsInputAvailable(*args
, **kwargs
)
1643 def IsErrorAvailable(*args
, **kwargs
):
1644 """IsErrorAvailable() -> bool"""
1645 return _misc
.Process_IsErrorAvailable(*args
, **kwargs
)
1648 class ProcessPtr(Process
):
1649 def __init__(self
, this
):
1651 if not hasattr(self
,"thisown"): self
.thisown
= 0
1652 self
.__class
__ = Process
1653 _misc
.Process_swigregister(ProcessPtr
)
1655 def Process_Kill(*args
, **kwargs
):
1656 """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1657 return _misc
.Process_Kill(*args
, **kwargs
)
1659 def Process_Exists(*args
, **kwargs
):
1660 """Process_Exists(int pid) -> bool"""
1661 return _misc
.Process_Exists(*args
, **kwargs
)
1663 def Process_Open(*args
, **kwargs
):
1664 """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1665 return _misc
.Process_Open(*args
, **kwargs
)
1667 class ProcessEvent(core
.Event
):
1669 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1670 def __init__(self
, *args
, **kwargs
):
1671 """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1672 newobj
= _misc
.new_ProcessEvent(*args
, **kwargs
)
1673 self
.this
= newobj
.this
1676 def GetPid(*args
, **kwargs
):
1677 """GetPid() -> int"""
1678 return _misc
.ProcessEvent_GetPid(*args
, **kwargs
)
1680 def GetExitCode(*args
, **kwargs
):
1681 """GetExitCode() -> int"""
1682 return _misc
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1684 m_pid
= property(_misc
.ProcessEvent_m_pid_get
, _misc
.ProcessEvent_m_pid_set
)
1685 m_exitcode
= property(_misc
.ProcessEvent_m_exitcode_get
, _misc
.ProcessEvent_m_exitcode_set
)
1687 class ProcessEventPtr(ProcessEvent
):
1688 def __init__(self
, this
):
1690 if not hasattr(self
,"thisown"): self
.thisown
= 0
1691 self
.__class
__ = ProcessEvent
1692 _misc
.ProcessEvent_swigregister(ProcessEventPtr
)
1694 wxEVT_END_PROCESS
= _misc
.wxEVT_END_PROCESS
1695 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1697 EXEC_ASYNC
= _misc
.EXEC_ASYNC
1698 EXEC_SYNC
= _misc
.EXEC_SYNC
1699 EXEC_NOHIDE
= _misc
.EXEC_NOHIDE
1700 EXEC_MAKE_GROUP_LEADER
= _misc
.EXEC_MAKE_GROUP_LEADER
1702 def Execute(*args
, **kwargs
):
1703 """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1704 return _misc
.Execute(*args
, **kwargs
)
1705 #---------------------------------------------------------------------------
1707 JOYSTICK1
= _misc
.JOYSTICK1
1708 JOYSTICK2
= _misc
.JOYSTICK2
1709 JOY_BUTTON_ANY
= _misc
.JOY_BUTTON_ANY
1710 JOY_BUTTON1
= _misc
.JOY_BUTTON1
1711 JOY_BUTTON2
= _misc
.JOY_BUTTON2
1712 JOY_BUTTON3
= _misc
.JOY_BUTTON3
1713 JOY_BUTTON4
= _misc
.JOY_BUTTON4
1714 class Joystick(object):
1716 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1717 def __init__(self
, *args
, **kwargs
):
1718 """__init__(int joystick=JOYSTICK1) -> Joystick"""
1719 newobj
= _misc
.new_Joystick(*args
, **kwargs
)
1720 self
.this
= newobj
.this
1723 def __del__(self
, destroy
=_misc
.delete_Joystick
):
1726 if self
.thisown
: destroy(self
)
1729 def GetPosition(*args
, **kwargs
):
1730 """GetPosition() -> Point"""
1731 return _misc
.Joystick_GetPosition(*args
, **kwargs
)
1733 def GetZPosition(*args
, **kwargs
):
1734 """GetZPosition() -> int"""
1735 return _misc
.Joystick_GetZPosition(*args
, **kwargs
)
1737 def GetButtonState(*args
, **kwargs
):
1738 """GetButtonState() -> int"""
1739 return _misc
.Joystick_GetButtonState(*args
, **kwargs
)
1741 def GetPOVPosition(*args
, **kwargs
):
1742 """GetPOVPosition() -> int"""
1743 return _misc
.Joystick_GetPOVPosition(*args
, **kwargs
)
1745 def GetPOVCTSPosition(*args
, **kwargs
):
1746 """GetPOVCTSPosition() -> int"""
1747 return _misc
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1749 def GetRudderPosition(*args
, **kwargs
):
1750 """GetRudderPosition() -> int"""
1751 return _misc
.Joystick_GetRudderPosition(*args
, **kwargs
)
1753 def GetUPosition(*args
, **kwargs
):
1754 """GetUPosition() -> int"""
1755 return _misc
.Joystick_GetUPosition(*args
, **kwargs
)
1757 def GetVPosition(*args
, **kwargs
):
1758 """GetVPosition() -> int"""
1759 return _misc
.Joystick_GetVPosition(*args
, **kwargs
)
1761 def GetMovementThreshold(*args
, **kwargs
):
1762 """GetMovementThreshold() -> int"""
1763 return _misc
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1765 def SetMovementThreshold(*args
, **kwargs
):
1766 """SetMovementThreshold(int threshold)"""
1767 return _misc
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1769 def IsOk(*args
, **kwargs
):
1770 """IsOk(void ??) -> bool"""
1771 return _misc
.Joystick_IsOk(*args
, **kwargs
)
1773 def GetNumberJoysticks(*args
, **kwargs
):
1774 """GetNumberJoysticks() -> int"""
1775 return _misc
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1777 def GetManufacturerId(*args
, **kwargs
):
1778 """GetManufacturerId() -> int"""
1779 return _misc
.Joystick_GetManufacturerId(*args
, **kwargs
)
1781 def GetProductId(*args
, **kwargs
):
1782 """GetProductId() -> int"""
1783 return _misc
.Joystick_GetProductId(*args
, **kwargs
)
1785 def GetProductName(*args
, **kwargs
):
1786 """GetProductName() -> wxString"""
1787 return _misc
.Joystick_GetProductName(*args
, **kwargs
)
1789 def GetXMin(*args
, **kwargs
):
1790 """GetXMin() -> int"""
1791 return _misc
.Joystick_GetXMin(*args
, **kwargs
)
1793 def GetYMin(*args
, **kwargs
):
1794 """GetYMin() -> int"""
1795 return _misc
.Joystick_GetYMin(*args
, **kwargs
)
1797 def GetZMin(*args
, **kwargs
):
1798 """GetZMin() -> int"""
1799 return _misc
.Joystick_GetZMin(*args
, **kwargs
)
1801 def GetXMax(*args
, **kwargs
):
1802 """GetXMax() -> int"""
1803 return _misc
.Joystick_GetXMax(*args
, **kwargs
)
1805 def GetYMax(*args
, **kwargs
):
1806 """GetYMax() -> int"""
1807 return _misc
.Joystick_GetYMax(*args
, **kwargs
)
1809 def GetZMax(*args
, **kwargs
):
1810 """GetZMax() -> int"""
1811 return _misc
.Joystick_GetZMax(*args
, **kwargs
)
1813 def GetNumberButtons(*args
, **kwargs
):
1814 """GetNumberButtons() -> int"""
1815 return _misc
.Joystick_GetNumberButtons(*args
, **kwargs
)
1817 def GetNumberAxes(*args
, **kwargs
):
1818 """GetNumberAxes() -> int"""
1819 return _misc
.Joystick_GetNumberAxes(*args
, **kwargs
)
1821 def GetMaxButtons(*args
, **kwargs
):
1822 """GetMaxButtons() -> int"""
1823 return _misc
.Joystick_GetMaxButtons(*args
, **kwargs
)
1825 def GetMaxAxes(*args
, **kwargs
):
1826 """GetMaxAxes() -> int"""
1827 return _misc
.Joystick_GetMaxAxes(*args
, **kwargs
)
1829 def GetPollingMin(*args
, **kwargs
):
1830 """GetPollingMin() -> int"""
1831 return _misc
.Joystick_GetPollingMin(*args
, **kwargs
)
1833 def GetPollingMax(*args
, **kwargs
):
1834 """GetPollingMax() -> int"""
1835 return _misc
.Joystick_GetPollingMax(*args
, **kwargs
)
1837 def GetRudderMin(*args
, **kwargs
):
1838 """GetRudderMin() -> int"""
1839 return _misc
.Joystick_GetRudderMin(*args
, **kwargs
)
1841 def GetRudderMax(*args
, **kwargs
):
1842 """GetRudderMax() -> int"""
1843 return _misc
.Joystick_GetRudderMax(*args
, **kwargs
)
1845 def GetUMin(*args
, **kwargs
):
1846 """GetUMin() -> int"""
1847 return _misc
.Joystick_GetUMin(*args
, **kwargs
)
1849 def GetUMax(*args
, **kwargs
):
1850 """GetUMax() -> int"""
1851 return _misc
.Joystick_GetUMax(*args
, **kwargs
)
1853 def GetVMin(*args
, **kwargs
):
1854 """GetVMin() -> int"""
1855 return _misc
.Joystick_GetVMin(*args
, **kwargs
)
1857 def GetVMax(*args
, **kwargs
):
1858 """GetVMax() -> int"""
1859 return _misc
.Joystick_GetVMax(*args
, **kwargs
)
1861 def HasRudder(*args
, **kwargs
):
1862 """HasRudder() -> bool"""
1863 return _misc
.Joystick_HasRudder(*args
, **kwargs
)
1865 def HasZ(*args
, **kwargs
):
1866 """HasZ() -> bool"""
1867 return _misc
.Joystick_HasZ(*args
, **kwargs
)
1869 def HasU(*args
, **kwargs
):
1870 """HasU() -> bool"""
1871 return _misc
.Joystick_HasU(*args
, **kwargs
)
1873 def HasV(*args
, **kwargs
):
1874 """HasV() -> bool"""
1875 return _misc
.Joystick_HasV(*args
, **kwargs
)
1877 def HasPOV(*args
, **kwargs
):
1878 """HasPOV() -> bool"""
1879 return _misc
.Joystick_HasPOV(*args
, **kwargs
)
1881 def HasPOV4Dir(*args
, **kwargs
):
1882 """HasPOV4Dir() -> bool"""
1883 return _misc
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1885 def HasPOVCTS(*args
, **kwargs
):
1886 """HasPOVCTS() -> bool"""
1887 return _misc
.Joystick_HasPOVCTS(*args
, **kwargs
)
1889 def SetCapture(*args
, **kwargs
):
1890 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1891 return _misc
.Joystick_SetCapture(*args
, **kwargs
)
1893 def ReleaseCapture(*args
, **kwargs
):
1894 """ReleaseCapture() -> bool"""
1895 return _misc
.Joystick_ReleaseCapture(*args
, **kwargs
)
1897 def __nonzero__(self
): return self
.IsOk()
1899 class JoystickPtr(Joystick
):
1900 def __init__(self
, this
):
1902 if not hasattr(self
,"thisown"): self
.thisown
= 0
1903 self
.__class
__ = Joystick
1904 _misc
.Joystick_swigregister(JoystickPtr
)
1906 wxEVT_JOY_BUTTON_DOWN
= _misc
.wxEVT_JOY_BUTTON_DOWN
1907 wxEVT_JOY_BUTTON_UP
= _misc
.wxEVT_JOY_BUTTON_UP
1908 wxEVT_JOY_MOVE
= _misc
.wxEVT_JOY_MOVE
1909 wxEVT_JOY_ZMOVE
= _misc
.wxEVT_JOY_ZMOVE
1910 class JoystickEvent(core
.Event
):
1912 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1913 m_pos
= property(_misc
.JoystickEvent_m_pos_get
, _misc
.JoystickEvent_m_pos_set
)
1914 m_zPosition
= property(_misc
.JoystickEvent_m_zPosition_get
, _misc
.JoystickEvent_m_zPosition_set
)
1915 m_buttonChange
= property(_misc
.JoystickEvent_m_buttonChange_get
, _misc
.JoystickEvent_m_buttonChange_set
)
1916 m_buttonState
= property(_misc
.JoystickEvent_m_buttonState_get
, _misc
.JoystickEvent_m_buttonState_set
)
1917 m_joyStick
= property(_misc
.JoystickEvent_m_joyStick_get
, _misc
.JoystickEvent_m_joyStick_set
)
1918 def __init__(self
, *args
, **kwargs
):
1920 __init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1921 int change=0) -> JoystickEvent
1923 newobj
= _misc
.new_JoystickEvent(*args
, **kwargs
)
1924 self
.this
= newobj
.this
1927 def GetPosition(*args
, **kwargs
):
1928 """GetPosition() -> Point"""
1929 return _misc
.JoystickEvent_GetPosition(*args
, **kwargs
)
1931 def GetZPosition(*args
, **kwargs
):
1932 """GetZPosition() -> int"""
1933 return _misc
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1935 def GetButtonState(*args
, **kwargs
):
1936 """GetButtonState() -> int"""
1937 return _misc
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1939 def GetButtonChange(*args
, **kwargs
):
1940 """GetButtonChange() -> int"""
1941 return _misc
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1943 def GetJoystick(*args
, **kwargs
):
1944 """GetJoystick() -> int"""
1945 return _misc
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1947 def SetJoystick(*args
, **kwargs
):
1948 """SetJoystick(int stick)"""
1949 return _misc
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1951 def SetButtonState(*args
, **kwargs
):
1952 """SetButtonState(int state)"""
1953 return _misc
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1955 def SetButtonChange(*args
, **kwargs
):
1956 """SetButtonChange(int change)"""
1957 return _misc
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1959 def SetPosition(*args
, **kwargs
):
1960 """SetPosition(Point pos)"""
1961 return _misc
.JoystickEvent_SetPosition(*args
, **kwargs
)
1963 def SetZPosition(*args
, **kwargs
):
1964 """SetZPosition(int zPos)"""
1965 return _misc
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1967 def IsButton(*args
, **kwargs
):
1968 """IsButton() -> bool"""
1969 return _misc
.JoystickEvent_IsButton(*args
, **kwargs
)
1971 def IsMove(*args
, **kwargs
):
1972 """IsMove() -> bool"""
1973 return _misc
.JoystickEvent_IsMove(*args
, **kwargs
)
1975 def IsZMove(*args
, **kwargs
):
1976 """IsZMove() -> bool"""
1977 return _misc
.JoystickEvent_IsZMove(*args
, **kwargs
)
1979 def ButtonDown(*args
, **kwargs
):
1980 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1981 return _misc
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1983 def ButtonUp(*args
, **kwargs
):
1984 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1985 return _misc
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1987 def ButtonIsDown(*args
, **kwargs
):
1988 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1989 return _misc
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
1992 class JoystickEventPtr(JoystickEvent
):
1993 def __init__(self
, this
):
1995 if not hasattr(self
,"thisown"): self
.thisown
= 0
1996 self
.__class
__ = JoystickEvent
1997 _misc
.JoystickEvent_swigregister(JoystickEventPtr
)
1999 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2000 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2001 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2002 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2004 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2005 wxEVT_JOY_BUTTON_UP
,
2011 #---------------------------------------------------------------------------
2015 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2016 def __init__(self
, *args
, **kwargs
):
2017 """__init__(wxString fileName, bool isResource=False) -> Wave"""
2018 newobj
= _misc
.new_Wave(*args
, **kwargs
)
2019 self
.this
= newobj
.this
2022 def __del__(self
, destroy
=_misc
.delete_Wave
):
2025 if self
.thisown
: destroy(self
)
2028 def IsOk(*args
, **kwargs
):
2029 """IsOk() -> bool"""
2030 return _misc
.Wave_IsOk(*args
, **kwargs
)
2032 def Play(*args
, **kwargs
):
2033 """Play(bool async=True, bool looped=False) -> bool"""
2034 return _misc
.Wave_Play(*args
, **kwargs
)
2036 def __nonzero__(self
): return self
.IsOk()
2038 class WavePtr(Wave
):
2039 def __init__(self
, this
):
2041 if not hasattr(self
,"thisown"): self
.thisown
= 0
2042 self
.__class
__ = Wave
2043 _misc
.Wave_swigregister(WavePtr
)
2045 def WaveData(*args
, **kwargs
):
2046 """WaveData(wxString data) -> Wave"""
2047 val
= _misc
.new_WaveData(*args
, **kwargs
)
2051 #---------------------------------------------------------------------------
2053 MAILCAP_STANDARD
= _misc
.MAILCAP_STANDARD
2054 MAILCAP_NETSCAPE
= _misc
.MAILCAP_NETSCAPE
2055 MAILCAP_KDE
= _misc
.MAILCAP_KDE
2056 MAILCAP_GNOME
= _misc
.MAILCAP_GNOME
2057 MAILCAP_ALL
= _misc
.MAILCAP_ALL
2058 class FileTypeInfo(object):
2060 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2061 def __init__(self
, *args
, **kwargs
):
2063 __init__(wxString mimeType, wxString openCmd, wxString printCmd,
2064 wxString desc) -> FileTypeInfo
2066 newobj
= _misc
.new_FileTypeInfo(*args
, **kwargs
)
2067 self
.this
= newobj
.this
2070 def IsValid(*args
, **kwargs
):
2071 """IsValid() -> bool"""
2072 return _misc
.FileTypeInfo_IsValid(*args
, **kwargs
)
2074 def SetIcon(*args
, **kwargs
):
2075 """SetIcon(wxString iconFile, int iconIndex=0)"""
2076 return _misc
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2078 def SetShortDesc(*args
, **kwargs
):
2079 """SetShortDesc(wxString shortDesc)"""
2080 return _misc
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2082 def GetMimeType(*args
, **kwargs
):
2083 """GetMimeType() -> wxString"""
2084 return _misc
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2086 def GetOpenCommand(*args
, **kwargs
):
2087 """GetOpenCommand() -> wxString"""
2088 return _misc
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2090 def GetPrintCommand(*args
, **kwargs
):
2091 """GetPrintCommand() -> wxString"""
2092 return _misc
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2094 def GetShortDesc(*args
, **kwargs
):
2095 """GetShortDesc() -> wxString"""
2096 return _misc
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2098 def GetDescription(*args
, **kwargs
):
2099 """GetDescription() -> wxString"""
2100 return _misc
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2102 def GetExtensions(*args
, **kwargs
):
2103 """GetExtensions() -> wxArrayString"""
2104 return _misc
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2106 def GetExtensionsCount(*args
, **kwargs
):
2107 """GetExtensionsCount() -> int"""
2108 return _misc
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2110 def GetIconFile(*args
, **kwargs
):
2111 """GetIconFile() -> wxString"""
2112 return _misc
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2114 def GetIconIndex(*args
, **kwargs
):
2115 """GetIconIndex() -> int"""
2116 return _misc
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2119 class FileTypeInfoPtr(FileTypeInfo
):
2120 def __init__(self
, this
):
2122 if not hasattr(self
,"thisown"): self
.thisown
= 0
2123 self
.__class
__ = FileTypeInfo
2124 _misc
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2126 def FileTypeInfoSequence(*args
, **kwargs
):
2127 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2128 val
= _misc
.new_FileTypeInfoSequence(*args
, **kwargs
)
2132 def NullFileTypeInfo(*args
, **kwargs
):
2133 """NullFileTypeInfo() -> FileTypeInfo"""
2134 val
= _misc
.new_NullFileTypeInfo(*args
, **kwargs
)
2138 class FileType(object):
2140 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2141 def __init__(self
, *args
, **kwargs
):
2142 """__init__(FileTypeInfo ftInfo) -> FileType"""
2143 newobj
= _misc
.new_FileType(*args
, **kwargs
)
2144 self
.this
= newobj
.this
2147 def __del__(self
, destroy
=_misc
.delete_FileType
):
2150 if self
.thisown
: destroy(self
)
2153 def GetMimeType(*args
, **kwargs
):
2154 """GetMimeType() -> PyObject"""
2155 return _misc
.FileType_GetMimeType(*args
, **kwargs
)
2157 def GetMimeTypes(*args
, **kwargs
):
2158 """GetMimeTypes() -> PyObject"""
2159 return _misc
.FileType_GetMimeTypes(*args
, **kwargs
)
2161 def GetExtensions(*args
, **kwargs
):
2162 """GetExtensions() -> PyObject"""
2163 return _misc
.FileType_GetExtensions(*args
, **kwargs
)
2165 def GetIcon(*args
, **kwargs
):
2166 """GetIcon() -> wxIcon"""
2167 return _misc
.FileType_GetIcon(*args
, **kwargs
)
2169 def GetIconInfo(*args
, **kwargs
):
2170 """GetIconInfo() -> PyObject"""
2171 return _misc
.FileType_GetIconInfo(*args
, **kwargs
)
2173 def GetDescription(*args
, **kwargs
):
2174 """GetDescription() -> PyObject"""
2175 return _misc
.FileType_GetDescription(*args
, **kwargs
)
2177 def GetOpenCommand(*args
, **kwargs
):
2178 """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2179 return _misc
.FileType_GetOpenCommand(*args
, **kwargs
)
2181 def GetPrintCommand(*args
, **kwargs
):
2182 """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2183 return _misc
.FileType_GetPrintCommand(*args
, **kwargs
)
2185 def GetAllCommands(*args
, **kwargs
):
2186 """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2187 return _misc
.FileType_GetAllCommands(*args
, **kwargs
)
2189 def SetCommand(*args
, **kwargs
):
2190 """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool"""
2191 return _misc
.FileType_SetCommand(*args
, **kwargs
)
2193 def SetDefaultIcon(*args
, **kwargs
):
2194 """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool"""
2195 return _misc
.FileType_SetDefaultIcon(*args
, **kwargs
)
2197 def Unassociate(*args
, **kwargs
):
2198 """Unassociate() -> bool"""
2199 return _misc
.FileType_Unassociate(*args
, **kwargs
)
2201 def ExpandCommand(*args
, **kwargs
):
2202 """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2203 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2205 ExpandCommand
= staticmethod(ExpandCommand
)
2207 class FileTypePtr(FileType
):
2208 def __init__(self
, this
):
2210 if not hasattr(self
,"thisown"): self
.thisown
= 0
2211 self
.__class
__ = FileType
2212 _misc
.FileType_swigregister(FileTypePtr
)
2214 def FileType_ExpandCommand(*args
, **kwargs
):
2215 """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2216 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2218 class MimeTypesManager(object):
2220 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2221 def IsOfType(*args
, **kwargs
):
2222 """MimeTypesManager.IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2223 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2225 IsOfType
= staticmethod(IsOfType
)
2226 def __init__(self
, *args
, **kwargs
):
2227 """__init__() -> MimeTypesManager"""
2228 newobj
= _misc
.new_MimeTypesManager(*args
, **kwargs
)
2229 self
.this
= newobj
.this
2232 def Initialize(*args
, **kwargs
):
2233 """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)"""
2234 return _misc
.MimeTypesManager_Initialize(*args
, **kwargs
)
2236 def ClearData(*args
, **kwargs
):
2238 return _misc
.MimeTypesManager_ClearData(*args
, **kwargs
)
2240 def GetFileTypeFromExtension(*args
, **kwargs
):
2241 """GetFileTypeFromExtension(wxString ext) -> FileType"""
2242 return _misc
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2244 def GetFileTypeFromMimeType(*args
, **kwargs
):
2245 """GetFileTypeFromMimeType(wxString mimeType) -> FileType"""
2246 return _misc
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2248 def ReadMailcap(*args
, **kwargs
):
2249 """ReadMailcap(wxString filename, bool fallback=False) -> bool"""
2250 return _misc
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2252 def ReadMimeTypes(*args
, **kwargs
):
2253 """ReadMimeTypes(wxString filename) -> bool"""
2254 return _misc
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2256 def EnumAllFileTypes(*args
, **kwargs
):
2257 """EnumAllFileTypes() -> PyObject"""
2258 return _misc
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2260 def AddFallback(*args
, **kwargs
):
2261 """AddFallback(FileTypeInfo ft)"""
2262 return _misc
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2264 def Associate(*args
, **kwargs
):
2265 """Associate(FileTypeInfo ftInfo) -> FileType"""
2266 return _misc
.MimeTypesManager_Associate(*args
, **kwargs
)
2268 def Unassociate(*args
, **kwargs
):
2269 """Unassociate(FileType ft) -> bool"""
2270 return _misc
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2272 def __del__(self
, destroy
=_misc
.delete_MimeTypesManager
):
2275 if self
.thisown
: destroy(self
)
2279 class MimeTypesManagerPtr(MimeTypesManager
):
2280 def __init__(self
, this
):
2282 if not hasattr(self
,"thisown"): self
.thisown
= 0
2283 self
.__class
__ = MimeTypesManager
2284 _misc
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2286 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2288 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2289 """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2290 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2292 #---------------------------------------------------------------------------
2294 class ArtProvider(object):
2296 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2297 def __init__(self
, *args
, **kwargs
):
2298 """__init__() -> ArtProvider"""
2299 newobj
= _misc
.new_ArtProvider(*args
, **kwargs
)
2300 self
.this
= newobj
.this
2303 self
._setCallbackInfo
(self
, ArtProvider
)
2305 def _setCallbackInfo(*args
, **kwargs
):
2306 """_setCallbackInfo(PyObject self, PyObject _class)"""
2307 return _misc
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2309 def PushProvider(*args
, **kwargs
):
2311 ArtProvider.PushProvider(ArtProvider provider)
2313 Add new provider to the top of providers stack.
2315 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2317 PushProvider
= staticmethod(PushProvider
)
2318 def PopProvider(*args
, **kwargs
):
2320 ArtProvider.PopProvider() -> bool
2322 Remove latest added provider and delete it.
2324 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2326 PopProvider
= staticmethod(PopProvider
)
2327 def RemoveProvider(*args
, **kwargs
):
2329 ArtProvider.RemoveProvider(ArtProvider provider) -> bool
2331 Remove provider. The provider must have been added previously!
2332 The provider is _not_ deleted.
2334 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2336 RemoveProvider
= staticmethod(RemoveProvider
)
2337 def GetBitmap(*args
, **kwargs
):
2339 ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2341 Query the providers for bitmap with given ID and return it. Return
2342 wx.NullBitmap if no provider provides it.
2344 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2346 GetBitmap
= staticmethod(GetBitmap
)
2347 def GetIcon(*args
, **kwargs
):
2349 ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2351 Query the providers for icon with given ID and return it. Return
2352 wx.NullIcon if no provider provides it.
2354 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2356 GetIcon
= staticmethod(GetIcon
)
2357 def Destroy(*args
, **kwargs
):
2359 return _misc
.ArtProvider_Destroy(*args
, **kwargs
)
2362 class ArtProviderPtr(ArtProvider
):
2363 def __init__(self
, this
):
2365 if not hasattr(self
,"thisown"): self
.thisown
= 0
2366 self
.__class
__ = ArtProvider
2367 _misc
.ArtProvider_swigregister(ArtProviderPtr
)
2368 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2369 ART_MENU
= cvar
.ART_MENU
2370 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2371 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2372 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2373 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2374 ART_OTHER
= cvar
.ART_OTHER
2375 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2376 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2377 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2378 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2379 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2380 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2381 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2382 ART_GO_BACK
= cvar
.ART_GO_BACK
2383 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2384 ART_GO_UP
= cvar
.ART_GO_UP
2385 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2386 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2387 ART_GO_HOME
= cvar
.ART_GO_HOME
2388 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2389 ART_PRINT
= cvar
.ART_PRINT
2390 ART_HELP
= cvar
.ART_HELP
2391 ART_TIP
= cvar
.ART_TIP
2392 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2393 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2394 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2395 ART_FOLDER
= cvar
.ART_FOLDER
2396 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2397 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2398 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2399 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2400 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2401 ART_ERROR
= cvar
.ART_ERROR
2402 ART_QUESTION
= cvar
.ART_QUESTION
2403 ART_WARNING
= cvar
.ART_WARNING
2404 ART_INFORMATION
= cvar
.ART_INFORMATION
2405 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2407 def ArtProvider_PushProvider(*args
, **kwargs
):
2409 ArtProvider_PushProvider(ArtProvider provider)
2411 Add new provider to the top of providers stack.
2413 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2415 def ArtProvider_PopProvider(*args
, **kwargs
):
2417 ArtProvider_PopProvider() -> bool
2419 Remove latest added provider and delete it.
2421 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2423 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2425 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2427 Remove provider. The provider must have been added previously!
2428 The provider is _not_ deleted.
2430 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2432 def ArtProvider_GetBitmap(*args
, **kwargs
):
2434 ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2436 Query the providers for bitmap with given ID and return it. Return
2437 wx.NullBitmap if no provider provides it.
2439 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2441 def ArtProvider_GetIcon(*args
, **kwargs
):
2443 ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2445 Query the providers for icon with given ID and return it. Return
2446 wx.NullIcon if no provider provides it.
2448 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2450 #---------------------------------------------------------------------------
2452 CONFIG_USE_LOCAL_FILE
= _misc
.CONFIG_USE_LOCAL_FILE
2453 CONFIG_USE_GLOBAL_FILE
= _misc
.CONFIG_USE_GLOBAL_FILE
2454 CONFIG_USE_RELATIVE_PATH
= _misc
.CONFIG_USE_RELATIVE_PATH
2455 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2456 class ConfigBase(object):
2457 def __init__(self
): raise RuntimeError, "No constructor defined"
2459 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2460 def __del__(self
, destroy
=_misc
.delete_ConfigBase
):
2463 if self
.thisown
: destroy(self
)
2466 Type_Unknown
= _misc
.ConfigBase_Type_Unknown
2467 Type_String
= _misc
.ConfigBase_Type_String
2468 Type_Boolean
= _misc
.ConfigBase_Type_Boolean
2469 Type_Integer
= _misc
.ConfigBase_Type_Integer
2470 Type_Float
= _misc
.ConfigBase_Type_Float
2471 def Set(*args
, **kwargs
):
2472 """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase"""
2473 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2475 Set
= staticmethod(Set
)
2476 def Get(*args
, **kwargs
):
2477 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2478 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2480 Get
= staticmethod(Get
)
2481 def Create(*args
, **kwargs
):
2482 """ConfigBase.Create() -> ConfigBase"""
2483 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2485 Create
= staticmethod(Create
)
2486 def DontCreateOnDemand(*args
, **kwargs
):
2487 """ConfigBase.DontCreateOnDemand()"""
2488 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2490 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2491 def SetPath(*args
, **kwargs
):
2492 """SetPath(wxString strPath)"""
2493 return _misc
.ConfigBase_SetPath(*args
, **kwargs
)
2495 def GetPath(*args
, **kwargs
):
2496 """GetPath() -> wxString"""
2497 return _misc
.ConfigBase_GetPath(*args
, **kwargs
)
2499 def GetFirstGroup(*args
, **kwargs
):
2500 """GetFirstGroup() -> PyObject"""
2501 return _misc
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2503 def GetNextGroup(*args
, **kwargs
):
2504 """GetNextGroup(long index) -> PyObject"""
2505 return _misc
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2507 def GetFirstEntry(*args
, **kwargs
):
2508 """GetFirstEntry() -> PyObject"""
2509 return _misc
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2511 def GetNextEntry(*args
, **kwargs
):
2512 """GetNextEntry(long index) -> PyObject"""
2513 return _misc
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2515 def GetNumberOfEntries(*args
, **kwargs
):
2516 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2517 return _misc
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2519 def GetNumberOfGroups(*args
, **kwargs
):
2520 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2521 return _misc
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2523 def HasGroup(*args
, **kwargs
):
2524 """HasGroup(wxString strName) -> bool"""
2525 return _misc
.ConfigBase_HasGroup(*args
, **kwargs
)
2527 def HasEntry(*args
, **kwargs
):
2528 """HasEntry(wxString strName) -> bool"""
2529 return _misc
.ConfigBase_HasEntry(*args
, **kwargs
)
2531 def Exists(*args
, **kwargs
):
2532 """Exists(wxString strName) -> bool"""
2533 return _misc
.ConfigBase_Exists(*args
, **kwargs
)
2535 def GetEntryType(*args
, **kwargs
):
2536 """GetEntryType(wxString name) -> wxConfigBase::EntryType"""
2537 return _misc
.ConfigBase_GetEntryType(*args
, **kwargs
)
2539 def Read(*args
, **kwargs
):
2540 """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString"""
2541 return _misc
.ConfigBase_Read(*args
, **kwargs
)
2543 def ReadInt(*args
, **kwargs
):
2544 """ReadInt(wxString key, long defaultVal=0) -> long"""
2545 return _misc
.ConfigBase_ReadInt(*args
, **kwargs
)
2547 def ReadFloat(*args
, **kwargs
):
2548 """ReadFloat(wxString key, double defaultVal=0.0) -> double"""
2549 return _misc
.ConfigBase_ReadFloat(*args
, **kwargs
)
2551 def ReadBool(*args
, **kwargs
):
2552 """ReadBool(wxString key, bool defaultVal=False) -> bool"""
2553 return _misc
.ConfigBase_ReadBool(*args
, **kwargs
)
2555 def Write(*args
, **kwargs
):
2556 """Write(wxString key, wxString value) -> bool"""
2557 return _misc
.ConfigBase_Write(*args
, **kwargs
)
2559 def WriteInt(*args
, **kwargs
):
2560 """WriteInt(wxString key, long value) -> bool"""
2561 return _misc
.ConfigBase_WriteInt(*args
, **kwargs
)
2563 def WriteFloat(*args
, **kwargs
):
2564 """WriteFloat(wxString key, double value) -> bool"""
2565 return _misc
.ConfigBase_WriteFloat(*args
, **kwargs
)
2567 def WriteBool(*args
, **kwargs
):
2568 """WriteBool(wxString key, bool value) -> bool"""
2569 return _misc
.ConfigBase_WriteBool(*args
, **kwargs
)
2571 def Flush(*args
, **kwargs
):
2572 """Flush(bool bCurrentOnly=False) -> bool"""
2573 return _misc
.ConfigBase_Flush(*args
, **kwargs
)
2575 def RenameEntry(*args
, **kwargs
):
2576 """RenameEntry(wxString oldName, wxString newName) -> bool"""
2577 return _misc
.ConfigBase_RenameEntry(*args
, **kwargs
)
2579 def RenameGroup(*args
, **kwargs
):
2580 """RenameGroup(wxString oldName, wxString newName) -> bool"""
2581 return _misc
.ConfigBase_RenameGroup(*args
, **kwargs
)
2583 def DeleteEntry(*args
, **kwargs
):
2584 """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool"""
2585 return _misc
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2587 def DeleteGroup(*args
, **kwargs
):
2588 """DeleteGroup(wxString key) -> bool"""
2589 return _misc
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2591 def DeleteAll(*args
, **kwargs
):
2592 """DeleteAll() -> bool"""
2593 return _misc
.ConfigBase_DeleteAll(*args
, **kwargs
)
2595 def IsExpandingEnvVars(*args
, **kwargs
):
2596 """IsExpandingEnvVars() -> bool"""
2597 return _misc
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2599 def SetExpandEnvVars(*args
, **kwargs
):
2600 """SetExpandEnvVars(bool bDoIt=True)"""
2601 return _misc
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2603 def SetRecordDefaults(*args
, **kwargs
):
2604 """SetRecordDefaults(bool bDoIt=True)"""
2605 return _misc
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2607 def IsRecordingDefaults(*args
, **kwargs
):
2608 """IsRecordingDefaults() -> bool"""
2609 return _misc
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2611 def ExpandEnvVars(*args
, **kwargs
):
2612 """ExpandEnvVars(wxString str) -> wxString"""
2613 return _misc
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2615 def GetAppName(*args
, **kwargs
):
2616 """GetAppName() -> wxString"""
2617 return _misc
.ConfigBase_GetAppName(*args
, **kwargs
)
2619 def GetVendorName(*args
, **kwargs
):
2620 """GetVendorName() -> wxString"""
2621 return _misc
.ConfigBase_GetVendorName(*args
, **kwargs
)
2623 def SetAppName(*args
, **kwargs
):
2624 """SetAppName(wxString appName)"""
2625 return _misc
.ConfigBase_SetAppName(*args
, **kwargs
)
2627 def SetVendorName(*args
, **kwargs
):
2628 """SetVendorName(wxString vendorName)"""
2629 return _misc
.ConfigBase_SetVendorName(*args
, **kwargs
)
2631 def SetStyle(*args
, **kwargs
):
2632 """SetStyle(long style)"""
2633 return _misc
.ConfigBase_SetStyle(*args
, **kwargs
)
2635 def GetStyle(*args
, **kwargs
):
2636 """GetStyle() -> long"""
2637 return _misc
.ConfigBase_GetStyle(*args
, **kwargs
)
2640 class ConfigBasePtr(ConfigBase
):
2641 def __init__(self
, this
):
2643 if not hasattr(self
,"thisown"): self
.thisown
= 0
2644 self
.__class
__ = ConfigBase
2645 _misc
.ConfigBase_swigregister(ConfigBasePtr
)
2647 def ConfigBase_Set(*args
, **kwargs
):
2648 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2649 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2651 def ConfigBase_Get(*args
, **kwargs
):
2652 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2653 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2655 def ConfigBase_Create(*args
, **kwargs
):
2656 """ConfigBase_Create() -> ConfigBase"""
2657 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2659 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
2660 """ConfigBase_DontCreateOnDemand()"""
2661 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2663 class ConfigPathChanger(object):
2665 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2666 def __init__(self
, *args
, **kwargs
):
2667 """__init__(ConfigBase pContainer, wxString strEntry) -> ConfigPathChanger"""
2668 newobj
= _misc
.new_ConfigPathChanger(*args
, **kwargs
)
2669 self
.this
= newobj
.this
2672 def __del__(self
, destroy
=_misc
.delete_ConfigPathChanger
):
2675 if self
.thisown
: destroy(self
)
2678 def Name(*args
, **kwargs
):
2679 """Name() -> wxString"""
2680 return _misc
.ConfigPathChanger_Name(*args
, **kwargs
)
2683 class ConfigPathChangerPtr(ConfigPathChanger
):
2684 def __init__(self
, this
):
2686 if not hasattr(self
,"thisown"): self
.thisown
= 0
2687 self
.__class
__ = ConfigPathChanger
2688 _misc
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
2690 class Config(ConfigBase
):
2692 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2693 def __init__(self
, *args
, **kwargs
):
2695 __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2696 wxString localFilename=wxPyEmptyString,
2697 wxString globalFilename=wxPyEmptyString,
2698 long style=0) -> Config
2700 newobj
= _misc
.new_Config(*args
, **kwargs
)
2701 self
.this
= newobj
.this
2704 def __del__(self
, destroy
=_misc
.delete_Config
):
2707 if self
.thisown
: destroy(self
)
2711 class ConfigPtr(Config
):
2712 def __init__(self
, this
):
2714 if not hasattr(self
,"thisown"): self
.thisown
= 0
2715 self
.__class
__ = Config
2716 _misc
.Config_swigregister(ConfigPtr
)
2718 class FileConfig(ConfigBase
):
2720 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2721 def __init__(self
, *args
, **kwargs
):
2723 __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2724 wxString localFilename=wxPyEmptyString,
2725 wxString globalFilename=wxPyEmptyString,
2726 long style=0) -> FileConfig
2728 newobj
= _misc
.new_FileConfig(*args
, **kwargs
)
2729 self
.this
= newobj
.this
2732 def __del__(self
, destroy
=_misc
.delete_FileConfig
):
2735 if self
.thisown
: destroy(self
)
2739 class FileConfigPtr(FileConfig
):
2740 def __init__(self
, this
):
2742 if not hasattr(self
,"thisown"): self
.thisown
= 0
2743 self
.__class
__ = FileConfig
2744 _misc
.FileConfig_swigregister(FileConfigPtr
)
2747 def ExpandEnvVars(*args
, **kwargs
):
2748 """ExpandEnvVars(wxString sz) -> wxString"""
2749 return _misc
.ExpandEnvVars(*args
, **kwargs
)
2750 #---------------------------------------------------------------------------
2752 class DateTime(object):
2754 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2755 Local
= _misc
.DateTime_Local
2756 GMT_12
= _misc
.DateTime_GMT_12
2757 GMT_11
= _misc
.DateTime_GMT_11
2758 GMT_10
= _misc
.DateTime_GMT_10
2759 GMT_9
= _misc
.DateTime_GMT_9
2760 GMT_8
= _misc
.DateTime_GMT_8
2761 GMT_7
= _misc
.DateTime_GMT_7
2762 GMT_6
= _misc
.DateTime_GMT_6
2763 GMT_5
= _misc
.DateTime_GMT_5
2764 GMT_4
= _misc
.DateTime_GMT_4
2765 GMT_3
= _misc
.DateTime_GMT_3
2766 GMT_2
= _misc
.DateTime_GMT_2
2767 GMT_1
= _misc
.DateTime_GMT_1
2768 GMT0
= _misc
.DateTime_GMT0
2769 GMT1
= _misc
.DateTime_GMT1
2770 GMT2
= _misc
.DateTime_GMT2
2771 GMT3
= _misc
.DateTime_GMT3
2772 GMT4
= _misc
.DateTime_GMT4
2773 GMT5
= _misc
.DateTime_GMT5
2774 GMT6
= _misc
.DateTime_GMT6
2775 GMT7
= _misc
.DateTime_GMT7
2776 GMT8
= _misc
.DateTime_GMT8
2777 GMT9
= _misc
.DateTime_GMT9
2778 GMT10
= _misc
.DateTime_GMT10
2779 GMT11
= _misc
.DateTime_GMT11
2780 GMT12
= _misc
.DateTime_GMT12
2781 WET
= _misc
.DateTime_WET
2782 WEST
= _misc
.DateTime_WEST
2783 CET
= _misc
.DateTime_CET
2784 CEST
= _misc
.DateTime_CEST
2785 EET
= _misc
.DateTime_EET
2786 EEST
= _misc
.DateTime_EEST
2787 MSK
= _misc
.DateTime_MSK
2788 MSD
= _misc
.DateTime_MSD
2789 AST
= _misc
.DateTime_AST
2790 ADT
= _misc
.DateTime_ADT
2791 EST
= _misc
.DateTime_EST
2792 EDT
= _misc
.DateTime_EDT
2793 CST
= _misc
.DateTime_CST
2794 CDT
= _misc
.DateTime_CDT
2795 MST
= _misc
.DateTime_MST
2796 MDT
= _misc
.DateTime_MDT
2797 PST
= _misc
.DateTime_PST
2798 PDT
= _misc
.DateTime_PDT
2799 HST
= _misc
.DateTime_HST
2800 AKST
= _misc
.DateTime_AKST
2801 AKDT
= _misc
.DateTime_AKDT
2802 A_WST
= _misc
.DateTime_A_WST
2803 A_CST
= _misc
.DateTime_A_CST
2804 A_EST
= _misc
.DateTime_A_EST
2805 A_ESST
= _misc
.DateTime_A_ESST
2806 UTC
= _misc
.DateTime_UTC
2807 Gregorian
= _misc
.DateTime_Gregorian
2808 Julian
= _misc
.DateTime_Julian
2809 Gr_Unknown
= _misc
.DateTime_Gr_Unknown
2810 Gr_Standard
= _misc
.DateTime_Gr_Standard
2811 Gr_Alaska
= _misc
.DateTime_Gr_Alaska
2812 Gr_Albania
= _misc
.DateTime_Gr_Albania
2813 Gr_Austria
= _misc
.DateTime_Gr_Austria
2814 Gr_Austria_Brixen
= _misc
.DateTime_Gr_Austria_Brixen
2815 Gr_Austria_Salzburg
= _misc
.DateTime_Gr_Austria_Salzburg
2816 Gr_Austria_Tyrol
= _misc
.DateTime_Gr_Austria_Tyrol
2817 Gr_Austria_Carinthia
= _misc
.DateTime_Gr_Austria_Carinthia
2818 Gr_Austria_Styria
= _misc
.DateTime_Gr_Austria_Styria
2819 Gr_Belgium
= _misc
.DateTime_Gr_Belgium
2820 Gr_Bulgaria
= _misc
.DateTime_Gr_Bulgaria
2821 Gr_Bulgaria_1
= _misc
.DateTime_Gr_Bulgaria_1
2822 Gr_Bulgaria_2
= _misc
.DateTime_Gr_Bulgaria_2
2823 Gr_Bulgaria_3
= _misc
.DateTime_Gr_Bulgaria_3
2824 Gr_Canada
= _misc
.DateTime_Gr_Canada
2825 Gr_China
= _misc
.DateTime_Gr_China
2826 Gr_China_1
= _misc
.DateTime_Gr_China_1
2827 Gr_China_2
= _misc
.DateTime_Gr_China_2
2828 Gr_Czechoslovakia
= _misc
.DateTime_Gr_Czechoslovakia
2829 Gr_Denmark
= _misc
.DateTime_Gr_Denmark
2830 Gr_Egypt
= _misc
.DateTime_Gr_Egypt
2831 Gr_Estonia
= _misc
.DateTime_Gr_Estonia
2832 Gr_Finland
= _misc
.DateTime_Gr_Finland
2833 Gr_France
= _misc
.DateTime_Gr_France
2834 Gr_France_Alsace
= _misc
.DateTime_Gr_France_Alsace
2835 Gr_France_Lorraine
= _misc
.DateTime_Gr_France_Lorraine
2836 Gr_France_Strasbourg
= _misc
.DateTime_Gr_France_Strasbourg
2837 Gr_Germany
= _misc
.DateTime_Gr_Germany
2838 Gr_Germany_Catholic
= _misc
.DateTime_Gr_Germany_Catholic
2839 Gr_Germany_Prussia
= _misc
.DateTime_Gr_Germany_Prussia
2840 Gr_Germany_Protestant
= _misc
.DateTime_Gr_Germany_Protestant
2841 Gr_GreatBritain
= _misc
.DateTime_Gr_GreatBritain
2842 Gr_Greece
= _misc
.DateTime_Gr_Greece
2843 Gr_Hungary
= _misc
.DateTime_Gr_Hungary
2844 Gr_Ireland
= _misc
.DateTime_Gr_Ireland
2845 Gr_Italy
= _misc
.DateTime_Gr_Italy
2846 Gr_Japan
= _misc
.DateTime_Gr_Japan
2847 Gr_Japan_1
= _misc
.DateTime_Gr_Japan_1
2848 Gr_Japan_2
= _misc
.DateTime_Gr_Japan_2
2849 Gr_Japan_3
= _misc
.DateTime_Gr_Japan_3
2850 Gr_Latvia
= _misc
.DateTime_Gr_Latvia
2851 Gr_Lithuania
= _misc
.DateTime_Gr_Lithuania
2852 Gr_Luxemburg
= _misc
.DateTime_Gr_Luxemburg
2853 Gr_Netherlands
= _misc
.DateTime_Gr_Netherlands
2854 Gr_Netherlands_Groningen
= _misc
.DateTime_Gr_Netherlands_Groningen
2855 Gr_Netherlands_Gelderland
= _misc
.DateTime_Gr_Netherlands_Gelderland
2856 Gr_Netherlands_Utrecht
= _misc
.DateTime_Gr_Netherlands_Utrecht
2857 Gr_Netherlands_Friesland
= _misc
.DateTime_Gr_Netherlands_Friesland
2858 Gr_Norway
= _misc
.DateTime_Gr_Norway
2859 Gr_Poland
= _misc
.DateTime_Gr_Poland
2860 Gr_Portugal
= _misc
.DateTime_Gr_Portugal
2861 Gr_Romania
= _misc
.DateTime_Gr_Romania
2862 Gr_Russia
= _misc
.DateTime_Gr_Russia
2863 Gr_Scotland
= _misc
.DateTime_Gr_Scotland
2864 Gr_Spain
= _misc
.DateTime_Gr_Spain
2865 Gr_Sweden
= _misc
.DateTime_Gr_Sweden
2866 Gr_Switzerland
= _misc
.DateTime_Gr_Switzerland
2867 Gr_Switzerland_Catholic
= _misc
.DateTime_Gr_Switzerland_Catholic
2868 Gr_Switzerland_Protestant
= _misc
.DateTime_Gr_Switzerland_Protestant
2869 Gr_Turkey
= _misc
.DateTime_Gr_Turkey
2870 Gr_USA
= _misc
.DateTime_Gr_USA
2871 Gr_Wales
= _misc
.DateTime_Gr_Wales
2872 Gr_Yugoslavia
= _misc
.DateTime_Gr_Yugoslavia
2873 Country_Unknown
= _misc
.DateTime_Country_Unknown
2874 Country_Default
= _misc
.DateTime_Country_Default
2875 Country_WesternEurope_Start
= _misc
.DateTime_Country_WesternEurope_Start
2876 Country_EEC
= _misc
.DateTime_Country_EEC
2877 France
= _misc
.DateTime_France
2878 Germany
= _misc
.DateTime_Germany
2879 UK
= _misc
.DateTime_UK
2880 Country_WesternEurope_End
= _misc
.DateTime_Country_WesternEurope_End
2881 Russia
= _misc
.DateTime_Russia
2882 USA
= _misc
.DateTime_USA
2883 Jan
= _misc
.DateTime_Jan
2884 Feb
= _misc
.DateTime_Feb
2885 Mar
= _misc
.DateTime_Mar
2886 Apr
= _misc
.DateTime_Apr
2887 May
= _misc
.DateTime_May
2888 Jun
= _misc
.DateTime_Jun
2889 Jul
= _misc
.DateTime_Jul
2890 Aug
= _misc
.DateTime_Aug
2891 Sep
= _misc
.DateTime_Sep
2892 Oct
= _misc
.DateTime_Oct
2893 Nov
= _misc
.DateTime_Nov
2894 Dec
= _misc
.DateTime_Dec
2895 Inv_Month
= _misc
.DateTime_Inv_Month
2896 Sun
= _misc
.DateTime_Sun
2897 Mon
= _misc
.DateTime_Mon
2898 Tue
= _misc
.DateTime_Tue
2899 Wed
= _misc
.DateTime_Wed
2900 Thu
= _misc
.DateTime_Thu
2901 Fri
= _misc
.DateTime_Fri
2902 Sat
= _misc
.DateTime_Sat
2903 Inv_WeekDay
= _misc
.DateTime_Inv_WeekDay
2904 Inv_Year
= _misc
.DateTime_Inv_Year
2905 Name_Full
= _misc
.DateTime_Name_Full
2906 Name_Abbr
= _misc
.DateTime_Name_Abbr
2907 Default_First
= _misc
.DateTime_Default_First
2908 Monday_First
= _misc
.DateTime_Monday_First
2909 Sunday_First
= _misc
.DateTime_Sunday_First
2910 def SetCountry(*args
, **kwargs
):
2911 """DateTime.SetCountry(wxDateTime::Country country)"""
2912 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
2914 SetCountry
= staticmethod(SetCountry
)
2915 def GetCountry(*args
, **kwargs
):
2916 """DateTime.GetCountry() -> wxDateTime::Country"""
2917 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
2919 GetCountry
= staticmethod(GetCountry
)
2920 def IsWestEuropeanCountry(*args
, **kwargs
):
2921 """DateTime.IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
2922 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
2924 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
2925 def GetCurrentYear(*args
, **kwargs
):
2926 """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
2927 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
2929 GetCurrentYear
= staticmethod(GetCurrentYear
)
2930 def ConvertYearToBC(*args
, **kwargs
):
2931 """DateTime.ConvertYearToBC(int year) -> int"""
2932 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
2934 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
2935 def GetCurrentMonth(*args
, **kwargs
):
2936 """DateTime.GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
2937 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
2939 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
2940 def IsLeapYear(*args
, **kwargs
):
2941 """DateTime.IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
2942 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
2944 IsLeapYear
= staticmethod(IsLeapYear
)
2945 def GetCentury(*args
, **kwargs
):
2946 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2947 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
2949 GetCentury
= staticmethod(GetCentury
)
2950 def GetNumberOfDaysinYear(*args
, **kwargs
):
2951 """DateTime.GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
2952 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
2954 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
2955 def GetNumberOfDaysInMonth(*args
, **kwargs
):
2956 """DateTime.GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
2957 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
2959 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
2960 def GetMonthName(*args
, **kwargs
):
2961 """DateTime.GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2962 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
2964 GetMonthName
= staticmethod(GetMonthName
)
2965 def GetWeekDayName(*args
, **kwargs
):
2966 """DateTime.GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2967 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
2969 GetWeekDayName
= staticmethod(GetWeekDayName
)
2970 def GetAmPmStrings(*args
, **kwargs
):
2972 GetAmPmStrings() -> (am, pm)
2974 Get the AM and PM strings in the current locale (may be empty)
2976 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
2978 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
2979 def IsDSTApplicable(*args
, **kwargs
):
2980 """DateTime.IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
2981 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
2983 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
2984 def GetBeginDST(*args
, **kwargs
):
2985 """DateTime.GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2986 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
2988 GetBeginDST
= staticmethod(GetBeginDST
)
2989 def GetEndDST(*args
, **kwargs
):
2990 """DateTime.GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2991 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
2993 GetEndDST
= staticmethod(GetEndDST
)
2994 def Now(*args
, **kwargs
):
2995 """DateTime.Now() -> DateTime"""
2996 return _misc
.DateTime_Now(*args
, **kwargs
)
2998 Now
= staticmethod(Now
)
2999 def UNow(*args
, **kwargs
):
3000 """DateTime.UNow() -> DateTime"""
3001 return _misc
.DateTime_UNow(*args
, **kwargs
)
3003 UNow
= staticmethod(UNow
)
3004 def Today(*args
, **kwargs
):
3005 """DateTime.Today() -> DateTime"""
3006 return _misc
.DateTime_Today(*args
, **kwargs
)
3008 Today
= staticmethod(Today
)
3009 def __init__(self
, *args
, **kwargs
):
3010 """__init__() -> DateTime"""
3011 newobj
= _misc
.new_DateTime(*args
, **kwargs
)
3012 self
.this
= newobj
.this
3015 def __del__(self
, destroy
=_misc
.delete_DateTime
):
3018 if self
.thisown
: destroy(self
)
3021 def SetToCurrent(*args
, **kwargs
):
3022 """SetToCurrent() -> DateTime"""
3023 return _misc
.DateTime_SetToCurrent(*args
, **kwargs
)
3025 def SetTimeT(*args
, **kwargs
):
3026 """SetTimeT(time_t timet) -> DateTime"""
3027 return _misc
.DateTime_SetTimeT(*args
, **kwargs
)
3029 def SetJDN(*args
, **kwargs
):
3030 """SetJDN(double jdn) -> DateTime"""
3031 return _misc
.DateTime_SetJDN(*args
, **kwargs
)
3033 def SetHMS(*args
, **kwargs
):
3034 """SetHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3035 return _misc
.DateTime_SetHMS(*args
, **kwargs
)
3037 def Set(*args
, **kwargs
):
3039 Set(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3040 int hour=0, int minute=0, int second=0,
3041 int millisec=0) -> DateTime
3043 return _misc
.DateTime_Set(*args
, **kwargs
)
3045 def ResetTime(*args
, **kwargs
):
3046 """ResetTime() -> DateTime"""
3047 return _misc
.DateTime_ResetTime(*args
, **kwargs
)
3049 def SetYear(*args
, **kwargs
):
3050 """SetYear(int year) -> DateTime"""
3051 return _misc
.DateTime_SetYear(*args
, **kwargs
)
3053 def SetMonth(*args
, **kwargs
):
3054 """SetMonth(wxDateTime::Month month) -> DateTime"""
3055 return _misc
.DateTime_SetMonth(*args
, **kwargs
)
3057 def SetDay(*args
, **kwargs
):
3058 """SetDay(int day) -> DateTime"""
3059 return _misc
.DateTime_SetDay(*args
, **kwargs
)
3061 def SetHour(*args
, **kwargs
):
3062 """SetHour(int hour) -> DateTime"""
3063 return _misc
.DateTime_SetHour(*args
, **kwargs
)
3065 def SetMinute(*args
, **kwargs
):
3066 """SetMinute(int minute) -> DateTime"""
3067 return _misc
.DateTime_SetMinute(*args
, **kwargs
)
3069 def SetSecond(*args
, **kwargs
):
3070 """SetSecond(int second) -> DateTime"""
3071 return _misc
.DateTime_SetSecond(*args
, **kwargs
)
3073 def SetMillisecond(*args
, **kwargs
):
3074 """SetMillisecond(int millisecond) -> DateTime"""
3075 return _misc
.DateTime_SetMillisecond(*args
, **kwargs
)
3077 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3078 """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3079 return _misc
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3081 def GetWeekDayInSameWeek(*args
, **kwargs
):
3082 """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3083 return _misc
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3085 def SetToNextWeekDay(*args
, **kwargs
):
3086 """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3087 return _misc
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3089 def GetNextWeekDay(*args
, **kwargs
):
3090 """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3091 return _misc
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3093 def SetToPrevWeekDay(*args
, **kwargs
):
3094 """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3095 return _misc
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3097 def GetPrevWeekDay(*args
, **kwargs
):
3098 """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3099 return _misc
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3101 def SetToWeekDay(*args
, **kwargs
):
3103 SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month,
3104 int year=Inv_Year) -> bool
3106 return _misc
.DateTime_SetToWeekDay(*args
, **kwargs
)
3108 def SetToLastWeekDay(*args
, **kwargs
):
3110 SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3111 int year=Inv_Year) -> bool
3113 return _misc
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3115 def GetLastWeekDay(*args
, **kwargs
):
3117 GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3118 int year=Inv_Year) -> DateTime
3120 return _misc
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3122 def SetToTheWeek(*args
, **kwargs
):
3123 """SetToTheWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> bool"""
3124 return _misc
.DateTime_SetToTheWeek(*args
, **kwargs
)
3126 def GetWeek(*args
, **kwargs
):
3127 """GetWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3128 return _misc
.DateTime_GetWeek(*args
, **kwargs
)
3130 def SetToLastMonthDay(*args
, **kwargs
):
3131 """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3132 return _misc
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3134 def GetLastMonthDay(*args
, **kwargs
):
3135 """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3136 return _misc
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3138 def SetToYearDay(*args
, **kwargs
):
3139 """SetToYearDay(int yday) -> DateTime"""
3140 return _misc
.DateTime_SetToYearDay(*args
, **kwargs
)
3142 def GetYearDay(*args
, **kwargs
):
3143 """GetYearDay(int yday) -> DateTime"""
3144 return _misc
.DateTime_GetYearDay(*args
, **kwargs
)
3146 def GetJulianDayNumber(*args
, **kwargs
):
3147 """GetJulianDayNumber() -> double"""
3148 return _misc
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3150 def GetJDN(*args
, **kwargs
):
3151 """GetJDN() -> double"""
3152 return _misc
.DateTime_GetJDN(*args
, **kwargs
)
3154 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3155 """GetModifiedJulianDayNumber() -> double"""
3156 return _misc
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3158 def GetMJD(*args
, **kwargs
):
3159 """GetMJD() -> double"""
3160 return _misc
.DateTime_GetMJD(*args
, **kwargs
)
3162 def GetRataDie(*args
, **kwargs
):
3163 """GetRataDie() -> double"""
3164 return _misc
.DateTime_GetRataDie(*args
, **kwargs
)
3166 def ToTimezone(*args
, **kwargs
):
3167 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3168 return _misc
.DateTime_ToTimezone(*args
, **kwargs
)
3170 def MakeTimezone(*args
, **kwargs
):
3171 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3172 return _misc
.DateTime_MakeTimezone(*args
, **kwargs
)
3174 def ToGMT(*args
, **kwargs
):
3175 """ToGMT(bool noDST=False) -> DateTime"""
3176 return _misc
.DateTime_ToGMT(*args
, **kwargs
)
3178 def MakeGMT(*args
, **kwargs
):
3179 """MakeGMT(bool noDST=False) -> DateTime"""
3180 return _misc
.DateTime_MakeGMT(*args
, **kwargs
)
3182 def IsDST(*args
, **kwargs
):
3183 """IsDST(wxDateTime::Country country=Country_Default) -> int"""
3184 return _misc
.DateTime_IsDST(*args
, **kwargs
)
3186 def IsValid(*args
, **kwargs
):
3187 """IsValid() -> bool"""
3188 return _misc
.DateTime_IsValid(*args
, **kwargs
)
3190 def GetTicks(*args
, **kwargs
):
3191 """GetTicks() -> time_t"""
3192 return _misc
.DateTime_GetTicks(*args
, **kwargs
)
3194 def GetYear(*args
, **kwargs
):
3195 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3196 return _misc
.DateTime_GetYear(*args
, **kwargs
)
3198 def GetMonth(*args
, **kwargs
):
3199 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month"""
3200 return _misc
.DateTime_GetMonth(*args
, **kwargs
)
3202 def GetDay(*args
, **kwargs
):
3203 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3204 return _misc
.DateTime_GetDay(*args
, **kwargs
)
3206 def GetWeekDay(*args
, **kwargs
):
3207 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay"""
3208 return _misc
.DateTime_GetWeekDay(*args
, **kwargs
)
3210 def GetHour(*args
, **kwargs
):
3211 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3212 return _misc
.DateTime_GetHour(*args
, **kwargs
)
3214 def GetMinute(*args
, **kwargs
):
3215 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3216 return _misc
.DateTime_GetMinute(*args
, **kwargs
)
3218 def GetSecond(*args
, **kwargs
):
3219 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3220 return _misc
.DateTime_GetSecond(*args
, **kwargs
)
3222 def GetMillisecond(*args
, **kwargs
):
3223 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3224 return _misc
.DateTime_GetMillisecond(*args
, **kwargs
)
3226 def GetDayOfYear(*args
, **kwargs
):
3227 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3228 return _misc
.DateTime_GetDayOfYear(*args
, **kwargs
)
3230 def GetWeekOfYear(*args
, **kwargs
):
3231 """GetWeekOfYear(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3232 return _misc
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3234 def GetWeekOfMonth(*args
, **kwargs
):
3235 """GetWeekOfMonth(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3236 return _misc
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3238 def IsWorkDay(*args
, **kwargs
):
3239 """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool"""
3240 return _misc
.DateTime_IsWorkDay(*args
, **kwargs
)
3242 def IsEqualTo(*args
, **kwargs
):
3243 """IsEqualTo(DateTime datetime) -> bool"""
3244 return _misc
.DateTime_IsEqualTo(*args
, **kwargs
)
3246 def IsEarlierThan(*args
, **kwargs
):
3247 """IsEarlierThan(DateTime datetime) -> bool"""
3248 return _misc
.DateTime_IsEarlierThan(*args
, **kwargs
)
3250 def IsLaterThan(*args
, **kwargs
):
3251 """IsLaterThan(DateTime datetime) -> bool"""
3252 return _misc
.DateTime_IsLaterThan(*args
, **kwargs
)
3254 def IsStrictlyBetween(*args
, **kwargs
):
3255 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3256 return _misc
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3258 def IsBetween(*args
, **kwargs
):
3259 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3260 return _misc
.DateTime_IsBetween(*args
, **kwargs
)
3262 def IsSameDate(*args
, **kwargs
):
3263 """IsSameDate(DateTime dt) -> bool"""
3264 return _misc
.DateTime_IsSameDate(*args
, **kwargs
)
3266 def IsSameTime(*args
, **kwargs
):
3267 """IsSameTime(DateTime dt) -> bool"""
3268 return _misc
.DateTime_IsSameTime(*args
, **kwargs
)
3270 def IsEqualUpTo(*args
, **kwargs
):
3271 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3272 return _misc
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3274 def AddTS(*args
, **kwargs
):
3275 """AddTS(TimeSpan diff) -> DateTime"""
3276 return _misc
.DateTime_AddTS(*args
, **kwargs
)
3278 def AddDS(*args
, **kwargs
):
3279 """AddDS(DateSpan diff) -> DateTime"""
3280 return _misc
.DateTime_AddDS(*args
, **kwargs
)
3282 def SubtractTS(*args
, **kwargs
):
3283 """SubtractTS(TimeSpan diff) -> DateTime"""
3284 return _misc
.DateTime_SubtractTS(*args
, **kwargs
)
3286 def SubtractDS(*args
, **kwargs
):
3287 """SubtractDS(DateSpan diff) -> DateTime"""
3288 return _misc
.DateTime_SubtractDS(*args
, **kwargs
)
3290 def Subtract(*args
, **kwargs
):
3291 """Subtract(DateTime dt) -> TimeSpan"""
3292 return _misc
.DateTime_Subtract(*args
, **kwargs
)
3294 def __iadd__(*args
):
3296 __iadd__(TimeSpan diff) -> DateTime
3297 __iadd__(DateSpan diff) -> DateTime
3299 return _misc
.DateTime___iadd__(*args
)
3301 def __isub__(*args
):
3303 __isub__(TimeSpan diff) -> DateTime
3304 __isub__(DateSpan diff) -> DateTime
3306 return _misc
.DateTime___isub__(*args
)
3310 __add__(TimeSpan other) -> DateTime
3311 __add__(DateSpan other) -> DateTime
3313 return _misc
.DateTime___add__(*args
)
3317 __sub__(DateTime other) -> TimeSpan
3318 __sub__(TimeSpan other) -> DateTime
3319 __sub__(DateSpan other) -> DateTime
3321 return _misc
.DateTime___sub__(*args
)
3324 """__lt__(DateTime other) -> bool"""
3325 return _misc
.DateTime___lt__(*args
)
3328 """__le__(DateTime other) -> bool"""
3329 return _misc
.DateTime___le__(*args
)
3332 """__gt__(DateTime other) -> bool"""
3333 return _misc
.DateTime___gt__(*args
)
3336 """__ge__(DateTime other) -> bool"""
3337 return _misc
.DateTime___ge__(*args
)
3340 """__eq__(DateTime other) -> bool"""
3341 return _misc
.DateTime___eq__(*args
)
3344 """__ne__(DateTime other) -> bool"""
3345 return _misc
.DateTime___ne__(*args
)
3347 def ParseRfc822Date(*args
, **kwargs
):
3348 """ParseRfc822Date(wxString date) -> int"""
3349 return _misc
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3351 def ParseFormat(*args
, **kwargs
):
3352 """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3353 return _misc
.DateTime_ParseFormat(*args
, **kwargs
)
3355 def ParseDateTime(*args
, **kwargs
):
3356 """ParseDateTime(wxString datetime) -> int"""
3357 return _misc
.DateTime_ParseDateTime(*args
, **kwargs
)
3359 def ParseDate(*args
, **kwargs
):
3360 """ParseDate(wxString date) -> int"""
3361 return _misc
.DateTime_ParseDate(*args
, **kwargs
)
3363 def ParseTime(*args
, **kwargs
):
3364 """ParseTime(wxString time) -> int"""
3365 return _misc
.DateTime_ParseTime(*args
, **kwargs
)
3367 def Format(*args
, **kwargs
):
3368 """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString"""
3369 return _misc
.DateTime_Format(*args
, **kwargs
)
3371 def FormatDate(*args
, **kwargs
):
3372 """FormatDate() -> wxString"""
3373 return _misc
.DateTime_FormatDate(*args
, **kwargs
)
3375 def FormatTime(*args
, **kwargs
):
3376 """FormatTime() -> wxString"""
3377 return _misc
.DateTime_FormatTime(*args
, **kwargs
)
3379 def FormatISODate(*args
, **kwargs
):
3380 """FormatISODate() -> wxString"""
3381 return _misc
.DateTime_FormatISODate(*args
, **kwargs
)
3383 def FormatISOTime(*args
, **kwargs
):
3384 """FormatISOTime() -> wxString"""
3385 return _misc
.DateTime_FormatISOTime(*args
, **kwargs
)
3388 return '<wxDateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3390 return self
.Format()
3393 class DateTimePtr(DateTime
):
3394 def __init__(self
, this
):
3396 if not hasattr(self
,"thisown"): self
.thisown
= 0
3397 self
.__class
__ = DateTime
3398 _misc
.DateTime_swigregister(DateTimePtr
)
3400 def DateTime_SetCountry(*args
, **kwargs
):
3401 """DateTime_SetCountry(wxDateTime::Country country)"""
3402 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
3404 def DateTime_GetCountry(*args
, **kwargs
):
3405 """DateTime_GetCountry() -> wxDateTime::Country"""
3406 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
3408 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3409 """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
3410 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3412 def DateTime_GetCurrentYear(*args
, **kwargs
):
3413 """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
3414 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
3416 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3417 """DateTime_ConvertYearToBC(int year) -> int"""
3418 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3420 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3421 """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
3422 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3424 def DateTime_IsLeapYear(*args
, **kwargs
):
3425 """DateTime_IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
3426 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
3428 def DateTime_GetCentury(*args
, **kwargs
):
3429 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3430 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
3432 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3433 """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
3434 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3436 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3437 """DateTime_GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
3438 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3440 def DateTime_GetMonthName(*args
, **kwargs
):
3441 """DateTime_GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3442 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
3444 def DateTime_GetWeekDayName(*args
, **kwargs
):
3445 """DateTime_GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3446 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
3448 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3450 GetAmPmStrings() -> (am, pm)
3452 Get the AM and PM strings in the current locale (may be empty)
3454 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3456 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3457 """DateTime_IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
3458 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3460 def DateTime_GetBeginDST(*args
, **kwargs
):
3461 """DateTime_GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3462 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
3464 def DateTime_GetEndDST(*args
, **kwargs
):
3465 """DateTime_GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3466 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
3468 def DateTime_Now(*args
, **kwargs
):
3469 """DateTime_Now() -> DateTime"""
3470 return _misc
.DateTime_Now(*args
, **kwargs
)
3472 def DateTime_UNow(*args
, **kwargs
):
3473 """DateTime_UNow() -> DateTime"""
3474 return _misc
.DateTime_UNow(*args
, **kwargs
)
3476 def DateTime_Today(*args
, **kwargs
):
3477 """DateTime_Today() -> DateTime"""
3478 return _misc
.DateTime_Today(*args
, **kwargs
)
3480 def DateTimeFromTimeT(*args
, **kwargs
):
3481 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3482 val
= _misc
.new_DateTimeFromTimeT(*args
, **kwargs
)
3486 def DateTimeFromJDN(*args
, **kwargs
):
3487 """DateTimeFromJDN(double jdn) -> DateTime"""
3488 val
= _misc
.new_DateTimeFromJDN(*args
, **kwargs
)
3492 def DateTimeFromHMS(*args
, **kwargs
):
3493 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3494 val
= _misc
.new_DateTimeFromHMS(*args
, **kwargs
)
3498 def DateTimeFromDMY(*args
, **kwargs
):
3500 DateTimeFromDMY(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3501 int hour=0, int minute=0, int second=0,
3502 int millisec=0) -> DateTime
3504 val
= _misc
.new_DateTimeFromDMY(*args
, **kwargs
)
3508 class TimeSpan(object):
3510 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3511 def Seconds(*args
, **kwargs
):
3512 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3513 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3515 Seconds
= staticmethod(Seconds
)
3516 def Second(*args
, **kwargs
):
3517 """TimeSpan.Second() -> TimeSpan"""
3518 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3520 Second
= staticmethod(Second
)
3521 def Minutes(*args
, **kwargs
):
3522 """TimeSpan.Minutes(long min) -> TimeSpan"""
3523 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3525 Minutes
= staticmethod(Minutes
)
3526 def Minute(*args
, **kwargs
):
3527 """TimeSpan.Minute() -> TimeSpan"""
3528 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3530 Minute
= staticmethod(Minute
)
3531 def Hours(*args
, **kwargs
):
3532 """TimeSpan.Hours(long hours) -> TimeSpan"""
3533 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3535 Hours
= staticmethod(Hours
)
3536 def Hour(*args
, **kwargs
):
3537 """TimeSpan.Hour() -> TimeSpan"""
3538 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3540 Hour
= staticmethod(Hour
)
3541 def Days(*args
, **kwargs
):
3542 """TimeSpan.Days(long days) -> TimeSpan"""
3543 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3545 Days
= staticmethod(Days
)
3546 def Day(*args
, **kwargs
):
3547 """TimeSpan.Day() -> TimeSpan"""
3548 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3550 Day
= staticmethod(Day
)
3551 def Weeks(*args
, **kwargs
):
3552 """TimeSpan.Weeks(long days) -> TimeSpan"""
3553 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3555 Weeks
= staticmethod(Weeks
)
3556 def Week(*args
, **kwargs
):
3557 """TimeSpan.Week() -> TimeSpan"""
3558 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3560 Week
= staticmethod(Week
)
3561 def __init__(self
, *args
, **kwargs
):
3562 """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3563 newobj
= _misc
.new_TimeSpan(*args
, **kwargs
)
3564 self
.this
= newobj
.this
3567 def __del__(self
, destroy
=_misc
.delete_TimeSpan
):
3570 if self
.thisown
: destroy(self
)
3573 def Add(*args
, **kwargs
):
3574 """Add(TimeSpan diff) -> TimeSpan"""
3575 return _misc
.TimeSpan_Add(*args
, **kwargs
)
3577 def Subtract(*args
, **kwargs
):
3578 """Subtract(TimeSpan diff) -> TimeSpan"""
3579 return _misc
.TimeSpan_Subtract(*args
, **kwargs
)
3581 def Multiply(*args
, **kwargs
):
3582 """Multiply(int n) -> TimeSpan"""
3583 return _misc
.TimeSpan_Multiply(*args
, **kwargs
)
3585 def Neg(*args
, **kwargs
):
3586 """Neg() -> TimeSpan"""
3587 return _misc
.TimeSpan_Neg(*args
, **kwargs
)
3589 def Abs(*args
, **kwargs
):
3590 """Abs() -> TimeSpan"""
3591 return _misc
.TimeSpan_Abs(*args
, **kwargs
)
3593 def __iadd__(*args
, **kwargs
):
3594 """__iadd__(TimeSpan diff) -> TimeSpan"""
3595 return _misc
.TimeSpan___iadd__(*args
, **kwargs
)
3597 def __isub__(*args
, **kwargs
):
3598 """__isub__(TimeSpan diff) -> TimeSpan"""
3599 return _misc
.TimeSpan___isub__(*args
, **kwargs
)
3601 def __imul__(*args
, **kwargs
):
3602 """__imul__(int n) -> TimeSpan"""
3603 return _misc
.TimeSpan___imul__(*args
, **kwargs
)
3605 def __neg__(*args
, **kwargs
):
3606 """__neg__() -> TimeSpan"""
3607 return _misc
.TimeSpan___neg__(*args
, **kwargs
)
3609 def __add__(*args
, **kwargs
):
3610 """__add__(TimeSpan other) -> TimeSpan"""
3611 return _misc
.TimeSpan___add__(*args
, **kwargs
)
3613 def __sub__(*args
, **kwargs
):
3614 """__sub__(TimeSpan other) -> TimeSpan"""
3615 return _misc
.TimeSpan___sub__(*args
, **kwargs
)
3617 def __mul__(*args
, **kwargs
):
3618 """__mul__(int n) -> TimeSpan"""
3619 return _misc
.TimeSpan___mul__(*args
, **kwargs
)
3621 def __rmul__(*args
, **kwargs
):
3622 """__rmul__(int n) -> TimeSpan"""
3623 return _misc
.TimeSpan___rmul__(*args
, **kwargs
)
3625 def __lt__(*args
, **kwargs
):
3626 """__lt__(TimeSpan other) -> bool"""
3627 return _misc
.TimeSpan___lt__(*args
, **kwargs
)
3629 def __le__(*args
, **kwargs
):
3630 """__le__(TimeSpan other) -> bool"""
3631 return _misc
.TimeSpan___le__(*args
, **kwargs
)
3633 def __gt__(*args
, **kwargs
):
3634 """__gt__(TimeSpan other) -> bool"""
3635 return _misc
.TimeSpan___gt__(*args
, **kwargs
)
3637 def __ge__(*args
, **kwargs
):
3638 """__ge__(TimeSpan other) -> bool"""
3639 return _misc
.TimeSpan___ge__(*args
, **kwargs
)
3641 def __eq__(*args
, **kwargs
):
3642 """__eq__(TimeSpan other) -> bool"""
3643 return _misc
.TimeSpan___eq__(*args
, **kwargs
)
3645 def __ne__(*args
, **kwargs
):
3646 """__ne__(TimeSpan other) -> bool"""
3647 return _misc
.TimeSpan___ne__(*args
, **kwargs
)
3649 def IsNull(*args
, **kwargs
):
3650 """IsNull() -> bool"""
3651 return _misc
.TimeSpan_IsNull(*args
, **kwargs
)
3653 def IsPositive(*args
, **kwargs
):
3654 """IsPositive() -> bool"""
3655 return _misc
.TimeSpan_IsPositive(*args
, **kwargs
)
3657 def IsNegative(*args
, **kwargs
):
3658 """IsNegative() -> bool"""
3659 return _misc
.TimeSpan_IsNegative(*args
, **kwargs
)
3661 def IsEqualTo(*args
, **kwargs
):
3662 """IsEqualTo(TimeSpan ts) -> bool"""
3663 return _misc
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3665 def IsLongerThan(*args
, **kwargs
):
3666 """IsLongerThan(TimeSpan ts) -> bool"""
3667 return _misc
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3669 def IsShorterThan(*args
, **kwargs
):
3670 """IsShorterThan(TimeSpan t) -> bool"""
3671 return _misc
.TimeSpan_IsShorterThan(*args
, **kwargs
)
3673 def GetWeeks(*args
, **kwargs
):
3674 """GetWeeks() -> int"""
3675 return _misc
.TimeSpan_GetWeeks(*args
, **kwargs
)
3677 def GetDays(*args
, **kwargs
):
3678 """GetDays() -> int"""
3679 return _misc
.TimeSpan_GetDays(*args
, **kwargs
)
3681 def GetHours(*args
, **kwargs
):
3682 """GetHours() -> int"""
3683 return _misc
.TimeSpan_GetHours(*args
, **kwargs
)
3685 def GetMinutes(*args
, **kwargs
):
3686 """GetMinutes() -> int"""
3687 return _misc
.TimeSpan_GetMinutes(*args
, **kwargs
)
3689 def GetSeconds(*args
, **kwargs
):
3690 """GetSeconds() -> wxLongLong"""
3691 return _misc
.TimeSpan_GetSeconds(*args
, **kwargs
)
3693 def GetMilliseconds(*args
, **kwargs
):
3694 """GetMilliseconds() -> wxLongLong"""
3695 return _misc
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
3697 def Format(*args
, **kwargs
):
3698 """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString"""
3699 return _misc
.TimeSpan_Format(*args
, **kwargs
)
3702 return '<wxTimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3704 return self
.Format()
3707 class TimeSpanPtr(TimeSpan
):
3708 def __init__(self
, this
):
3710 if not hasattr(self
,"thisown"): self
.thisown
= 0
3711 self
.__class
__ = TimeSpan
3712 _misc
.TimeSpan_swigregister(TimeSpanPtr
)
3714 def TimeSpan_Seconds(*args
, **kwargs
):
3715 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3716 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3718 def TimeSpan_Second(*args
, **kwargs
):
3719 """TimeSpan_Second() -> TimeSpan"""
3720 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3722 def TimeSpan_Minutes(*args
, **kwargs
):
3723 """TimeSpan_Minutes(long min) -> TimeSpan"""
3724 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3726 def TimeSpan_Minute(*args
, **kwargs
):
3727 """TimeSpan_Minute() -> TimeSpan"""
3728 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3730 def TimeSpan_Hours(*args
, **kwargs
):
3731 """TimeSpan_Hours(long hours) -> TimeSpan"""
3732 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3734 def TimeSpan_Hour(*args
, **kwargs
):
3735 """TimeSpan_Hour() -> TimeSpan"""
3736 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3738 def TimeSpan_Days(*args
, **kwargs
):
3739 """TimeSpan_Days(long days) -> TimeSpan"""
3740 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3742 def TimeSpan_Day(*args
, **kwargs
):
3743 """TimeSpan_Day() -> TimeSpan"""
3744 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3746 def TimeSpan_Weeks(*args
, **kwargs
):
3747 """TimeSpan_Weeks(long days) -> TimeSpan"""
3748 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3750 def TimeSpan_Week(*args
, **kwargs
):
3751 """TimeSpan_Week() -> TimeSpan"""
3752 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3754 class DateSpan(object):
3756 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3757 def __init__(self
, *args
, **kwargs
):
3758 """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
3759 newobj
= _misc
.new_DateSpan(*args
, **kwargs
)
3760 self
.this
= newobj
.this
3763 def __del__(self
, destroy
=_misc
.delete_DateSpan
):
3766 if self
.thisown
: destroy(self
)
3769 def Days(*args
, **kwargs
):
3770 """DateSpan.Days(int days) -> DateSpan"""
3771 return _misc
.DateSpan_Days(*args
, **kwargs
)
3773 Days
= staticmethod(Days
)
3774 def Day(*args
, **kwargs
):
3775 """DateSpan.Day() -> DateSpan"""
3776 return _misc
.DateSpan_Day(*args
, **kwargs
)
3778 Day
= staticmethod(Day
)
3779 def Weeks(*args
, **kwargs
):
3780 """DateSpan.Weeks(int weeks) -> DateSpan"""
3781 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3783 Weeks
= staticmethod(Weeks
)
3784 def Week(*args
, **kwargs
):
3785 """DateSpan.Week() -> DateSpan"""
3786 return _misc
.DateSpan_Week(*args
, **kwargs
)
3788 Week
= staticmethod(Week
)
3789 def Months(*args
, **kwargs
):
3790 """DateSpan.Months(int mon) -> DateSpan"""
3791 return _misc
.DateSpan_Months(*args
, **kwargs
)
3793 Months
= staticmethod(Months
)
3794 def Month(*args
, **kwargs
):
3795 """DateSpan.Month() -> DateSpan"""
3796 return _misc
.DateSpan_Month(*args
, **kwargs
)
3798 Month
= staticmethod(Month
)
3799 def Years(*args
, **kwargs
):
3800 """DateSpan.Years(int years) -> DateSpan"""
3801 return _misc
.DateSpan_Years(*args
, **kwargs
)
3803 Years
= staticmethod(Years
)
3804 def Year(*args
, **kwargs
):
3805 """DateSpan.Year() -> DateSpan"""
3806 return _misc
.DateSpan_Year(*args
, **kwargs
)
3808 Year
= staticmethod(Year
)
3809 def SetYears(*args
, **kwargs
):
3810 """SetYears(int n) -> DateSpan"""
3811 return _misc
.DateSpan_SetYears(*args
, **kwargs
)
3813 def SetMonths(*args
, **kwargs
):
3814 """SetMonths(int n) -> DateSpan"""
3815 return _misc
.DateSpan_SetMonths(*args
, **kwargs
)
3817 def SetWeeks(*args
, **kwargs
):
3818 """SetWeeks(int n) -> DateSpan"""
3819 return _misc
.DateSpan_SetWeeks(*args
, **kwargs
)
3821 def SetDays(*args
, **kwargs
):
3822 """SetDays(int n) -> DateSpan"""
3823 return _misc
.DateSpan_SetDays(*args
, **kwargs
)
3825 def GetYears(*args
, **kwargs
):
3826 """GetYears() -> int"""
3827 return _misc
.DateSpan_GetYears(*args
, **kwargs
)
3829 def GetMonths(*args
, **kwargs
):
3830 """GetMonths() -> int"""
3831 return _misc
.DateSpan_GetMonths(*args
, **kwargs
)
3833 def GetWeeks(*args
, **kwargs
):
3834 """GetWeeks() -> int"""
3835 return _misc
.DateSpan_GetWeeks(*args
, **kwargs
)
3837 def GetDays(*args
, **kwargs
):
3838 """GetDays() -> int"""
3839 return _misc
.DateSpan_GetDays(*args
, **kwargs
)
3841 def GetTotalDays(*args
, **kwargs
):
3842 """GetTotalDays() -> int"""
3843 return _misc
.DateSpan_GetTotalDays(*args
, **kwargs
)
3845 def Add(*args
, **kwargs
):
3846 """Add(DateSpan other) -> DateSpan"""
3847 return _misc
.DateSpan_Add(*args
, **kwargs
)
3849 def Subtract(*args
, **kwargs
):
3850 """Subtract(DateSpan other) -> DateSpan"""
3851 return _misc
.DateSpan_Subtract(*args
, **kwargs
)
3853 def Neg(*args
, **kwargs
):
3854 """Neg() -> DateSpan"""
3855 return _misc
.DateSpan_Neg(*args
, **kwargs
)
3857 def Multiply(*args
, **kwargs
):
3858 """Multiply(int factor) -> DateSpan"""
3859 return _misc
.DateSpan_Multiply(*args
, **kwargs
)
3861 def __iadd__(*args
, **kwargs
):
3862 """__iadd__(DateSpan other) -> DateSpan"""
3863 return _misc
.DateSpan___iadd__(*args
, **kwargs
)
3865 def __isub__(*args
, **kwargs
):
3866 """__isub__(DateSpan other) -> DateSpan"""
3867 return _misc
.DateSpan___isub__(*args
, **kwargs
)
3869 def __neg__(*args
, **kwargs
):
3870 """__neg__() -> DateSpan"""
3871 return _misc
.DateSpan___neg__(*args
, **kwargs
)
3873 def __imul__(*args
, **kwargs
):
3874 """__imul__(int factor) -> DateSpan"""
3875 return _misc
.DateSpan___imul__(*args
, **kwargs
)
3877 def __add__(*args
, **kwargs
):
3878 """__add__(DateSpan other) -> DateSpan"""
3879 return _misc
.DateSpan___add__(*args
, **kwargs
)
3881 def __sub__(*args
, **kwargs
):
3882 """__sub__(DateSpan other) -> DateSpan"""
3883 return _misc
.DateSpan___sub__(*args
, **kwargs
)
3885 def __mul__(*args
, **kwargs
):
3886 """__mul__(int n) -> DateSpan"""
3887 return _misc
.DateSpan___mul__(*args
, **kwargs
)
3889 def __rmul__(*args
, **kwargs
):
3890 """__rmul__(int n) -> DateSpan"""
3891 return _misc
.DateSpan___rmul__(*args
, **kwargs
)
3893 def __eq__(*args
, **kwargs
):
3894 """__eq__(DateSpan other) -> bool"""
3895 return _misc
.DateSpan___eq__(*args
, **kwargs
)
3897 def __ne__(*args
, **kwargs
):
3898 """__ne__(DateSpan other) -> bool"""
3899 return _misc
.DateSpan___ne__(*args
, **kwargs
)
3902 class DateSpanPtr(DateSpan
):
3903 def __init__(self
, this
):
3905 if not hasattr(self
,"thisown"): self
.thisown
= 0
3906 self
.__class
__ = DateSpan
3907 _misc
.DateSpan_swigregister(DateSpanPtr
)
3909 def DateSpan_Days(*args
, **kwargs
):
3910 """DateSpan_Days(int days) -> DateSpan"""
3911 return _misc
.DateSpan_Days(*args
, **kwargs
)
3913 def DateSpan_Day(*args
, **kwargs
):
3914 """DateSpan_Day() -> DateSpan"""
3915 return _misc
.DateSpan_Day(*args
, **kwargs
)
3917 def DateSpan_Weeks(*args
, **kwargs
):
3918 """DateSpan_Weeks(int weeks) -> DateSpan"""
3919 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3921 def DateSpan_Week(*args
, **kwargs
):
3922 """DateSpan_Week() -> DateSpan"""
3923 return _misc
.DateSpan_Week(*args
, **kwargs
)
3925 def DateSpan_Months(*args
, **kwargs
):
3926 """DateSpan_Months(int mon) -> DateSpan"""
3927 return _misc
.DateSpan_Months(*args
, **kwargs
)
3929 def DateSpan_Month(*args
, **kwargs
):
3930 """DateSpan_Month() -> DateSpan"""
3931 return _misc
.DateSpan_Month(*args
, **kwargs
)
3933 def DateSpan_Years(*args
, **kwargs
):
3934 """DateSpan_Years(int years) -> DateSpan"""
3935 return _misc
.DateSpan_Years(*args
, **kwargs
)
3937 def DateSpan_Year(*args
, **kwargs
):
3938 """DateSpan_Year() -> DateSpan"""
3939 return _misc
.DateSpan_Year(*args
, **kwargs
)
3942 def GetLocalTime(*args
, **kwargs
):
3943 """GetLocalTime() -> long"""
3944 return _misc
.GetLocalTime(*args
, **kwargs
)
3946 def GetUTCTime(*args
, **kwargs
):
3947 """GetUTCTime() -> long"""
3948 return _misc
.GetUTCTime(*args
, **kwargs
)
3950 def GetCurrentTime(*args
, **kwargs
):
3951 """GetCurrentTime() -> long"""
3952 return _misc
.GetCurrentTime(*args
, **kwargs
)
3954 def GetLocalTimeMillis(*args
, **kwargs
):
3955 """GetLocalTimeMillis() -> wxLongLong"""
3956 return _misc
.GetLocalTimeMillis(*args
, **kwargs
)
3957 #---------------------------------------------------------------------------
3959 DF_INVALID
= _misc
.DF_INVALID
3960 DF_TEXT
= _misc
.DF_TEXT
3961 DF_BITMAP
= _misc
.DF_BITMAP
3962 DF_METAFILE
= _misc
.DF_METAFILE
3963 DF_SYLK
= _misc
.DF_SYLK
3964 DF_DIF
= _misc
.DF_DIF
3965 DF_TIFF
= _misc
.DF_TIFF
3966 DF_OEMTEXT
= _misc
.DF_OEMTEXT
3967 DF_DIB
= _misc
.DF_DIB
3968 DF_PALETTE
= _misc
.DF_PALETTE
3969 DF_PENDATA
= _misc
.DF_PENDATA
3970 DF_RIFF
= _misc
.DF_RIFF
3971 DF_WAVE
= _misc
.DF_WAVE
3972 DF_UNICODETEXT
= _misc
.DF_UNICODETEXT
3973 DF_ENHMETAFILE
= _misc
.DF_ENHMETAFILE
3974 DF_FILENAME
= _misc
.DF_FILENAME
3975 DF_LOCALE
= _misc
.DF_LOCALE
3976 DF_PRIVATE
= _misc
.DF_PRIVATE
3977 DF_HTML
= _misc
.DF_HTML
3978 DF_MAX
= _misc
.DF_MAX
3979 class DataFormat(object):
3981 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3982 def __init__(self
, *args
, **kwargs
):
3983 """__init__(wxDataFormatId type) -> DataFormat"""
3984 newobj
= _misc
.new_DataFormat(*args
, **kwargs
)
3985 self
.this
= newobj
.this
3988 def __del__(self
, destroy
=_misc
.delete_DataFormat
):
3991 if self
.thisown
: destroy(self
)
3996 __eq__(wxDataFormatId format) -> bool
3997 __eq__(DataFormat format) -> bool
3999 return _misc
.DataFormat___eq__(*args
)
4003 __ne__(wxDataFormatId format) -> bool
4004 __ne__(DataFormat format) -> bool
4006 return _misc
.DataFormat___ne__(*args
)
4008 def SetType(*args
, **kwargs
):
4009 """SetType(wxDataFormatId format)"""
4010 return _misc
.DataFormat_SetType(*args
, **kwargs
)
4012 def GetType(*args
, **kwargs
):
4013 """GetType() -> wxDataFormatId"""
4014 return _misc
.DataFormat_GetType(*args
, **kwargs
)
4016 def GetId(*args
, **kwargs
):
4017 """GetId() -> wxString"""
4018 return _misc
.DataFormat_GetId(*args
, **kwargs
)
4020 def SetId(*args
, **kwargs
):
4021 """SetId(wxString format)"""
4022 return _misc
.DataFormat_SetId(*args
, **kwargs
)
4025 class DataFormatPtr(DataFormat
):
4026 def __init__(self
, this
):
4028 if not hasattr(self
,"thisown"): self
.thisown
= 0
4029 self
.__class
__ = DataFormat
4030 _misc
.DataFormat_swigregister(DataFormatPtr
)
4032 def CustomDataFormat(*args
, **kwargs
):
4033 """CustomDataFormat(wxString format) -> DataFormat"""
4034 val
= _misc
.new_CustomDataFormat(*args
, **kwargs
)
4038 class DataObject(object):
4039 def __init__(self
): raise RuntimeError, "No constructor defined"
4041 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4042 Get
= _misc
.DataObject_Get
4043 Set
= _misc
.DataObject_Set
4044 Both
= _misc
.DataObject_Both
4045 def __del__(self
, destroy
=_misc
.delete_DataObject
):
4048 if self
.thisown
: destroy(self
)
4051 def GetPreferredFormat(*args
, **kwargs
):
4052 """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat"""
4053 return _misc
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4055 def GetFormatCount(*args
, **kwargs
):
4056 """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t"""
4057 return _misc
.DataObject_GetFormatCount(*args
, **kwargs
)
4059 def IsSupported(*args
, **kwargs
):
4060 """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool"""
4061 return _misc
.DataObject_IsSupported(*args
, **kwargs
)
4063 def GetDataSize(*args
, **kwargs
):
4064 """GetDataSize(DataFormat format) -> size_t"""
4065 return _misc
.DataObject_GetDataSize(*args
, **kwargs
)
4067 def GetAllFormats(*args
, **kwargs
):
4068 """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)"""
4069 return _misc
.DataObject_GetAllFormats(*args
, **kwargs
)
4071 def GetDataHere(*args
, **kwargs
):
4072 """GetDataHere(DataFormat format, void buf) -> bool"""
4073 return _misc
.DataObject_GetDataHere(*args
, **kwargs
)
4075 def SetData(*args
, **kwargs
):
4076 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4077 return _misc
.DataObject_SetData(*args
, **kwargs
)
4080 class DataObjectPtr(DataObject
):
4081 def __init__(self
, this
):
4083 if not hasattr(self
,"thisown"): self
.thisown
= 0
4084 self
.__class
__ = DataObject
4085 _misc
.DataObject_swigregister(DataObjectPtr
)
4086 FormatInvalid
= cvar
.FormatInvalid
4088 class DataObjectSimple(DataObject
):
4090 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4091 def __init__(self
, *args
, **kwargs
):
4092 """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple"""
4093 newobj
= _misc
.new_DataObjectSimple(*args
, **kwargs
)
4094 self
.this
= newobj
.this
4097 def GetFormat(*args
, **kwargs
):
4098 """GetFormat() -> DataFormat"""
4099 return _misc
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4101 def SetFormat(*args
, **kwargs
):
4102 """SetFormat(DataFormat format)"""
4103 return _misc
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4106 class DataObjectSimplePtr(DataObjectSimple
):
4107 def __init__(self
, this
):
4109 if not hasattr(self
,"thisown"): self
.thisown
= 0
4110 self
.__class
__ = DataObjectSimple
4111 _misc
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4113 class PyDataObjectSimple(DataObjectSimple
):
4115 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4116 def __init__(self
, *args
, **kwargs
):
4117 """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4118 newobj
= _misc
.new_PyDataObjectSimple(*args
, **kwargs
)
4119 self
.this
= newobj
.this
4122 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4124 def _setCallbackInfo(*args
, **kwargs
):
4125 """_setCallbackInfo(PyObject self, PyObject _class)"""
4126 return _misc
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4129 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4130 def __init__(self
, this
):
4132 if not hasattr(self
,"thisown"): self
.thisown
= 0
4133 self
.__class
__ = PyDataObjectSimple
4134 _misc
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4136 class DataObjectComposite(DataObject
):
4138 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4139 def __init__(self
, *args
, **kwargs
):
4140 """__init__() -> DataObjectComposite"""
4141 newobj
= _misc
.new_DataObjectComposite(*args
, **kwargs
)
4142 self
.this
= newobj
.this
4145 def Add(*args
, **kwargs
):
4146 """Add(DataObjectSimple dataObject, int preferred=False)"""
4147 val
= _misc
.DataObjectComposite_Add(*args
, **kwargs
)
4152 class DataObjectCompositePtr(DataObjectComposite
):
4153 def __init__(self
, this
):
4155 if not hasattr(self
,"thisown"): self
.thisown
= 0
4156 self
.__class
__ = DataObjectComposite
4157 _misc
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4159 class TextDataObject(DataObjectSimple
):
4161 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4162 def __init__(self
, *args
, **kwargs
):
4163 """__init__(wxString text=wxPyEmptyString) -> TextDataObject"""
4164 newobj
= _misc
.new_TextDataObject(*args
, **kwargs
)
4165 self
.this
= newobj
.this
4168 def GetTextLength(*args
, **kwargs
):
4169 """GetTextLength() -> size_t"""
4170 return _misc
.TextDataObject_GetTextLength(*args
, **kwargs
)
4172 def GetText(*args
, **kwargs
):
4173 """GetText() -> wxString"""
4174 return _misc
.TextDataObject_GetText(*args
, **kwargs
)
4176 def SetText(*args
, **kwargs
):
4177 """SetText(wxString text)"""
4178 return _misc
.TextDataObject_SetText(*args
, **kwargs
)
4181 class TextDataObjectPtr(TextDataObject
):
4182 def __init__(self
, this
):
4184 if not hasattr(self
,"thisown"): self
.thisown
= 0
4185 self
.__class
__ = TextDataObject
4186 _misc
.TextDataObject_swigregister(TextDataObjectPtr
)
4188 class PyTextDataObject(TextDataObject
):
4190 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4191 def __init__(self
, *args
, **kwargs
):
4192 """__init__(wxString text=wxPyEmptyString) -> PyTextDataObject"""
4193 newobj
= _misc
.new_PyTextDataObject(*args
, **kwargs
)
4194 self
.this
= newobj
.this
4197 self
._setCallbackInfo
(self
, PyTextDataObject
)
4199 def _setCallbackInfo(*args
, **kwargs
):
4200 """_setCallbackInfo(PyObject self, PyObject _class)"""
4201 return _misc
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4204 class PyTextDataObjectPtr(PyTextDataObject
):
4205 def __init__(self
, this
):
4207 if not hasattr(self
,"thisown"): self
.thisown
= 0
4208 self
.__class
__ = PyTextDataObject
4209 _misc
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4211 class BitmapDataObject(DataObjectSimple
):
4213 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4214 def __init__(self
, *args
, **kwargs
):
4215 """__init__(wxBitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4216 newobj
= _misc
.new_BitmapDataObject(*args
, **kwargs
)
4217 self
.this
= newobj
.this
4220 def GetBitmap(*args
, **kwargs
):
4221 """GetBitmap() -> wxBitmap"""
4222 return _misc
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4224 def SetBitmap(*args
, **kwargs
):
4225 """SetBitmap(wxBitmap bitmap)"""
4226 return _misc
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4229 class BitmapDataObjectPtr(BitmapDataObject
):
4230 def __init__(self
, this
):
4232 if not hasattr(self
,"thisown"): self
.thisown
= 0
4233 self
.__class
__ = BitmapDataObject
4234 _misc
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4236 class PyBitmapDataObject(BitmapDataObject
):
4238 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4239 def __init__(self
, *args
, **kwargs
):
4240 """__init__(wxBitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4241 newobj
= _misc
.new_PyBitmapDataObject(*args
, **kwargs
)
4242 self
.this
= newobj
.this
4245 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4247 def _setCallbackInfo(*args
, **kwargs
):
4248 """_setCallbackInfo(PyObject self, PyObject _class)"""
4249 return _misc
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4252 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4253 def __init__(self
, this
):
4255 if not hasattr(self
,"thisown"): self
.thisown
= 0
4256 self
.__class
__ = PyBitmapDataObject
4257 _misc
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4259 class FileDataObject(DataObjectSimple
):
4261 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4262 def __init__(self
, *args
, **kwargs
):
4263 """__init__() -> FileDataObject"""
4264 newobj
= _misc
.new_FileDataObject(*args
, **kwargs
)
4265 self
.this
= newobj
.this
4268 def GetFilenames(*args
, **kwargs
):
4269 """GetFilenames() -> wxArrayString"""
4270 return _misc
.FileDataObject_GetFilenames(*args
, **kwargs
)
4273 class FileDataObjectPtr(FileDataObject
):
4274 def __init__(self
, this
):
4276 if not hasattr(self
,"thisown"): self
.thisown
= 0
4277 self
.__class
__ = FileDataObject
4278 _misc
.FileDataObject_swigregister(FileDataObjectPtr
)
4280 class CustomDataObject(DataObjectSimple
):
4282 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4283 def __init__(self
, *args
, **kwargs
):
4284 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
4285 newobj
= _misc
.new_CustomDataObject(*args
, **kwargs
)
4286 self
.this
= newobj
.this
4289 def TakeData(*args
, **kwargs
):
4290 """TakeData(PyObject data)"""
4291 return _misc
.CustomDataObject_TakeData(*args
, **kwargs
)
4293 def SetData(*args
, **kwargs
):
4294 """SetData(PyObject data) -> bool"""
4295 return _misc
.CustomDataObject_SetData(*args
, **kwargs
)
4297 def GetSize(*args
, **kwargs
):
4298 """GetSize() -> size_t"""
4299 return _misc
.CustomDataObject_GetSize(*args
, **kwargs
)
4301 def GetData(*args
, **kwargs
):
4302 """GetData() -> PyObject"""
4303 return _misc
.CustomDataObject_GetData(*args
, **kwargs
)
4306 class CustomDataObjectPtr(CustomDataObject
):
4307 def __init__(self
, this
):
4309 if not hasattr(self
,"thisown"): self
.thisown
= 0
4310 self
.__class
__ = CustomDataObject
4311 _misc
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4313 class URLDataObject(DataObjectComposite
):
4315 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4316 def __init__(self
, *args
, **kwargs
):
4317 """__init__() -> URLDataObject"""
4318 newobj
= _misc
.new_URLDataObject(*args
, **kwargs
)
4319 self
.this
= newobj
.this
4322 def GetURL(*args
, **kwargs
):
4323 """GetURL() -> wxString"""
4324 return _misc
.URLDataObject_GetURL(*args
, **kwargs
)
4326 def SetURL(*args
, **kwargs
):
4327 """SetURL(wxString url)"""
4328 return _misc
.URLDataObject_SetURL(*args
, **kwargs
)
4331 class URLDataObjectPtr(URLDataObject
):
4332 def __init__(self
, this
):
4334 if not hasattr(self
,"thisown"): self
.thisown
= 0
4335 self
.__class
__ = URLDataObject
4336 _misc
.URLDataObject_swigregister(URLDataObjectPtr
)
4338 class MetafileDataObject(DataObjectSimple
):
4340 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4341 def __init__(self
, *args
, **kwargs
):
4342 """__init__() -> MetafileDataObject"""
4343 newobj
= _misc
.new_MetafileDataObject(*args
, **kwargs
)
4344 self
.this
= newobj
.this
4348 class MetafileDataObjectPtr(MetafileDataObject
):
4349 def __init__(self
, this
):
4351 if not hasattr(self
,"thisown"): self
.thisown
= 0
4352 self
.__class
__ = MetafileDataObject
4353 _misc
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4355 #---------------------------------------------------------------------------
4357 Drag_CopyOnly
= _misc
.Drag_CopyOnly
4358 Drag_AllowMove
= _misc
.Drag_AllowMove
4359 Drag_DefaultMove
= _misc
.Drag_DefaultMove
4360 DragError
= _misc
.DragError
4361 DragNone
= _misc
.DragNone
4362 DragCopy
= _misc
.DragCopy
4363 DragMove
= _misc
.DragMove
4364 DragLink
= _misc
.DragLink
4365 DragCancel
= _misc
.DragCancel
4367 def IsDragResultOk(*args
, **kwargs
):
4368 """IsDragResultOk(wxDragResult res) -> bool"""
4369 return _misc
.IsDragResultOk(*args
, **kwargs
)
4370 class DropSource(object):
4372 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4373 def __init__(self
, *args
, **kwargs
):
4375 __init__(Window win=None, wxIcon copy=wxNullIcon, wxIcon move=wxNullIcon,
4376 wxIcon none=wxNullIcon) -> DropSource
4378 newobj
= _misc
.new_DropSource(*args
, **kwargs
)
4379 self
.this
= newobj
.this
4382 def _setCallbackInfo(*args
, **kwargs
):
4383 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4384 return _misc
.DropSource__setCallbackInfo(*args
, **kwargs
)
4386 def __del__(self
, destroy
=_misc
.delete_DropSource
):
4389 if self
.thisown
: destroy(self
)
4392 def SetData(*args
, **kwargs
):
4393 """SetData(DataObject data)"""
4394 return _misc
.DropSource_SetData(*args
, **kwargs
)
4396 def GetDataObject(*args
, **kwargs
):
4397 """GetDataObject() -> DataObject"""
4398 return _misc
.DropSource_GetDataObject(*args
, **kwargs
)
4400 def SetCursor(*args
, **kwargs
):
4401 """SetCursor(wxDragResult res, wxCursor cursor)"""
4402 return _misc
.DropSource_SetCursor(*args
, **kwargs
)
4404 def DoDragDrop(*args
, **kwargs
):
4405 """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult"""
4406 return _misc
.DropSource_DoDragDrop(*args
, **kwargs
)
4408 def base_GiveFeedback(*args
, **kwargs
):
4409 """base_GiveFeedback(wxDragResult effect) -> bool"""
4410 return _misc
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4413 class DropSourcePtr(DropSource
):
4414 def __init__(self
, this
):
4416 if not hasattr(self
,"thisown"): self
.thisown
= 0
4417 self
.__class
__ = DropSource
4418 _misc
.DropSource_swigregister(DropSourcePtr
)
4420 class DropTarget(object):
4422 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4423 def __init__(self
, *args
, **kwargs
):
4424 """__init__(DataObject dataObject=None) -> DropTarget"""
4425 newobj
= _misc
.new_DropTarget(*args
, **kwargs
)
4426 self
.this
= newobj
.this
4429 if args
: args
[0].thisown
= 0;
4430 self
._setCallbackInfo
(self
, DropTarget
)
4432 def _setCallbackInfo(*args
, **kwargs
):
4433 """_setCallbackInfo(PyObject self, PyObject _class)"""
4434 return _misc
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4436 def __del__(self
, destroy
=_misc
.delete_DropTarget
):
4439 if self
.thisown
: destroy(self
)
4442 def GetDataObject(*args
, **kwargs
):
4443 """GetDataObject() -> DataObject"""
4444 return _misc
.DropTarget_GetDataObject(*args
, **kwargs
)
4446 def SetDataObject(*args
, **kwargs
):
4447 """SetDataObject(DataObject dataObject)"""
4448 val
= _misc
.DropTarget_SetDataObject(*args
, **kwargs
)
4452 def base_OnEnter(*args
, **kwargs
):
4453 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4454 return _misc
.DropTarget_base_OnEnter(*args
, **kwargs
)
4456 def base_OnDragOver(*args
, **kwargs
):
4457 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4458 return _misc
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4460 def base_OnLeave(*args
, **kwargs
):
4461 """base_OnLeave()"""
4462 return _misc
.DropTarget_base_OnLeave(*args
, **kwargs
)
4464 def base_OnDrop(*args
, **kwargs
):
4465 """base_OnDrop(int x, int y) -> bool"""
4466 return _misc
.DropTarget_base_OnDrop(*args
, **kwargs
)
4468 def GetData(*args
, **kwargs
):
4469 """GetData() -> bool"""
4470 return _misc
.DropTarget_GetData(*args
, **kwargs
)
4473 class DropTargetPtr(DropTarget
):
4474 def __init__(self
, this
):
4476 if not hasattr(self
,"thisown"): self
.thisown
= 0
4477 self
.__class
__ = DropTarget
4478 _misc
.DropTarget_swigregister(DropTargetPtr
)
4480 PyDropTarget
= DropTarget
4481 class TextDropTarget(DropTarget
):
4483 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4484 def __init__(self
, *args
, **kwargs
):
4485 """__init__() -> TextDropTarget"""
4486 newobj
= _misc
.new_TextDropTarget(*args
, **kwargs
)
4487 self
.this
= newobj
.this
4490 self
._setCallbackInfo
(self
, TextDropTarget
)
4492 def _setCallbackInfo(*args
, **kwargs
):
4493 """_setCallbackInfo(PyObject self, PyObject _class)"""
4494 return _misc
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4496 def base_OnEnter(*args
, **kwargs
):
4497 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4498 return _misc
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4500 def base_OnDragOver(*args
, **kwargs
):
4501 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4502 return _misc
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4504 def base_OnLeave(*args
, **kwargs
):
4505 """base_OnLeave()"""
4506 return _misc
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4508 def base_OnDrop(*args
, **kwargs
):
4509 """base_OnDrop(int x, int y) -> bool"""
4510 return _misc
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4512 def base_OnData(*args
, **kwargs
):
4513 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4514 return _misc
.TextDropTarget_base_OnData(*args
, **kwargs
)
4517 class TextDropTargetPtr(TextDropTarget
):
4518 def __init__(self
, this
):
4520 if not hasattr(self
,"thisown"): self
.thisown
= 0
4521 self
.__class
__ = TextDropTarget
4522 _misc
.TextDropTarget_swigregister(TextDropTargetPtr
)
4524 class FileDropTarget(DropTarget
):
4526 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4527 def __init__(self
, *args
, **kwargs
):
4528 """__init__() -> FileDropTarget"""
4529 newobj
= _misc
.new_FileDropTarget(*args
, **kwargs
)
4530 self
.this
= newobj
.this
4533 self
._setCallbackInfo
(self
, FileDropTarget
)
4535 def _setCallbackInfo(*args
, **kwargs
):
4536 """_setCallbackInfo(PyObject self, PyObject _class)"""
4537 return _misc
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
4539 def base_OnEnter(*args
, **kwargs
):
4540 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4541 return _misc
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
4543 def base_OnDragOver(*args
, **kwargs
):
4544 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4545 return _misc
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
4547 def base_OnLeave(*args
, **kwargs
):
4548 """base_OnLeave()"""
4549 return _misc
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
4551 def base_OnDrop(*args
, **kwargs
):
4552 """base_OnDrop(int x, int y) -> bool"""
4553 return _misc
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
4555 def base_OnData(*args
, **kwargs
):
4556 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4557 return _misc
.FileDropTarget_base_OnData(*args
, **kwargs
)
4560 class FileDropTargetPtr(FileDropTarget
):
4561 def __init__(self
, this
):
4563 if not hasattr(self
,"thisown"): self
.thisown
= 0
4564 self
.__class
__ = FileDropTarget
4565 _misc
.FileDropTarget_swigregister(FileDropTargetPtr
)
4567 #---------------------------------------------------------------------------
4569 class Clipboard(core
.Object
):
4571 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4572 def __init__(self
, *args
, **kwargs
):
4573 """__init__() -> Clipboard"""
4574 newobj
= _misc
.new_Clipboard(*args
, **kwargs
)
4575 self
.this
= newobj
.this
4578 def __del__(self
, destroy
=_misc
.delete_Clipboard
):
4581 if self
.thisown
: destroy(self
)
4584 def Open(*args
, **kwargs
):
4585 """Open() -> bool"""
4586 return _misc
.Clipboard_Open(*args
, **kwargs
)
4588 def Close(*args
, **kwargs
):
4590 return _misc
.Clipboard_Close(*args
, **kwargs
)
4592 def IsOpened(*args
, **kwargs
):
4593 """IsOpened() -> bool"""
4594 return _misc
.Clipboard_IsOpened(*args
, **kwargs
)
4596 def AddData(*args
, **kwargs
):
4597 """AddData(DataObject data) -> bool"""
4598 return _misc
.Clipboard_AddData(*args
, **kwargs
)
4600 def SetData(*args
, **kwargs
):
4601 """SetData(DataObject data) -> bool"""
4602 return _misc
.Clipboard_SetData(*args
, **kwargs
)
4604 def IsSupported(*args
, **kwargs
):
4605 """IsSupported(DataFormat format) -> bool"""
4606 return _misc
.Clipboard_IsSupported(*args
, **kwargs
)
4608 def GetData(*args
, **kwargs
):
4609 """GetData(DataObject data) -> bool"""
4610 return _misc
.Clipboard_GetData(*args
, **kwargs
)
4612 def Clear(*args
, **kwargs
):
4614 return _misc
.Clipboard_Clear(*args
, **kwargs
)
4616 def Flush(*args
, **kwargs
):
4617 """Flush() -> bool"""
4618 return _misc
.Clipboard_Flush(*args
, **kwargs
)
4620 def UsePrimarySelection(*args
, **kwargs
):
4621 """UsePrimarySelection(bool primary=False)"""
4622 return _misc
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
4625 class ClipboardPtr(Clipboard
):
4626 def __init__(self
, this
):
4628 if not hasattr(self
,"thisown"): self
.thisown
= 0
4629 self
.__class
__ = Clipboard
4630 _misc
.Clipboard_swigregister(ClipboardPtr
)
4632 class ClipboardLocker(object):
4634 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4635 def __init__(self
, *args
, **kwargs
):
4636 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
4637 newobj
= _misc
.new_ClipboardLocker(*args
, **kwargs
)
4638 self
.this
= newobj
.this
4641 def __del__(self
, destroy
=_misc
.delete_ClipboardLocker
):
4644 if self
.thisown
: destroy(self
)
4647 def __nonzero__(*args
, **kwargs
):
4648 """__nonzero__() -> bool"""
4649 return _misc
.ClipboardLocker___nonzero__(*args
, **kwargs
)
4652 class ClipboardLockerPtr(ClipboardLocker
):
4653 def __init__(self
, this
):
4655 if not hasattr(self
,"thisown"): self
.thisown
= 0
4656 self
.__class
__ = ClipboardLocker
4657 _misc
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
4658 TheClipboard
= cvar
.TheClipboard