1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 SYS_OEM_FIXED_FONT
= _misc
.SYS_OEM_FIXED_FONT
11 SYS_ANSI_FIXED_FONT
= _misc
.SYS_ANSI_FIXED_FONT
12 SYS_ANSI_VAR_FONT
= _misc
.SYS_ANSI_VAR_FONT
13 SYS_SYSTEM_FONT
= _misc
.SYS_SYSTEM_FONT
14 SYS_DEVICE_DEFAULT_FONT
= _misc
.SYS_DEVICE_DEFAULT_FONT
15 SYS_DEFAULT_PALETTE
= _misc
.SYS_DEFAULT_PALETTE
16 SYS_SYSTEM_FIXED_FONT
= _misc
.SYS_SYSTEM_FIXED_FONT
17 SYS_DEFAULT_GUI_FONT
= _misc
.SYS_DEFAULT_GUI_FONT
18 SYS_ICONTITLE_FONT
= _misc
.SYS_ICONTITLE_FONT
19 SYS_COLOUR_SCROLLBAR
= _misc
.SYS_COLOUR_SCROLLBAR
20 SYS_COLOUR_BACKGROUND
= _misc
.SYS_COLOUR_BACKGROUND
21 SYS_COLOUR_DESKTOP
= _misc
.SYS_COLOUR_DESKTOP
22 SYS_COLOUR_ACTIVECAPTION
= _misc
.SYS_COLOUR_ACTIVECAPTION
23 SYS_COLOUR_INACTIVECAPTION
= _misc
.SYS_COLOUR_INACTIVECAPTION
24 SYS_COLOUR_MENU
= _misc
.SYS_COLOUR_MENU
25 SYS_COLOUR_WINDOW
= _misc
.SYS_COLOUR_WINDOW
26 SYS_COLOUR_WINDOWFRAME
= _misc
.SYS_COLOUR_WINDOWFRAME
27 SYS_COLOUR_MENUTEXT
= _misc
.SYS_COLOUR_MENUTEXT
28 SYS_COLOUR_WINDOWTEXT
= _misc
.SYS_COLOUR_WINDOWTEXT
29 SYS_COLOUR_CAPTIONTEXT
= _misc
.SYS_COLOUR_CAPTIONTEXT
30 SYS_COLOUR_ACTIVEBORDER
= _misc
.SYS_COLOUR_ACTIVEBORDER
31 SYS_COLOUR_INACTIVEBORDER
= _misc
.SYS_COLOUR_INACTIVEBORDER
32 SYS_COLOUR_APPWORKSPACE
= _misc
.SYS_COLOUR_APPWORKSPACE
33 SYS_COLOUR_HIGHLIGHT
= _misc
.SYS_COLOUR_HIGHLIGHT
34 SYS_COLOUR_HIGHLIGHTTEXT
= _misc
.SYS_COLOUR_HIGHLIGHTTEXT
35 SYS_COLOUR_BTNFACE
= _misc
.SYS_COLOUR_BTNFACE
36 SYS_COLOUR_3DFACE
= _misc
.SYS_COLOUR_3DFACE
37 SYS_COLOUR_BTNSHADOW
= _misc
.SYS_COLOUR_BTNSHADOW
38 SYS_COLOUR_3DSHADOW
= _misc
.SYS_COLOUR_3DSHADOW
39 SYS_COLOUR_GRAYTEXT
= _misc
.SYS_COLOUR_GRAYTEXT
40 SYS_COLOUR_BTNTEXT
= _misc
.SYS_COLOUR_BTNTEXT
41 SYS_COLOUR_INACTIVECAPTIONTEXT
= _misc
.SYS_COLOUR_INACTIVECAPTIONTEXT
42 SYS_COLOUR_BTNHIGHLIGHT
= _misc
.SYS_COLOUR_BTNHIGHLIGHT
43 SYS_COLOUR_BTNHILIGHT
= _misc
.SYS_COLOUR_BTNHILIGHT
44 SYS_COLOUR_3DHIGHLIGHT
= _misc
.SYS_COLOUR_3DHIGHLIGHT
45 SYS_COLOUR_3DHILIGHT
= _misc
.SYS_COLOUR_3DHILIGHT
46 SYS_COLOUR_3DDKSHADOW
= _misc
.SYS_COLOUR_3DDKSHADOW
47 SYS_COLOUR_3DLIGHT
= _misc
.SYS_COLOUR_3DLIGHT
48 SYS_COLOUR_INFOTEXT
= _misc
.SYS_COLOUR_INFOTEXT
49 SYS_COLOUR_INFOBK
= _misc
.SYS_COLOUR_INFOBK
50 SYS_COLOUR_LISTBOX
= _misc
.SYS_COLOUR_LISTBOX
51 SYS_COLOUR_HOTLIGHT
= _misc
.SYS_COLOUR_HOTLIGHT
52 SYS_COLOUR_GRADIENTACTIVECAPTION
= _misc
.SYS_COLOUR_GRADIENTACTIVECAPTION
53 SYS_COLOUR_GRADIENTINACTIVECAPTION
= _misc
.SYS_COLOUR_GRADIENTINACTIVECAPTION
54 SYS_COLOUR_MENUHILIGHT
= _misc
.SYS_COLOUR_MENUHILIGHT
55 SYS_COLOUR_MENUBAR
= _misc
.SYS_COLOUR_MENUBAR
56 SYS_COLOUR_MAX
= _misc
.SYS_COLOUR_MAX
57 SYS_MOUSE_BUTTONS
= _misc
.SYS_MOUSE_BUTTONS
58 SYS_BORDER_X
= _misc
.SYS_BORDER_X
59 SYS_BORDER_Y
= _misc
.SYS_BORDER_Y
60 SYS_CURSOR_X
= _misc
.SYS_CURSOR_X
61 SYS_CURSOR_Y
= _misc
.SYS_CURSOR_Y
62 SYS_DCLICK_X
= _misc
.SYS_DCLICK_X
63 SYS_DCLICK_Y
= _misc
.SYS_DCLICK_Y
64 SYS_DRAG_X
= _misc
.SYS_DRAG_X
65 SYS_DRAG_Y
= _misc
.SYS_DRAG_Y
66 SYS_EDGE_X
= _misc
.SYS_EDGE_X
67 SYS_EDGE_Y
= _misc
.SYS_EDGE_Y
68 SYS_HSCROLL_ARROW_X
= _misc
.SYS_HSCROLL_ARROW_X
69 SYS_HSCROLL_ARROW_Y
= _misc
.SYS_HSCROLL_ARROW_Y
70 SYS_HTHUMB_X
= _misc
.SYS_HTHUMB_X
71 SYS_ICON_X
= _misc
.SYS_ICON_X
72 SYS_ICON_Y
= _misc
.SYS_ICON_Y
73 SYS_ICONSPACING_X
= _misc
.SYS_ICONSPACING_X
74 SYS_ICONSPACING_Y
= _misc
.SYS_ICONSPACING_Y
75 SYS_WINDOWMIN_X
= _misc
.SYS_WINDOWMIN_X
76 SYS_WINDOWMIN_Y
= _misc
.SYS_WINDOWMIN_Y
77 SYS_SCREEN_X
= _misc
.SYS_SCREEN_X
78 SYS_SCREEN_Y
= _misc
.SYS_SCREEN_Y
79 SYS_FRAMESIZE_X
= _misc
.SYS_FRAMESIZE_X
80 SYS_FRAMESIZE_Y
= _misc
.SYS_FRAMESIZE_Y
81 SYS_SMALLICON_X
= _misc
.SYS_SMALLICON_X
82 SYS_SMALLICON_Y
= _misc
.SYS_SMALLICON_Y
83 SYS_HSCROLL_Y
= _misc
.SYS_HSCROLL_Y
84 SYS_VSCROLL_X
= _misc
.SYS_VSCROLL_X
85 SYS_VSCROLL_ARROW_X
= _misc
.SYS_VSCROLL_ARROW_X
86 SYS_VSCROLL_ARROW_Y
= _misc
.SYS_VSCROLL_ARROW_Y
87 SYS_VTHUMB_Y
= _misc
.SYS_VTHUMB_Y
88 SYS_CAPTION_Y
= _misc
.SYS_CAPTION_Y
89 SYS_MENU_Y
= _misc
.SYS_MENU_Y
90 SYS_NETWORK_PRESENT
= _misc
.SYS_NETWORK_PRESENT
91 SYS_PENWINDOWS_PRESENT
= _misc
.SYS_PENWINDOWS_PRESENT
92 SYS_SHOW_SOUNDS
= _misc
.SYS_SHOW_SOUNDS
93 SYS_SWAP_BUTTONS
= _misc
.SYS_SWAP_BUTTONS
94 SYS_CAN_DRAW_FRAME_DECORATIONS
= _misc
.SYS_CAN_DRAW_FRAME_DECORATIONS
95 SYS_CAN_ICONIZE_FRAME
= _misc
.SYS_CAN_ICONIZE_FRAME
96 SYS_SCREEN_NONE
= _misc
.SYS_SCREEN_NONE
97 SYS_SCREEN_TINY
= _misc
.SYS_SCREEN_TINY
98 SYS_SCREEN_PDA
= _misc
.SYS_SCREEN_PDA
99 SYS_SCREEN_SMALL
= _misc
.SYS_SCREEN_SMALL
100 SYS_SCREEN_DESKTOP
= _misc
.SYS_SCREEN_DESKTOP
101 class SystemSettings(object):
102 def __init__(self
): raise RuntimeError, "No constructor defined"
104 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
105 def GetColour(*args
, **kwargs
):
106 """SystemSettings.GetColour(wxSystemColour index) -> wxColour"""
107 return _misc
.SystemSettings_GetColour(*args
, **kwargs
)
109 GetColour
= staticmethod(GetColour
)
110 def GetFont(*args
, **kwargs
):
111 """SystemSettings.GetFont(wxSystemFont index) -> wxFont"""
112 return _misc
.SystemSettings_GetFont(*args
, **kwargs
)
114 GetFont
= staticmethod(GetFont
)
115 def GetMetric(*args
, **kwargs
):
116 """SystemSettings.GetMetric(wxSystemMetric index) -> int"""
117 return _misc
.SystemSettings_GetMetric(*args
, **kwargs
)
119 GetMetric
= staticmethod(GetMetric
)
120 def HasFeature(*args
, **kwargs
):
121 """SystemSettings.HasFeature(wxSystemFeature index) -> bool"""
122 return _misc
.SystemSettings_HasFeature(*args
, **kwargs
)
124 HasFeature
= staticmethod(HasFeature
)
125 def GetScreenType(*args
, **kwargs
):
126 """SystemSettings.GetScreenType() -> wxSystemScreenType"""
127 return _misc
.SystemSettings_GetScreenType(*args
, **kwargs
)
129 GetScreenType
= staticmethod(GetScreenType
)
130 def SetScreenType(*args
, **kwargs
):
131 """SystemSettings.SetScreenType(wxSystemScreenType screen)"""
132 return _misc
.SystemSettings_SetScreenType(*args
, **kwargs
)
134 SetScreenType
= staticmethod(SetScreenType
)
136 class SystemSettingsPtr(SystemSettings
):
137 def __init__(self
, this
):
139 if not hasattr(self
,"thisown"): self
.thisown
= 0
140 self
.__class
__ = SystemSettings
141 _misc
.SystemSettings_swigregister(SystemSettingsPtr
)
143 def SystemSettings_GetColour(*args
, **kwargs
):
144 """SystemSettings_GetColour(wxSystemColour index) -> wxColour"""
145 return _misc
.SystemSettings_GetColour(*args
, **kwargs
)
147 def SystemSettings_GetFont(*args
, **kwargs
):
148 """SystemSettings_GetFont(wxSystemFont index) -> wxFont"""
149 return _misc
.SystemSettings_GetFont(*args
, **kwargs
)
151 def SystemSettings_GetMetric(*args
, **kwargs
):
152 """SystemSettings_GetMetric(wxSystemMetric index) -> int"""
153 return _misc
.SystemSettings_GetMetric(*args
, **kwargs
)
155 def SystemSettings_HasFeature(*args
, **kwargs
):
156 """SystemSettings_HasFeature(wxSystemFeature index) -> bool"""
157 return _misc
.SystemSettings_HasFeature(*args
, **kwargs
)
159 def SystemSettings_GetScreenType(*args
, **kwargs
):
160 """SystemSettings_GetScreenType() -> wxSystemScreenType"""
161 return _misc
.SystemSettings_GetScreenType(*args
, **kwargs
)
163 def SystemSettings_SetScreenType(*args
, **kwargs
):
164 """SystemSettings_SetScreenType(wxSystemScreenType screen)"""
165 return _misc
.SystemSettings_SetScreenType(*args
, **kwargs
)
167 # backwards compatibility aliasses
168 SystemSettings_GetSystemColour
= SystemSettings_GetColour
169 SystemSettings_GetSystemFont
= SystemSettings_GetFont
170 SystemSettings_GetSystemMetric
= SystemSettings_GetMetric
172 class SystemOptions(core
.Object
):
174 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
175 def __init__(self
, *args
, **kwargs
):
176 """__init__() -> SystemOptions"""
177 newobj
= _misc
.new_SystemOptions(*args
, **kwargs
)
178 self
.this
= newobj
.this
181 def SetOption(*args
, **kwargs
):
182 """SystemOptions.SetOption(wxString name, wxString value)"""
183 return _misc
.SystemOptions_SetOption(*args
, **kwargs
)
185 SetOption
= staticmethod(SetOption
)
186 def SetOptionInt(*args
, **kwargs
):
187 """SystemOptions.SetOptionInt(wxString name, int value)"""
188 return _misc
.SystemOptions_SetOptionInt(*args
, **kwargs
)
190 SetOptionInt
= staticmethod(SetOptionInt
)
191 def GetOption(*args
, **kwargs
):
192 """SystemOptions.GetOption(wxString name) -> wxString"""
193 return _misc
.SystemOptions_GetOption(*args
, **kwargs
)
195 GetOption
= staticmethod(GetOption
)
196 def GetOptionInt(*args
, **kwargs
):
197 """SystemOptions.GetOptionInt(wxString name) -> int"""
198 return _misc
.SystemOptions_GetOptionInt(*args
, **kwargs
)
200 GetOptionInt
= staticmethod(GetOptionInt
)
201 def HasOption(*args
, **kwargs
):
202 """SystemOptions.HasOption(wxString name) -> bool"""
203 return _misc
.SystemOptions_HasOption(*args
, **kwargs
)
205 HasOption
= staticmethod(HasOption
)
207 class SystemOptionsPtr(SystemOptions
):
208 def __init__(self
, this
):
210 if not hasattr(self
,"thisown"): self
.thisown
= 0
211 self
.__class
__ = SystemOptions
212 _misc
.SystemOptions_swigregister(SystemOptionsPtr
)
214 def SystemOptions_SetOption(*args
, **kwargs
):
215 """SystemOptions_SetOption(wxString name, wxString value)"""
216 return _misc
.SystemOptions_SetOption(*args
, **kwargs
)
218 def SystemOptions_SetOptionInt(*args
, **kwargs
):
219 """SystemOptions_SetOptionInt(wxString name, int value)"""
220 return _misc
.SystemOptions_SetOptionInt(*args
, **kwargs
)
222 def SystemOptions_GetOption(*args
, **kwargs
):
223 """SystemOptions_GetOption(wxString name) -> wxString"""
224 return _misc
.SystemOptions_GetOption(*args
, **kwargs
)
226 def SystemOptions_GetOptionInt(*args
, **kwargs
):
227 """SystemOptions_GetOptionInt(wxString name) -> int"""
228 return _misc
.SystemOptions_GetOptionInt(*args
, **kwargs
)
230 def SystemOptions_HasOption(*args
, **kwargs
):
231 """SystemOptions_HasOption(wxString name) -> bool"""
232 return _misc
.SystemOptions_HasOption(*args
, **kwargs
)
234 #---------------------------------------------------------------------------
237 def NewId(*args
, **kwargs
):
238 """NewId() -> long"""
239 return _misc
.NewId(*args
, **kwargs
)
241 def RegisterId(*args
, **kwargs
):
242 """RegisterId(long id)"""
243 return _misc
.RegisterId(*args
, **kwargs
)
245 def GetCurrentId(*args
, **kwargs
):
246 """GetCurrentId() -> long"""
247 return _misc
.GetCurrentId(*args
, **kwargs
)
249 def Bell(*args
, **kwargs
):
251 return _misc
.Bell(*args
, **kwargs
)
253 def EndBusyCursor(*args
, **kwargs
):
254 """EndBusyCursor()"""
255 return _misc
.EndBusyCursor(*args
, **kwargs
)
257 def GetElapsedTime(*args
, **kwargs
):
258 """GetElapsedTime(bool resetTimer=True) -> long"""
259 return _misc
.GetElapsedTime(*args
, **kwargs
)
261 def GetMousePosition(*args
, **kwargs
):
262 """GetMousePosition() -> (x,y)"""
263 return _misc
.GetMousePosition(*args
, **kwargs
)
265 def IsBusy(*args
, **kwargs
):
266 """IsBusy() -> bool"""
267 return _misc
.IsBusy(*args
, **kwargs
)
269 def Now(*args
, **kwargs
):
270 """Now() -> wxString"""
271 return _misc
.Now(*args
, **kwargs
)
273 def Shell(*args
, **kwargs
):
274 """Shell(wxString command=wxPyEmptyString) -> bool"""
275 return _misc
.Shell(*args
, **kwargs
)
277 def StartTimer(*args
, **kwargs
):
279 return _misc
.StartTimer(*args
, **kwargs
)
281 def GetOsVersion(*args
, **kwargs
):
282 """GetOsVersion() -> (platform, major, minor)"""
283 return _misc
.GetOsVersion(*args
, **kwargs
)
285 def GetOsDescription(*args
, **kwargs
):
286 """GetOsDescription() -> wxString"""
287 return _misc
.GetOsDescription(*args
, **kwargs
)
289 def GetFreeMemory(*args
, **kwargs
):
290 """GetFreeMemory() -> long"""
291 return _misc
.GetFreeMemory(*args
, **kwargs
)
292 SHUTDOWN_POWEROFF
= _misc
.SHUTDOWN_POWEROFF
293 SHUTDOWN_REBOOT
= _misc
.SHUTDOWN_REBOOT
295 def Shutdown(*args
, **kwargs
):
296 """Shutdown(wxShutdownFlags wFlags) -> bool"""
297 return _misc
.Shutdown(*args
, **kwargs
)
299 def Sleep(*args
, **kwargs
):
300 """Sleep(int secs)"""
301 return _misc
.Sleep(*args
, **kwargs
)
303 def Usleep(*args
, **kwargs
):
304 """Usleep(unsigned long milliseconds)"""
305 return _misc
.Usleep(*args
, **kwargs
)
307 def EnableTopLevelWindows(*args
, **kwargs
):
308 """EnableTopLevelWindows(bool enable)"""
309 return _misc
.EnableTopLevelWindows(*args
, **kwargs
)
311 def StripMenuCodes(*args
, **kwargs
):
312 """StripMenuCodes(wxString in) -> wxString"""
313 return _misc
.StripMenuCodes(*args
, **kwargs
)
315 def GetEmailAddress(*args
, **kwargs
):
316 """GetEmailAddress() -> wxString"""
317 return _misc
.GetEmailAddress(*args
, **kwargs
)
319 def GetHostName(*args
, **kwargs
):
320 """GetHostName() -> wxString"""
321 return _misc
.GetHostName(*args
, **kwargs
)
323 def GetFullHostName(*args
, **kwargs
):
324 """GetFullHostName() -> wxString"""
325 return _misc
.GetFullHostName(*args
, **kwargs
)
327 def GetUserId(*args
, **kwargs
):
328 """GetUserId() -> wxString"""
329 return _misc
.GetUserId(*args
, **kwargs
)
331 def GetUserName(*args
, **kwargs
):
332 """GetUserName() -> wxString"""
333 return _misc
.GetUserName(*args
, **kwargs
)
335 def GetHomeDir(*args
, **kwargs
):
336 """GetHomeDir() -> wxString"""
337 return _misc
.GetHomeDir(*args
, **kwargs
)
339 def GetUserHome(*args
, **kwargs
):
340 """GetUserHome(wxString user=wxPyEmptyString) -> wxString"""
341 return _misc
.GetUserHome(*args
, **kwargs
)
343 def GetProcessId(*args
, **kwargs
):
344 """GetProcessId() -> unsigned long"""
345 return _misc
.GetProcessId(*args
, **kwargs
)
347 def Trap(*args
, **kwargs
):
349 return _misc
.Trap(*args
, **kwargs
)
351 def FileSelector(*args
, **kwargs
):
353 FileSelector(wxString message=wxPyFileSelectorPromptStr, wxString default_path=wxPyEmptyString,
354 wxString default_filename=wxPyEmptyString,
355 wxString default_extension=wxPyEmptyString,
356 wxString wildcard=wxPyFileSelectorDefaultWildcardStr,
358 Window parent=None, int x=-1, int y=-1) -> wxString
360 return _misc
.FileSelector(*args
, **kwargs
)
362 def LoadFileSelector(*args
, **kwargs
):
364 LoadFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
365 Window parent=None) -> wxString
367 return _misc
.LoadFileSelector(*args
, **kwargs
)
369 def SaveFileSelector(*args
, **kwargs
):
371 SaveFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
372 Window parent=None) -> wxString
374 return _misc
.SaveFileSelector(*args
, **kwargs
)
376 def DirSelector(*args
, **kwargs
):
378 DirSelector(wxString message=wxPyDirSelectorPromptStr, wxString defaultPath=wxPyEmptyString,
379 long style=DD_DEFAULT_STYLE,
380 Point pos=DefaultPosition, Window parent=None) -> wxString
382 return _misc
.DirSelector(*args
, **kwargs
)
384 def GetTextFromUser(*args
, **kwargs
):
386 GetTextFromUser(wxString message, wxString caption=wxPyEmptyString,
387 wxString default_value=wxPyEmptyString, Window parent=None,
388 int x=-1, int y=-1, bool centre=True) -> wxString
390 return _misc
.GetTextFromUser(*args
, **kwargs
)
392 def GetPasswordFromUser(*args
, **kwargs
):
394 GetPasswordFromUser(wxString message, wxString caption=wxPyEmptyString,
395 wxString default_value=wxPyEmptyString, Window parent=None) -> wxString
397 return _misc
.GetPasswordFromUser(*args
, **kwargs
)
399 def GetSingleChoice(*args
, **kwargs
):
401 GetSingleChoice(wxString message, wxString caption, int choices, wxString choices_array,
402 Window parent=None, int x=-1,
403 int y=-1, bool centre=True, int width=150,
404 int height=200) -> wxString
406 return _misc
.GetSingleChoice(*args
, **kwargs
)
408 def GetSingleChoiceIndex(*args
, **kwargs
):
410 GetSingleChoiceIndex(wxString message, wxString caption, int choices, wxString choices_array,
411 Window parent=None, int x=-1,
412 int y=-1, bool centre=True, int width=150,
413 int height=200) -> int
415 return _misc
.GetSingleChoiceIndex(*args
, **kwargs
)
417 def MessageBox(*args
, **kwargs
):
419 MessageBox(wxString message, wxString caption=wxPyEmptyString,
420 int style=wxOK|wxCENTRE, Window parent=None,
421 int x=-1, int y=-1) -> int
423 return _misc
.MessageBox(*args
, **kwargs
)
425 def GetNumberFromUser(*args
, **kwargs
):
427 GetNumberFromUser(wxString message, wxString prompt, wxString caption,
428 long value, long min=0, long max=100, Window parent=None,
429 Point pos=DefaultPosition) -> long
431 return _misc
.GetNumberFromUser(*args
, **kwargs
)
433 def ColourDisplay(*args
, **kwargs
):
434 """ColourDisplay() -> bool"""
435 return _misc
.ColourDisplay(*args
, **kwargs
)
437 def DisplayDepth(*args
, **kwargs
):
438 """DisplayDepth() -> int"""
439 return _misc
.DisplayDepth(*args
, **kwargs
)
441 def GetDisplayDepth(*args
, **kwargs
):
442 """GetDisplayDepth() -> int"""
443 return _misc
.GetDisplayDepth(*args
, **kwargs
)
445 def DisplaySize(*args
, **kwargs
):
446 """DisplaySize() -> (width, height)"""
447 return _misc
.DisplaySize(*args
, **kwargs
)
449 def GetDisplaySize(*args
, **kwargs
):
450 """GetDisplaySize() -> Size"""
451 return _misc
.GetDisplaySize(*args
, **kwargs
)
453 def DisplaySizeMM(*args
, **kwargs
):
454 """DisplaySizeMM() -> (width, height)"""
455 return _misc
.DisplaySizeMM(*args
, **kwargs
)
457 def GetDisplaySizeMM(*args
, **kwargs
):
458 """GetDisplaySizeMM() -> Size"""
459 return _misc
.GetDisplaySizeMM(*args
, **kwargs
)
461 def ClientDisplayRect(*args
, **kwargs
):
462 """ClientDisplayRect() -> (x, y, width, height)"""
463 return _misc
.ClientDisplayRect(*args
, **kwargs
)
465 def GetClientDisplayRect(*args
, **kwargs
):
466 """GetClientDisplayRect() -> Rect"""
467 return _misc
.GetClientDisplayRect(*args
, **kwargs
)
469 def SetCursor(*args
, **kwargs
):
470 """SetCursor(wxCursor cursor)"""
471 return _misc
.SetCursor(*args
, **kwargs
)
473 def BeginBusyCursor(*args
, **kwargs
):
474 """BeginBusyCursor(wxCursor cursor=wxHOURGLASS_CURSOR)"""
475 return _misc
.BeginBusyCursor(*args
, **kwargs
)
477 def GetActiveWindow(*args
, **kwargs
):
478 """GetActiveWindow() -> Window"""
479 return _misc
.GetActiveWindow(*args
, **kwargs
)
481 def GenericFindWindowAtPoint(*args
, **kwargs
):
482 """GenericFindWindowAtPoint(Point pt) -> Window"""
483 return _misc
.GenericFindWindowAtPoint(*args
, **kwargs
)
485 def FindWindowAtPoint(*args
, **kwargs
):
486 """FindWindowAtPoint(Point pt) -> Window"""
487 return _misc
.FindWindowAtPoint(*args
, **kwargs
)
489 def GetTopLevelParent(*args
, **kwargs
):
490 """GetTopLevelParent(Window win) -> Window"""
491 return _misc
.GetTopLevelParent(*args
, **kwargs
)
493 def WakeUpMainThread(*args
, **kwargs
):
494 """WakeUpMainThread()"""
495 return _misc
.WakeUpMainThread(*args
, **kwargs
)
497 def MutexGuiEnter(*args
, **kwargs
):
498 """MutexGuiEnter()"""
499 return _misc
.MutexGuiEnter(*args
, **kwargs
)
501 def MutexGuiLeave(*args
, **kwargs
):
502 """MutexGuiLeave()"""
503 return _misc
.MutexGuiLeave(*args
, **kwargs
)
504 class MutexGuiLocker(object):
506 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
507 def __init__(self
, *args
, **kwargs
):
508 """__init__() -> MutexGuiLocker"""
509 newobj
= _misc
.new_MutexGuiLocker(*args
, **kwargs
)
510 self
.this
= newobj
.this
513 def __del__(self
, destroy
=_misc
.delete_MutexGuiLocker
):
516 if self
.thisown
: destroy(self
)
520 class MutexGuiLockerPtr(MutexGuiLocker
):
521 def __init__(self
, this
):
523 if not hasattr(self
,"thisown"): self
.thisown
= 0
524 self
.__class
__ = MutexGuiLocker
525 _misc
.MutexGuiLocker_swigregister(MutexGuiLockerPtr
)
528 def Thread_IsMain(*args
, **kwargs
):
529 """Thread_IsMain() -> bool"""
530 return _misc
.Thread_IsMain(*args
, **kwargs
)
531 #---------------------------------------------------------------------------
533 class ToolTip(core
.Object
):
535 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
536 def __init__(self
, *args
, **kwargs
):
537 """__init__(wxString tip) -> ToolTip"""
538 newobj
= _misc
.new_ToolTip(*args
, **kwargs
)
539 self
.this
= newobj
.this
542 def SetTip(*args
, **kwargs
):
543 """SetTip(wxString tip)"""
544 return _misc
.ToolTip_SetTip(*args
, **kwargs
)
546 def GetTip(*args
, **kwargs
):
547 """GetTip() -> wxString"""
548 return _misc
.ToolTip_GetTip(*args
, **kwargs
)
550 def GetWindow(*args
, **kwargs
):
551 """GetWindow() -> Window"""
552 return _misc
.ToolTip_GetWindow(*args
, **kwargs
)
554 def Enable(*args
, **kwargs
):
555 """ToolTip.Enable(bool flag)"""
556 return _misc
.ToolTip_Enable(*args
, **kwargs
)
558 Enable
= staticmethod(Enable
)
559 def SetDelay(*args
, **kwargs
):
560 """ToolTip.SetDelay(long milliseconds)"""
561 return _misc
.ToolTip_SetDelay(*args
, **kwargs
)
563 SetDelay
= staticmethod(SetDelay
)
565 class ToolTipPtr(ToolTip
):
566 def __init__(self
, this
):
568 if not hasattr(self
,"thisown"): self
.thisown
= 0
569 self
.__class
__ = ToolTip
570 _misc
.ToolTip_swigregister(ToolTipPtr
)
572 def ToolTip_Enable(*args
, **kwargs
):
573 """ToolTip_Enable(bool flag)"""
574 return _misc
.ToolTip_Enable(*args
, **kwargs
)
576 def ToolTip_SetDelay(*args
, **kwargs
):
577 """ToolTip_SetDelay(long milliseconds)"""
578 return _misc
.ToolTip_SetDelay(*args
, **kwargs
)
582 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
583 def __init__(self
, *args
, **kwargs
):
584 """__init__(Window window, Size size) -> Caret"""
585 newobj
= _misc
.new_Caret(*args
, **kwargs
)
586 self
.this
= newobj
.this
589 def __del__(self
, destroy
=_misc
.delete_Caret
):
592 if self
.thisown
: destroy(self
)
595 def IsOk(*args
, **kwargs
):
597 return _misc
.Caret_IsOk(*args
, **kwargs
)
599 def IsVisible(*args
, **kwargs
):
600 """IsVisible() -> bool"""
601 return _misc
.Caret_IsVisible(*args
, **kwargs
)
603 def GetPosition(*args
, **kwargs
):
604 """GetPosition() -> Point"""
605 return _misc
.Caret_GetPosition(*args
, **kwargs
)
607 def GetPositionTuple(*args
, **kwargs
):
608 """GetPositionTuple() -> (x,y)"""
609 return _misc
.Caret_GetPositionTuple(*args
, **kwargs
)
611 def GetSize(*args
, **kwargs
):
612 """GetSize() -> Size"""
613 return _misc
.Caret_GetSize(*args
, **kwargs
)
615 def GetSizeTuple(*args
, **kwargs
):
616 """GetSizeTuple() -> (width, height)"""
617 return _misc
.Caret_GetSizeTuple(*args
, **kwargs
)
619 def GetWindow(*args
, **kwargs
):
620 """GetWindow() -> Window"""
621 return _misc
.Caret_GetWindow(*args
, **kwargs
)
623 def MoveXY(*args
, **kwargs
):
624 """MoveXY(int x, int y)"""
625 return _misc
.Caret_MoveXY(*args
, **kwargs
)
627 def Move(*args
, **kwargs
):
629 return _misc
.Caret_Move(*args
, **kwargs
)
631 def SetSizeWH(*args
, **kwargs
):
632 """SetSizeWH(int width, int height)"""
633 return _misc
.Caret_SetSizeWH(*args
, **kwargs
)
635 def SetSize(*args
, **kwargs
):
636 """SetSize(Size size)"""
637 return _misc
.Caret_SetSize(*args
, **kwargs
)
639 def Show(*args
, **kwargs
):
640 """Show(int show=True)"""
641 return _misc
.Caret_Show(*args
, **kwargs
)
643 def Hide(*args
, **kwargs
):
645 return _misc
.Caret_Hide(*args
, **kwargs
)
647 def __nonzero__(self
): return self
.IsOk()
649 class CaretPtr(Caret
):
650 def __init__(self
, this
):
652 if not hasattr(self
,"thisown"): self
.thisown
= 0
653 self
.__class
__ = Caret
654 _misc
.Caret_swigregister(CaretPtr
)
657 def Caret_GetBlinkTime(*args
, **kwargs
):
658 """Caret_GetBlinkTime() -> int"""
659 return _misc
.Caret_GetBlinkTime(*args
, **kwargs
)
661 def Caret_SetBlinkTime(*args
, **kwargs
):
662 """Caret_SetBlinkTime(int milliseconds)"""
663 return _misc
.Caret_SetBlinkTime(*args
, **kwargs
)
664 class BusyCursor(object):
666 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
667 def __init__(self
, *args
, **kwargs
):
668 """__init__(wxCursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
669 newobj
= _misc
.new_BusyCursor(*args
, **kwargs
)
670 self
.this
= newobj
.this
673 def __del__(self
, destroy
=_misc
.delete_BusyCursor
):
676 if self
.thisown
: destroy(self
)
680 class BusyCursorPtr(BusyCursor
):
681 def __init__(self
, this
):
683 if not hasattr(self
,"thisown"): self
.thisown
= 0
684 self
.__class
__ = BusyCursor
685 _misc
.BusyCursor_swigregister(BusyCursorPtr
)
687 class WindowDisabler(object):
689 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
690 def __init__(self
, *args
, **kwargs
):
691 """__init__(Window winToSkip=None) -> WindowDisabler"""
692 newobj
= _misc
.new_WindowDisabler(*args
, **kwargs
)
693 self
.this
= newobj
.this
696 def __del__(self
, destroy
=_misc
.delete_WindowDisabler
):
699 if self
.thisown
: destroy(self
)
703 class WindowDisablerPtr(WindowDisabler
):
704 def __init__(self
, this
):
706 if not hasattr(self
,"thisown"): self
.thisown
= 0
707 self
.__class
__ = WindowDisabler
708 _misc
.WindowDisabler_swigregister(WindowDisablerPtr
)
710 class BusyInfo(core
.Object
):
712 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
713 def __init__(self
, *args
, **kwargs
):
714 """__init__(wxString message) -> BusyInfo"""
715 newobj
= _misc
.new_BusyInfo(*args
, **kwargs
)
716 self
.this
= newobj
.this
719 def __del__(self
, destroy
=_misc
.delete_BusyInfo
):
722 if self
.thisown
: destroy(self
)
726 class BusyInfoPtr(BusyInfo
):
727 def __init__(self
, this
):
729 if not hasattr(self
,"thisown"): self
.thisown
= 0
730 self
.__class
__ = BusyInfo
731 _misc
.BusyInfo_swigregister(BusyInfoPtr
)
733 class StopWatch(object):
735 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
736 def __init__(self
, *args
, **kwargs
):
737 """__init__() -> StopWatch"""
738 newobj
= _misc
.new_StopWatch(*args
, **kwargs
)
739 self
.this
= newobj
.this
742 def Start(*args
, **kwargs
):
743 """Start(long t0=0)"""
744 return _misc
.StopWatch_Start(*args
, **kwargs
)
746 def Pause(*args
, **kwargs
):
748 return _misc
.StopWatch_Pause(*args
, **kwargs
)
750 def Resume(*args
, **kwargs
):
752 return _misc
.StopWatch_Resume(*args
, **kwargs
)
754 def Time(*args
, **kwargs
):
756 return _misc
.StopWatch_Time(*args
, **kwargs
)
759 class StopWatchPtr(StopWatch
):
760 def __init__(self
, this
):
762 if not hasattr(self
,"thisown"): self
.thisown
= 0
763 self
.__class
__ = StopWatch
764 _misc
.StopWatch_swigregister(StopWatchPtr
)
766 class FileHistory(core
.Object
):
768 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
769 def __init__(self
, *args
, **kwargs
):
770 """__init__(int maxFiles=9) -> FileHistory"""
771 newobj
= _misc
.new_FileHistory(*args
, **kwargs
)
772 self
.this
= newobj
.this
775 def __del__(self
, destroy
=_misc
.delete_FileHistory
):
778 if self
.thisown
: destroy(self
)
781 def AddFileToHistory(*args
, **kwargs
):
782 """AddFileToHistory(wxString file)"""
783 return _misc
.FileHistory_AddFileToHistory(*args
, **kwargs
)
785 def RemoveFileFromHistory(*args
, **kwargs
):
786 """RemoveFileFromHistory(int i)"""
787 return _misc
.FileHistory_RemoveFileFromHistory(*args
, **kwargs
)
789 def GetMaxFiles(*args
, **kwargs
):
790 """GetMaxFiles() -> int"""
791 return _misc
.FileHistory_GetMaxFiles(*args
, **kwargs
)
793 def UseMenu(*args
, **kwargs
):
794 """UseMenu(Menu menu)"""
795 return _misc
.FileHistory_UseMenu(*args
, **kwargs
)
797 def RemoveMenu(*args
, **kwargs
):
798 """RemoveMenu(Menu menu)"""
799 return _misc
.FileHistory_RemoveMenu(*args
, **kwargs
)
801 def Load(*args
, **kwargs
):
802 """Load(ConfigBase config)"""
803 return _misc
.FileHistory_Load(*args
, **kwargs
)
805 def Save(*args
, **kwargs
):
806 """Save(ConfigBase config)"""
807 return _misc
.FileHistory_Save(*args
, **kwargs
)
809 def AddFilesToMenu(*args
, **kwargs
):
810 """AddFilesToMenu()"""
811 return _misc
.FileHistory_AddFilesToMenu(*args
, **kwargs
)
813 def AddFilesToThisMenu(*args
, **kwargs
):
814 """AddFilesToThisMenu(Menu menu)"""
815 return _misc
.FileHistory_AddFilesToThisMenu(*args
, **kwargs
)
817 def GetHistoryFile(*args
, **kwargs
):
818 """GetHistoryFile(int i) -> wxString"""
819 return _misc
.FileHistory_GetHistoryFile(*args
, **kwargs
)
821 def GetCount(*args
, **kwargs
):
822 """GetCount() -> int"""
823 return _misc
.FileHistory_GetCount(*args
, **kwargs
)
826 class FileHistoryPtr(FileHistory
):
827 def __init__(self
, this
):
829 if not hasattr(self
,"thisown"): self
.thisown
= 0
830 self
.__class
__ = FileHistory
831 _misc
.FileHistory_swigregister(FileHistoryPtr
)
833 class SingleInstanceChecker(object):
835 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
836 def __init__(self
, *args
, **kwargs
):
837 """__init__(wxString name, wxString path=wxPyEmptyString) -> SingleInstanceChecker"""
838 newobj
= _misc
.new_SingleInstanceChecker(*args
, **kwargs
)
839 self
.this
= newobj
.this
842 def __del__(self
, destroy
=_misc
.delete_SingleInstanceChecker
):
845 if self
.thisown
: destroy(self
)
848 def Create(*args
, **kwargs
):
849 """Create(wxString name, wxString path=wxPyEmptyString) -> bool"""
850 return _misc
.SingleInstanceChecker_Create(*args
, **kwargs
)
852 def IsAnotherRunning(*args
, **kwargs
):
853 """IsAnotherRunning() -> bool"""
854 return _misc
.SingleInstanceChecker_IsAnotherRunning(*args
, **kwargs
)
857 class SingleInstanceCheckerPtr(SingleInstanceChecker
):
858 def __init__(self
, this
):
860 if not hasattr(self
,"thisown"): self
.thisown
= 0
861 self
.__class
__ = SingleInstanceChecker
862 _misc
.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr
)
864 def PreSingleInstanceChecker(*args
, **kwargs
):
865 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
866 val
= _misc
.new_PreSingleInstanceChecker(*args
, **kwargs
)
871 def DrawWindowOnDC(*args
, **kwargs
):
872 """DrawWindowOnDC(Window window, wxDC dc, int method)"""
873 return _misc
.DrawWindowOnDC(*args
, **kwargs
)
874 #---------------------------------------------------------------------------
876 class TipProvider(object):
877 def __init__(self
): raise RuntimeError, "No constructor defined"
879 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
880 def __del__(self
, destroy
=_misc
.delete_TipProvider
):
883 if self
.thisown
: destroy(self
)
886 def GetTip(*args
, **kwargs
):
887 """GetTip() -> wxString"""
888 return _misc
.TipProvider_GetTip(*args
, **kwargs
)
890 def GetCurrentTip(*args
, **kwargs
):
891 """GetCurrentTip() -> size_t"""
892 return _misc
.TipProvider_GetCurrentTip(*args
, **kwargs
)
894 def PreprocessTip(*args
, **kwargs
):
895 """PreprocessTip(wxString tip) -> wxString"""
896 return _misc
.TipProvider_PreprocessTip(*args
, **kwargs
)
899 class TipProviderPtr(TipProvider
):
900 def __init__(self
, this
):
902 if not hasattr(self
,"thisown"): self
.thisown
= 0
903 self
.__class
__ = TipProvider
904 _misc
.TipProvider_swigregister(TipProviderPtr
)
906 class PyTipProvider(TipProvider
):
908 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
909 def __init__(self
, *args
, **kwargs
):
910 """__init__(size_t currentTip) -> PyTipProvider"""
911 newobj
= _misc
.new_PyTipProvider(*args
, **kwargs
)
912 self
.this
= newobj
.this
915 def _setCallbackInfo(*args
, **kwargs
):
916 """_setCallbackInfo(PyObject self, PyObject _class)"""
917 return _misc
.PyTipProvider__setCallbackInfo(*args
, **kwargs
)
920 class PyTipProviderPtr(PyTipProvider
):
921 def __init__(self
, this
):
923 if not hasattr(self
,"thisown"): self
.thisown
= 0
924 self
.__class
__ = PyTipProvider
925 _misc
.PyTipProvider_swigregister(PyTipProviderPtr
)
928 def ShowTip(*args
, **kwargs
):
929 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
930 return _misc
.ShowTip(*args
, **kwargs
)
932 def CreateFileTipProvider(*args
, **kwargs
):
933 """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider"""
934 return _misc
.CreateFileTipProvider(*args
, **kwargs
)
935 #---------------------------------------------------------------------------
937 TIMER_CONTINUOUS
= _misc
.TIMER_CONTINUOUS
938 TIMER_ONE_SHOT
= _misc
.TIMER_ONE_SHOT
939 wxEVT_TIMER
= _misc
.wxEVT_TIMER
940 class Timer(core
.EvtHandler
):
942 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
943 def __init__(self
, *args
, **kwargs
):
944 """__init__(EvtHandler owner=None, int id=-1) -> Timer"""
945 newobj
= _misc
.new_Timer(*args
, **kwargs
)
946 self
.this
= newobj
.this
949 self
._setCallbackInfo
(self
, Timer
)
951 def __del__(self
, destroy
=_misc
.delete_Timer
):
954 if self
.thisown
: destroy(self
)
957 def _setCallbackInfo(*args
, **kwargs
):
958 """_setCallbackInfo(PyObject self, PyObject _class)"""
959 return _misc
.Timer__setCallbackInfo(*args
, **kwargs
)
961 def SetOwner(*args
, **kwargs
):
962 """SetOwner(EvtHandler owner, int id=-1)"""
963 return _misc
.Timer_SetOwner(*args
, **kwargs
)
965 def Start(*args
, **kwargs
):
966 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
967 return _misc
.Timer_Start(*args
, **kwargs
)
969 def Stop(*args
, **kwargs
):
971 return _misc
.Timer_Stop(*args
, **kwargs
)
973 def IsRunning(*args
, **kwargs
):
974 """IsRunning() -> bool"""
975 return _misc
.Timer_IsRunning(*args
, **kwargs
)
977 def GetInterval(*args
, **kwargs
):
978 """GetInterval() -> int"""
979 return _misc
.Timer_GetInterval(*args
, **kwargs
)
981 def IsOneShot(*args
, **kwargs
):
982 """IsOneShot() -> bool"""
983 return _misc
.Timer_IsOneShot(*args
, **kwargs
)
985 def GetId(*args
, **kwargs
):
987 return _misc
.Timer_GetId(*args
, **kwargs
)
990 class TimerPtr(Timer
):
991 def __init__(self
, this
):
993 if not hasattr(self
,"thisown"): self
.thisown
= 0
994 self
.__class
__ = Timer
995 _misc
.Timer_swigregister(TimerPtr
)
997 # For backwards compatibility with 2.4
998 class PyTimer(Timer
):
999 def __init__(self
, notify
):
1000 Timer
.__init
__(self
)
1001 self
.notify
= notify
1008 EVT_TIMER
= wx
.PyEventBinder( wxEVT_TIMER
, 1 )
1011 class TimerEvent(core
.Event
):
1013 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1014 def __init__(self
, *args
, **kwargs
):
1015 """__init__(int timerid=0, int interval=0) -> TimerEvent"""
1016 newobj
= _misc
.new_TimerEvent(*args
, **kwargs
)
1017 self
.this
= newobj
.this
1020 def GetInterval(*args
, **kwargs
):
1021 """GetInterval() -> int"""
1022 return _misc
.TimerEvent_GetInterval(*args
, **kwargs
)
1025 class TimerEventPtr(TimerEvent
):
1026 def __init__(self
, this
):
1028 if not hasattr(self
,"thisown"): self
.thisown
= 0
1029 self
.__class
__ = TimerEvent
1030 _misc
.TimerEvent_swigregister(TimerEventPtr
)
1032 class TimerRunner(object):
1034 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1035 def __init__(self
, *args
):
1037 __init__(wxTimer timer) -> TimerRunner
1038 __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1040 newobj
= _misc
.new_TimerRunner(*args
)
1041 self
.this
= newobj
.this
1044 def __del__(self
, destroy
=_misc
.delete_TimerRunner
):
1047 if self
.thisown
: destroy(self
)
1050 def Start(*args
, **kwargs
):
1051 """Start(int milli, bool oneShot=False)"""
1052 return _misc
.TimerRunner_Start(*args
, **kwargs
)
1055 class TimerRunnerPtr(TimerRunner
):
1056 def __init__(self
, this
):
1058 if not hasattr(self
,"thisown"): self
.thisown
= 0
1059 self
.__class
__ = TimerRunner
1060 _misc
.TimerRunner_swigregister(TimerRunnerPtr
)
1062 #---------------------------------------------------------------------------
1064 LOG_FatalError
= _misc
.LOG_FatalError
1065 LOG_Error
= _misc
.LOG_Error
1066 LOG_Warning
= _misc
.LOG_Warning
1067 LOG_Message
= _misc
.LOG_Message
1068 LOG_Status
= _misc
.LOG_Status
1069 LOG_Info
= _misc
.LOG_Info
1070 LOG_Debug
= _misc
.LOG_Debug
1071 LOG_Trace
= _misc
.LOG_Trace
1072 LOG_Progress
= _misc
.LOG_Progress
1073 LOG_User
= _misc
.LOG_User
1074 LOG_Max
= _misc
.LOG_Max
1075 TRACE_MemAlloc
= _misc
.TRACE_MemAlloc
1076 TRACE_Messages
= _misc
.TRACE_Messages
1077 TRACE_ResAlloc
= _misc
.TRACE_ResAlloc
1078 TRACE_RefCount
= _misc
.TRACE_RefCount
1079 TRACE_OleCalls
= _misc
.TRACE_OleCalls
1080 TraceMemAlloc
= _misc
.TraceMemAlloc
1081 TraceMessages
= _misc
.TraceMessages
1082 TraceResAlloc
= _misc
.TraceResAlloc
1083 TraceRefCount
= _misc
.TraceRefCount
1084 TraceOleCalls
= _misc
.TraceOleCalls
1087 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1088 def __init__(self
, *args
, **kwargs
):
1089 """__init__() -> Log"""
1090 newobj
= _misc
.new_Log(*args
, **kwargs
)
1091 self
.this
= newobj
.this
1094 def IsEnabled(*args
, **kwargs
):
1095 """Log.IsEnabled() -> bool"""
1096 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1098 IsEnabled
= staticmethod(IsEnabled
)
1099 def EnableLogging(*args
, **kwargs
):
1100 """Log.EnableLogging(bool doIt=True) -> bool"""
1101 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1103 EnableLogging
= staticmethod(EnableLogging
)
1104 def OnLog(*args
, **kwargs
):
1105 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1106 return _misc
.Log_OnLog(*args
, **kwargs
)
1108 OnLog
= staticmethod(OnLog
)
1109 def Flush(*args
, **kwargs
):
1111 return _misc
.Log_Flush(*args
, **kwargs
)
1113 def FlushActive(*args
, **kwargs
):
1114 """Log.FlushActive()"""
1115 return _misc
.Log_FlushActive(*args
, **kwargs
)
1117 FlushActive
= staticmethod(FlushActive
)
1118 def GetActiveTarget(*args
, **kwargs
):
1119 """Log.GetActiveTarget() -> Log"""
1120 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1122 GetActiveTarget
= staticmethod(GetActiveTarget
)
1123 def SetActiveTarget(*args
, **kwargs
):
1124 """Log.SetActiveTarget(Log pLogger) -> Log"""
1125 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1127 SetActiveTarget
= staticmethod(SetActiveTarget
)
1128 def Suspend(*args
, **kwargs
):
1130 return _misc
.Log_Suspend(*args
, **kwargs
)
1132 Suspend
= staticmethod(Suspend
)
1133 def Resume(*args
, **kwargs
):
1135 return _misc
.Log_Resume(*args
, **kwargs
)
1137 Resume
= staticmethod(Resume
)
1138 def SetVerbose(*args
, **kwargs
):
1139 """Log.SetVerbose(bool bVerbose=True)"""
1140 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1142 SetVerbose
= staticmethod(SetVerbose
)
1143 def SetLogLevel(*args
, **kwargs
):
1144 """Log.SetLogLevel(wxLogLevel logLevel)"""
1145 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1147 SetLogLevel
= staticmethod(SetLogLevel
)
1148 def DontCreateOnDemand(*args
, **kwargs
):
1149 """Log.DontCreateOnDemand()"""
1150 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1152 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
1153 def SetTraceMask(*args
, **kwargs
):
1154 """Log.SetTraceMask(wxTraceMask ulMask)"""
1155 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1157 SetTraceMask
= staticmethod(SetTraceMask
)
1158 def AddTraceMask(*args
, **kwargs
):
1159 """Log.AddTraceMask(wxString str)"""
1160 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1162 AddTraceMask
= staticmethod(AddTraceMask
)
1163 def RemoveTraceMask(*args
, **kwargs
):
1164 """Log.RemoveTraceMask(wxString str)"""
1165 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1167 RemoveTraceMask
= staticmethod(RemoveTraceMask
)
1168 def ClearTraceMasks(*args
, **kwargs
):
1169 """Log.ClearTraceMasks()"""
1170 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1172 ClearTraceMasks
= staticmethod(ClearTraceMasks
)
1173 def GetTraceMasks(*args
, **kwargs
):
1174 """Log.GetTraceMasks() -> wxArrayString"""
1175 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1177 GetTraceMasks
= staticmethod(GetTraceMasks
)
1178 def SetTimestamp(*args
, **kwargs
):
1179 """Log.SetTimestamp(wxChar ts)"""
1180 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1182 SetTimestamp
= staticmethod(SetTimestamp
)
1183 def GetVerbose(*args
, **kwargs
):
1184 """Log.GetVerbose() -> bool"""
1185 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1187 GetVerbose
= staticmethod(GetVerbose
)
1188 def GetTraceMask(*args
, **kwargs
):
1189 """Log.GetTraceMask() -> wxTraceMask"""
1190 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1192 GetTraceMask
= staticmethod(GetTraceMask
)
1193 def IsAllowedTraceMask(*args
, **kwargs
):
1194 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1195 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1197 IsAllowedTraceMask
= staticmethod(IsAllowedTraceMask
)
1198 def GetLogLevel(*args
, **kwargs
):
1199 """Log.GetLogLevel() -> wxLogLevel"""
1200 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1202 GetLogLevel
= staticmethod(GetLogLevel
)
1203 def GetTimestamp(*args
, **kwargs
):
1204 """Log.GetTimestamp() -> wxChar"""
1205 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1207 GetTimestamp
= staticmethod(GetTimestamp
)
1208 def TimeStamp(*args
, **kwargs
):
1209 """Log.TimeStamp() -> wxString"""
1210 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1212 TimeStamp
= staticmethod(TimeStamp
)
1213 def Destroy(*args
, **kwargs
):
1215 return _misc
.Log_Destroy(*args
, **kwargs
)
1219 def __init__(self
, this
):
1221 if not hasattr(self
,"thisown"): self
.thisown
= 0
1222 self
.__class
__ = Log
1223 _misc
.Log_swigregister(LogPtr
)
1225 def Log_IsEnabled(*args
, **kwargs
):
1226 """Log_IsEnabled() -> bool"""
1227 return _misc
.Log_IsEnabled(*args
, **kwargs
)
1229 def Log_EnableLogging(*args
, **kwargs
):
1230 """Log_EnableLogging(bool doIt=True) -> bool"""
1231 return _misc
.Log_EnableLogging(*args
, **kwargs
)
1233 def Log_OnLog(*args
, **kwargs
):
1234 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1235 return _misc
.Log_OnLog(*args
, **kwargs
)
1237 def Log_FlushActive(*args
, **kwargs
):
1238 """Log_FlushActive()"""
1239 return _misc
.Log_FlushActive(*args
, **kwargs
)
1241 def Log_GetActiveTarget(*args
, **kwargs
):
1242 """Log_GetActiveTarget() -> Log"""
1243 return _misc
.Log_GetActiveTarget(*args
, **kwargs
)
1245 def Log_SetActiveTarget(*args
, **kwargs
):
1246 """Log_SetActiveTarget(Log pLogger) -> Log"""
1247 return _misc
.Log_SetActiveTarget(*args
, **kwargs
)
1249 def Log_Suspend(*args
, **kwargs
):
1251 return _misc
.Log_Suspend(*args
, **kwargs
)
1253 def Log_Resume(*args
, **kwargs
):
1255 return _misc
.Log_Resume(*args
, **kwargs
)
1257 def Log_SetVerbose(*args
, **kwargs
):
1258 """Log_SetVerbose(bool bVerbose=True)"""
1259 return _misc
.Log_SetVerbose(*args
, **kwargs
)
1261 def Log_SetLogLevel(*args
, **kwargs
):
1262 """Log_SetLogLevel(wxLogLevel logLevel)"""
1263 return _misc
.Log_SetLogLevel(*args
, **kwargs
)
1265 def Log_DontCreateOnDemand(*args
, **kwargs
):
1266 """Log_DontCreateOnDemand()"""
1267 return _misc
.Log_DontCreateOnDemand(*args
, **kwargs
)
1269 def Log_SetTraceMask(*args
, **kwargs
):
1270 """Log_SetTraceMask(wxTraceMask ulMask)"""
1271 return _misc
.Log_SetTraceMask(*args
, **kwargs
)
1273 def Log_AddTraceMask(*args
, **kwargs
):
1274 """Log_AddTraceMask(wxString str)"""
1275 return _misc
.Log_AddTraceMask(*args
, **kwargs
)
1277 def Log_RemoveTraceMask(*args
, **kwargs
):
1278 """Log_RemoveTraceMask(wxString str)"""
1279 return _misc
.Log_RemoveTraceMask(*args
, **kwargs
)
1281 def Log_ClearTraceMasks(*args
, **kwargs
):
1282 """Log_ClearTraceMasks()"""
1283 return _misc
.Log_ClearTraceMasks(*args
, **kwargs
)
1285 def Log_GetTraceMasks(*args
, **kwargs
):
1286 """Log_GetTraceMasks() -> wxArrayString"""
1287 return _misc
.Log_GetTraceMasks(*args
, **kwargs
)
1289 def Log_SetTimestamp(*args
, **kwargs
):
1290 """Log_SetTimestamp(wxChar ts)"""
1291 return _misc
.Log_SetTimestamp(*args
, **kwargs
)
1293 def Log_GetVerbose(*args
, **kwargs
):
1294 """Log_GetVerbose() -> bool"""
1295 return _misc
.Log_GetVerbose(*args
, **kwargs
)
1297 def Log_GetTraceMask(*args
, **kwargs
):
1298 """Log_GetTraceMask() -> wxTraceMask"""
1299 return _misc
.Log_GetTraceMask(*args
, **kwargs
)
1301 def Log_IsAllowedTraceMask(*args
, **kwargs
):
1302 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1303 return _misc
.Log_IsAllowedTraceMask(*args
, **kwargs
)
1305 def Log_GetLogLevel(*args
, **kwargs
):
1306 """Log_GetLogLevel() -> wxLogLevel"""
1307 return _misc
.Log_GetLogLevel(*args
, **kwargs
)
1309 def Log_GetTimestamp(*args
, **kwargs
):
1310 """Log_GetTimestamp() -> wxChar"""
1311 return _misc
.Log_GetTimestamp(*args
, **kwargs
)
1313 def Log_TimeStamp(*args
, **kwargs
):
1314 """Log_TimeStamp() -> wxString"""
1315 return _misc
.Log_TimeStamp(*args
, **kwargs
)
1317 class LogStderr(Log
):
1319 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1320 def __init__(self
, *args
, **kwargs
):
1321 """__init__() -> LogStderr"""
1322 newobj
= _misc
.new_LogStderr(*args
, **kwargs
)
1323 self
.this
= newobj
.this
1327 class LogStderrPtr(LogStderr
):
1328 def __init__(self
, this
):
1330 if not hasattr(self
,"thisown"): self
.thisown
= 0
1331 self
.__class
__ = LogStderr
1332 _misc
.LogStderr_swigregister(LogStderrPtr
)
1334 class LogTextCtrl(Log
):
1336 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1337 def __init__(self
, *args
, **kwargs
):
1338 """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1339 newobj
= _misc
.new_LogTextCtrl(*args
, **kwargs
)
1340 self
.this
= newobj
.this
1344 class LogTextCtrlPtr(LogTextCtrl
):
1345 def __init__(self
, this
):
1347 if not hasattr(self
,"thisown"): self
.thisown
= 0
1348 self
.__class
__ = LogTextCtrl
1349 _misc
.LogTextCtrl_swigregister(LogTextCtrlPtr
)
1353 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1354 def __init__(self
, *args
, **kwargs
):
1355 """__init__() -> LogGui"""
1356 newobj
= _misc
.new_LogGui(*args
, **kwargs
)
1357 self
.this
= newobj
.this
1361 class LogGuiPtr(LogGui
):
1362 def __init__(self
, this
):
1364 if not hasattr(self
,"thisown"): self
.thisown
= 0
1365 self
.__class
__ = LogGui
1366 _misc
.LogGui_swigregister(LogGuiPtr
)
1368 class LogWindow(Log
):
1370 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1371 def __init__(self
, *args
, **kwargs
):
1373 __init__(wxFrame pParent, wxString szTitle, bool bShow=True,
1374 bool bPassToOld=True) -> LogWindow
1376 newobj
= _misc
.new_LogWindow(*args
, **kwargs
)
1377 self
.this
= newobj
.this
1380 def Show(*args
, **kwargs
):
1381 """Show(bool bShow=True)"""
1382 return _misc
.LogWindow_Show(*args
, **kwargs
)
1384 def GetFrame(*args
, **kwargs
):
1385 """GetFrame() -> wxFrame"""
1386 return _misc
.LogWindow_GetFrame(*args
, **kwargs
)
1388 def GetOldLog(*args
, **kwargs
):
1389 """GetOldLog() -> Log"""
1390 return _misc
.LogWindow_GetOldLog(*args
, **kwargs
)
1392 def IsPassingMessages(*args
, **kwargs
):
1393 """IsPassingMessages() -> bool"""
1394 return _misc
.LogWindow_IsPassingMessages(*args
, **kwargs
)
1396 def PassMessages(*args
, **kwargs
):
1397 """PassMessages(bool bDoPass)"""
1398 return _misc
.LogWindow_PassMessages(*args
, **kwargs
)
1401 class LogWindowPtr(LogWindow
):
1402 def __init__(self
, this
):
1404 if not hasattr(self
,"thisown"): self
.thisown
= 0
1405 self
.__class
__ = LogWindow
1406 _misc
.LogWindow_swigregister(LogWindowPtr
)
1408 class LogChain(Log
):
1410 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1411 def __init__(self
, *args
, **kwargs
):
1412 """__init__(Log logger) -> LogChain"""
1413 newobj
= _misc
.new_LogChain(*args
, **kwargs
)
1414 self
.this
= newobj
.this
1417 def SetLog(*args
, **kwargs
):
1418 """SetLog(Log logger)"""
1419 return _misc
.LogChain_SetLog(*args
, **kwargs
)
1421 def PassMessages(*args
, **kwargs
):
1422 """PassMessages(bool bDoPass)"""
1423 return _misc
.LogChain_PassMessages(*args
, **kwargs
)
1425 def IsPassingMessages(*args
, **kwargs
):
1426 """IsPassingMessages() -> bool"""
1427 return _misc
.LogChain_IsPassingMessages(*args
, **kwargs
)
1429 def GetOldLog(*args
, **kwargs
):
1430 """GetOldLog() -> Log"""
1431 return _misc
.LogChain_GetOldLog(*args
, **kwargs
)
1434 class LogChainPtr(LogChain
):
1435 def __init__(self
, this
):
1437 if not hasattr(self
,"thisown"): self
.thisown
= 0
1438 self
.__class
__ = LogChain
1439 _misc
.LogChain_swigregister(LogChainPtr
)
1442 def SysErrorCode(*args
, **kwargs
):
1443 """SysErrorCode() -> unsigned long"""
1444 return _misc
.SysErrorCode(*args
, **kwargs
)
1446 def SysErrorMsg(*args
, **kwargs
):
1447 """SysErrorMsg(unsigned long nErrCode=0) -> wxString"""
1448 return _misc
.SysErrorMsg(*args
, **kwargs
)
1450 def LogFatalError(*args
, **kwargs
):
1451 """LogFatalError(wxString msg)"""
1452 return _misc
.LogFatalError(*args
, **kwargs
)
1454 def LogError(*args
, **kwargs
):
1455 """LogError(wxString msg)"""
1456 return _misc
.LogError(*args
, **kwargs
)
1458 def LogWarning(*args
, **kwargs
):
1459 """LogWarning(wxString msg)"""
1460 return _misc
.LogWarning(*args
, **kwargs
)
1462 def LogMessage(*args
, **kwargs
):
1463 """LogMessage(wxString msg)"""
1464 return _misc
.LogMessage(*args
, **kwargs
)
1466 def LogInfo(*args
, **kwargs
):
1467 """LogInfo(wxString msg)"""
1468 return _misc
.LogInfo(*args
, **kwargs
)
1470 def LogDebug(*args
, **kwargs
):
1471 """LogDebug(wxString msg)"""
1472 return _misc
.LogDebug(*args
, **kwargs
)
1474 def LogVerbose(*args
, **kwargs
):
1475 """LogVerbose(wxString msg)"""
1476 return _misc
.LogVerbose(*args
, **kwargs
)
1478 def LogStatus(*args
, **kwargs
):
1479 """LogStatus(wxString msg)"""
1480 return _misc
.LogStatus(*args
, **kwargs
)
1482 def LogStatusFrame(*args
, **kwargs
):
1483 """LogStatusFrame(wxFrame pFrame, wxString msg)"""
1484 return _misc
.LogStatusFrame(*args
, **kwargs
)
1486 def LogSysError(*args
, **kwargs
):
1487 """LogSysError(wxString msg)"""
1488 return _misc
.LogSysError(*args
, **kwargs
)
1490 def LogGeneric(*args
, **kwargs
):
1491 """LogGeneric(unsigned long level, wxString msg)"""
1492 return _misc
.LogGeneric(*args
, **kwargs
)
1494 def SafeShowMessage(*args
, **kwargs
):
1495 """SafeShowMessage(wxString title, wxString text)"""
1496 return _misc
.SafeShowMessage(*args
, **kwargs
)
1497 class LogNull(object):
1499 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1500 def __init__(self
, *args
, **kwargs
):
1501 """__init__() -> LogNull"""
1502 newobj
= _misc
.new_LogNull(*args
, **kwargs
)
1503 self
.this
= newobj
.this
1506 def __del__(self
, destroy
=_misc
.delete_LogNull
):
1509 if self
.thisown
: destroy(self
)
1513 class LogNullPtr(LogNull
):
1514 def __init__(self
, this
):
1516 if not hasattr(self
,"thisown"): self
.thisown
= 0
1517 self
.__class
__ = LogNull
1518 _misc
.LogNull_swigregister(LogNullPtr
)
1520 def LogTrace(*args
):
1522 LogTrace(unsigned long mask, wxString msg)
1523 LogTrace(wxString mask, wxString msg)
1525 return _misc
.LogTrace(*args
)
1529 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1530 def __init__(self
, *args
, **kwargs
):
1531 """__init__() -> PyLog"""
1532 newobj
= _misc
.new_PyLog(*args
, **kwargs
)
1533 self
.this
= newobj
.this
1536 self
._setCallbackInfo
(self
, PyLog
)
1538 def _setCallbackInfo(*args
, **kwargs
):
1539 """_setCallbackInfo(PyObject self, PyObject _class)"""
1540 return _misc
.PyLog__setCallbackInfo(*args
, **kwargs
)
1543 class PyLogPtr(PyLog
):
1544 def __init__(self
, this
):
1546 if not hasattr(self
,"thisown"): self
.thisown
= 0
1547 self
.__class
__ = PyLog
1548 _misc
.PyLog_swigregister(PyLogPtr
)
1550 #---------------------------------------------------------------------------
1552 PROCESS_DEFAULT
= _misc
.PROCESS_DEFAULT
1553 PROCESS_REDIRECT
= _misc
.PROCESS_REDIRECT
1554 KILL_OK
= _misc
.KILL_OK
1555 KILL_BAD_SIGNAL
= _misc
.KILL_BAD_SIGNAL
1556 KILL_ACCESS_DENIED
= _misc
.KILL_ACCESS_DENIED
1557 KILL_NO_PROCESS
= _misc
.KILL_NO_PROCESS
1558 KILL_ERROR
= _misc
.KILL_ERROR
1559 SIGNONE
= _misc
.SIGNONE
1560 SIGHUP
= _misc
.SIGHUP
1561 SIGINT
= _misc
.SIGINT
1562 SIGQUIT
= _misc
.SIGQUIT
1563 SIGILL
= _misc
.SIGILL
1564 SIGTRAP
= _misc
.SIGTRAP
1565 SIGABRT
= _misc
.SIGABRT
1566 SIGIOT
= _misc
.SIGIOT
1567 SIGEMT
= _misc
.SIGEMT
1568 SIGFPE
= _misc
.SIGFPE
1569 SIGKILL
= _misc
.SIGKILL
1570 SIGBUS
= _misc
.SIGBUS
1571 SIGSEGV
= _misc
.SIGSEGV
1572 SIGSYS
= _misc
.SIGSYS
1573 SIGPIPE
= _misc
.SIGPIPE
1574 SIGALRM
= _misc
.SIGALRM
1575 SIGTERM
= _misc
.SIGTERM
1576 class Process(core
.EvtHandler
):
1578 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1579 def Kill(*args
, **kwargs
):
1580 """Process.Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1581 return _misc
.Process_Kill(*args
, **kwargs
)
1583 Kill
= staticmethod(Kill
)
1584 def Exists(*args
, **kwargs
):
1585 """Process.Exists(int pid) -> bool"""
1586 return _misc
.Process_Exists(*args
, **kwargs
)
1588 Exists
= staticmethod(Exists
)
1589 def Open(*args
, **kwargs
):
1590 """Process.Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1591 return _misc
.Process_Open(*args
, **kwargs
)
1593 Open
= staticmethod(Open
)
1594 def __init__(self
, *args
, **kwargs
):
1595 """__init__(EvtHandler parent=None, int id=-1) -> Process"""
1596 newobj
= _misc
.new_Process(*args
, **kwargs
)
1597 self
.this
= newobj
.this
1600 self
._setCallbackInfo
(self
, Process
)
1602 def _setCallbackInfo(*args
, **kwargs
):
1603 """_setCallbackInfo(PyObject self, PyObject _class)"""
1604 return _misc
.Process__setCallbackInfo(*args
, **kwargs
)
1606 def base_OnTerminate(*args
, **kwargs
):
1607 """base_OnTerminate(int pid, int status)"""
1608 return _misc
.Process_base_OnTerminate(*args
, **kwargs
)
1610 def Redirect(*args
, **kwargs
):
1612 return _misc
.Process_Redirect(*args
, **kwargs
)
1614 def IsRedirected(*args
, **kwargs
):
1615 """IsRedirected() -> bool"""
1616 return _misc
.Process_IsRedirected(*args
, **kwargs
)
1618 def Detach(*args
, **kwargs
):
1620 return _misc
.Process_Detach(*args
, **kwargs
)
1622 def GetInputStream(*args
, **kwargs
):
1623 """GetInputStream() -> wxInputStream"""
1624 return _misc
.Process_GetInputStream(*args
, **kwargs
)
1626 def GetErrorStream(*args
, **kwargs
):
1627 """GetErrorStream() -> wxInputStream"""
1628 return _misc
.Process_GetErrorStream(*args
, **kwargs
)
1630 def GetOutputStream(*args
, **kwargs
):
1631 """GetOutputStream() -> OutputStream"""
1632 return _misc
.Process_GetOutputStream(*args
, **kwargs
)
1634 def CloseOutput(*args
, **kwargs
):
1636 return _misc
.Process_CloseOutput(*args
, **kwargs
)
1638 def IsInputOpened(*args
, **kwargs
):
1639 """IsInputOpened() -> bool"""
1640 return _misc
.Process_IsInputOpened(*args
, **kwargs
)
1642 def IsInputAvailable(*args
, **kwargs
):
1643 """IsInputAvailable() -> bool"""
1644 return _misc
.Process_IsInputAvailable(*args
, **kwargs
)
1646 def IsErrorAvailable(*args
, **kwargs
):
1647 """IsErrorAvailable() -> bool"""
1648 return _misc
.Process_IsErrorAvailable(*args
, **kwargs
)
1651 class ProcessPtr(Process
):
1652 def __init__(self
, this
):
1654 if not hasattr(self
,"thisown"): self
.thisown
= 0
1655 self
.__class
__ = Process
1656 _misc
.Process_swigregister(ProcessPtr
)
1658 def Process_Kill(*args
, **kwargs
):
1659 """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1660 return _misc
.Process_Kill(*args
, **kwargs
)
1662 def Process_Exists(*args
, **kwargs
):
1663 """Process_Exists(int pid) -> bool"""
1664 return _misc
.Process_Exists(*args
, **kwargs
)
1666 def Process_Open(*args
, **kwargs
):
1667 """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1668 return _misc
.Process_Open(*args
, **kwargs
)
1670 class ProcessEvent(core
.Event
):
1672 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1673 def __init__(self
, *args
, **kwargs
):
1674 """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1675 newobj
= _misc
.new_ProcessEvent(*args
, **kwargs
)
1676 self
.this
= newobj
.this
1679 def GetPid(*args
, **kwargs
):
1680 """GetPid() -> int"""
1681 return _misc
.ProcessEvent_GetPid(*args
, **kwargs
)
1683 def GetExitCode(*args
, **kwargs
):
1684 """GetExitCode() -> int"""
1685 return _misc
.ProcessEvent_GetExitCode(*args
, **kwargs
)
1687 m_pid
= property(_misc
.ProcessEvent_m_pid_get
, _misc
.ProcessEvent_m_pid_set
)
1688 m_exitcode
= property(_misc
.ProcessEvent_m_exitcode_get
, _misc
.ProcessEvent_m_exitcode_set
)
1690 class ProcessEventPtr(ProcessEvent
):
1691 def __init__(self
, this
):
1693 if not hasattr(self
,"thisown"): self
.thisown
= 0
1694 self
.__class
__ = ProcessEvent
1695 _misc
.ProcessEvent_swigregister(ProcessEventPtr
)
1697 wxEVT_END_PROCESS
= _misc
.wxEVT_END_PROCESS
1698 EVT_END_PROCESS
= wx
.PyEventBinder( wxEVT_END_PROCESS
, 1 )
1700 EXEC_ASYNC
= _misc
.EXEC_ASYNC
1701 EXEC_SYNC
= _misc
.EXEC_SYNC
1702 EXEC_NOHIDE
= _misc
.EXEC_NOHIDE
1703 EXEC_MAKE_GROUP_LEADER
= _misc
.EXEC_MAKE_GROUP_LEADER
1705 def Execute(*args
, **kwargs
):
1706 """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1707 return _misc
.Execute(*args
, **kwargs
)
1708 #---------------------------------------------------------------------------
1710 JOYSTICK1
= _misc
.JOYSTICK1
1711 JOYSTICK2
= _misc
.JOYSTICK2
1712 JOY_BUTTON_ANY
= _misc
.JOY_BUTTON_ANY
1713 JOY_BUTTON1
= _misc
.JOY_BUTTON1
1714 JOY_BUTTON2
= _misc
.JOY_BUTTON2
1715 JOY_BUTTON3
= _misc
.JOY_BUTTON3
1716 JOY_BUTTON4
= _misc
.JOY_BUTTON4
1717 class Joystick(object):
1719 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1720 def __init__(self
, *args
, **kwargs
):
1721 """__init__(int joystick=JOYSTICK1) -> Joystick"""
1722 newobj
= _misc
.new_Joystick(*args
, **kwargs
)
1723 self
.this
= newobj
.this
1726 def __del__(self
, destroy
=_misc
.delete_Joystick
):
1729 if self
.thisown
: destroy(self
)
1732 def GetPosition(*args
, **kwargs
):
1733 """GetPosition() -> Point"""
1734 return _misc
.Joystick_GetPosition(*args
, **kwargs
)
1736 def GetZPosition(*args
, **kwargs
):
1737 """GetZPosition() -> int"""
1738 return _misc
.Joystick_GetZPosition(*args
, **kwargs
)
1740 def GetButtonState(*args
, **kwargs
):
1741 """GetButtonState() -> int"""
1742 return _misc
.Joystick_GetButtonState(*args
, **kwargs
)
1744 def GetPOVPosition(*args
, **kwargs
):
1745 """GetPOVPosition() -> int"""
1746 return _misc
.Joystick_GetPOVPosition(*args
, **kwargs
)
1748 def GetPOVCTSPosition(*args
, **kwargs
):
1749 """GetPOVCTSPosition() -> int"""
1750 return _misc
.Joystick_GetPOVCTSPosition(*args
, **kwargs
)
1752 def GetRudderPosition(*args
, **kwargs
):
1753 """GetRudderPosition() -> int"""
1754 return _misc
.Joystick_GetRudderPosition(*args
, **kwargs
)
1756 def GetUPosition(*args
, **kwargs
):
1757 """GetUPosition() -> int"""
1758 return _misc
.Joystick_GetUPosition(*args
, **kwargs
)
1760 def GetVPosition(*args
, **kwargs
):
1761 """GetVPosition() -> int"""
1762 return _misc
.Joystick_GetVPosition(*args
, **kwargs
)
1764 def GetMovementThreshold(*args
, **kwargs
):
1765 """GetMovementThreshold() -> int"""
1766 return _misc
.Joystick_GetMovementThreshold(*args
, **kwargs
)
1768 def SetMovementThreshold(*args
, **kwargs
):
1769 """SetMovementThreshold(int threshold)"""
1770 return _misc
.Joystick_SetMovementThreshold(*args
, **kwargs
)
1772 def IsOk(*args
, **kwargs
):
1773 """IsOk(void ??) -> bool"""
1774 return _misc
.Joystick_IsOk(*args
, **kwargs
)
1776 def GetNumberJoysticks(*args
, **kwargs
):
1777 """GetNumberJoysticks() -> int"""
1778 return _misc
.Joystick_GetNumberJoysticks(*args
, **kwargs
)
1780 def GetManufacturerId(*args
, **kwargs
):
1781 """GetManufacturerId() -> int"""
1782 return _misc
.Joystick_GetManufacturerId(*args
, **kwargs
)
1784 def GetProductId(*args
, **kwargs
):
1785 """GetProductId() -> int"""
1786 return _misc
.Joystick_GetProductId(*args
, **kwargs
)
1788 def GetProductName(*args
, **kwargs
):
1789 """GetProductName() -> wxString"""
1790 return _misc
.Joystick_GetProductName(*args
, **kwargs
)
1792 def GetXMin(*args
, **kwargs
):
1793 """GetXMin() -> int"""
1794 return _misc
.Joystick_GetXMin(*args
, **kwargs
)
1796 def GetYMin(*args
, **kwargs
):
1797 """GetYMin() -> int"""
1798 return _misc
.Joystick_GetYMin(*args
, **kwargs
)
1800 def GetZMin(*args
, **kwargs
):
1801 """GetZMin() -> int"""
1802 return _misc
.Joystick_GetZMin(*args
, **kwargs
)
1804 def GetXMax(*args
, **kwargs
):
1805 """GetXMax() -> int"""
1806 return _misc
.Joystick_GetXMax(*args
, **kwargs
)
1808 def GetYMax(*args
, **kwargs
):
1809 """GetYMax() -> int"""
1810 return _misc
.Joystick_GetYMax(*args
, **kwargs
)
1812 def GetZMax(*args
, **kwargs
):
1813 """GetZMax() -> int"""
1814 return _misc
.Joystick_GetZMax(*args
, **kwargs
)
1816 def GetNumberButtons(*args
, **kwargs
):
1817 """GetNumberButtons() -> int"""
1818 return _misc
.Joystick_GetNumberButtons(*args
, **kwargs
)
1820 def GetNumberAxes(*args
, **kwargs
):
1821 """GetNumberAxes() -> int"""
1822 return _misc
.Joystick_GetNumberAxes(*args
, **kwargs
)
1824 def GetMaxButtons(*args
, **kwargs
):
1825 """GetMaxButtons() -> int"""
1826 return _misc
.Joystick_GetMaxButtons(*args
, **kwargs
)
1828 def GetMaxAxes(*args
, **kwargs
):
1829 """GetMaxAxes() -> int"""
1830 return _misc
.Joystick_GetMaxAxes(*args
, **kwargs
)
1832 def GetPollingMin(*args
, **kwargs
):
1833 """GetPollingMin() -> int"""
1834 return _misc
.Joystick_GetPollingMin(*args
, **kwargs
)
1836 def GetPollingMax(*args
, **kwargs
):
1837 """GetPollingMax() -> int"""
1838 return _misc
.Joystick_GetPollingMax(*args
, **kwargs
)
1840 def GetRudderMin(*args
, **kwargs
):
1841 """GetRudderMin() -> int"""
1842 return _misc
.Joystick_GetRudderMin(*args
, **kwargs
)
1844 def GetRudderMax(*args
, **kwargs
):
1845 """GetRudderMax() -> int"""
1846 return _misc
.Joystick_GetRudderMax(*args
, **kwargs
)
1848 def GetUMin(*args
, **kwargs
):
1849 """GetUMin() -> int"""
1850 return _misc
.Joystick_GetUMin(*args
, **kwargs
)
1852 def GetUMax(*args
, **kwargs
):
1853 """GetUMax() -> int"""
1854 return _misc
.Joystick_GetUMax(*args
, **kwargs
)
1856 def GetVMin(*args
, **kwargs
):
1857 """GetVMin() -> int"""
1858 return _misc
.Joystick_GetVMin(*args
, **kwargs
)
1860 def GetVMax(*args
, **kwargs
):
1861 """GetVMax() -> int"""
1862 return _misc
.Joystick_GetVMax(*args
, **kwargs
)
1864 def HasRudder(*args
, **kwargs
):
1865 """HasRudder() -> bool"""
1866 return _misc
.Joystick_HasRudder(*args
, **kwargs
)
1868 def HasZ(*args
, **kwargs
):
1869 """HasZ() -> bool"""
1870 return _misc
.Joystick_HasZ(*args
, **kwargs
)
1872 def HasU(*args
, **kwargs
):
1873 """HasU() -> bool"""
1874 return _misc
.Joystick_HasU(*args
, **kwargs
)
1876 def HasV(*args
, **kwargs
):
1877 """HasV() -> bool"""
1878 return _misc
.Joystick_HasV(*args
, **kwargs
)
1880 def HasPOV(*args
, **kwargs
):
1881 """HasPOV() -> bool"""
1882 return _misc
.Joystick_HasPOV(*args
, **kwargs
)
1884 def HasPOV4Dir(*args
, **kwargs
):
1885 """HasPOV4Dir() -> bool"""
1886 return _misc
.Joystick_HasPOV4Dir(*args
, **kwargs
)
1888 def HasPOVCTS(*args
, **kwargs
):
1889 """HasPOVCTS() -> bool"""
1890 return _misc
.Joystick_HasPOVCTS(*args
, **kwargs
)
1892 def SetCapture(*args
, **kwargs
):
1893 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1894 return _misc
.Joystick_SetCapture(*args
, **kwargs
)
1896 def ReleaseCapture(*args
, **kwargs
):
1897 """ReleaseCapture() -> bool"""
1898 return _misc
.Joystick_ReleaseCapture(*args
, **kwargs
)
1900 def __nonzero__(self
): return self
.IsOk()
1902 class JoystickPtr(Joystick
):
1903 def __init__(self
, this
):
1905 if not hasattr(self
,"thisown"): self
.thisown
= 0
1906 self
.__class
__ = Joystick
1907 _misc
.Joystick_swigregister(JoystickPtr
)
1909 wxEVT_JOY_BUTTON_DOWN
= _misc
.wxEVT_JOY_BUTTON_DOWN
1910 wxEVT_JOY_BUTTON_UP
= _misc
.wxEVT_JOY_BUTTON_UP
1911 wxEVT_JOY_MOVE
= _misc
.wxEVT_JOY_MOVE
1912 wxEVT_JOY_ZMOVE
= _misc
.wxEVT_JOY_ZMOVE
1913 class JoystickEvent(core
.Event
):
1915 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1916 m_pos
= property(_misc
.JoystickEvent_m_pos_get
, _misc
.JoystickEvent_m_pos_set
)
1917 m_zPosition
= property(_misc
.JoystickEvent_m_zPosition_get
, _misc
.JoystickEvent_m_zPosition_set
)
1918 m_buttonChange
= property(_misc
.JoystickEvent_m_buttonChange_get
, _misc
.JoystickEvent_m_buttonChange_set
)
1919 m_buttonState
= property(_misc
.JoystickEvent_m_buttonState_get
, _misc
.JoystickEvent_m_buttonState_set
)
1920 m_joyStick
= property(_misc
.JoystickEvent_m_joyStick_get
, _misc
.JoystickEvent_m_joyStick_set
)
1921 def __init__(self
, *args
, **kwargs
):
1923 __init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1924 int change=0) -> JoystickEvent
1926 newobj
= _misc
.new_JoystickEvent(*args
, **kwargs
)
1927 self
.this
= newobj
.this
1930 def GetPosition(*args
, **kwargs
):
1931 """GetPosition() -> Point"""
1932 return _misc
.JoystickEvent_GetPosition(*args
, **kwargs
)
1934 def GetZPosition(*args
, **kwargs
):
1935 """GetZPosition() -> int"""
1936 return _misc
.JoystickEvent_GetZPosition(*args
, **kwargs
)
1938 def GetButtonState(*args
, **kwargs
):
1939 """GetButtonState() -> int"""
1940 return _misc
.JoystickEvent_GetButtonState(*args
, **kwargs
)
1942 def GetButtonChange(*args
, **kwargs
):
1943 """GetButtonChange() -> int"""
1944 return _misc
.JoystickEvent_GetButtonChange(*args
, **kwargs
)
1946 def GetJoystick(*args
, **kwargs
):
1947 """GetJoystick() -> int"""
1948 return _misc
.JoystickEvent_GetJoystick(*args
, **kwargs
)
1950 def SetJoystick(*args
, **kwargs
):
1951 """SetJoystick(int stick)"""
1952 return _misc
.JoystickEvent_SetJoystick(*args
, **kwargs
)
1954 def SetButtonState(*args
, **kwargs
):
1955 """SetButtonState(int state)"""
1956 return _misc
.JoystickEvent_SetButtonState(*args
, **kwargs
)
1958 def SetButtonChange(*args
, **kwargs
):
1959 """SetButtonChange(int change)"""
1960 return _misc
.JoystickEvent_SetButtonChange(*args
, **kwargs
)
1962 def SetPosition(*args
, **kwargs
):
1963 """SetPosition(Point pos)"""
1964 return _misc
.JoystickEvent_SetPosition(*args
, **kwargs
)
1966 def SetZPosition(*args
, **kwargs
):
1967 """SetZPosition(int zPos)"""
1968 return _misc
.JoystickEvent_SetZPosition(*args
, **kwargs
)
1970 def IsButton(*args
, **kwargs
):
1971 """IsButton() -> bool"""
1972 return _misc
.JoystickEvent_IsButton(*args
, **kwargs
)
1974 def IsMove(*args
, **kwargs
):
1975 """IsMove() -> bool"""
1976 return _misc
.JoystickEvent_IsMove(*args
, **kwargs
)
1978 def IsZMove(*args
, **kwargs
):
1979 """IsZMove() -> bool"""
1980 return _misc
.JoystickEvent_IsZMove(*args
, **kwargs
)
1982 def ButtonDown(*args
, **kwargs
):
1983 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1984 return _misc
.JoystickEvent_ButtonDown(*args
, **kwargs
)
1986 def ButtonUp(*args
, **kwargs
):
1987 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1988 return _misc
.JoystickEvent_ButtonUp(*args
, **kwargs
)
1990 def ButtonIsDown(*args
, **kwargs
):
1991 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1992 return _misc
.JoystickEvent_ButtonIsDown(*args
, **kwargs
)
1995 class JoystickEventPtr(JoystickEvent
):
1996 def __init__(self
, this
):
1998 if not hasattr(self
,"thisown"): self
.thisown
= 0
1999 self
.__class
__ = JoystickEvent
2000 _misc
.JoystickEvent_swigregister(JoystickEventPtr
)
2002 EVT_JOY_BUTTON_DOWN
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_DOWN
)
2003 EVT_JOY_BUTTON_UP
= wx
.PyEventBinder( wxEVT_JOY_BUTTON_UP
)
2004 EVT_JOY_MOVE
= wx
.PyEventBinder( wxEVT_JOY_MOVE
)
2005 EVT_JOY_ZMOVE
= wx
.PyEventBinder( wxEVT_JOY_ZMOVE
)
2007 EVT_JOYSTICK_EVENTS
= wx
.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN
,
2008 wxEVT_JOY_BUTTON_UP
,
2014 #---------------------------------------------------------------------------
2018 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2019 def __init__(self
, *args
, **kwargs
):
2020 """__init__(wxString fileName, bool isResource=False) -> Wave"""
2021 newobj
= _misc
.new_Wave(*args
, **kwargs
)
2022 self
.this
= newobj
.this
2025 def __del__(self
, destroy
=_misc
.delete_Wave
):
2028 if self
.thisown
: destroy(self
)
2031 def IsOk(*args
, **kwargs
):
2032 """IsOk() -> bool"""
2033 return _misc
.Wave_IsOk(*args
, **kwargs
)
2035 def Play(*args
, **kwargs
):
2036 """Play(bool async=True, bool looped=False) -> bool"""
2037 return _misc
.Wave_Play(*args
, **kwargs
)
2039 def __nonzero__(self
): return self
.IsOk()
2041 class WavePtr(Wave
):
2042 def __init__(self
, this
):
2044 if not hasattr(self
,"thisown"): self
.thisown
= 0
2045 self
.__class
__ = Wave
2046 _misc
.Wave_swigregister(WavePtr
)
2048 def WaveData(*args
, **kwargs
):
2049 """WaveData(wxString data) -> Wave"""
2050 val
= _misc
.new_WaveData(*args
, **kwargs
)
2054 #---------------------------------------------------------------------------
2056 MAILCAP_STANDARD
= _misc
.MAILCAP_STANDARD
2057 MAILCAP_NETSCAPE
= _misc
.MAILCAP_NETSCAPE
2058 MAILCAP_KDE
= _misc
.MAILCAP_KDE
2059 MAILCAP_GNOME
= _misc
.MAILCAP_GNOME
2060 MAILCAP_ALL
= _misc
.MAILCAP_ALL
2061 class FileTypeInfo(object):
2063 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2064 def __init__(self
, *args
, **kwargs
):
2066 __init__(wxString mimeType, wxString openCmd, wxString printCmd,
2067 wxString desc) -> FileTypeInfo
2069 newobj
= _misc
.new_FileTypeInfo(*args
, **kwargs
)
2070 self
.this
= newobj
.this
2073 def IsValid(*args
, **kwargs
):
2074 """IsValid() -> bool"""
2075 return _misc
.FileTypeInfo_IsValid(*args
, **kwargs
)
2077 def SetIcon(*args
, **kwargs
):
2078 """SetIcon(wxString iconFile, int iconIndex=0)"""
2079 return _misc
.FileTypeInfo_SetIcon(*args
, **kwargs
)
2081 def SetShortDesc(*args
, **kwargs
):
2082 """SetShortDesc(wxString shortDesc)"""
2083 return _misc
.FileTypeInfo_SetShortDesc(*args
, **kwargs
)
2085 def GetMimeType(*args
, **kwargs
):
2086 """GetMimeType() -> wxString"""
2087 return _misc
.FileTypeInfo_GetMimeType(*args
, **kwargs
)
2089 def GetOpenCommand(*args
, **kwargs
):
2090 """GetOpenCommand() -> wxString"""
2091 return _misc
.FileTypeInfo_GetOpenCommand(*args
, **kwargs
)
2093 def GetPrintCommand(*args
, **kwargs
):
2094 """GetPrintCommand() -> wxString"""
2095 return _misc
.FileTypeInfo_GetPrintCommand(*args
, **kwargs
)
2097 def GetShortDesc(*args
, **kwargs
):
2098 """GetShortDesc() -> wxString"""
2099 return _misc
.FileTypeInfo_GetShortDesc(*args
, **kwargs
)
2101 def GetDescription(*args
, **kwargs
):
2102 """GetDescription() -> wxString"""
2103 return _misc
.FileTypeInfo_GetDescription(*args
, **kwargs
)
2105 def GetExtensions(*args
, **kwargs
):
2106 """GetExtensions() -> wxArrayString"""
2107 return _misc
.FileTypeInfo_GetExtensions(*args
, **kwargs
)
2109 def GetExtensionsCount(*args
, **kwargs
):
2110 """GetExtensionsCount() -> int"""
2111 return _misc
.FileTypeInfo_GetExtensionsCount(*args
, **kwargs
)
2113 def GetIconFile(*args
, **kwargs
):
2114 """GetIconFile() -> wxString"""
2115 return _misc
.FileTypeInfo_GetIconFile(*args
, **kwargs
)
2117 def GetIconIndex(*args
, **kwargs
):
2118 """GetIconIndex() -> int"""
2119 return _misc
.FileTypeInfo_GetIconIndex(*args
, **kwargs
)
2122 class FileTypeInfoPtr(FileTypeInfo
):
2123 def __init__(self
, this
):
2125 if not hasattr(self
,"thisown"): self
.thisown
= 0
2126 self
.__class
__ = FileTypeInfo
2127 _misc
.FileTypeInfo_swigregister(FileTypeInfoPtr
)
2129 def FileTypeInfoSequence(*args
, **kwargs
):
2130 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2131 val
= _misc
.new_FileTypeInfoSequence(*args
, **kwargs
)
2135 def NullFileTypeInfo(*args
, **kwargs
):
2136 """NullFileTypeInfo() -> FileTypeInfo"""
2137 val
= _misc
.new_NullFileTypeInfo(*args
, **kwargs
)
2141 class FileType(object):
2143 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2144 def __init__(self
, *args
, **kwargs
):
2145 """__init__(FileTypeInfo ftInfo) -> FileType"""
2146 newobj
= _misc
.new_FileType(*args
, **kwargs
)
2147 self
.this
= newobj
.this
2150 def __del__(self
, destroy
=_misc
.delete_FileType
):
2153 if self
.thisown
: destroy(self
)
2156 def GetMimeType(*args
, **kwargs
):
2157 """GetMimeType() -> PyObject"""
2158 return _misc
.FileType_GetMimeType(*args
, **kwargs
)
2160 def GetMimeTypes(*args
, **kwargs
):
2161 """GetMimeTypes() -> PyObject"""
2162 return _misc
.FileType_GetMimeTypes(*args
, **kwargs
)
2164 def GetExtensions(*args
, **kwargs
):
2165 """GetExtensions() -> PyObject"""
2166 return _misc
.FileType_GetExtensions(*args
, **kwargs
)
2168 def GetIcon(*args
, **kwargs
):
2169 """GetIcon() -> wxIcon"""
2170 return _misc
.FileType_GetIcon(*args
, **kwargs
)
2172 def GetIconInfo(*args
, **kwargs
):
2173 """GetIconInfo() -> PyObject"""
2174 return _misc
.FileType_GetIconInfo(*args
, **kwargs
)
2176 def GetDescription(*args
, **kwargs
):
2177 """GetDescription() -> PyObject"""
2178 return _misc
.FileType_GetDescription(*args
, **kwargs
)
2180 def GetOpenCommand(*args
, **kwargs
):
2181 """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2182 return _misc
.FileType_GetOpenCommand(*args
, **kwargs
)
2184 def GetPrintCommand(*args
, **kwargs
):
2185 """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2186 return _misc
.FileType_GetPrintCommand(*args
, **kwargs
)
2188 def GetAllCommands(*args
, **kwargs
):
2189 """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2190 return _misc
.FileType_GetAllCommands(*args
, **kwargs
)
2192 def SetCommand(*args
, **kwargs
):
2193 """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool"""
2194 return _misc
.FileType_SetCommand(*args
, **kwargs
)
2196 def SetDefaultIcon(*args
, **kwargs
):
2197 """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool"""
2198 return _misc
.FileType_SetDefaultIcon(*args
, **kwargs
)
2200 def Unassociate(*args
, **kwargs
):
2201 """Unassociate() -> bool"""
2202 return _misc
.FileType_Unassociate(*args
, **kwargs
)
2204 def ExpandCommand(*args
, **kwargs
):
2205 """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2206 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2208 ExpandCommand
= staticmethod(ExpandCommand
)
2210 class FileTypePtr(FileType
):
2211 def __init__(self
, this
):
2213 if not hasattr(self
,"thisown"): self
.thisown
= 0
2214 self
.__class
__ = FileType
2215 _misc
.FileType_swigregister(FileTypePtr
)
2217 def FileType_ExpandCommand(*args
, **kwargs
):
2218 """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2219 return _misc
.FileType_ExpandCommand(*args
, **kwargs
)
2221 class MimeTypesManager(object):
2223 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2224 def IsOfType(*args
, **kwargs
):
2225 """MimeTypesManager.IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2226 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2228 IsOfType
= staticmethod(IsOfType
)
2229 def __init__(self
, *args
, **kwargs
):
2230 """__init__() -> MimeTypesManager"""
2231 newobj
= _misc
.new_MimeTypesManager(*args
, **kwargs
)
2232 self
.this
= newobj
.this
2235 def Initialize(*args
, **kwargs
):
2236 """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)"""
2237 return _misc
.MimeTypesManager_Initialize(*args
, **kwargs
)
2239 def ClearData(*args
, **kwargs
):
2241 return _misc
.MimeTypesManager_ClearData(*args
, **kwargs
)
2243 def GetFileTypeFromExtension(*args
, **kwargs
):
2244 """GetFileTypeFromExtension(wxString ext) -> FileType"""
2245 return _misc
.MimeTypesManager_GetFileTypeFromExtension(*args
, **kwargs
)
2247 def GetFileTypeFromMimeType(*args
, **kwargs
):
2248 """GetFileTypeFromMimeType(wxString mimeType) -> FileType"""
2249 return _misc
.MimeTypesManager_GetFileTypeFromMimeType(*args
, **kwargs
)
2251 def ReadMailcap(*args
, **kwargs
):
2252 """ReadMailcap(wxString filename, bool fallback=False) -> bool"""
2253 return _misc
.MimeTypesManager_ReadMailcap(*args
, **kwargs
)
2255 def ReadMimeTypes(*args
, **kwargs
):
2256 """ReadMimeTypes(wxString filename) -> bool"""
2257 return _misc
.MimeTypesManager_ReadMimeTypes(*args
, **kwargs
)
2259 def EnumAllFileTypes(*args
, **kwargs
):
2260 """EnumAllFileTypes() -> PyObject"""
2261 return _misc
.MimeTypesManager_EnumAllFileTypes(*args
, **kwargs
)
2263 def AddFallback(*args
, **kwargs
):
2264 """AddFallback(FileTypeInfo ft)"""
2265 return _misc
.MimeTypesManager_AddFallback(*args
, **kwargs
)
2267 def Associate(*args
, **kwargs
):
2268 """Associate(FileTypeInfo ftInfo) -> FileType"""
2269 return _misc
.MimeTypesManager_Associate(*args
, **kwargs
)
2271 def Unassociate(*args
, **kwargs
):
2272 """Unassociate(FileType ft) -> bool"""
2273 return _misc
.MimeTypesManager_Unassociate(*args
, **kwargs
)
2275 def __del__(self
, destroy
=_misc
.delete_MimeTypesManager
):
2278 if self
.thisown
: destroy(self
)
2282 class MimeTypesManagerPtr(MimeTypesManager
):
2283 def __init__(self
, this
):
2285 if not hasattr(self
,"thisown"): self
.thisown
= 0
2286 self
.__class
__ = MimeTypesManager
2287 _misc
.MimeTypesManager_swigregister(MimeTypesManagerPtr
)
2289 TheMimeTypesManager
= cvar
.TheMimeTypesManager
2291 def MimeTypesManager_IsOfType(*args
, **kwargs
):
2292 """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2293 return _misc
.MimeTypesManager_IsOfType(*args
, **kwargs
)
2295 #---------------------------------------------------------------------------
2297 class ArtProvider(object):
2299 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2300 def __init__(self
, *args
, **kwargs
):
2301 """__init__() -> ArtProvider"""
2302 newobj
= _misc
.new_ArtProvider(*args
, **kwargs
)
2303 self
.this
= newobj
.this
2306 self
._setCallbackInfo
(self
, ArtProvider
)
2308 def _setCallbackInfo(*args
, **kwargs
):
2309 """_setCallbackInfo(PyObject self, PyObject _class)"""
2310 return _misc
.ArtProvider__setCallbackInfo(*args
, **kwargs
)
2312 def PushProvider(*args
, **kwargs
):
2314 ArtProvider.PushProvider(ArtProvider provider)
2316 Add new provider to the top of providers stack.
2318 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2320 PushProvider
= staticmethod(PushProvider
)
2321 def PopProvider(*args
, **kwargs
):
2323 ArtProvider.PopProvider() -> bool
2325 Remove latest added provider and delete it.
2327 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2329 PopProvider
= staticmethod(PopProvider
)
2330 def RemoveProvider(*args
, **kwargs
):
2332 ArtProvider.RemoveProvider(ArtProvider provider) -> bool
2334 Remove provider. The provider must have been added previously!
2335 The provider is _not_ deleted.
2337 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2339 RemoveProvider
= staticmethod(RemoveProvider
)
2340 def GetBitmap(*args
, **kwargs
):
2342 ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2344 Query the providers for bitmap with given ID and return it. Return
2345 wx.NullBitmap if no provider provides it.
2347 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2349 GetBitmap
= staticmethod(GetBitmap
)
2350 def GetIcon(*args
, **kwargs
):
2352 ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2354 Query the providers for icon with given ID and return it. Return
2355 wx.NullIcon if no provider provides it.
2357 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2359 GetIcon
= staticmethod(GetIcon
)
2360 def Destroy(*args
, **kwargs
):
2362 return _misc
.ArtProvider_Destroy(*args
, **kwargs
)
2365 class ArtProviderPtr(ArtProvider
):
2366 def __init__(self
, this
):
2368 if not hasattr(self
,"thisown"): self
.thisown
= 0
2369 self
.__class
__ = ArtProvider
2370 _misc
.ArtProvider_swigregister(ArtProviderPtr
)
2371 ART_TOOLBAR
= cvar
.ART_TOOLBAR
2372 ART_MENU
= cvar
.ART_MENU
2373 ART_FRAME_ICON
= cvar
.ART_FRAME_ICON
2374 ART_CMN_DIALOG
= cvar
.ART_CMN_DIALOG
2375 ART_HELP_BROWSER
= cvar
.ART_HELP_BROWSER
2376 ART_MESSAGE_BOX
= cvar
.ART_MESSAGE_BOX
2377 ART_OTHER
= cvar
.ART_OTHER
2378 ART_ADD_BOOKMARK
= cvar
.ART_ADD_BOOKMARK
2379 ART_DEL_BOOKMARK
= cvar
.ART_DEL_BOOKMARK
2380 ART_HELP_SIDE_PANEL
= cvar
.ART_HELP_SIDE_PANEL
2381 ART_HELP_SETTINGS
= cvar
.ART_HELP_SETTINGS
2382 ART_HELP_BOOK
= cvar
.ART_HELP_BOOK
2383 ART_HELP_FOLDER
= cvar
.ART_HELP_FOLDER
2384 ART_HELP_PAGE
= cvar
.ART_HELP_PAGE
2385 ART_GO_BACK
= cvar
.ART_GO_BACK
2386 ART_GO_FORWARD
= cvar
.ART_GO_FORWARD
2387 ART_GO_UP
= cvar
.ART_GO_UP
2388 ART_GO_DOWN
= cvar
.ART_GO_DOWN
2389 ART_GO_TO_PARENT
= cvar
.ART_GO_TO_PARENT
2390 ART_GO_HOME
= cvar
.ART_GO_HOME
2391 ART_FILE_OPEN
= cvar
.ART_FILE_OPEN
2392 ART_PRINT
= cvar
.ART_PRINT
2393 ART_HELP
= cvar
.ART_HELP
2394 ART_TIP
= cvar
.ART_TIP
2395 ART_REPORT_VIEW
= cvar
.ART_REPORT_VIEW
2396 ART_LIST_VIEW
= cvar
.ART_LIST_VIEW
2397 ART_NEW_DIR
= cvar
.ART_NEW_DIR
2398 ART_FOLDER
= cvar
.ART_FOLDER
2399 ART_GO_DIR_UP
= cvar
.ART_GO_DIR_UP
2400 ART_EXECUTABLE_FILE
= cvar
.ART_EXECUTABLE_FILE
2401 ART_NORMAL_FILE
= cvar
.ART_NORMAL_FILE
2402 ART_TICK_MARK
= cvar
.ART_TICK_MARK
2403 ART_CROSS_MARK
= cvar
.ART_CROSS_MARK
2404 ART_ERROR
= cvar
.ART_ERROR
2405 ART_QUESTION
= cvar
.ART_QUESTION
2406 ART_WARNING
= cvar
.ART_WARNING
2407 ART_INFORMATION
= cvar
.ART_INFORMATION
2408 ART_MISSING_IMAGE
= cvar
.ART_MISSING_IMAGE
2410 def ArtProvider_PushProvider(*args
, **kwargs
):
2412 ArtProvider_PushProvider(ArtProvider provider)
2414 Add new provider to the top of providers stack.
2416 return _misc
.ArtProvider_PushProvider(*args
, **kwargs
)
2418 def ArtProvider_PopProvider(*args
, **kwargs
):
2420 ArtProvider_PopProvider() -> bool
2422 Remove latest added provider and delete it.
2424 return _misc
.ArtProvider_PopProvider(*args
, **kwargs
)
2426 def ArtProvider_RemoveProvider(*args
, **kwargs
):
2428 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2430 Remove provider. The provider must have been added previously!
2431 The provider is _not_ deleted.
2433 return _misc
.ArtProvider_RemoveProvider(*args
, **kwargs
)
2435 def ArtProvider_GetBitmap(*args
, **kwargs
):
2437 ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2439 Query the providers for bitmap with given ID and return it. Return
2440 wx.NullBitmap if no provider provides it.
2442 return _misc
.ArtProvider_GetBitmap(*args
, **kwargs
)
2444 def ArtProvider_GetIcon(*args
, **kwargs
):
2446 ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2448 Query the providers for icon with given ID and return it. Return
2449 wx.NullIcon if no provider provides it.
2451 return _misc
.ArtProvider_GetIcon(*args
, **kwargs
)
2453 #---------------------------------------------------------------------------
2455 CONFIG_USE_LOCAL_FILE
= _misc
.CONFIG_USE_LOCAL_FILE
2456 CONFIG_USE_GLOBAL_FILE
= _misc
.CONFIG_USE_GLOBAL_FILE
2457 CONFIG_USE_RELATIVE_PATH
= _misc
.CONFIG_USE_RELATIVE_PATH
2458 CONFIG_USE_NO_ESCAPE_CHARACTERS
= _misc
.CONFIG_USE_NO_ESCAPE_CHARACTERS
2459 class ConfigBase(object):
2460 def __init__(self
): raise RuntimeError, "No constructor defined"
2462 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2463 def __del__(self
, destroy
=_misc
.delete_ConfigBase
):
2466 if self
.thisown
: destroy(self
)
2469 Type_Unknown
= _misc
.ConfigBase_Type_Unknown
2470 Type_String
= _misc
.ConfigBase_Type_String
2471 Type_Boolean
= _misc
.ConfigBase_Type_Boolean
2472 Type_Integer
= _misc
.ConfigBase_Type_Integer
2473 Type_Float
= _misc
.ConfigBase_Type_Float
2474 def Set(*args
, **kwargs
):
2475 """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase"""
2476 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2478 Set
= staticmethod(Set
)
2479 def Get(*args
, **kwargs
):
2480 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2481 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2483 Get
= staticmethod(Get
)
2484 def Create(*args
, **kwargs
):
2485 """ConfigBase.Create() -> ConfigBase"""
2486 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2488 Create
= staticmethod(Create
)
2489 def DontCreateOnDemand(*args
, **kwargs
):
2490 """ConfigBase.DontCreateOnDemand()"""
2491 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2493 DontCreateOnDemand
= staticmethod(DontCreateOnDemand
)
2494 def SetPath(*args
, **kwargs
):
2495 """SetPath(wxString strPath)"""
2496 return _misc
.ConfigBase_SetPath(*args
, **kwargs
)
2498 def GetPath(*args
, **kwargs
):
2499 """GetPath() -> wxString"""
2500 return _misc
.ConfigBase_GetPath(*args
, **kwargs
)
2502 def GetFirstGroup(*args
, **kwargs
):
2503 """GetFirstGroup() -> PyObject"""
2504 return _misc
.ConfigBase_GetFirstGroup(*args
, **kwargs
)
2506 def GetNextGroup(*args
, **kwargs
):
2507 """GetNextGroup(long index) -> PyObject"""
2508 return _misc
.ConfigBase_GetNextGroup(*args
, **kwargs
)
2510 def GetFirstEntry(*args
, **kwargs
):
2511 """GetFirstEntry() -> PyObject"""
2512 return _misc
.ConfigBase_GetFirstEntry(*args
, **kwargs
)
2514 def GetNextEntry(*args
, **kwargs
):
2515 """GetNextEntry(long index) -> PyObject"""
2516 return _misc
.ConfigBase_GetNextEntry(*args
, **kwargs
)
2518 def GetNumberOfEntries(*args
, **kwargs
):
2519 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2520 return _misc
.ConfigBase_GetNumberOfEntries(*args
, **kwargs
)
2522 def GetNumberOfGroups(*args
, **kwargs
):
2523 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2524 return _misc
.ConfigBase_GetNumberOfGroups(*args
, **kwargs
)
2526 def HasGroup(*args
, **kwargs
):
2527 """HasGroup(wxString strName) -> bool"""
2528 return _misc
.ConfigBase_HasGroup(*args
, **kwargs
)
2530 def HasEntry(*args
, **kwargs
):
2531 """HasEntry(wxString strName) -> bool"""
2532 return _misc
.ConfigBase_HasEntry(*args
, **kwargs
)
2534 def Exists(*args
, **kwargs
):
2535 """Exists(wxString strName) -> bool"""
2536 return _misc
.ConfigBase_Exists(*args
, **kwargs
)
2538 def GetEntryType(*args
, **kwargs
):
2539 """GetEntryType(wxString name) -> wxConfigBase::EntryType"""
2540 return _misc
.ConfigBase_GetEntryType(*args
, **kwargs
)
2542 def Read(*args
, **kwargs
):
2543 """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString"""
2544 return _misc
.ConfigBase_Read(*args
, **kwargs
)
2546 def ReadInt(*args
, **kwargs
):
2547 """ReadInt(wxString key, long defaultVal=0) -> long"""
2548 return _misc
.ConfigBase_ReadInt(*args
, **kwargs
)
2550 def ReadFloat(*args
, **kwargs
):
2551 """ReadFloat(wxString key, double defaultVal=0.0) -> double"""
2552 return _misc
.ConfigBase_ReadFloat(*args
, **kwargs
)
2554 def ReadBool(*args
, **kwargs
):
2555 """ReadBool(wxString key, bool defaultVal=False) -> bool"""
2556 return _misc
.ConfigBase_ReadBool(*args
, **kwargs
)
2558 def Write(*args
, **kwargs
):
2559 """Write(wxString key, wxString value) -> bool"""
2560 return _misc
.ConfigBase_Write(*args
, **kwargs
)
2562 def WriteInt(*args
, **kwargs
):
2563 """WriteInt(wxString key, long value) -> bool"""
2564 return _misc
.ConfigBase_WriteInt(*args
, **kwargs
)
2566 def WriteFloat(*args
, **kwargs
):
2567 """WriteFloat(wxString key, double value) -> bool"""
2568 return _misc
.ConfigBase_WriteFloat(*args
, **kwargs
)
2570 def WriteBool(*args
, **kwargs
):
2571 """WriteBool(wxString key, bool value) -> bool"""
2572 return _misc
.ConfigBase_WriteBool(*args
, **kwargs
)
2574 def Flush(*args
, **kwargs
):
2575 """Flush(bool bCurrentOnly=False) -> bool"""
2576 return _misc
.ConfigBase_Flush(*args
, **kwargs
)
2578 def RenameEntry(*args
, **kwargs
):
2579 """RenameEntry(wxString oldName, wxString newName) -> bool"""
2580 return _misc
.ConfigBase_RenameEntry(*args
, **kwargs
)
2582 def RenameGroup(*args
, **kwargs
):
2583 """RenameGroup(wxString oldName, wxString newName) -> bool"""
2584 return _misc
.ConfigBase_RenameGroup(*args
, **kwargs
)
2586 def DeleteEntry(*args
, **kwargs
):
2587 """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool"""
2588 return _misc
.ConfigBase_DeleteEntry(*args
, **kwargs
)
2590 def DeleteGroup(*args
, **kwargs
):
2591 """DeleteGroup(wxString key) -> bool"""
2592 return _misc
.ConfigBase_DeleteGroup(*args
, **kwargs
)
2594 def DeleteAll(*args
, **kwargs
):
2595 """DeleteAll() -> bool"""
2596 return _misc
.ConfigBase_DeleteAll(*args
, **kwargs
)
2598 def IsExpandingEnvVars(*args
, **kwargs
):
2599 """IsExpandingEnvVars() -> bool"""
2600 return _misc
.ConfigBase_IsExpandingEnvVars(*args
, **kwargs
)
2602 def SetExpandEnvVars(*args
, **kwargs
):
2603 """SetExpandEnvVars(bool bDoIt=True)"""
2604 return _misc
.ConfigBase_SetExpandEnvVars(*args
, **kwargs
)
2606 def SetRecordDefaults(*args
, **kwargs
):
2607 """SetRecordDefaults(bool bDoIt=True)"""
2608 return _misc
.ConfigBase_SetRecordDefaults(*args
, **kwargs
)
2610 def IsRecordingDefaults(*args
, **kwargs
):
2611 """IsRecordingDefaults() -> bool"""
2612 return _misc
.ConfigBase_IsRecordingDefaults(*args
, **kwargs
)
2614 def ExpandEnvVars(*args
, **kwargs
):
2615 """ExpandEnvVars(wxString str) -> wxString"""
2616 return _misc
.ConfigBase_ExpandEnvVars(*args
, **kwargs
)
2618 def GetAppName(*args
, **kwargs
):
2619 """GetAppName() -> wxString"""
2620 return _misc
.ConfigBase_GetAppName(*args
, **kwargs
)
2622 def GetVendorName(*args
, **kwargs
):
2623 """GetVendorName() -> wxString"""
2624 return _misc
.ConfigBase_GetVendorName(*args
, **kwargs
)
2626 def SetAppName(*args
, **kwargs
):
2627 """SetAppName(wxString appName)"""
2628 return _misc
.ConfigBase_SetAppName(*args
, **kwargs
)
2630 def SetVendorName(*args
, **kwargs
):
2631 """SetVendorName(wxString vendorName)"""
2632 return _misc
.ConfigBase_SetVendorName(*args
, **kwargs
)
2634 def SetStyle(*args
, **kwargs
):
2635 """SetStyle(long style)"""
2636 return _misc
.ConfigBase_SetStyle(*args
, **kwargs
)
2638 def GetStyle(*args
, **kwargs
):
2639 """GetStyle() -> long"""
2640 return _misc
.ConfigBase_GetStyle(*args
, **kwargs
)
2643 class ConfigBasePtr(ConfigBase
):
2644 def __init__(self
, this
):
2646 if not hasattr(self
,"thisown"): self
.thisown
= 0
2647 self
.__class
__ = ConfigBase
2648 _misc
.ConfigBase_swigregister(ConfigBasePtr
)
2650 def ConfigBase_Set(*args
, **kwargs
):
2651 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2652 return _misc
.ConfigBase_Set(*args
, **kwargs
)
2654 def ConfigBase_Get(*args
, **kwargs
):
2655 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2656 return _misc
.ConfigBase_Get(*args
, **kwargs
)
2658 def ConfigBase_Create(*args
, **kwargs
):
2659 """ConfigBase_Create() -> ConfigBase"""
2660 return _misc
.ConfigBase_Create(*args
, **kwargs
)
2662 def ConfigBase_DontCreateOnDemand(*args
, **kwargs
):
2663 """ConfigBase_DontCreateOnDemand()"""
2664 return _misc
.ConfigBase_DontCreateOnDemand(*args
, **kwargs
)
2666 class ConfigPathChanger(object):
2668 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2669 def __init__(self
, *args
, **kwargs
):
2670 """__init__(ConfigBase pContainer, wxString strEntry) -> ConfigPathChanger"""
2671 newobj
= _misc
.new_ConfigPathChanger(*args
, **kwargs
)
2672 self
.this
= newobj
.this
2675 def __del__(self
, destroy
=_misc
.delete_ConfigPathChanger
):
2678 if self
.thisown
: destroy(self
)
2681 def Name(*args
, **kwargs
):
2682 """Name() -> wxString"""
2683 return _misc
.ConfigPathChanger_Name(*args
, **kwargs
)
2686 class ConfigPathChangerPtr(ConfigPathChanger
):
2687 def __init__(self
, this
):
2689 if not hasattr(self
,"thisown"): self
.thisown
= 0
2690 self
.__class
__ = ConfigPathChanger
2691 _misc
.ConfigPathChanger_swigregister(ConfigPathChangerPtr
)
2693 class Config(ConfigBase
):
2695 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2696 def __init__(self
, *args
, **kwargs
):
2698 __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2699 wxString localFilename=wxPyEmptyString,
2700 wxString globalFilename=wxPyEmptyString,
2701 long style=0) -> Config
2703 newobj
= _misc
.new_Config(*args
, **kwargs
)
2704 self
.this
= newobj
.this
2707 def __del__(self
, destroy
=_misc
.delete_Config
):
2710 if self
.thisown
: destroy(self
)
2714 class ConfigPtr(Config
):
2715 def __init__(self
, this
):
2717 if not hasattr(self
,"thisown"): self
.thisown
= 0
2718 self
.__class
__ = Config
2719 _misc
.Config_swigregister(ConfigPtr
)
2721 class FileConfig(ConfigBase
):
2723 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2724 def __init__(self
, *args
, **kwargs
):
2726 __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2727 wxString localFilename=wxPyEmptyString,
2728 wxString globalFilename=wxPyEmptyString,
2729 long style=0) -> FileConfig
2731 newobj
= _misc
.new_FileConfig(*args
, **kwargs
)
2732 self
.this
= newobj
.this
2735 def __del__(self
, destroy
=_misc
.delete_FileConfig
):
2738 if self
.thisown
: destroy(self
)
2742 class FileConfigPtr(FileConfig
):
2743 def __init__(self
, this
):
2745 if not hasattr(self
,"thisown"): self
.thisown
= 0
2746 self
.__class
__ = FileConfig
2747 _misc
.FileConfig_swigregister(FileConfigPtr
)
2750 def ExpandEnvVars(*args
, **kwargs
):
2751 """ExpandEnvVars(wxString sz) -> wxString"""
2752 return _misc
.ExpandEnvVars(*args
, **kwargs
)
2753 #---------------------------------------------------------------------------
2755 class DateTime(object):
2757 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2758 Local
= _misc
.DateTime_Local
2759 GMT_12
= _misc
.DateTime_GMT_12
2760 GMT_11
= _misc
.DateTime_GMT_11
2761 GMT_10
= _misc
.DateTime_GMT_10
2762 GMT_9
= _misc
.DateTime_GMT_9
2763 GMT_8
= _misc
.DateTime_GMT_8
2764 GMT_7
= _misc
.DateTime_GMT_7
2765 GMT_6
= _misc
.DateTime_GMT_6
2766 GMT_5
= _misc
.DateTime_GMT_5
2767 GMT_4
= _misc
.DateTime_GMT_4
2768 GMT_3
= _misc
.DateTime_GMT_3
2769 GMT_2
= _misc
.DateTime_GMT_2
2770 GMT_1
= _misc
.DateTime_GMT_1
2771 GMT0
= _misc
.DateTime_GMT0
2772 GMT1
= _misc
.DateTime_GMT1
2773 GMT2
= _misc
.DateTime_GMT2
2774 GMT3
= _misc
.DateTime_GMT3
2775 GMT4
= _misc
.DateTime_GMT4
2776 GMT5
= _misc
.DateTime_GMT5
2777 GMT6
= _misc
.DateTime_GMT6
2778 GMT7
= _misc
.DateTime_GMT7
2779 GMT8
= _misc
.DateTime_GMT8
2780 GMT9
= _misc
.DateTime_GMT9
2781 GMT10
= _misc
.DateTime_GMT10
2782 GMT11
= _misc
.DateTime_GMT11
2783 GMT12
= _misc
.DateTime_GMT12
2784 WET
= _misc
.DateTime_WET
2785 WEST
= _misc
.DateTime_WEST
2786 CET
= _misc
.DateTime_CET
2787 CEST
= _misc
.DateTime_CEST
2788 EET
= _misc
.DateTime_EET
2789 EEST
= _misc
.DateTime_EEST
2790 MSK
= _misc
.DateTime_MSK
2791 MSD
= _misc
.DateTime_MSD
2792 AST
= _misc
.DateTime_AST
2793 ADT
= _misc
.DateTime_ADT
2794 EST
= _misc
.DateTime_EST
2795 EDT
= _misc
.DateTime_EDT
2796 CST
= _misc
.DateTime_CST
2797 CDT
= _misc
.DateTime_CDT
2798 MST
= _misc
.DateTime_MST
2799 MDT
= _misc
.DateTime_MDT
2800 PST
= _misc
.DateTime_PST
2801 PDT
= _misc
.DateTime_PDT
2802 HST
= _misc
.DateTime_HST
2803 AKST
= _misc
.DateTime_AKST
2804 AKDT
= _misc
.DateTime_AKDT
2805 A_WST
= _misc
.DateTime_A_WST
2806 A_CST
= _misc
.DateTime_A_CST
2807 A_EST
= _misc
.DateTime_A_EST
2808 A_ESST
= _misc
.DateTime_A_ESST
2809 UTC
= _misc
.DateTime_UTC
2810 Gregorian
= _misc
.DateTime_Gregorian
2811 Julian
= _misc
.DateTime_Julian
2812 Gr_Unknown
= _misc
.DateTime_Gr_Unknown
2813 Gr_Standard
= _misc
.DateTime_Gr_Standard
2814 Gr_Alaska
= _misc
.DateTime_Gr_Alaska
2815 Gr_Albania
= _misc
.DateTime_Gr_Albania
2816 Gr_Austria
= _misc
.DateTime_Gr_Austria
2817 Gr_Austria_Brixen
= _misc
.DateTime_Gr_Austria_Brixen
2818 Gr_Austria_Salzburg
= _misc
.DateTime_Gr_Austria_Salzburg
2819 Gr_Austria_Tyrol
= _misc
.DateTime_Gr_Austria_Tyrol
2820 Gr_Austria_Carinthia
= _misc
.DateTime_Gr_Austria_Carinthia
2821 Gr_Austria_Styria
= _misc
.DateTime_Gr_Austria_Styria
2822 Gr_Belgium
= _misc
.DateTime_Gr_Belgium
2823 Gr_Bulgaria
= _misc
.DateTime_Gr_Bulgaria
2824 Gr_Bulgaria_1
= _misc
.DateTime_Gr_Bulgaria_1
2825 Gr_Bulgaria_2
= _misc
.DateTime_Gr_Bulgaria_2
2826 Gr_Bulgaria_3
= _misc
.DateTime_Gr_Bulgaria_3
2827 Gr_Canada
= _misc
.DateTime_Gr_Canada
2828 Gr_China
= _misc
.DateTime_Gr_China
2829 Gr_China_1
= _misc
.DateTime_Gr_China_1
2830 Gr_China_2
= _misc
.DateTime_Gr_China_2
2831 Gr_Czechoslovakia
= _misc
.DateTime_Gr_Czechoslovakia
2832 Gr_Denmark
= _misc
.DateTime_Gr_Denmark
2833 Gr_Egypt
= _misc
.DateTime_Gr_Egypt
2834 Gr_Estonia
= _misc
.DateTime_Gr_Estonia
2835 Gr_Finland
= _misc
.DateTime_Gr_Finland
2836 Gr_France
= _misc
.DateTime_Gr_France
2837 Gr_France_Alsace
= _misc
.DateTime_Gr_France_Alsace
2838 Gr_France_Lorraine
= _misc
.DateTime_Gr_France_Lorraine
2839 Gr_France_Strasbourg
= _misc
.DateTime_Gr_France_Strasbourg
2840 Gr_Germany
= _misc
.DateTime_Gr_Germany
2841 Gr_Germany_Catholic
= _misc
.DateTime_Gr_Germany_Catholic
2842 Gr_Germany_Prussia
= _misc
.DateTime_Gr_Germany_Prussia
2843 Gr_Germany_Protestant
= _misc
.DateTime_Gr_Germany_Protestant
2844 Gr_GreatBritain
= _misc
.DateTime_Gr_GreatBritain
2845 Gr_Greece
= _misc
.DateTime_Gr_Greece
2846 Gr_Hungary
= _misc
.DateTime_Gr_Hungary
2847 Gr_Ireland
= _misc
.DateTime_Gr_Ireland
2848 Gr_Italy
= _misc
.DateTime_Gr_Italy
2849 Gr_Japan
= _misc
.DateTime_Gr_Japan
2850 Gr_Japan_1
= _misc
.DateTime_Gr_Japan_1
2851 Gr_Japan_2
= _misc
.DateTime_Gr_Japan_2
2852 Gr_Japan_3
= _misc
.DateTime_Gr_Japan_3
2853 Gr_Latvia
= _misc
.DateTime_Gr_Latvia
2854 Gr_Lithuania
= _misc
.DateTime_Gr_Lithuania
2855 Gr_Luxemburg
= _misc
.DateTime_Gr_Luxemburg
2856 Gr_Netherlands
= _misc
.DateTime_Gr_Netherlands
2857 Gr_Netherlands_Groningen
= _misc
.DateTime_Gr_Netherlands_Groningen
2858 Gr_Netherlands_Gelderland
= _misc
.DateTime_Gr_Netherlands_Gelderland
2859 Gr_Netherlands_Utrecht
= _misc
.DateTime_Gr_Netherlands_Utrecht
2860 Gr_Netherlands_Friesland
= _misc
.DateTime_Gr_Netherlands_Friesland
2861 Gr_Norway
= _misc
.DateTime_Gr_Norway
2862 Gr_Poland
= _misc
.DateTime_Gr_Poland
2863 Gr_Portugal
= _misc
.DateTime_Gr_Portugal
2864 Gr_Romania
= _misc
.DateTime_Gr_Romania
2865 Gr_Russia
= _misc
.DateTime_Gr_Russia
2866 Gr_Scotland
= _misc
.DateTime_Gr_Scotland
2867 Gr_Spain
= _misc
.DateTime_Gr_Spain
2868 Gr_Sweden
= _misc
.DateTime_Gr_Sweden
2869 Gr_Switzerland
= _misc
.DateTime_Gr_Switzerland
2870 Gr_Switzerland_Catholic
= _misc
.DateTime_Gr_Switzerland_Catholic
2871 Gr_Switzerland_Protestant
= _misc
.DateTime_Gr_Switzerland_Protestant
2872 Gr_Turkey
= _misc
.DateTime_Gr_Turkey
2873 Gr_USA
= _misc
.DateTime_Gr_USA
2874 Gr_Wales
= _misc
.DateTime_Gr_Wales
2875 Gr_Yugoslavia
= _misc
.DateTime_Gr_Yugoslavia
2876 Country_Unknown
= _misc
.DateTime_Country_Unknown
2877 Country_Default
= _misc
.DateTime_Country_Default
2878 Country_WesternEurope_Start
= _misc
.DateTime_Country_WesternEurope_Start
2879 Country_EEC
= _misc
.DateTime_Country_EEC
2880 France
= _misc
.DateTime_France
2881 Germany
= _misc
.DateTime_Germany
2882 UK
= _misc
.DateTime_UK
2883 Country_WesternEurope_End
= _misc
.DateTime_Country_WesternEurope_End
2884 Russia
= _misc
.DateTime_Russia
2885 USA
= _misc
.DateTime_USA
2886 Jan
= _misc
.DateTime_Jan
2887 Feb
= _misc
.DateTime_Feb
2888 Mar
= _misc
.DateTime_Mar
2889 Apr
= _misc
.DateTime_Apr
2890 May
= _misc
.DateTime_May
2891 Jun
= _misc
.DateTime_Jun
2892 Jul
= _misc
.DateTime_Jul
2893 Aug
= _misc
.DateTime_Aug
2894 Sep
= _misc
.DateTime_Sep
2895 Oct
= _misc
.DateTime_Oct
2896 Nov
= _misc
.DateTime_Nov
2897 Dec
= _misc
.DateTime_Dec
2898 Inv_Month
= _misc
.DateTime_Inv_Month
2899 Sun
= _misc
.DateTime_Sun
2900 Mon
= _misc
.DateTime_Mon
2901 Tue
= _misc
.DateTime_Tue
2902 Wed
= _misc
.DateTime_Wed
2903 Thu
= _misc
.DateTime_Thu
2904 Fri
= _misc
.DateTime_Fri
2905 Sat
= _misc
.DateTime_Sat
2906 Inv_WeekDay
= _misc
.DateTime_Inv_WeekDay
2907 Inv_Year
= _misc
.DateTime_Inv_Year
2908 Name_Full
= _misc
.DateTime_Name_Full
2909 Name_Abbr
= _misc
.DateTime_Name_Abbr
2910 Default_First
= _misc
.DateTime_Default_First
2911 Monday_First
= _misc
.DateTime_Monday_First
2912 Sunday_First
= _misc
.DateTime_Sunday_First
2913 def SetCountry(*args
, **kwargs
):
2914 """DateTime.SetCountry(wxDateTime::Country country)"""
2915 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
2917 SetCountry
= staticmethod(SetCountry
)
2918 def GetCountry(*args
, **kwargs
):
2919 """DateTime.GetCountry() -> wxDateTime::Country"""
2920 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
2922 GetCountry
= staticmethod(GetCountry
)
2923 def IsWestEuropeanCountry(*args
, **kwargs
):
2924 """DateTime.IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
2925 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
2927 IsWestEuropeanCountry
= staticmethod(IsWestEuropeanCountry
)
2928 def GetCurrentYear(*args
, **kwargs
):
2929 """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
2930 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
2932 GetCurrentYear
= staticmethod(GetCurrentYear
)
2933 def ConvertYearToBC(*args
, **kwargs
):
2934 """DateTime.ConvertYearToBC(int year) -> int"""
2935 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
2937 ConvertYearToBC
= staticmethod(ConvertYearToBC
)
2938 def GetCurrentMonth(*args
, **kwargs
):
2939 """DateTime.GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
2940 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
2942 GetCurrentMonth
= staticmethod(GetCurrentMonth
)
2943 def IsLeapYear(*args
, **kwargs
):
2944 """DateTime.IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
2945 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
2947 IsLeapYear
= staticmethod(IsLeapYear
)
2948 def GetCentury(*args
, **kwargs
):
2949 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2950 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
2952 GetCentury
= staticmethod(GetCentury
)
2953 def GetNumberOfDaysinYear(*args
, **kwargs
):
2954 """DateTime.GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
2955 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
2957 GetNumberOfDaysinYear
= staticmethod(GetNumberOfDaysinYear
)
2958 def GetNumberOfDaysInMonth(*args
, **kwargs
):
2959 """DateTime.GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
2960 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
2962 GetNumberOfDaysInMonth
= staticmethod(GetNumberOfDaysInMonth
)
2963 def GetMonthName(*args
, **kwargs
):
2964 """DateTime.GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2965 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
2967 GetMonthName
= staticmethod(GetMonthName
)
2968 def GetWeekDayName(*args
, **kwargs
):
2969 """DateTime.GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
2970 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
2972 GetWeekDayName
= staticmethod(GetWeekDayName
)
2973 def GetAmPmStrings(*args
, **kwargs
):
2975 GetAmPmStrings() -> (am, pm)
2977 Get the AM and PM strings in the current locale (may be empty)
2979 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
2981 GetAmPmStrings
= staticmethod(GetAmPmStrings
)
2982 def IsDSTApplicable(*args
, **kwargs
):
2983 """DateTime.IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
2984 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
2986 IsDSTApplicable
= staticmethod(IsDSTApplicable
)
2987 def GetBeginDST(*args
, **kwargs
):
2988 """DateTime.GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2989 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
2991 GetBeginDST
= staticmethod(GetBeginDST
)
2992 def GetEndDST(*args
, **kwargs
):
2993 """DateTime.GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
2994 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
2996 GetEndDST
= staticmethod(GetEndDST
)
2997 def Now(*args
, **kwargs
):
2998 """DateTime.Now() -> DateTime"""
2999 return _misc
.DateTime_Now(*args
, **kwargs
)
3001 Now
= staticmethod(Now
)
3002 def UNow(*args
, **kwargs
):
3003 """DateTime.UNow() -> DateTime"""
3004 return _misc
.DateTime_UNow(*args
, **kwargs
)
3006 UNow
= staticmethod(UNow
)
3007 def Today(*args
, **kwargs
):
3008 """DateTime.Today() -> DateTime"""
3009 return _misc
.DateTime_Today(*args
, **kwargs
)
3011 Today
= staticmethod(Today
)
3012 def __init__(self
, *args
, **kwargs
):
3013 """__init__() -> DateTime"""
3014 newobj
= _misc
.new_DateTime(*args
, **kwargs
)
3015 self
.this
= newobj
.this
3018 def __del__(self
, destroy
=_misc
.delete_DateTime
):
3021 if self
.thisown
: destroy(self
)
3024 def SetToCurrent(*args
, **kwargs
):
3025 """SetToCurrent() -> DateTime"""
3026 return _misc
.DateTime_SetToCurrent(*args
, **kwargs
)
3028 def SetTimeT(*args
, **kwargs
):
3029 """SetTimeT(time_t timet) -> DateTime"""
3030 return _misc
.DateTime_SetTimeT(*args
, **kwargs
)
3032 def SetJDN(*args
, **kwargs
):
3033 """SetJDN(double jdn) -> DateTime"""
3034 return _misc
.DateTime_SetJDN(*args
, **kwargs
)
3036 def SetHMS(*args
, **kwargs
):
3037 """SetHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3038 return _misc
.DateTime_SetHMS(*args
, **kwargs
)
3040 def Set(*args
, **kwargs
):
3042 Set(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3043 int hour=0, int minute=0, int second=0,
3044 int millisec=0) -> DateTime
3046 return _misc
.DateTime_Set(*args
, **kwargs
)
3048 def ResetTime(*args
, **kwargs
):
3049 """ResetTime() -> DateTime"""
3050 return _misc
.DateTime_ResetTime(*args
, **kwargs
)
3052 def SetYear(*args
, **kwargs
):
3053 """SetYear(int year) -> DateTime"""
3054 return _misc
.DateTime_SetYear(*args
, **kwargs
)
3056 def SetMonth(*args
, **kwargs
):
3057 """SetMonth(wxDateTime::Month month) -> DateTime"""
3058 return _misc
.DateTime_SetMonth(*args
, **kwargs
)
3060 def SetDay(*args
, **kwargs
):
3061 """SetDay(int day) -> DateTime"""
3062 return _misc
.DateTime_SetDay(*args
, **kwargs
)
3064 def SetHour(*args
, **kwargs
):
3065 """SetHour(int hour) -> DateTime"""
3066 return _misc
.DateTime_SetHour(*args
, **kwargs
)
3068 def SetMinute(*args
, **kwargs
):
3069 """SetMinute(int minute) -> DateTime"""
3070 return _misc
.DateTime_SetMinute(*args
, **kwargs
)
3072 def SetSecond(*args
, **kwargs
):
3073 """SetSecond(int second) -> DateTime"""
3074 return _misc
.DateTime_SetSecond(*args
, **kwargs
)
3076 def SetMillisecond(*args
, **kwargs
):
3077 """SetMillisecond(int millisecond) -> DateTime"""
3078 return _misc
.DateTime_SetMillisecond(*args
, **kwargs
)
3080 def SetToWeekDayInSameWeek(*args
, **kwargs
):
3081 """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3082 return _misc
.DateTime_SetToWeekDayInSameWeek(*args
, **kwargs
)
3084 def GetWeekDayInSameWeek(*args
, **kwargs
):
3085 """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3086 return _misc
.DateTime_GetWeekDayInSameWeek(*args
, **kwargs
)
3088 def SetToNextWeekDay(*args
, **kwargs
):
3089 """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3090 return _misc
.DateTime_SetToNextWeekDay(*args
, **kwargs
)
3092 def GetNextWeekDay(*args
, **kwargs
):
3093 """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3094 return _misc
.DateTime_GetNextWeekDay(*args
, **kwargs
)
3096 def SetToPrevWeekDay(*args
, **kwargs
):
3097 """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3098 return _misc
.DateTime_SetToPrevWeekDay(*args
, **kwargs
)
3100 def GetPrevWeekDay(*args
, **kwargs
):
3101 """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3102 return _misc
.DateTime_GetPrevWeekDay(*args
, **kwargs
)
3104 def SetToWeekDay(*args
, **kwargs
):
3106 SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month,
3107 int year=Inv_Year) -> bool
3109 return _misc
.DateTime_SetToWeekDay(*args
, **kwargs
)
3111 def SetToLastWeekDay(*args
, **kwargs
):
3113 SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3114 int year=Inv_Year) -> bool
3116 return _misc
.DateTime_SetToLastWeekDay(*args
, **kwargs
)
3118 def GetLastWeekDay(*args
, **kwargs
):
3120 GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3121 int year=Inv_Year) -> DateTime
3123 return _misc
.DateTime_GetLastWeekDay(*args
, **kwargs
)
3125 def SetToTheWeek(*args
, **kwargs
):
3126 """SetToTheWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> bool"""
3127 return _misc
.DateTime_SetToTheWeek(*args
, **kwargs
)
3129 def GetWeek(*args
, **kwargs
):
3130 """GetWeek(int numWeek, wxDateTime::WeekDay weekday=Mon, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3131 return _misc
.DateTime_GetWeek(*args
, **kwargs
)
3133 def SetToLastMonthDay(*args
, **kwargs
):
3134 """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3135 return _misc
.DateTime_SetToLastMonthDay(*args
, **kwargs
)
3137 def GetLastMonthDay(*args
, **kwargs
):
3138 """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3139 return _misc
.DateTime_GetLastMonthDay(*args
, **kwargs
)
3141 def SetToYearDay(*args
, **kwargs
):
3142 """SetToYearDay(int yday) -> DateTime"""
3143 return _misc
.DateTime_SetToYearDay(*args
, **kwargs
)
3145 def GetYearDay(*args
, **kwargs
):
3146 """GetYearDay(int yday) -> DateTime"""
3147 return _misc
.DateTime_GetYearDay(*args
, **kwargs
)
3149 def GetJulianDayNumber(*args
, **kwargs
):
3150 """GetJulianDayNumber() -> double"""
3151 return _misc
.DateTime_GetJulianDayNumber(*args
, **kwargs
)
3153 def GetJDN(*args
, **kwargs
):
3154 """GetJDN() -> double"""
3155 return _misc
.DateTime_GetJDN(*args
, **kwargs
)
3157 def GetModifiedJulianDayNumber(*args
, **kwargs
):
3158 """GetModifiedJulianDayNumber() -> double"""
3159 return _misc
.DateTime_GetModifiedJulianDayNumber(*args
, **kwargs
)
3161 def GetMJD(*args
, **kwargs
):
3162 """GetMJD() -> double"""
3163 return _misc
.DateTime_GetMJD(*args
, **kwargs
)
3165 def GetRataDie(*args
, **kwargs
):
3166 """GetRataDie() -> double"""
3167 return _misc
.DateTime_GetRataDie(*args
, **kwargs
)
3169 def ToTimezone(*args
, **kwargs
):
3170 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3171 return _misc
.DateTime_ToTimezone(*args
, **kwargs
)
3173 def MakeTimezone(*args
, **kwargs
):
3174 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3175 return _misc
.DateTime_MakeTimezone(*args
, **kwargs
)
3177 def ToGMT(*args
, **kwargs
):
3178 """ToGMT(bool noDST=False) -> DateTime"""
3179 return _misc
.DateTime_ToGMT(*args
, **kwargs
)
3181 def MakeGMT(*args
, **kwargs
):
3182 """MakeGMT(bool noDST=False) -> DateTime"""
3183 return _misc
.DateTime_MakeGMT(*args
, **kwargs
)
3185 def IsDST(*args
, **kwargs
):
3186 """IsDST(wxDateTime::Country country=Country_Default) -> int"""
3187 return _misc
.DateTime_IsDST(*args
, **kwargs
)
3189 def IsValid(*args
, **kwargs
):
3190 """IsValid() -> bool"""
3191 return _misc
.DateTime_IsValid(*args
, **kwargs
)
3193 def GetTicks(*args
, **kwargs
):
3194 """GetTicks() -> time_t"""
3195 return _misc
.DateTime_GetTicks(*args
, **kwargs
)
3197 def GetYear(*args
, **kwargs
):
3198 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3199 return _misc
.DateTime_GetYear(*args
, **kwargs
)
3201 def GetMonth(*args
, **kwargs
):
3202 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month"""
3203 return _misc
.DateTime_GetMonth(*args
, **kwargs
)
3205 def GetDay(*args
, **kwargs
):
3206 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3207 return _misc
.DateTime_GetDay(*args
, **kwargs
)
3209 def GetWeekDay(*args
, **kwargs
):
3210 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay"""
3211 return _misc
.DateTime_GetWeekDay(*args
, **kwargs
)
3213 def GetHour(*args
, **kwargs
):
3214 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3215 return _misc
.DateTime_GetHour(*args
, **kwargs
)
3217 def GetMinute(*args
, **kwargs
):
3218 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3219 return _misc
.DateTime_GetMinute(*args
, **kwargs
)
3221 def GetSecond(*args
, **kwargs
):
3222 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3223 return _misc
.DateTime_GetSecond(*args
, **kwargs
)
3225 def GetMillisecond(*args
, **kwargs
):
3226 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3227 return _misc
.DateTime_GetMillisecond(*args
, **kwargs
)
3229 def GetDayOfYear(*args
, **kwargs
):
3230 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3231 return _misc
.DateTime_GetDayOfYear(*args
, **kwargs
)
3233 def GetWeekOfYear(*args
, **kwargs
):
3234 """GetWeekOfYear(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3235 return _misc
.DateTime_GetWeekOfYear(*args
, **kwargs
)
3237 def GetWeekOfMonth(*args
, **kwargs
):
3238 """GetWeekOfMonth(wxDateTime::WeekFlags flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3239 return _misc
.DateTime_GetWeekOfMonth(*args
, **kwargs
)
3241 def IsWorkDay(*args
, **kwargs
):
3242 """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool"""
3243 return _misc
.DateTime_IsWorkDay(*args
, **kwargs
)
3245 def IsEqualTo(*args
, **kwargs
):
3246 """IsEqualTo(DateTime datetime) -> bool"""
3247 return _misc
.DateTime_IsEqualTo(*args
, **kwargs
)
3249 def IsEarlierThan(*args
, **kwargs
):
3250 """IsEarlierThan(DateTime datetime) -> bool"""
3251 return _misc
.DateTime_IsEarlierThan(*args
, **kwargs
)
3253 def IsLaterThan(*args
, **kwargs
):
3254 """IsLaterThan(DateTime datetime) -> bool"""
3255 return _misc
.DateTime_IsLaterThan(*args
, **kwargs
)
3257 def IsStrictlyBetween(*args
, **kwargs
):
3258 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3259 return _misc
.DateTime_IsStrictlyBetween(*args
, **kwargs
)
3261 def IsBetween(*args
, **kwargs
):
3262 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3263 return _misc
.DateTime_IsBetween(*args
, **kwargs
)
3265 def IsSameDate(*args
, **kwargs
):
3266 """IsSameDate(DateTime dt) -> bool"""
3267 return _misc
.DateTime_IsSameDate(*args
, **kwargs
)
3269 def IsSameTime(*args
, **kwargs
):
3270 """IsSameTime(DateTime dt) -> bool"""
3271 return _misc
.DateTime_IsSameTime(*args
, **kwargs
)
3273 def IsEqualUpTo(*args
, **kwargs
):
3274 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3275 return _misc
.DateTime_IsEqualUpTo(*args
, **kwargs
)
3277 def AddTS(*args
, **kwargs
):
3278 """AddTS(TimeSpan diff) -> DateTime"""
3279 return _misc
.DateTime_AddTS(*args
, **kwargs
)
3281 def AddDS(*args
, **kwargs
):
3282 """AddDS(DateSpan diff) -> DateTime"""
3283 return _misc
.DateTime_AddDS(*args
, **kwargs
)
3285 def SubtractTS(*args
, **kwargs
):
3286 """SubtractTS(TimeSpan diff) -> DateTime"""
3287 return _misc
.DateTime_SubtractTS(*args
, **kwargs
)
3289 def SubtractDS(*args
, **kwargs
):
3290 """SubtractDS(DateSpan diff) -> DateTime"""
3291 return _misc
.DateTime_SubtractDS(*args
, **kwargs
)
3293 def Subtract(*args
, **kwargs
):
3294 """Subtract(DateTime dt) -> TimeSpan"""
3295 return _misc
.DateTime_Subtract(*args
, **kwargs
)
3297 def __iadd__(*args
):
3299 __iadd__(TimeSpan diff) -> DateTime
3300 __iadd__(DateSpan diff) -> DateTime
3302 return _misc
.DateTime___iadd__(*args
)
3304 def __isub__(*args
):
3306 __isub__(TimeSpan diff) -> DateTime
3307 __isub__(DateSpan diff) -> DateTime
3309 return _misc
.DateTime___isub__(*args
)
3313 __add__(TimeSpan other) -> DateTime
3314 __add__(DateSpan other) -> DateTime
3316 return _misc
.DateTime___add__(*args
)
3320 __sub__(DateTime other) -> TimeSpan
3321 __sub__(TimeSpan other) -> DateTime
3322 __sub__(DateSpan other) -> DateTime
3324 return _misc
.DateTime___sub__(*args
)
3327 """__lt__(DateTime other) -> bool"""
3328 return _misc
.DateTime___lt__(*args
)
3331 """__le__(DateTime other) -> bool"""
3332 return _misc
.DateTime___le__(*args
)
3335 """__gt__(DateTime other) -> bool"""
3336 return _misc
.DateTime___gt__(*args
)
3339 """__ge__(DateTime other) -> bool"""
3340 return _misc
.DateTime___ge__(*args
)
3343 """__eq__(DateTime other) -> bool"""
3344 return _misc
.DateTime___eq__(*args
)
3347 """__ne__(DateTime other) -> bool"""
3348 return _misc
.DateTime___ne__(*args
)
3350 def ParseRfc822Date(*args
, **kwargs
):
3351 """ParseRfc822Date(wxString date) -> int"""
3352 return _misc
.DateTime_ParseRfc822Date(*args
, **kwargs
)
3354 def ParseFormat(*args
, **kwargs
):
3355 """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3356 return _misc
.DateTime_ParseFormat(*args
, **kwargs
)
3358 def ParseDateTime(*args
, **kwargs
):
3359 """ParseDateTime(wxString datetime) -> int"""
3360 return _misc
.DateTime_ParseDateTime(*args
, **kwargs
)
3362 def ParseDate(*args
, **kwargs
):
3363 """ParseDate(wxString date) -> int"""
3364 return _misc
.DateTime_ParseDate(*args
, **kwargs
)
3366 def ParseTime(*args
, **kwargs
):
3367 """ParseTime(wxString time) -> int"""
3368 return _misc
.DateTime_ParseTime(*args
, **kwargs
)
3370 def Format(*args
, **kwargs
):
3371 """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString"""
3372 return _misc
.DateTime_Format(*args
, **kwargs
)
3374 def FormatDate(*args
, **kwargs
):
3375 """FormatDate() -> wxString"""
3376 return _misc
.DateTime_FormatDate(*args
, **kwargs
)
3378 def FormatTime(*args
, **kwargs
):
3379 """FormatTime() -> wxString"""
3380 return _misc
.DateTime_FormatTime(*args
, **kwargs
)
3382 def FormatISODate(*args
, **kwargs
):
3383 """FormatISODate() -> wxString"""
3384 return _misc
.DateTime_FormatISODate(*args
, **kwargs
)
3386 def FormatISOTime(*args
, **kwargs
):
3387 """FormatISOTime() -> wxString"""
3388 return _misc
.DateTime_FormatISOTime(*args
, **kwargs
)
3391 return '<wxDateTime: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3393 return self
.Format()
3396 class DateTimePtr(DateTime
):
3397 def __init__(self
, this
):
3399 if not hasattr(self
,"thisown"): self
.thisown
= 0
3400 self
.__class
__ = DateTime
3401 _misc
.DateTime_swigregister(DateTimePtr
)
3403 def DateTime_SetCountry(*args
, **kwargs
):
3404 """DateTime_SetCountry(wxDateTime::Country country)"""
3405 return _misc
.DateTime_SetCountry(*args
, **kwargs
)
3407 def DateTime_GetCountry(*args
, **kwargs
):
3408 """DateTime_GetCountry() -> wxDateTime::Country"""
3409 return _misc
.DateTime_GetCountry(*args
, **kwargs
)
3411 def DateTime_IsWestEuropeanCountry(*args
, **kwargs
):
3412 """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
3413 return _misc
.DateTime_IsWestEuropeanCountry(*args
, **kwargs
)
3415 def DateTime_GetCurrentYear(*args
, **kwargs
):
3416 """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
3417 return _misc
.DateTime_GetCurrentYear(*args
, **kwargs
)
3419 def DateTime_ConvertYearToBC(*args
, **kwargs
):
3420 """DateTime_ConvertYearToBC(int year) -> int"""
3421 return _misc
.DateTime_ConvertYearToBC(*args
, **kwargs
)
3423 def DateTime_GetCurrentMonth(*args
, **kwargs
):
3424 """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
3425 return _misc
.DateTime_GetCurrentMonth(*args
, **kwargs
)
3427 def DateTime_IsLeapYear(*args
, **kwargs
):
3428 """DateTime_IsLeapYear(int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> bool"""
3429 return _misc
.DateTime_IsLeapYear(*args
, **kwargs
)
3431 def DateTime_GetCentury(*args
, **kwargs
):
3432 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3433 return _misc
.DateTime_GetCentury(*args
, **kwargs
)
3435 def DateTime_GetNumberOfDaysinYear(*args
, **kwargs
):
3436 """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
3437 return _misc
.DateTime_GetNumberOfDaysinYear(*args
, **kwargs
)
3439 def DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
):
3440 """DateTime_GetNumberOfDaysInMonth(wxDateTime::Month month, int year=Inv_Year, wxDateTime::Calendar cal=Gregorian) -> int"""
3441 return _misc
.DateTime_GetNumberOfDaysInMonth(*args
, **kwargs
)
3443 def DateTime_GetMonthName(*args
, **kwargs
):
3444 """DateTime_GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3445 return _misc
.DateTime_GetMonthName(*args
, **kwargs
)
3447 def DateTime_GetWeekDayName(*args
, **kwargs
):
3448 """DateTime_GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags=Name_Full) -> wxString"""
3449 return _misc
.DateTime_GetWeekDayName(*args
, **kwargs
)
3451 def DateTime_GetAmPmStrings(*args
, **kwargs
):
3453 GetAmPmStrings() -> (am, pm)
3455 Get the AM and PM strings in the current locale (may be empty)
3457 return _misc
.DateTime_GetAmPmStrings(*args
, **kwargs
)
3459 def DateTime_IsDSTApplicable(*args
, **kwargs
):
3460 """DateTime_IsDSTApplicable(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> bool"""
3461 return _misc
.DateTime_IsDSTApplicable(*args
, **kwargs
)
3463 def DateTime_GetBeginDST(*args
, **kwargs
):
3464 """DateTime_GetBeginDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3465 return _misc
.DateTime_GetBeginDST(*args
, **kwargs
)
3467 def DateTime_GetEndDST(*args
, **kwargs
):
3468 """DateTime_GetEndDST(int year=Inv_Year, wxDateTime::Country country=Country_Default) -> DateTime"""
3469 return _misc
.DateTime_GetEndDST(*args
, **kwargs
)
3471 def DateTime_Now(*args
, **kwargs
):
3472 """DateTime_Now() -> DateTime"""
3473 return _misc
.DateTime_Now(*args
, **kwargs
)
3475 def DateTime_UNow(*args
, **kwargs
):
3476 """DateTime_UNow() -> DateTime"""
3477 return _misc
.DateTime_UNow(*args
, **kwargs
)
3479 def DateTime_Today(*args
, **kwargs
):
3480 """DateTime_Today() -> DateTime"""
3481 return _misc
.DateTime_Today(*args
, **kwargs
)
3483 def DateTimeFromTimeT(*args
, **kwargs
):
3484 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3485 val
= _misc
.new_DateTimeFromTimeT(*args
, **kwargs
)
3489 def DateTimeFromJDN(*args
, **kwargs
):
3490 """DateTimeFromJDN(double jdn) -> DateTime"""
3491 val
= _misc
.new_DateTimeFromJDN(*args
, **kwargs
)
3495 def DateTimeFromHMS(*args
, **kwargs
):
3496 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3497 val
= _misc
.new_DateTimeFromHMS(*args
, **kwargs
)
3501 def DateTimeFromDMY(*args
, **kwargs
):
3503 DateTimeFromDMY(int day, wxDateTime::Month month=Inv_Month, int year=Inv_Year,
3504 int hour=0, int minute=0, int second=0,
3505 int millisec=0) -> DateTime
3507 val
= _misc
.new_DateTimeFromDMY(*args
, **kwargs
)
3511 class TimeSpan(object):
3513 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3514 def Seconds(*args
, **kwargs
):
3515 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3516 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3518 Seconds
= staticmethod(Seconds
)
3519 def Second(*args
, **kwargs
):
3520 """TimeSpan.Second() -> TimeSpan"""
3521 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3523 Second
= staticmethod(Second
)
3524 def Minutes(*args
, **kwargs
):
3525 """TimeSpan.Minutes(long min) -> TimeSpan"""
3526 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3528 Minutes
= staticmethod(Minutes
)
3529 def Minute(*args
, **kwargs
):
3530 """TimeSpan.Minute() -> TimeSpan"""
3531 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3533 Minute
= staticmethod(Minute
)
3534 def Hours(*args
, **kwargs
):
3535 """TimeSpan.Hours(long hours) -> TimeSpan"""
3536 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3538 Hours
= staticmethod(Hours
)
3539 def Hour(*args
, **kwargs
):
3540 """TimeSpan.Hour() -> TimeSpan"""
3541 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3543 Hour
= staticmethod(Hour
)
3544 def Days(*args
, **kwargs
):
3545 """TimeSpan.Days(long days) -> TimeSpan"""
3546 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3548 Days
= staticmethod(Days
)
3549 def Day(*args
, **kwargs
):
3550 """TimeSpan.Day() -> TimeSpan"""
3551 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3553 Day
= staticmethod(Day
)
3554 def Weeks(*args
, **kwargs
):
3555 """TimeSpan.Weeks(long days) -> TimeSpan"""
3556 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3558 Weeks
= staticmethod(Weeks
)
3559 def Week(*args
, **kwargs
):
3560 """TimeSpan.Week() -> TimeSpan"""
3561 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3563 Week
= staticmethod(Week
)
3564 def __init__(self
, *args
, **kwargs
):
3565 """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3566 newobj
= _misc
.new_TimeSpan(*args
, **kwargs
)
3567 self
.this
= newobj
.this
3570 def __del__(self
, destroy
=_misc
.delete_TimeSpan
):
3573 if self
.thisown
: destroy(self
)
3576 def Add(*args
, **kwargs
):
3577 """Add(TimeSpan diff) -> TimeSpan"""
3578 return _misc
.TimeSpan_Add(*args
, **kwargs
)
3580 def Subtract(*args
, **kwargs
):
3581 """Subtract(TimeSpan diff) -> TimeSpan"""
3582 return _misc
.TimeSpan_Subtract(*args
, **kwargs
)
3584 def Multiply(*args
, **kwargs
):
3585 """Multiply(int n) -> TimeSpan"""
3586 return _misc
.TimeSpan_Multiply(*args
, **kwargs
)
3588 def Neg(*args
, **kwargs
):
3589 """Neg() -> TimeSpan"""
3590 return _misc
.TimeSpan_Neg(*args
, **kwargs
)
3592 def Abs(*args
, **kwargs
):
3593 """Abs() -> TimeSpan"""
3594 return _misc
.TimeSpan_Abs(*args
, **kwargs
)
3596 def __iadd__(*args
, **kwargs
):
3597 """__iadd__(TimeSpan diff) -> TimeSpan"""
3598 return _misc
.TimeSpan___iadd__(*args
, **kwargs
)
3600 def __isub__(*args
, **kwargs
):
3601 """__isub__(TimeSpan diff) -> TimeSpan"""
3602 return _misc
.TimeSpan___isub__(*args
, **kwargs
)
3604 def __imul__(*args
, **kwargs
):
3605 """__imul__(int n) -> TimeSpan"""
3606 return _misc
.TimeSpan___imul__(*args
, **kwargs
)
3608 def __neg__(*args
, **kwargs
):
3609 """__neg__() -> TimeSpan"""
3610 return _misc
.TimeSpan___neg__(*args
, **kwargs
)
3612 def __add__(*args
, **kwargs
):
3613 """__add__(TimeSpan other) -> TimeSpan"""
3614 return _misc
.TimeSpan___add__(*args
, **kwargs
)
3616 def __sub__(*args
, **kwargs
):
3617 """__sub__(TimeSpan other) -> TimeSpan"""
3618 return _misc
.TimeSpan___sub__(*args
, **kwargs
)
3620 def __mul__(*args
, **kwargs
):
3621 """__mul__(int n) -> TimeSpan"""
3622 return _misc
.TimeSpan___mul__(*args
, **kwargs
)
3624 def __rmul__(*args
, **kwargs
):
3625 """__rmul__(int n) -> TimeSpan"""
3626 return _misc
.TimeSpan___rmul__(*args
, **kwargs
)
3628 def __lt__(*args
, **kwargs
):
3629 """__lt__(TimeSpan other) -> bool"""
3630 return _misc
.TimeSpan___lt__(*args
, **kwargs
)
3632 def __le__(*args
, **kwargs
):
3633 """__le__(TimeSpan other) -> bool"""
3634 return _misc
.TimeSpan___le__(*args
, **kwargs
)
3636 def __gt__(*args
, **kwargs
):
3637 """__gt__(TimeSpan other) -> bool"""
3638 return _misc
.TimeSpan___gt__(*args
, **kwargs
)
3640 def __ge__(*args
, **kwargs
):
3641 """__ge__(TimeSpan other) -> bool"""
3642 return _misc
.TimeSpan___ge__(*args
, **kwargs
)
3644 def __eq__(*args
, **kwargs
):
3645 """__eq__(TimeSpan other) -> bool"""
3646 return _misc
.TimeSpan___eq__(*args
, **kwargs
)
3648 def __ne__(*args
, **kwargs
):
3649 """__ne__(TimeSpan other) -> bool"""
3650 return _misc
.TimeSpan___ne__(*args
, **kwargs
)
3652 def IsNull(*args
, **kwargs
):
3653 """IsNull() -> bool"""
3654 return _misc
.TimeSpan_IsNull(*args
, **kwargs
)
3656 def IsPositive(*args
, **kwargs
):
3657 """IsPositive() -> bool"""
3658 return _misc
.TimeSpan_IsPositive(*args
, **kwargs
)
3660 def IsNegative(*args
, **kwargs
):
3661 """IsNegative() -> bool"""
3662 return _misc
.TimeSpan_IsNegative(*args
, **kwargs
)
3664 def IsEqualTo(*args
, **kwargs
):
3665 """IsEqualTo(TimeSpan ts) -> bool"""
3666 return _misc
.TimeSpan_IsEqualTo(*args
, **kwargs
)
3668 def IsLongerThan(*args
, **kwargs
):
3669 """IsLongerThan(TimeSpan ts) -> bool"""
3670 return _misc
.TimeSpan_IsLongerThan(*args
, **kwargs
)
3672 def IsShorterThan(*args
, **kwargs
):
3673 """IsShorterThan(TimeSpan t) -> bool"""
3674 return _misc
.TimeSpan_IsShorterThan(*args
, **kwargs
)
3676 def GetWeeks(*args
, **kwargs
):
3677 """GetWeeks() -> int"""
3678 return _misc
.TimeSpan_GetWeeks(*args
, **kwargs
)
3680 def GetDays(*args
, **kwargs
):
3681 """GetDays() -> int"""
3682 return _misc
.TimeSpan_GetDays(*args
, **kwargs
)
3684 def GetHours(*args
, **kwargs
):
3685 """GetHours() -> int"""
3686 return _misc
.TimeSpan_GetHours(*args
, **kwargs
)
3688 def GetMinutes(*args
, **kwargs
):
3689 """GetMinutes() -> int"""
3690 return _misc
.TimeSpan_GetMinutes(*args
, **kwargs
)
3692 def GetSeconds(*args
, **kwargs
):
3693 """GetSeconds() -> wxLongLong"""
3694 return _misc
.TimeSpan_GetSeconds(*args
, **kwargs
)
3696 def GetMilliseconds(*args
, **kwargs
):
3697 """GetMilliseconds() -> wxLongLong"""
3698 return _misc
.TimeSpan_GetMilliseconds(*args
, **kwargs
)
3700 def Format(*args
, **kwargs
):
3701 """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString"""
3702 return _misc
.TimeSpan_Format(*args
, **kwargs
)
3705 return '<wxTimeSpan: \"%s\" at %s>' % ( self
.Format(), self
.this
)
3707 return self
.Format()
3710 class TimeSpanPtr(TimeSpan
):
3711 def __init__(self
, this
):
3713 if not hasattr(self
,"thisown"): self
.thisown
= 0
3714 self
.__class
__ = TimeSpan
3715 _misc
.TimeSpan_swigregister(TimeSpanPtr
)
3717 def TimeSpan_Seconds(*args
, **kwargs
):
3718 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3719 return _misc
.TimeSpan_Seconds(*args
, **kwargs
)
3721 def TimeSpan_Second(*args
, **kwargs
):
3722 """TimeSpan_Second() -> TimeSpan"""
3723 return _misc
.TimeSpan_Second(*args
, **kwargs
)
3725 def TimeSpan_Minutes(*args
, **kwargs
):
3726 """TimeSpan_Minutes(long min) -> TimeSpan"""
3727 return _misc
.TimeSpan_Minutes(*args
, **kwargs
)
3729 def TimeSpan_Minute(*args
, **kwargs
):
3730 """TimeSpan_Minute() -> TimeSpan"""
3731 return _misc
.TimeSpan_Minute(*args
, **kwargs
)
3733 def TimeSpan_Hours(*args
, **kwargs
):
3734 """TimeSpan_Hours(long hours) -> TimeSpan"""
3735 return _misc
.TimeSpan_Hours(*args
, **kwargs
)
3737 def TimeSpan_Hour(*args
, **kwargs
):
3738 """TimeSpan_Hour() -> TimeSpan"""
3739 return _misc
.TimeSpan_Hour(*args
, **kwargs
)
3741 def TimeSpan_Days(*args
, **kwargs
):
3742 """TimeSpan_Days(long days) -> TimeSpan"""
3743 return _misc
.TimeSpan_Days(*args
, **kwargs
)
3745 def TimeSpan_Day(*args
, **kwargs
):
3746 """TimeSpan_Day() -> TimeSpan"""
3747 return _misc
.TimeSpan_Day(*args
, **kwargs
)
3749 def TimeSpan_Weeks(*args
, **kwargs
):
3750 """TimeSpan_Weeks(long days) -> TimeSpan"""
3751 return _misc
.TimeSpan_Weeks(*args
, **kwargs
)
3753 def TimeSpan_Week(*args
, **kwargs
):
3754 """TimeSpan_Week() -> TimeSpan"""
3755 return _misc
.TimeSpan_Week(*args
, **kwargs
)
3757 class DateSpan(object):
3759 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3760 def __init__(self
, *args
, **kwargs
):
3761 """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
3762 newobj
= _misc
.new_DateSpan(*args
, **kwargs
)
3763 self
.this
= newobj
.this
3766 def __del__(self
, destroy
=_misc
.delete_DateSpan
):
3769 if self
.thisown
: destroy(self
)
3772 def Days(*args
, **kwargs
):
3773 """DateSpan.Days(int days) -> DateSpan"""
3774 return _misc
.DateSpan_Days(*args
, **kwargs
)
3776 Days
= staticmethod(Days
)
3777 def Day(*args
, **kwargs
):
3778 """DateSpan.Day() -> DateSpan"""
3779 return _misc
.DateSpan_Day(*args
, **kwargs
)
3781 Day
= staticmethod(Day
)
3782 def Weeks(*args
, **kwargs
):
3783 """DateSpan.Weeks(int weeks) -> DateSpan"""
3784 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3786 Weeks
= staticmethod(Weeks
)
3787 def Week(*args
, **kwargs
):
3788 """DateSpan.Week() -> DateSpan"""
3789 return _misc
.DateSpan_Week(*args
, **kwargs
)
3791 Week
= staticmethod(Week
)
3792 def Months(*args
, **kwargs
):
3793 """DateSpan.Months(int mon) -> DateSpan"""
3794 return _misc
.DateSpan_Months(*args
, **kwargs
)
3796 Months
= staticmethod(Months
)
3797 def Month(*args
, **kwargs
):
3798 """DateSpan.Month() -> DateSpan"""
3799 return _misc
.DateSpan_Month(*args
, **kwargs
)
3801 Month
= staticmethod(Month
)
3802 def Years(*args
, **kwargs
):
3803 """DateSpan.Years(int years) -> DateSpan"""
3804 return _misc
.DateSpan_Years(*args
, **kwargs
)
3806 Years
= staticmethod(Years
)
3807 def Year(*args
, **kwargs
):
3808 """DateSpan.Year() -> DateSpan"""
3809 return _misc
.DateSpan_Year(*args
, **kwargs
)
3811 Year
= staticmethod(Year
)
3812 def SetYears(*args
, **kwargs
):
3813 """SetYears(int n) -> DateSpan"""
3814 return _misc
.DateSpan_SetYears(*args
, **kwargs
)
3816 def SetMonths(*args
, **kwargs
):
3817 """SetMonths(int n) -> DateSpan"""
3818 return _misc
.DateSpan_SetMonths(*args
, **kwargs
)
3820 def SetWeeks(*args
, **kwargs
):
3821 """SetWeeks(int n) -> DateSpan"""
3822 return _misc
.DateSpan_SetWeeks(*args
, **kwargs
)
3824 def SetDays(*args
, **kwargs
):
3825 """SetDays(int n) -> DateSpan"""
3826 return _misc
.DateSpan_SetDays(*args
, **kwargs
)
3828 def GetYears(*args
, **kwargs
):
3829 """GetYears() -> int"""
3830 return _misc
.DateSpan_GetYears(*args
, **kwargs
)
3832 def GetMonths(*args
, **kwargs
):
3833 """GetMonths() -> int"""
3834 return _misc
.DateSpan_GetMonths(*args
, **kwargs
)
3836 def GetWeeks(*args
, **kwargs
):
3837 """GetWeeks() -> int"""
3838 return _misc
.DateSpan_GetWeeks(*args
, **kwargs
)
3840 def GetDays(*args
, **kwargs
):
3841 """GetDays() -> int"""
3842 return _misc
.DateSpan_GetDays(*args
, **kwargs
)
3844 def GetTotalDays(*args
, **kwargs
):
3845 """GetTotalDays() -> int"""
3846 return _misc
.DateSpan_GetTotalDays(*args
, **kwargs
)
3848 def Add(*args
, **kwargs
):
3849 """Add(DateSpan other) -> DateSpan"""
3850 return _misc
.DateSpan_Add(*args
, **kwargs
)
3852 def Subtract(*args
, **kwargs
):
3853 """Subtract(DateSpan other) -> DateSpan"""
3854 return _misc
.DateSpan_Subtract(*args
, **kwargs
)
3856 def Neg(*args
, **kwargs
):
3857 """Neg() -> DateSpan"""
3858 return _misc
.DateSpan_Neg(*args
, **kwargs
)
3860 def Multiply(*args
, **kwargs
):
3861 """Multiply(int factor) -> DateSpan"""
3862 return _misc
.DateSpan_Multiply(*args
, **kwargs
)
3864 def __iadd__(*args
, **kwargs
):
3865 """__iadd__(DateSpan other) -> DateSpan"""
3866 return _misc
.DateSpan___iadd__(*args
, **kwargs
)
3868 def __isub__(*args
, **kwargs
):
3869 """__isub__(DateSpan other) -> DateSpan"""
3870 return _misc
.DateSpan___isub__(*args
, **kwargs
)
3872 def __neg__(*args
, **kwargs
):
3873 """__neg__() -> DateSpan"""
3874 return _misc
.DateSpan___neg__(*args
, **kwargs
)
3876 def __imul__(*args
, **kwargs
):
3877 """__imul__(int factor) -> DateSpan"""
3878 return _misc
.DateSpan___imul__(*args
, **kwargs
)
3880 def __add__(*args
, **kwargs
):
3881 """__add__(DateSpan other) -> DateSpan"""
3882 return _misc
.DateSpan___add__(*args
, **kwargs
)
3884 def __sub__(*args
, **kwargs
):
3885 """__sub__(DateSpan other) -> DateSpan"""
3886 return _misc
.DateSpan___sub__(*args
, **kwargs
)
3888 def __mul__(*args
, **kwargs
):
3889 """__mul__(int n) -> DateSpan"""
3890 return _misc
.DateSpan___mul__(*args
, **kwargs
)
3892 def __rmul__(*args
, **kwargs
):
3893 """__rmul__(int n) -> DateSpan"""
3894 return _misc
.DateSpan___rmul__(*args
, **kwargs
)
3896 def __eq__(*args
, **kwargs
):
3897 """__eq__(DateSpan other) -> bool"""
3898 return _misc
.DateSpan___eq__(*args
, **kwargs
)
3900 def __ne__(*args
, **kwargs
):
3901 """__ne__(DateSpan other) -> bool"""
3902 return _misc
.DateSpan___ne__(*args
, **kwargs
)
3905 class DateSpanPtr(DateSpan
):
3906 def __init__(self
, this
):
3908 if not hasattr(self
,"thisown"): self
.thisown
= 0
3909 self
.__class
__ = DateSpan
3910 _misc
.DateSpan_swigregister(DateSpanPtr
)
3912 def DateSpan_Days(*args
, **kwargs
):
3913 """DateSpan_Days(int days) -> DateSpan"""
3914 return _misc
.DateSpan_Days(*args
, **kwargs
)
3916 def DateSpan_Day(*args
, **kwargs
):
3917 """DateSpan_Day() -> DateSpan"""
3918 return _misc
.DateSpan_Day(*args
, **kwargs
)
3920 def DateSpan_Weeks(*args
, **kwargs
):
3921 """DateSpan_Weeks(int weeks) -> DateSpan"""
3922 return _misc
.DateSpan_Weeks(*args
, **kwargs
)
3924 def DateSpan_Week(*args
, **kwargs
):
3925 """DateSpan_Week() -> DateSpan"""
3926 return _misc
.DateSpan_Week(*args
, **kwargs
)
3928 def DateSpan_Months(*args
, **kwargs
):
3929 """DateSpan_Months(int mon) -> DateSpan"""
3930 return _misc
.DateSpan_Months(*args
, **kwargs
)
3932 def DateSpan_Month(*args
, **kwargs
):
3933 """DateSpan_Month() -> DateSpan"""
3934 return _misc
.DateSpan_Month(*args
, **kwargs
)
3936 def DateSpan_Years(*args
, **kwargs
):
3937 """DateSpan_Years(int years) -> DateSpan"""
3938 return _misc
.DateSpan_Years(*args
, **kwargs
)
3940 def DateSpan_Year(*args
, **kwargs
):
3941 """DateSpan_Year() -> DateSpan"""
3942 return _misc
.DateSpan_Year(*args
, **kwargs
)
3945 def GetLocalTime(*args
, **kwargs
):
3946 """GetLocalTime() -> long"""
3947 return _misc
.GetLocalTime(*args
, **kwargs
)
3949 def GetUTCTime(*args
, **kwargs
):
3950 """GetUTCTime() -> long"""
3951 return _misc
.GetUTCTime(*args
, **kwargs
)
3953 def GetCurrentTime(*args
, **kwargs
):
3954 """GetCurrentTime() -> long"""
3955 return _misc
.GetCurrentTime(*args
, **kwargs
)
3957 def GetLocalTimeMillis(*args
, **kwargs
):
3958 """GetLocalTimeMillis() -> wxLongLong"""
3959 return _misc
.GetLocalTimeMillis(*args
, **kwargs
)
3960 #---------------------------------------------------------------------------
3962 DF_INVALID
= _misc
.DF_INVALID
3963 DF_TEXT
= _misc
.DF_TEXT
3964 DF_BITMAP
= _misc
.DF_BITMAP
3965 DF_METAFILE
= _misc
.DF_METAFILE
3966 DF_SYLK
= _misc
.DF_SYLK
3967 DF_DIF
= _misc
.DF_DIF
3968 DF_TIFF
= _misc
.DF_TIFF
3969 DF_OEMTEXT
= _misc
.DF_OEMTEXT
3970 DF_DIB
= _misc
.DF_DIB
3971 DF_PALETTE
= _misc
.DF_PALETTE
3972 DF_PENDATA
= _misc
.DF_PENDATA
3973 DF_RIFF
= _misc
.DF_RIFF
3974 DF_WAVE
= _misc
.DF_WAVE
3975 DF_UNICODETEXT
= _misc
.DF_UNICODETEXT
3976 DF_ENHMETAFILE
= _misc
.DF_ENHMETAFILE
3977 DF_FILENAME
= _misc
.DF_FILENAME
3978 DF_LOCALE
= _misc
.DF_LOCALE
3979 DF_PRIVATE
= _misc
.DF_PRIVATE
3980 DF_HTML
= _misc
.DF_HTML
3981 DF_MAX
= _misc
.DF_MAX
3982 class DataFormat(object):
3984 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3985 def __init__(self
, *args
, **kwargs
):
3986 """__init__(wxDataFormatId type) -> DataFormat"""
3987 newobj
= _misc
.new_DataFormat(*args
, **kwargs
)
3988 self
.this
= newobj
.this
3991 def __del__(self
, destroy
=_misc
.delete_DataFormat
):
3994 if self
.thisown
: destroy(self
)
3999 __eq__(wxDataFormatId format) -> bool
4000 __eq__(DataFormat format) -> bool
4002 return _misc
.DataFormat___eq__(*args
)
4006 __ne__(wxDataFormatId format) -> bool
4007 __ne__(DataFormat format) -> bool
4009 return _misc
.DataFormat___ne__(*args
)
4011 def SetType(*args
, **kwargs
):
4012 """SetType(wxDataFormatId format)"""
4013 return _misc
.DataFormat_SetType(*args
, **kwargs
)
4015 def GetType(*args
, **kwargs
):
4016 """GetType() -> wxDataFormatId"""
4017 return _misc
.DataFormat_GetType(*args
, **kwargs
)
4019 def GetId(*args
, **kwargs
):
4020 """GetId() -> wxString"""
4021 return _misc
.DataFormat_GetId(*args
, **kwargs
)
4023 def SetId(*args
, **kwargs
):
4024 """SetId(wxString format)"""
4025 return _misc
.DataFormat_SetId(*args
, **kwargs
)
4028 class DataFormatPtr(DataFormat
):
4029 def __init__(self
, this
):
4031 if not hasattr(self
,"thisown"): self
.thisown
= 0
4032 self
.__class
__ = DataFormat
4033 _misc
.DataFormat_swigregister(DataFormatPtr
)
4035 def CustomDataFormat(*args
, **kwargs
):
4036 """CustomDataFormat(wxString format) -> DataFormat"""
4037 val
= _misc
.new_CustomDataFormat(*args
, **kwargs
)
4041 class DataObject(object):
4042 def __init__(self
): raise RuntimeError, "No constructor defined"
4044 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4045 Get
= _misc
.DataObject_Get
4046 Set
= _misc
.DataObject_Set
4047 Both
= _misc
.DataObject_Both
4048 def __del__(self
, destroy
=_misc
.delete_DataObject
):
4051 if self
.thisown
: destroy(self
)
4054 def GetPreferredFormat(*args
, **kwargs
):
4055 """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat"""
4056 return _misc
.DataObject_GetPreferredFormat(*args
, **kwargs
)
4058 def GetFormatCount(*args
, **kwargs
):
4059 """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t"""
4060 return _misc
.DataObject_GetFormatCount(*args
, **kwargs
)
4062 def IsSupported(*args
, **kwargs
):
4063 """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool"""
4064 return _misc
.DataObject_IsSupported(*args
, **kwargs
)
4066 def GetDataSize(*args
, **kwargs
):
4067 """GetDataSize(DataFormat format) -> size_t"""
4068 return _misc
.DataObject_GetDataSize(*args
, **kwargs
)
4070 def GetAllFormats(*args
, **kwargs
):
4071 """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)"""
4072 return _misc
.DataObject_GetAllFormats(*args
, **kwargs
)
4074 def GetDataHere(*args
, **kwargs
):
4075 """GetDataHere(DataFormat format, void buf) -> bool"""
4076 return _misc
.DataObject_GetDataHere(*args
, **kwargs
)
4078 def SetData(*args
, **kwargs
):
4079 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4080 return _misc
.DataObject_SetData(*args
, **kwargs
)
4083 class DataObjectPtr(DataObject
):
4084 def __init__(self
, this
):
4086 if not hasattr(self
,"thisown"): self
.thisown
= 0
4087 self
.__class
__ = DataObject
4088 _misc
.DataObject_swigregister(DataObjectPtr
)
4089 FormatInvalid
= cvar
.FormatInvalid
4091 class DataObjectSimple(DataObject
):
4093 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4094 def __init__(self
, *args
, **kwargs
):
4095 """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple"""
4096 newobj
= _misc
.new_DataObjectSimple(*args
, **kwargs
)
4097 self
.this
= newobj
.this
4100 def GetFormat(*args
, **kwargs
):
4101 """GetFormat() -> DataFormat"""
4102 return _misc
.DataObjectSimple_GetFormat(*args
, **kwargs
)
4104 def SetFormat(*args
, **kwargs
):
4105 """SetFormat(DataFormat format)"""
4106 return _misc
.DataObjectSimple_SetFormat(*args
, **kwargs
)
4109 class DataObjectSimplePtr(DataObjectSimple
):
4110 def __init__(self
, this
):
4112 if not hasattr(self
,"thisown"): self
.thisown
= 0
4113 self
.__class
__ = DataObjectSimple
4114 _misc
.DataObjectSimple_swigregister(DataObjectSimplePtr
)
4116 class PyDataObjectSimple(DataObjectSimple
):
4118 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4119 def __init__(self
, *args
, **kwargs
):
4120 """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4121 newobj
= _misc
.new_PyDataObjectSimple(*args
, **kwargs
)
4122 self
.this
= newobj
.this
4125 self
._setCallbackInfo
(self
, PyDataObjectSimple
)
4127 def _setCallbackInfo(*args
, **kwargs
):
4128 """_setCallbackInfo(PyObject self, PyObject _class)"""
4129 return _misc
.PyDataObjectSimple__setCallbackInfo(*args
, **kwargs
)
4132 class PyDataObjectSimplePtr(PyDataObjectSimple
):
4133 def __init__(self
, this
):
4135 if not hasattr(self
,"thisown"): self
.thisown
= 0
4136 self
.__class
__ = PyDataObjectSimple
4137 _misc
.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr
)
4139 class DataObjectComposite(DataObject
):
4141 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4142 def __init__(self
, *args
, **kwargs
):
4143 """__init__() -> DataObjectComposite"""
4144 newobj
= _misc
.new_DataObjectComposite(*args
, **kwargs
)
4145 self
.this
= newobj
.this
4148 def Add(*args
, **kwargs
):
4149 """Add(DataObjectSimple dataObject, int preferred=False)"""
4150 val
= _misc
.DataObjectComposite_Add(*args
, **kwargs
)
4155 class DataObjectCompositePtr(DataObjectComposite
):
4156 def __init__(self
, this
):
4158 if not hasattr(self
,"thisown"): self
.thisown
= 0
4159 self
.__class
__ = DataObjectComposite
4160 _misc
.DataObjectComposite_swigregister(DataObjectCompositePtr
)
4162 class TextDataObject(DataObjectSimple
):
4164 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4165 def __init__(self
, *args
, **kwargs
):
4166 """__init__(wxString text=wxPyEmptyString) -> TextDataObject"""
4167 newobj
= _misc
.new_TextDataObject(*args
, **kwargs
)
4168 self
.this
= newobj
.this
4171 def GetTextLength(*args
, **kwargs
):
4172 """GetTextLength() -> size_t"""
4173 return _misc
.TextDataObject_GetTextLength(*args
, **kwargs
)
4175 def GetText(*args
, **kwargs
):
4176 """GetText() -> wxString"""
4177 return _misc
.TextDataObject_GetText(*args
, **kwargs
)
4179 def SetText(*args
, **kwargs
):
4180 """SetText(wxString text)"""
4181 return _misc
.TextDataObject_SetText(*args
, **kwargs
)
4184 class TextDataObjectPtr(TextDataObject
):
4185 def __init__(self
, this
):
4187 if not hasattr(self
,"thisown"): self
.thisown
= 0
4188 self
.__class
__ = TextDataObject
4189 _misc
.TextDataObject_swigregister(TextDataObjectPtr
)
4191 class PyTextDataObject(TextDataObject
):
4193 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4194 def __init__(self
, *args
, **kwargs
):
4195 """__init__(wxString text=wxPyEmptyString) -> PyTextDataObject"""
4196 newobj
= _misc
.new_PyTextDataObject(*args
, **kwargs
)
4197 self
.this
= newobj
.this
4200 self
._setCallbackInfo
(self
, PyTextDataObject
)
4202 def _setCallbackInfo(*args
, **kwargs
):
4203 """_setCallbackInfo(PyObject self, PyObject _class)"""
4204 return _misc
.PyTextDataObject__setCallbackInfo(*args
, **kwargs
)
4207 class PyTextDataObjectPtr(PyTextDataObject
):
4208 def __init__(self
, this
):
4210 if not hasattr(self
,"thisown"): self
.thisown
= 0
4211 self
.__class
__ = PyTextDataObject
4212 _misc
.PyTextDataObject_swigregister(PyTextDataObjectPtr
)
4214 class BitmapDataObject(DataObjectSimple
):
4216 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4217 def __init__(self
, *args
, **kwargs
):
4218 """__init__(wxBitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4219 newobj
= _misc
.new_BitmapDataObject(*args
, **kwargs
)
4220 self
.this
= newobj
.this
4223 def GetBitmap(*args
, **kwargs
):
4224 """GetBitmap() -> wxBitmap"""
4225 return _misc
.BitmapDataObject_GetBitmap(*args
, **kwargs
)
4227 def SetBitmap(*args
, **kwargs
):
4228 """SetBitmap(wxBitmap bitmap)"""
4229 return _misc
.BitmapDataObject_SetBitmap(*args
, **kwargs
)
4232 class BitmapDataObjectPtr(BitmapDataObject
):
4233 def __init__(self
, this
):
4235 if not hasattr(self
,"thisown"): self
.thisown
= 0
4236 self
.__class
__ = BitmapDataObject
4237 _misc
.BitmapDataObject_swigregister(BitmapDataObjectPtr
)
4239 class PyBitmapDataObject(BitmapDataObject
):
4241 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4242 def __init__(self
, *args
, **kwargs
):
4243 """__init__(wxBitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4244 newobj
= _misc
.new_PyBitmapDataObject(*args
, **kwargs
)
4245 self
.this
= newobj
.this
4248 self
._setCallbackInfo
(self
, PyBitmapDataObject
)
4250 def _setCallbackInfo(*args
, **kwargs
):
4251 """_setCallbackInfo(PyObject self, PyObject _class)"""
4252 return _misc
.PyBitmapDataObject__setCallbackInfo(*args
, **kwargs
)
4255 class PyBitmapDataObjectPtr(PyBitmapDataObject
):
4256 def __init__(self
, this
):
4258 if not hasattr(self
,"thisown"): self
.thisown
= 0
4259 self
.__class
__ = PyBitmapDataObject
4260 _misc
.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr
)
4262 class FileDataObject(DataObjectSimple
):
4264 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4265 def __init__(self
, *args
, **kwargs
):
4266 """__init__() -> FileDataObject"""
4267 newobj
= _misc
.new_FileDataObject(*args
, **kwargs
)
4268 self
.this
= newobj
.this
4271 def GetFilenames(*args
, **kwargs
):
4272 """GetFilenames() -> wxArrayString"""
4273 return _misc
.FileDataObject_GetFilenames(*args
, **kwargs
)
4275 def AddFile(*args
, **kwargs
):
4276 """AddFile(wxString filename)"""
4277 return _misc
.FileDataObject_AddFile(*args
, **kwargs
)
4280 class FileDataObjectPtr(FileDataObject
):
4281 def __init__(self
, this
):
4283 if not hasattr(self
,"thisown"): self
.thisown
= 0
4284 self
.__class
__ = FileDataObject
4285 _misc
.FileDataObject_swigregister(FileDataObjectPtr
)
4287 class CustomDataObject(DataObjectSimple
):
4289 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4290 def __init__(self
, *args
, **kwargs
):
4291 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
4292 newobj
= _misc
.new_CustomDataObject(*args
, **kwargs
)
4293 self
.this
= newobj
.this
4296 def TakeData(*args
, **kwargs
):
4297 """TakeData(PyObject data)"""
4298 return _misc
.CustomDataObject_TakeData(*args
, **kwargs
)
4300 def SetData(*args
, **kwargs
):
4301 """SetData(PyObject data) -> bool"""
4302 return _misc
.CustomDataObject_SetData(*args
, **kwargs
)
4304 def GetSize(*args
, **kwargs
):
4305 """GetSize() -> size_t"""
4306 return _misc
.CustomDataObject_GetSize(*args
, **kwargs
)
4308 def GetData(*args
, **kwargs
):
4309 """GetData() -> PyObject"""
4310 return _misc
.CustomDataObject_GetData(*args
, **kwargs
)
4313 class CustomDataObjectPtr(CustomDataObject
):
4314 def __init__(self
, this
):
4316 if not hasattr(self
,"thisown"): self
.thisown
= 0
4317 self
.__class
__ = CustomDataObject
4318 _misc
.CustomDataObject_swigregister(CustomDataObjectPtr
)
4320 class URLDataObject(DataObjectComposite
):
4322 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4323 def __init__(self
, *args
, **kwargs
):
4324 """__init__() -> URLDataObject"""
4325 newobj
= _misc
.new_URLDataObject(*args
, **kwargs
)
4326 self
.this
= newobj
.this
4329 def GetURL(*args
, **kwargs
):
4330 """GetURL() -> wxString"""
4331 return _misc
.URLDataObject_GetURL(*args
, **kwargs
)
4333 def SetURL(*args
, **kwargs
):
4334 """SetURL(wxString url)"""
4335 return _misc
.URLDataObject_SetURL(*args
, **kwargs
)
4338 class URLDataObjectPtr(URLDataObject
):
4339 def __init__(self
, this
):
4341 if not hasattr(self
,"thisown"): self
.thisown
= 0
4342 self
.__class
__ = URLDataObject
4343 _misc
.URLDataObject_swigregister(URLDataObjectPtr
)
4345 class MetafileDataObject(DataObjectSimple
):
4347 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4348 def __init__(self
, *args
, **kwargs
):
4349 """__init__() -> MetafileDataObject"""
4350 newobj
= _misc
.new_MetafileDataObject(*args
, **kwargs
)
4351 self
.this
= newobj
.this
4354 def SetMetafile(*args
, **kwargs
):
4355 """SetMetafile(wxMetafile metafile)"""
4356 return _misc
.MetafileDataObject_SetMetafile(*args
, **kwargs
)
4358 def GetMetafile(*args
, **kwargs
):
4359 """GetMetafile() -> wxMetafile"""
4360 return _misc
.MetafileDataObject_GetMetafile(*args
, **kwargs
)
4363 class MetafileDataObjectPtr(MetafileDataObject
):
4364 def __init__(self
, this
):
4366 if not hasattr(self
,"thisown"): self
.thisown
= 0
4367 self
.__class
__ = MetafileDataObject
4368 _misc
.MetafileDataObject_swigregister(MetafileDataObjectPtr
)
4370 #---------------------------------------------------------------------------
4372 Drag_CopyOnly
= _misc
.Drag_CopyOnly
4373 Drag_AllowMove
= _misc
.Drag_AllowMove
4374 Drag_DefaultMove
= _misc
.Drag_DefaultMove
4375 DragError
= _misc
.DragError
4376 DragNone
= _misc
.DragNone
4377 DragCopy
= _misc
.DragCopy
4378 DragMove
= _misc
.DragMove
4379 DragLink
= _misc
.DragLink
4380 DragCancel
= _misc
.DragCancel
4382 def IsDragResultOk(*args
, **kwargs
):
4383 """IsDragResultOk(wxDragResult res) -> bool"""
4384 return _misc
.IsDragResultOk(*args
, **kwargs
)
4385 class DropSource(object):
4387 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4388 def __init__(self
, *args
, **kwargs
):
4390 __init__(Window win=None, wxCursor copy=wxNullCursor, wxCursor move=wxNullCursor,
4391 wxCursor none=wxNullCursor) -> DropSource
4393 newobj
= _misc
.new_DropSource(*args
, **kwargs
)
4394 self
.this
= newobj
.this
4397 def _setCallbackInfo(*args
, **kwargs
):
4398 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4399 return _misc
.DropSource__setCallbackInfo(*args
, **kwargs
)
4401 def __del__(self
, destroy
=_misc
.delete_DropSource
):
4404 if self
.thisown
: destroy(self
)
4407 def SetData(*args
, **kwargs
):
4408 """SetData(DataObject data)"""
4409 return _misc
.DropSource_SetData(*args
, **kwargs
)
4411 def GetDataObject(*args
, **kwargs
):
4412 """GetDataObject() -> DataObject"""
4413 return _misc
.DropSource_GetDataObject(*args
, **kwargs
)
4415 def SetCursor(*args
, **kwargs
):
4416 """SetCursor(wxDragResult res, wxCursor cursor)"""
4417 return _misc
.DropSource_SetCursor(*args
, **kwargs
)
4419 def DoDragDrop(*args
, **kwargs
):
4420 """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult"""
4421 return _misc
.DropSource_DoDragDrop(*args
, **kwargs
)
4423 def base_GiveFeedback(*args
, **kwargs
):
4424 """base_GiveFeedback(wxDragResult effect) -> bool"""
4425 return _misc
.DropSource_base_GiveFeedback(*args
, **kwargs
)
4428 class DropSourcePtr(DropSource
):
4429 def __init__(self
, this
):
4431 if not hasattr(self
,"thisown"): self
.thisown
= 0
4432 self
.__class
__ = DropSource
4433 _misc
.DropSource_swigregister(DropSourcePtr
)
4435 class DropTarget(object):
4437 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4438 def __init__(self
, *args
, **kwargs
):
4439 """__init__(DataObject dataObject=None) -> DropTarget"""
4440 newobj
= _misc
.new_DropTarget(*args
, **kwargs
)
4441 self
.this
= newobj
.this
4444 if args
: args
[0].thisown
= 0;
4445 self
._setCallbackInfo
(self
, DropTarget
)
4447 def _setCallbackInfo(*args
, **kwargs
):
4448 """_setCallbackInfo(PyObject self, PyObject _class)"""
4449 return _misc
.DropTarget__setCallbackInfo(*args
, **kwargs
)
4451 def __del__(self
, destroy
=_misc
.delete_DropTarget
):
4454 if self
.thisown
: destroy(self
)
4457 def GetDataObject(*args
, **kwargs
):
4458 """GetDataObject() -> DataObject"""
4459 return _misc
.DropTarget_GetDataObject(*args
, **kwargs
)
4461 def SetDataObject(*args
, **kwargs
):
4462 """SetDataObject(DataObject dataObject)"""
4463 val
= _misc
.DropTarget_SetDataObject(*args
, **kwargs
)
4467 def base_OnEnter(*args
, **kwargs
):
4468 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4469 return _misc
.DropTarget_base_OnEnter(*args
, **kwargs
)
4471 def base_OnDragOver(*args
, **kwargs
):
4472 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4473 return _misc
.DropTarget_base_OnDragOver(*args
, **kwargs
)
4475 def base_OnLeave(*args
, **kwargs
):
4476 """base_OnLeave()"""
4477 return _misc
.DropTarget_base_OnLeave(*args
, **kwargs
)
4479 def base_OnDrop(*args
, **kwargs
):
4480 """base_OnDrop(int x, int y) -> bool"""
4481 return _misc
.DropTarget_base_OnDrop(*args
, **kwargs
)
4483 def GetData(*args
, **kwargs
):
4484 """GetData() -> bool"""
4485 return _misc
.DropTarget_GetData(*args
, **kwargs
)
4488 class DropTargetPtr(DropTarget
):
4489 def __init__(self
, this
):
4491 if not hasattr(self
,"thisown"): self
.thisown
= 0
4492 self
.__class
__ = DropTarget
4493 _misc
.DropTarget_swigregister(DropTargetPtr
)
4495 PyDropTarget
= DropTarget
4496 class TextDropTarget(DropTarget
):
4498 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4499 def __init__(self
, *args
, **kwargs
):
4500 """__init__() -> TextDropTarget"""
4501 newobj
= _misc
.new_TextDropTarget(*args
, **kwargs
)
4502 self
.this
= newobj
.this
4505 self
._setCallbackInfo
(self
, TextDropTarget
)
4507 def _setCallbackInfo(*args
, **kwargs
):
4508 """_setCallbackInfo(PyObject self, PyObject _class)"""
4509 return _misc
.TextDropTarget__setCallbackInfo(*args
, **kwargs
)
4511 def base_OnEnter(*args
, **kwargs
):
4512 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4513 return _misc
.TextDropTarget_base_OnEnter(*args
, **kwargs
)
4515 def base_OnDragOver(*args
, **kwargs
):
4516 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4517 return _misc
.TextDropTarget_base_OnDragOver(*args
, **kwargs
)
4519 def base_OnLeave(*args
, **kwargs
):
4520 """base_OnLeave()"""
4521 return _misc
.TextDropTarget_base_OnLeave(*args
, **kwargs
)
4523 def base_OnDrop(*args
, **kwargs
):
4524 """base_OnDrop(int x, int y) -> bool"""
4525 return _misc
.TextDropTarget_base_OnDrop(*args
, **kwargs
)
4527 def base_OnData(*args
, **kwargs
):
4528 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4529 return _misc
.TextDropTarget_base_OnData(*args
, **kwargs
)
4532 class TextDropTargetPtr(TextDropTarget
):
4533 def __init__(self
, this
):
4535 if not hasattr(self
,"thisown"): self
.thisown
= 0
4536 self
.__class
__ = TextDropTarget
4537 _misc
.TextDropTarget_swigregister(TextDropTargetPtr
)
4539 class FileDropTarget(DropTarget
):
4541 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4542 def __init__(self
, *args
, **kwargs
):
4543 """__init__() -> FileDropTarget"""
4544 newobj
= _misc
.new_FileDropTarget(*args
, **kwargs
)
4545 self
.this
= newobj
.this
4548 self
._setCallbackInfo
(self
, FileDropTarget
)
4550 def _setCallbackInfo(*args
, **kwargs
):
4551 """_setCallbackInfo(PyObject self, PyObject _class)"""
4552 return _misc
.FileDropTarget__setCallbackInfo(*args
, **kwargs
)
4554 def base_OnEnter(*args
, **kwargs
):
4555 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4556 return _misc
.FileDropTarget_base_OnEnter(*args
, **kwargs
)
4558 def base_OnDragOver(*args
, **kwargs
):
4559 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4560 return _misc
.FileDropTarget_base_OnDragOver(*args
, **kwargs
)
4562 def base_OnLeave(*args
, **kwargs
):
4563 """base_OnLeave()"""
4564 return _misc
.FileDropTarget_base_OnLeave(*args
, **kwargs
)
4566 def base_OnDrop(*args
, **kwargs
):
4567 """base_OnDrop(int x, int y) -> bool"""
4568 return _misc
.FileDropTarget_base_OnDrop(*args
, **kwargs
)
4570 def base_OnData(*args
, **kwargs
):
4571 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4572 return _misc
.FileDropTarget_base_OnData(*args
, **kwargs
)
4575 class FileDropTargetPtr(FileDropTarget
):
4576 def __init__(self
, this
):
4578 if not hasattr(self
,"thisown"): self
.thisown
= 0
4579 self
.__class
__ = FileDropTarget
4580 _misc
.FileDropTarget_swigregister(FileDropTargetPtr
)
4582 #---------------------------------------------------------------------------
4584 class Clipboard(core
.Object
):
4586 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4587 def __init__(self
, *args
, **kwargs
):
4588 """__init__() -> Clipboard"""
4589 newobj
= _misc
.new_Clipboard(*args
, **kwargs
)
4590 self
.this
= newobj
.this
4593 def __del__(self
, destroy
=_misc
.delete_Clipboard
):
4596 if self
.thisown
: destroy(self
)
4599 def Open(*args
, **kwargs
):
4600 """Open() -> bool"""
4601 return _misc
.Clipboard_Open(*args
, **kwargs
)
4603 def Close(*args
, **kwargs
):
4605 return _misc
.Clipboard_Close(*args
, **kwargs
)
4607 def IsOpened(*args
, **kwargs
):
4608 """IsOpened() -> bool"""
4609 return _misc
.Clipboard_IsOpened(*args
, **kwargs
)
4611 def AddData(*args
, **kwargs
):
4612 """AddData(DataObject data) -> bool"""
4613 return _misc
.Clipboard_AddData(*args
, **kwargs
)
4615 def SetData(*args
, **kwargs
):
4616 """SetData(DataObject data) -> bool"""
4617 return _misc
.Clipboard_SetData(*args
, **kwargs
)
4619 def IsSupported(*args
, **kwargs
):
4620 """IsSupported(DataFormat format) -> bool"""
4621 return _misc
.Clipboard_IsSupported(*args
, **kwargs
)
4623 def GetData(*args
, **kwargs
):
4624 """GetData(DataObject data) -> bool"""
4625 return _misc
.Clipboard_GetData(*args
, **kwargs
)
4627 def Clear(*args
, **kwargs
):
4629 return _misc
.Clipboard_Clear(*args
, **kwargs
)
4631 def Flush(*args
, **kwargs
):
4632 """Flush() -> bool"""
4633 return _misc
.Clipboard_Flush(*args
, **kwargs
)
4635 def UsePrimarySelection(*args
, **kwargs
):
4636 """UsePrimarySelection(bool primary=False)"""
4637 return _misc
.Clipboard_UsePrimarySelection(*args
, **kwargs
)
4640 class ClipboardPtr(Clipboard
):
4641 def __init__(self
, this
):
4643 if not hasattr(self
,"thisown"): self
.thisown
= 0
4644 self
.__class
__ = Clipboard
4645 _misc
.Clipboard_swigregister(ClipboardPtr
)
4647 class ClipboardLocker(object):
4649 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4650 def __init__(self
, *args
, **kwargs
):
4651 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
4652 newobj
= _misc
.new_ClipboardLocker(*args
, **kwargs
)
4653 self
.this
= newobj
.this
4656 def __del__(self
, destroy
=_misc
.delete_ClipboardLocker
):
4659 if self
.thisown
: destroy(self
)
4662 def __nonzero__(*args
, **kwargs
):
4663 """__nonzero__() -> bool"""
4664 return _misc
.ClipboardLocker___nonzero__(*args
, **kwargs
)
4667 class ClipboardLockerPtr(ClipboardLocker
):
4668 def __init__(self
, this
):
4670 if not hasattr(self
,"thisown"): self
.thisown
= 0
4671 self
.__class
__ = ClipboardLocker
4672 _misc
.ClipboardLocker_swigregister(ClipboardLockerPtr
)
4673 TheClipboard
= cvar
.TheClipboard