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):
103 def __init__(self
): raise RuntimeError, "No constructor defined"
105 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
106 def GetColour(*args
, **kwargs
):
107 """SystemSettings.GetColour(wxSystemColour index) -> wxColour"""
108 return _misc
.SystemSettings_GetColour(*args
, **kwargs
)
110 GetColour
= staticmethod(GetColour
)
111 def GetFont(*args
, **kwargs
):
112 """SystemSettings.GetFont(wxSystemFont index) -> wxFont"""
113 return _misc
.SystemSettings_GetFont(*args
, **kwargs
)
115 GetFont
= staticmethod(GetFont
)
116 def GetMetric(*args
, **kwargs
):
117 """SystemSettings.GetMetric(wxSystemMetric index) -> int"""
118 return _misc
.SystemSettings_GetMetric(*args
, **kwargs
)
120 GetMetric
= staticmethod(GetMetric
)
121 def HasFeature(*args
, **kwargs
):
122 """SystemSettings.HasFeature(wxSystemFeature index) -> bool"""
123 return _misc
.SystemSettings_HasFeature(*args
, **kwargs
)
125 HasFeature
= staticmethod(HasFeature
)
126 def GetScreenType(*args
, **kwargs
):
127 """SystemSettings.GetScreenType() -> wxSystemScreenType"""
128 return _misc
.SystemSettings_GetScreenType(*args
, **kwargs
)
130 GetScreenType
= staticmethod(GetScreenType
)
131 def SetScreenType(*args
, **kwargs
):
132 """SystemSettings.SetScreenType(wxSystemScreenType screen)"""
133 return _misc
.SystemSettings_SetScreenType(*args
, **kwargs
)
135 SetScreenType
= staticmethod(SetScreenType
)
137 class SystemSettingsPtr(SystemSettings
):
138 def __init__(self
, this
):
140 if not hasattr(self
,"thisown"): self
.thisown
= 0
141 self
.__class
__ = SystemSettings
142 _misc
.SystemSettings_swigregister(SystemSettingsPtr
)
144 def SystemSettings_GetColour(*args
, **kwargs
):
145 """SystemSettings_GetColour(wxSystemColour index) -> wxColour"""
146 return _misc
.SystemSettings_GetColour(*args
, **kwargs
)
148 def SystemSettings_GetFont(*args
, **kwargs
):
149 """SystemSettings_GetFont(wxSystemFont index) -> wxFont"""
150 return _misc
.SystemSettings_GetFont(*args
, **kwargs
)
152 def SystemSettings_GetMetric(*args
, **kwargs
):
153 """SystemSettings_GetMetric(wxSystemMetric index) -> int"""
154 return _misc
.SystemSettings_GetMetric(*args
, **kwargs
)
156 def SystemSettings_HasFeature(*args
, **kwargs
):
157 """SystemSettings_HasFeature(wxSystemFeature index) -> bool"""
158 return _misc
.SystemSettings_HasFeature(*args
, **kwargs
)
160 def SystemSettings_GetScreenType(*args
, **kwargs
):
161 """SystemSettings_GetScreenType() -> wxSystemScreenType"""
162 return _misc
.SystemSettings_GetScreenType(*args
, **kwargs
)
164 def SystemSettings_SetScreenType(*args
, **kwargs
):
165 """SystemSettings_SetScreenType(wxSystemScreenType screen)"""
166 return _misc
.SystemSettings_SetScreenType(*args
, **kwargs
)
168 class SystemOptions(core
.Object
):
171 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
172 def __init__(self
, *args
, **kwargs
):
173 """__init__() -> SystemOptions"""
174 newobj
= _misc
.new_SystemOptions(*args
, **kwargs
)
175 self
.this
= newobj
.this
178 def SetOption(*args
, **kwargs
):
179 """SystemOptions.SetOption(wxString name, wxString value)"""
180 return _misc
.SystemOptions_SetOption(*args
, **kwargs
)
182 SetOption
= staticmethod(SetOption
)
183 def SetOptionInt(*args
, **kwargs
):
184 """SystemOptions.SetOptionInt(wxString name, int value)"""
185 return _misc
.SystemOptions_SetOptionInt(*args
, **kwargs
)
187 SetOptionInt
= staticmethod(SetOptionInt
)
188 def GetOption(*args
, **kwargs
):
189 """SystemOptions.GetOption(wxString name) -> wxString"""
190 return _misc
.SystemOptions_GetOption(*args
, **kwargs
)
192 GetOption
= staticmethod(GetOption
)
193 def GetOptionInt(*args
, **kwargs
):
194 """SystemOptions.GetOptionInt(wxString name) -> int"""
195 return _misc
.SystemOptions_GetOptionInt(*args
, **kwargs
)
197 GetOptionInt
= staticmethod(GetOptionInt
)
198 def HasOption(*args
, **kwargs
):
199 """SystemOptions.HasOption(wxString name) -> bool"""
200 return _misc
.SystemOptions_HasOption(*args
, **kwargs
)
202 HasOption
= staticmethod(HasOption
)
204 class SystemOptionsPtr(SystemOptions
):
205 def __init__(self
, this
):
207 if not hasattr(self
,"thisown"): self
.thisown
= 0
208 self
.__class
__ = SystemOptions
209 _misc
.SystemOptions_swigregister(SystemOptionsPtr
)
211 def SystemOptions_SetOption(*args
, **kwargs
):
212 """SystemOptions_SetOption(wxString name, wxString value)"""
213 return _misc
.SystemOptions_SetOption(*args
, **kwargs
)
215 def SystemOptions_SetOptionInt(*args
, **kwargs
):
216 """SystemOptions_SetOptionInt(wxString name, int value)"""
217 return _misc
.SystemOptions_SetOptionInt(*args
, **kwargs
)
219 def SystemOptions_GetOption(*args
, **kwargs
):
220 """SystemOptions_GetOption(wxString name) -> wxString"""
221 return _misc
.SystemOptions_GetOption(*args
, **kwargs
)
223 def SystemOptions_GetOptionInt(*args
, **kwargs
):
224 """SystemOptions_GetOptionInt(wxString name) -> int"""
225 return _misc
.SystemOptions_GetOptionInt(*args
, **kwargs
)
227 def SystemOptions_HasOption(*args
, **kwargs
):
228 """SystemOptions_HasOption(wxString name) -> bool"""
229 return _misc
.SystemOptions_HasOption(*args
, **kwargs
)
231 #---------------------------------------------------------------------------
234 def NewId(*args
, **kwargs
):
235 """NewId() -> long"""
236 return _misc
.NewId(*args
, **kwargs
)
238 def RegisterId(*args
, **kwargs
):
239 """RegisterId(long id)"""
240 return _misc
.RegisterId(*args
, **kwargs
)
242 def GetCurrentId(*args
, **kwargs
):
243 """GetCurrentId() -> long"""
244 return _misc
.GetCurrentId(*args
, **kwargs
)
246 def Bell(*args
, **kwargs
):
248 return _misc
.Bell(*args
, **kwargs
)
250 def EndBusyCursor(*args
, **kwargs
):
251 """EndBusyCursor()"""
252 return _misc
.EndBusyCursor(*args
, **kwargs
)
254 def GetElapsedTime(*args
, **kwargs
):
255 """GetElapsedTime(bool resetTimer=True) -> long"""
256 return _misc
.GetElapsedTime(*args
, **kwargs
)
258 def GetMousePosition(*args
, **kwargs
):
259 """GetMousePosition() -> (x,y)"""
260 return _misc
.GetMousePosition(*args
, **kwargs
)
262 def IsBusy(*args
, **kwargs
):
263 """IsBusy() -> bool"""
264 return _misc
.IsBusy(*args
, **kwargs
)
266 def Now(*args
, **kwargs
):
267 """Now() -> wxString"""
268 return _misc
.Now(*args
, **kwargs
)
270 def Shell(*args
, **kwargs
):
271 """Shell(wxString command=wxPyEmptyString) -> bool"""
272 return _misc
.Shell(*args
, **kwargs
)
274 def StartTimer(*args
, **kwargs
):
276 return _misc
.StartTimer(*args
, **kwargs
)
278 def GetOsVersion(*args
, **kwargs
):
279 """GetOsVersion() -> (platform, major, minor)"""
280 return _misc
.GetOsVersion(*args
, **kwargs
)
282 def GetOsDescription(*args
, **kwargs
):
283 """GetOsDescription() -> wxString"""
284 return _misc
.GetOsDescription(*args
, **kwargs
)
286 def GetFreeMemory(*args
, **kwargs
):
287 """GetFreeMemory() -> long"""
288 return _misc
.GetFreeMemory(*args
, **kwargs
)
289 SHUTDOWN_POWEROFF
= _misc
.SHUTDOWN_POWEROFF
290 SHUTDOWN_REBOOT
= _misc
.SHUTDOWN_REBOOT
292 def Shutdown(*args
, **kwargs
):
293 """Shutdown(wxShutdownFlags wFlags) -> bool"""
294 return _misc
.Shutdown(*args
, **kwargs
)
296 def Sleep(*args
, **kwargs
):
297 """Sleep(int secs)"""
298 return _misc
.Sleep(*args
, **kwargs
)
300 def Usleep(*args
, **kwargs
):
301 """Usleep(unsigned long milliseconds)"""
302 return _misc
.Usleep(*args
, **kwargs
)
304 def EnableTopLevelWindows(*args
, **kwargs
):
305 """EnableTopLevelWindows(bool enable)"""
306 return _misc
.EnableTopLevelWindows(*args
, **kwargs
)
308 def StripMenuCodes(*args
, **kwargs
):
309 """StripMenuCodes(wxString in) -> wxString"""
310 return _misc
.StripMenuCodes(*args
, **kwargs
)
312 def GetEmailAddress(*args
, **kwargs
):
313 """GetEmailAddress() -> wxString"""
314 return _misc
.GetEmailAddress(*args
, **kwargs
)
316 def GetHostName(*args
, **kwargs
):
317 """GetHostName() -> wxString"""
318 return _misc
.GetHostName(*args
, **kwargs
)
320 def GetFullHostName(*args
, **kwargs
):
321 """GetFullHostName() -> wxString"""
322 return _misc
.GetFullHostName(*args
, **kwargs
)
324 def GetUserId(*args
, **kwargs
):
325 """GetUserId() -> wxString"""
326 return _misc
.GetUserId(*args
, **kwargs
)
328 def GetUserName(*args
, **kwargs
):
329 """GetUserName() -> wxString"""
330 return _misc
.GetUserName(*args
, **kwargs
)
332 def GetHomeDir(*args
, **kwargs
):
333 """GetHomeDir() -> wxString"""
334 return _misc
.GetHomeDir(*args
, **kwargs
)
336 def GetUserHome(*args
, **kwargs
):
337 """GetUserHome(wxString user=wxPyEmptyString) -> wxString"""
338 return _misc
.GetUserHome(*args
, **kwargs
)
340 def GetProcessId(*args
, **kwargs
):
341 """GetProcessId() -> unsigned long"""
342 return _misc
.GetProcessId(*args
, **kwargs
)
344 def Trap(*args
, **kwargs
):
346 return _misc
.Trap(*args
, **kwargs
)
348 def FileSelector(*args
, **kwargs
):
349 """FileSelector(wxString message=wxPyFileSelectorPromptStr, wxString default_path=wxPyEmptyString,
350 wxString default_filename=wxPyEmptyString,
351 wxString default_extension=wxPyEmptyString,
352 wxString wildcard=wxPyFileSelectorDefaultWildcardStr,
354 Window parent=None, int x=-1, int y=-1) -> wxString"""
355 return _misc
.FileSelector(*args
, **kwargs
)
357 def LoadFileSelector(*args
, **kwargs
):
358 """LoadFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
359 Window parent=None) -> wxString"""
360 return _misc
.LoadFileSelector(*args
, **kwargs
)
362 def SaveFileSelector(*args
, **kwargs
):
363 """SaveFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
364 Window parent=None) -> wxString"""
365 return _misc
.SaveFileSelector(*args
, **kwargs
)
367 def DirSelector(*args
, **kwargs
):
368 """DirSelector(wxString message=wxPyDirSelectorPromptStr, wxString defaultPath=wxPyEmptyString,
369 long style=DD_DEFAULT_STYLE,
370 Point pos=DefaultPosition, Window parent=None) -> wxString"""
371 return _misc
.DirSelector(*args
, **kwargs
)
373 def GetTextFromUser(*args
, **kwargs
):
374 """GetTextFromUser(wxString message, wxString caption=wxPyEmptyString,
375 wxString default_value=wxPyEmptyString, Window parent=None,
376 int x=-1, int y=-1, bool centre=True) -> wxString"""
377 return _misc
.GetTextFromUser(*args
, **kwargs
)
379 def GetPasswordFromUser(*args
, **kwargs
):
380 """GetPasswordFromUser(wxString message, wxString caption=wxPyEmptyString,
381 wxString default_value=wxPyEmptyString, Window parent=None) -> wxString"""
382 return _misc
.GetPasswordFromUser(*args
, **kwargs
)
384 def GetSingleChoice(*args
, **kwargs
):
385 """GetSingleChoice(wxString message, wxString caption, int choices, wxString choices_array,
386 Window parent=None, int x=-1,
387 int y=-1, bool centre=True, int width=150,
388 int height=200) -> wxString"""
389 return _misc
.GetSingleChoice(*args
, **kwargs
)
391 def GetSingleChoiceIndex(*args
, **kwargs
):
392 """GetSingleChoiceIndex(wxString message, wxString caption, int choices, wxString choices_array,
393 Window parent=None, int x=-1,
394 int y=-1, bool centre=True, int width=150,
395 int height=200) -> int"""
396 return _misc
.GetSingleChoiceIndex(*args
, **kwargs
)
398 def MessageBox(*args
, **kwargs
):
399 """MessageBox(wxString message, wxString caption=wxPyEmptyString,
400 int style=wxOK|wxCENTRE, Window parent=None,
401 int x=-1, int y=-1) -> int"""
402 return _misc
.MessageBox(*args
, **kwargs
)
404 def GetNumberFromUser(*args
, **kwargs
):
405 """GetNumberFromUser(wxString message, wxString prompt, wxString caption,
406 long value, long min=0, long max=100, Window parent=None,
407 Point pos=DefaultPosition) -> long"""
408 return _misc
.GetNumberFromUser(*args
, **kwargs
)
410 def ColourDisplay(*args
, **kwargs
):
411 """ColourDisplay() -> bool"""
412 return _misc
.ColourDisplay(*args
, **kwargs
)
414 def DisplayDepth(*args
, **kwargs
):
415 """DisplayDepth() -> int"""
416 return _misc
.DisplayDepth(*args
, **kwargs
)
418 def GetDisplayDepth(*args
, **kwargs
):
419 """GetDisplayDepth() -> int"""
420 return _misc
.GetDisplayDepth(*args
, **kwargs
)
422 def DisplaySize(*args
, **kwargs
):
423 """DisplaySize() -> (width, height)"""
424 return _misc
.DisplaySize(*args
, **kwargs
)
426 def GetDisplaySize(*args
, **kwargs
):
427 """GetDisplaySize() -> Size"""
428 return _misc
.GetDisplaySize(*args
, **kwargs
)
430 def DisplaySizeMM(*args
, **kwargs
):
431 """DisplaySizeMM() -> (width, height)"""
432 return _misc
.DisplaySizeMM(*args
, **kwargs
)
434 def GetDisplaySizeMM(*args
, **kwargs
):
435 """GetDisplaySizeMM() -> Size"""
436 return _misc
.GetDisplaySizeMM(*args
, **kwargs
)
438 def ClientDisplayRect(*args
, **kwargs
):
439 """ClientDisplayRect() -> (x, y, width, height)"""
440 return _misc
.ClientDisplayRect(*args
, **kwargs
)
442 def GetClientDisplayRect(*args
, **kwargs
):
443 """GetClientDisplayRect() -> Rect"""
444 return _misc
.GetClientDisplayRect(*args
, **kwargs
)
446 def SetCursor(*args
, **kwargs
):
447 """SetCursor(wxCursor cursor)"""
448 return _misc
.SetCursor(*args
, **kwargs
)
450 def BeginBusyCursor(*args
, **kwargs
):
451 """BeginBusyCursor(wxCursor cursor=wxHOURGLASS_CURSOR)"""
452 return _misc
.BeginBusyCursor(*args
, **kwargs
)
454 def GetActiveWindow(*args
, **kwargs
):
455 """GetActiveWindow() -> Window"""
456 return _misc
.GetActiveWindow(*args
, **kwargs
)
458 def GenericFindWindowAtPoint(*args
, **kwargs
):
459 """GenericFindWindowAtPoint(Point pt) -> Window"""
460 return _misc
.GenericFindWindowAtPoint(*args
, **kwargs
)
462 def FindWindowAtPoint(*args
, **kwargs
):
463 """FindWindowAtPoint(Point pt) -> Window"""
464 return _misc
.FindWindowAtPoint(*args
, **kwargs
)
466 def GetTopLevelParent(*args
, **kwargs
):
467 """GetTopLevelParent(Window win) -> Window"""
468 return _misc
.GetTopLevelParent(*args
, **kwargs
)
470 def WakeUpMainThread(*args
, **kwargs
):
471 """WakeUpMainThread()"""
472 return _misc
.WakeUpMainThread(*args
, **kwargs
)
474 def MutexGuiEnter(*args
, **kwargs
):
475 """MutexGuiEnter()"""
476 return _misc
.MutexGuiEnter(*args
, **kwargs
)
478 def MutexGuiLeave(*args
, **kwargs
):
479 """MutexGuiLeave()"""
480 return _misc
.MutexGuiLeave(*args
, **kwargs
)
481 class MutexGuiLocker(object):
484 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
485 def __init__(self
, *args
, **kwargs
):
486 """__init__() -> MutexGuiLocker"""
487 newobj
= _misc
.new_MutexGuiLocker(*args
, **kwargs
)
488 self
.this
= newobj
.this
491 def __del__(self
, destroy
=_misc
.delete_MutexGuiLocker
):
494 if self
.thisown
: destroy(self
)
498 class MutexGuiLockerPtr(MutexGuiLocker
):
499 def __init__(self
, this
):
501 if not hasattr(self
,"thisown"): self
.thisown
= 0
502 self
.__class
__ = MutexGuiLocker
503 _misc
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
506 def Thread_IsMain(*args
, **kwargs
):
507 """Thread_IsMain() -> bool"""
508 return _misc
.Thread_IsMain(*args
, **kwargs
)
509 #---------------------------------------------------------------------------
511 class ToolTip(core
.Object
):
514 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
515 def __init__(self
, *args
, **kwargs
):
516 """__init__(wxString tip) -> ToolTip"""
517 newobj
= _misc
.new_ToolTip(*args
, **kwargs
)
518 self
.this
= newobj
.this
521 def SetTip(*args
, **kwargs
):
522 """SetTip(wxString tip)"""
523 return _misc
.ToolTip_SetTip(*args
, **kwargs
)
525 def GetTip(*args
, **kwargs
):
526 """GetTip() -> wxString"""
527 return _misc
.ToolTip_GetTip(*args
, **kwargs
)
529 def GetWindow(*args
, **kwargs
):
530 """GetWindow() -> Window"""
531 return _misc
.ToolTip_GetWindow(*args
, **kwargs
)
533 def Enable(*args
, **kwargs
):
534 """ToolTip.Enable(bool flag)"""
535 return _misc
.ToolTip_Enable(*args
, **kwargs
)
537 Enable
= staticmethod(Enable
)
538 def SetDelay(*args
, **kwargs
):
539 """ToolTip.SetDelay(long milliseconds)"""
540 return _misc
.ToolTip_SetDelay(*args
, **kwargs
)
542 SetDelay
= staticmethod(SetDelay
)
544 class ToolTipPtr(ToolTip
):
545 def __init__(self
, this
):
547 if not hasattr(self
,"thisown"): self
.thisown
= 0
548 self
.__class
__ = ToolTip
549 _misc
.ToolTip_swigregister(ToolTipPtr
)
551 def ToolTip_Enable(*args
, **kwargs
):
552 """ToolTip_Enable(bool flag)"""
553 return _misc
.ToolTip_Enable(*args
, **kwargs
)
555 def ToolTip_SetDelay(*args
, **kwargs
):
556 """ToolTip_SetDelay(long milliseconds)"""
557 return _misc
.ToolTip_SetDelay(*args
, **kwargs
)
562 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
563 def __init__(self
, *args
, **kwargs
):
564 """__init__(Window window, Size size) -> Caret"""
565 newobj
= _misc
.new_Caret(*args
, **kwargs
)
566 self
.this
= newobj
.this
569 def __del__(self
, destroy
=_misc
.delete_Caret
):
572 if self
.thisown
: destroy(self
)
575 def IsOk(*args
, **kwargs
):
577 return _misc
.Caret_IsOk(*args
, **kwargs
)
579 def IsVisible(*args
, **kwargs
):
580 """IsVisible() -> bool"""
581 return _misc
.Caret_IsVisible(*args
, **kwargs
)
583 def GetPosition(*args
, **kwargs
):
584 """GetPosition() -> Point"""
585 return _misc
.Caret_GetPosition(*args
, **kwargs
)
587 def GetPositionTuple(*args
, **kwargs
):
588 """GetPositionTuple() -> (x,y)"""
589 return _misc
.Caret_GetPositionTuple(*args
, **kwargs
)
591 def GetSize(*args
, **kwargs
):
592 """GetSize() -> Size"""
593 return _misc
.Caret_GetSize(*args
, **kwargs
)
595 def GetSizeTuple(*args
, **kwargs
):
596 """GetSizeTuple() -> (width, height)"""
597 return _misc
.Caret_GetSizeTuple(*args
, **kwargs
)
599 def GetWindow(*args
, **kwargs
):
600 """GetWindow() -> Window"""
601 return _misc
.Caret_GetWindow(*args
, **kwargs
)
603 def MoveXY(*args
, **kwargs
):
604 """MoveXY(int x, int y)"""
605 return _misc
.Caret_MoveXY(*args
, **kwargs
)
607 def Move(*args
, **kwargs
):
609 return _misc
.Caret_Move(*args
, **kwargs
)
611 def SetSizeWH(*args
, **kwargs
):
612 """SetSizeWH(int width, int height)"""
613 return _misc
.Caret_SetSizeWH(*args
, **kwargs
)
615 def SetSize(*args
, **kwargs
):
616 """SetSize(Size size)"""
617 return _misc
.Caret_SetSize(*args
, **kwargs
)
619 def Show(*args
, **kwargs
):
620 """Show(int show=True)"""
621 return _misc
.Caret_Show(*args
, **kwargs
)
623 def Hide(*args
, **kwargs
):
625 return _misc
.Caret_Hide(*args
, **kwargs
)
627 def __nonzero__(self
): return self
.IsOk()
629 class CaretPtr(Caret
):
630 def __init__(self
, this
):
632 if not hasattr(self
,"thisown"): self
.thisown
= 0
633 self
.__class
__ = Caret
634 _misc
.Caret_swigregister(CaretPtr
)
637 def Caret_GetBlinkTime(*args
, **kwargs
):
638 """Caret_GetBlinkTime() -> int"""
639 return _misc
.Caret_GetBlinkTime(*args
, **kwargs
)
641 def Caret_SetBlinkTime(*args
, **kwargs
):
642 """Caret_SetBlinkTime(int milliseconds)"""
643 return _misc
.Caret_SetBlinkTime(*args
, **kwargs
)
644 class BusyCursor(object):
647 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
648 def __init__(self
, *args
, **kwargs
):
649 """__init__(wxCursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
650 newobj
= _misc
.new_BusyCursor(*args
, **kwargs
)
651 self
.this
= newobj
.this
654 def __del__(self
, destroy
=_misc
.delete_BusyCursor
):
657 if self
.thisown
: destroy(self
)
661 class BusyCursorPtr(BusyCursor
):
662 def __init__(self
, this
):
664 if not hasattr(self
,"thisown"): self
.thisown
= 0
665 self
.__class
__ = BusyCursor
666 _misc
.BusyCursor_swigregister(BusyCursorPtr
)
668 class WindowDisabler(object):
671 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
672 def __init__(self
, *args
, **kwargs
):
673 """__init__(Window winToSkip=None) -> WindowDisabler"""
674 newobj
= _misc
.new_WindowDisabler(*args
, **kwargs
)
675 self
.this
= newobj
.this
678 def __del__(self
, destroy
=_misc
.delete_WindowDisabler
):
681 if self
.thisown
: destroy(self
)
685 class WindowDisablerPtr(WindowDisabler
):
686 def __init__(self
, this
):
688 if not hasattr(self
,"thisown"): self
.thisown
= 0
689 self
.__class
__ = WindowDisabler
690 _misc
.WindowDisabler_swigregister(WindowDisablerPtr
)
692 class BusyInfo(core
.Object
):
695 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
696 def __init__(self
, *args
, **kwargs
):
697 """__init__(wxString message) -> BusyInfo"""
698 newobj
= _misc
.new_BusyInfo(*args
, **kwargs
)
699 self
.this
= newobj
.this
702 def __del__(self
, destroy
=_misc
.delete_BusyInfo
):
705 if self
.thisown
: destroy(self
)
709 class BusyInfoPtr(BusyInfo
):
710 def __init__(self
, this
):
712 if not hasattr(self
,"thisown"): self
.thisown
= 0
713 self
.__class
__ = BusyInfo
714 _misc
.BusyInfo_swigregister(BusyInfoPtr
)
716 class StopWatch(object):
719 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
720 def __init__(self
, *args
, **kwargs
):
721 """__init__() -> StopWatch"""
722 newobj
= _misc
.new_StopWatch(*args
, **kwargs
)
723 self
.this
= newobj
.this
726 def Start(*args
, **kwargs
):
727 """Start(long t0=0)"""
728 return _misc
.StopWatch_Start(*args
, **kwargs
)
730 def Pause(*args
, **kwargs
):
732 return _misc
.StopWatch_Pause(*args
, **kwargs
)
734 def Resume(*args
, **kwargs
):
736 return _misc
.StopWatch_Resume(*args
, **kwargs
)
738 def Time(*args
, **kwargs
):
740 return _misc
.StopWatch_Time(*args
, **kwargs
)
743 class StopWatchPtr(StopWatch
):
744 def __init__(self
, this
):
746 if not hasattr(self
,"thisown"): self
.thisown
= 0
747 self
.__class
__ = StopWatch
748 _misc
.StopWatch_swigregister(StopWatchPtr
)
750 class FileHistory(core
.Object
):
753 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
754 def __init__(self
, *args
, **kwargs
):
755 """__init__(int maxFiles=9) -> FileHistory"""
756 newobj
= _misc
.new_FileHistory(*args
, **kwargs
)
757 self
.this
= newobj
.this
760 def __del__(self
, destroy
=_misc
.delete_FileHistory
):
763 if self
.thisown
: destroy(self
)
766 def AddFileToHistory(*args
, **kwargs
):
767 """AddFileToHistory(wxString file)"""
768 return _misc
.FileHistory_AddFileToHistory(*args
, **kwargs
)
770 def RemoveFileFromHistory(*args
, **kwargs
):
771 """RemoveFileFromHistory(int i)"""
772 return _misc
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
774 def GetMaxFiles(*args
, **kwargs
):
775 """GetMaxFiles() -> int"""
776 return _misc
.FileHistory_GetMaxFiles(*args
, **kwargs
)
778 def UseMenu(*args
, **kwargs
):
779 """UseMenu(Menu menu)"""
780 return _misc
.FileHistory_UseMenu(*args
, **kwargs
)
782 def RemoveMenu(*args
, **kwargs
):
783 """RemoveMenu(Menu menu)"""
784 return _misc
.FileHistory_RemoveMenu(*args
, **kwargs
)
786 def Load(*args
, **kwargs
):
787 """Load(ConfigBase config)"""
788 return _misc
.FileHistory_Load(*args
, **kwargs
)
790 def Save(*args
, **kwargs
):
791 """Save(ConfigBase config)"""
792 return _misc
.FileHistory_Save(*args
, **kwargs
)
794 def AddFilesToMenu(*args
, **kwargs
):
795 """AddFilesToMenu()"""
796 return _misc
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
798 def AddFilesToThisMenu(*args
, **kwargs
):
799 """AddFilesToThisMenu(Menu menu)"""
800 return _misc
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
802 def GetHistoryFile(*args
, **kwargs
):
803 """GetHistoryFile(int i) -> wxString"""
804 return _misc
.FileHistory_GetHistoryFile(*args
, **kwargs
)
806 def GetCount(*args
, **kwargs
):
807 """GetCount() -> int"""
808 return _misc
.FileHistory_GetCount(*args
, **kwargs
)
811 class FileHistoryPtr(FileHistory
):
812 def __init__(self
, this
):
814 if not hasattr(self
,"thisown"): self
.thisown
= 0
815 self
.__class
__ = FileHistory
816 _misc
.FileHistory_swigregister(FileHistoryPtr
)
818 class SingleInstanceChecker(object):
821 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
822 def __init__(self
, *args
, **kwargs
):
823 """__init__(wxString name, wxString path=wxPyEmptyString) -> SingleInstanceChecker"""
824 newobj
= _misc
.new_SingleInstanceChecker(*args
, **kwargs
)
825 self
.this
= newobj
.this
828 def __del__(self
, destroy
=_misc
.delete_SingleInstanceChecker
):
831 if self
.thisown
: destroy(self
)
834 def Create(*args
, **kwargs
):
835 """Create(wxString name, wxString path=wxPyEmptyString) -> bool"""
836 return _misc
.SingleInstanceChecker_Create(*args
, **kwargs
)
838 def IsAnotherRunning(*args
, **kwargs
):
839 """IsAnotherRunning() -> bool"""
840 return _misc
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
843 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
844 def __init__(self
, this
):
846 if not hasattr(self
,"thisown"): self
.thisown
= 0
847 self
.__class
__ = SingleInstanceChecker
848 _misc
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
850 def PreSingleInstanceChecker(*args
, **kwargs
):
851 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
852 val
= _misc
.new_PreSingleInstanceChecker(*args
, **kwargs
)
857 def DrawWindowOnDC(*args
, **kwargs
):
858 """DrawWindowOnDC(Window window, wxDC dc, int method)"""
859 return _misc
.DrawWindowOnDC(*args
, **kwargs
)
860 #---------------------------------------------------------------------------
862 class TipProvider(object):
864 def __init__(self
): raise RuntimeError, "No constructor defined"
866 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
867 def __del__(self
, destroy
=_misc
.delete_TipProvider
):
870 if self
.thisown
: destroy(self
)
873 def GetTip(*args
, **kwargs
):
874 """GetTip() -> wxString"""
875 return _misc
.TipProvider_GetTip(*args
, **kwargs
)
877 def GetCurrentTip(*args
, **kwargs
):
878 """GetCurrentTip() -> size_t"""
879 return _misc
.TipProvider_GetCurrentTip(*args
, **kwargs
)
881 def PreprocessTip(*args
, **kwargs
):
882 """PreprocessTip(wxString tip) -> wxString"""
883 return _misc
.TipProvider_PreprocessTip(*args
, **kwargs
)
886 class TipProviderPtr(TipProvider
):
887 def __init__(self
, this
):
889 if not hasattr(self
,"thisown"): self
.thisown
= 0
890 self
.__class
__ = TipProvider
891 _misc
.TipProvider_swigregister(TipProviderPtr
)
893 class PyTipProvider(TipProvider
):
896 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
897 def __init__(self
, *args
, **kwargs
):
898 """__init__(size_t currentTip) -> PyTipProvider"""
899 newobj
= _misc
.new_PyTipProvider(*args
, **kwargs
)
900 self
.this
= newobj
.this
903 def _setCallbackInfo(*args
, **kwargs
):
904 """_setCallbackInfo(PyObject self, PyObject _class)"""
905 return _misc
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
908 class PyTipProviderPtr(PyTipProvider
):
909 def __init__(self
, this
):
911 if not hasattr(self
,"thisown"): self
.thisown
= 0
912 self
.__class
__ = PyTipProvider
913 _misc
.PyTipProvider_swigregister(PyTipProviderPtr
)
916 def ShowTip(*args
, **kwargs
):
917 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
918 return _misc
.ShowTip(*args
, **kwargs
)
920 def CreateFileTipProvider(*args
, **kwargs
):
921 """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider"""
922 return _misc
.CreateFileTipProvider(*args
, **kwargs
)
923 #---------------------------------------------------------------------------
925 TIMER_CONTINUOUS
= _misc
.TIMER_CONTINUOUS
926 TIMER_ONE_SHOT
= _misc
.TIMER_ONE_SHOT
927 wxEVT_TIMER
= _misc
.wxEVT_TIMER
928 class Timer(core
.EvtHandler
):
931 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
932 def __init__(self
, *args
, **kwargs
):
933 """__init__(EvtHandler owner=None, int id=-1) -> Timer"""
934 newobj
= _misc
.new_Timer(*args
, **kwargs
)
935 self
.this
= newobj
.this
938 self
._setCallbackInfo
(self
, Timer
)
940 def __del__(self
, destroy
=_misc
.delete_Timer
):
943 if self
.thisown
: destroy(self
)
946 def _setCallbackInfo(*args
, **kwargs
):
947 """_setCallbackInfo(PyObject self, PyObject _class)"""
948 return _misc
.Timer__setCallbackInfo(*args
, **kwargs
)
950 def SetOwner(*args
, **kwargs
):
951 """SetOwner(EvtHandler owner, int id=-1)"""
952 return _misc
.Timer_SetOwner(*args
, **kwargs
)
954 def Start(*args
, **kwargs
):
955 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
956 return _misc
.Timer_Start(*args
, **kwargs
)
958 def Stop(*args
, **kwargs
):
960 return _misc
.Timer_Stop(*args
, **kwargs
)
962 def IsRunning(*args
, **kwargs
):
963 """IsRunning() -> bool"""
964 return _misc
.Timer_IsRunning(*args
, **kwargs
)
966 def GetInterval(*args
, **kwargs
):
967 """GetInterval() -> int"""
968 return _misc
.Timer_GetInterval(*args
, **kwargs
)
970 def IsOneShot(*args
, **kwargs
):
971 """IsOneShot() -> bool"""
972 return _misc
.Timer_IsOneShot(*args
, **kwargs
)
975 class TimerPtr(Timer
):
976 def __init__(self
, this
):
978 if not hasattr(self
,"thisown"): self
.thisown
= 0
979 self
.__class
__ = Timer
980 _misc
.Timer_swigregister(TimerPtr
)
982 # For backwards compatibility with 2.4
983 class PyTimer(Timer
):
984 def __init__(self
, notify
):
993 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
996 class TimerEvent(core
.Event
):
999 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1000 def __init__(self
, *args
, **kwargs
):
1001 """__init__(int timerid=0, int interval=0) -> TimerEvent"""
1002 newobj
= _misc
.new_TimerEvent(*args
, **kwargs
)
1003 self
.this
= newobj
.this
1006 def GetInterval(*args
, **kwargs
):
1007 """GetInterval() -> int"""
1008 return _misc
.TimerEvent_GetInterval(*args
, **kwargs
)
1011 class TimerEventPtr(TimerEvent
):
1012 def __init__(self
, this
):
1014 if not hasattr(self
,"thisown"): self
.thisown
= 0
1015 self
.__class
__ = TimerEvent
1016 _misc
.TimerEvent_swigregister(TimerEventPtr
)
1018 class TimerRunner(object):
1021 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1022 def __init__(self
, *args
):
1023 """__init__(wxTimer timer) -> TimerRunner
1024 __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner"""
1025 newobj
= _misc
.new_TimerRunner(*args
)
1026 self
.this
= newobj
.this
1029 def __del__(self
, destroy
=_misc
.delete_TimerRunner
):
1032 if self
.thisown
: destroy(self
)
1035 def Start(*args
, **kwargs
):
1036 """Start(int milli, bool oneShot=False)"""
1037 return _misc
.TimerRunner_Start(*args
, **kwargs
)
1040 class TimerRunnerPtr(TimerRunner
):
1041 def __init__(self
, this
):
1043 if not hasattr(self
,"thisown"): self
.thisown
= 0
1044 self
.__class
__ = TimerRunner
1045 _misc
.TimerRunner_swigregister(TimerRunnerPtr
)
1047 #---------------------------------------------------------------------------
1049 LOG_FatalError
= _misc
.LOG_FatalError
1050 LOG_Error
= _misc
.LOG_Error
1051 LOG_Warning
= _misc
.LOG_Warning
1052 LOG_Message
= _misc
.LOG_Message
1053 LOG_Status
= _misc
.LOG_Status
1054 LOG_Info
= _misc
.LOG_Info
1055 LOG_Debug
= _misc
.LOG_Debug
1056 LOG_Trace
= _misc
.LOG_Trace
1057 LOG_Progress
= _misc
.LOG_Progress
1058 LOG_User
= _misc
.LOG_User
1059 LOG_Max
= _misc
.LOG_Max
1060 TRACE_MemAlloc
= _misc
.TRACE_MemAlloc
1061 TRACE_Messages
= _misc
.TRACE_Messages
1062 TRACE_ResAlloc
= _misc
.TRACE_ResAlloc
1063 TRACE_RefCount
= _misc
.TRACE_RefCount
1064 TRACE_OleCalls
= _misc
.TRACE_OleCalls
1065 TraceMemAlloc
= _misc
.TraceMemAlloc
1066 TraceMessages
= _misc
.TraceMessages
1067 TraceResAlloc
= _misc
.TraceResAlloc
1068 TraceRefCount
= _misc
.TraceRefCount
1069 TraceOleCalls
= _misc
.TraceOleCalls
1073 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1074 def __init__(self
, *args
, **kwargs
):
1075 """__init__() -> Log"""
1076 newobj
= _misc
.new_Log(*args
, **kwargs
)
1077 self
.this
= newobj
.this
1080 def IsEnabled(*args
, **kwargs
):
1081 """Log.IsEnabled() -> bool"""
1082 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1084 IsEnabled
= staticmethod(IsEnabled
)
1085 def EnableLogging(*args
, **kwargs
):
1086 """Log.EnableLogging(bool doIt=True) -> bool"""
1087 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1089 EnableLogging
= staticmethod(EnableLogging
)
1090 def OnLog(*args
, **kwargs
):
1091 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1092 return _misc
.Log_OnLog(*args
, **kwargs
)
1094 OnLog
= staticmethod(OnLog
)
1095 def Flush(*args
, **kwargs
):
1097 return _misc
.Log_Flush(*args
, **kwargs
)
1099 def FlushActive(*args
, **kwargs
):
1100 """Log.FlushActive()"""
1101 return _misc
.Log_FlushActive(*args
, **kwargs
)
1103 FlushActive
= staticmethod(FlushActive
)
1104 def GetActiveTarget(*args
, **kwargs
):
1105 """Log.GetActiveTarget() -> Log"""
1106 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1108 GetActiveTarget
= staticmethod(GetActiveTarget
)
1109 def SetActiveTarget(*args
, **kwargs
):
1110 """Log.SetActiveTarget(Log pLogger) -> Log"""
1111 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1113 SetActiveTarget
= staticmethod(SetActiveTarget
)
1114 def Suspend(*args
, **kwargs
):
1116 return _misc
.Log_Suspend(*args
, **kwargs
)
1118 Suspend
= staticmethod(Suspend
)
1119 def Resume(*args
, **kwargs
):
1121 return _misc
.Log_Resume(*args
, **kwargs
)
1123 Resume
= staticmethod(Resume
)
1124 def SetVerbose(*args
, **kwargs
):
1125 """Log.SetVerbose(bool bVerbose=True)"""
1126 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1128 SetVerbose
= staticmethod(SetVerbose
)
1129 def SetLogLevel(*args
, **kwargs
):
1130 """Log.SetLogLevel(wxLogLevel logLevel)"""
1131 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1133 SetLogLevel
= staticmethod(SetLogLevel
)
1134 def DontCreateOnDemand(*args
, **kwargs
):
1135 """Log.DontCreateOnDemand()"""
1136 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1138 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1139 def SetTraceMask(*args
, **kwargs
):
1140 """Log.SetTraceMask(wxTraceMask ulMask)"""
1141 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1143 SetTraceMask
= staticmethod(SetTraceMask
)
1144 def AddTraceMask(*args
, **kwargs
):
1145 """Log.AddTraceMask(wxString str)"""
1146 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1148 AddTraceMask
= staticmethod(AddTraceMask
)
1149 def RemoveTraceMask(*args
, **kwargs
):
1150 """Log.RemoveTraceMask(wxString str)"""
1151 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1153 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1154 def ClearTraceMasks(*args
, **kwargs
):
1155 """Log.ClearTraceMasks()"""
1156 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1158 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1159 def GetTraceMasks(*args
, **kwargs
):
1160 """Log.GetTraceMasks() -> wxArrayString"""
1161 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1163 GetTraceMasks
= staticmethod(GetTraceMasks
)
1164 def SetTimestamp(*args
, **kwargs
):
1165 """Log.SetTimestamp(wxChar ts)"""
1166 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1168 SetTimestamp
= staticmethod(SetTimestamp
)
1169 def GetVerbose(*args
, **kwargs
):
1170 """Log.GetVerbose() -> bool"""
1171 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1173 GetVerbose
= staticmethod(GetVerbose
)
1174 def GetTraceMask(*args
, **kwargs
):
1175 """Log.GetTraceMask() -> wxTraceMask"""
1176 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1178 GetTraceMask
= staticmethod(GetTraceMask
)
1179 def IsAllowedTraceMask(*args
, **kwargs
):
1180 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1181 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1183 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1184 def GetLogLevel(*args
, **kwargs
):
1185 """Log.GetLogLevel() -> wxLogLevel"""
1186 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1188 GetLogLevel
= staticmethod(GetLogLevel
)
1189 def GetTimestamp(*args
, **kwargs
):
1190 """Log.GetTimestamp() -> wxChar"""
1191 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1193 GetTimestamp
= staticmethod(GetTimestamp
)
1194 def TimeStamp(*args
, **kwargs
):
1195 """Log.TimeStamp() -> wxString"""
1196 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1198 TimeStamp
= staticmethod(TimeStamp
)
1199 def Destroy(*args
, **kwargs
):
1201 return _misc
.Log_Destroy(*args
, **kwargs
)
1205 def __init__(self
, this
):
1207 if not hasattr(self
,"thisown"): self
.thisown
= 0
1208 self
.__class
__ = Log
1209 _misc
.Log_swigregister(LogPtr
)
1211 def Log_IsEnabled(*args
, **kwargs
):
1212 """Log_IsEnabled() -> bool"""
1213 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1215 def Log_EnableLogging(*args
, **kwargs
):
1216 """Log_EnableLogging(bool doIt=True) -> bool"""
1217 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1219 def Log_OnLog(*args
, **kwargs
):
1220 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1221 return _misc
.Log_OnLog(*args
, **kwargs
)
1223 def Log_FlushActive(*args
, **kwargs
):
1224 """Log_FlushActive()"""
1225 return _misc
.Log_FlushActive(*args
, **kwargs
)
1227 def Log_GetActiveTarget(*args
, **kwargs
):
1228 """Log_GetActiveTarget() -> Log"""
1229 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1231 def Log_SetActiveTarget(*args
, **kwargs
):
1232 """Log_SetActiveTarget(Log pLogger) -> Log"""
1233 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1235 def Log_Suspend(*args
, **kwargs
):
1237 return _misc
.Log_Suspend(*args
, **kwargs
)
1239 def Log_Resume(*args
, **kwargs
):
1241 return _misc
.Log_Resume(*args
, **kwargs
)
1243 def Log_SetVerbose(*args
, **kwargs
):
1244 """Log_SetVerbose(bool bVerbose=True)"""
1245 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1247 def Log_SetLogLevel(*args
, **kwargs
):
1248 """Log_SetLogLevel(wxLogLevel logLevel)"""
1249 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1251 def Log_DontCreateOnDemand(*args
, **kwargs
):
1252 """Log_DontCreateOnDemand()"""
1253 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1255 def Log_SetTraceMask(*args
, **kwargs
):
1256 """Log_SetTraceMask(wxTraceMask ulMask)"""
1257 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1259 def Log_AddTraceMask(*args
, **kwargs
):
1260 """Log_AddTraceMask(wxString str)"""
1261 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1263 def Log_RemoveTraceMask(*args
, **kwargs
):
1264 """Log_RemoveTraceMask(wxString str)"""
1265 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1267 def Log_ClearTraceMasks(*args
, **kwargs
):
1268 """Log_ClearTraceMasks()"""
1269 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1271 def Log_GetTraceMasks(*args
, **kwargs
):
1272 """Log_GetTraceMasks() -> wxArrayString"""
1273 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1275 def Log_SetTimestamp(*args
, **kwargs
):
1276 """Log_SetTimestamp(wxChar ts)"""
1277 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1279 def Log_GetVerbose(*args
, **kwargs
):
1280 """Log_GetVerbose() -> bool"""
1281 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1283 def Log_GetTraceMask(*args
, **kwargs
):
1284 """Log_GetTraceMask() -> wxTraceMask"""
1285 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1287 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1288 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1289 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1291 def Log_GetLogLevel(*args
, **kwargs
):
1292 """Log_GetLogLevel() -> wxLogLevel"""
1293 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1295 def Log_GetTimestamp(*args
, **kwargs
):
1296 """Log_GetTimestamp() -> wxChar"""
1297 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1299 def Log_TimeStamp(*args
, **kwargs
):
1300 """Log_TimeStamp() -> wxString"""
1301 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1303 class LogStderr(Log
):
1306 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1307 def __init__(self
, *args
, **kwargs
):
1308 """__init__() -> LogStderr"""
1309 newobj
= _misc
.new_LogStderr(*args
, **kwargs
)
1310 self
.this
= newobj
.this
1314 class LogStderrPtr(LogStderr
):
1315 def __init__(self
, this
):
1317 if not hasattr(self
,"thisown"): self
.thisown
= 0
1318 self
.__class
__ = LogStderr
1319 _misc
.LogStderr_swigregister(LogStderrPtr
)
1321 class LogTextCtrl(Log
):
1324 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1325 def __init__(self
, *args
, **kwargs
):
1326 """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1327 newobj
= _misc
.new_LogTextCtrl(*args
, **kwargs
)
1328 self
.this
= newobj
.this
1332 class LogTextCtrlPtr(LogTextCtrl
):
1333 def __init__(self
, this
):
1335 if not hasattr(self
,"thisown"): self
.thisown
= 0
1336 self
.__class
__ = LogTextCtrl
1337 _misc
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1342 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1343 def __init__(self
, *args
, **kwargs
):
1344 """__init__() -> LogGui"""
1345 newobj
= _misc
.new_LogGui(*args
, **kwargs
)
1346 self
.this
= newobj
.this
1350 class LogGuiPtr(LogGui
):
1351 def __init__(self
, this
):
1353 if not hasattr(self
,"thisown"): self
.thisown
= 0
1354 self
.__class
__ = LogGui
1355 _misc
.LogGui_swigregister(LogGuiPtr
)
1357 class LogWindow(Log
):
1360 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1361 def __init__(self
, *args
, **kwargs
):
1362 """__init__(wxFrame pParent, wxString szTitle, bool bShow=True,
1363 bool bPassToOld=True) -> LogWindow"""
1364 newobj
= _misc
.new_LogWindow(*args
, **kwargs
)
1365 self
.this
= newobj
.this
1368 def Show(*args
, **kwargs
):
1369 """Show(bool bShow=True)"""
1370 return _misc
.LogWindow_Show(*args
, **kwargs
)
1372 def GetFrame(*args
, **kwargs
):
1373 """GetFrame() -> wxFrame"""
1374 return _misc
.LogWindow_GetFrame(*args
, **kwargs
)
1376 def GetOldLog(*args
, **kwargs
):
1377 """GetOldLog() -> Log"""
1378 return _misc
.LogWindow_GetOldLog(*args
, **kwargs
)
1380 def IsPassingMessages(*args
, **kwargs
):
1381 """IsPassingMessages() -> bool"""
1382 return _misc
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1384 def PassMessages(*args
, **kwargs
):
1385 """PassMessages(bool bDoPass)"""
1386 return _misc
.LogWindow_PassMessages(*args
, **kwargs
)
1389 class LogWindowPtr(LogWindow
):
1390 def __init__(self
, this
):
1392 if not hasattr(self
,"thisown"): self
.thisown
= 0
1393 self
.__class
__ = LogWindow
1394 _misc
.LogWindow_swigregister(LogWindowPtr
)
1396 class LogChain(Log
):
1399 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1400 def __init__(self
, *args
, **kwargs
):
1401 """__init__(Log logger) -> LogChain"""
1402 newobj
= _misc
.new_LogChain(*args
, **kwargs
)
1403 self
.this
= newobj
.this
1406 def SetLog(*args
, **kwargs
):
1407 """SetLog(Log logger)"""
1408 return _misc
.LogChain_SetLog(*args
, **kwargs
)
1410 def PassMessages(*args
, **kwargs
):
1411 """PassMessages(bool bDoPass)"""
1412 return _misc
.LogChain_PassMessages(*args
, **kwargs
)
1414 def IsPassingMessages(*args
, **kwargs
):
1415 """IsPassingMessages() -> bool"""
1416 return _misc
.LogChain_IsPassingMessages(*args
, **kwargs
)
1418 def GetOldLog(*args
, **kwargs
):
1419 """GetOldLog() -> Log"""
1420 return _misc
.LogChain_GetOldLog(*args
, **kwargs
)
1423 class LogChainPtr(LogChain
):
1424 def __init__(self
, this
):
1426 if not hasattr(self
,"thisown"): self
.thisown
= 0
1427 self
.__class
__ = LogChain
1428 _misc
.LogChain_swigregister(LogChainPtr
)
1431 def SysErrorCode(*args
, **kwargs
):
1432 """SysErrorCode() -> unsigned long"""
1433 return _misc
.SysErrorCode(*args
, **kwargs
)
1435 def SysErrorMsg(*args
, **kwargs
):
1436 """SysErrorMsg(unsigned long nErrCode=0) -> wxString"""
1437 return _misc
.SysErrorMsg(*args
, **kwargs
)
1439 def LogFatalError(*args
, **kwargs
):
1440 """LogFatalError(wxString msg)"""
1441 return _misc
.LogFatalError(*args
, **kwargs
)
1443 def LogError(*args
, **kwargs
):
1444 """LogError(wxString msg)"""
1445 return _misc
.LogError(*args
, **kwargs
)
1447 def LogWarning(*args
, **kwargs
):
1448 """LogWarning(wxString msg)"""
1449 return _misc
.LogWarning(*args
, **kwargs
)
1451 def LogMessage(*args
, **kwargs
):
1452 """LogMessage(wxString msg)"""
1453 return _misc
.LogMessage(*args
, **kwargs
)
1455 def LogInfo(*args
, **kwargs
):
1456 """LogInfo(wxString msg)"""
1457 return _misc
.LogInfo(*args
, **kwargs
)
1459 def LogDebug(*args
, **kwargs
):
1460 """LogDebug(wxString msg)"""
1461 return _misc
.LogDebug(*args
, **kwargs
)
1463 def LogVerbose(*args
, **kwargs
):
1464 """LogVerbose(wxString msg)"""
1465 return _misc
.LogVerbose(*args
, **kwargs
)
1467 def LogStatus(*args
, **kwargs
):
1468 """LogStatus(wxString msg)"""
1469 return _misc
.LogStatus(*args
, **kwargs
)
1471 def LogStatusFrame(*args
, **kwargs
):
1472 """LogStatusFrame(wxFrame pFrame, wxString msg)"""
1473 return _misc
.LogStatusFrame(*args
, **kwargs
)
1475 def LogSysError(*args
, **kwargs
):
1476 """LogSysError(wxString msg)"""
1477 return _misc
.LogSysError(*args
, **kwargs
)
1479 def LogTrace(*args
, **kwargs
):
1480 """LogTrace(wxString msg)"""
1481 return _misc
.LogTrace(*args
, **kwargs
)
1483 def LogTraceMask(*args
, **kwargs
):
1484 """LogTraceMask(wxString mask, wxString msg)"""
1485 return _misc
.LogTraceMask(*args
, **kwargs
)
1487 def LogGeneric(*args
, **kwargs
):
1488 """LogGeneric(unsigned long level, wxString msg)"""
1489 return _misc
.LogGeneric(*args
, **kwargs
)
1491 def SafeShowMessage(*args
, **kwargs
):
1492 """SafeShowMessage(wxString title, wxString text)"""
1493 return _misc
.SafeShowMessage(*args
, **kwargs
)
1494 class LogNull(object):
1497 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1498 def __init__(self
, *args
, **kwargs
):
1499 """__init__() -> LogNull"""
1500 newobj
= _misc
.new_LogNull(*args
, **kwargs
)
1501 self
.this
= newobj
.this
1504 def __del__(self
, destroy
=_misc
.delete_LogNull
):
1507 if self
.thisown
: destroy(self
)
1511 class LogNullPtr(LogNull
):
1512 def __init__(self
, this
):
1514 if not hasattr(self
,"thisown"): self
.thisown
= 0
1515 self
.__class
__ = LogNull
1516 _misc
.LogNull_swigregister(LogNullPtr
)
1521 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1522 def __init__(self
, *args
, **kwargs
):
1523 """__init__() -> PyLog"""
1524 newobj
= _misc
.new_PyLog(*args
, **kwargs
)
1525 self
.this
= newobj
.this
1528 self
._setCallbackInfo
(self
, PyLog
)
1530 def _setCallbackInfo(*args
, **kwargs
):
1531 """_setCallbackInfo(PyObject self, PyObject _class)"""
1532 return _misc
.PyLog__setCallbackInfo(*args
, **kwargs
)
1535 class PyLogPtr(PyLog
):
1536 def __init__(self
, this
):
1538 if not hasattr(self
,"thisown"): self
.thisown
= 0
1539 self
.__class
__ = PyLog
1540 _misc
.PyLog_swigregister(PyLogPtr
)
1542 #---------------------------------------------------------------------------
1544 PROCESS_DEFAULT
= _misc
.PROCESS_DEFAULT
1545 PROCESS_REDIRECT
= _misc
.PROCESS_REDIRECT
1546 KILL_OK
= _misc
.KILL_OK
1547 KILL_BAD_SIGNAL
= _misc
.KILL_BAD_SIGNAL
1548 KILL_ACCESS_DENIED
= _misc
.KILL_ACCESS_DENIED
1549 KILL_NO_PROCESS
= _misc
.KILL_NO_PROCESS
1550 KILL_ERROR
= _misc
.KILL_ERROR
1551 SIGNONE
= _misc
.SIGNONE
1552 SIGHUP
= _misc
.SIGHUP
1553 SIGINT
= _misc
.SIGINT
1554 SIGQUIT
= _misc
.SIGQUIT
1555 SIGILL
= _misc
.SIGILL
1556 SIGTRAP
= _misc
.SIGTRAP
1557 SIGABRT
= _misc
.SIGABRT
1558 SIGIOT
= _misc
.SIGIOT
1559 SIGEMT
= _misc
.SIGEMT
1560 SIGFPE
= _misc
.SIGFPE
1561 SIGKILL
= _misc
.SIGKILL
1562 SIGBUS
= _misc
.SIGBUS
1563 SIGSEGV
= _misc
.SIGSEGV
1564 SIGSYS
= _misc
.SIGSYS
1565 SIGPIPE
= _misc
.SIGPIPE
1566 SIGALRM
= _misc
.SIGALRM
1567 SIGTERM
= _misc
.SIGTERM
1568 class Process(core
.EvtHandler
):
1571 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1572 def Kill(*args
, **kwargs
):
1573 """Process.Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1574 return _misc
.Process_Kill(*args
, **kwargs
)
1576 Kill
= staticmethod(Kill
)
1577 def Exists(*args
, **kwargs
):
1578 """Process.Exists(int pid) -> bool"""
1579 return _misc
.Process_Exists(*args
, **kwargs
)
1581 Exists
= staticmethod(Exists
)
1582 def Open(*args
, **kwargs
):
1583 """Process.Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1584 return _misc
.Process_Open(*args
, **kwargs
)
1586 Open
= staticmethod(Open
)
1587 def __init__(self
, *args
, **kwargs
):
1588 """__init__(EvtHandler parent=None, int id=-1) -> Process"""
1589 newobj
= _misc
.new_Process(*args
, **kwargs
)
1590 self
.this
= newobj
.this
1593 self
._setCallbackInfo
(self
, Process
)
1595 def _setCallbackInfo(*args
, **kwargs
):
1596 """_setCallbackInfo(PyObject self, PyObject _class)"""
1597 return _misc
.Process__setCallbackInfo(*args
, **kwargs
)
1599 def base_OnTerminate(*args
, **kwargs
):
1600 """base_OnTerminate(int pid, int status)"""
1601 return _misc
.Process_base_OnTerminate(*args
, **kwargs
)
1603 def Redirect(*args
, **kwargs
):
1605 return _misc
.Process_Redirect(*args
, **kwargs
)
1607 def IsRedirected(*args
, **kwargs
):
1608 """IsRedirected() -> bool"""
1609 return _misc
.Process_IsRedirected(*args
, **kwargs
)
1611 def Detach(*args
, **kwargs
):
1613 return _misc
.Process_Detach(*args
, **kwargs
)
1615 def GetInputStream(*args
, **kwargs
):
1616 """GetInputStream() -> wxInputStream"""
1617 return _misc
.Process_GetInputStream(*args
, **kwargs
)
1619 def GetErrorStream(*args
, **kwargs
):
1620 """GetErrorStream() -> wxInputStream"""
1621 return _misc
.Process_GetErrorStream(*args
, **kwargs
)
1623 def GetOutputStream(*args
, **kwargs
):
1624 """GetOutputStream() -> OutputStream"""
1625 return _misc
.Process_GetOutputStream(*args
, **kwargs
)
1627 def CloseOutput(*args
, **kwargs
):
1629 return _misc
.Process_CloseOutput(*args
, **kwargs
)
1631 def IsInputOpened(*args
, **kwargs
):
1632 """IsInputOpened() -> bool"""
1633 return _misc
.Process_IsInputOpened(*args
, **kwargs
)
1635 def IsInputAvailable(*args
, **kwargs
):
1636 """IsInputAvailable() -> bool"""
1637 return _misc
.Process_IsInputAvailable(*args
, **kwargs
)
1639 def IsErrorAvailable(*args
, **kwargs
):
1640 """IsErrorAvailable() -> bool"""
1641 return _misc
.Process_IsErrorAvailable(*args
, **kwargs
)
1644 class ProcessPtr(Process
):
1645 def __init__(self
, this
):
1647 if not hasattr(self
,"thisown"): self
.thisown
= 0
1648 self
.__class
__ = Process
1649 _misc
.Process_swigregister(ProcessPtr
)
1651 def Process_Kill(*args
, **kwargs
):
1652 """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1653 return _misc
.Process_Kill(*args
, **kwargs
)
1655 def Process_Exists(*args
, **kwargs
):
1656 """Process_Exists(int pid) -> bool"""
1657 return _misc
.Process_Exists(*args
, **kwargs
)
1659 def Process_Open(*args
, **kwargs
):
1660 """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1661 return _misc
.Process_Open(*args
, **kwargs
)
1663 class ProcessEvent(core
.Event
):
1666 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1667 def __init__(self
, *args
, **kwargs
):
1668 """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1669 newobj
= _misc
.new_ProcessEvent(*args
, **kwargs
)
1670 self
.this
= newobj
.this
1673 def GetPid(*args
, **kwargs
):
1674 """GetPid() -> int"""
1675 return _misc
.ProcessEvent_GetPid(*args
, **kwargs
)
1677 def GetExitCode(*args
, **kwargs
):
1678 """GetExitCode() -> int"""
1679 return _misc
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1681 m_pid
= property(_misc
.ProcessEvent_m_pid_get
, _misc
.ProcessEvent_m_pid_set
)
1682 m_exitcode
= property(_misc
.ProcessEvent_m_exitcode_get
, _misc
.ProcessEvent_m_exitcode_set
)
1684 class ProcessEventPtr(ProcessEvent
):
1685 def __init__(self
, this
):
1687 if not hasattr(self
,"thisown"): self
.thisown
= 0
1688 self
.__class
__ = ProcessEvent
1689 _misc
.ProcessEvent_swigregister(ProcessEventPtr
)
1691 wxEVT_END_PROCESS
= _misc
.wxEVT_END_PROCESS
1692 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1694 EXEC_ASYNC
= _misc
.EXEC_ASYNC
1695 EXEC_SYNC
= _misc
.EXEC_SYNC
1696 EXEC_NOHIDE
= _misc
.EXEC_NOHIDE
1697 EXEC_MAKE_GROUP_LEADER
= _misc
.EXEC_MAKE_GROUP_LEADER
1699 def Execute(*args
, **kwargs
):
1700 """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1701 return _misc
.Execute(*args
, **kwargs
)
1702 #---------------------------------------------------------------------------
1704 JOYSTICK1
= _misc
.JOYSTICK1
1705 JOYSTICK2
= _misc
.JOYSTICK2
1706 JOY_BUTTON_ANY
= _misc
.JOY_BUTTON_ANY
1707 JOY_BUTTON1
= _misc
.JOY_BUTTON1
1708 JOY_BUTTON2
= _misc
.JOY_BUTTON2
1709 JOY_BUTTON3
= _misc
.JOY_BUTTON3
1710 JOY_BUTTON4
= _misc
.JOY_BUTTON4
1711 class Joystick(object):
1714 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1715 def __init__(self
, *args
, **kwargs
):
1716 """__init__(int joystick=JOYSTICK1) -> Joystick"""
1717 newobj
= _misc
.new_Joystick(*args
, **kwargs
)
1718 self
.this
= newobj
.this
1721 def __del__(self
, destroy
=_misc
.delete_Joystick
):
1724 if self
.thisown
: destroy(self
)
1727 def GetPosition(*args
, **kwargs
):
1728 """GetPosition() -> Point"""
1729 return _misc
.Joystick_GetPosition(*args
, **kwargs
)
1731 def GetZPosition(*args
, **kwargs
):
1732 """GetZPosition() -> int"""
1733 return _misc
.Joystick_GetZPosition(*args
, **kwargs
)
1735 def GetButtonState(*args
, **kwargs
):
1736 """GetButtonState() -> int"""
1737 return _misc
.Joystick_GetButtonState(*args
, **kwargs
)
1739 def GetPOVPosition(*args
, **kwargs
):
1740 """GetPOVPosition() -> int"""
1741 return _misc
.Joystick_GetPOVPosition(*args
, **kwargs
)
1743 def GetPOVCTSPosition(*args
, **kwargs
):
1744 """GetPOVCTSPosition() -> int"""
1745 return _misc
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1747 def GetRudderPosition(*args
, **kwargs
):
1748 """GetRudderPosition() -> int"""
1749 return _misc
.Joystick_GetRudderPosition(*args
, **kwargs
)
1751 def GetUPosition(*args
, **kwargs
):
1752 """GetUPosition() -> int"""
1753 return _misc
.Joystick_GetUPosition(*args
, **kwargs
)
1755 def GetVPosition(*args
, **kwargs
):
1756 """GetVPosition() -> int"""
1757 return _misc
.Joystick_GetVPosition(*args
, **kwargs
)
1759 def GetMovementThreshold(*args
, **kwargs
):
1760 """GetMovementThreshold() -> int"""
1761 return _misc
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1763 def SetMovementThreshold(*args
, **kwargs
):
1764 """SetMovementThreshold(int threshold)"""
1765 return _misc
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1767 def IsOk(*args
, **kwargs
):
1768 """IsOk(void ??) -> bool"""
1769 return _misc
.Joystick_IsOk(*args
, **kwargs
)
1771 def GetNumberJoysticks(*args
, **kwargs
):
1772 """GetNumberJoysticks() -> int"""
1773 return _misc
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1775 def GetManufacturerId(*args
, **kwargs
):
1776 """GetManufacturerId() -> int"""
1777 return _misc
.Joystick_GetManufacturerId(*args
, **kwargs
)
1779 def GetProductId(*args
, **kwargs
):
1780 """GetProductId() -> int"""
1781 return _misc
.Joystick_GetProductId(*args
, **kwargs
)
1783 def GetProductName(*args
, **kwargs
):
1784 """GetProductName() -> wxString"""
1785 return _misc
.Joystick_GetProductName(*args
, **kwargs
)
1787 def GetXMin(*args
, **kwargs
):
1788 """GetXMin() -> int"""
1789 return _misc
.Joystick_GetXMin(*args
, **kwargs
)
1791 def GetYMin(*args
, **kwargs
):
1792 """GetYMin() -> int"""
1793 return _misc
.Joystick_GetYMin(*args
, **kwargs
)
1795 def GetZMin(*args
, **kwargs
):
1796 """GetZMin() -> int"""
1797 return _misc
.Joystick_GetZMin(*args
, **kwargs
)
1799 def GetXMax(*args
, **kwargs
):
1800 """GetXMax() -> int"""
1801 return _misc
.Joystick_GetXMax(*args
, **kwargs
)
1803 def GetYMax(*args
, **kwargs
):
1804 """GetYMax() -> int"""
1805 return _misc
.Joystick_GetYMax(*args
, **kwargs
)
1807 def GetZMax(*args
, **kwargs
):
1808 """GetZMax() -> int"""
1809 return _misc
.Joystick_GetZMax(*args
, **kwargs
)
1811 def GetNumberButtons(*args
, **kwargs
):
1812 """GetNumberButtons() -> int"""
1813 return _misc
.Joystick_GetNumberButtons(*args
, **kwargs
)
1815 def GetNumberAxes(*args
, **kwargs
):
1816 """GetNumberAxes() -> int"""
1817 return _misc
.Joystick_GetNumberAxes(*args
, **kwargs
)
1819 def GetMaxButtons(*args
, **kwargs
):
1820 """GetMaxButtons() -> int"""
1821 return _misc
.Joystick_GetMaxButtons(*args
, **kwargs
)
1823 def GetMaxAxes(*args
, **kwargs
):
1824 """GetMaxAxes() -> int"""
1825 return _misc
.Joystick_GetMaxAxes(*args
, **kwargs
)
1827 def GetPollingMin(*args
, **kwargs
):
1828 """GetPollingMin() -> int"""
1829 return _misc
.Joystick_GetPollingMin(*args
, **kwargs
)
1831 def GetPollingMax(*args
, **kwargs
):
1832 """GetPollingMax() -> int"""
1833 return _misc
.Joystick_GetPollingMax(*args
, **kwargs
)
1835 def GetRudderMin(*args
, **kwargs
):
1836 """GetRudderMin() -> int"""
1837 return _misc
.Joystick_GetRudderMin(*args
, **kwargs
)
1839 def GetRudderMax(*args
, **kwargs
):
1840 """GetRudderMax() -> int"""
1841 return _misc
.Joystick_GetRudderMax(*args
, **kwargs
)
1843 def GetUMin(*args
, **kwargs
):
1844 """GetUMin() -> int"""
1845 return _misc
.Joystick_GetUMin(*args
, **kwargs
)
1847 def GetUMax(*args
, **kwargs
):
1848 """GetUMax() -> int"""
1849 return _misc
.Joystick_GetUMax(*args
, **kwargs
)
1851 def GetVMin(*args
, **kwargs
):
1852 """GetVMin() -> int"""
1853 return _misc
.Joystick_GetVMin(*args
, **kwargs
)
1855 def GetVMax(*args
, **kwargs
):
1856 """GetVMax() -> int"""
1857 return _misc
.Joystick_GetVMax(*args
, **kwargs
)
1859 def HasRudder(*args
, **kwargs
):
1860 """HasRudder() -> bool"""
1861 return _misc
.Joystick_HasRudder(*args
, **kwargs
)
1863 def HasZ(*args
, **kwargs
):
1864 """HasZ() -> bool"""
1865 return _misc
.Joystick_HasZ(*args
, **kwargs
)
1867 def HasU(*args
, **kwargs
):
1868 """HasU() -> bool"""
1869 return _misc
.Joystick_HasU(*args
, **kwargs
)
1871 def HasV(*args
, **kwargs
):
1872 """HasV() -> bool"""
1873 return _misc
.Joystick_HasV(*args
, **kwargs
)
1875 def HasPOV(*args
, **kwargs
):
1876 """HasPOV() -> bool"""
1877 return _misc
.Joystick_HasPOV(*args
, **kwargs
)
1879 def HasPOV4Dir(*args
, **kwargs
):
1880 """HasPOV4Dir() -> bool"""
1881 return _misc
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1883 def HasPOVCTS(*args
, **kwargs
):
1884 """HasPOVCTS() -> bool"""
1885 return _misc
.Joystick_HasPOVCTS(*args
, **kwargs
)
1887 def SetCapture(*args
, **kwargs
):
1888 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1889 return _misc
.Joystick_SetCapture(*args
, **kwargs
)
1891 def ReleaseCapture(*args
, **kwargs
):
1892 """ReleaseCapture() -> bool"""
1893 return _misc
.Joystick_ReleaseCapture(*args
, **kwargs
)
1895 def __nonzero__(self
): return self
.IsOk()
1897 class JoystickPtr(Joystick
):
1898 def __init__(self
, this
):
1900 if not hasattr(self
,"thisown"): self
.thisown
= 0
1901 self
.__class
__ = Joystick
1902 _misc
.Joystick_swigregister(JoystickPtr
)
1904 wxEVT_JOY_BUTTON_DOWN
= _misc
.wxEVT_JOY_BUTTON_DOWN
1905 wxEVT_JOY_BUTTON_UP
= _misc
.wxEVT_JOY_BUTTON_UP
1906 wxEVT_JOY_MOVE
= _misc
.wxEVT_JOY_MOVE
1907 wxEVT_JOY_ZMOVE
= _misc
.wxEVT_JOY_ZMOVE
1908 class JoystickEvent(core
.Event
):
1911 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1912 m_pos
= property(_misc
.JoystickEvent_m_pos_get
, _misc
.JoystickEvent_m_pos_set
)
1913 m_zPosition
= property(_misc
.JoystickEvent_m_zPosition_get
, _misc
.JoystickEvent_m_zPosition_set
)
1914 m_buttonChange
= property(_misc
.JoystickEvent_m_buttonChange_get
, _misc
.JoystickEvent_m_buttonChange_set
)
1915 m_buttonState
= property(_misc
.JoystickEvent_m_buttonState_get
, _misc
.JoystickEvent_m_buttonState_set
)
1916 m_joyStick
= property(_misc
.JoystickEvent_m_joyStick_get
, _misc
.JoystickEvent_m_joyStick_set
)
1917 def __init__(self
, *args
, **kwargs
):
1918 """__init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1919 int change=0) -> JoystickEvent"""
1920 newobj
= _misc
.new_JoystickEvent(*args
, **kwargs
)
1921 self
.this
= newobj
.this
1924 def GetPosition(*args
, **kwargs
):
1925 """GetPosition() -> Point"""
1926 return _misc
.JoystickEvent_GetPosition(*args
, **kwargs
)
1928 def GetZPosition(*args
, **kwargs
):
1929 """GetZPosition() -> int"""
1930 return _misc
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1932 def GetButtonState(*args
, **kwargs
):
1933 """GetButtonState() -> int"""
1934 return _misc
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1936 def GetButtonChange(*args
, **kwargs
):
1937 """GetButtonChange() -> int"""
1938 return _misc
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1940 def GetJoystick(*args
, **kwargs
):
1941 """GetJoystick() -> int"""
1942 return _misc
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1944 def SetJoystick(*args
, **kwargs
):
1945 """SetJoystick(int stick)"""
1946 return _misc
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1948 def SetButtonState(*args
, **kwargs
):
1949 """SetButtonState(int state)"""
1950 return _misc
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1952 def SetButtonChange(*args
, **kwargs
):
1953 """SetButtonChange(int change)"""
1954 return _misc
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1956 def SetPosition(*args
, **kwargs
):
1957 """SetPosition(Point pos)"""
1958 return _misc
.JoystickEvent_SetPosition(*args
, **kwargs
)
1960 def SetZPosition(*args
, **kwargs
):
1961 """SetZPosition(int zPos)"""
1962 return _misc
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1964 def IsButton(*args
, **kwargs
):
1965 """IsButton() -> bool"""
1966 return _misc
.JoystickEvent_IsButton(*args
, **kwargs
)
1968 def IsMove(*args
, **kwargs
):
1969 """IsMove() -> bool"""
1970 return _misc
.JoystickEvent_IsMove(*args
, **kwargs
)
1972 def IsZMove(*args
, **kwargs
):
1973 """IsZMove() -> bool"""
1974 return _misc
.JoystickEvent_IsZMove(*args
, **kwargs
)
1976 def ButtonDown(*args
, **kwargs
):
1977 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1978 return _misc
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1980 def ButtonUp(*args
, **kwargs
):
1981 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1982 return _misc
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1984 def ButtonIsDown(*args
, **kwargs
):
1985 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1986 return _misc
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
1989 class JoystickEventPtr(JoystickEvent
):
1990 def __init__(self
, this
):
1992 if not hasattr(self
,"thisown"): self
.thisown
= 0
1993 self
.__class
__ = JoystickEvent
1994 _misc
.JoystickEvent_swigregister(JoystickEventPtr
)
1996 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
1997 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
1998 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
1999 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2001 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2002 wxEVT_JOY_BUTTON_UP
,
2008 #---------------------------------------------------------------------------
2013 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2014 def __init__(self
, *args
, **kwargs
):
2015 """__init__(wxString fileName, bool isResource=False) -> Wave"""
2016 newobj
= _misc
.new_Wave(*args
, **kwargs
)
2017 self
.this
= newobj
.this
2020 def __del__(self
, destroy
=_misc
.delete_Wave
):
2023 if self
.thisown
: destroy(self
)
2026 def IsOk(*args
, **kwargs
):
2027 """IsOk() -> bool"""
2028 return _misc
.Wave_IsOk(*args
, **kwargs
)
2030 def Play(*args
, **kwargs
):
2031 """Play(bool async=True, bool looped=False) -> bool"""
2032 return _misc
.Wave_Play(*args
, **kwargs
)
2034 def __nonzero__(self
): return self
.IsOk()
2036 class WavePtr(Wave
):
2037 def __init__(self
, this
):
2039 if not hasattr(self
,"thisown"): self
.thisown
= 0
2040 self
.__class
__ = Wave
2041 _misc
.Wave_swigregister(WavePtr
)
2043 def WaveData(*args
, **kwargs
):
2044 """WaveData(wxString data) -> Wave"""
2045 val
= _misc
.new_WaveData(*args
, **kwargs
)
2049 #---------------------------------------------------------------------------
2051 MAILCAP_STANDARD
= _misc
.MAILCAP_STANDARD
2052 MAILCAP_NETSCAPE
= _misc
.MAILCAP_NETSCAPE
2053 MAILCAP_KDE
= _misc
.MAILCAP_KDE
2054 MAILCAP_GNOME
= _misc
.MAILCAP_GNOME
2055 MAILCAP_ALL
= _misc
.MAILCAP_ALL
2056 class FileTypeInfo(object):
2059 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2060 def __init__(self
, *args
, **kwargs
):
2061 """__init__(wxString mimeType, wxString openCmd, wxString printCmd,
2062 wxString desc) -> FileTypeInfo"""
2063 newobj
= _misc
.new_FileTypeInfo(*args
, **kwargs
)
2064 self
.this
= newobj
.this
2067 def IsValid(*args
, **kwargs
):
2068 """IsValid() -> bool"""
2069 return _misc
.FileTypeInfo_IsValid(*args
, **kwargs
)
2071 def SetIcon(*args
, **kwargs
):
2072 """SetIcon(wxString iconFile, int iconIndex=0)"""
2073 return _misc
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2075 def SetShortDesc(*args
, **kwargs
):
2076 """SetShortDesc(wxString shortDesc)"""
2077 return _misc
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2079 def GetMimeType(*args
, **kwargs
):
2080 """GetMimeType() -> wxString"""
2081 return _misc
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2083 def GetOpenCommand(*args
, **kwargs
):
2084 """GetOpenCommand() -> wxString"""
2085 return _misc
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2087 def GetPrintCommand(*args
, **kwargs
):
2088 """GetPrintCommand() -> wxString"""
2089 return _misc
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2091 def GetShortDesc(*args
, **kwargs
):
2092 """GetShortDesc() -> wxString"""
2093 return _misc
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2095 def GetDescription(*args
, **kwargs
):
2096 """GetDescription() -> wxString"""
2097 return _misc
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2099 def GetExtensions(*args
, **kwargs
):
2100 """GetExtensions() -> wxArrayString"""
2101 return _misc
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2103 def GetExtensionsCount(*args
, **kwargs
):
2104 """GetExtensionsCount() -> int"""
2105 return _misc
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2107 def GetIconFile(*args
, **kwargs
):
2108 """GetIconFile() -> wxString"""
2109 return _misc
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2111 def GetIconIndex(*args
, **kwargs
):
2112 """GetIconIndex() -> int"""
2113 return _misc
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2116 class FileTypeInfoPtr(FileTypeInfo
):
2117 def __init__(self
, this
):
2119 if not hasattr(self
,"thisown"): self
.thisown
= 0
2120 self
.__class
__ = FileTypeInfo
2121 _misc
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2123 def FileTypeInfoSequence(*args
, **kwargs
):
2124 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2125 val
= _misc
.new_FileTypeInfoSequence(*args
, **kwargs
)
2129 def NullFileTypeInfo(*args
, **kwargs
):
2130 """NullFileTypeInfo() -> FileTypeInfo"""
2131 val
= _misc
.new_NullFileTypeInfo(*args
, **kwargs
)
2135 class FileType(object):
2138 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2139 def __init__(self
, *args
, **kwargs
):
2140 """__init__(FileTypeInfo ftInfo) -> FileType"""
2141 newobj
= _misc
.new_FileType(*args
, **kwargs
)
2142 self
.this
= newobj
.this
2145 def __del__(self
, destroy
=_misc
.delete_FileType
):
2148 if self
.thisown
: destroy(self
)
2151 def GetMimeType(*args
, **kwargs
):
2152 """GetMimeType() -> PyObject"""
2153 return _misc
.FileType_GetMimeType(*args
, **kwargs
)
2155 def GetMimeTypes(*args
, **kwargs
):
2156 """GetMimeTypes() -> PyObject"""
2157 return _misc
.FileType_GetMimeTypes(*args
, **kwargs
)
2159 def GetExtensions(*args
, **kwargs
):
2160 """GetExtensions() -> PyObject"""
2161 return _misc
.FileType_GetExtensions(*args
, **kwargs
)
2163 def GetIcon(*args
, **kwargs
):
2164 """GetIcon() -> wxIcon"""
2165 return _misc
.FileType_GetIcon(*args
, **kwargs
)
2167 def GetIconInfo(*args
, **kwargs
):
2168 """GetIconInfo() -> PyObject"""
2169 return _misc
.FileType_GetIconInfo(*args
, **kwargs
)
2171 def GetDescription(*args
, **kwargs
):
2172 """GetDescription() -> PyObject"""
2173 return _misc
.FileType_GetDescription(*args
, **kwargs
)
2175 def GetOpenCommand(*args
, **kwargs
):
2176 """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2177 return _misc
.FileType_GetOpenCommand(*args
, **kwargs
)
2179 def GetPrintCommand(*args
, **kwargs
):
2180 """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2181 return _misc
.FileType_GetPrintCommand(*args
, **kwargs
)
2183 def GetAllCommands(*args
, **kwargs
):
2184 """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2185 return _misc
.FileType_GetAllCommands(*args
, **kwargs
)
2187 def SetCommand(*args
, **kwargs
):
2188 """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool"""
2189 return _misc
.FileType_SetCommand(*args
, **kwargs
)
2191 def SetDefaultIcon(*args
, **kwargs
):
2192 """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool"""
2193 return _misc
.FileType_SetDefaultIcon(*args
, **kwargs
)
2195 def Unassociate(*args
, **kwargs
):
2196 """Unassociate() -> bool"""
2197 return _misc
.FileType_Unassociate(*args
, **kwargs
)
2199 def ExpandCommand(*args
, **kwargs
):
2200 """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2201 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2203 ExpandCommand
= staticmethod(ExpandCommand
)
2205 class FileTypePtr(FileType
):
2206 def __init__(self
, this
):
2208 if not hasattr(self
,"thisown"): self
.thisown
= 0
2209 self
.__class
__ = FileType
2210 _misc
.FileType_swigregister(FileTypePtr
)
2212 def FileType_ExpandCommand(*args
, **kwargs
):
2213 """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2214 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2216 class MimeTypesManager(object):
2219 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2220 def IsOfType(*args
, **kwargs
):
2221 """MimeTypesManager.IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2222 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2224 IsOfType
= staticmethod(IsOfType
)
2225 def __init__(self
, *args
, **kwargs
):
2226 """__init__() -> MimeTypesManager"""
2227 newobj
= _misc
.new_MimeTypesManager(*args
, **kwargs
)
2228 self
.this
= newobj
.this
2231 def Initialize(*args
, **kwargs
):
2232 """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)"""
2233 return _misc
.MimeTypesManager_Initialize(*args
, **kwargs
)
2235 def ClearData(*args
, **kwargs
):
2237 return _misc
.MimeTypesManager_ClearData(*args
, **kwargs
)
2239 def GetFileTypeFromExtension(*args
, **kwargs
):
2240 """GetFileTypeFromExtension(wxString ext) -> FileType"""
2241 return _misc
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2243 def GetFileTypeFromMimeType(*args
, **kwargs
):
2244 """GetFileTypeFromMimeType(wxString mimeType) -> FileType"""
2245 return _misc
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2247 def ReadMailcap(*args
, **kwargs
):
2248 """ReadMailcap(wxString filename, bool fallback=False) -> bool"""
2249 return _misc
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2251 def ReadMimeTypes(*args
, **kwargs
):
2252 """ReadMimeTypes(wxString filename) -> bool"""
2253 return _misc
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2255 def EnumAllFileTypes(*args
, **kwargs
):
2256 """EnumAllFileTypes() -> PyObject"""
2257 return _misc
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2259 def AddFallback(*args
, **kwargs
):
2260 """AddFallback(FileTypeInfo ft)"""
2261 return _misc
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2263 def Associate(*args
, **kwargs
):
2264 """Associate(FileTypeInfo ftInfo) -> FileType"""
2265 return _misc
.MimeTypesManager_Associate(*args
, **kwargs
)
2267 def Unassociate(*args
, **kwargs
):
2268 """Unassociate(FileType ft) -> bool"""
2269 return _misc
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2271 def __del__(self
, destroy
=_misc
.delete_MimeTypesManager
):
2274 if self
.thisown
: destroy(self
)
2278 class MimeTypesManagerPtr(MimeTypesManager
):
2279 def __init__(self
, this
):
2281 if not hasattr(self
,"thisown"): self
.thisown
= 0
2282 self
.__class
__ = MimeTypesManager
2283 _misc
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2285 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2287 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2288 """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2289 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2291 #---------------------------------------------------------------------------
2293 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
):
2310 """ArtProvider.PushProvider(ArtProvider provider)
2312 Add new provider to the top of providers stack."""
2313 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2315 PushProvider
= staticmethod(PushProvider
)
2316 def PopProvider(*args
, **kwargs
):
2317 """ArtProvider.PopProvider() -> bool
2319 Remove latest added provider and delete it."""
2320 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2322 PopProvider
= staticmethod(PopProvider
)
2323 def RemoveProvider(*args
, **kwargs
):
2324 """ArtProvider.RemoveProvider(ArtProvider provider) -> bool
2326 Remove provider. The provider must have been added previously!
2327 The provider is _not_ deleted."""
2328 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2330 RemoveProvider
= staticmethod(RemoveProvider
)
2331 def GetBitmap(*args
, **kwargs
):
2332 """ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2334 Query the providers for bitmap with given ID and return it. Return
2335 wx.NullBitmap if no provider provides it."""
2336 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2338 GetBitmap
= staticmethod(GetBitmap
)
2339 def GetIcon(*args
, **kwargs
):
2340 """ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2342 Query the providers for icon with given ID and return it. Return
2343 wx.NullIcon if no provider provides it."""
2344 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2346 GetIcon
= staticmethod(GetIcon
)
2347 def Destroy(*args
, **kwargs
):
2349 return _misc
.ArtProvider_Destroy(*args
, **kwargs
)
2352 class ArtProviderPtr(ArtProvider
):
2353 def __init__(self
, this
):
2355 if not hasattr(self
,"thisown"): self
.thisown
= 0
2356 self
.__class
__ = ArtProvider
2357 _misc
.ArtProvider_swigregister(ArtProviderPtr
)
2358 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2359 ART_MENU
= cvar
.ART_MENU
2360 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2361 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2362 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2363 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2364 ART_OTHER
= cvar
.ART_OTHER
2365 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2366 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2367 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2368 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2369 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2370 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2371 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2372 ART_GO_BACK
= cvar
.ART_GO_BACK
2373 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2374 ART_GO_UP
= cvar
.ART_GO_UP
2375 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2376 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2377 ART_GO_HOME
= cvar
.ART_GO_HOME
2378 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2379 ART_PRINT
= cvar
.ART_PRINT
2380 ART_HELP
= cvar
.ART_HELP
2381 ART_TIP
= cvar
.ART_TIP
2382 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2383 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2384 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2385 ART_FOLDER
= cvar
.ART_FOLDER
2386 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2387 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2388 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2389 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2390 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2391 ART_ERROR
= cvar
.ART_ERROR
2392 ART_QUESTION
= cvar
.ART_QUESTION
2393 ART_WARNING
= cvar
.ART_WARNING
2394 ART_INFORMATION
= cvar
.ART_INFORMATION
2395 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2397 def ArtProvider_PushProvider(*args
, **kwargs
):
2398 """ArtProvider_PushProvider(ArtProvider provider)
2400 Add new provider to the top of providers stack."""
2401 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2403 def ArtProvider_PopProvider(*args
, **kwargs
):
2404 """ArtProvider_PopProvider() -> bool
2406 Remove latest added provider and delete it."""
2407 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2409 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2410 """ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2412 Remove provider. The provider must have been added previously!
2413 The provider is _not_ deleted."""
2414 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2416 def ArtProvider_GetBitmap(*args
, **kwargs
):
2417 """ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2419 Query the providers for bitmap with given ID and return it. Return
2420 wx.NullBitmap if no provider provides it."""
2421 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2423 def ArtProvider_GetIcon(*args
, **kwargs
):
2424 """ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2426 Query the providers for icon with given ID and return it. Return
2427 wx.NullIcon if no provider provides it."""
2428 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2430 #---------------------------------------------------------------------------
2432 CONFIG_USE_LOCAL_FILE
= _misc
.CONFIG_USE_LOCAL_FILE
2433 CONFIG_USE_GLOBAL_FILE
= _misc
.CONFIG_USE_GLOBAL_FILE
2434 CONFIG_USE_RELATIVE_PATH
= _misc
.CONFIG_USE_RELATIVE_PATH
2435 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2436 class ConfigBase(object):
2438 def __init__(self
): raise RuntimeError, "No constructor defined"
2440 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2441 def __del__(self
, destroy
=_misc
.delete_ConfigBase
):
2444 if self
.thisown
: destroy(self
)
2447 Type_Unknown
= _misc
.ConfigBase_Type_Unknown
2448 Type_String
= _misc
.ConfigBase_Type_String
2449 Type_Boolean
= _misc
.ConfigBase_Type_Boolean
2450 Type_Integer
= _misc
.ConfigBase_Type_Integer
2451 Type_Float
= _misc
.ConfigBase_Type_Float
2452 def Set(*args
, **kwargs
):
2453 """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase"""
2454 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2456 Set
= staticmethod(Set
)
2457 def Get(*args
, **kwargs
):
2458 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2459 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2461 Get
= staticmethod(Get
)
2462 def Create(*args
, **kwargs
):
2463 """ConfigBase.Create() -> ConfigBase"""
2464 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2466 Create
= staticmethod(Create
)
2467 def DontCreateOnDemand(*args
, **kwargs
):
2468 """ConfigBase.DontCreateOnDemand()"""
2469 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2471 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2472 def SetPath(*args
, **kwargs
):
2473 """SetPath(wxString strPath)"""
2474 return _misc
.ConfigBase_SetPath(*args
, **kwargs
)
2476 def GetPath(*args
, **kwargs
):
2477 """GetPath() -> wxString"""
2478 return _misc
.ConfigBase_GetPath(*args
, **kwargs
)
2480 def GetFirstGroup(*args
, **kwargs
):
2481 """GetFirstGroup() -> PyObject"""
2482 return _misc
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2484 def GetNextGroup(*args
, **kwargs
):
2485 """GetNextGroup(long index) -> PyObject"""
2486 return _misc
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2488 def GetFirstEntry(*args
, **kwargs
):
2489 """GetFirstEntry() -> PyObject"""
2490 return _misc
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2492 def GetNextEntry(*args
, **kwargs
):
2493 """GetNextEntry(long index) -> PyObject"""
2494 return _misc
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2496 def GetNumberOfEntries(*args
, **kwargs
):
2497 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2498 return _misc
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2500 def GetNumberOfGroups(*args
, **kwargs
):
2501 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2502 return _misc
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2504 def HasGroup(*args
, **kwargs
):
2505 """HasGroup(wxString strName) -> bool"""
2506 return _misc
.ConfigBase_HasGroup(*args
, **kwargs
)
2508 def HasEntry(*args
, **kwargs
):
2509 """HasEntry(wxString strName) -> bool"""
2510 return _misc
.ConfigBase_HasEntry(*args
, **kwargs
)
2512 def Exists(*args
, **kwargs
):
2513 """Exists(wxString strName) -> bool"""
2514 return _misc
.ConfigBase_Exists(*args
, **kwargs
)
2516 def GetEntryType(*args
, **kwargs
):
2517 """GetEntryType(wxString name) -> wxConfigBase::EntryType"""
2518 return _misc
.ConfigBase_GetEntryType(*args
, **kwargs
)
2520 def Read(*args
, **kwargs
):
2521 """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString"""
2522 return _misc
.ConfigBase_Read(*args
, **kwargs
)
2524 def ReadInt(*args
, **kwargs
):
2525 """ReadInt(wxString key, long defaultVal=0) -> long"""
2526 return _misc
.ConfigBase_ReadInt(*args
, **kwargs
)
2528 def ReadFloat(*args
, **kwargs
):
2529 """ReadFloat(wxString key, double defaultVal=0.0) -> double"""
2530 return _misc
.ConfigBase_ReadFloat(*args
, **kwargs
)
2532 def ReadBool(*args
, **kwargs
):
2533 """ReadBool(wxString key, bool defaultVal=False) -> bool"""
2534 return _misc
.ConfigBase_ReadBool(*args
, **kwargs
)
2536 def Write(*args
, **kwargs
):
2537 """Write(wxString key, wxString value) -> bool"""
2538 return _misc
.ConfigBase_Write(*args
, **kwargs
)
2540 def WriteInt(*args
, **kwargs
):
2541 """WriteInt(wxString key, long value) -> bool"""
2542 return _misc
.ConfigBase_WriteInt(*args
, **kwargs
)
2544 def WriteFloat(*args
, **kwargs
):
2545 """WriteFloat(wxString key, double value) -> bool"""
2546 return _misc
.ConfigBase_WriteFloat(*args
, **kwargs
)
2548 def WriteBool(*args
, **kwargs
):
2549 """WriteBool(wxString key, bool value) -> bool"""
2550 return _misc
.ConfigBase_WriteBool(*args
, **kwargs
)
2552 def Flush(*args
, **kwargs
):
2553 """Flush(bool bCurrentOnly=False) -> bool"""
2554 return _misc
.ConfigBase_Flush(*args
, **kwargs
)
2556 def RenameEntry(*args
, **kwargs
):
2557 """RenameEntry(wxString oldName, wxString newName) -> bool"""
2558 return _misc
.ConfigBase_RenameEntry(*args
, **kwargs
)
2560 def RenameGroup(*args
, **kwargs
):
2561 """RenameGroup(wxString oldName, wxString newName) -> bool"""
2562 return _misc
.ConfigBase_RenameGroup(*args
, **kwargs
)
2564 def DeleteEntry(*args
, **kwargs
):
2565 """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool"""
2566 return _misc
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2568 def DeleteGroup(*args
, **kwargs
):
2569 """DeleteGroup(wxString key) -> bool"""
2570 return _misc
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2572 def DeleteAll(*args
, **kwargs
):
2573 """DeleteAll() -> bool"""
2574 return _misc
.ConfigBase_DeleteAll(*args
, **kwargs
)
2576 def IsExpandingEnvVars(*args
, **kwargs
):
2577 """IsExpandingEnvVars() -> bool"""
2578 return _misc
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2580 def SetExpandEnvVars(*args
, **kwargs
):
2581 """SetExpandEnvVars(bool bDoIt=True)"""
2582 return _misc
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2584 def SetRecordDefaults(*args
, **kwargs
):
2585 """SetRecordDefaults(bool bDoIt=True)"""
2586 return _misc
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2588 def IsRecordingDefaults(*args
, **kwargs
):
2589 """IsRecordingDefaults() -> bool"""
2590 return _misc
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2592 def ExpandEnvVars(*args
, **kwargs
):
2593 """ExpandEnvVars(wxString str) -> wxString"""
2594 return _misc
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2596 def GetAppName(*args
, **kwargs
):
2597 """GetAppName() -> wxString"""
2598 return _misc
.ConfigBase_GetAppName(*args
, **kwargs
)
2600 def GetVendorName(*args
, **kwargs
):
2601 """GetVendorName() -> wxString"""
2602 return _misc
.ConfigBase_GetVendorName(*args
, **kwargs
)
2604 def SetAppName(*args
, **kwargs
):
2605 """SetAppName(wxString appName)"""
2606 return _misc
.ConfigBase_SetAppName(*args
, **kwargs
)
2608 def SetVendorName(*args
, **kwargs
):
2609 """SetVendorName(wxString vendorName)"""
2610 return _misc
.ConfigBase_SetVendorName(*args
, **kwargs
)
2612 def SetStyle(*args
, **kwargs
):
2613 """SetStyle(long style)"""
2614 return _misc
.ConfigBase_SetStyle(*args
, **kwargs
)
2616 def GetStyle(*args
, **kwargs
):
2617 """GetStyle() -> long"""
2618 return _misc
.ConfigBase_GetStyle(*args
, **kwargs
)
2621 class ConfigBasePtr(ConfigBase
):
2622 def __init__(self
, this
):
2624 if not hasattr(self
,"thisown"): self
.thisown
= 0
2625 self
.__class
__ = ConfigBase
2626 _misc
.ConfigBase_swigregister(ConfigBasePtr
)
2628 def ConfigBase_Set(*args
, **kwargs
):
2629 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2630 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2632 def ConfigBase_Get(*args
, **kwargs
):
2633 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2634 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2636 def ConfigBase_Create(*args
, **kwargs
):
2637 """ConfigBase_Create() -> ConfigBase"""
2638 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2640 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
2641 """ConfigBase_DontCreateOnDemand()"""
2642 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2644 class ConfigPathChanger(object):
2647 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2648 def __init__(self
, *args
, **kwargs
):
2649 """__init__(ConfigBase pContainer, wxString strEntry) -> ConfigPathChanger"""
2650 newobj
= _misc
.new_ConfigPathChanger(*args
, **kwargs
)
2651 self
.this
= newobj
.this
2654 def __del__(self
, destroy
=_misc
.delete_ConfigPathChanger
):
2657 if self
.thisown
: destroy(self
)
2660 def Name(*args
, **kwargs
):
2661 """Name() -> wxString"""
2662 return _misc
.ConfigPathChanger_Name(*args
, **kwargs
)
2665 class ConfigPathChangerPtr(ConfigPathChanger
):
2666 def __init__(self
, this
):
2668 if not hasattr(self
,"thisown"): self
.thisown
= 0
2669 self
.__class
__ = ConfigPathChanger
2670 _misc
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
2672 class Config(ConfigBase
):
2675 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2676 def __init__(self
, *args
, **kwargs
):
2677 """__init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2678 wxString localFilename=wxPyEmptyString,
2679 wxString globalFilename=wxPyEmptyString,
2680 long style=0) -> Config"""
2681 newobj
= _misc
.new_Config(*args
, **kwargs
)
2682 self
.this
= newobj
.this
2685 def __del__(self
, destroy
=_misc
.delete_Config
):
2688 if self
.thisown
: destroy(self
)
2692 class ConfigPtr(Config
):
2693 def __init__(self
, this
):
2695 if not hasattr(self
,"thisown"): self
.thisown
= 0
2696 self
.__class
__ = Config
2697 _misc
.Config_swigregister(ConfigPtr
)
2699 class FileConfig(ConfigBase
):
2702 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2703 def __init__(self
, *args
, **kwargs
):
2704 """__init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2705 wxString localFilename=wxPyEmptyString,
2706 wxString globalFilename=wxPyEmptyString,
2707 long style=0) -> FileConfig"""
2708 newobj
= _misc
.new_FileConfig(*args
, **kwargs
)
2709 self
.this
= newobj
.this
2712 def __del__(self
, destroy
=_misc
.delete_FileConfig
):
2715 if self
.thisown
: destroy(self
)
2719 class FileConfigPtr(FileConfig
):
2720 def __init__(self
, this
):
2722 if not hasattr(self
,"thisown"): self
.thisown
= 0
2723 self
.__class
__ = FileConfig
2724 _misc
.FileConfig_swigregister(FileConfigPtr
)
2727 def ExpandEnvVars(*args
, **kwargs
):
2728 """ExpandEnvVars(wxString sz) -> wxString"""
2729 return _misc
.ExpandEnvVars(*args
, **kwargs
)
2730 #---------------------------------------------------------------------------
2732 class DateTime(object):
2735 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2736 Local
= _misc
.DateTime_Local
2737 GMT_12
= _misc
.DateTime_GMT_12
2738 GMT_11
= _misc
.DateTime_GMT_11
2739 GMT_10
= _misc
.DateTime_GMT_10
2740 GMT_9
= _misc
.DateTime_GMT_9
2741 GMT_8
= _misc
.DateTime_GMT_8
2742 GMT_7
= _misc
.DateTime_GMT_7
2743 GMT_6
= _misc
.DateTime_GMT_6
2744 GMT_5
= _misc
.DateTime_GMT_5
2745 GMT_4
= _misc
.DateTime_GMT_4
2746 GMT_3
= _misc
.DateTime_GMT_3
2747 GMT_2
= _misc
.DateTime_GMT_2
2748 GMT_1
= _misc
.DateTime_GMT_1
2749 GMT0
= _misc
.DateTime_GMT0
2750 GMT1
= _misc
.DateTime_GMT1
2751 GMT2
= _misc
.DateTime_GMT2
2752 GMT3
= _misc
.DateTime_GMT3
2753 GMT4
= _misc
.DateTime_GMT4
2754 GMT5
= _misc
.DateTime_GMT5
2755 GMT6
= _misc
.DateTime_GMT6
2756 GMT7
= _misc
.DateTime_GMT7
2757 GMT8
= _misc
.DateTime_GMT8
2758 GMT9
= _misc
.DateTime_GMT9
2759 GMT10
= _misc
.DateTime_GMT10
2760 GMT11
= _misc
.DateTime_GMT11
2761 GMT12
= _misc
.DateTime_GMT12
2762 WET
= _misc
.DateTime_WET
2763 WEST
= _misc
.DateTime_WEST
2764 CET
= _misc
.DateTime_CET
2765 CEST
= _misc
.DateTime_CEST
2766 EET
= _misc
.DateTime_EET
2767 EEST
= _misc
.DateTime_EEST
2768 MSK
= _misc
.DateTime_MSK
2769 MSD
= _misc
.DateTime_MSD
2770 AST
= _misc
.DateTime_AST
2771 ADT
= _misc
.DateTime_ADT
2772 EST
= _misc
.DateTime_EST
2773 EDT
= _misc
.DateTime_EDT
2774 CST
= _misc
.DateTime_CST
2775 CDT
= _misc
.DateTime_CDT
2776 MST
= _misc
.DateTime_MST
2777 MDT
= _misc
.DateTime_MDT
2778 PST
= _misc
.DateTime_PST
2779 PDT
= _misc
.DateTime_PDT
2780 HST
= _misc
.DateTime_HST
2781 AKST
= _misc
.DateTime_AKST
2782 AKDT
= _misc
.DateTime_AKDT
2783 A_WST
= _misc
.DateTime_A_WST
2784 A_CST
= _misc
.DateTime_A_CST
2785 A_EST
= _misc
.DateTime_A_EST
2786 A_ESST
= _misc
.DateTime_A_ESST
2787 UTC
= _misc
.DateTime_UTC
2788 Gregorian
= _misc
.DateTime_Gregorian
2789 Julian
= _misc
.DateTime_Julian
2790 Gr_Unknown
= _misc
.DateTime_Gr_Unknown
2791 Gr_Standard
= _misc
.DateTime_Gr_Standard
2792 Gr_Alaska
= _misc
.DateTime_Gr_Alaska
2793 Gr_Albania
= _misc
.DateTime_Gr_Albania
2794 Gr_Austria
= _misc
.DateTime_Gr_Austria
2795 Gr_Austria_Brixen
= _misc
.DateTime_Gr_Austria_Brixen
2796 Gr_Austria_Salzburg
= _misc
.DateTime_Gr_Austria_Salzburg
2797 Gr_Austria_Tyrol
= _misc
.DateTime_Gr_Austria_Tyrol
2798 Gr_Austria_Carinthia
= _misc
.DateTime_Gr_Austria_Carinthia
2799 Gr_Austria_Styria
= _misc
.DateTime_Gr_Austria_Styria
2800 Gr_Belgium
= _misc
.DateTime_Gr_Belgium
2801 Gr_Bulgaria
= _misc
.DateTime_Gr_Bulgaria
2802 Gr_Bulgaria_1
= _misc
.DateTime_Gr_Bulgaria_1
2803 Gr_Bulgaria_2
= _misc
.DateTime_Gr_Bulgaria_2
2804 Gr_Bulgaria_3
= _misc
.DateTime_Gr_Bulgaria_3
2805 Gr_Canada
= _misc
.DateTime_Gr_Canada
2806 Gr_China
= _misc
.DateTime_Gr_China
2807 Gr_China_1
= _misc
.DateTime_Gr_China_1
2808 Gr_China_2
= _misc
.DateTime_Gr_China_2
2809 Gr_Czechoslovakia
= _misc
.DateTime_Gr_Czechoslovakia
2810 Gr_Denmark
= _misc
.DateTime_Gr_Denmark
2811 Gr_Egypt
= _misc
.DateTime_Gr_Egypt
2812 Gr_Estonia
= _misc
.DateTime_Gr_Estonia
2813 Gr_Finland
= _misc
.DateTime_Gr_Finland
2814 Gr_France
= _misc
.DateTime_Gr_France
2815 Gr_France_Alsace
= _misc
.DateTime_Gr_France_Alsace
2816 Gr_France_Lorraine
= _misc
.DateTime_Gr_France_Lorraine
2817 Gr_France_Strasbourg
= _misc
.DateTime_Gr_France_Strasbourg
2818 Gr_Germany
= _misc
.DateTime_Gr_Germany
2819 Gr_Germany_Catholic
= _misc
.DateTime_Gr_Germany_Catholic
2820 Gr_Germany_Prussia
= _misc
.DateTime_Gr_Germany_Prussia
2821 Gr_Germany_Protestant
= _misc
.DateTime_Gr_Germany_Protestant
2822 Gr_GreatBritain
= _misc
.DateTime_Gr_GreatBritain
2823 Gr_Greece
= _misc
.DateTime_Gr_Greece
2824 Gr_Hungary
= _misc
.DateTime_Gr_Hungary
2825 Gr_Ireland
= _misc
.DateTime_Gr_Ireland
2826 Gr_Italy
= _misc
.DateTime_Gr_Italy
2827 Gr_Japan
= _misc
.DateTime_Gr_Japan
2828 Gr_Japan_1
= _misc
.DateTime_Gr_Japan_1
2829 Gr_Japan_2
= _misc
.DateTime_Gr_Japan_2
2830 Gr_Japan_3
= _misc
.DateTime_Gr_Japan_3
2831 Gr_Latvia
= _misc
.DateTime_Gr_Latvia
2832 Gr_Lithuania
= _misc
.DateTime_Gr_Lithuania
2833 Gr_Luxemburg
= _misc
.DateTime_Gr_Luxemburg
2834 Gr_Netherlands
= _misc
.DateTime_Gr_Netherlands
2835 Gr_Netherlands_Groningen
= _misc
.DateTime_Gr_Netherlands_Groningen
2836 Gr_Netherlands_Gelderland
= _misc
.DateTime_Gr_Netherlands_Gelderland
2837 Gr_Netherlands_Utrecht
= _misc
.DateTime_Gr_Netherlands_Utrecht
2838 Gr_Netherlands_Friesland
= _misc
.DateTime_Gr_Netherlands_Friesland
2839 Gr_Norway
= _misc
.DateTime_Gr_Norway
2840 Gr_Poland
= _misc
.DateTime_Gr_Poland
2841 Gr_Portugal
= _misc
.DateTime_Gr_Portugal
2842 Gr_Romania
= _misc
.DateTime_Gr_Romania
2843 Gr_Russia
= _misc
.DateTime_Gr_Russia
2844 Gr_Scotland
= _misc
.DateTime_Gr_Scotland
2845 Gr_Spain
= _misc
.DateTime_Gr_Spain
2846 Gr_Sweden
= _misc
.DateTime_Gr_Sweden
2847 Gr_Switzerland
= _misc
.DateTime_Gr_Switzerland
2848 Gr_Switzerland_Catholic
= _misc
.DateTime_Gr_Switzerland_Catholic
2849 Gr_Switzerland_Protestant
= _misc
.DateTime_Gr_Switzerland_Protestant
2850 Gr_Turkey
= _misc
.DateTime_Gr_Turkey
2851 Gr_USA
= _misc
.DateTime_Gr_USA
2852 Gr_Wales
= _misc
.DateTime_Gr_Wales
2853 Gr_Yugoslavia
= _misc
.DateTime_Gr_Yugoslavia
2854 Country_Unknown
= _misc
.DateTime_Country_Unknown
2855 Country_Default
= _misc
.DateTime_Country_Default
2856 Country_WesternEurope_Start
= _misc
.DateTime_Country_WesternEurope_Start
2857 Country_EEC
= _misc
.DateTime_Country_EEC
2858 France
= _misc
.DateTime_France
2859 Germany
= _misc
.DateTime_Germany
2860 UK
= _misc
.DateTime_UK
2861 Country_WesternEurope_End
= _misc
.DateTime_Country_WesternEurope_End
2862 Russia
= _misc
.DateTime_Russia
2863 USA
= _misc
.DateTime_USA
2864 Jan
= _misc
.DateTime_Jan
2865 Feb
= _misc
.DateTime_Feb
2866 Mar
= _misc
.DateTime_Mar
2867 Apr
= _misc
.DateTime_Apr
2868 May
= _misc
.DateTime_May
2869 Jun
= _misc
.DateTime_Jun
2870 Jul
= _misc
.DateTime_Jul
2871 Aug
= _misc
.DateTime_Aug
2872 Sep
= _misc
.DateTime_Sep
2873 Oct
= _misc
.DateTime_Oct
2874 Nov
= _misc
.DateTime_Nov
2875 Dec
= _misc
.DateTime_Dec
2876 Inv_Month
= _misc
.DateTime_Inv_Month
2877 Sun
= _misc
.DateTime_Sun
2878 Mon
= _misc
.DateTime_Mon
2879 Tue
= _misc
.DateTime_Tue
2880 Wed
= _misc
.DateTime_Wed
2881 Thu
= _misc
.DateTime_Thu
2882 Fri
= _misc
.DateTime_Fri
2883 Sat
= _misc
.DateTime_Sat
2884 Inv_WeekDay
= _misc
.DateTime_Inv_WeekDay
2885 Inv_Year
= _misc
.DateTime_Inv_Year
2886 Name_Full
= _misc
.DateTime_Name_Full
2887 Name_Abbr
= _misc
.DateTime_Name_Abbr
2888 Default_First
= _misc
.DateTime_Default_First
2889 Monday_First
= _misc
.DateTime_Monday_First
2890 Sunday_First
= _misc
.DateTime_Sunday_First
2891 def SetCountry(*args
, **kwargs
):
2892 """DateTime.SetCountry(wxDateTime::Country country)"""
2893 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
2895 SetCountry
= staticmethod(SetCountry
)
2896 def GetCountry(*args
, **kwargs
):
2897 """DateTime.GetCountry() -> wxDateTime::Country"""
2898 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
2900 GetCountry
= staticmethod(GetCountry
)
2901 def IsWestEuropeanCountry(*args
, **kwargs
):
2902 """DateTime.IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
2903 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
2905 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
2906 def GetCurrentYear(*args
, **kwargs
):
2907 """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
2908 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
2910 GetCurrentYear
= staticmethod(GetCurrentYear
)
2911 def ConvertYearToBC(*args
, **kwargs
):
2912 """DateTime.ConvertYearToBC(int year) -> int"""
2913 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
2915 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
2916 def GetCurrentMonth(*args
, **kwargs
):
2917 """DateTime.GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
2918 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
2920 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
2921 def IsLeapYear(*args
, **kwargs
):
2922 """DateTime.IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
2923 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
2925 IsLeapYear
= staticmethod(IsLeapYear
)
2926 def GetCentury(*args
, **kwargs
):
2927 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2928 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
2930 GetCentury
= staticmethod(GetCentury
)
2931 def GetNumberOfDaysinYear(*args
, **kwargs
):
2932 """DateTime.GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
2933 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
2935 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
2936 def GetNumberOfDaysInMonth(*args
, **kwargs
):
2937 """DateTime.GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
2938 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
2940 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
2941 def GetMonthName(*args
, **kwargs
):
2942 """DateTime.GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2943 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
2945 GetMonthName
= staticmethod(GetMonthName
)
2946 def GetWeekDayName(*args
, **kwargs
):
2947 """DateTime.GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2948 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
2950 GetWeekDayName
= staticmethod(GetWeekDayName
)
2951 def GetAmPmStrings(*args
, **kwargs
):
2952 """GetAmPmStrings() -> (am, pm)
2954 Get the AM and PM strings in the current locale (may be empty)"""
2955 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
2957 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
2958 def IsDSTApplicable(*args
, **kwargs
):
2959 """DateTime.IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
2960 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
2962 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
2963 def GetBeginDST(*args
, **kwargs
):
2964 """DateTime.GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2965 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
2967 GetBeginDST
= staticmethod(GetBeginDST
)
2968 def GetEndDST(*args
, **kwargs
):
2969 """DateTime.GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2970 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
2972 GetEndDST
= staticmethod(GetEndDST
)
2973 def Now(*args
, **kwargs
):
2974 """DateTime.Now() -> DateTime"""
2975 return _misc
.DateTime_Now(*args
, **kwargs
)
2977 Now
= staticmethod(Now
)
2978 def UNow(*args
, **kwargs
):
2979 """DateTime.UNow() -> DateTime"""
2980 return _misc
.DateTime_UNow(*args
, **kwargs
)
2982 UNow
= staticmethod(UNow
)
2983 def Today(*args
, **kwargs
):
2984 """DateTime.Today() -> DateTime"""
2985 return _misc
.DateTime_Today(*args
, **kwargs
)
2987 Today
= staticmethod(Today
)
2988 def __init__(self
, *args
, **kwargs
):
2989 """__init__() -> DateTime"""
2990 newobj
= _misc
.new_DateTime(*args
, **kwargs
)
2991 self
.this
= newobj
.this
2994 def __del__(self
, destroy
=_misc
.delete_DateTime
):
2997 if self
.thisown
: destroy(self
)
3000 def SetToCurrent(*args
, **kwargs
):
3001 """SetToCurrent() -> DateTime"""
3002 return _misc
.DateTime_SetToCurrent(*args
, **kwargs
)
3004 def SetTimeT(*args
, **kwargs
):
3005 """SetTimeT(time_t timet) -> DateTime"""
3006 return _misc
.DateTime_SetTimeT(*args
, **kwargs
)
3008 def SetJDN(*args
, **kwargs
):
3009 """SetJDN(double jdn) -> DateTime"""
3010 return _misc
.DateTime_SetJDN(*args
, **kwargs
)
3012 def SetHMS(*args
, **kwargs
):
3013 """SetHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3014 return _misc
.DateTime_SetHMS(*args
, **kwargs
)
3016 def Set(*args
, **kwargs
):
3017 """Set(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3018 int hour=0, int minute=0, int second=0,
3019 int millisec=0) -> DateTime"""
3020 return _misc
.DateTime_Set(*args
, **kwargs
)
3022 def ResetTime(*args
, **kwargs
):
3023 """ResetTime() -> DateTime"""
3024 return _misc
.DateTime_ResetTime(*args
, **kwargs
)
3026 def SetYear(*args
, **kwargs
):
3027 """SetYear(int year) -> DateTime"""
3028 return _misc
.DateTime_SetYear(*args
, **kwargs
)
3030 def SetMonth(*args
, **kwargs
):
3031 """SetMonth(wxDateTime::Month month) -> DateTime"""
3032 return _misc
.DateTime_SetMonth(*args
, **kwargs
)
3034 def SetDay(*args
, **kwargs
):
3035 """SetDay(int day) -> DateTime"""
3036 return _misc
.DateTime_SetDay(*args
, **kwargs
)
3038 def SetHour(*args
, **kwargs
):
3039 """SetHour(int hour) -> DateTime"""
3040 return _misc
.DateTime_SetHour(*args
, **kwargs
)
3042 def SetMinute(*args
, **kwargs
):
3043 """SetMinute(int minute) -> DateTime"""
3044 return _misc
.DateTime_SetMinute(*args
, **kwargs
)
3046 def SetSecond(*args
, **kwargs
):
3047 """SetSecond(int second) -> DateTime"""
3048 return _misc
.DateTime_SetSecond(*args
, **kwargs
)
3050 def SetMillisecond(*args
, **kwargs
):
3051 """SetMillisecond(int millisecond) -> DateTime"""
3052 return _misc
.DateTime_SetMillisecond(*args
, **kwargs
)
3054 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3055 """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3056 return _misc
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3058 def GetWeekDayInSameWeek(*args
, **kwargs
):
3059 """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3060 return _misc
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3062 def SetToNextWeekDay(*args
, **kwargs
):
3063 """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3064 return _misc
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3066 def GetNextWeekDay(*args
, **kwargs
):
3067 """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3068 return _misc
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3070 def SetToPrevWeekDay(*args
, **kwargs
):
3071 """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3072 return _misc
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3074 def GetPrevWeekDay(*args
, **kwargs
):
3075 """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3076 return _misc
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3078 def SetToWeekDay(*args
, **kwargs
):
3079 """SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month,
3080 int year=Inv_Year) -> bool"""
3081 return _misc
.DateTime_SetToWeekDay(*args
, **kwargs
)
3083 def SetToLastWeekDay(*args
, **kwargs
):
3084 """SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3085 int year=Inv_Year) -> bool"""
3086 return _misc
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3088 def GetLastWeekDay(*args
, **kwargs
):
3089 """GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3090 int year=Inv_Year) -> DateTime"""
3091 return _misc
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3093 def SetToTheWeek(*args
, **kwargs
):
3094 """SetToTheWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> bool"""
3095 return _misc
.DateTime_SetToTheWeek(*args
, **kwargs
)
3097 def GetWeek(*args
, **kwargs
):
3098 """GetWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3099 return _misc
.DateTime_GetWeek(*args
, **kwargs
)
3101 def SetToLastMonthDay(*args
, **kwargs
):
3102 """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3103 return _misc
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3105 def GetLastMonthDay(*args
, **kwargs
):
3106 """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3107 return _misc
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3109 def SetToYearDay(*args
, **kwargs
):
3110 """SetToYearDay(int yday) -> DateTime"""
3111 return _misc
.DateTime_SetToYearDay(*args
, **kwargs
)
3113 def GetYearDay(*args
, **kwargs
):
3114 """GetYearDay(int yday) -> DateTime"""
3115 return _misc
.DateTime_GetYearDay(*args
, **kwargs
)
3117 def GetJulianDayNumber(*args
, **kwargs
):
3118 """GetJulianDayNumber() -> double"""
3119 return _misc
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3121 def GetJDN(*args
, **kwargs
):
3122 """GetJDN() -> double"""
3123 return _misc
.DateTime_GetJDN(*args
, **kwargs
)
3125 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3126 """GetModifiedJulianDayNumber() -> double"""
3127 return _misc
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3129 def GetMJD(*args
, **kwargs
):
3130 """GetMJD() -> double"""
3131 return _misc
.DateTime_GetMJD(*args
, **kwargs
)
3133 def GetRataDie(*args
, **kwargs
):
3134 """GetRataDie() -> double"""
3135 return _misc
.DateTime_GetRataDie(*args
, **kwargs
)
3137 def ToTimezone(*args
, **kwargs
):
3138 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3139 return _misc
.DateTime_ToTimezone(*args
, **kwargs
)
3141 def MakeTimezone(*args
, **kwargs
):
3142 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3143 return _misc
.DateTime_MakeTimezone(*args
, **kwargs
)
3145 def ToGMT(*args
, **kwargs
):
3146 """ToGMT(bool noDST=False) -> DateTime"""
3147 return _misc
.DateTime_ToGMT(*args
, **kwargs
)
3149 def MakeGMT(*args
, **kwargs
):
3150 """MakeGMT(bool noDST=False) -> DateTime"""
3151 return _misc
.DateTime_MakeGMT(*args
, **kwargs
)
3153 def IsDST(*args
, **kwargs
):
3154 """IsDST(wxDateTime::Country country=Country_Default) -> int"""
3155 return _misc
.DateTime_IsDST(*args
, **kwargs
)
3157 def IsValid(*args
, **kwargs
):
3158 """IsValid() -> bool"""
3159 return _misc
.DateTime_IsValid(*args
, **kwargs
)
3161 def GetTicks(*args
, **kwargs
):
3162 """GetTicks() -> time_t"""
3163 return _misc
.DateTime_GetTicks(*args
, **kwargs
)
3165 def GetYear(*args
, **kwargs
):
3166 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3167 return _misc
.DateTime_GetYear(*args
, **kwargs
)
3169 def GetMonth(*args
, **kwargs
):
3170 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month"""
3171 return _misc
.DateTime_GetMonth(*args
, **kwargs
)
3173 def GetDay(*args
, **kwargs
):
3174 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3175 return _misc
.DateTime_GetDay(*args
, **kwargs
)
3177 def GetWeekDay(*args
, **kwargs
):
3178 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay"""
3179 return _misc
.DateTime_GetWeekDay(*args
, **kwargs
)
3181 def GetHour(*args
, **kwargs
):
3182 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3183 return _misc
.DateTime_GetHour(*args
, **kwargs
)
3185 def GetMinute(*args
, **kwargs
):
3186 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3187 return _misc
.DateTime_GetMinute(*args
, **kwargs
)
3189 def GetSecond(*args
, **kwargs
):
3190 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3191 return _misc
.DateTime_GetSecond(*args
, **kwargs
)
3193 def GetMillisecond(*args
, **kwargs
):
3194 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3195 return _misc
.DateTime_GetMillisecond(*args
, **kwargs
)
3197 def GetDayOfYear(*args
, **kwargs
):
3198 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3199 return _misc
.DateTime_GetDayOfYear(*args
, **kwargs
)
3201 def GetWeekOfYear(*args
, **kwargs
):
3202 """GetWeekOfYear(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3203 return _misc
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3205 def GetWeekOfMonth(*args
, **kwargs
):
3206 """GetWeekOfMonth(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3207 return _misc
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3209 def IsWorkDay(*args
, **kwargs
):
3210 """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool"""
3211 return _misc
.DateTime_IsWorkDay(*args
, **kwargs
)
3213 def IsEqualTo(*args
, **kwargs
):
3214 """IsEqualTo(DateTime datetime) -> bool"""
3215 return _misc
.DateTime_IsEqualTo(*args
, **kwargs
)
3217 def IsEarlierThan(*args
, **kwargs
):
3218 """IsEarlierThan(DateTime datetime) -> bool"""
3219 return _misc
.DateTime_IsEarlierThan(*args
, **kwargs
)
3221 def IsLaterThan(*args
, **kwargs
):
3222 """IsLaterThan(DateTime datetime) -> bool"""
3223 return _misc
.DateTime_IsLaterThan(*args
, **kwargs
)
3225 def IsStrictlyBetween(*args
, **kwargs
):
3226 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3227 return _misc
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3229 def IsBetween(*args
, **kwargs
):
3230 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3231 return _misc
.DateTime_IsBetween(*args
, **kwargs
)
3233 def IsSameDate(*args
, **kwargs
):
3234 """IsSameDate(DateTime dt) -> bool"""
3235 return _misc
.DateTime_IsSameDate(*args
, **kwargs
)
3237 def IsSameTime(*args
, **kwargs
):
3238 """IsSameTime(DateTime dt) -> bool"""
3239 return _misc
.DateTime_IsSameTime(*args
, **kwargs
)
3241 def IsEqualUpTo(*args
, **kwargs
):
3242 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3243 return _misc
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3245 def AddTS(*args
, **kwargs
):
3246 """AddTS(TimeSpan diff) -> DateTime"""
3247 return _misc
.DateTime_AddTS(*args
, **kwargs
)
3249 def AddDS(*args
, **kwargs
):
3250 """AddDS(DateSpan diff) -> DateTime"""
3251 return _misc
.DateTime_AddDS(*args
, **kwargs
)
3253 def SubtractTS(*args
, **kwargs
):
3254 """SubtractTS(TimeSpan diff) -> DateTime"""
3255 return _misc
.DateTime_SubtractTS(*args
, **kwargs
)
3257 def SubtractDS(*args
, **kwargs
):
3258 """SubtractDS(DateSpan diff) -> DateTime"""
3259 return _misc
.DateTime_SubtractDS(*args
, **kwargs
)
3261 def Subtract(*args
, **kwargs
):
3262 """Subtract(DateTime dt) -> TimeSpan"""
3263 return _misc
.DateTime_Subtract(*args
, **kwargs
)
3265 def __iadd__(*args
):
3266 """__iadd__(TimeSpan diff) -> DateTime
3267 __iadd__(DateSpan diff) -> DateTime"""
3268 return _misc
.DateTime___iadd__(*args
)
3270 def __isub__(*args
):
3271 """__isub__(TimeSpan diff) -> DateTime
3272 __isub__(DateSpan diff) -> DateTime"""
3273 return _misc
.DateTime___isub__(*args
)
3276 """__add__(TimeSpan other) -> DateTime
3277 __add__(DateSpan other) -> DateTime"""
3278 return _misc
.DateTime___add__(*args
)
3281 """__sub__(DateTime other) -> TimeSpan
3282 __sub__(TimeSpan other) -> DateTime
3283 __sub__(DateSpan other) -> DateTime"""
3284 return _misc
.DateTime___sub__(*args
)
3287 """__lt__(DateTime other) -> bool"""
3288 return _misc
.DateTime___lt__(*args
)
3291 """__le__(DateTime other) -> bool"""
3292 return _misc
.DateTime___le__(*args
)
3295 """__gt__(DateTime other) -> bool"""
3296 return _misc
.DateTime___gt__(*args
)
3299 """__ge__(DateTime other) -> bool"""
3300 return _misc
.DateTime___ge__(*args
)
3303 """__eq__(DateTime other) -> bool"""
3304 return _misc
.DateTime___eq__(*args
)
3307 """__ne__(DateTime other) -> bool"""
3308 return _misc
.DateTime___ne__(*args
)
3310 def ParseRfc822Date(*args
, **kwargs
):
3311 """ParseRfc822Date(wxString date) -> int"""
3312 return _misc
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3314 def ParseFormat(*args
, **kwargs
):
3315 """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3316 return _misc
.DateTime_ParseFormat(*args
, **kwargs
)
3318 def ParseDateTime(*args
, **kwargs
):
3319 """ParseDateTime(wxString datetime) -> int"""
3320 return _misc
.DateTime_ParseDateTime(*args
, **kwargs
)
3322 def ParseDate(*args
, **kwargs
):
3323 """ParseDate(wxString date) -> int"""
3324 return _misc
.DateTime_ParseDate(*args
, **kwargs
)
3326 def ParseTime(*args
, **kwargs
):
3327 """ParseTime(wxString time) -> int"""
3328 return _misc
.DateTime_ParseTime(*args
, **kwargs
)
3330 def Format(*args
, **kwargs
):
3331 """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString"""
3332 return _misc
.DateTime_Format(*args
, **kwargs
)
3334 def FormatDate(*args
, **kwargs
):
3335 """FormatDate() -> wxString"""
3336 return _misc
.DateTime_FormatDate(*args
, **kwargs
)
3338 def FormatTime(*args
, **kwargs
):
3339 """FormatTime() -> wxString"""
3340 return _misc
.DateTime_FormatTime(*args
, **kwargs
)
3342 def FormatISODate(*args
, **kwargs
):
3343 """FormatISODate() -> wxString"""
3344 return _misc
.DateTime_FormatISODate(*args
, **kwargs
)
3346 def FormatISOTime(*args
, **kwargs
):
3347 """FormatISOTime() -> wxString"""
3348 return _misc
.DateTime_FormatISOTime(*args
, **kwargs
)
3351 return '<wxDateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3353 return self
.Format()
3356 class DateTimePtr(DateTime
):
3357 def __init__(self
, this
):
3359 if not hasattr(self
,"thisown"): self
.thisown
= 0
3360 self
.__class
__ = DateTime
3361 _misc
.DateTime_swigregister(DateTimePtr
)
3363 def DateTime_SetCountry(*args
, **kwargs
):
3364 """DateTime_SetCountry(wxDateTime::Country country)"""
3365 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
3367 def DateTime_GetCountry(*args
, **kwargs
):
3368 """DateTime_GetCountry() -> wxDateTime::Country"""
3369 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
3371 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3372 """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
3373 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3375 def DateTime_GetCurrentYear(*args
, **kwargs
):
3376 """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
3377 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
3379 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3380 """DateTime_ConvertYearToBC(int year) -> int"""
3381 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3383 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3384 """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
3385 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3387 def DateTime_IsLeapYear(*args
, **kwargs
):
3388 """DateTime_IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
3389 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
3391 def DateTime_GetCentury(*args
, **kwargs
):
3392 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3393 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
3395 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3396 """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
3397 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3399 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3400 """DateTime_GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
3401 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3403 def DateTime_GetMonthName(*args
, **kwargs
):
3404 """DateTime_GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3405 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
3407 def DateTime_GetWeekDayName(*args
, **kwargs
):
3408 """DateTime_GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3409 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
3411 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3412 """GetAmPmStrings() -> (am, pm)
3414 Get the AM and PM strings in the current locale (may be empty)"""
3415 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3417 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3418 """DateTime_IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
3419 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3421 def DateTime_GetBeginDST(*args
, **kwargs
):
3422 """DateTime_GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3423 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
3425 def DateTime_GetEndDST(*args
, **kwargs
):
3426 """DateTime_GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3427 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
3429 def DateTime_Now(*args
, **kwargs
):
3430 """DateTime_Now() -> DateTime"""
3431 return _misc
.DateTime_Now(*args
, **kwargs
)
3433 def DateTime_UNow(*args
, **kwargs
):
3434 """DateTime_UNow() -> DateTime"""
3435 return _misc
.DateTime_UNow(*args
, **kwargs
)
3437 def DateTime_Today(*args
, **kwargs
):
3438 """DateTime_Today() -> DateTime"""
3439 return _misc
.DateTime_Today(*args
, **kwargs
)
3441 def DateTimeFromTimeT(*args
, **kwargs
):
3442 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3443 val
= _misc
.new_DateTimeFromTimeT(*args
, **kwargs
)
3447 def DateTimeFromJDN(*args
, **kwargs
):
3448 """DateTimeFromJDN(double jdn) -> DateTime"""
3449 val
= _misc
.new_DateTimeFromJDN(*args
, **kwargs
)
3453 def DateTimeFromHMS(*args
, **kwargs
):
3454 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3455 val
= _misc
.new_DateTimeFromHMS(*args
, **kwargs
)
3459 def DateTimeFromDMY(*args
, **kwargs
):
3460 """DateTimeFromDMY(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3461 int hour=0, int minute=0, int second=0,
3462 int millisec=0) -> DateTime"""
3463 val
= _misc
.new_DateTimeFromDMY(*args
, **kwargs
)
3467 class TimeSpan(object):
3470 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3471 def Seconds(*args
, **kwargs
):
3472 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3473 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3475 Seconds
= staticmethod(Seconds
)
3476 def Second(*args
, **kwargs
):
3477 """TimeSpan.Second() -> TimeSpan"""
3478 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3480 Second
= staticmethod(Second
)
3481 def Minutes(*args
, **kwargs
):
3482 """TimeSpan.Minutes(long min) -> TimeSpan"""
3483 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3485 Minutes
= staticmethod(Minutes
)
3486 def Minute(*args
, **kwargs
):
3487 """TimeSpan.Minute() -> TimeSpan"""
3488 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3490 Minute
= staticmethod(Minute
)
3491 def Hours(*args
, **kwargs
):
3492 """TimeSpan.Hours(long hours) -> TimeSpan"""
3493 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3495 Hours
= staticmethod(Hours
)
3496 def Hour(*args
, **kwargs
):
3497 """TimeSpan.Hour() -> TimeSpan"""
3498 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3500 Hour
= staticmethod(Hour
)
3501 def Days(*args
, **kwargs
):
3502 """TimeSpan.Days(long days) -> TimeSpan"""
3503 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3505 Days
= staticmethod(Days
)
3506 def Day(*args
, **kwargs
):
3507 """TimeSpan.Day() -> TimeSpan"""
3508 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3510 Day
= staticmethod(Day
)
3511 def Weeks(*args
, **kwargs
):
3512 """TimeSpan.Weeks(long days) -> TimeSpan"""
3513 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3515 Weeks
= staticmethod(Weeks
)
3516 def Week(*args
, **kwargs
):
3517 """TimeSpan.Week() -> TimeSpan"""
3518 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3520 Week
= staticmethod(Week
)
3521 def __init__(self
, *args
, **kwargs
):
3522 """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3523 newobj
= _misc
.new_TimeSpan(*args
, **kwargs
)
3524 self
.this
= newobj
.this
3527 def __del__(self
, destroy
=_misc
.delete_TimeSpan
):
3530 if self
.thisown
: destroy(self
)
3533 def Add(*args
, **kwargs
):
3534 """Add(TimeSpan diff) -> TimeSpan"""
3535 return _misc
.TimeSpan_Add(*args
, **kwargs
)
3537 def Subtract(*args
, **kwargs
):
3538 """Subtract(TimeSpan diff) -> TimeSpan"""
3539 return _misc
.TimeSpan_Subtract(*args
, **kwargs
)
3541 def Multiply(*args
, **kwargs
):
3542 """Multiply(int n) -> TimeSpan"""
3543 return _misc
.TimeSpan_Multiply(*args
, **kwargs
)
3545 def Neg(*args
, **kwargs
):
3546 """Neg() -> TimeSpan"""
3547 return _misc
.TimeSpan_Neg(*args
, **kwargs
)
3549 def Abs(*args
, **kwargs
):
3550 """Abs() -> TimeSpan"""
3551 return _misc
.TimeSpan_Abs(*args
, **kwargs
)
3553 def __iadd__(*args
, **kwargs
):
3554 """__iadd__(TimeSpan diff) -> TimeSpan"""
3555 return _misc
.TimeSpan___iadd__(*args
, **kwargs
)
3557 def __isub__(*args
, **kwargs
):
3558 """__isub__(TimeSpan diff) -> TimeSpan"""
3559 return _misc
.TimeSpan___isub__(*args
, **kwargs
)
3561 def __imul__(*args
, **kwargs
):
3562 """__imul__(int n) -> TimeSpan"""
3563 return _misc
.TimeSpan___imul__(*args
, **kwargs
)
3565 def __neg__(*args
, **kwargs
):
3566 """__neg__() -> TimeSpan"""
3567 return _misc
.TimeSpan___neg__(*args
, **kwargs
)
3569 def __add__(*args
, **kwargs
):
3570 """__add__(TimeSpan other) -> TimeSpan"""
3571 return _misc
.TimeSpan___add__(*args
, **kwargs
)
3573 def __sub__(*args
, **kwargs
):
3574 """__sub__(TimeSpan other) -> TimeSpan"""
3575 return _misc
.TimeSpan___sub__(*args
, **kwargs
)
3577 def __mul__(*args
, **kwargs
):
3578 """__mul__(int n) -> TimeSpan"""
3579 return _misc
.TimeSpan___mul__(*args
, **kwargs
)
3581 def __rmul__(*args
, **kwargs
):
3582 """__rmul__(int n) -> TimeSpan"""
3583 return _misc
.TimeSpan___rmul__(*args
, **kwargs
)
3585 def __lt__(*args
, **kwargs
):
3586 """__lt__(TimeSpan other) -> bool"""
3587 return _misc
.TimeSpan___lt__(*args
, **kwargs
)
3589 def __le__(*args
, **kwargs
):
3590 """__le__(TimeSpan other) -> bool"""
3591 return _misc
.TimeSpan___le__(*args
, **kwargs
)
3593 def __gt__(*args
, **kwargs
):
3594 """__gt__(TimeSpan other) -> bool"""
3595 return _misc
.TimeSpan___gt__(*args
, **kwargs
)
3597 def __ge__(*args
, **kwargs
):
3598 """__ge__(TimeSpan other) -> bool"""
3599 return _misc
.TimeSpan___ge__(*args
, **kwargs
)
3601 def __eq__(*args
, **kwargs
):
3602 """__eq__(TimeSpan other) -> bool"""
3603 return _misc
.TimeSpan___eq__(*args
, **kwargs
)
3605 def __ne__(*args
, **kwargs
):
3606 """__ne__(TimeSpan other) -> bool"""
3607 return _misc
.TimeSpan___ne__(*args
, **kwargs
)
3609 def IsNull(*args
, **kwargs
):
3610 """IsNull() -> bool"""
3611 return _misc
.TimeSpan_IsNull(*args
, **kwargs
)
3613 def IsPositive(*args
, **kwargs
):
3614 """IsPositive() -> bool"""
3615 return _misc
.TimeSpan_IsPositive(*args
, **kwargs
)
3617 def IsNegative(*args
, **kwargs
):
3618 """IsNegative() -> bool"""
3619 return _misc
.TimeSpan_IsNegative(*args
, **kwargs
)
3621 def IsEqualTo(*args
, **kwargs
):
3622 """IsEqualTo(TimeSpan ts) -> bool"""
3623 return _misc
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3625 def IsLongerThan(*args
, **kwargs
):
3626 """IsLongerThan(TimeSpan ts) -> bool"""
3627 return _misc
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3629 def IsShorterThan(*args
, **kwargs
):
3630 """IsShorterThan(TimeSpan t) -> bool"""
3631 return _misc
.TimeSpan_IsShorterThan(*args
, **kwargs
)
3633 def GetWeeks(*args
, **kwargs
):
3634 """GetWeeks() -> int"""
3635 return _misc
.TimeSpan_GetWeeks(*args
, **kwargs
)
3637 def GetDays(*args
, **kwargs
):
3638 """GetDays() -> int"""
3639 return _misc
.TimeSpan_GetDays(*args
, **kwargs
)
3641 def GetHours(*args
, **kwargs
):
3642 """GetHours() -> int"""
3643 return _misc
.TimeSpan_GetHours(*args
, **kwargs
)
3645 def GetMinutes(*args
, **kwargs
):
3646 """GetMinutes() -> int"""
3647 return _misc
.TimeSpan_GetMinutes(*args
, **kwargs
)
3649 def GetSeconds(*args
, **kwargs
):
3650 """GetSeconds() -> wxLongLong"""
3651 return _misc
.TimeSpan_GetSeconds(*args
, **kwargs
)
3653 def GetMilliseconds(*args
, **kwargs
):
3654 """GetMilliseconds() -> wxLongLong"""
3655 return _misc
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
3657 def Format(*args
, **kwargs
):
3658 """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString"""
3659 return _misc
.TimeSpan_Format(*args
, **kwargs
)
3662 return '<wxTimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3664 return self
.Format()
3667 class TimeSpanPtr(TimeSpan
):
3668 def __init__(self
, this
):
3670 if not hasattr(self
,"thisown"): self
.thisown
= 0
3671 self
.__class
__ = TimeSpan
3672 _misc
.TimeSpan_swigregister(TimeSpanPtr
)
3674 def TimeSpan_Seconds(*args
, **kwargs
):
3675 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3676 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3678 def TimeSpan_Second(*args
, **kwargs
):
3679 """TimeSpan_Second() -> TimeSpan"""
3680 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3682 def TimeSpan_Minutes(*args
, **kwargs
):
3683 """TimeSpan_Minutes(long min) -> TimeSpan"""
3684 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3686 def TimeSpan_Minute(*args
, **kwargs
):
3687 """TimeSpan_Minute() -> TimeSpan"""
3688 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3690 def TimeSpan_Hours(*args
, **kwargs
):
3691 """TimeSpan_Hours(long hours) -> TimeSpan"""
3692 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3694 def TimeSpan_Hour(*args
, **kwargs
):
3695 """TimeSpan_Hour() -> TimeSpan"""
3696 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3698 def TimeSpan_Days(*args
, **kwargs
):
3699 """TimeSpan_Days(long days) -> TimeSpan"""
3700 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3702 def TimeSpan_Day(*args
, **kwargs
):
3703 """TimeSpan_Day() -> TimeSpan"""
3704 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3706 def TimeSpan_Weeks(*args
, **kwargs
):
3707 """TimeSpan_Weeks(long days) -> TimeSpan"""
3708 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3710 def TimeSpan_Week(*args
, **kwargs
):
3711 """TimeSpan_Week() -> TimeSpan"""
3712 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3714 class DateSpan(object):
3717 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3718 def __init__(self
, *args
, **kwargs
):
3719 """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
3720 newobj
= _misc
.new_DateSpan(*args
, **kwargs
)
3721 self
.this
= newobj
.this
3724 def __del__(self
, destroy
=_misc
.delete_DateSpan
):
3727 if self
.thisown
: destroy(self
)
3730 def Days(*args
, **kwargs
):
3731 """DateSpan.Days(int days) -> DateSpan"""
3732 return _misc
.DateSpan_Days(*args
, **kwargs
)
3734 Days
= staticmethod(Days
)
3735 def Day(*args
, **kwargs
):
3736 """DateSpan.Day() -> DateSpan"""
3737 return _misc
.DateSpan_Day(*args
, **kwargs
)
3739 Day
= staticmethod(Day
)
3740 def Weeks(*args
, **kwargs
):
3741 """DateSpan.Weeks(int weeks) -> DateSpan"""
3742 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3744 Weeks
= staticmethod(Weeks
)
3745 def Week(*args
, **kwargs
):
3746 """DateSpan.Week() -> DateSpan"""
3747 return _misc
.DateSpan_Week(*args
, **kwargs
)
3749 Week
= staticmethod(Week
)
3750 def Months(*args
, **kwargs
):
3751 """DateSpan.Months(int mon) -> DateSpan"""
3752 return _misc
.DateSpan_Months(*args
, **kwargs
)
3754 Months
= staticmethod(Months
)
3755 def Month(*args
, **kwargs
):
3756 """DateSpan.Month() -> DateSpan"""
3757 return _misc
.DateSpan_Month(*args
, **kwargs
)
3759 Month
= staticmethod(Month
)
3760 def Years(*args
, **kwargs
):
3761 """DateSpan.Years(int years) -> DateSpan"""
3762 return _misc
.DateSpan_Years(*args
, **kwargs
)
3764 Years
= staticmethod(Years
)
3765 def Year(*args
, **kwargs
):
3766 """DateSpan.Year() -> DateSpan"""
3767 return _misc
.DateSpan_Year(*args
, **kwargs
)
3769 Year
= staticmethod(Year
)
3770 def SetYears(*args
, **kwargs
):
3771 """SetYears(int n) -> DateSpan"""
3772 return _misc
.DateSpan_SetYears(*args
, **kwargs
)
3774 def SetMonths(*args
, **kwargs
):
3775 """SetMonths(int n) -> DateSpan"""
3776 return _misc
.DateSpan_SetMonths(*args
, **kwargs
)
3778 def SetWeeks(*args
, **kwargs
):
3779 """SetWeeks(int n) -> DateSpan"""
3780 return _misc
.DateSpan_SetWeeks(*args
, **kwargs
)
3782 def SetDays(*args
, **kwargs
):
3783 """SetDays(int n) -> DateSpan"""
3784 return _misc
.DateSpan_SetDays(*args
, **kwargs
)
3786 def GetYears(*args
, **kwargs
):
3787 """GetYears() -> int"""
3788 return _misc
.DateSpan_GetYears(*args
, **kwargs
)
3790 def GetMonths(*args
, **kwargs
):
3791 """GetMonths() -> int"""
3792 return _misc
.DateSpan_GetMonths(*args
, **kwargs
)
3794 def GetWeeks(*args
, **kwargs
):
3795 """GetWeeks() -> int"""
3796 return _misc
.DateSpan_GetWeeks(*args
, **kwargs
)
3798 def GetDays(*args
, **kwargs
):
3799 """GetDays() -> int"""
3800 return _misc
.DateSpan_GetDays(*args
, **kwargs
)
3802 def GetTotalDays(*args
, **kwargs
):
3803 """GetTotalDays() -> int"""
3804 return _misc
.DateSpan_GetTotalDays(*args
, **kwargs
)
3806 def Add(*args
, **kwargs
):
3807 """Add(DateSpan other) -> DateSpan"""
3808 return _misc
.DateSpan_Add(*args
, **kwargs
)
3810 def Subtract(*args
, **kwargs
):
3811 """Subtract(DateSpan other) -> DateSpan"""
3812 return _misc
.DateSpan_Subtract(*args
, **kwargs
)
3814 def Neg(*args
, **kwargs
):
3815 """Neg() -> DateSpan"""
3816 return _misc
.DateSpan_Neg(*args
, **kwargs
)
3818 def Multiply(*args
, **kwargs
):
3819 """Multiply(int factor) -> DateSpan"""
3820 return _misc
.DateSpan_Multiply(*args
, **kwargs
)
3822 def __iadd__(*args
, **kwargs
):
3823 """__iadd__(DateSpan other) -> DateSpan"""
3824 return _misc
.DateSpan___iadd__(*args
, **kwargs
)
3826 def __isub__(*args
, **kwargs
):
3827 """__isub__(DateSpan other) -> DateSpan"""
3828 return _misc
.DateSpan___isub__(*args
, **kwargs
)
3830 def __neg__(*args
, **kwargs
):
3831 """__neg__() -> DateSpan"""
3832 return _misc
.DateSpan___neg__(*args
, **kwargs
)
3834 def __imul__(*args
, **kwargs
):
3835 """__imul__(int factor) -> DateSpan"""
3836 return _misc
.DateSpan___imul__(*args
, **kwargs
)
3838 def __add__(*args
, **kwargs
):
3839 """__add__(DateSpan other) -> DateSpan"""
3840 return _misc
.DateSpan___add__(*args
, **kwargs
)
3842 def __sub__(*args
, **kwargs
):
3843 """__sub__(DateSpan other) -> DateSpan"""
3844 return _misc
.DateSpan___sub__(*args
, **kwargs
)
3846 def __mul__(*args
, **kwargs
):
3847 """__mul__(int n) -> DateSpan"""
3848 return _misc
.DateSpan___mul__(*args
, **kwargs
)
3850 def __rmul__(*args
, **kwargs
):
3851 """__rmul__(int n) -> DateSpan"""
3852 return _misc
.DateSpan___rmul__(*args
, **kwargs
)
3854 def __eq__(*args
, **kwargs
):
3855 """__eq__(DateSpan other) -> bool"""
3856 return _misc
.DateSpan___eq__(*args
, **kwargs
)
3858 def __ne__(*args
, **kwargs
):
3859 """__ne__(DateSpan other) -> bool"""
3860 return _misc
.DateSpan___ne__(*args
, **kwargs
)
3863 class DateSpanPtr(DateSpan
):
3864 def __init__(self
, this
):
3866 if not hasattr(self
,"thisown"): self
.thisown
= 0
3867 self
.__class
__ = DateSpan
3868 _misc
.DateSpan_swigregister(DateSpanPtr
)
3870 def DateSpan_Days(*args
, **kwargs
):
3871 """DateSpan_Days(int days) -> DateSpan"""
3872 return _misc
.DateSpan_Days(*args
, **kwargs
)
3874 def DateSpan_Day(*args
, **kwargs
):
3875 """DateSpan_Day() -> DateSpan"""
3876 return _misc
.DateSpan_Day(*args
, **kwargs
)
3878 def DateSpan_Weeks(*args
, **kwargs
):
3879 """DateSpan_Weeks(int weeks) -> DateSpan"""
3880 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3882 def DateSpan_Week(*args
, **kwargs
):
3883 """DateSpan_Week() -> DateSpan"""
3884 return _misc
.DateSpan_Week(*args
, **kwargs
)
3886 def DateSpan_Months(*args
, **kwargs
):
3887 """DateSpan_Months(int mon) -> DateSpan"""
3888 return _misc
.DateSpan_Months(*args
, **kwargs
)
3890 def DateSpan_Month(*args
, **kwargs
):
3891 """DateSpan_Month() -> DateSpan"""
3892 return _misc
.DateSpan_Month(*args
, **kwargs
)
3894 def DateSpan_Years(*args
, **kwargs
):
3895 """DateSpan_Years(int years) -> DateSpan"""
3896 return _misc
.DateSpan_Years(*args
, **kwargs
)
3898 def DateSpan_Year(*args
, **kwargs
):
3899 """DateSpan_Year() -> DateSpan"""
3900 return _misc
.DateSpan_Year(*args
, **kwargs
)
3903 def GetLocalTime(*args
, **kwargs
):
3904 """GetLocalTime() -> long"""
3905 return _misc
.GetLocalTime(*args
, **kwargs
)
3907 def GetUTCTime(*args
, **kwargs
):
3908 """GetUTCTime() -> long"""
3909 return _misc
.GetUTCTime(*args
, **kwargs
)
3911 def GetCurrentTime(*args
, **kwargs
):
3912 """GetCurrentTime() -> long"""
3913 return _misc
.GetCurrentTime(*args
, **kwargs
)
3915 def GetLocalTimeMillis(*args
, **kwargs
):
3916 """GetLocalTimeMillis() -> wxLongLong"""
3917 return _misc
.GetLocalTimeMillis(*args
, **kwargs
)
3918 #---------------------------------------------------------------------------
3920 DF_INVALID
= _misc
.DF_INVALID
3921 DF_TEXT
= _misc
.DF_TEXT
3922 DF_BITMAP
= _misc
.DF_BITMAP
3923 DF_METAFILE
= _misc
.DF_METAFILE
3924 DF_SYLK
= _misc
.DF_SYLK
3925 DF_DIF
= _misc
.DF_DIF
3926 DF_TIFF
= _misc
.DF_TIFF
3927 DF_OEMTEXT
= _misc
.DF_OEMTEXT
3928 DF_DIB
= _misc
.DF_DIB
3929 DF_PALETTE
= _misc
.DF_PALETTE
3930 DF_PENDATA
= _misc
.DF_PENDATA
3931 DF_RIFF
= _misc
.DF_RIFF
3932 DF_WAVE
= _misc
.DF_WAVE
3933 DF_UNICODETEXT
= _misc
.DF_UNICODETEXT
3934 DF_ENHMETAFILE
= _misc
.DF_ENHMETAFILE
3935 DF_FILENAME
= _misc
.DF_FILENAME
3936 DF_LOCALE
= _misc
.DF_LOCALE
3937 DF_PRIVATE
= _misc
.DF_PRIVATE
3938 DF_HTML
= _misc
.DF_HTML
3939 DF_MAX
= _misc
.DF_MAX
3940 class DataFormat(object):
3943 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3944 def __init__(self
, *args
, **kwargs
):
3945 """__init__(wxDataFormatId type) -> DataFormat"""
3946 newobj
= _misc
.new_DataFormat(*args
, **kwargs
)
3947 self
.this
= newobj
.this
3950 def __del__(self
, destroy
=_misc
.delete_DataFormat
):
3953 if self
.thisown
: destroy(self
)
3957 """__eq__(wxDataFormatId format) -> bool
3958 __eq__(DataFormat format) -> bool"""
3959 return _misc
.DataFormat___eq__(*args
)
3962 """__ne__(wxDataFormatId format) -> bool
3963 __ne__(DataFormat format) -> bool"""
3964 return _misc
.DataFormat___ne__(*args
)
3966 def SetType(*args
, **kwargs
):
3967 """SetType(wxDataFormatId format)"""
3968 return _misc
.DataFormat_SetType(*args
, **kwargs
)
3970 def GetType(*args
, **kwargs
):
3971 """GetType() -> wxDataFormatId"""
3972 return _misc
.DataFormat_GetType(*args
, **kwargs
)
3974 def GetId(*args
, **kwargs
):
3975 """GetId() -> wxString"""
3976 return _misc
.DataFormat_GetId(*args
, **kwargs
)
3978 def SetId(*args
, **kwargs
):
3979 """SetId(wxString format)"""
3980 return _misc
.DataFormat_SetId(*args
, **kwargs
)
3983 class DataFormatPtr(DataFormat
):
3984 def __init__(self
, this
):
3986 if not hasattr(self
,"thisown"): self
.thisown
= 0
3987 self
.__class
__ = DataFormat
3988 _misc
.DataFormat_swigregister(DataFormatPtr
)
3990 def CustomDataFormat(*args
, **kwargs
):
3991 """CustomDataFormat(wxString format) -> DataFormat"""
3992 val
= _misc
.new_CustomDataFormat(*args
, **kwargs
)
3996 class DataObject(object):
3998 def __init__(self
): raise RuntimeError, "No constructor defined"
4000 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4001 Get
= _misc
.DataObject_Get
4002 Set
= _misc
.DataObject_Set
4003 Both
= _misc
.DataObject_Both
4004 def __del__(self
, destroy
=_misc
.delete_DataObject
):
4007 if self
.thisown
: destroy(self
)
4010 def GetPreferredFormat(*args
, **kwargs
):
4011 """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat"""
4012 return _misc
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4014 def GetFormatCount(*args
, **kwargs
):
4015 """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t"""
4016 return _misc
.DataObject_GetFormatCount(*args
, **kwargs
)
4018 def IsSupported(*args
, **kwargs
):
4019 """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool"""
4020 return _misc
.DataObject_IsSupported(*args
, **kwargs
)
4022 def GetDataSize(*args
, **kwargs
):
4023 """GetDataSize(DataFormat format) -> size_t"""
4024 return _misc
.DataObject_GetDataSize(*args
, **kwargs
)
4026 def GetAllFormats(*args
, **kwargs
):
4027 """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)"""
4028 return _misc
.DataObject_GetAllFormats(*args
, **kwargs
)
4030 def GetDataHere(*args
, **kwargs
):
4031 """GetDataHere(DataFormat format, void buf) -> bool"""
4032 return _misc
.DataObject_GetDataHere(*args
, **kwargs
)
4034 def SetData(*args
, **kwargs
):
4035 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4036 return _misc
.DataObject_SetData(*args
, **kwargs
)
4039 class DataObjectPtr(DataObject
):
4040 def __init__(self
, this
):
4042 if not hasattr(self
,"thisown"): self
.thisown
= 0
4043 self
.__class
__ = DataObject
4044 _misc
.DataObject_swigregister(DataObjectPtr
)
4045 FormatInvalid
= cvar
.FormatInvalid
4047 class DataObjectSimple(DataObject
):
4050 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4051 def __init__(self
, *args
, **kwargs
):
4052 """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple"""
4053 newobj
= _misc
.new_DataObjectSimple(*args
, **kwargs
)
4054 self
.this
= newobj
.this
4057 def GetFormat(*args
, **kwargs
):
4058 """GetFormat() -> DataFormat"""
4059 return _misc
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4061 def SetFormat(*args
, **kwargs
):
4062 """SetFormat(DataFormat format)"""
4063 return _misc
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4066 class DataObjectSimplePtr(DataObjectSimple
):
4067 def __init__(self
, this
):
4069 if not hasattr(self
,"thisown"): self
.thisown
= 0
4070 self
.__class
__ = DataObjectSimple
4071 _misc
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4073 class PyDataObjectSimple(DataObjectSimple
):
4076 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4077 def __init__(self
, *args
, **kwargs
):
4078 """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4079 newobj
= _misc
.new_PyDataObjectSimple(*args
, **kwargs
)
4080 self
.this
= newobj
.this
4083 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4085 def _setCallbackInfo(*args
, **kwargs
):
4086 """_setCallbackInfo(PyObject self, PyObject _class)"""
4087 return _misc
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4090 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4091 def __init__(self
, this
):
4093 if not hasattr(self
,"thisown"): self
.thisown
= 0
4094 self
.__class
__ = PyDataObjectSimple
4095 _misc
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4097 class DataObjectComposite(DataObject
):
4100 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4101 def __init__(self
, *args
, **kwargs
):
4102 """__init__() -> DataObjectComposite"""
4103 newobj
= _misc
.new_DataObjectComposite(*args
, **kwargs
)
4104 self
.this
= newobj
.this
4107 def Add(*args
, **kwargs
):
4108 """Add(DataObjectSimple dataObject, int preferred=False)"""
4109 val
= _misc
.DataObjectComposite_Add(*args
, **kwargs
)
4114 class DataObjectCompositePtr(DataObjectComposite
):
4115 def __init__(self
, this
):
4117 if not hasattr(self
,"thisown"): self
.thisown
= 0
4118 self
.__class
__ = DataObjectComposite
4119 _misc
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4121 class TextDataObject(DataObjectSimple
):
4124 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4125 def __init__(self
, *args
, **kwargs
):
4126 """__init__(wxString text=wxPyEmptyString) -> TextDataObject"""
4127 newobj
= _misc
.new_TextDataObject(*args
, **kwargs
)
4128 self
.this
= newobj
.this
4131 def GetTextLength(*args
, **kwargs
):
4132 """GetTextLength() -> size_t"""
4133 return _misc
.TextDataObject_GetTextLength(*args
, **kwargs
)
4135 def GetText(*args
, **kwargs
):
4136 """GetText() -> wxString"""
4137 return _misc
.TextDataObject_GetText(*args
, **kwargs
)
4139 def SetText(*args
, **kwargs
):
4140 """SetText(wxString text)"""
4141 return _misc
.TextDataObject_SetText(*args
, **kwargs
)
4144 class TextDataObjectPtr(TextDataObject
):
4145 def __init__(self
, this
):
4147 if not hasattr(self
,"thisown"): self
.thisown
= 0
4148 self
.__class
__ = TextDataObject
4149 _misc
.TextDataObject_swigregister(TextDataObjectPtr
)
4151 class PyTextDataObject(TextDataObject
):
4154 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4155 def __init__(self
, *args
, **kwargs
):
4156 """__init__(wxString text=wxPyEmptyString) -> PyTextDataObject"""
4157 newobj
= _misc
.new_PyTextDataObject(*args
, **kwargs
)
4158 self
.this
= newobj
.this
4161 self
._setCallbackInfo
(self
, PyTextDataObject
)
4163 def _setCallbackInfo(*args
, **kwargs
):
4164 """_setCallbackInfo(PyObject self, PyObject _class)"""
4165 return _misc
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4168 class PyTextDataObjectPtr(PyTextDataObject
):
4169 def __init__(self
, this
):
4171 if not hasattr(self
,"thisown"): self
.thisown
= 0
4172 self
.__class
__ = PyTextDataObject
4173 _misc
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4175 class BitmapDataObject(DataObjectSimple
):
4178 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4179 def __init__(self
, *args
, **kwargs
):
4180 """__init__(wxBitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4181 newobj
= _misc
.new_BitmapDataObject(*args
, **kwargs
)
4182 self
.this
= newobj
.this
4185 def GetBitmap(*args
, **kwargs
):
4186 """GetBitmap() -> wxBitmap"""
4187 return _misc
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4189 def SetBitmap(*args
, **kwargs
):
4190 """SetBitmap(wxBitmap bitmap)"""
4191 return _misc
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4194 class BitmapDataObjectPtr(BitmapDataObject
):
4195 def __init__(self
, this
):
4197 if not hasattr(self
,"thisown"): self
.thisown
= 0
4198 self
.__class
__ = BitmapDataObject
4199 _misc
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4201 class PyBitmapDataObject(BitmapDataObject
):
4204 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4205 def __init__(self
, *args
, **kwargs
):
4206 """__init__(wxBitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4207 newobj
= _misc
.new_PyBitmapDataObject(*args
, **kwargs
)
4208 self
.this
= newobj
.this
4211 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4213 def _setCallbackInfo(*args
, **kwargs
):
4214 """_setCallbackInfo(PyObject self, PyObject _class)"""
4215 return _misc
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4218 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4219 def __init__(self
, this
):
4221 if not hasattr(self
,"thisown"): self
.thisown
= 0
4222 self
.__class
__ = PyBitmapDataObject
4223 _misc
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4225 class FileDataObject(DataObjectSimple
):
4228 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4229 def __init__(self
, *args
, **kwargs
):
4230 """__init__() -> FileDataObject"""
4231 newobj
= _misc
.new_FileDataObject(*args
, **kwargs
)
4232 self
.this
= newobj
.this
4235 def GetFilenames(*args
, **kwargs
):
4236 """GetFilenames() -> wxArrayString"""
4237 return _misc
.FileDataObject_GetFilenames(*args
, **kwargs
)
4240 class FileDataObjectPtr(FileDataObject
):
4241 def __init__(self
, this
):
4243 if not hasattr(self
,"thisown"): self
.thisown
= 0
4244 self
.__class
__ = FileDataObject
4245 _misc
.FileDataObject_swigregister(FileDataObjectPtr
)
4247 class CustomDataObject(DataObjectSimple
):
4250 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4251 def __init__(self
, *args
, **kwargs
):
4252 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
4253 newobj
= _misc
.new_CustomDataObject(*args
, **kwargs
)
4254 self
.this
= newobj
.this
4257 def TakeData(*args
, **kwargs
):
4258 """TakeData(PyObject data)"""
4259 return _misc
.CustomDataObject_TakeData(*args
, **kwargs
)
4261 def SetData(*args
, **kwargs
):
4262 """SetData(PyObject data) -> bool"""
4263 return _misc
.CustomDataObject_SetData(*args
, **kwargs
)
4265 def GetSize(*args
, **kwargs
):
4266 """GetSize() -> size_t"""
4267 return _misc
.CustomDataObject_GetSize(*args
, **kwargs
)
4269 def GetData(*args
, **kwargs
):
4270 """GetData() -> PyObject"""
4271 return _misc
.CustomDataObject_GetData(*args
, **kwargs
)
4274 class CustomDataObjectPtr(CustomDataObject
):
4275 def __init__(self
, this
):
4277 if not hasattr(self
,"thisown"): self
.thisown
= 0
4278 self
.__class
__ = CustomDataObject
4279 _misc
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4281 class URLDataObject(DataObjectComposite
):
4284 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4285 def __init__(self
, *args
, **kwargs
):
4286 """__init__() -> URLDataObject"""
4287 newobj
= _misc
.new_URLDataObject(*args
, **kwargs
)
4288 self
.this
= newobj
.this
4291 def GetURL(*args
, **kwargs
):
4292 """GetURL() -> wxString"""
4293 return _misc
.URLDataObject_GetURL(*args
, **kwargs
)
4295 def SetURL(*args
, **kwargs
):
4296 """SetURL(wxString url)"""
4297 return _misc
.URLDataObject_SetURL(*args
, **kwargs
)
4300 class URLDataObjectPtr(URLDataObject
):
4301 def __init__(self
, this
):
4303 if not hasattr(self
,"thisown"): self
.thisown
= 0
4304 self
.__class
__ = URLDataObject
4305 _misc
.URLDataObject_swigregister(URLDataObjectPtr
)
4307 class MetafileDataObject(DataObjectSimple
):
4310 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4311 def __init__(self
, *args
, **kwargs
):
4312 """__init__() -> MetafileDataObject"""
4313 newobj
= _misc
.new_MetafileDataObject(*args
, **kwargs
)
4314 self
.this
= newobj
.this
4318 class MetafileDataObjectPtr(MetafileDataObject
):
4319 def __init__(self
, this
):
4321 if not hasattr(self
,"thisown"): self
.thisown
= 0
4322 self
.__class
__ = MetafileDataObject
4323 _misc
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4325 #---------------------------------------------------------------------------
4327 Drag_CopyOnly
= _misc
.Drag_CopyOnly
4328 Drag_AllowMove
= _misc
.Drag_AllowMove
4329 Drag_DefaultMove
= _misc
.Drag_DefaultMove
4330 DragError
= _misc
.DragError
4331 DragNone
= _misc
.DragNone
4332 DragCopy
= _misc
.DragCopy
4333 DragMove
= _misc
.DragMove
4334 DragLink
= _misc
.DragLink
4335 DragCancel
= _misc
.DragCancel
4337 def IsDragResultOk(*args
, **kwargs
):
4338 """IsDragResultOk(wxDragResult res) -> bool"""
4339 return _misc
.IsDragResultOk(*args
, **kwargs
)
4340 class DropSource(object):
4343 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4344 def __init__(self
, *args
, **kwargs
):
4345 """__init__(Window win=None, wxIcon copy=wxNullIcon, wxIcon move=wxNullIcon,
4346 wxIcon none=wxNullIcon) -> DropSource"""
4347 newobj
= _misc
.new_DropSource(*args
, **kwargs
)
4348 self
.this
= newobj
.this
4351 def _setCallbackInfo(*args
, **kwargs
):
4352 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4353 return _misc
.DropSource__setCallbackInfo(*args
, **kwargs
)
4355 def __del__(self
, destroy
=_misc
.delete_DropSource
):
4358 if self
.thisown
: destroy(self
)
4361 def SetData(*args
, **kwargs
):
4362 """SetData(DataObject data)"""
4363 return _misc
.DropSource_SetData(*args
, **kwargs
)
4365 def GetDataObject(*args
, **kwargs
):
4366 """GetDataObject() -> DataObject"""
4367 return _misc
.DropSource_GetDataObject(*args
, **kwargs
)
4369 def SetCursor(*args
, **kwargs
):
4370 """SetCursor(wxDragResult res, wxCursor cursor)"""
4371 return _misc
.DropSource_SetCursor(*args
, **kwargs
)
4373 def DoDragDrop(*args
, **kwargs
):
4374 """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult"""
4375 return _misc
.DropSource_DoDragDrop(*args
, **kwargs
)
4377 def base_GiveFeedback(*args
, **kwargs
):
4378 """base_GiveFeedback(wxDragResult effect) -> bool"""
4379 return _misc
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4382 class DropSourcePtr(DropSource
):
4383 def __init__(self
, this
):
4385 if not hasattr(self
,"thisown"): self
.thisown
= 0
4386 self
.__class
__ = DropSource
4387 _misc
.DropSource_swigregister(DropSourcePtr
)
4389 class DropTarget(object):
4392 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4393 def __init__(self
, *args
, **kwargs
):
4394 """__init__(DataObject dataObject=None) -> DropTarget"""
4395 newobj
= _misc
.new_DropTarget(*args
, **kwargs
)
4396 self
.this
= newobj
.this
4399 if args
: args
[0].thisown
= 0;
4400 self
._setCallbackInfo
(self
, DropTarget
)
4402 def _setCallbackInfo(*args
, **kwargs
):
4403 """_setCallbackInfo(PyObject self, PyObject _class)"""
4404 return _misc
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4406 def __del__(self
, destroy
=_misc
.delete_DropTarget
):
4409 if self
.thisown
: destroy(self
)
4412 def GetDataObject(*args
, **kwargs
):
4413 """GetDataObject() -> DataObject"""
4414 return _misc
.DropTarget_GetDataObject(*args
, **kwargs
)
4416 def SetDataObject(*args
, **kwargs
):
4417 """SetDataObject(DataObject dataObject)"""
4418 val
= _misc
.DropTarget_SetDataObject(*args
, **kwargs
)
4422 def base_OnEnter(*args
, **kwargs
):
4423 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4424 return _misc
.DropTarget_base_OnEnter(*args
, **kwargs
)
4426 def base_OnDragOver(*args
, **kwargs
):
4427 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4428 return _misc
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4430 def base_OnLeave(*args
, **kwargs
):
4431 """base_OnLeave()"""
4432 return _misc
.DropTarget_base_OnLeave(*args
, **kwargs
)
4434 def base_OnDrop(*args
, **kwargs
):
4435 """base_OnDrop(int x, int y) -> bool"""
4436 return _misc
.DropTarget_base_OnDrop(*args
, **kwargs
)
4438 def GetData(*args
, **kwargs
):
4439 """GetData() -> bool"""
4440 return _misc
.DropTarget_GetData(*args
, **kwargs
)
4443 class DropTargetPtr(DropTarget
):
4444 def __init__(self
, this
):
4446 if not hasattr(self
,"thisown"): self
.thisown
= 0
4447 self
.__class
__ = DropTarget
4448 _misc
.DropTarget_swigregister(DropTargetPtr
)
4450 PyDropTarget
= DropTarget
4451 class TextDropTarget(DropTarget
):
4454 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4455 def __init__(self
, *args
, **kwargs
):
4456 """__init__() -> TextDropTarget"""
4457 newobj
= _misc
.new_TextDropTarget(*args
, **kwargs
)
4458 self
.this
= newobj
.this
4461 self
._setCallbackInfo
(self
, TextDropTarget
)
4463 def _setCallbackInfo(*args
, **kwargs
):
4464 """_setCallbackInfo(PyObject self, PyObject _class)"""
4465 return _misc
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4467 def base_OnEnter(*args
, **kwargs
):
4468 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4469 return _misc
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4471 def base_OnDragOver(*args
, **kwargs
):
4472 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4473 return _misc
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4475 def base_OnLeave(*args
, **kwargs
):
4476 """base_OnLeave()"""
4477 return _misc
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4479 def base_OnDrop(*args
, **kwargs
):
4480 """base_OnDrop(int x, int y) -> bool"""
4481 return _misc
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4483 def base_OnData(*args
, **kwargs
):
4484 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4485 return _misc
.TextDropTarget_base_OnData(*args
, **kwargs
)
4488 class TextDropTargetPtr(TextDropTarget
):
4489 def __init__(self
, this
):
4491 if not hasattr(self
,"thisown"): self
.thisown
= 0
4492 self
.__class
__ = TextDropTarget
4493 _misc
.TextDropTarget_swigregister(TextDropTargetPtr
)
4495 class FileDropTarget(DropTarget
):
4498 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4499 def __init__(self
, *args
, **kwargs
):
4500 """__init__() -> FileDropTarget"""
4501 newobj
= _misc
.new_FileDropTarget(*args
, **kwargs
)
4502 self
.this
= newobj
.this
4505 self
._setCallbackInfo
(self
, FileDropTarget
)
4507 def _setCallbackInfo(*args
, **kwargs
):
4508 """_setCallbackInfo(PyObject self, PyObject _class)"""
4509 return _misc
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
4511 def base_OnEnter(*args
, **kwargs
):
4512 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4513 return _misc
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
4515 def base_OnDragOver(*args
, **kwargs
):
4516 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4517 return _misc
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
4519 def base_OnLeave(*args
, **kwargs
):
4520 """base_OnLeave()"""
4521 return _misc
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
4523 def base_OnDrop(*args
, **kwargs
):
4524 """base_OnDrop(int x, int y) -> bool"""
4525 return _misc
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
4527 def base_OnData(*args
, **kwargs
):
4528 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4529 return _misc
.FileDropTarget_base_OnData(*args
, **kwargs
)
4532 class FileDropTargetPtr(FileDropTarget
):
4533 def __init__(self
, this
):
4535 if not hasattr(self
,"thisown"): self
.thisown
= 0
4536 self
.__class
__ = FileDropTarget
4537 _misc
.FileDropTarget_swigregister(FileDropTargetPtr
)
4539 #---------------------------------------------------------------------------
4541 class Clipboard(core
.Object
):
4544 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4545 def __init__(self
, *args
, **kwargs
):
4546 """__init__() -> Clipboard"""
4547 newobj
= _misc
.new_Clipboard(*args
, **kwargs
)
4548 self
.this
= newobj
.this
4551 def __del__(self
, destroy
=_misc
.delete_Clipboard
):
4554 if self
.thisown
: destroy(self
)
4557 def Open(*args
, **kwargs
):
4558 """Open() -> bool"""
4559 return _misc
.Clipboard_Open(*args
, **kwargs
)
4561 def Close(*args
, **kwargs
):
4563 return _misc
.Clipboard_Close(*args
, **kwargs
)
4565 def IsOpened(*args
, **kwargs
):
4566 """IsOpened() -> bool"""
4567 return _misc
.Clipboard_IsOpened(*args
, **kwargs
)
4569 def AddData(*args
, **kwargs
):
4570 """AddData(DataObject data) -> bool"""
4571 return _misc
.Clipboard_AddData(*args
, **kwargs
)
4573 def SetData(*args
, **kwargs
):
4574 """SetData(DataObject data) -> bool"""
4575 return _misc
.Clipboard_SetData(*args
, **kwargs
)
4577 def IsSupported(*args
, **kwargs
):
4578 """IsSupported(DataFormat format) -> bool"""
4579 return _misc
.Clipboard_IsSupported(*args
, **kwargs
)
4581 def GetData(*args
, **kwargs
):
4582 """GetData(DataObject data) -> bool"""
4583 return _misc
.Clipboard_GetData(*args
, **kwargs
)
4585 def Clear(*args
, **kwargs
):
4587 return _misc
.Clipboard_Clear(*args
, **kwargs
)
4589 def Flush(*args
, **kwargs
):
4590 """Flush() -> bool"""
4591 return _misc
.Clipboard_Flush(*args
, **kwargs
)
4593 def UsePrimarySelection(*args
, **kwargs
):
4594 """UsePrimarySelection(bool primary=False)"""
4595 return _misc
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
4598 class ClipboardPtr(Clipboard
):
4599 def __init__(self
, this
):
4601 if not hasattr(self
,"thisown"): self
.thisown
= 0
4602 self
.__class
__ = Clipboard
4603 _misc
.Clipboard_swigregister(ClipboardPtr
)
4605 class ClipboardLocker(object):
4608 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4609 def __init__(self
, *args
, **kwargs
):
4610 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
4611 newobj
= _misc
.new_ClipboardLocker(*args
, **kwargs
)
4612 self
.this
= newobj
.this
4615 def __del__(self
, destroy
=_misc
.delete_ClipboardLocker
):
4618 if self
.thisown
: destroy(self
)
4621 def __nonzero__(*args
, **kwargs
):
4622 """__nonzero__() -> bool"""
4623 return _misc
.ClipboardLocker___nonzero__(*args
, **kwargs
)
4626 class ClipboardLockerPtr(ClipboardLocker
):
4627 def __init__(self
, this
):
4629 if not hasattr(self
,"thisown"): self
.thisown
= 0
4630 self
.__class
__ = ClipboardLocker
4631 _misc
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
4632 TheClipboard
= cvar
.TheClipboard