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(int OUTPUT, int OUTPUT)"""
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(int OUTPUT, int OUTPUT) -> int"""
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(int OUTPUT, int OUTPUT)"""
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(int OUTPUT, int OUTPUT)"""
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(int OUTPUT, int OUTPUT, int OUTPUT, int OUTPUT)"""
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 GetPositionTuple(*args
, **kwargs
):
584 """GetPositionTuple(int OUTPUT, int OUTPUT)"""
585 return _misc
.Caret_GetPositionTuple(*args
, **kwargs
)
587 def GetPosition(*args
, **kwargs
):
588 """GetPosition() -> Point"""
589 return _misc
.Caret_GetPosition(*args
, **kwargs
)
591 def GetSizeTuple(*args
, **kwargs
):
592 """GetSizeTuple(int OUTPUT, int OUTPUT)"""
593 return _misc
.Caret_GetSizeTuple(*args
, **kwargs
)
595 def GetSize(*args
, **kwargs
):
596 """GetSize() -> Size"""
597 return _misc
.Caret_GetSize(*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
)
628 class CaretPtr(Caret
):
629 def __init__(self
, this
):
631 if not hasattr(self
,"thisown"): self
.thisown
= 0
632 self
.__class
__ = Caret
633 _misc
.Caret_swigregister(CaretPtr
)
636 def Caret_GetBlinkTime(*args
, **kwargs
):
637 """Caret_GetBlinkTime() -> int"""
638 return _misc
.Caret_GetBlinkTime(*args
, **kwargs
)
640 def Caret_SetBlinkTime(*args
, **kwargs
):
641 """Caret_SetBlinkTime(int milliseconds)"""
642 return _misc
.Caret_SetBlinkTime(*args
, **kwargs
)
643 class BusyCursor(object):
646 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
647 def __init__(self
, *args
, **kwargs
):
648 """__init__(wxCursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
649 newobj
= _misc
.new_BusyCursor(*args
, **kwargs
)
650 self
.this
= newobj
.this
653 def __del__(self
, destroy
=_misc
.delete_BusyCursor
):
656 if self
.thisown
: destroy(self
)
660 class BusyCursorPtr(BusyCursor
):
661 def __init__(self
, this
):
663 if not hasattr(self
,"thisown"): self
.thisown
= 0
664 self
.__class
__ = BusyCursor
665 _misc
.BusyCursor_swigregister(BusyCursorPtr
)
667 class WindowDisabler(object):
670 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
671 def __init__(self
, *args
, **kwargs
):
672 """__init__(Window winToSkip=None) -> WindowDisabler"""
673 newobj
= _misc
.new_WindowDisabler(*args
, **kwargs
)
674 self
.this
= newobj
.this
677 def __del__(self
, destroy
=_misc
.delete_WindowDisabler
):
680 if self
.thisown
: destroy(self
)
684 class WindowDisablerPtr(WindowDisabler
):
685 def __init__(self
, this
):
687 if not hasattr(self
,"thisown"): self
.thisown
= 0
688 self
.__class
__ = WindowDisabler
689 _misc
.WindowDisabler_swigregister(WindowDisablerPtr
)
691 class BusyInfo(core
.Object
):
694 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
695 def __init__(self
, *args
, **kwargs
):
696 """__init__(wxString message) -> BusyInfo"""
697 newobj
= _misc
.new_BusyInfo(*args
, **kwargs
)
698 self
.this
= newobj
.this
701 def __del__(self
, destroy
=_misc
.delete_BusyInfo
):
704 if self
.thisown
: destroy(self
)
708 class BusyInfoPtr(BusyInfo
):
709 def __init__(self
, this
):
711 if not hasattr(self
,"thisown"): self
.thisown
= 0
712 self
.__class
__ = BusyInfo
713 _misc
.BusyInfo_swigregister(BusyInfoPtr
)
715 class StopWatch(object):
718 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
719 def __init__(self
, *args
, **kwargs
):
720 """__init__() -> StopWatch"""
721 newobj
= _misc
.new_StopWatch(*args
, **kwargs
)
722 self
.this
= newobj
.this
725 def Start(*args
, **kwargs
):
726 """Start(long t0=0)"""
727 return _misc
.StopWatch_Start(*args
, **kwargs
)
729 def Pause(*args
, **kwargs
):
731 return _misc
.StopWatch_Pause(*args
, **kwargs
)
733 def Resume(*args
, **kwargs
):
735 return _misc
.StopWatch_Resume(*args
, **kwargs
)
737 def Time(*args
, **kwargs
):
739 return _misc
.StopWatch_Time(*args
, **kwargs
)
742 class StopWatchPtr(StopWatch
):
743 def __init__(self
, this
):
745 if not hasattr(self
,"thisown"): self
.thisown
= 0
746 self
.__class
__ = StopWatch
747 _misc
.StopWatch_swigregister(StopWatchPtr
)
749 class FileHistory(core
.Object
):
752 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
753 def __init__(self
, *args
, **kwargs
):
754 """__init__(int maxFiles=9) -> FileHistory"""
755 newobj
= _misc
.new_FileHistory(*args
, **kwargs
)
756 self
.this
= newobj
.this
759 def __del__(self
, destroy
=_misc
.delete_FileHistory
):
762 if self
.thisown
: destroy(self
)
765 def AddFileToHistory(*args
, **kwargs
):
766 """AddFileToHistory(wxString file)"""
767 return _misc
.FileHistory_AddFileToHistory(*args
, **kwargs
)
769 def RemoveFileFromHistory(*args
, **kwargs
):
770 """RemoveFileFromHistory(int i)"""
771 return _misc
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
773 def GetMaxFiles(*args
, **kwargs
):
774 """GetMaxFiles() -> int"""
775 return _misc
.FileHistory_GetMaxFiles(*args
, **kwargs
)
777 def UseMenu(*args
, **kwargs
):
778 """UseMenu(Menu menu)"""
779 return _misc
.FileHistory_UseMenu(*args
, **kwargs
)
781 def RemoveMenu(*args
, **kwargs
):
782 """RemoveMenu(Menu menu)"""
783 return _misc
.FileHistory_RemoveMenu(*args
, **kwargs
)
785 def Load(*args
, **kwargs
):
786 """Load(ConfigBase config)"""
787 return _misc
.FileHistory_Load(*args
, **kwargs
)
789 def Save(*args
, **kwargs
):
790 """Save(ConfigBase config)"""
791 return _misc
.FileHistory_Save(*args
, **kwargs
)
793 def AddFilesToMenu(*args
, **kwargs
):
794 """AddFilesToMenu()"""
795 return _misc
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
797 def AddFilesToThisMenu(*args
, **kwargs
):
798 """AddFilesToThisMenu(Menu menu)"""
799 return _misc
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
801 def GetHistoryFile(*args
, **kwargs
):
802 """GetHistoryFile(int i) -> wxString"""
803 return _misc
.FileHistory_GetHistoryFile(*args
, **kwargs
)
805 def GetCount(*args
, **kwargs
):
806 """GetCount() -> int"""
807 return _misc
.FileHistory_GetCount(*args
, **kwargs
)
810 class FileHistoryPtr(FileHistory
):
811 def __init__(self
, this
):
813 if not hasattr(self
,"thisown"): self
.thisown
= 0
814 self
.__class
__ = FileHistory
815 _misc
.FileHistory_swigregister(FileHistoryPtr
)
817 class SingleInstanceChecker(object):
820 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
821 def __init__(self
, *args
, **kwargs
):
822 """__init__(wxString name, wxString path=wxPyEmptyString) -> SingleInstanceChecker"""
823 newobj
= _misc
.new_SingleInstanceChecker(*args
, **kwargs
)
824 self
.this
= newobj
.this
827 def __del__(self
, destroy
=_misc
.delete_SingleInstanceChecker
):
830 if self
.thisown
: destroy(self
)
833 def Create(*args
, **kwargs
):
834 """Create(wxString name, wxString path=wxPyEmptyString) -> bool"""
835 return _misc
.SingleInstanceChecker_Create(*args
, **kwargs
)
837 def IsAnotherRunning(*args
, **kwargs
):
838 """IsAnotherRunning() -> bool"""
839 return _misc
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
842 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
843 def __init__(self
, this
):
845 if not hasattr(self
,"thisown"): self
.thisown
= 0
846 self
.__class
__ = SingleInstanceChecker
847 _misc
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
849 def PreSingleInstanceChecker(*args
, **kwargs
):
850 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
851 val
= _misc
.new_PreSingleInstanceChecker(*args
, **kwargs
)
856 def DrawWindowOnDC(*args
, **kwargs
):
857 """DrawWindowOnDC(Window window, wxDC dc, int method)"""
858 return _misc
.DrawWindowOnDC(*args
, **kwargs
)
859 #---------------------------------------------------------------------------
861 class TipProvider(object):
863 def __init__(self
): raise RuntimeError, "No constructor defined"
865 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
866 def __del__(self
, destroy
=_misc
.delete_TipProvider
):
869 if self
.thisown
: destroy(self
)
872 def GetTip(*args
, **kwargs
):
873 """GetTip() -> wxString"""
874 return _misc
.TipProvider_GetTip(*args
, **kwargs
)
876 def GetCurrentTip(*args
, **kwargs
):
877 """GetCurrentTip() -> size_t"""
878 return _misc
.TipProvider_GetCurrentTip(*args
, **kwargs
)
880 def PreprocessTip(*args
, **kwargs
):
881 """PreprocessTip(wxString tip) -> wxString"""
882 return _misc
.TipProvider_PreprocessTip(*args
, **kwargs
)
885 class TipProviderPtr(TipProvider
):
886 def __init__(self
, this
):
888 if not hasattr(self
,"thisown"): self
.thisown
= 0
889 self
.__class
__ = TipProvider
890 _misc
.TipProvider_swigregister(TipProviderPtr
)
892 class PyTipProvider(TipProvider
):
895 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
896 def __init__(self
, *args
, **kwargs
):
897 """__init__(size_t currentTip) -> PyTipProvider"""
898 newobj
= _misc
.new_PyTipProvider(*args
, **kwargs
)
899 self
.this
= newobj
.this
902 def _setCallbackInfo(*args
, **kwargs
):
903 """_setCallbackInfo(PyObject self, PyObject _class)"""
904 return _misc
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
907 class PyTipProviderPtr(PyTipProvider
):
908 def __init__(self
, this
):
910 if not hasattr(self
,"thisown"): self
.thisown
= 0
911 self
.__class
__ = PyTipProvider
912 _misc
.PyTipProvider_swigregister(PyTipProviderPtr
)
915 def ShowTip(*args
, **kwargs
):
916 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
917 return _misc
.ShowTip(*args
, **kwargs
)
919 def CreateFileTipProvider(*args
, **kwargs
):
920 """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider"""
921 return _misc
.CreateFileTipProvider(*args
, **kwargs
)
922 #---------------------------------------------------------------------------
924 TIMER_CONTINUOUS
= _misc
.TIMER_CONTINUOUS
925 TIMER_ONE_SHOT
= _misc
.TIMER_ONE_SHOT
926 wxEVT_TIMER
= _misc
.wxEVT_TIMER
927 class Timer(core
.EvtHandler
):
930 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
931 def __init__(self
, *args
, **kwargs
):
932 """__init__(EvtHandler owner=None, int id=-1) -> Timer"""
933 newobj
= _misc
.new_Timer(*args
, **kwargs
)
934 self
.this
= newobj
.this
937 def __del__(self
, destroy
=_misc
.delete_Timer
):
940 if self
.thisown
: destroy(self
)
943 def SetOwner(*args
, **kwargs
):
944 """SetOwner(EvtHandler owner, int id=-1)"""
945 return _misc
.Timer_SetOwner(*args
, **kwargs
)
947 def Start(*args
, **kwargs
):
948 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
949 return _misc
.Timer_Start(*args
, **kwargs
)
951 def Stop(*args
, **kwargs
):
953 return _misc
.Timer_Stop(*args
, **kwargs
)
955 def Notify(*args
, **kwargs
):
957 return _misc
.Timer_Notify(*args
, **kwargs
)
959 def IsRunning(*args
, **kwargs
):
960 """IsRunning() -> bool"""
961 return _misc
.Timer_IsRunning(*args
, **kwargs
)
963 def GetInterval(*args
, **kwargs
):
964 """GetInterval() -> int"""
965 return _misc
.Timer_GetInterval(*args
, **kwargs
)
967 def IsOneShot(*args
, **kwargs
):
968 """IsOneShot() -> bool"""
969 return _misc
.Timer_IsOneShot(*args
, **kwargs
)
972 class TimerPtr(Timer
):
973 def __init__(self
, this
):
975 if not hasattr(self
,"thisown"): self
.thisown
= 0
976 self
.__class
__ = Timer
977 _misc
.Timer_swigregister(TimerPtr
)
979 # For backwards compatibility with 2.4
980 class PyTimer(Timer
):
981 def __init__(self
, notify
):
990 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
993 class TimerEvent(core
.Event
):
996 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
997 def __init__(self
, *args
, **kwargs
):
998 """__init__(int timerid=0, int interval=0) -> TimerEvent"""
999 newobj
= _misc
.new_TimerEvent(*args
, **kwargs
)
1000 self
.this
= newobj
.this
1003 def GetInterval(*args
, **kwargs
):
1004 """GetInterval() -> int"""
1005 return _misc
.TimerEvent_GetInterval(*args
, **kwargs
)
1008 class TimerEventPtr(TimerEvent
):
1009 def __init__(self
, this
):
1011 if not hasattr(self
,"thisown"): self
.thisown
= 0
1012 self
.__class
__ = TimerEvent
1013 _misc
.TimerEvent_swigregister(TimerEventPtr
)
1015 class TimerRunner(object):
1018 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1019 def __init__(self
, *args
):
1020 """__init__(wxTimer timer) -> TimerRunner
1021 __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner"""
1022 newobj
= _misc
.new_TimerRunner(*args
)
1023 self
.this
= newobj
.this
1026 def __del__(self
, destroy
=_misc
.delete_TimerRunner
):
1029 if self
.thisown
: destroy(self
)
1032 def Start(*args
, **kwargs
):
1033 """Start(int milli, bool oneShot=False)"""
1034 return _misc
.TimerRunner_Start(*args
, **kwargs
)
1037 class TimerRunnerPtr(TimerRunner
):
1038 def __init__(self
, this
):
1040 if not hasattr(self
,"thisown"): self
.thisown
= 0
1041 self
.__class
__ = TimerRunner
1042 _misc
.TimerRunner_swigregister(TimerRunnerPtr
)
1044 #---------------------------------------------------------------------------
1046 LOG_FatalError
= _misc
.LOG_FatalError
1047 LOG_Error
= _misc
.LOG_Error
1048 LOG_Warning
= _misc
.LOG_Warning
1049 LOG_Message
= _misc
.LOG_Message
1050 LOG_Status
= _misc
.LOG_Status
1051 LOG_Info
= _misc
.LOG_Info
1052 LOG_Debug
= _misc
.LOG_Debug
1053 LOG_Trace
= _misc
.LOG_Trace
1054 LOG_Progress
= _misc
.LOG_Progress
1055 LOG_User
= _misc
.LOG_User
1056 LOG_Max
= _misc
.LOG_Max
1057 TRACE_MemAlloc
= _misc
.TRACE_MemAlloc
1058 TRACE_Messages
= _misc
.TRACE_Messages
1059 TRACE_ResAlloc
= _misc
.TRACE_ResAlloc
1060 TRACE_RefCount
= _misc
.TRACE_RefCount
1061 TRACE_OleCalls
= _misc
.TRACE_OleCalls
1062 TraceMemAlloc
= _misc
.TraceMemAlloc
1063 TraceMessages
= _misc
.TraceMessages
1064 TraceResAlloc
= _misc
.TraceResAlloc
1065 TraceRefCount
= _misc
.TraceRefCount
1066 TraceOleCalls
= _misc
.TraceOleCalls
1070 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1071 def __init__(self
, *args
, **kwargs
):
1072 """__init__() -> Log"""
1073 newobj
= _misc
.new_Log(*args
, **kwargs
)
1074 self
.this
= newobj
.this
1077 def IsEnabled(*args
, **kwargs
):
1078 """Log.IsEnabled() -> bool"""
1079 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1081 IsEnabled
= staticmethod(IsEnabled
)
1082 def EnableLogging(*args
, **kwargs
):
1083 """Log.EnableLogging(bool doIt=True) -> bool"""
1084 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1086 EnableLogging
= staticmethod(EnableLogging
)
1087 def OnLog(*args
, **kwargs
):
1088 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1089 return _misc
.Log_OnLog(*args
, **kwargs
)
1091 OnLog
= staticmethod(OnLog
)
1092 def Flush(*args
, **kwargs
):
1094 return _misc
.Log_Flush(*args
, **kwargs
)
1096 def FlushActive(*args
, **kwargs
):
1097 """Log.FlushActive()"""
1098 return _misc
.Log_FlushActive(*args
, **kwargs
)
1100 FlushActive
= staticmethod(FlushActive
)
1101 def GetActiveTarget(*args
, **kwargs
):
1102 """Log.GetActiveTarget() -> Log"""
1103 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1105 GetActiveTarget
= staticmethod(GetActiveTarget
)
1106 def SetActiveTarget(*args
, **kwargs
):
1107 """Log.SetActiveTarget(Log pLogger) -> Log"""
1108 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1110 SetActiveTarget
= staticmethod(SetActiveTarget
)
1111 def Suspend(*args
, **kwargs
):
1113 return _misc
.Log_Suspend(*args
, **kwargs
)
1115 Suspend
= staticmethod(Suspend
)
1116 def Resume(*args
, **kwargs
):
1118 return _misc
.Log_Resume(*args
, **kwargs
)
1120 Resume
= staticmethod(Resume
)
1121 def SetVerbose(*args
, **kwargs
):
1122 """Log.SetVerbose(bool bVerbose=True)"""
1123 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1125 SetVerbose
= staticmethod(SetVerbose
)
1126 def SetLogLevel(*args
, **kwargs
):
1127 """Log.SetLogLevel(wxLogLevel logLevel)"""
1128 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1130 SetLogLevel
= staticmethod(SetLogLevel
)
1131 def DontCreateOnDemand(*args
, **kwargs
):
1132 """Log.DontCreateOnDemand()"""
1133 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1135 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1136 def SetTraceMask(*args
, **kwargs
):
1137 """Log.SetTraceMask(wxTraceMask ulMask)"""
1138 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1140 SetTraceMask
= staticmethod(SetTraceMask
)
1141 def AddTraceMask(*args
, **kwargs
):
1142 """Log.AddTraceMask(wxString str)"""
1143 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1145 AddTraceMask
= staticmethod(AddTraceMask
)
1146 def RemoveTraceMask(*args
, **kwargs
):
1147 """Log.RemoveTraceMask(wxString str)"""
1148 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1150 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1151 def ClearTraceMasks(*args
, **kwargs
):
1152 """Log.ClearTraceMasks()"""
1153 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1155 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1156 def GetTraceMasks(*args
, **kwargs
):
1157 """Log.GetTraceMasks() -> wxArrayString"""
1158 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1160 GetTraceMasks
= staticmethod(GetTraceMasks
)
1161 def SetTimestamp(*args
, **kwargs
):
1162 """Log.SetTimestamp(wxChar ts)"""
1163 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1165 SetTimestamp
= staticmethod(SetTimestamp
)
1166 def GetVerbose(*args
, **kwargs
):
1167 """Log.GetVerbose() -> bool"""
1168 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1170 GetVerbose
= staticmethod(GetVerbose
)
1171 def GetTraceMask(*args
, **kwargs
):
1172 """Log.GetTraceMask() -> wxTraceMask"""
1173 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1175 GetTraceMask
= staticmethod(GetTraceMask
)
1176 def IsAllowedTraceMask(*args
, **kwargs
):
1177 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1178 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1180 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1181 def GetLogLevel(*args
, **kwargs
):
1182 """Log.GetLogLevel() -> wxLogLevel"""
1183 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1185 GetLogLevel
= staticmethod(GetLogLevel
)
1186 def GetTimestamp(*args
, **kwargs
):
1187 """Log.GetTimestamp() -> wxChar"""
1188 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1190 GetTimestamp
= staticmethod(GetTimestamp
)
1191 def TimeStamp(*args
, **kwargs
):
1192 """Log.TimeStamp() -> wxString"""
1193 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1195 TimeStamp
= staticmethod(TimeStamp
)
1196 def Destroy(*args
, **kwargs
):
1198 return _misc
.Log_Destroy(*args
, **kwargs
)
1202 def __init__(self
, this
):
1204 if not hasattr(self
,"thisown"): self
.thisown
= 0
1205 self
.__class
__ = Log
1206 _misc
.Log_swigregister(LogPtr
)
1208 def Log_IsEnabled(*args
, **kwargs
):
1209 """Log_IsEnabled() -> bool"""
1210 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1212 def Log_EnableLogging(*args
, **kwargs
):
1213 """Log_EnableLogging(bool doIt=True) -> bool"""
1214 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1216 def Log_OnLog(*args
, **kwargs
):
1217 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1218 return _misc
.Log_OnLog(*args
, **kwargs
)
1220 def Log_FlushActive(*args
, **kwargs
):
1221 """Log_FlushActive()"""
1222 return _misc
.Log_FlushActive(*args
, **kwargs
)
1224 def Log_GetActiveTarget(*args
, **kwargs
):
1225 """Log_GetActiveTarget() -> Log"""
1226 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1228 def Log_SetActiveTarget(*args
, **kwargs
):
1229 """Log_SetActiveTarget(Log pLogger) -> Log"""
1230 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1232 def Log_Suspend(*args
, **kwargs
):
1234 return _misc
.Log_Suspend(*args
, **kwargs
)
1236 def Log_Resume(*args
, **kwargs
):
1238 return _misc
.Log_Resume(*args
, **kwargs
)
1240 def Log_SetVerbose(*args
, **kwargs
):
1241 """Log_SetVerbose(bool bVerbose=True)"""
1242 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1244 def Log_SetLogLevel(*args
, **kwargs
):
1245 """Log_SetLogLevel(wxLogLevel logLevel)"""
1246 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1248 def Log_DontCreateOnDemand(*args
, **kwargs
):
1249 """Log_DontCreateOnDemand()"""
1250 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1252 def Log_SetTraceMask(*args
, **kwargs
):
1253 """Log_SetTraceMask(wxTraceMask ulMask)"""
1254 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1256 def Log_AddTraceMask(*args
, **kwargs
):
1257 """Log_AddTraceMask(wxString str)"""
1258 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1260 def Log_RemoveTraceMask(*args
, **kwargs
):
1261 """Log_RemoveTraceMask(wxString str)"""
1262 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1264 def Log_ClearTraceMasks(*args
, **kwargs
):
1265 """Log_ClearTraceMasks()"""
1266 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1268 def Log_GetTraceMasks(*args
, **kwargs
):
1269 """Log_GetTraceMasks() -> wxArrayString"""
1270 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1272 def Log_SetTimestamp(*args
, **kwargs
):
1273 """Log_SetTimestamp(wxChar ts)"""
1274 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1276 def Log_GetVerbose(*args
, **kwargs
):
1277 """Log_GetVerbose() -> bool"""
1278 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1280 def Log_GetTraceMask(*args
, **kwargs
):
1281 """Log_GetTraceMask() -> wxTraceMask"""
1282 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1284 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1285 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1286 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1288 def Log_GetLogLevel(*args
, **kwargs
):
1289 """Log_GetLogLevel() -> wxLogLevel"""
1290 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1292 def Log_GetTimestamp(*args
, **kwargs
):
1293 """Log_GetTimestamp() -> wxChar"""
1294 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1296 def Log_TimeStamp(*args
, **kwargs
):
1297 """Log_TimeStamp() -> wxString"""
1298 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1300 class LogStderr(Log
):
1303 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1304 def __init__(self
, *args
, **kwargs
):
1305 """__init__() -> LogStderr"""
1306 newobj
= _misc
.new_LogStderr(*args
, **kwargs
)
1307 self
.this
= newobj
.this
1311 class LogStderrPtr(LogStderr
):
1312 def __init__(self
, this
):
1314 if not hasattr(self
,"thisown"): self
.thisown
= 0
1315 self
.__class
__ = LogStderr
1316 _misc
.LogStderr_swigregister(LogStderrPtr
)
1318 class LogTextCtrl(Log
):
1321 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1322 def __init__(self
, *args
, **kwargs
):
1323 """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1324 newobj
= _misc
.new_LogTextCtrl(*args
, **kwargs
)
1325 self
.this
= newobj
.this
1329 class LogTextCtrlPtr(LogTextCtrl
):
1330 def __init__(self
, this
):
1332 if not hasattr(self
,"thisown"): self
.thisown
= 0
1333 self
.__class
__ = LogTextCtrl
1334 _misc
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1339 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1340 def __init__(self
, *args
, **kwargs
):
1341 """__init__() -> LogGui"""
1342 newobj
= _misc
.new_LogGui(*args
, **kwargs
)
1343 self
.this
= newobj
.this
1347 class LogGuiPtr(LogGui
):
1348 def __init__(self
, this
):
1350 if not hasattr(self
,"thisown"): self
.thisown
= 0
1351 self
.__class
__ = LogGui
1352 _misc
.LogGui_swigregister(LogGuiPtr
)
1354 class LogWindow(Log
):
1357 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1358 def __init__(self
, *args
, **kwargs
):
1359 """__init__(wxFrame pParent, wxString szTitle, bool bShow=True,
1360 bool bPassToOld=True) -> LogWindow"""
1361 newobj
= _misc
.new_LogWindow(*args
, **kwargs
)
1362 self
.this
= newobj
.this
1365 def Show(*args
, **kwargs
):
1366 """Show(bool bShow=True)"""
1367 return _misc
.LogWindow_Show(*args
, **kwargs
)
1369 def GetFrame(*args
, **kwargs
):
1370 """GetFrame() -> wxFrame"""
1371 return _misc
.LogWindow_GetFrame(*args
, **kwargs
)
1373 def GetOldLog(*args
, **kwargs
):
1374 """GetOldLog() -> Log"""
1375 return _misc
.LogWindow_GetOldLog(*args
, **kwargs
)
1377 def IsPassingMessages(*args
, **kwargs
):
1378 """IsPassingMessages() -> bool"""
1379 return _misc
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1381 def PassMessages(*args
, **kwargs
):
1382 """PassMessages(bool bDoPass)"""
1383 return _misc
.LogWindow_PassMessages(*args
, **kwargs
)
1386 class LogWindowPtr(LogWindow
):
1387 def __init__(self
, this
):
1389 if not hasattr(self
,"thisown"): self
.thisown
= 0
1390 self
.__class
__ = LogWindow
1391 _misc
.LogWindow_swigregister(LogWindowPtr
)
1393 class LogChain(Log
):
1396 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1397 def __init__(self
, *args
, **kwargs
):
1398 """__init__(Log logger) -> LogChain"""
1399 newobj
= _misc
.new_LogChain(*args
, **kwargs
)
1400 self
.this
= newobj
.this
1403 def SetLog(*args
, **kwargs
):
1404 """SetLog(Log logger)"""
1405 return _misc
.LogChain_SetLog(*args
, **kwargs
)
1407 def PassMessages(*args
, **kwargs
):
1408 """PassMessages(bool bDoPass)"""
1409 return _misc
.LogChain_PassMessages(*args
, **kwargs
)
1411 def IsPassingMessages(*args
, **kwargs
):
1412 """IsPassingMessages() -> bool"""
1413 return _misc
.LogChain_IsPassingMessages(*args
, **kwargs
)
1415 def GetOldLog(*args
, **kwargs
):
1416 """GetOldLog() -> Log"""
1417 return _misc
.LogChain_GetOldLog(*args
, **kwargs
)
1420 class LogChainPtr(LogChain
):
1421 def __init__(self
, this
):
1423 if not hasattr(self
,"thisown"): self
.thisown
= 0
1424 self
.__class
__ = LogChain
1425 _misc
.LogChain_swigregister(LogChainPtr
)
1428 def SysErrorCode(*args
, **kwargs
):
1429 """SysErrorCode() -> unsigned long"""
1430 return _misc
.SysErrorCode(*args
, **kwargs
)
1432 def SysErrorMsg(*args
, **kwargs
):
1433 """SysErrorMsg(unsigned long nErrCode=0) -> wxString"""
1434 return _misc
.SysErrorMsg(*args
, **kwargs
)
1436 def LogFatalError(*args
, **kwargs
):
1437 """LogFatalError(wxString msg)"""
1438 return _misc
.LogFatalError(*args
, **kwargs
)
1440 def LogError(*args
, **kwargs
):
1441 """LogError(wxString msg)"""
1442 return _misc
.LogError(*args
, **kwargs
)
1444 def LogWarning(*args
, **kwargs
):
1445 """LogWarning(wxString msg)"""
1446 return _misc
.LogWarning(*args
, **kwargs
)
1448 def LogMessage(*args
, **kwargs
):
1449 """LogMessage(wxString msg)"""
1450 return _misc
.LogMessage(*args
, **kwargs
)
1452 def LogInfo(*args
, **kwargs
):
1453 """LogInfo(wxString msg)"""
1454 return _misc
.LogInfo(*args
, **kwargs
)
1456 def LogDebug(*args
, **kwargs
):
1457 """LogDebug(wxString msg)"""
1458 return _misc
.LogDebug(*args
, **kwargs
)
1460 def LogVerbose(*args
, **kwargs
):
1461 """LogVerbose(wxString msg)"""
1462 return _misc
.LogVerbose(*args
, **kwargs
)
1464 def LogStatus(*args
, **kwargs
):
1465 """LogStatus(wxString msg)"""
1466 return _misc
.LogStatus(*args
, **kwargs
)
1468 def LogStatusFrame(*args
, **kwargs
):
1469 """LogStatusFrame(wxFrame pFrame, wxString msg)"""
1470 return _misc
.LogStatusFrame(*args
, **kwargs
)
1472 def LogSysError(*args
, **kwargs
):
1473 """LogSysError(wxString msg)"""
1474 return _misc
.LogSysError(*args
, **kwargs
)
1476 def LogTrace(*args
, **kwargs
):
1477 """LogTrace(wxString msg)"""
1478 return _misc
.LogTrace(*args
, **kwargs
)
1480 def LogTraceMask(*args
, **kwargs
):
1481 """LogTraceMask(wxString mask, wxString msg)"""
1482 return _misc
.LogTraceMask(*args
, **kwargs
)
1484 def LogGeneric(*args
, **kwargs
):
1485 """LogGeneric(unsigned long level, wxString msg)"""
1486 return _misc
.LogGeneric(*args
, **kwargs
)
1488 def SafeShowMessage(*args
, **kwargs
):
1489 """SafeShowMessage(wxString title, wxString text)"""
1490 return _misc
.SafeShowMessage(*args
, **kwargs
)
1491 class LogNull(object):
1494 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1495 def __init__(self
, *args
, **kwargs
):
1496 """__init__() -> LogNull"""
1497 newobj
= _misc
.new_LogNull(*args
, **kwargs
)
1498 self
.this
= newobj
.this
1501 def __del__(self
, destroy
=_misc
.delete_LogNull
):
1504 if self
.thisown
: destroy(self
)
1508 class LogNullPtr(LogNull
):
1509 def __init__(self
, this
):
1511 if not hasattr(self
,"thisown"): self
.thisown
= 0
1512 self
.__class
__ = LogNull
1513 _misc
.LogNull_swigregister(LogNullPtr
)
1518 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1519 def __init__(self
, *args
, **kwargs
):
1520 """__init__() -> PyLog"""
1521 newobj
= _misc
.new_PyLog(*args
, **kwargs
)
1522 self
.this
= newobj
.this
1525 self
._setCallbackInfo
(self
, PyLog
)
1527 def _setCallbackInfo(*args
, **kwargs
):
1528 """_setCallbackInfo(PyObject self, PyObject _class)"""
1529 return _misc
.PyLog__setCallbackInfo(*args
, **kwargs
)
1532 class PyLogPtr(PyLog
):
1533 def __init__(self
, this
):
1535 if not hasattr(self
,"thisown"): self
.thisown
= 0
1536 self
.__class
__ = PyLog
1537 _misc
.PyLog_swigregister(PyLogPtr
)
1539 #---------------------------------------------------------------------------
1541 PROCESS_DEFAULT
= _misc
.PROCESS_DEFAULT
1542 PROCESS_REDIRECT
= _misc
.PROCESS_REDIRECT
1543 KILL_OK
= _misc
.KILL_OK
1544 KILL_BAD_SIGNAL
= _misc
.KILL_BAD_SIGNAL
1545 KILL_ACCESS_DENIED
= _misc
.KILL_ACCESS_DENIED
1546 KILL_NO_PROCESS
= _misc
.KILL_NO_PROCESS
1547 KILL_ERROR
= _misc
.KILL_ERROR
1548 SIGNONE
= _misc
.SIGNONE
1549 SIGHUP
= _misc
.SIGHUP
1550 SIGINT
= _misc
.SIGINT
1551 SIGQUIT
= _misc
.SIGQUIT
1552 SIGILL
= _misc
.SIGILL
1553 SIGTRAP
= _misc
.SIGTRAP
1554 SIGABRT
= _misc
.SIGABRT
1555 SIGIOT
= _misc
.SIGIOT
1556 SIGEMT
= _misc
.SIGEMT
1557 SIGFPE
= _misc
.SIGFPE
1558 SIGKILL
= _misc
.SIGKILL
1559 SIGBUS
= _misc
.SIGBUS
1560 SIGSEGV
= _misc
.SIGSEGV
1561 SIGSYS
= _misc
.SIGSYS
1562 SIGPIPE
= _misc
.SIGPIPE
1563 SIGALRM
= _misc
.SIGALRM
1564 SIGTERM
= _misc
.SIGTERM
1565 class Process(core
.EvtHandler
):
1568 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1569 def Kill(*args
, **kwargs
):
1570 """Process.Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1571 return _misc
.Process_Kill(*args
, **kwargs
)
1573 Kill
= staticmethod(Kill
)
1574 def Exists(*args
, **kwargs
):
1575 """Process.Exists(int pid) -> bool"""
1576 return _misc
.Process_Exists(*args
, **kwargs
)
1578 Exists
= staticmethod(Exists
)
1579 def Open(*args
, **kwargs
):
1580 """Process.Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1581 return _misc
.Process_Open(*args
, **kwargs
)
1583 Open
= staticmethod(Open
)
1584 def __init__(self
, *args
, **kwargs
):
1585 """__init__(EvtHandler parent=None, int id=-1) -> Process"""
1586 newobj
= _misc
.new_Process(*args
, **kwargs
)
1587 self
.this
= newobj
.this
1590 self
._setCallbackInfo
(self
, Process
)
1592 def _setCallbackInfo(*args
, **kwargs
):
1593 """_setCallbackInfo(PyObject self, PyObject _class)"""
1594 return _misc
.Process__setCallbackInfo(*args
, **kwargs
)
1596 def base_OnTerminate(*args
, **kwargs
):
1597 """base_OnTerminate(int pid, int status)"""
1598 return _misc
.Process_base_OnTerminate(*args
, **kwargs
)
1600 def Redirect(*args
, **kwargs
):
1602 return _misc
.Process_Redirect(*args
, **kwargs
)
1604 def IsRedirected(*args
, **kwargs
):
1605 """IsRedirected() -> bool"""
1606 return _misc
.Process_IsRedirected(*args
, **kwargs
)
1608 def Detach(*args
, **kwargs
):
1610 return _misc
.Process_Detach(*args
, **kwargs
)
1612 def GetInputStream(*args
, **kwargs
):
1613 """GetInputStream() -> wxInputStream"""
1614 return _misc
.Process_GetInputStream(*args
, **kwargs
)
1616 def GetErrorStream(*args
, **kwargs
):
1617 """GetErrorStream() -> wxInputStream"""
1618 return _misc
.Process_GetErrorStream(*args
, **kwargs
)
1620 def GetOutputStream(*args
, **kwargs
):
1621 """GetOutputStream() -> OutputStream"""
1622 return _misc
.Process_GetOutputStream(*args
, **kwargs
)
1624 def CloseOutput(*args
, **kwargs
):
1626 return _misc
.Process_CloseOutput(*args
, **kwargs
)
1628 def IsInputOpened(*args
, **kwargs
):
1629 """IsInputOpened() -> bool"""
1630 return _misc
.Process_IsInputOpened(*args
, **kwargs
)
1632 def IsInputAvailable(*args
, **kwargs
):
1633 """IsInputAvailable() -> bool"""
1634 return _misc
.Process_IsInputAvailable(*args
, **kwargs
)
1636 def IsErrorAvailable(*args
, **kwargs
):
1637 """IsErrorAvailable() -> bool"""
1638 return _misc
.Process_IsErrorAvailable(*args
, **kwargs
)
1641 class ProcessPtr(Process
):
1642 def __init__(self
, this
):
1644 if not hasattr(self
,"thisown"): self
.thisown
= 0
1645 self
.__class
__ = Process
1646 _misc
.Process_swigregister(ProcessPtr
)
1648 def Process_Kill(*args
, **kwargs
):
1649 """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1650 return _misc
.Process_Kill(*args
, **kwargs
)
1652 def Process_Exists(*args
, **kwargs
):
1653 """Process_Exists(int pid) -> bool"""
1654 return _misc
.Process_Exists(*args
, **kwargs
)
1656 def Process_Open(*args
, **kwargs
):
1657 """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1658 return _misc
.Process_Open(*args
, **kwargs
)
1660 class ProcessEvent(core
.Event
):
1663 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1664 def __init__(self
, *args
, **kwargs
):
1665 """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1666 newobj
= _misc
.new_ProcessEvent(*args
, **kwargs
)
1667 self
.this
= newobj
.this
1670 def GetPid(*args
, **kwargs
):
1671 """GetPid() -> int"""
1672 return _misc
.ProcessEvent_GetPid(*args
, **kwargs
)
1674 def GetExitCode(*args
, **kwargs
):
1675 """GetExitCode() -> int"""
1676 return _misc
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1678 m_pid
= property(_misc
.ProcessEvent_m_pid_get
, _misc
.ProcessEvent_m_pid_set
)
1679 m_exitcode
= property(_misc
.ProcessEvent_m_exitcode_get
, _misc
.ProcessEvent_m_exitcode_set
)
1681 class ProcessEventPtr(ProcessEvent
):
1682 def __init__(self
, this
):
1684 if not hasattr(self
,"thisown"): self
.thisown
= 0
1685 self
.__class
__ = ProcessEvent
1686 _misc
.ProcessEvent_swigregister(ProcessEventPtr
)
1688 wxEVT_END_PROCESS
= _misc
.wxEVT_END_PROCESS
1689 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1691 EXEC_ASYNC
= _misc
.EXEC_ASYNC
1692 EXEC_SYNC
= _misc
.EXEC_SYNC
1693 EXEC_NOHIDE
= _misc
.EXEC_NOHIDE
1694 EXEC_MAKE_GROUP_LEADER
= _misc
.EXEC_MAKE_GROUP_LEADER
1696 def Execute(*args
, **kwargs
):
1697 """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1698 return _misc
.Execute(*args
, **kwargs
)
1699 #---------------------------------------------------------------------------
1701 JOYSTICK1
= _misc
.JOYSTICK1
1702 JOYSTICK2
= _misc
.JOYSTICK2
1703 JOY_BUTTON_ANY
= _misc
.JOY_BUTTON_ANY
1704 JOY_BUTTON1
= _misc
.JOY_BUTTON1
1705 JOY_BUTTON2
= _misc
.JOY_BUTTON2
1706 JOY_BUTTON3
= _misc
.JOY_BUTTON3
1707 JOY_BUTTON4
= _misc
.JOY_BUTTON4
1708 class Joystick(object):
1711 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1712 def __init__(self
, *args
, **kwargs
):
1713 """__init__(int joystick=JOYSTICK1) -> Joystick"""
1714 newobj
= _misc
.new_Joystick(*args
, **kwargs
)
1715 self
.this
= newobj
.this
1718 def __del__(self
, destroy
=_misc
.delete_Joystick
):
1721 if self
.thisown
: destroy(self
)
1724 def GetPosition(*args
, **kwargs
):
1725 """GetPosition() -> Point"""
1726 return _misc
.Joystick_GetPosition(*args
, **kwargs
)
1728 def GetZPosition(*args
, **kwargs
):
1729 """GetZPosition() -> int"""
1730 return _misc
.Joystick_GetZPosition(*args
, **kwargs
)
1732 def GetButtonState(*args
, **kwargs
):
1733 """GetButtonState() -> int"""
1734 return _misc
.Joystick_GetButtonState(*args
, **kwargs
)
1736 def GetPOVPosition(*args
, **kwargs
):
1737 """GetPOVPosition() -> int"""
1738 return _misc
.Joystick_GetPOVPosition(*args
, **kwargs
)
1740 def GetPOVCTSPosition(*args
, **kwargs
):
1741 """GetPOVCTSPosition() -> int"""
1742 return _misc
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1744 def GetRudderPosition(*args
, **kwargs
):
1745 """GetRudderPosition() -> int"""
1746 return _misc
.Joystick_GetRudderPosition(*args
, **kwargs
)
1748 def GetUPosition(*args
, **kwargs
):
1749 """GetUPosition() -> int"""
1750 return _misc
.Joystick_GetUPosition(*args
, **kwargs
)
1752 def GetVPosition(*args
, **kwargs
):
1753 """GetVPosition() -> int"""
1754 return _misc
.Joystick_GetVPosition(*args
, **kwargs
)
1756 def GetMovementThreshold(*args
, **kwargs
):
1757 """GetMovementThreshold() -> int"""
1758 return _misc
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1760 def SetMovementThreshold(*args
, **kwargs
):
1761 """SetMovementThreshold(int threshold)"""
1762 return _misc
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1764 def IsOk(*args
, **kwargs
):
1765 """IsOk(void ??) -> bool"""
1766 return _misc
.Joystick_IsOk(*args
, **kwargs
)
1768 def GetNumberJoysticks(*args
, **kwargs
):
1769 """GetNumberJoysticks() -> int"""
1770 return _misc
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1772 def GetManufacturerId(*args
, **kwargs
):
1773 """GetManufacturerId() -> int"""
1774 return _misc
.Joystick_GetManufacturerId(*args
, **kwargs
)
1776 def GetProductId(*args
, **kwargs
):
1777 """GetProductId() -> int"""
1778 return _misc
.Joystick_GetProductId(*args
, **kwargs
)
1780 def GetProductName(*args
, **kwargs
):
1781 """GetProductName() -> wxString"""
1782 return _misc
.Joystick_GetProductName(*args
, **kwargs
)
1784 def GetXMin(*args
, **kwargs
):
1785 """GetXMin() -> int"""
1786 return _misc
.Joystick_GetXMin(*args
, **kwargs
)
1788 def GetYMin(*args
, **kwargs
):
1789 """GetYMin() -> int"""
1790 return _misc
.Joystick_GetYMin(*args
, **kwargs
)
1792 def GetZMin(*args
, **kwargs
):
1793 """GetZMin() -> int"""
1794 return _misc
.Joystick_GetZMin(*args
, **kwargs
)
1796 def GetXMax(*args
, **kwargs
):
1797 """GetXMax() -> int"""
1798 return _misc
.Joystick_GetXMax(*args
, **kwargs
)
1800 def GetYMax(*args
, **kwargs
):
1801 """GetYMax() -> int"""
1802 return _misc
.Joystick_GetYMax(*args
, **kwargs
)
1804 def GetZMax(*args
, **kwargs
):
1805 """GetZMax() -> int"""
1806 return _misc
.Joystick_GetZMax(*args
, **kwargs
)
1808 def GetNumberButtons(*args
, **kwargs
):
1809 """GetNumberButtons() -> int"""
1810 return _misc
.Joystick_GetNumberButtons(*args
, **kwargs
)
1812 def GetNumberAxes(*args
, **kwargs
):
1813 """GetNumberAxes() -> int"""
1814 return _misc
.Joystick_GetNumberAxes(*args
, **kwargs
)
1816 def GetMaxButtons(*args
, **kwargs
):
1817 """GetMaxButtons() -> int"""
1818 return _misc
.Joystick_GetMaxButtons(*args
, **kwargs
)
1820 def GetMaxAxes(*args
, **kwargs
):
1821 """GetMaxAxes() -> int"""
1822 return _misc
.Joystick_GetMaxAxes(*args
, **kwargs
)
1824 def GetPollingMin(*args
, **kwargs
):
1825 """GetPollingMin() -> int"""
1826 return _misc
.Joystick_GetPollingMin(*args
, **kwargs
)
1828 def GetPollingMax(*args
, **kwargs
):
1829 """GetPollingMax() -> int"""
1830 return _misc
.Joystick_GetPollingMax(*args
, **kwargs
)
1832 def GetRudderMin(*args
, **kwargs
):
1833 """GetRudderMin() -> int"""
1834 return _misc
.Joystick_GetRudderMin(*args
, **kwargs
)
1836 def GetRudderMax(*args
, **kwargs
):
1837 """GetRudderMax() -> int"""
1838 return _misc
.Joystick_GetRudderMax(*args
, **kwargs
)
1840 def GetUMin(*args
, **kwargs
):
1841 """GetUMin() -> int"""
1842 return _misc
.Joystick_GetUMin(*args
, **kwargs
)
1844 def GetUMax(*args
, **kwargs
):
1845 """GetUMax() -> int"""
1846 return _misc
.Joystick_GetUMax(*args
, **kwargs
)
1848 def GetVMin(*args
, **kwargs
):
1849 """GetVMin() -> int"""
1850 return _misc
.Joystick_GetVMin(*args
, **kwargs
)
1852 def GetVMax(*args
, **kwargs
):
1853 """GetVMax() -> int"""
1854 return _misc
.Joystick_GetVMax(*args
, **kwargs
)
1856 def HasRudder(*args
, **kwargs
):
1857 """HasRudder() -> bool"""
1858 return _misc
.Joystick_HasRudder(*args
, **kwargs
)
1860 def HasZ(*args
, **kwargs
):
1861 """HasZ() -> bool"""
1862 return _misc
.Joystick_HasZ(*args
, **kwargs
)
1864 def HasU(*args
, **kwargs
):
1865 """HasU() -> bool"""
1866 return _misc
.Joystick_HasU(*args
, **kwargs
)
1868 def HasV(*args
, **kwargs
):
1869 """HasV() -> bool"""
1870 return _misc
.Joystick_HasV(*args
, **kwargs
)
1872 def HasPOV(*args
, **kwargs
):
1873 """HasPOV() -> bool"""
1874 return _misc
.Joystick_HasPOV(*args
, **kwargs
)
1876 def HasPOV4Dir(*args
, **kwargs
):
1877 """HasPOV4Dir() -> bool"""
1878 return _misc
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1880 def HasPOVCTS(*args
, **kwargs
):
1881 """HasPOVCTS() -> bool"""
1882 return _misc
.Joystick_HasPOVCTS(*args
, **kwargs
)
1884 def SetCapture(*args
, **kwargs
):
1885 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1886 return _misc
.Joystick_SetCapture(*args
, **kwargs
)
1888 def ReleaseCapture(*args
, **kwargs
):
1889 """ReleaseCapture() -> bool"""
1890 return _misc
.Joystick_ReleaseCapture(*args
, **kwargs
)
1892 def __nonzero__(self
): return self
.IsOk()
1894 class JoystickPtr(Joystick
):
1895 def __init__(self
, this
):
1897 if not hasattr(self
,"thisown"): self
.thisown
= 0
1898 self
.__class
__ = Joystick
1899 _misc
.Joystick_swigregister(JoystickPtr
)
1901 wxEVT_JOY_BUTTON_DOWN
= _misc
.wxEVT_JOY_BUTTON_DOWN
1902 wxEVT_JOY_BUTTON_UP
= _misc
.wxEVT_JOY_BUTTON_UP
1903 wxEVT_JOY_MOVE
= _misc
.wxEVT_JOY_MOVE
1904 wxEVT_JOY_ZMOVE
= _misc
.wxEVT_JOY_ZMOVE
1905 class JoystickEvent(core
.Event
):
1908 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1909 m_pos
= property(_misc
.JoystickEvent_m_pos_get
, _misc
.JoystickEvent_m_pos_set
)
1910 m_zPosition
= property(_misc
.JoystickEvent_m_zPosition_get
, _misc
.JoystickEvent_m_zPosition_set
)
1911 m_buttonChange
= property(_misc
.JoystickEvent_m_buttonChange_get
, _misc
.JoystickEvent_m_buttonChange_set
)
1912 m_buttonState
= property(_misc
.JoystickEvent_m_buttonState_get
, _misc
.JoystickEvent_m_buttonState_set
)
1913 m_joyStick
= property(_misc
.JoystickEvent_m_joyStick_get
, _misc
.JoystickEvent_m_joyStick_set
)
1914 def __init__(self
, *args
, **kwargs
):
1915 """__init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1916 int change=0) -> JoystickEvent"""
1917 newobj
= _misc
.new_JoystickEvent(*args
, **kwargs
)
1918 self
.this
= newobj
.this
1921 def GetPosition(*args
, **kwargs
):
1922 """GetPosition() -> Point"""
1923 return _misc
.JoystickEvent_GetPosition(*args
, **kwargs
)
1925 def GetZPosition(*args
, **kwargs
):
1926 """GetZPosition() -> int"""
1927 return _misc
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1929 def GetButtonState(*args
, **kwargs
):
1930 """GetButtonState() -> int"""
1931 return _misc
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1933 def GetButtonChange(*args
, **kwargs
):
1934 """GetButtonChange() -> int"""
1935 return _misc
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1937 def GetJoystick(*args
, **kwargs
):
1938 """GetJoystick() -> int"""
1939 return _misc
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1941 def SetJoystick(*args
, **kwargs
):
1942 """SetJoystick(int stick)"""
1943 return _misc
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1945 def SetButtonState(*args
, **kwargs
):
1946 """SetButtonState(int state)"""
1947 return _misc
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1949 def SetButtonChange(*args
, **kwargs
):
1950 """SetButtonChange(int change)"""
1951 return _misc
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1953 def SetPosition(*args
, **kwargs
):
1954 """SetPosition(Point pos)"""
1955 return _misc
.JoystickEvent_SetPosition(*args
, **kwargs
)
1957 def SetZPosition(*args
, **kwargs
):
1958 """SetZPosition(int zPos)"""
1959 return _misc
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1961 def IsButton(*args
, **kwargs
):
1962 """IsButton() -> bool"""
1963 return _misc
.JoystickEvent_IsButton(*args
, **kwargs
)
1965 def IsMove(*args
, **kwargs
):
1966 """IsMove() -> bool"""
1967 return _misc
.JoystickEvent_IsMove(*args
, **kwargs
)
1969 def IsZMove(*args
, **kwargs
):
1970 """IsZMove() -> bool"""
1971 return _misc
.JoystickEvent_IsZMove(*args
, **kwargs
)
1973 def ButtonDown(*args
, **kwargs
):
1974 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1975 return _misc
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1977 def ButtonUp(*args
, **kwargs
):
1978 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1979 return _misc
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1981 def ButtonIsDown(*args
, **kwargs
):
1982 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1983 return _misc
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
1986 class JoystickEventPtr(JoystickEvent
):
1987 def __init__(self
, this
):
1989 if not hasattr(self
,"thisown"): self
.thisown
= 0
1990 self
.__class
__ = JoystickEvent
1991 _misc
.JoystickEvent_swigregister(JoystickEventPtr
)
1993 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
1994 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
1995 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
1996 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
1998 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
1999 wxEVT_JOY_BUTTON_UP
,
2005 #---------------------------------------------------------------------------
2010 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2011 def __init__(self
, *args
, **kwargs
):
2012 """__init__(wxString fileName, bool isResource=False) -> Wave"""
2013 newobj
= _misc
.new_Wave(*args
, **kwargs
)
2014 self
.this
= newobj
.this
2017 def __del__(self
, destroy
=_misc
.delete_Wave
):
2020 if self
.thisown
: destroy(self
)
2023 def IsOk(*args
, **kwargs
):
2024 """IsOk() -> bool"""
2025 return _misc
.Wave_IsOk(*args
, **kwargs
)
2027 def Play(*args
, **kwargs
):
2028 """Play(bool async=True, bool looped=False) -> bool"""
2029 return _misc
.Wave_Play(*args
, **kwargs
)
2031 def __nonzero__(self
): return self
.IsOk()
2033 class WavePtr(Wave
):
2034 def __init__(self
, this
):
2036 if not hasattr(self
,"thisown"): self
.thisown
= 0
2037 self
.__class
__ = Wave
2038 _misc
.Wave_swigregister(WavePtr
)
2040 def WaveData(*args
, **kwargs
):
2041 """WaveData(wxString data) -> Wave"""
2042 val
= _misc
.new_WaveData(*args
, **kwargs
)
2046 #---------------------------------------------------------------------------
2048 MAILCAP_STANDARD
= _misc
.MAILCAP_STANDARD
2049 MAILCAP_NETSCAPE
= _misc
.MAILCAP_NETSCAPE
2050 MAILCAP_KDE
= _misc
.MAILCAP_KDE
2051 MAILCAP_GNOME
= _misc
.MAILCAP_GNOME
2052 MAILCAP_ALL
= _misc
.MAILCAP_ALL
2053 class FileTypeInfo(object):
2056 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2057 def __init__(self
, *args
, **kwargs
):
2058 """__init__(wxString mimeType, wxString openCmd, wxString printCmd,
2059 wxString desc) -> FileTypeInfo"""
2060 newobj
= _misc
.new_FileTypeInfo(*args
, **kwargs
)
2061 self
.this
= newobj
.this
2064 def IsValid(*args
, **kwargs
):
2065 """IsValid() -> bool"""
2066 return _misc
.FileTypeInfo_IsValid(*args
, **kwargs
)
2068 def SetIcon(*args
, **kwargs
):
2069 """SetIcon(wxString iconFile, int iconIndex=0)"""
2070 return _misc
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2072 def SetShortDesc(*args
, **kwargs
):
2073 """SetShortDesc(wxString shortDesc)"""
2074 return _misc
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2076 def GetMimeType(*args
, **kwargs
):
2077 """GetMimeType() -> wxString"""
2078 return _misc
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2080 def GetOpenCommand(*args
, **kwargs
):
2081 """GetOpenCommand() -> wxString"""
2082 return _misc
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2084 def GetPrintCommand(*args
, **kwargs
):
2085 """GetPrintCommand() -> wxString"""
2086 return _misc
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2088 def GetShortDesc(*args
, **kwargs
):
2089 """GetShortDesc() -> wxString"""
2090 return _misc
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2092 def GetDescription(*args
, **kwargs
):
2093 """GetDescription() -> wxString"""
2094 return _misc
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2096 def GetExtensions(*args
, **kwargs
):
2097 """GetExtensions() -> wxArrayString"""
2098 return _misc
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2100 def GetExtensionsCount(*args
, **kwargs
):
2101 """GetExtensionsCount() -> int"""
2102 return _misc
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2104 def GetIconFile(*args
, **kwargs
):
2105 """GetIconFile() -> wxString"""
2106 return _misc
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2108 def GetIconIndex(*args
, **kwargs
):
2109 """GetIconIndex() -> int"""
2110 return _misc
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2113 class FileTypeInfoPtr(FileTypeInfo
):
2114 def __init__(self
, this
):
2116 if not hasattr(self
,"thisown"): self
.thisown
= 0
2117 self
.__class
__ = FileTypeInfo
2118 _misc
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2120 def FileTypeInfoSequence(*args
, **kwargs
):
2121 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2122 val
= _misc
.new_FileTypeInfoSequence(*args
, **kwargs
)
2126 def NullFileTypeInfo(*args
, **kwargs
):
2127 """NullFileTypeInfo() -> FileTypeInfo"""
2128 val
= _misc
.new_NullFileTypeInfo(*args
, **kwargs
)
2132 class FileType(object):
2135 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2136 def __init__(self
, *args
, **kwargs
):
2137 """__init__(FileTypeInfo ftInfo) -> FileType"""
2138 newobj
= _misc
.new_FileType(*args
, **kwargs
)
2139 self
.this
= newobj
.this
2142 def __del__(self
, destroy
=_misc
.delete_FileType
):
2145 if self
.thisown
: destroy(self
)
2148 def GetMimeType(*args
, **kwargs
):
2149 """GetMimeType() -> PyObject"""
2150 return _misc
.FileType_GetMimeType(*args
, **kwargs
)
2152 def GetMimeTypes(*args
, **kwargs
):
2153 """GetMimeTypes() -> PyObject"""
2154 return _misc
.FileType_GetMimeTypes(*args
, **kwargs
)
2156 def GetExtensions(*args
, **kwargs
):
2157 """GetExtensions() -> PyObject"""
2158 return _misc
.FileType_GetExtensions(*args
, **kwargs
)
2160 def GetIcon(*args
, **kwargs
):
2161 """GetIcon() -> wxIcon"""
2162 return _misc
.FileType_GetIcon(*args
, **kwargs
)
2164 def GetIconInfo(*args
, **kwargs
):
2165 """GetIconInfo() -> PyObject"""
2166 return _misc
.FileType_GetIconInfo(*args
, **kwargs
)
2168 def GetDescription(*args
, **kwargs
):
2169 """GetDescription() -> PyObject"""
2170 return _misc
.FileType_GetDescription(*args
, **kwargs
)
2172 def GetOpenCommand(*args
, **kwargs
):
2173 """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2174 return _misc
.FileType_GetOpenCommand(*args
, **kwargs
)
2176 def GetPrintCommand(*args
, **kwargs
):
2177 """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2178 return _misc
.FileType_GetPrintCommand(*args
, **kwargs
)
2180 def GetAllCommands(*args
, **kwargs
):
2181 """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2182 return _misc
.FileType_GetAllCommands(*args
, **kwargs
)
2184 def SetCommand(*args
, **kwargs
):
2185 """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool"""
2186 return _misc
.FileType_SetCommand(*args
, **kwargs
)
2188 def SetDefaultIcon(*args
, **kwargs
):
2189 """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool"""
2190 return _misc
.FileType_SetDefaultIcon(*args
, **kwargs
)
2192 def Unassociate(*args
, **kwargs
):
2193 """Unassociate() -> bool"""
2194 return _misc
.FileType_Unassociate(*args
, **kwargs
)
2196 def ExpandCommand(*args
, **kwargs
):
2197 """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2198 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2200 ExpandCommand
= staticmethod(ExpandCommand
)
2202 class FileTypePtr(FileType
):
2203 def __init__(self
, this
):
2205 if not hasattr(self
,"thisown"): self
.thisown
= 0
2206 self
.__class
__ = FileType
2207 _misc
.FileType_swigregister(FileTypePtr
)
2209 def FileType_ExpandCommand(*args
, **kwargs
):
2210 """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2211 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2213 class MimeTypesManager(object):
2216 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2217 def IsOfType(*args
, **kwargs
):
2218 """MimeTypesManager.IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2219 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2221 IsOfType
= staticmethod(IsOfType
)
2222 def __init__(self
, *args
, **kwargs
):
2223 """__init__() -> MimeTypesManager"""
2224 newobj
= _misc
.new_MimeTypesManager(*args
, **kwargs
)
2225 self
.this
= newobj
.this
2228 def Initialize(*args
, **kwargs
):
2229 """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)"""
2230 return _misc
.MimeTypesManager_Initialize(*args
, **kwargs
)
2232 def ClearData(*args
, **kwargs
):
2234 return _misc
.MimeTypesManager_ClearData(*args
, **kwargs
)
2236 def GetFileTypeFromExtension(*args
, **kwargs
):
2237 """GetFileTypeFromExtension(wxString ext) -> FileType"""
2238 return _misc
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2240 def GetFileTypeFromMimeType(*args
, **kwargs
):
2241 """GetFileTypeFromMimeType(wxString mimeType) -> FileType"""
2242 return _misc
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2244 def ReadMailcap(*args
, **kwargs
):
2245 """ReadMailcap(wxString filename, bool fallback=False) -> bool"""
2246 return _misc
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2248 def ReadMimeTypes(*args
, **kwargs
):
2249 """ReadMimeTypes(wxString filename) -> bool"""
2250 return _misc
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2252 def EnumAllFileTypes(*args
, **kwargs
):
2253 """EnumAllFileTypes() -> PyObject"""
2254 return _misc
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2256 def AddFallback(*args
, **kwargs
):
2257 """AddFallback(FileTypeInfo ft)"""
2258 return _misc
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2260 def Associate(*args
, **kwargs
):
2261 """Associate(FileTypeInfo ftInfo) -> FileType"""
2262 return _misc
.MimeTypesManager_Associate(*args
, **kwargs
)
2264 def Unassociate(*args
, **kwargs
):
2265 """Unassociate(FileType ft) -> bool"""
2266 return _misc
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2268 def __del__(self
, destroy
=_misc
.delete_MimeTypesManager
):
2271 if self
.thisown
: destroy(self
)
2275 class MimeTypesManagerPtr(MimeTypesManager
):
2276 def __init__(self
, this
):
2278 if not hasattr(self
,"thisown"): self
.thisown
= 0
2279 self
.__class
__ = MimeTypesManager
2280 _misc
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2282 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2284 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2285 """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2286 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2288 #---------------------------------------------------------------------------
2290 class ArtProvider(object):
2293 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2294 def __init__(self
, *args
, **kwargs
):
2295 """__init__() -> ArtProvider"""
2296 newobj
= _misc
.new_ArtProvider(*args
, **kwargs
)
2297 self
.this
= newobj
.this
2300 self
._setCallbackInfo
(self
, ArtProvider
)
2302 def __del__(self
, destroy
=_misc
.delete_ArtProvider
):
2305 if self
.thisown
: destroy(self
)
2308 def _setCallbackInfo(*args
, **kwargs
):
2309 """_setCallbackInfo(PyObject self, PyObject _class)"""
2310 return _misc
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2312 def PushProvider(*args
, **kwargs
):
2313 """ArtProvider.PushProvider(ArtProvider provider)"""
2314 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2316 PushProvider
= staticmethod(PushProvider
)
2317 def PopProvider(*args
, **kwargs
):
2318 """ArtProvider.PopProvider() -> bool"""
2319 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2321 PopProvider
= staticmethod(PopProvider
)
2322 def RemoveProvider(*args
, **kwargs
):
2323 """ArtProvider.RemoveProvider(ArtProvider provider) -> bool"""
2324 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2326 RemoveProvider
= staticmethod(RemoveProvider
)
2327 def GetBitmap(*args
, **kwargs
):
2328 """ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap"""
2329 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2331 GetBitmap
= staticmethod(GetBitmap
)
2332 def GetIcon(*args
, **kwargs
):
2333 """ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon"""
2334 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2336 GetIcon
= staticmethod(GetIcon
)
2338 class ArtProviderPtr(ArtProvider
):
2339 def __init__(self
, this
):
2341 if not hasattr(self
,"thisown"): self
.thisown
= 0
2342 self
.__class
__ = ArtProvider
2343 _misc
.ArtProvider_swigregister(ArtProviderPtr
)
2344 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2345 ART_MENU
= cvar
.ART_MENU
2346 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2347 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2348 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2349 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2350 ART_OTHER
= cvar
.ART_OTHER
2351 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2352 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2353 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2354 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2355 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2356 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2357 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2358 ART_GO_BACK
= cvar
.ART_GO_BACK
2359 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2360 ART_GO_UP
= cvar
.ART_GO_UP
2361 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2362 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2363 ART_GO_HOME
= cvar
.ART_GO_HOME
2364 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2365 ART_PRINT
= cvar
.ART_PRINT
2366 ART_HELP
= cvar
.ART_HELP
2367 ART_TIP
= cvar
.ART_TIP
2368 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2369 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2370 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2371 ART_FOLDER
= cvar
.ART_FOLDER
2372 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2373 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2374 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2375 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2376 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2377 ART_ERROR
= cvar
.ART_ERROR
2378 ART_QUESTION
= cvar
.ART_QUESTION
2379 ART_WARNING
= cvar
.ART_WARNING
2380 ART_INFORMATION
= cvar
.ART_INFORMATION
2381 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2383 def ArtProvider_PushProvider(*args
, **kwargs
):
2384 """ArtProvider_PushProvider(ArtProvider provider)"""
2385 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2387 def ArtProvider_PopProvider(*args
, **kwargs
):
2388 """ArtProvider_PopProvider() -> bool"""
2389 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2391 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2392 """ArtProvider_RemoveProvider(ArtProvider provider) -> bool"""
2393 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2395 def ArtProvider_GetBitmap(*args
, **kwargs
):
2396 """ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap"""
2397 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2399 def ArtProvider_GetIcon(*args
, **kwargs
):
2400 """ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon"""
2401 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2403 #---------------------------------------------------------------------------
2405 CONFIG_USE_LOCAL_FILE
= _misc
.CONFIG_USE_LOCAL_FILE
2406 CONFIG_USE_GLOBAL_FILE
= _misc
.CONFIG_USE_GLOBAL_FILE
2407 CONFIG_USE_RELATIVE_PATH
= _misc
.CONFIG_USE_RELATIVE_PATH
2408 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2409 class ConfigBase(object):
2411 def __init__(self
): raise RuntimeError, "No constructor defined"
2413 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2414 def __del__(self
, destroy
=_misc
.delete_ConfigBase
):
2417 if self
.thisown
: destroy(self
)
2420 Type_Unknown
= _misc
.ConfigBase_Type_Unknown
2421 Type_String
= _misc
.ConfigBase_Type_String
2422 Type_Boolean
= _misc
.ConfigBase_Type_Boolean
2423 Type_Integer
= _misc
.ConfigBase_Type_Integer
2424 Type_Float
= _misc
.ConfigBase_Type_Float
2425 def Set(*args
, **kwargs
):
2426 """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase"""
2427 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2429 Set
= staticmethod(Set
)
2430 def Get(*args
, **kwargs
):
2431 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2432 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2434 Get
= staticmethod(Get
)
2435 def Create(*args
, **kwargs
):
2436 """ConfigBase.Create() -> ConfigBase"""
2437 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2439 Create
= staticmethod(Create
)
2440 def DontCreateOnDemand(*args
, **kwargs
):
2441 """ConfigBase.DontCreateOnDemand()"""
2442 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2444 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2445 def SetPath(*args
, **kwargs
):
2446 """SetPath(wxString strPath)"""
2447 return _misc
.ConfigBase_SetPath(*args
, **kwargs
)
2449 def GetPath(*args
, **kwargs
):
2450 """GetPath() -> wxString"""
2451 return _misc
.ConfigBase_GetPath(*args
, **kwargs
)
2453 def GetFirstGroup(*args
, **kwargs
):
2454 """GetFirstGroup() -> PyObject"""
2455 return _misc
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2457 def GetNextGroup(*args
, **kwargs
):
2458 """GetNextGroup(long index) -> PyObject"""
2459 return _misc
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2461 def GetFirstEntry(*args
, **kwargs
):
2462 """GetFirstEntry() -> PyObject"""
2463 return _misc
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2465 def GetNextEntry(*args
, **kwargs
):
2466 """GetNextEntry(long index) -> PyObject"""
2467 return _misc
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2469 def GetNumberOfEntries(*args
, **kwargs
):
2470 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2471 return _misc
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2473 def GetNumberOfGroups(*args
, **kwargs
):
2474 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2475 return _misc
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2477 def HasGroup(*args
, **kwargs
):
2478 """HasGroup(wxString strName) -> bool"""
2479 return _misc
.ConfigBase_HasGroup(*args
, **kwargs
)
2481 def HasEntry(*args
, **kwargs
):
2482 """HasEntry(wxString strName) -> bool"""
2483 return _misc
.ConfigBase_HasEntry(*args
, **kwargs
)
2485 def Exists(*args
, **kwargs
):
2486 """Exists(wxString strName) -> bool"""
2487 return _misc
.ConfigBase_Exists(*args
, **kwargs
)
2489 def GetEntryType(*args
, **kwargs
):
2490 """GetEntryType(wxString name) -> wxConfigBase::EntryType"""
2491 return _misc
.ConfigBase_GetEntryType(*args
, **kwargs
)
2493 def Read(*args
, **kwargs
):
2494 """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString"""
2495 return _misc
.ConfigBase_Read(*args
, **kwargs
)
2497 def ReadInt(*args
, **kwargs
):
2498 """ReadInt(wxString key, long defaultVal=0) -> long"""
2499 return _misc
.ConfigBase_ReadInt(*args
, **kwargs
)
2501 def ReadFloat(*args
, **kwargs
):
2502 """ReadFloat(wxString key, double defaultVal=0.0) -> double"""
2503 return _misc
.ConfigBase_ReadFloat(*args
, **kwargs
)
2505 def ReadBool(*args
, **kwargs
):
2506 """ReadBool(wxString key, bool defaultVal=False) -> bool"""
2507 return _misc
.ConfigBase_ReadBool(*args
, **kwargs
)
2509 def Write(*args
, **kwargs
):
2510 """Write(wxString key, wxString value) -> bool"""
2511 return _misc
.ConfigBase_Write(*args
, **kwargs
)
2513 def WriteInt(*args
, **kwargs
):
2514 """WriteInt(wxString key, long value) -> bool"""
2515 return _misc
.ConfigBase_WriteInt(*args
, **kwargs
)
2517 def WriteFloat(*args
, **kwargs
):
2518 """WriteFloat(wxString key, double value) -> bool"""
2519 return _misc
.ConfigBase_WriteFloat(*args
, **kwargs
)
2521 def WriteBool(*args
, **kwargs
):
2522 """WriteBool(wxString key, bool value) -> bool"""
2523 return _misc
.ConfigBase_WriteBool(*args
, **kwargs
)
2525 def Flush(*args
, **kwargs
):
2526 """Flush(bool bCurrentOnly=False) -> bool"""
2527 return _misc
.ConfigBase_Flush(*args
, **kwargs
)
2529 def RenameEntry(*args
, **kwargs
):
2530 """RenameEntry(wxString oldName, wxString newName) -> bool"""
2531 return _misc
.ConfigBase_RenameEntry(*args
, **kwargs
)
2533 def RenameGroup(*args
, **kwargs
):
2534 """RenameGroup(wxString oldName, wxString newName) -> bool"""
2535 return _misc
.ConfigBase_RenameGroup(*args
, **kwargs
)
2537 def DeleteEntry(*args
, **kwargs
):
2538 """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool"""
2539 return _misc
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2541 def DeleteGroup(*args
, **kwargs
):
2542 """DeleteGroup(wxString key) -> bool"""
2543 return _misc
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2545 def DeleteAll(*args
, **kwargs
):
2546 """DeleteAll() -> bool"""
2547 return _misc
.ConfigBase_DeleteAll(*args
, **kwargs
)
2549 def IsExpandingEnvVars(*args
, **kwargs
):
2550 """IsExpandingEnvVars() -> bool"""
2551 return _misc
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2553 def SetExpandEnvVars(*args
, **kwargs
):
2554 """SetExpandEnvVars(bool bDoIt=True)"""
2555 return _misc
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2557 def SetRecordDefaults(*args
, **kwargs
):
2558 """SetRecordDefaults(bool bDoIt=True)"""
2559 return _misc
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2561 def IsRecordingDefaults(*args
, **kwargs
):
2562 """IsRecordingDefaults() -> bool"""
2563 return _misc
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2565 def ExpandEnvVars(*args
, **kwargs
):
2566 """ExpandEnvVars(wxString str) -> wxString"""
2567 return _misc
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2569 def GetAppName(*args
, **kwargs
):
2570 """GetAppName() -> wxString"""
2571 return _misc
.ConfigBase_GetAppName(*args
, **kwargs
)
2573 def GetVendorName(*args
, **kwargs
):
2574 """GetVendorName() -> wxString"""
2575 return _misc
.ConfigBase_GetVendorName(*args
, **kwargs
)
2577 def SetAppName(*args
, **kwargs
):
2578 """SetAppName(wxString appName)"""
2579 return _misc
.ConfigBase_SetAppName(*args
, **kwargs
)
2581 def SetVendorName(*args
, **kwargs
):
2582 """SetVendorName(wxString vendorName)"""
2583 return _misc
.ConfigBase_SetVendorName(*args
, **kwargs
)
2585 def SetStyle(*args
, **kwargs
):
2586 """SetStyle(long style)"""
2587 return _misc
.ConfigBase_SetStyle(*args
, **kwargs
)
2589 def GetStyle(*args
, **kwargs
):
2590 """GetStyle() -> long"""
2591 return _misc
.ConfigBase_GetStyle(*args
, **kwargs
)
2594 class ConfigBasePtr(ConfigBase
):
2595 def __init__(self
, this
):
2597 if not hasattr(self
,"thisown"): self
.thisown
= 0
2598 self
.__class
__ = ConfigBase
2599 _misc
.ConfigBase_swigregister(ConfigBasePtr
)
2601 def ConfigBase_Set(*args
, **kwargs
):
2602 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2603 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2605 def ConfigBase_Get(*args
, **kwargs
):
2606 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2607 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2609 def ConfigBase_Create(*args
, **kwargs
):
2610 """ConfigBase_Create() -> ConfigBase"""
2611 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2613 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
2614 """ConfigBase_DontCreateOnDemand()"""
2615 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2617 class ConfigPathChanger(object):
2620 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2621 def __init__(self
, *args
, **kwargs
):
2622 """__init__(ConfigBase pContainer, wxString strEntry) -> ConfigPathChanger"""
2623 newobj
= _misc
.new_ConfigPathChanger(*args
, **kwargs
)
2624 self
.this
= newobj
.this
2627 def __del__(self
, destroy
=_misc
.delete_ConfigPathChanger
):
2630 if self
.thisown
: destroy(self
)
2633 def Name(*args
, **kwargs
):
2634 """Name() -> wxString"""
2635 return _misc
.ConfigPathChanger_Name(*args
, **kwargs
)
2638 class ConfigPathChangerPtr(ConfigPathChanger
):
2639 def __init__(self
, this
):
2641 if not hasattr(self
,"thisown"): self
.thisown
= 0
2642 self
.__class
__ = ConfigPathChanger
2643 _misc
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
2645 class Config(ConfigBase
):
2648 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2649 def __init__(self
, *args
, **kwargs
):
2650 """__init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2651 wxString localFilename=wxPyEmptyString,
2652 wxString globalFilename=wxPyEmptyString,
2653 long style=0) -> Config"""
2654 newobj
= _misc
.new_Config(*args
, **kwargs
)
2655 self
.this
= newobj
.this
2658 def __del__(self
, destroy
=_misc
.delete_Config
):
2661 if self
.thisown
: destroy(self
)
2665 class ConfigPtr(Config
):
2666 def __init__(self
, this
):
2668 if not hasattr(self
,"thisown"): self
.thisown
= 0
2669 self
.__class
__ = Config
2670 _misc
.Config_swigregister(ConfigPtr
)
2672 class FileConfig(ConfigBase
):
2675 return "<%s.%s; proxy of C++ wxFileConfig 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) -> FileConfig"""
2681 newobj
= _misc
.new_FileConfig(*args
, **kwargs
)
2682 self
.this
= newobj
.this
2685 def __del__(self
, destroy
=_misc
.delete_FileConfig
):
2688 if self
.thisown
: destroy(self
)
2692 class FileConfigPtr(FileConfig
):
2693 def __init__(self
, this
):
2695 if not hasattr(self
,"thisown"): self
.thisown
= 0
2696 self
.__class
__ = FileConfig
2697 _misc
.FileConfig_swigregister(FileConfigPtr
)
2700 def ExpandEnvVars(*args
, **kwargs
):
2701 """ExpandEnvVars(wxString sz) -> wxString"""
2702 return _misc
.ExpandEnvVars(*args
, **kwargs
)
2703 #---------------------------------------------------------------------------
2705 class DateTime(object):
2708 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2709 Local
= _misc
.DateTime_Local
2710 GMT_12
= _misc
.DateTime_GMT_12
2711 GMT_11
= _misc
.DateTime_GMT_11
2712 GMT_10
= _misc
.DateTime_GMT_10
2713 GMT_9
= _misc
.DateTime_GMT_9
2714 GMT_8
= _misc
.DateTime_GMT_8
2715 GMT_7
= _misc
.DateTime_GMT_7
2716 GMT_6
= _misc
.DateTime_GMT_6
2717 GMT_5
= _misc
.DateTime_GMT_5
2718 GMT_4
= _misc
.DateTime_GMT_4
2719 GMT_3
= _misc
.DateTime_GMT_3
2720 GMT_2
= _misc
.DateTime_GMT_2
2721 GMT_1
= _misc
.DateTime_GMT_1
2722 GMT0
= _misc
.DateTime_GMT0
2723 GMT1
= _misc
.DateTime_GMT1
2724 GMT2
= _misc
.DateTime_GMT2
2725 GMT3
= _misc
.DateTime_GMT3
2726 GMT4
= _misc
.DateTime_GMT4
2727 GMT5
= _misc
.DateTime_GMT5
2728 GMT6
= _misc
.DateTime_GMT6
2729 GMT7
= _misc
.DateTime_GMT7
2730 GMT8
= _misc
.DateTime_GMT8
2731 GMT9
= _misc
.DateTime_GMT9
2732 GMT10
= _misc
.DateTime_GMT10
2733 GMT11
= _misc
.DateTime_GMT11
2734 GMT12
= _misc
.DateTime_GMT12
2735 WET
= _misc
.DateTime_WET
2736 WEST
= _misc
.DateTime_WEST
2737 CET
= _misc
.DateTime_CET
2738 CEST
= _misc
.DateTime_CEST
2739 EET
= _misc
.DateTime_EET
2740 EEST
= _misc
.DateTime_EEST
2741 MSK
= _misc
.DateTime_MSK
2742 MSD
= _misc
.DateTime_MSD
2743 AST
= _misc
.DateTime_AST
2744 ADT
= _misc
.DateTime_ADT
2745 EST
= _misc
.DateTime_EST
2746 EDT
= _misc
.DateTime_EDT
2747 CST
= _misc
.DateTime_CST
2748 CDT
= _misc
.DateTime_CDT
2749 MST
= _misc
.DateTime_MST
2750 MDT
= _misc
.DateTime_MDT
2751 PST
= _misc
.DateTime_PST
2752 PDT
= _misc
.DateTime_PDT
2753 HST
= _misc
.DateTime_HST
2754 AKST
= _misc
.DateTime_AKST
2755 AKDT
= _misc
.DateTime_AKDT
2756 A_WST
= _misc
.DateTime_A_WST
2757 A_CST
= _misc
.DateTime_A_CST
2758 A_EST
= _misc
.DateTime_A_EST
2759 A_ESST
= _misc
.DateTime_A_ESST
2760 UTC
= _misc
.DateTime_UTC
2761 Gregorian
= _misc
.DateTime_Gregorian
2762 Julian
= _misc
.DateTime_Julian
2763 Gr_Unknown
= _misc
.DateTime_Gr_Unknown
2764 Gr_Standard
= _misc
.DateTime_Gr_Standard
2765 Gr_Alaska
= _misc
.DateTime_Gr_Alaska
2766 Gr_Albania
= _misc
.DateTime_Gr_Albania
2767 Gr_Austria
= _misc
.DateTime_Gr_Austria
2768 Gr_Austria_Brixen
= _misc
.DateTime_Gr_Austria_Brixen
2769 Gr_Austria_Salzburg
= _misc
.DateTime_Gr_Austria_Salzburg
2770 Gr_Austria_Tyrol
= _misc
.DateTime_Gr_Austria_Tyrol
2771 Gr_Austria_Carinthia
= _misc
.DateTime_Gr_Austria_Carinthia
2772 Gr_Austria_Styria
= _misc
.DateTime_Gr_Austria_Styria
2773 Gr_Belgium
= _misc
.DateTime_Gr_Belgium
2774 Gr_Bulgaria
= _misc
.DateTime_Gr_Bulgaria
2775 Gr_Bulgaria_1
= _misc
.DateTime_Gr_Bulgaria_1
2776 Gr_Bulgaria_2
= _misc
.DateTime_Gr_Bulgaria_2
2777 Gr_Bulgaria_3
= _misc
.DateTime_Gr_Bulgaria_3
2778 Gr_Canada
= _misc
.DateTime_Gr_Canada
2779 Gr_China
= _misc
.DateTime_Gr_China
2780 Gr_China_1
= _misc
.DateTime_Gr_China_1
2781 Gr_China_2
= _misc
.DateTime_Gr_China_2
2782 Gr_Czechoslovakia
= _misc
.DateTime_Gr_Czechoslovakia
2783 Gr_Denmark
= _misc
.DateTime_Gr_Denmark
2784 Gr_Egypt
= _misc
.DateTime_Gr_Egypt
2785 Gr_Estonia
= _misc
.DateTime_Gr_Estonia
2786 Gr_Finland
= _misc
.DateTime_Gr_Finland
2787 Gr_France
= _misc
.DateTime_Gr_France
2788 Gr_France_Alsace
= _misc
.DateTime_Gr_France_Alsace
2789 Gr_France_Lorraine
= _misc
.DateTime_Gr_France_Lorraine
2790 Gr_France_Strasbourg
= _misc
.DateTime_Gr_France_Strasbourg
2791 Gr_Germany
= _misc
.DateTime_Gr_Germany
2792 Gr_Germany_Catholic
= _misc
.DateTime_Gr_Germany_Catholic
2793 Gr_Germany_Prussia
= _misc
.DateTime_Gr_Germany_Prussia
2794 Gr_Germany_Protestant
= _misc
.DateTime_Gr_Germany_Protestant
2795 Gr_GreatBritain
= _misc
.DateTime_Gr_GreatBritain
2796 Gr_Greece
= _misc
.DateTime_Gr_Greece
2797 Gr_Hungary
= _misc
.DateTime_Gr_Hungary
2798 Gr_Ireland
= _misc
.DateTime_Gr_Ireland
2799 Gr_Italy
= _misc
.DateTime_Gr_Italy
2800 Gr_Japan
= _misc
.DateTime_Gr_Japan
2801 Gr_Japan_1
= _misc
.DateTime_Gr_Japan_1
2802 Gr_Japan_2
= _misc
.DateTime_Gr_Japan_2
2803 Gr_Japan_3
= _misc
.DateTime_Gr_Japan_3
2804 Gr_Latvia
= _misc
.DateTime_Gr_Latvia
2805 Gr_Lithuania
= _misc
.DateTime_Gr_Lithuania
2806 Gr_Luxemburg
= _misc
.DateTime_Gr_Luxemburg
2807 Gr_Netherlands
= _misc
.DateTime_Gr_Netherlands
2808 Gr_Netherlands_Groningen
= _misc
.DateTime_Gr_Netherlands_Groningen
2809 Gr_Netherlands_Gelderland
= _misc
.DateTime_Gr_Netherlands_Gelderland
2810 Gr_Netherlands_Utrecht
= _misc
.DateTime_Gr_Netherlands_Utrecht
2811 Gr_Netherlands_Friesland
= _misc
.DateTime_Gr_Netherlands_Friesland
2812 Gr_Norway
= _misc
.DateTime_Gr_Norway
2813 Gr_Poland
= _misc
.DateTime_Gr_Poland
2814 Gr_Portugal
= _misc
.DateTime_Gr_Portugal
2815 Gr_Romania
= _misc
.DateTime_Gr_Romania
2816 Gr_Russia
= _misc
.DateTime_Gr_Russia
2817 Gr_Scotland
= _misc
.DateTime_Gr_Scotland
2818 Gr_Spain
= _misc
.DateTime_Gr_Spain
2819 Gr_Sweden
= _misc
.DateTime_Gr_Sweden
2820 Gr_Switzerland
= _misc
.DateTime_Gr_Switzerland
2821 Gr_Switzerland_Catholic
= _misc
.DateTime_Gr_Switzerland_Catholic
2822 Gr_Switzerland_Protestant
= _misc
.DateTime_Gr_Switzerland_Protestant
2823 Gr_Turkey
= _misc
.DateTime_Gr_Turkey
2824 Gr_USA
= _misc
.DateTime_Gr_USA
2825 Gr_Wales
= _misc
.DateTime_Gr_Wales
2826 Gr_Yugoslavia
= _misc
.DateTime_Gr_Yugoslavia
2827 Country_Unknown
= _misc
.DateTime_Country_Unknown
2828 Country_Default
= _misc
.DateTime_Country_Default
2829 Country_WesternEurope_Start
= _misc
.DateTime_Country_WesternEurope_Start
2830 Country_EEC
= _misc
.DateTime_Country_EEC
2831 France
= _misc
.DateTime_France
2832 Germany
= _misc
.DateTime_Germany
2833 UK
= _misc
.DateTime_UK
2834 Country_WesternEurope_End
= _misc
.DateTime_Country_WesternEurope_End
2835 Russia
= _misc
.DateTime_Russia
2836 USA
= _misc
.DateTime_USA
2837 Jan
= _misc
.DateTime_Jan
2838 Feb
= _misc
.DateTime_Feb
2839 Mar
= _misc
.DateTime_Mar
2840 Apr
= _misc
.DateTime_Apr
2841 May
= _misc
.DateTime_May
2842 Jun
= _misc
.DateTime_Jun
2843 Jul
= _misc
.DateTime_Jul
2844 Aug
= _misc
.DateTime_Aug
2845 Sep
= _misc
.DateTime_Sep
2846 Oct
= _misc
.DateTime_Oct
2847 Nov
= _misc
.DateTime_Nov
2848 Dec
= _misc
.DateTime_Dec
2849 Inv_Month
= _misc
.DateTime_Inv_Month
2850 Sun
= _misc
.DateTime_Sun
2851 Mon
= _misc
.DateTime_Mon
2852 Tue
= _misc
.DateTime_Tue
2853 Wed
= _misc
.DateTime_Wed
2854 Thu
= _misc
.DateTime_Thu
2855 Fri
= _misc
.DateTime_Fri
2856 Sat
= _misc
.DateTime_Sat
2857 Inv_WeekDay
= _misc
.DateTime_Inv_WeekDay
2858 Inv_Year
= _misc
.DateTime_Inv_Year
2859 Name_Full
= _misc
.DateTime_Name_Full
2860 Name_Abbr
= _misc
.DateTime_Name_Abbr
2861 Default_First
= _misc
.DateTime_Default_First
2862 Monday_First
= _misc
.DateTime_Monday_First
2863 Sunday_First
= _misc
.DateTime_Sunday_First
2864 def SetCountry(*args
, **kwargs
):
2865 """DateTime.SetCountry(wxDateTime::Country country)"""
2866 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
2868 SetCountry
= staticmethod(SetCountry
)
2869 def GetCountry(*args
, **kwargs
):
2870 """DateTime.GetCountry() -> wxDateTime::Country"""
2871 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
2873 GetCountry
= staticmethod(GetCountry
)
2874 def IsWestEuropeanCountry(*args
, **kwargs
):
2875 """DateTime.IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
2876 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
2878 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
2879 def GetCurrentYear(*args
, **kwargs
):
2880 """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
2881 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
2883 GetCurrentYear
= staticmethod(GetCurrentYear
)
2884 def ConvertYearToBC(*args
, **kwargs
):
2885 """DateTime.ConvertYearToBC(int year) -> int"""
2886 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
2888 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
2889 def GetCurrentMonth(*args
, **kwargs
):
2890 """DateTime.GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
2891 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
2893 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
2894 def IsLeapYear(*args
, **kwargs
):
2895 """DateTime.IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
2896 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
2898 IsLeapYear
= staticmethod(IsLeapYear
)
2899 def GetCentury(*args
, **kwargs
):
2900 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2901 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
2903 GetCentury
= staticmethod(GetCentury
)
2904 def GetNumberOfDaysinYear(*args
, **kwargs
):
2905 """DateTime.GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> wxDateTime_t"""
2906 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
2908 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
2909 def GetNumberOfDaysInMonth(*args
, **kwargs
):
2910 """DateTime.GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> wxDateTime_t"""
2911 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
2913 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
2914 def GetMonthName(*args
, **kwargs
):
2915 """DateTime.GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2916 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
2918 GetMonthName
= staticmethod(GetMonthName
)
2919 def GetWeekDayName(*args
, **kwargs
):
2920 """DateTime.GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2921 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
2923 GetWeekDayName
= staticmethod(GetWeekDayName
)
2924 def GetAmPmStrings(*args
, **kwargs
):
2925 """DateTime.GetAmPmStrings(wxString OUTPUT, wxString OUTPUT)"""
2926 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
2928 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
2929 def IsDSTApplicable(*args
, **kwargs
):
2930 """DateTime.IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
2931 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
2933 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
2934 def GetBeginDST(*args
, **kwargs
):
2935 """DateTime.GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2936 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
2938 GetBeginDST
= staticmethod(GetBeginDST
)
2939 def GetEndDST(*args
, **kwargs
):
2940 """DateTime.GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2941 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
2943 GetEndDST
= staticmethod(GetEndDST
)
2944 def Now(*args
, **kwargs
):
2945 """DateTime.Now() -> DateTime"""
2946 return _misc
.DateTime_Now(*args
, **kwargs
)
2948 Now
= staticmethod(Now
)
2949 def UNow(*args
, **kwargs
):
2950 """DateTime.UNow() -> DateTime"""
2951 return _misc
.DateTime_UNow(*args
, **kwargs
)
2953 UNow
= staticmethod(UNow
)
2954 def Today(*args
, **kwargs
):
2955 """DateTime.Today() -> DateTime"""
2956 return _misc
.DateTime_Today(*args
, **kwargs
)
2958 Today
= staticmethod(Today
)
2959 def __init__(self
, *args
, **kwargs
):
2960 """__init__() -> DateTime"""
2961 newobj
= _misc
.new_DateTime(*args
, **kwargs
)
2962 self
.this
= newobj
.this
2965 def __del__(self
, destroy
=_misc
.delete_DateTime
):
2968 if self
.thisown
: destroy(self
)
2971 def SetToCurrent(*args
, **kwargs
):
2972 """SetToCurrent() -> DateTime"""
2973 return _misc
.DateTime_SetToCurrent(*args
, **kwargs
)
2975 def SetTimeT(*args
, **kwargs
):
2976 """SetTimeT(time_t timet) -> DateTime"""
2977 return _misc
.DateTime_SetTimeT(*args
, **kwargs
)
2979 def SetJDN(*args
, **kwargs
):
2980 """SetJDN(double jdn) -> DateTime"""
2981 return _misc
.DateTime_SetJDN(*args
, **kwargs
)
2983 def SetHMS(*args
, **kwargs
):
2984 """SetHMS(wxDateTime_t hour, wxDateTime_t minute=0, wxDateTime_t second=0,
2985 wxDateTime_t millisec=0) -> DateTime"""
2986 return _misc
.DateTime_SetHMS(*args
, **kwargs
)
2988 def Set(*args
, **kwargs
):
2989 """Set(wxDateTime_t day, wxDateTime::Month month=Inv_Month,
2990 int year=Inv_Year, wxDateTime_t hour=0, wxDateTime_t minute=0,
2991 wxDateTime_t second=0, wxDateTime_t millisec=0) -> DateTime"""
2992 return _misc
.DateTime_Set(*args
, **kwargs
)
2994 def ResetTime(*args
, **kwargs
):
2995 """ResetTime() -> DateTime"""
2996 return _misc
.DateTime_ResetTime(*args
, **kwargs
)
2998 def SetYear(*args
, **kwargs
):
2999 """SetYear(int year) -> DateTime"""
3000 return _misc
.DateTime_SetYear(*args
, **kwargs
)
3002 def SetMonth(*args
, **kwargs
):
3003 """SetMonth(wxDateTime::Month month) -> DateTime"""
3004 return _misc
.DateTime_SetMonth(*args
, **kwargs
)
3006 def SetDay(*args
, **kwargs
):
3007 """SetDay(wxDateTime_t day) -> DateTime"""
3008 return _misc
.DateTime_SetDay(*args
, **kwargs
)
3010 def SetHour(*args
, **kwargs
):
3011 """SetHour(wxDateTime_t hour) -> DateTime"""
3012 return _misc
.DateTime_SetHour(*args
, **kwargs
)
3014 def SetMinute(*args
, **kwargs
):
3015 """SetMinute(wxDateTime_t minute) -> DateTime"""
3016 return _misc
.DateTime_SetMinute(*args
, **kwargs
)
3018 def SetSecond(*args
, **kwargs
):
3019 """SetSecond(wxDateTime_t second) -> DateTime"""
3020 return _misc
.DateTime_SetSecond(*args
, **kwargs
)
3022 def SetMillisecond(*args
, **kwargs
):
3023 """SetMillisecond(wxDateTime_t millisecond) -> DateTime"""
3024 return _misc
.DateTime_SetMillisecond(*args
, **kwargs
)
3026 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3027 """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3028 return _misc
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3030 def GetWeekDayInSameWeek(*args
, **kwargs
):
3031 """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3032 return _misc
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3034 def SetToNextWeekDay(*args
, **kwargs
):
3035 """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3036 return _misc
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3038 def GetNextWeekDay(*args
, **kwargs
):
3039 """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3040 return _misc
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3042 def SetToPrevWeekDay(*args
, **kwargs
):
3043 """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3044 return _misc
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3046 def GetPrevWeekDay(*args
, **kwargs
):
3047 """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3048 return _misc
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3050 def SetToWeekDay(*args
, **kwargs
):
3051 """SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month,
3052 int year=Inv_Year) -> bool"""
3053 return _misc
.DateTime_SetToWeekDay(*args
, **kwargs
)
3055 def SetToLastWeekDay(*args
, **kwargs
):
3056 """SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3057 int year=Inv_Year) -> bool"""
3058 return _misc
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3060 def GetLastWeekDay(*args
, **kwargs
):
3061 """GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3062 int year=Inv_Year) -> DateTime"""
3063 return _misc
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3065 def SetToTheWeek(*args
, **kwargs
):
3066 """SetToTheWeek(wxDateTime_t numWeek, wxDateTime::WeekDay weekday=Mon,
3067 wxDateTime::WeekFlags flags=Monday_First) -> bool"""
3068 return _misc
.DateTime_SetToTheWeek(*args
, **kwargs
)
3070 def GetWeek(*args
, **kwargs
):
3071 """GetWeek(wxDateTime_t numWeek, wxDateTime::WeekDay weekday=Mon,
3072 wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3073 return _misc
.DateTime_GetWeek(*args
, **kwargs
)
3075 def SetToLastMonthDay(*args
, **kwargs
):
3076 """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3077 return _misc
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3079 def GetLastMonthDay(*args
, **kwargs
):
3080 """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3081 return _misc
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3083 def SetToYearDay(*args
, **kwargs
):
3084 """SetToYearDay(wxDateTime_t yday) -> DateTime"""
3085 return _misc
.DateTime_SetToYearDay(*args
, **kwargs
)
3087 def GetYearDay(*args
, **kwargs
):
3088 """GetYearDay(wxDateTime_t yday) -> DateTime"""
3089 return _misc
.DateTime_GetYearDay(*args
, **kwargs
)
3091 def GetJulianDayNumber(*args
, **kwargs
):
3092 """GetJulianDayNumber() -> double"""
3093 return _misc
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3095 def GetJDN(*args
, **kwargs
):
3096 """GetJDN() -> double"""
3097 return _misc
.DateTime_GetJDN(*args
, **kwargs
)
3099 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3100 """GetModifiedJulianDayNumber() -> double"""
3101 return _misc
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3103 def GetMJD(*args
, **kwargs
):
3104 """GetMJD() -> double"""
3105 return _misc
.DateTime_GetMJD(*args
, **kwargs
)
3107 def GetRataDie(*args
, **kwargs
):
3108 """GetRataDie() -> double"""
3109 return _misc
.DateTime_GetRataDie(*args
, **kwargs
)
3111 def ToTimezone(*args
, **kwargs
):
3112 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3113 return _misc
.DateTime_ToTimezone(*args
, **kwargs
)
3115 def MakeTimezone(*args
, **kwargs
):
3116 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3117 return _misc
.DateTime_MakeTimezone(*args
, **kwargs
)
3119 def ToGMT(*args
, **kwargs
):
3120 """ToGMT(bool noDST=False) -> DateTime"""
3121 return _misc
.DateTime_ToGMT(*args
, **kwargs
)
3123 def MakeGMT(*args
, **kwargs
):
3124 """MakeGMT(bool noDST=False) -> DateTime"""
3125 return _misc
.DateTime_MakeGMT(*args
, **kwargs
)
3127 def IsDST(*args
, **kwargs
):
3128 """IsDST(wxDateTime::Country country=Country_Default) -> int"""
3129 return _misc
.DateTime_IsDST(*args
, **kwargs
)
3131 def IsValid(*args
, **kwargs
):
3132 """IsValid() -> bool"""
3133 return _misc
.DateTime_IsValid(*args
, **kwargs
)
3135 def GetTicks(*args
, **kwargs
):
3136 """GetTicks() -> time_t"""
3137 return _misc
.DateTime_GetTicks(*args
, **kwargs
)
3139 def GetYear(*args
, **kwargs
):
3140 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3141 return _misc
.DateTime_GetYear(*args
, **kwargs
)
3143 def GetMonth(*args
, **kwargs
):
3144 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month"""
3145 return _misc
.DateTime_GetMonth(*args
, **kwargs
)
3147 def GetDay(*args
, **kwargs
):
3148 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3149 return _misc
.DateTime_GetDay(*args
, **kwargs
)
3151 def GetWeekDay(*args
, **kwargs
):
3152 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay"""
3153 return _misc
.DateTime_GetWeekDay(*args
, **kwargs
)
3155 def GetHour(*args
, **kwargs
):
3156 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3157 return _misc
.DateTime_GetHour(*args
, **kwargs
)
3159 def GetMinute(*args
, **kwargs
):
3160 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3161 return _misc
.DateTime_GetMinute(*args
, **kwargs
)
3163 def GetSecond(*args
, **kwargs
):
3164 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3165 return _misc
.DateTime_GetSecond(*args
, **kwargs
)
3167 def GetMillisecond(*args
, **kwargs
):
3168 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3169 return _misc
.DateTime_GetMillisecond(*args
, **kwargs
)
3171 def GetDayOfYear(*args
, **kwargs
):
3172 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3173 return _misc
.DateTime_GetDayOfYear(*args
, **kwargs
)
3175 def GetWeekOfYear(*args
, **kwargs
):
3176 """GetWeekOfYear(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3177 return _misc
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3179 def GetWeekOfMonth(*args
, **kwargs
):
3180 """GetWeekOfMonth(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime_t"""
3181 return _misc
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3183 def IsWorkDay(*args
, **kwargs
):
3184 """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool"""
3185 return _misc
.DateTime_IsWorkDay(*args
, **kwargs
)
3187 def IsEqualTo(*args
, **kwargs
):
3188 """IsEqualTo(DateTime datetime) -> bool"""
3189 return _misc
.DateTime_IsEqualTo(*args
, **kwargs
)
3191 def IsEarlierThan(*args
, **kwargs
):
3192 """IsEarlierThan(DateTime datetime) -> bool"""
3193 return _misc
.DateTime_IsEarlierThan(*args
, **kwargs
)
3195 def IsLaterThan(*args
, **kwargs
):
3196 """IsLaterThan(DateTime datetime) -> bool"""
3197 return _misc
.DateTime_IsLaterThan(*args
, **kwargs
)
3199 def IsStrictlyBetween(*args
, **kwargs
):
3200 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3201 return _misc
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3203 def IsBetween(*args
, **kwargs
):
3204 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3205 return _misc
.DateTime_IsBetween(*args
, **kwargs
)
3207 def IsSameDate(*args
, **kwargs
):
3208 """IsSameDate(DateTime dt) -> bool"""
3209 return _misc
.DateTime_IsSameDate(*args
, **kwargs
)
3211 def IsSameTime(*args
, **kwargs
):
3212 """IsSameTime(DateTime dt) -> bool"""
3213 return _misc
.DateTime_IsSameTime(*args
, **kwargs
)
3215 def IsEqualUpTo(*args
, **kwargs
):
3216 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3217 return _misc
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3219 def AddTS(*args
, **kwargs
):
3220 """AddTS(TimeSpan diff) -> DateTime"""
3221 return _misc
.DateTime_AddTS(*args
, **kwargs
)
3223 def AddDS(*args
, **kwargs
):
3224 """AddDS(DateSpan diff) -> DateTime"""
3225 return _misc
.DateTime_AddDS(*args
, **kwargs
)
3227 def SubtractTS(*args
, **kwargs
):
3228 """SubtractTS(TimeSpan diff) -> DateTime"""
3229 return _misc
.DateTime_SubtractTS(*args
, **kwargs
)
3231 def SubtractDS(*args
, **kwargs
):
3232 """SubtractDS(DateSpan diff) -> DateTime"""
3233 return _misc
.DateTime_SubtractDS(*args
, **kwargs
)
3235 def Subtract(*args
, **kwargs
):
3236 """Subtract(DateTime dt) -> TimeSpan"""
3237 return _misc
.DateTime_Subtract(*args
, **kwargs
)
3239 def __iadd__(*args
):
3240 """__iadd__(TimeSpan diff) -> DateTime
3241 __iadd__(DateSpan diff) -> DateTime"""
3242 return _misc
.DateTime___iadd__(*args
)
3244 def __isub__(*args
):
3245 """__isub__(TimeSpan diff) -> DateTime
3246 __isub__(DateSpan diff) -> DateTime"""
3247 return _misc
.DateTime___isub__(*args
)
3250 """__add__(TimeSpan other) -> DateTime
3251 __add__(DateSpan other) -> DateTime"""
3252 return _misc
.DateTime___add__(*args
)
3255 """__sub__(DateTime other) -> TimeSpan
3256 __sub__(TimeSpan other) -> DateTime
3257 __sub__(DateSpan other) -> DateTime"""
3258 return _misc
.DateTime___sub__(*args
)
3261 """__lt__(DateTime other) -> bool"""
3262 return _misc
.DateTime___lt__(*args
)
3265 """__le__(DateTime other) -> bool"""
3266 return _misc
.DateTime___le__(*args
)
3269 """__gt__(DateTime other) -> bool"""
3270 return _misc
.DateTime___gt__(*args
)
3273 """__ge__(DateTime other) -> bool"""
3274 return _misc
.DateTime___ge__(*args
)
3277 """__eq__(DateTime other) -> bool"""
3278 return _misc
.DateTime___eq__(*args
)
3281 """__ne__(DateTime other) -> bool"""
3282 return _misc
.DateTime___ne__(*args
)
3284 def ParseRfc822Date(*args
, **kwargs
):
3285 """ParseRfc822Date(wxString date) -> int"""
3286 return _misc
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3288 def ParseFormat(*args
, **kwargs
):
3289 """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3290 return _misc
.DateTime_ParseFormat(*args
, **kwargs
)
3292 def ParseDateTime(*args
, **kwargs
):
3293 """ParseDateTime(wxString datetime) -> int"""
3294 return _misc
.DateTime_ParseDateTime(*args
, **kwargs
)
3296 def ParseDate(*args
, **kwargs
):
3297 """ParseDate(wxString date) -> int"""
3298 return _misc
.DateTime_ParseDate(*args
, **kwargs
)
3300 def ParseTime(*args
, **kwargs
):
3301 """ParseTime(wxString time) -> int"""
3302 return _misc
.DateTime_ParseTime(*args
, **kwargs
)
3304 def Format(*args
, **kwargs
):
3305 """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString"""
3306 return _misc
.DateTime_Format(*args
, **kwargs
)
3308 def FormatDate(*args
, **kwargs
):
3309 """FormatDate() -> wxString"""
3310 return _misc
.DateTime_FormatDate(*args
, **kwargs
)
3312 def FormatTime(*args
, **kwargs
):
3313 """FormatTime() -> wxString"""
3314 return _misc
.DateTime_FormatTime(*args
, **kwargs
)
3316 def FormatISODate(*args
, **kwargs
):
3317 """FormatISODate() -> wxString"""
3318 return _misc
.DateTime_FormatISODate(*args
, **kwargs
)
3320 def FormatISOTime(*args
, **kwargs
):
3321 """FormatISOTime() -> wxString"""
3322 return _misc
.DateTime_FormatISOTime(*args
, **kwargs
)
3325 return '<wxDateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3327 return self
.Format()
3330 class DateTimePtr(DateTime
):
3331 def __init__(self
, this
):
3333 if not hasattr(self
,"thisown"): self
.thisown
= 0
3334 self
.__class
__ = DateTime
3335 _misc
.DateTime_swigregister(DateTimePtr
)
3337 def DateTime_SetCountry(*args
, **kwargs
):
3338 """DateTime_SetCountry(wxDateTime::Country country)"""
3339 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
3341 def DateTime_GetCountry(*args
, **kwargs
):
3342 """DateTime_GetCountry() -> wxDateTime::Country"""
3343 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
3345 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3346 """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
3347 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3349 def DateTime_GetCurrentYear(*args
, **kwargs
):
3350 """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
3351 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
3353 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3354 """DateTime_ConvertYearToBC(int year) -> int"""
3355 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3357 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3358 """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
3359 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3361 def DateTime_IsLeapYear(*args
, **kwargs
):
3362 """DateTime_IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
3363 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
3365 def DateTime_GetCentury(*args
, **kwargs
):
3366 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3367 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
3369 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3370 """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> wxDateTime_t"""
3371 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3373 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3374 """DateTime_GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> wxDateTime_t"""
3375 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3377 def DateTime_GetMonthName(*args
, **kwargs
):
3378 """DateTime_GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3379 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
3381 def DateTime_GetWeekDayName(*args
, **kwargs
):
3382 """DateTime_GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3383 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
3385 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3386 """DateTime_GetAmPmStrings(wxString OUTPUT, wxString OUTPUT)"""
3387 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3389 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3390 """DateTime_IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
3391 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3393 def DateTime_GetBeginDST(*args
, **kwargs
):
3394 """DateTime_GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3395 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
3397 def DateTime_GetEndDST(*args
, **kwargs
):
3398 """DateTime_GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3399 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
3401 def DateTime_Now(*args
, **kwargs
):
3402 """DateTime_Now() -> DateTime"""
3403 return _misc
.DateTime_Now(*args
, **kwargs
)
3405 def DateTime_UNow(*args
, **kwargs
):
3406 """DateTime_UNow() -> DateTime"""
3407 return _misc
.DateTime_UNow(*args
, **kwargs
)
3409 def DateTime_Today(*args
, **kwargs
):
3410 """DateTime_Today() -> DateTime"""
3411 return _misc
.DateTime_Today(*args
, **kwargs
)
3413 def DateTimeFromTimeT(*args
, **kwargs
):
3414 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3415 val
= _misc
.new_DateTimeFromTimeT(*args
, **kwargs
)
3419 def DateTimeFromJDN(*args
, **kwargs
):
3420 """DateTimeFromJDN(double jdn) -> DateTime"""
3421 val
= _misc
.new_DateTimeFromJDN(*args
, **kwargs
)
3425 def DateTimeFromHMS(*args
, **kwargs
):
3426 """DateTimeFromHMS(wxDateTime_t hour, wxDateTime_t minute=0, wxDateTime_t second=0,
3427 wxDateTime_t millisec=0) -> DateTime"""
3428 val
= _misc
.new_DateTimeFromHMS(*args
, **kwargs
)
3432 def DateTimeFromDMY(*args
, **kwargs
):
3433 """DateTimeFromDMY(wxDateTime_t day, wxDateTime::Month month=Inv_Month,
3434 int year=Inv_Year, wxDateTime_t hour=0, wxDateTime_t minute=0,
3435 wxDateTime_t second=0, wxDateTime_t millisec=0) -> DateTime"""
3436 val
= _misc
.new_DateTimeFromDMY(*args
, **kwargs
)
3440 class TimeSpan(object):
3443 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3444 def Seconds(*args
, **kwargs
):
3445 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3446 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3448 Seconds
= staticmethod(Seconds
)
3449 def Second(*args
, **kwargs
):
3450 """TimeSpan.Second() -> TimeSpan"""
3451 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3453 Second
= staticmethod(Second
)
3454 def Minutes(*args
, **kwargs
):
3455 """TimeSpan.Minutes(long min) -> TimeSpan"""
3456 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3458 Minutes
= staticmethod(Minutes
)
3459 def Minute(*args
, **kwargs
):
3460 """TimeSpan.Minute() -> TimeSpan"""
3461 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3463 Minute
= staticmethod(Minute
)
3464 def Hours(*args
, **kwargs
):
3465 """TimeSpan.Hours(long hours) -> TimeSpan"""
3466 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3468 Hours
= staticmethod(Hours
)
3469 def Hour(*args
, **kwargs
):
3470 """TimeSpan.Hour() -> TimeSpan"""
3471 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3473 Hour
= staticmethod(Hour
)
3474 def Days(*args
, **kwargs
):
3475 """TimeSpan.Days(long days) -> TimeSpan"""
3476 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3478 Days
= staticmethod(Days
)
3479 def Day(*args
, **kwargs
):
3480 """TimeSpan.Day() -> TimeSpan"""
3481 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3483 Day
= staticmethod(Day
)
3484 def Weeks(*args
, **kwargs
):
3485 """TimeSpan.Weeks(long days) -> TimeSpan"""
3486 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3488 Weeks
= staticmethod(Weeks
)
3489 def Week(*args
, **kwargs
):
3490 """TimeSpan.Week() -> TimeSpan"""
3491 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3493 Week
= staticmethod(Week
)
3494 def __init__(self
, *args
, **kwargs
):
3495 """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3496 newobj
= _misc
.new_TimeSpan(*args
, **kwargs
)
3497 self
.this
= newobj
.this
3500 def __del__(self
, destroy
=_misc
.delete_TimeSpan
):
3503 if self
.thisown
: destroy(self
)
3506 def Add(*args
, **kwargs
):
3507 """Add(TimeSpan diff) -> TimeSpan"""
3508 return _misc
.TimeSpan_Add(*args
, **kwargs
)
3510 def Subtract(*args
, **kwargs
):
3511 """Subtract(TimeSpan diff) -> TimeSpan"""
3512 return _misc
.TimeSpan_Subtract(*args
, **kwargs
)
3514 def Multiply(*args
, **kwargs
):
3515 """Multiply(int n) -> TimeSpan"""
3516 return _misc
.TimeSpan_Multiply(*args
, **kwargs
)
3518 def Neg(*args
, **kwargs
):
3519 """Neg() -> TimeSpan"""
3520 return _misc
.TimeSpan_Neg(*args
, **kwargs
)
3522 def Abs(*args
, **kwargs
):
3523 """Abs() -> TimeSpan"""
3524 return _misc
.TimeSpan_Abs(*args
, **kwargs
)
3526 def __iadd__(*args
, **kwargs
):
3527 """__iadd__(TimeSpan diff) -> TimeSpan"""
3528 return _misc
.TimeSpan___iadd__(*args
, **kwargs
)
3530 def __isub__(*args
, **kwargs
):
3531 """__isub__(TimeSpan diff) -> TimeSpan"""
3532 return _misc
.TimeSpan___isub__(*args
, **kwargs
)
3534 def __imul__(*args
, **kwargs
):
3535 """__imul__(int n) -> TimeSpan"""
3536 return _misc
.TimeSpan___imul__(*args
, **kwargs
)
3538 def __neg__(*args
, **kwargs
):
3539 """__neg__() -> TimeSpan"""
3540 return _misc
.TimeSpan___neg__(*args
, **kwargs
)
3542 def __add__(*args
, **kwargs
):
3543 """__add__(TimeSpan other) -> TimeSpan"""
3544 return _misc
.TimeSpan___add__(*args
, **kwargs
)
3546 def __sub__(*args
, **kwargs
):
3547 """__sub__(TimeSpan other) -> TimeSpan"""
3548 return _misc
.TimeSpan___sub__(*args
, **kwargs
)
3550 def __mul__(*args
, **kwargs
):
3551 """__mul__(int n) -> TimeSpan"""
3552 return _misc
.TimeSpan___mul__(*args
, **kwargs
)
3554 def __rmul__(*args
, **kwargs
):
3555 """__rmul__(int n) -> TimeSpan"""
3556 return _misc
.TimeSpan___rmul__(*args
, **kwargs
)
3558 def __lt__(*args
, **kwargs
):
3559 """__lt__(TimeSpan other) -> bool"""
3560 return _misc
.TimeSpan___lt__(*args
, **kwargs
)
3562 def __le__(*args
, **kwargs
):
3563 """__le__(TimeSpan other) -> bool"""
3564 return _misc
.TimeSpan___le__(*args
, **kwargs
)
3566 def __gt__(*args
, **kwargs
):
3567 """__gt__(TimeSpan other) -> bool"""
3568 return _misc
.TimeSpan___gt__(*args
, **kwargs
)
3570 def __ge__(*args
, **kwargs
):
3571 """__ge__(TimeSpan other) -> bool"""
3572 return _misc
.TimeSpan___ge__(*args
, **kwargs
)
3574 def __eq__(*args
, **kwargs
):
3575 """__eq__(TimeSpan other) -> bool"""
3576 return _misc
.TimeSpan___eq__(*args
, **kwargs
)
3578 def __ne__(*args
, **kwargs
):
3579 """__ne__(TimeSpan other) -> bool"""
3580 return _misc
.TimeSpan___ne__(*args
, **kwargs
)
3582 def IsNull(*args
, **kwargs
):
3583 """IsNull() -> bool"""
3584 return _misc
.TimeSpan_IsNull(*args
, **kwargs
)
3586 def IsPositive(*args
, **kwargs
):
3587 """IsPositive() -> bool"""
3588 return _misc
.TimeSpan_IsPositive(*args
, **kwargs
)
3590 def IsNegative(*args
, **kwargs
):
3591 """IsNegative() -> bool"""
3592 return _misc
.TimeSpan_IsNegative(*args
, **kwargs
)
3594 def IsEqualTo(*args
, **kwargs
):
3595 """IsEqualTo(TimeSpan ts) -> bool"""
3596 return _misc
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3598 def IsLongerThan(*args
, **kwargs
):
3599 """IsLongerThan(TimeSpan ts) -> bool"""
3600 return _misc
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3602 def IsShorterThan(*args
, **kwargs
):
3603 """IsShorterThan(TimeSpan t) -> bool"""
3604 return _misc
.TimeSpan_IsShorterThan(*args
, **kwargs
)
3606 def GetWeeks(*args
, **kwargs
):
3607 """GetWeeks() -> int"""
3608 return _misc
.TimeSpan_GetWeeks(*args
, **kwargs
)
3610 def GetDays(*args
, **kwargs
):
3611 """GetDays() -> int"""
3612 return _misc
.TimeSpan_GetDays(*args
, **kwargs
)
3614 def GetHours(*args
, **kwargs
):
3615 """GetHours() -> int"""
3616 return _misc
.TimeSpan_GetHours(*args
, **kwargs
)
3618 def GetMinutes(*args
, **kwargs
):
3619 """GetMinutes() -> int"""
3620 return _misc
.TimeSpan_GetMinutes(*args
, **kwargs
)
3622 def GetSeconds(*args
, **kwargs
):
3623 """GetSeconds() -> wxLongLong"""
3624 return _misc
.TimeSpan_GetSeconds(*args
, **kwargs
)
3626 def GetMilliseconds(*args
, **kwargs
):
3627 """GetMilliseconds() -> wxLongLong"""
3628 return _misc
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
3630 def Format(*args
, **kwargs
):
3631 """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString"""
3632 return _misc
.TimeSpan_Format(*args
, **kwargs
)
3635 return '<wxTimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3637 return self
.Format()
3640 class TimeSpanPtr(TimeSpan
):
3641 def __init__(self
, this
):
3643 if not hasattr(self
,"thisown"): self
.thisown
= 0
3644 self
.__class
__ = TimeSpan
3645 _misc
.TimeSpan_swigregister(TimeSpanPtr
)
3647 def TimeSpan_Seconds(*args
, **kwargs
):
3648 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3649 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3651 def TimeSpan_Second(*args
, **kwargs
):
3652 """TimeSpan_Second() -> TimeSpan"""
3653 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3655 def TimeSpan_Minutes(*args
, **kwargs
):
3656 """TimeSpan_Minutes(long min) -> TimeSpan"""
3657 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3659 def TimeSpan_Minute(*args
, **kwargs
):
3660 """TimeSpan_Minute() -> TimeSpan"""
3661 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3663 def TimeSpan_Hours(*args
, **kwargs
):
3664 """TimeSpan_Hours(long hours) -> TimeSpan"""
3665 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3667 def TimeSpan_Hour(*args
, **kwargs
):
3668 """TimeSpan_Hour() -> TimeSpan"""
3669 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3671 def TimeSpan_Days(*args
, **kwargs
):
3672 """TimeSpan_Days(long days) -> TimeSpan"""
3673 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3675 def TimeSpan_Day(*args
, **kwargs
):
3676 """TimeSpan_Day() -> TimeSpan"""
3677 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3679 def TimeSpan_Weeks(*args
, **kwargs
):
3680 """TimeSpan_Weeks(long days) -> TimeSpan"""
3681 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3683 def TimeSpan_Week(*args
, **kwargs
):
3684 """TimeSpan_Week() -> TimeSpan"""
3685 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3687 class DateSpan(object):
3690 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3691 def __init__(self
, *args
, **kwargs
):
3692 """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
3693 newobj
= _misc
.new_DateSpan(*args
, **kwargs
)
3694 self
.this
= newobj
.this
3697 def __del__(self
, destroy
=_misc
.delete_DateSpan
):
3700 if self
.thisown
: destroy(self
)
3703 def Days(*args
, **kwargs
):
3704 """DateSpan.Days(int days) -> DateSpan"""
3705 return _misc
.DateSpan_Days(*args
, **kwargs
)
3707 Days
= staticmethod(Days
)
3708 def Day(*args
, **kwargs
):
3709 """DateSpan.Day() -> DateSpan"""
3710 return _misc
.DateSpan_Day(*args
, **kwargs
)
3712 Day
= staticmethod(Day
)
3713 def Weeks(*args
, **kwargs
):
3714 """DateSpan.Weeks(int weeks) -> DateSpan"""
3715 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3717 Weeks
= staticmethod(Weeks
)
3718 def Week(*args
, **kwargs
):
3719 """DateSpan.Week() -> DateSpan"""
3720 return _misc
.DateSpan_Week(*args
, **kwargs
)
3722 Week
= staticmethod(Week
)
3723 def Months(*args
, **kwargs
):
3724 """DateSpan.Months(int mon) -> DateSpan"""
3725 return _misc
.DateSpan_Months(*args
, **kwargs
)
3727 Months
= staticmethod(Months
)
3728 def Month(*args
, **kwargs
):
3729 """DateSpan.Month() -> DateSpan"""
3730 return _misc
.DateSpan_Month(*args
, **kwargs
)
3732 Month
= staticmethod(Month
)
3733 def Years(*args
, **kwargs
):
3734 """DateSpan.Years(int years) -> DateSpan"""
3735 return _misc
.DateSpan_Years(*args
, **kwargs
)
3737 Years
= staticmethod(Years
)
3738 def Year(*args
, **kwargs
):
3739 """DateSpan.Year() -> DateSpan"""
3740 return _misc
.DateSpan_Year(*args
, **kwargs
)
3742 Year
= staticmethod(Year
)
3743 def SetYears(*args
, **kwargs
):
3744 """SetYears(int n) -> DateSpan"""
3745 return _misc
.DateSpan_SetYears(*args
, **kwargs
)
3747 def SetMonths(*args
, **kwargs
):
3748 """SetMonths(int n) -> DateSpan"""
3749 return _misc
.DateSpan_SetMonths(*args
, **kwargs
)
3751 def SetWeeks(*args
, **kwargs
):
3752 """SetWeeks(int n) -> DateSpan"""
3753 return _misc
.DateSpan_SetWeeks(*args
, **kwargs
)
3755 def SetDays(*args
, **kwargs
):
3756 """SetDays(int n) -> DateSpan"""
3757 return _misc
.DateSpan_SetDays(*args
, **kwargs
)
3759 def GetYears(*args
, **kwargs
):
3760 """GetYears() -> int"""
3761 return _misc
.DateSpan_GetYears(*args
, **kwargs
)
3763 def GetMonths(*args
, **kwargs
):
3764 """GetMonths() -> int"""
3765 return _misc
.DateSpan_GetMonths(*args
, **kwargs
)
3767 def GetWeeks(*args
, **kwargs
):
3768 """GetWeeks() -> int"""
3769 return _misc
.DateSpan_GetWeeks(*args
, **kwargs
)
3771 def GetDays(*args
, **kwargs
):
3772 """GetDays() -> int"""
3773 return _misc
.DateSpan_GetDays(*args
, **kwargs
)
3775 def GetTotalDays(*args
, **kwargs
):
3776 """GetTotalDays() -> int"""
3777 return _misc
.DateSpan_GetTotalDays(*args
, **kwargs
)
3779 def Add(*args
, **kwargs
):
3780 """Add(DateSpan other) -> DateSpan"""
3781 return _misc
.DateSpan_Add(*args
, **kwargs
)
3783 def Subtract(*args
, **kwargs
):
3784 """Subtract(DateSpan other) -> DateSpan"""
3785 return _misc
.DateSpan_Subtract(*args
, **kwargs
)
3787 def Neg(*args
, **kwargs
):
3788 """Neg() -> DateSpan"""
3789 return _misc
.DateSpan_Neg(*args
, **kwargs
)
3791 def Multiply(*args
, **kwargs
):
3792 """Multiply(int factor) -> DateSpan"""
3793 return _misc
.DateSpan_Multiply(*args
, **kwargs
)
3795 def __iadd__(*args
, **kwargs
):
3796 """__iadd__(DateSpan other) -> DateSpan"""
3797 return _misc
.DateSpan___iadd__(*args
, **kwargs
)
3799 def __isub__(*args
, **kwargs
):
3800 """__isub__(DateSpan other) -> DateSpan"""
3801 return _misc
.DateSpan___isub__(*args
, **kwargs
)
3803 def __neg__(*args
, **kwargs
):
3804 """__neg__() -> DateSpan"""
3805 return _misc
.DateSpan___neg__(*args
, **kwargs
)
3807 def __imul__(*args
, **kwargs
):
3808 """__imul__(int factor) -> DateSpan"""
3809 return _misc
.DateSpan___imul__(*args
, **kwargs
)
3811 def __add__(*args
, **kwargs
):
3812 """__add__(DateSpan other) -> DateSpan"""
3813 return _misc
.DateSpan___add__(*args
, **kwargs
)
3815 def __sub__(*args
, **kwargs
):
3816 """__sub__(DateSpan other) -> DateSpan"""
3817 return _misc
.DateSpan___sub__(*args
, **kwargs
)
3819 def __mul__(*args
, **kwargs
):
3820 """__mul__(int n) -> DateSpan"""
3821 return _misc
.DateSpan___mul__(*args
, **kwargs
)
3823 def __rmul__(*args
, **kwargs
):
3824 """__rmul__(int n) -> DateSpan"""
3825 return _misc
.DateSpan___rmul__(*args
, **kwargs
)
3827 def __eq__(*args
, **kwargs
):
3828 """__eq__(DateSpan other) -> bool"""
3829 return _misc
.DateSpan___eq__(*args
, **kwargs
)
3831 def __ne__(*args
, **kwargs
):
3832 """__ne__(DateSpan other) -> bool"""
3833 return _misc
.DateSpan___ne__(*args
, **kwargs
)
3836 class DateSpanPtr(DateSpan
):
3837 def __init__(self
, this
):
3839 if not hasattr(self
,"thisown"): self
.thisown
= 0
3840 self
.__class
__ = DateSpan
3841 _misc
.DateSpan_swigregister(DateSpanPtr
)
3843 def DateSpan_Days(*args
, **kwargs
):
3844 """DateSpan_Days(int days) -> DateSpan"""
3845 return _misc
.DateSpan_Days(*args
, **kwargs
)
3847 def DateSpan_Day(*args
, **kwargs
):
3848 """DateSpan_Day() -> DateSpan"""
3849 return _misc
.DateSpan_Day(*args
, **kwargs
)
3851 def DateSpan_Weeks(*args
, **kwargs
):
3852 """DateSpan_Weeks(int weeks) -> DateSpan"""
3853 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3855 def DateSpan_Week(*args
, **kwargs
):
3856 """DateSpan_Week() -> DateSpan"""
3857 return _misc
.DateSpan_Week(*args
, **kwargs
)
3859 def DateSpan_Months(*args
, **kwargs
):
3860 """DateSpan_Months(int mon) -> DateSpan"""
3861 return _misc
.DateSpan_Months(*args
, **kwargs
)
3863 def DateSpan_Month(*args
, **kwargs
):
3864 """DateSpan_Month() -> DateSpan"""
3865 return _misc
.DateSpan_Month(*args
, **kwargs
)
3867 def DateSpan_Years(*args
, **kwargs
):
3868 """DateSpan_Years(int years) -> DateSpan"""
3869 return _misc
.DateSpan_Years(*args
, **kwargs
)
3871 def DateSpan_Year(*args
, **kwargs
):
3872 """DateSpan_Year() -> DateSpan"""
3873 return _misc
.DateSpan_Year(*args
, **kwargs
)
3876 def GetLocalTime(*args
, **kwargs
):
3877 """GetLocalTime() -> long"""
3878 return _misc
.GetLocalTime(*args
, **kwargs
)
3880 def GetUTCTime(*args
, **kwargs
):
3881 """GetUTCTime() -> long"""
3882 return _misc
.GetUTCTime(*args
, **kwargs
)
3884 def GetCurrentTime(*args
, **kwargs
):
3885 """GetCurrentTime() -> long"""
3886 return _misc
.GetCurrentTime(*args
, **kwargs
)
3888 def GetLocalTimeMillis(*args
, **kwargs
):
3889 """GetLocalTimeMillis() -> wxLongLong"""
3890 return _misc
.GetLocalTimeMillis(*args
, **kwargs
)
3891 #---------------------------------------------------------------------------
3893 DF_INVALID
= _misc
.DF_INVALID
3894 DF_TEXT
= _misc
.DF_TEXT
3895 DF_BITMAP
= _misc
.DF_BITMAP
3896 DF_METAFILE
= _misc
.DF_METAFILE
3897 DF_SYLK
= _misc
.DF_SYLK
3898 DF_DIF
= _misc
.DF_DIF
3899 DF_TIFF
= _misc
.DF_TIFF
3900 DF_OEMTEXT
= _misc
.DF_OEMTEXT
3901 DF_DIB
= _misc
.DF_DIB
3902 DF_PALETTE
= _misc
.DF_PALETTE
3903 DF_PENDATA
= _misc
.DF_PENDATA
3904 DF_RIFF
= _misc
.DF_RIFF
3905 DF_WAVE
= _misc
.DF_WAVE
3906 DF_UNICODETEXT
= _misc
.DF_UNICODETEXT
3907 DF_ENHMETAFILE
= _misc
.DF_ENHMETAFILE
3908 DF_FILENAME
= _misc
.DF_FILENAME
3909 DF_LOCALE
= _misc
.DF_LOCALE
3910 DF_PRIVATE
= _misc
.DF_PRIVATE
3911 DF_HTML
= _misc
.DF_HTML
3912 DF_MAX
= _misc
.DF_MAX
3913 class DataFormat(object):
3916 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3917 def __init__(self
, *args
, **kwargs
):
3918 """__init__(wxDataFormatId type) -> DataFormat"""
3919 newobj
= _misc
.new_DataFormat(*args
, **kwargs
)
3920 self
.this
= newobj
.this
3923 def __del__(self
, destroy
=_misc
.delete_DataFormat
):
3926 if self
.thisown
: destroy(self
)
3930 """__eq__(wxDataFormatId format) -> bool
3931 __eq__(DataFormat format) -> bool"""
3932 return _misc
.DataFormat___eq__(*args
)
3935 """__ne__(wxDataFormatId format) -> bool
3936 __ne__(DataFormat format) -> bool"""
3937 return _misc
.DataFormat___ne__(*args
)
3939 def SetType(*args
, **kwargs
):
3940 """SetType(wxDataFormatId format)"""
3941 return _misc
.DataFormat_SetType(*args
, **kwargs
)
3943 def GetType(*args
, **kwargs
):
3944 """GetType() -> wxDataFormatId"""
3945 return _misc
.DataFormat_GetType(*args
, **kwargs
)
3947 def GetId(*args
, **kwargs
):
3948 """GetId() -> wxString"""
3949 return _misc
.DataFormat_GetId(*args
, **kwargs
)
3951 def SetId(*args
, **kwargs
):
3952 """SetId(wxString format)"""
3953 return _misc
.DataFormat_SetId(*args
, **kwargs
)
3956 class DataFormatPtr(DataFormat
):
3957 def __init__(self
, this
):
3959 if not hasattr(self
,"thisown"): self
.thisown
= 0
3960 self
.__class
__ = DataFormat
3961 _misc
.DataFormat_swigregister(DataFormatPtr
)
3963 def CustomDataFormat(*args
, **kwargs
):
3964 """CustomDataFormat(wxString format) -> DataFormat"""
3965 val
= _misc
.new_CustomDataFormat(*args
, **kwargs
)
3969 class DataObject(object):
3971 def __init__(self
): raise RuntimeError, "No constructor defined"
3973 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3974 Get
= _misc
.DataObject_Get
3975 Set
= _misc
.DataObject_Set
3976 Both
= _misc
.DataObject_Both
3977 def __del__(self
, destroy
=_misc
.delete_DataObject
):
3980 if self
.thisown
: destroy(self
)
3983 def GetPreferredFormat(*args
, **kwargs
):
3984 """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat"""
3985 return _misc
.DataObject_GetPreferredFormat(*args
, **kwargs
)
3987 def GetFormatCount(*args
, **kwargs
):
3988 """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t"""
3989 return _misc
.DataObject_GetFormatCount(*args
, **kwargs
)
3991 def IsSupported(*args
, **kwargs
):
3992 """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool"""
3993 return _misc
.DataObject_IsSupported(*args
, **kwargs
)
3995 def GetDataSize(*args
, **kwargs
):
3996 """GetDataSize(DataFormat format) -> size_t"""
3997 return _misc
.DataObject_GetDataSize(*args
, **kwargs
)
3999 def GetAllFormats(*args
, **kwargs
):
4000 """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)"""
4001 return _misc
.DataObject_GetAllFormats(*args
, **kwargs
)
4003 def GetDataHere(*args
, **kwargs
):
4004 """GetDataHere(DataFormat format, void buf) -> bool"""
4005 return _misc
.DataObject_GetDataHere(*args
, **kwargs
)
4007 def SetData(*args
, **kwargs
):
4008 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4009 return _misc
.DataObject_SetData(*args
, **kwargs
)
4012 class DataObjectPtr(DataObject
):
4013 def __init__(self
, this
):
4015 if not hasattr(self
,"thisown"): self
.thisown
= 0
4016 self
.__class
__ = DataObject
4017 _misc
.DataObject_swigregister(DataObjectPtr
)
4018 FormatInvalid
= cvar
.FormatInvalid
4020 class DataObjectSimple(DataObject
):
4023 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4024 def __init__(self
, *args
, **kwargs
):
4025 """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple"""
4026 newobj
= _misc
.new_DataObjectSimple(*args
, **kwargs
)
4027 self
.this
= newobj
.this
4030 def GetFormat(*args
, **kwargs
):
4031 """GetFormat() -> DataFormat"""
4032 return _misc
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4034 def SetFormat(*args
, **kwargs
):
4035 """SetFormat(DataFormat format)"""
4036 return _misc
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4039 class DataObjectSimplePtr(DataObjectSimple
):
4040 def __init__(self
, this
):
4042 if not hasattr(self
,"thisown"): self
.thisown
= 0
4043 self
.__class
__ = DataObjectSimple
4044 _misc
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4046 class PyDataObjectSimple(DataObjectSimple
):
4049 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4050 def __init__(self
, *args
, **kwargs
):
4051 """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4052 newobj
= _misc
.new_PyDataObjectSimple(*args
, **kwargs
)
4053 self
.this
= newobj
.this
4056 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4058 def _setCallbackInfo(*args
, **kwargs
):
4059 """_setCallbackInfo(PyObject self, PyObject _class)"""
4060 return _misc
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4063 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4064 def __init__(self
, this
):
4066 if not hasattr(self
,"thisown"): self
.thisown
= 0
4067 self
.__class
__ = PyDataObjectSimple
4068 _misc
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4070 class DataObjectComposite(DataObject
):
4073 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4074 def __init__(self
, *args
, **kwargs
):
4075 """__init__() -> DataObjectComposite"""
4076 newobj
= _misc
.new_DataObjectComposite(*args
, **kwargs
)
4077 self
.this
= newobj
.this
4080 def Add(*args
, **kwargs
):
4081 """Add(DataObjectSimple dataObject, int preferred=False)"""
4082 val
= _misc
.DataObjectComposite_Add(*args
, **kwargs
)
4087 class DataObjectCompositePtr(DataObjectComposite
):
4088 def __init__(self
, this
):
4090 if not hasattr(self
,"thisown"): self
.thisown
= 0
4091 self
.__class
__ = DataObjectComposite
4092 _misc
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4094 class TextDataObject(DataObjectSimple
):
4097 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4098 def __init__(self
, *args
, **kwargs
):
4099 """__init__(wxString text=wxPyEmptyString) -> TextDataObject"""
4100 newobj
= _misc
.new_TextDataObject(*args
, **kwargs
)
4101 self
.this
= newobj
.this
4104 def GetTextLength(*args
, **kwargs
):
4105 """GetTextLength() -> size_t"""
4106 return _misc
.TextDataObject_GetTextLength(*args
, **kwargs
)
4108 def GetText(*args
, **kwargs
):
4109 """GetText() -> wxString"""
4110 return _misc
.TextDataObject_GetText(*args
, **kwargs
)
4112 def SetText(*args
, **kwargs
):
4113 """SetText(wxString text)"""
4114 return _misc
.TextDataObject_SetText(*args
, **kwargs
)
4117 class TextDataObjectPtr(TextDataObject
):
4118 def __init__(self
, this
):
4120 if not hasattr(self
,"thisown"): self
.thisown
= 0
4121 self
.__class
__ = TextDataObject
4122 _misc
.TextDataObject_swigregister(TextDataObjectPtr
)
4124 class PyTextDataObject(TextDataObject
):
4127 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4128 def __init__(self
, *args
, **kwargs
):
4129 """__init__(wxString text=wxPyEmptyString) -> PyTextDataObject"""
4130 newobj
= _misc
.new_PyTextDataObject(*args
, **kwargs
)
4131 self
.this
= newobj
.this
4134 self
._setCallbackInfo
(self
, PyTextDataObject
)
4136 def _setCallbackInfo(*args
, **kwargs
):
4137 """_setCallbackInfo(PyObject self, PyObject _class)"""
4138 return _misc
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4141 class PyTextDataObjectPtr(PyTextDataObject
):
4142 def __init__(self
, this
):
4144 if not hasattr(self
,"thisown"): self
.thisown
= 0
4145 self
.__class
__ = PyTextDataObject
4146 _misc
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4148 class BitmapDataObject(DataObjectSimple
):
4151 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4152 def __init__(self
, *args
, **kwargs
):
4153 """__init__(wxBitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4154 newobj
= _misc
.new_BitmapDataObject(*args
, **kwargs
)
4155 self
.this
= newobj
.this
4158 def GetBitmap(*args
, **kwargs
):
4159 """GetBitmap() -> wxBitmap"""
4160 return _misc
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4162 def SetBitmap(*args
, **kwargs
):
4163 """SetBitmap(wxBitmap bitmap)"""
4164 return _misc
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4167 class BitmapDataObjectPtr(BitmapDataObject
):
4168 def __init__(self
, this
):
4170 if not hasattr(self
,"thisown"): self
.thisown
= 0
4171 self
.__class
__ = BitmapDataObject
4172 _misc
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4174 class PyBitmapDataObject(BitmapDataObject
):
4177 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4178 def __init__(self
, *args
, **kwargs
):
4179 """__init__(wxBitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4180 newobj
= _misc
.new_PyBitmapDataObject(*args
, **kwargs
)
4181 self
.this
= newobj
.this
4184 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4186 def _setCallbackInfo(*args
, **kwargs
):
4187 """_setCallbackInfo(PyObject self, PyObject _class)"""
4188 return _misc
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4191 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = PyBitmapDataObject
4196 _misc
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4198 class FileDataObject(DataObjectSimple
):
4201 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4202 def __init__(self
, *args
, **kwargs
):
4203 """__init__() -> FileDataObject"""
4204 newobj
= _misc
.new_FileDataObject(*args
, **kwargs
)
4205 self
.this
= newobj
.this
4208 def GetFilenames(*args
, **kwargs
):
4209 """GetFilenames() -> wxArrayString"""
4210 return _misc
.FileDataObject_GetFilenames(*args
, **kwargs
)
4212 def AddFile(*args
, **kwargs
):
4213 """AddFile(wxString filename)"""
4214 return _misc
.FileDataObject_AddFile(*args
, **kwargs
)
4217 class FileDataObjectPtr(FileDataObject
):
4218 def __init__(self
, this
):
4220 if not hasattr(self
,"thisown"): self
.thisown
= 0
4221 self
.__class
__ = FileDataObject
4222 _misc
.FileDataObject_swigregister(FileDataObjectPtr
)
4224 class CustomDataObject(DataObjectSimple
):
4227 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4228 def __init__(self
, *args
, **kwargs
):
4229 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
4230 newobj
= _misc
.new_CustomDataObject(*args
, **kwargs
)
4231 self
.this
= newobj
.this
4234 def TakeData(*args
, **kwargs
):
4235 """TakeData(PyObject data)"""
4236 return _misc
.CustomDataObject_TakeData(*args
, **kwargs
)
4238 def SetData(*args
, **kwargs
):
4239 """SetData(PyObject data) -> bool"""
4240 return _misc
.CustomDataObject_SetData(*args
, **kwargs
)
4242 def GetSize(*args
, **kwargs
):
4243 """GetSize() -> size_t"""
4244 return _misc
.CustomDataObject_GetSize(*args
, **kwargs
)
4246 def GetData(*args
, **kwargs
):
4247 """GetData() -> PyObject"""
4248 return _misc
.CustomDataObject_GetData(*args
, **kwargs
)
4251 class CustomDataObjectPtr(CustomDataObject
):
4252 def __init__(self
, this
):
4254 if not hasattr(self
,"thisown"): self
.thisown
= 0
4255 self
.__class
__ = CustomDataObject
4256 _misc
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4258 class URLDataObject(DataObjectComposite
):
4261 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4262 def __init__(self
, *args
, **kwargs
):
4263 """__init__() -> URLDataObject"""
4264 newobj
= _misc
.new_URLDataObject(*args
, **kwargs
)
4265 self
.this
= newobj
.this
4268 def GetURL(*args
, **kwargs
):
4269 """GetURL() -> wxString"""
4270 return _misc
.URLDataObject_GetURL(*args
, **kwargs
)
4272 def SetURL(*args
, **kwargs
):
4273 """SetURL(wxString url)"""
4274 return _misc
.URLDataObject_SetURL(*args
, **kwargs
)
4277 class URLDataObjectPtr(URLDataObject
):
4278 def __init__(self
, this
):
4280 if not hasattr(self
,"thisown"): self
.thisown
= 0
4281 self
.__class
__ = URLDataObject
4282 _misc
.URLDataObject_swigregister(URLDataObjectPtr
)
4284 class MetafileDataObject(DataObjectSimple
):
4287 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4288 def __init__(self
, *args
, **kwargs
):
4289 """__init__() -> MetafileDataObject"""
4290 newobj
= _misc
.new_MetafileDataObject(*args
, **kwargs
)
4291 self
.this
= newobj
.this
4294 def SetMetafile(*args
, **kwargs
):
4295 """SetMetafile(wxMetafile metafile)"""
4296 return _misc
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
4298 def GetMetafile(*args
, **kwargs
):
4299 """GetMetafile() -> wxMetafile"""
4300 return _misc
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
4303 class MetafileDataObjectPtr(MetafileDataObject
):
4304 def __init__(self
, this
):
4306 if not hasattr(self
,"thisown"): self
.thisown
= 0
4307 self
.__class
__ = MetafileDataObject
4308 _misc
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4310 #---------------------------------------------------------------------------
4312 Drag_CopyOnly
= _misc
.Drag_CopyOnly
4313 Drag_AllowMove
= _misc
.Drag_AllowMove
4314 Drag_DefaultMove
= _misc
.Drag_DefaultMove
4315 DragError
= _misc
.DragError
4316 DragNone
= _misc
.DragNone
4317 DragCopy
= _misc
.DragCopy
4318 DragMove
= _misc
.DragMove
4319 DragLink
= _misc
.DragLink
4320 DragCancel
= _misc
.DragCancel
4322 def IsDragResultOk(*args
, **kwargs
):
4323 """IsDragResultOk(wxDragResult res) -> bool"""
4324 return _misc
.IsDragResultOk(*args
, **kwargs
)
4325 class DropSource(object):
4328 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4329 def __init__(self
, *args
, **kwargs
):
4330 """__init__(Window win=None, wxCursor copy=wxNullCursor, wxCursor move=wxNullCursor,
4331 wxCursor none=wxNullCursor) -> DropSource"""
4332 newobj
= _misc
.new_DropSource(*args
, **kwargs
)
4333 self
.this
= newobj
.this
4336 def _setCallbackInfo(*args
, **kwargs
):
4337 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4338 return _misc
.DropSource__setCallbackInfo(*args
, **kwargs
)
4340 def __del__(self
, destroy
=_misc
.delete_DropSource
):
4343 if self
.thisown
: destroy(self
)
4346 def SetData(*args
, **kwargs
):
4347 """SetData(DataObject data)"""
4348 return _misc
.DropSource_SetData(*args
, **kwargs
)
4350 def GetDataObject(*args
, **kwargs
):
4351 """GetDataObject() -> DataObject"""
4352 return _misc
.DropSource_GetDataObject(*args
, **kwargs
)
4354 def SetCursor(*args
, **kwargs
):
4355 """SetCursor(wxDragResult res, wxCursor cursor)"""
4356 return _misc
.DropSource_SetCursor(*args
, **kwargs
)
4358 def DoDragDrop(*args
, **kwargs
):
4359 """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult"""
4360 return _misc
.DropSource_DoDragDrop(*args
, **kwargs
)
4362 def base_GiveFeedback(*args
, **kwargs
):
4363 """base_GiveFeedback(wxDragResult effect) -> bool"""
4364 return _misc
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4367 class DropSourcePtr(DropSource
):
4368 def __init__(self
, this
):
4370 if not hasattr(self
,"thisown"): self
.thisown
= 0
4371 self
.__class
__ = DropSource
4372 _misc
.DropSource_swigregister(DropSourcePtr
)
4374 class DropTarget(object):
4377 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4378 def __init__(self
, *args
, **kwargs
):
4379 """__init__(DataObject dataObject=None) -> DropTarget"""
4380 newobj
= _misc
.new_DropTarget(*args
, **kwargs
)
4381 self
.this
= newobj
.this
4384 if args
: args
[1].thisown
= 0; self
._setCallbackInfo
(self
, DropTarget
)
4386 def _setCallbackInfo(*args
, **kwargs
):
4387 """_setCallbackInfo(PyObject self, PyObject _class)"""
4388 return _misc
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4390 def __del__(self
, destroy
=_misc
.delete_DropTarget
):
4393 if self
.thisown
: destroy(self
)
4396 def GetDataObject(*args
, **kwargs
):
4397 """GetDataObject() -> DataObject"""
4398 return _misc
.DropTarget_GetDataObject(*args
, **kwargs
)
4400 def SetDataObject(*args
, **kwargs
):
4401 """SetDataObject(DataObject dataObject)"""
4402 val
= _misc
.DropTarget_SetDataObject(*args
, **kwargs
)
4406 def base_OnEnter(*args
, **kwargs
):
4407 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4408 return _misc
.DropTarget_base_OnEnter(*args
, **kwargs
)
4410 def base_OnDragOver(*args
, **kwargs
):
4411 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4412 return _misc
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4414 def base_OnLeave(*args
, **kwargs
):
4415 """base_OnLeave()"""
4416 return _misc
.DropTarget_base_OnLeave(*args
, **kwargs
)
4418 def base_OnDrop(*args
, **kwargs
):
4419 """base_OnDrop(int x, int y) -> bool"""
4420 return _misc
.DropTarget_base_OnDrop(*args
, **kwargs
)
4422 def GetData(*args
, **kwargs
):
4423 """GetData() -> bool"""
4424 return _misc
.DropTarget_GetData(*args
, **kwargs
)
4427 class DropTargetPtr(DropTarget
):
4428 def __init__(self
, this
):
4430 if not hasattr(self
,"thisown"): self
.thisown
= 0
4431 self
.__class
__ = DropTarget
4432 _misc
.DropTarget_swigregister(DropTargetPtr
)
4434 PyDropTarget
= DropTarget
4435 class TextDropTarget(DropTarget
):
4438 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4439 def __init__(self
, *args
, **kwargs
):
4440 """__init__() -> TextDropTarget"""
4441 newobj
= _misc
.new_TextDropTarget(*args
, **kwargs
)
4442 self
.this
= newobj
.this
4445 self
._setCallbackInfo
(self
, TextDropTarget
)
4447 def _setCallbackInfo(*args
, **kwargs
):
4448 """_setCallbackInfo(PyObject self, PyObject _class)"""
4449 return _misc
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4451 def base_OnEnter(*args
, **kwargs
):
4452 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4453 return _misc
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4455 def base_OnDragOver(*args
, **kwargs
):
4456 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4457 return _misc
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4459 def base_OnLeave(*args
, **kwargs
):
4460 """base_OnLeave()"""
4461 return _misc
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4463 def base_OnDrop(*args
, **kwargs
):
4464 """base_OnDrop(int x, int y) -> bool"""
4465 return _misc
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4467 def base_OnData(*args
, **kwargs
):
4468 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4469 return _misc
.TextDropTarget_base_OnData(*args
, **kwargs
)
4472 class TextDropTargetPtr(TextDropTarget
):
4473 def __init__(self
, this
):
4475 if not hasattr(self
,"thisown"): self
.thisown
= 0
4476 self
.__class
__ = TextDropTarget
4477 _misc
.TextDropTarget_swigregister(TextDropTargetPtr
)
4479 class FileDropTarget(DropTarget
):
4482 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4483 def __init__(self
, *args
, **kwargs
):
4484 """__init__() -> FileDropTarget"""
4485 newobj
= _misc
.new_FileDropTarget(*args
, **kwargs
)
4486 self
.this
= newobj
.this
4489 self
._setCallbackInfo
(self
, FileDropTarget
)
4491 def _setCallbackInfo(*args
, **kwargs
):
4492 """_setCallbackInfo(PyObject self, PyObject _class)"""
4493 return _misc
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
4495 def base_OnEnter(*args
, **kwargs
):
4496 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4497 return _misc
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
4499 def base_OnDragOver(*args
, **kwargs
):
4500 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4501 return _misc
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
4503 def base_OnLeave(*args
, **kwargs
):
4504 """base_OnLeave()"""
4505 return _misc
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
4507 def base_OnDrop(*args
, **kwargs
):
4508 """base_OnDrop(int x, int y) -> bool"""
4509 return _misc
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
4511 def base_OnData(*args
, **kwargs
):
4512 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4513 return _misc
.FileDropTarget_base_OnData(*args
, **kwargs
)
4516 class FileDropTargetPtr(FileDropTarget
):
4517 def __init__(self
, this
):
4519 if not hasattr(self
,"thisown"): self
.thisown
= 0
4520 self
.__class
__ = FileDropTarget
4521 _misc
.FileDropTarget_swigregister(FileDropTargetPtr
)
4523 #---------------------------------------------------------------------------
4525 class Clipboard(core
.Object
):
4528 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4529 def __init__(self
, *args
, **kwargs
):
4530 """__init__() -> Clipboard"""
4531 newobj
= _misc
.new_Clipboard(*args
, **kwargs
)
4532 self
.this
= newobj
.this
4535 def __del__(self
, destroy
=_misc
.delete_Clipboard
):
4538 if self
.thisown
: destroy(self
)
4541 def Open(*args
, **kwargs
):
4542 """Open() -> bool"""
4543 return _misc
.Clipboard_Open(*args
, **kwargs
)
4545 def Close(*args
, **kwargs
):
4547 return _misc
.Clipboard_Close(*args
, **kwargs
)
4549 def IsOpened(*args
, **kwargs
):
4550 """IsOpened() -> bool"""
4551 return _misc
.Clipboard_IsOpened(*args
, **kwargs
)
4553 def AddData(*args
, **kwargs
):
4554 """AddData(DataObject data) -> bool"""
4555 return _misc
.Clipboard_AddData(*args
, **kwargs
)
4557 def SetData(*args
, **kwargs
):
4558 """SetData(DataObject data) -> bool"""
4559 return _misc
.Clipboard_SetData(*args
, **kwargs
)
4561 def IsSupported(*args
, **kwargs
):
4562 """IsSupported(DataFormat format) -> bool"""
4563 return _misc
.Clipboard_IsSupported(*args
, **kwargs
)
4565 def GetData(*args
, **kwargs
):
4566 """GetData(DataObject data) -> bool"""
4567 return _misc
.Clipboard_GetData(*args
, **kwargs
)
4569 def Clear(*args
, **kwargs
):
4571 return _misc
.Clipboard_Clear(*args
, **kwargs
)
4573 def Flush(*args
, **kwargs
):
4574 """Flush() -> bool"""
4575 return _misc
.Clipboard_Flush(*args
, **kwargs
)
4577 def UsePrimarySelection(*args
, **kwargs
):
4578 """UsePrimarySelection(bool primary=False)"""
4579 return _misc
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
4582 class ClipboardPtr(Clipboard
):
4583 def __init__(self
, this
):
4585 if not hasattr(self
,"thisown"): self
.thisown
= 0
4586 self
.__class
__ = Clipboard
4587 _misc
.Clipboard_swigregister(ClipboardPtr
)
4589 class ClipboardLocker(object):
4592 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4593 def __init__(self
, *args
, **kwargs
):
4594 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
4595 newobj
= _misc
.new_ClipboardLocker(*args
, **kwargs
)
4596 self
.this
= newobj
.this
4599 def __del__(self
, destroy
=_misc
.delete_ClipboardLocker
):
4602 if self
.thisown
: destroy(self
)
4605 def __nonzero__(*args
, **kwargs
):
4606 """__nonzero__() -> bool"""
4607 return _misc
.ClipboardLocker___nonzero__(*args
, **kwargs
)
4610 class ClipboardLockerPtr(ClipboardLocker
):
4611 def __init__(self
, this
):
4613 if not hasattr(self
,"thisown"): self
.thisown
= 0
4614 self
.__class
__ = ClipboardLocker
4615 _misc
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
4616 TheClipboard
= cvar
.TheClipboard