]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc.py
Applied patch [ 845171 ] Use transparancy mask in wxBitmapShape
[wxWidgets.git] / wxPython / src / gtk / misc.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _misc
5
6 import core
7 wx = core
8 #---------------------------------------------------------------------------
9
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"
103 def __repr__(self):
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)
108
109 GetColour = staticmethod(GetColour)
110 def GetFont(*args, **kwargs):
111 """SystemSettings.GetFont(wxSystemFont index) -> wxFont"""
112 return _misc.SystemSettings_GetFont(*args, **kwargs)
113
114 GetFont = staticmethod(GetFont)
115 def GetMetric(*args, **kwargs):
116 """SystemSettings.GetMetric(wxSystemMetric index) -> int"""
117 return _misc.SystemSettings_GetMetric(*args, **kwargs)
118
119 GetMetric = staticmethod(GetMetric)
120 def HasFeature(*args, **kwargs):
121 """SystemSettings.HasFeature(wxSystemFeature index) -> bool"""
122 return _misc.SystemSettings_HasFeature(*args, **kwargs)
123
124 HasFeature = staticmethod(HasFeature)
125 def GetScreenType(*args, **kwargs):
126 """SystemSettings.GetScreenType() -> wxSystemScreenType"""
127 return _misc.SystemSettings_GetScreenType(*args, **kwargs)
128
129 GetScreenType = staticmethod(GetScreenType)
130 def SetScreenType(*args, **kwargs):
131 """SystemSettings.SetScreenType(wxSystemScreenType screen)"""
132 return _misc.SystemSettings_SetScreenType(*args, **kwargs)
133
134 SetScreenType = staticmethod(SetScreenType)
135
136 class SystemSettingsPtr(SystemSettings):
137 def __init__(self, this):
138 self.this = this
139 if not hasattr(self,"thisown"): self.thisown = 0
140 self.__class__ = SystemSettings
141 _misc.SystemSettings_swigregister(SystemSettingsPtr)
142
143 def SystemSettings_GetColour(*args, **kwargs):
144 """SystemSettings_GetColour(wxSystemColour index) -> wxColour"""
145 return _misc.SystemSettings_GetColour(*args, **kwargs)
146
147 def SystemSettings_GetFont(*args, **kwargs):
148 """SystemSettings_GetFont(wxSystemFont index) -> wxFont"""
149 return _misc.SystemSettings_GetFont(*args, **kwargs)
150
151 def SystemSettings_GetMetric(*args, **kwargs):
152 """SystemSettings_GetMetric(wxSystemMetric index) -> int"""
153 return _misc.SystemSettings_GetMetric(*args, **kwargs)
154
155 def SystemSettings_HasFeature(*args, **kwargs):
156 """SystemSettings_HasFeature(wxSystemFeature index) -> bool"""
157 return _misc.SystemSettings_HasFeature(*args, **kwargs)
158
159 def SystemSettings_GetScreenType(*args, **kwargs):
160 """SystemSettings_GetScreenType() -> wxSystemScreenType"""
161 return _misc.SystemSettings_GetScreenType(*args, **kwargs)
162
163 def SystemSettings_SetScreenType(*args, **kwargs):
164 """SystemSettings_SetScreenType(wxSystemScreenType screen)"""
165 return _misc.SystemSettings_SetScreenType(*args, **kwargs)
166
167 # backwards compatibility aliasses
168 SystemSettings_GetSystemColour = SystemSettings_GetColour
169 SystemSettings_GetSystemFont = SystemSettings_GetFont
170 SystemSettings_GetSystemMetric = SystemSettings_GetMetric
171
172 class SystemOptions(core.Object):
173 def __repr__(self):
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
179 self.thisown = 1
180 del newobj.thisown
181 def SetOption(*args, **kwargs):
182 """SystemOptions.SetOption(wxString name, wxString value)"""
183 return _misc.SystemOptions_SetOption(*args, **kwargs)
184
185 SetOption = staticmethod(SetOption)
186 def SetOptionInt(*args, **kwargs):
187 """SystemOptions.SetOptionInt(wxString name, int value)"""
188 return _misc.SystemOptions_SetOptionInt(*args, **kwargs)
189
190 SetOptionInt = staticmethod(SetOptionInt)
191 def GetOption(*args, **kwargs):
192 """SystemOptions.GetOption(wxString name) -> wxString"""
193 return _misc.SystemOptions_GetOption(*args, **kwargs)
194
195 GetOption = staticmethod(GetOption)
196 def GetOptionInt(*args, **kwargs):
197 """SystemOptions.GetOptionInt(wxString name) -> int"""
198 return _misc.SystemOptions_GetOptionInt(*args, **kwargs)
199
200 GetOptionInt = staticmethod(GetOptionInt)
201 def HasOption(*args, **kwargs):
202 """SystemOptions.HasOption(wxString name) -> bool"""
203 return _misc.SystemOptions_HasOption(*args, **kwargs)
204
205 HasOption = staticmethod(HasOption)
206
207 class SystemOptionsPtr(SystemOptions):
208 def __init__(self, this):
209 self.this = this
210 if not hasattr(self,"thisown"): self.thisown = 0
211 self.__class__ = SystemOptions
212 _misc.SystemOptions_swigregister(SystemOptionsPtr)
213
214 def SystemOptions_SetOption(*args, **kwargs):
215 """SystemOptions_SetOption(wxString name, wxString value)"""
216 return _misc.SystemOptions_SetOption(*args, **kwargs)
217
218 def SystemOptions_SetOptionInt(*args, **kwargs):
219 """SystemOptions_SetOptionInt(wxString name, int value)"""
220 return _misc.SystemOptions_SetOptionInt(*args, **kwargs)
221
222 def SystemOptions_GetOption(*args, **kwargs):
223 """SystemOptions_GetOption(wxString name) -> wxString"""
224 return _misc.SystemOptions_GetOption(*args, **kwargs)
225
226 def SystemOptions_GetOptionInt(*args, **kwargs):
227 """SystemOptions_GetOptionInt(wxString name) -> int"""
228 return _misc.SystemOptions_GetOptionInt(*args, **kwargs)
229
230 def SystemOptions_HasOption(*args, **kwargs):
231 """SystemOptions_HasOption(wxString name) -> bool"""
232 return _misc.SystemOptions_HasOption(*args, **kwargs)
233
234 #---------------------------------------------------------------------------
235
236
237 def NewId(*args, **kwargs):
238 """NewId() -> long"""
239 return _misc.NewId(*args, **kwargs)
240
241 def RegisterId(*args, **kwargs):
242 """RegisterId(long id)"""
243 return _misc.RegisterId(*args, **kwargs)
244
245 def GetCurrentId(*args, **kwargs):
246 """GetCurrentId() -> long"""
247 return _misc.GetCurrentId(*args, **kwargs)
248
249 def Bell(*args, **kwargs):
250 """Bell()"""
251 return _misc.Bell(*args, **kwargs)
252
253 def EndBusyCursor(*args, **kwargs):
254 """EndBusyCursor()"""
255 return _misc.EndBusyCursor(*args, **kwargs)
256
257 def GetElapsedTime(*args, **kwargs):
258 """GetElapsedTime(bool resetTimer=True) -> long"""
259 return _misc.GetElapsedTime(*args, **kwargs)
260
261 def GetMousePosition(*args, **kwargs):
262 """GetMousePosition() -> (x,y)"""
263 return _misc.GetMousePosition(*args, **kwargs)
264
265 def IsBusy(*args, **kwargs):
266 """IsBusy() -> bool"""
267 return _misc.IsBusy(*args, **kwargs)
268
269 def Now(*args, **kwargs):
270 """Now() -> wxString"""
271 return _misc.Now(*args, **kwargs)
272
273 def Shell(*args, **kwargs):
274 """Shell(wxString command=wxPyEmptyString) -> bool"""
275 return _misc.Shell(*args, **kwargs)
276
277 def StartTimer(*args, **kwargs):
278 """StartTimer()"""
279 return _misc.StartTimer(*args, **kwargs)
280
281 def GetOsVersion(*args, **kwargs):
282 """GetOsVersion() -> (platform, major, minor)"""
283 return _misc.GetOsVersion(*args, **kwargs)
284
285 def GetOsDescription(*args, **kwargs):
286 """GetOsDescription() -> wxString"""
287 return _misc.GetOsDescription(*args, **kwargs)
288
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
294
295 def Shutdown(*args, **kwargs):
296 """Shutdown(wxShutdownFlags wFlags) -> bool"""
297 return _misc.Shutdown(*args, **kwargs)
298
299 def Sleep(*args, **kwargs):
300 """Sleep(int secs)"""
301 return _misc.Sleep(*args, **kwargs)
302
303 def Usleep(*args, **kwargs):
304 """Usleep(unsigned long milliseconds)"""
305 return _misc.Usleep(*args, **kwargs)
306
307 def EnableTopLevelWindows(*args, **kwargs):
308 """EnableTopLevelWindows(bool enable)"""
309 return _misc.EnableTopLevelWindows(*args, **kwargs)
310
311 def StripMenuCodes(*args, **kwargs):
312 """StripMenuCodes(wxString in) -> wxString"""
313 return _misc.StripMenuCodes(*args, **kwargs)
314
315 def GetEmailAddress(*args, **kwargs):
316 """GetEmailAddress() -> wxString"""
317 return _misc.GetEmailAddress(*args, **kwargs)
318
319 def GetHostName(*args, **kwargs):
320 """GetHostName() -> wxString"""
321 return _misc.GetHostName(*args, **kwargs)
322
323 def GetFullHostName(*args, **kwargs):
324 """GetFullHostName() -> wxString"""
325 return _misc.GetFullHostName(*args, **kwargs)
326
327 def GetUserId(*args, **kwargs):
328 """GetUserId() -> wxString"""
329 return _misc.GetUserId(*args, **kwargs)
330
331 def GetUserName(*args, **kwargs):
332 """GetUserName() -> wxString"""
333 return _misc.GetUserName(*args, **kwargs)
334
335 def GetHomeDir(*args, **kwargs):
336 """GetHomeDir() -> wxString"""
337 return _misc.GetHomeDir(*args, **kwargs)
338
339 def GetUserHome(*args, **kwargs):
340 """GetUserHome(wxString user=wxPyEmptyString) -> wxString"""
341 return _misc.GetUserHome(*args, **kwargs)
342
343 def GetProcessId(*args, **kwargs):
344 """GetProcessId() -> unsigned long"""
345 return _misc.GetProcessId(*args, **kwargs)
346
347 def Trap(*args, **kwargs):
348 """Trap()"""
349 return _misc.Trap(*args, **kwargs)
350
351 def FileSelector(*args, **kwargs):
352 """
353 FileSelector(wxString message=wxPyFileSelectorPromptStr, wxString default_path=wxPyEmptyString,
354 wxString default_filename=wxPyEmptyString,
355 wxString default_extension=wxPyEmptyString,
356 wxString wildcard=wxPyFileSelectorDefaultWildcardStr,
357 int flags=0,
358 Window parent=None, int x=-1, int y=-1) -> wxString
359 """
360 return _misc.FileSelector(*args, **kwargs)
361
362 def LoadFileSelector(*args, **kwargs):
363 """
364 LoadFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
365 Window parent=None) -> wxString
366 """
367 return _misc.LoadFileSelector(*args, **kwargs)
368
369 def SaveFileSelector(*args, **kwargs):
370 """
371 SaveFileSelector(wxString what, wxString extension, wxString default_name=wxPyEmptyString,
372 Window parent=None) -> wxString
373 """
374 return _misc.SaveFileSelector(*args, **kwargs)
375
376 def DirSelector(*args, **kwargs):
377 """
378 DirSelector(wxString message=wxPyDirSelectorPromptStr, wxString defaultPath=wxPyEmptyString,
379 long style=DD_DEFAULT_STYLE,
380 Point pos=DefaultPosition, Window parent=None) -> wxString
381 """
382 return _misc.DirSelector(*args, **kwargs)
383
384 def GetTextFromUser(*args, **kwargs):
385 """
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
389 """
390 return _misc.GetTextFromUser(*args, **kwargs)
391
392 def GetPasswordFromUser(*args, **kwargs):
393 """
394 GetPasswordFromUser(wxString message, wxString caption=wxPyEmptyString,
395 wxString default_value=wxPyEmptyString, Window parent=None) -> wxString
396 """
397 return _misc.GetPasswordFromUser(*args, **kwargs)
398
399 def GetSingleChoice(*args, **kwargs):
400 """
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
405 """
406 return _misc.GetSingleChoice(*args, **kwargs)
407
408 def GetSingleChoiceIndex(*args, **kwargs):
409 """
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
414 """
415 return _misc.GetSingleChoiceIndex(*args, **kwargs)
416
417 def MessageBox(*args, **kwargs):
418 """
419 MessageBox(wxString message, wxString caption=wxPyEmptyString,
420 int style=wxOK|wxCENTRE, Window parent=None,
421 int x=-1, int y=-1) -> int
422 """
423 return _misc.MessageBox(*args, **kwargs)
424
425 def GetNumberFromUser(*args, **kwargs):
426 """
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
430 """
431 return _misc.GetNumberFromUser(*args, **kwargs)
432
433 def ColourDisplay(*args, **kwargs):
434 """ColourDisplay() -> bool"""
435 return _misc.ColourDisplay(*args, **kwargs)
436
437 def DisplayDepth(*args, **kwargs):
438 """DisplayDepth() -> int"""
439 return _misc.DisplayDepth(*args, **kwargs)
440
441 def GetDisplayDepth(*args, **kwargs):
442 """GetDisplayDepth() -> int"""
443 return _misc.GetDisplayDepth(*args, **kwargs)
444
445 def DisplaySize(*args, **kwargs):
446 """DisplaySize() -> (width, height)"""
447 return _misc.DisplaySize(*args, **kwargs)
448
449 def GetDisplaySize(*args, **kwargs):
450 """GetDisplaySize() -> Size"""
451 return _misc.GetDisplaySize(*args, **kwargs)
452
453 def DisplaySizeMM(*args, **kwargs):
454 """DisplaySizeMM() -> (width, height)"""
455 return _misc.DisplaySizeMM(*args, **kwargs)
456
457 def GetDisplaySizeMM(*args, **kwargs):
458 """GetDisplaySizeMM() -> Size"""
459 return _misc.GetDisplaySizeMM(*args, **kwargs)
460
461 def ClientDisplayRect(*args, **kwargs):
462 """ClientDisplayRect() -> (x, y, width, height)"""
463 return _misc.ClientDisplayRect(*args, **kwargs)
464
465 def GetClientDisplayRect(*args, **kwargs):
466 """GetClientDisplayRect() -> Rect"""
467 return _misc.GetClientDisplayRect(*args, **kwargs)
468
469 def SetCursor(*args, **kwargs):
470 """SetCursor(wxCursor cursor)"""
471 return _misc.SetCursor(*args, **kwargs)
472
473 def BeginBusyCursor(*args, **kwargs):
474 """BeginBusyCursor(wxCursor cursor=wxHOURGLASS_CURSOR)"""
475 return _misc.BeginBusyCursor(*args, **kwargs)
476
477 def GetActiveWindow(*args, **kwargs):
478 """GetActiveWindow() -> Window"""
479 return _misc.GetActiveWindow(*args, **kwargs)
480
481 def GenericFindWindowAtPoint(*args, **kwargs):
482 """GenericFindWindowAtPoint(Point pt) -> Window"""
483 return _misc.GenericFindWindowAtPoint(*args, **kwargs)
484
485 def FindWindowAtPoint(*args, **kwargs):
486 """FindWindowAtPoint(Point pt) -> Window"""
487 return _misc.FindWindowAtPoint(*args, **kwargs)
488
489 def GetTopLevelParent(*args, **kwargs):
490 """GetTopLevelParent(Window win) -> Window"""
491 return _misc.GetTopLevelParent(*args, **kwargs)
492
493 def WakeUpMainThread(*args, **kwargs):
494 """WakeUpMainThread()"""
495 return _misc.WakeUpMainThread(*args, **kwargs)
496
497 def MutexGuiEnter(*args, **kwargs):
498 """MutexGuiEnter()"""
499 return _misc.MutexGuiEnter(*args, **kwargs)
500
501 def MutexGuiLeave(*args, **kwargs):
502 """MutexGuiLeave()"""
503 return _misc.MutexGuiLeave(*args, **kwargs)
504 class MutexGuiLocker(object):
505 def __repr__(self):
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
511 self.thisown = 1
512 del newobj.thisown
513 def __del__(self, destroy=_misc.delete_MutexGuiLocker):
514 """__del__()"""
515 try:
516 if self.thisown: destroy(self)
517 except: pass
518
519
520 class MutexGuiLockerPtr(MutexGuiLocker):
521 def __init__(self, this):
522 self.this = this
523 if not hasattr(self,"thisown"): self.thisown = 0
524 self.__class__ = MutexGuiLocker
525 _misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr)
526
527
528 def Thread_IsMain(*args, **kwargs):
529 """Thread_IsMain() -> bool"""
530 return _misc.Thread_IsMain(*args, **kwargs)
531 #---------------------------------------------------------------------------
532
533 class ToolTip(core.Object):
534 def __repr__(self):
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
540 self.thisown = 1
541 del newobj.thisown
542 def SetTip(*args, **kwargs):
543 """SetTip(wxString tip)"""
544 return _misc.ToolTip_SetTip(*args, **kwargs)
545
546 def GetTip(*args, **kwargs):
547 """GetTip() -> wxString"""
548 return _misc.ToolTip_GetTip(*args, **kwargs)
549
550 def GetWindow(*args, **kwargs):
551 """GetWindow() -> Window"""
552 return _misc.ToolTip_GetWindow(*args, **kwargs)
553
554 def Enable(*args, **kwargs):
555 """ToolTip.Enable(bool flag)"""
556 return _misc.ToolTip_Enable(*args, **kwargs)
557
558 Enable = staticmethod(Enable)
559 def SetDelay(*args, **kwargs):
560 """ToolTip.SetDelay(long milliseconds)"""
561 return _misc.ToolTip_SetDelay(*args, **kwargs)
562
563 SetDelay = staticmethod(SetDelay)
564
565 class ToolTipPtr(ToolTip):
566 def __init__(self, this):
567 self.this = this
568 if not hasattr(self,"thisown"): self.thisown = 0
569 self.__class__ = ToolTip
570 _misc.ToolTip_swigregister(ToolTipPtr)
571
572 def ToolTip_Enable(*args, **kwargs):
573 """ToolTip_Enable(bool flag)"""
574 return _misc.ToolTip_Enable(*args, **kwargs)
575
576 def ToolTip_SetDelay(*args, **kwargs):
577 """ToolTip_SetDelay(long milliseconds)"""
578 return _misc.ToolTip_SetDelay(*args, **kwargs)
579
580 class Caret(object):
581 def __repr__(self):
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
587 self.thisown = 1
588 del newobj.thisown
589 def __del__(self, destroy=_misc.delete_Caret):
590 """__del__()"""
591 try:
592 if self.thisown: destroy(self)
593 except: pass
594
595 def IsOk(*args, **kwargs):
596 """IsOk() -> bool"""
597 return _misc.Caret_IsOk(*args, **kwargs)
598
599 def IsVisible(*args, **kwargs):
600 """IsVisible() -> bool"""
601 return _misc.Caret_IsVisible(*args, **kwargs)
602
603 def GetPosition(*args, **kwargs):
604 """GetPosition() -> Point"""
605 return _misc.Caret_GetPosition(*args, **kwargs)
606
607 def GetPositionTuple(*args, **kwargs):
608 """GetPositionTuple() -> (x,y)"""
609 return _misc.Caret_GetPositionTuple(*args, **kwargs)
610
611 def GetSize(*args, **kwargs):
612 """GetSize() -> Size"""
613 return _misc.Caret_GetSize(*args, **kwargs)
614
615 def GetSizeTuple(*args, **kwargs):
616 """GetSizeTuple() -> (width, height)"""
617 return _misc.Caret_GetSizeTuple(*args, **kwargs)
618
619 def GetWindow(*args, **kwargs):
620 """GetWindow() -> Window"""
621 return _misc.Caret_GetWindow(*args, **kwargs)
622
623 def MoveXY(*args, **kwargs):
624 """MoveXY(int x, int y)"""
625 return _misc.Caret_MoveXY(*args, **kwargs)
626
627 def Move(*args, **kwargs):
628 """Move(Point pt)"""
629 return _misc.Caret_Move(*args, **kwargs)
630
631 def SetSizeWH(*args, **kwargs):
632 """SetSizeWH(int width, int height)"""
633 return _misc.Caret_SetSizeWH(*args, **kwargs)
634
635 def SetSize(*args, **kwargs):
636 """SetSize(Size size)"""
637 return _misc.Caret_SetSize(*args, **kwargs)
638
639 def Show(*args, **kwargs):
640 """Show(int show=True)"""
641 return _misc.Caret_Show(*args, **kwargs)
642
643 def Hide(*args, **kwargs):
644 """Hide()"""
645 return _misc.Caret_Hide(*args, **kwargs)
646
647 def __nonzero__(self): return self.IsOk()
648
649 class CaretPtr(Caret):
650 def __init__(self, this):
651 self.this = this
652 if not hasattr(self,"thisown"): self.thisown = 0
653 self.__class__ = Caret
654 _misc.Caret_swigregister(CaretPtr)
655
656
657 def Caret_GetBlinkTime(*args, **kwargs):
658 """Caret_GetBlinkTime() -> int"""
659 return _misc.Caret_GetBlinkTime(*args, **kwargs)
660
661 def Caret_SetBlinkTime(*args, **kwargs):
662 """Caret_SetBlinkTime(int milliseconds)"""
663 return _misc.Caret_SetBlinkTime(*args, **kwargs)
664 class BusyCursor(object):
665 def __repr__(self):
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
671 self.thisown = 1
672 del newobj.thisown
673 def __del__(self, destroy=_misc.delete_BusyCursor):
674 """__del__()"""
675 try:
676 if self.thisown: destroy(self)
677 except: pass
678
679
680 class BusyCursorPtr(BusyCursor):
681 def __init__(self, this):
682 self.this = this
683 if not hasattr(self,"thisown"): self.thisown = 0
684 self.__class__ = BusyCursor
685 _misc.BusyCursor_swigregister(BusyCursorPtr)
686
687 class WindowDisabler(object):
688 def __repr__(self):
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
694 self.thisown = 1
695 del newobj.thisown
696 def __del__(self, destroy=_misc.delete_WindowDisabler):
697 """__del__()"""
698 try:
699 if self.thisown: destroy(self)
700 except: pass
701
702
703 class WindowDisablerPtr(WindowDisabler):
704 def __init__(self, this):
705 self.this = this
706 if not hasattr(self,"thisown"): self.thisown = 0
707 self.__class__ = WindowDisabler
708 _misc.WindowDisabler_swigregister(WindowDisablerPtr)
709
710 class BusyInfo(core.Object):
711 def __repr__(self):
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
717 self.thisown = 1
718 del newobj.thisown
719 def __del__(self, destroy=_misc.delete_BusyInfo):
720 """__del__()"""
721 try:
722 if self.thisown: destroy(self)
723 except: pass
724
725
726 class BusyInfoPtr(BusyInfo):
727 def __init__(self, this):
728 self.this = this
729 if not hasattr(self,"thisown"): self.thisown = 0
730 self.__class__ = BusyInfo
731 _misc.BusyInfo_swigregister(BusyInfoPtr)
732
733 class StopWatch(object):
734 def __repr__(self):
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
740 self.thisown = 1
741 del newobj.thisown
742 def Start(*args, **kwargs):
743 """Start(long t0=0)"""
744 return _misc.StopWatch_Start(*args, **kwargs)
745
746 def Pause(*args, **kwargs):
747 """Pause()"""
748 return _misc.StopWatch_Pause(*args, **kwargs)
749
750 def Resume(*args, **kwargs):
751 """Resume()"""
752 return _misc.StopWatch_Resume(*args, **kwargs)
753
754 def Time(*args, **kwargs):
755 """Time() -> long"""
756 return _misc.StopWatch_Time(*args, **kwargs)
757
758
759 class StopWatchPtr(StopWatch):
760 def __init__(self, this):
761 self.this = this
762 if not hasattr(self,"thisown"): self.thisown = 0
763 self.__class__ = StopWatch
764 _misc.StopWatch_swigregister(StopWatchPtr)
765
766 class FileHistory(core.Object):
767 def __repr__(self):
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
773 self.thisown = 1
774 del newobj.thisown
775 def __del__(self, destroy=_misc.delete_FileHistory):
776 """__del__()"""
777 try:
778 if self.thisown: destroy(self)
779 except: pass
780
781 def AddFileToHistory(*args, **kwargs):
782 """AddFileToHistory(wxString file)"""
783 return _misc.FileHistory_AddFileToHistory(*args, **kwargs)
784
785 def RemoveFileFromHistory(*args, **kwargs):
786 """RemoveFileFromHistory(int i)"""
787 return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs)
788
789 def GetMaxFiles(*args, **kwargs):
790 """GetMaxFiles() -> int"""
791 return _misc.FileHistory_GetMaxFiles(*args, **kwargs)
792
793 def UseMenu(*args, **kwargs):
794 """UseMenu(Menu menu)"""
795 return _misc.FileHistory_UseMenu(*args, **kwargs)
796
797 def RemoveMenu(*args, **kwargs):
798 """RemoveMenu(Menu menu)"""
799 return _misc.FileHistory_RemoveMenu(*args, **kwargs)
800
801 def Load(*args, **kwargs):
802 """Load(ConfigBase config)"""
803 return _misc.FileHistory_Load(*args, **kwargs)
804
805 def Save(*args, **kwargs):
806 """Save(ConfigBase config)"""
807 return _misc.FileHistory_Save(*args, **kwargs)
808
809 def AddFilesToMenu(*args, **kwargs):
810 """AddFilesToMenu()"""
811 return _misc.FileHistory_AddFilesToMenu(*args, **kwargs)
812
813 def AddFilesToThisMenu(*args, **kwargs):
814 """AddFilesToThisMenu(Menu menu)"""
815 return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs)
816
817 def GetHistoryFile(*args, **kwargs):
818 """GetHistoryFile(int i) -> wxString"""
819 return _misc.FileHistory_GetHistoryFile(*args, **kwargs)
820
821 def GetCount(*args, **kwargs):
822 """GetCount() -> int"""
823 return _misc.FileHistory_GetCount(*args, **kwargs)
824
825
826 class FileHistoryPtr(FileHistory):
827 def __init__(self, this):
828 self.this = this
829 if not hasattr(self,"thisown"): self.thisown = 0
830 self.__class__ = FileHistory
831 _misc.FileHistory_swigregister(FileHistoryPtr)
832
833 class SingleInstanceChecker(object):
834 def __repr__(self):
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
840 self.thisown = 1
841 del newobj.thisown
842 def __del__(self, destroy=_misc.delete_SingleInstanceChecker):
843 """__del__()"""
844 try:
845 if self.thisown: destroy(self)
846 except: pass
847
848 def Create(*args, **kwargs):
849 """Create(wxString name, wxString path=wxPyEmptyString) -> bool"""
850 return _misc.SingleInstanceChecker_Create(*args, **kwargs)
851
852 def IsAnotherRunning(*args, **kwargs):
853 """IsAnotherRunning() -> bool"""
854 return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs)
855
856
857 class SingleInstanceCheckerPtr(SingleInstanceChecker):
858 def __init__(self, this):
859 self.this = this
860 if not hasattr(self,"thisown"): self.thisown = 0
861 self.__class__ = SingleInstanceChecker
862 _misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr)
863
864 def PreSingleInstanceChecker(*args, **kwargs):
865 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
866 val = _misc.new_PreSingleInstanceChecker(*args, **kwargs)
867 val.thisown = 1
868 return val
869
870
871 def DrawWindowOnDC(*args, **kwargs):
872 """DrawWindowOnDC(Window window, wxDC dc, int method)"""
873 return _misc.DrawWindowOnDC(*args, **kwargs)
874 #---------------------------------------------------------------------------
875
876 class TipProvider(object):
877 def __init__(self): raise RuntimeError, "No constructor defined"
878 def __repr__(self):
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):
881 """__del__()"""
882 try:
883 if self.thisown: destroy(self)
884 except: pass
885
886 def GetTip(*args, **kwargs):
887 """GetTip() -> wxString"""
888 return _misc.TipProvider_GetTip(*args, **kwargs)
889
890 def GetCurrentTip(*args, **kwargs):
891 """GetCurrentTip() -> size_t"""
892 return _misc.TipProvider_GetCurrentTip(*args, **kwargs)
893
894 def PreprocessTip(*args, **kwargs):
895 """PreprocessTip(wxString tip) -> wxString"""
896 return _misc.TipProvider_PreprocessTip(*args, **kwargs)
897
898
899 class TipProviderPtr(TipProvider):
900 def __init__(self, this):
901 self.this = this
902 if not hasattr(self,"thisown"): self.thisown = 0
903 self.__class__ = TipProvider
904 _misc.TipProvider_swigregister(TipProviderPtr)
905
906 class PyTipProvider(TipProvider):
907 def __repr__(self):
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
913 self.thisown = 1
914 del newobj.thisown
915 def _setCallbackInfo(*args, **kwargs):
916 """_setCallbackInfo(PyObject self, PyObject _class)"""
917 return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs)
918
919
920 class PyTipProviderPtr(PyTipProvider):
921 def __init__(self, this):
922 self.this = this
923 if not hasattr(self,"thisown"): self.thisown = 0
924 self.__class__ = PyTipProvider
925 _misc.PyTipProvider_swigregister(PyTipProviderPtr)
926
927
928 def ShowTip(*args, **kwargs):
929 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
930 return _misc.ShowTip(*args, **kwargs)
931
932 def CreateFileTipProvider(*args, **kwargs):
933 """CreateFileTipProvider(wxString filename, size_t currentTip) -> TipProvider"""
934 return _misc.CreateFileTipProvider(*args, **kwargs)
935 #---------------------------------------------------------------------------
936
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):
941 def __repr__(self):
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
947 self.thisown = 1
948 del newobj.thisown
949 self._setCallbackInfo(self, Timer)
950
951 def __del__(self, destroy=_misc.delete_Timer):
952 """__del__()"""
953 try:
954 if self.thisown: destroy(self)
955 except: pass
956
957 def _setCallbackInfo(*args, **kwargs):
958 """_setCallbackInfo(PyObject self, PyObject _class)"""
959 return _misc.Timer__setCallbackInfo(*args, **kwargs)
960
961 def SetOwner(*args, **kwargs):
962 """SetOwner(EvtHandler owner, int id=-1)"""
963 return _misc.Timer_SetOwner(*args, **kwargs)
964
965 def Start(*args, **kwargs):
966 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
967 return _misc.Timer_Start(*args, **kwargs)
968
969 def Stop(*args, **kwargs):
970 """Stop()"""
971 return _misc.Timer_Stop(*args, **kwargs)
972
973 def IsRunning(*args, **kwargs):
974 """IsRunning() -> bool"""
975 return _misc.Timer_IsRunning(*args, **kwargs)
976
977 def GetInterval(*args, **kwargs):
978 """GetInterval() -> int"""
979 return _misc.Timer_GetInterval(*args, **kwargs)
980
981 def IsOneShot(*args, **kwargs):
982 """IsOneShot() -> bool"""
983 return _misc.Timer_IsOneShot(*args, **kwargs)
984
985 def GetId(*args, **kwargs):
986 """GetId() -> int"""
987 return _misc.Timer_GetId(*args, **kwargs)
988
989
990 class TimerPtr(Timer):
991 def __init__(self, this):
992 self.this = this
993 if not hasattr(self,"thisown"): self.thisown = 0
994 self.__class__ = Timer
995 _misc.Timer_swigregister(TimerPtr)
996
997 # For backwards compatibility with 2.4
998 class PyTimer(Timer):
999 def __init__(self, notify):
1000 Timer.__init__(self)
1001 self.notify = notify
1002
1003 def Notify(self):
1004 if self.notify:
1005 self.notify()
1006
1007
1008 EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 )
1009
1010
1011 class TimerEvent(core.Event):
1012 def __repr__(self):
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
1018 self.thisown = 1
1019 del newobj.thisown
1020 def GetInterval(*args, **kwargs):
1021 """GetInterval() -> int"""
1022 return _misc.TimerEvent_GetInterval(*args, **kwargs)
1023
1024
1025 class TimerEventPtr(TimerEvent):
1026 def __init__(self, this):
1027 self.this = this
1028 if not hasattr(self,"thisown"): self.thisown = 0
1029 self.__class__ = TimerEvent
1030 _misc.TimerEvent_swigregister(TimerEventPtr)
1031
1032 class TimerRunner(object):
1033 def __repr__(self):
1034 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1035 def __init__(self, *args):
1036 """
1037 __init__(wxTimer timer) -> TimerRunner
1038 __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1039 """
1040 newobj = _misc.new_TimerRunner(*args)
1041 self.this = newobj.this
1042 self.thisown = 1
1043 del newobj.thisown
1044 def __del__(self, destroy=_misc.delete_TimerRunner):
1045 """__del__()"""
1046 try:
1047 if self.thisown: destroy(self)
1048 except: pass
1049
1050 def Start(*args, **kwargs):
1051 """Start(int milli, bool oneShot=False)"""
1052 return _misc.TimerRunner_Start(*args, **kwargs)
1053
1054
1055 class TimerRunnerPtr(TimerRunner):
1056 def __init__(self, this):
1057 self.this = this
1058 if not hasattr(self,"thisown"): self.thisown = 0
1059 self.__class__ = TimerRunner
1060 _misc.TimerRunner_swigregister(TimerRunnerPtr)
1061
1062 #---------------------------------------------------------------------------
1063
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
1085 class Log(object):
1086 def __repr__(self):
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
1092 self.thisown = 1
1093 del newobj.thisown
1094 def IsEnabled(*args, **kwargs):
1095 """Log.IsEnabled() -> bool"""
1096 return _misc.Log_IsEnabled(*args, **kwargs)
1097
1098 IsEnabled = staticmethod(IsEnabled)
1099 def EnableLogging(*args, **kwargs):
1100 """Log.EnableLogging(bool doIt=True) -> bool"""
1101 return _misc.Log_EnableLogging(*args, **kwargs)
1102
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)
1107
1108 OnLog = staticmethod(OnLog)
1109 def Flush(*args, **kwargs):
1110 """Flush()"""
1111 return _misc.Log_Flush(*args, **kwargs)
1112
1113 def FlushActive(*args, **kwargs):
1114 """Log.FlushActive()"""
1115 return _misc.Log_FlushActive(*args, **kwargs)
1116
1117 FlushActive = staticmethod(FlushActive)
1118 def GetActiveTarget(*args, **kwargs):
1119 """Log.GetActiveTarget() -> Log"""
1120 return _misc.Log_GetActiveTarget(*args, **kwargs)
1121
1122 GetActiveTarget = staticmethod(GetActiveTarget)
1123 def SetActiveTarget(*args, **kwargs):
1124 """Log.SetActiveTarget(Log pLogger) -> Log"""
1125 return _misc.Log_SetActiveTarget(*args, **kwargs)
1126
1127 SetActiveTarget = staticmethod(SetActiveTarget)
1128 def Suspend(*args, **kwargs):
1129 """Log.Suspend()"""
1130 return _misc.Log_Suspend(*args, **kwargs)
1131
1132 Suspend = staticmethod(Suspend)
1133 def Resume(*args, **kwargs):
1134 """Log.Resume()"""
1135 return _misc.Log_Resume(*args, **kwargs)
1136
1137 Resume = staticmethod(Resume)
1138 def SetVerbose(*args, **kwargs):
1139 """Log.SetVerbose(bool bVerbose=True)"""
1140 return _misc.Log_SetVerbose(*args, **kwargs)
1141
1142 SetVerbose = staticmethod(SetVerbose)
1143 def SetLogLevel(*args, **kwargs):
1144 """Log.SetLogLevel(wxLogLevel logLevel)"""
1145 return _misc.Log_SetLogLevel(*args, **kwargs)
1146
1147 SetLogLevel = staticmethod(SetLogLevel)
1148 def DontCreateOnDemand(*args, **kwargs):
1149 """Log.DontCreateOnDemand()"""
1150 return _misc.Log_DontCreateOnDemand(*args, **kwargs)
1151
1152 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
1153 def SetTraceMask(*args, **kwargs):
1154 """Log.SetTraceMask(wxTraceMask ulMask)"""
1155 return _misc.Log_SetTraceMask(*args, **kwargs)
1156
1157 SetTraceMask = staticmethod(SetTraceMask)
1158 def AddTraceMask(*args, **kwargs):
1159 """Log.AddTraceMask(wxString str)"""
1160 return _misc.Log_AddTraceMask(*args, **kwargs)
1161
1162 AddTraceMask = staticmethod(AddTraceMask)
1163 def RemoveTraceMask(*args, **kwargs):
1164 """Log.RemoveTraceMask(wxString str)"""
1165 return _misc.Log_RemoveTraceMask(*args, **kwargs)
1166
1167 RemoveTraceMask = staticmethod(RemoveTraceMask)
1168 def ClearTraceMasks(*args, **kwargs):
1169 """Log.ClearTraceMasks()"""
1170 return _misc.Log_ClearTraceMasks(*args, **kwargs)
1171
1172 ClearTraceMasks = staticmethod(ClearTraceMasks)
1173 def GetTraceMasks(*args, **kwargs):
1174 """Log.GetTraceMasks() -> wxArrayString"""
1175 return _misc.Log_GetTraceMasks(*args, **kwargs)
1176
1177 GetTraceMasks = staticmethod(GetTraceMasks)
1178 def SetTimestamp(*args, **kwargs):
1179 """Log.SetTimestamp(wxChar ts)"""
1180 return _misc.Log_SetTimestamp(*args, **kwargs)
1181
1182 SetTimestamp = staticmethod(SetTimestamp)
1183 def GetVerbose(*args, **kwargs):
1184 """Log.GetVerbose() -> bool"""
1185 return _misc.Log_GetVerbose(*args, **kwargs)
1186
1187 GetVerbose = staticmethod(GetVerbose)
1188 def GetTraceMask(*args, **kwargs):
1189 """Log.GetTraceMask() -> wxTraceMask"""
1190 return _misc.Log_GetTraceMask(*args, **kwargs)
1191
1192 GetTraceMask = staticmethod(GetTraceMask)
1193 def IsAllowedTraceMask(*args, **kwargs):
1194 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1195 return _misc.Log_IsAllowedTraceMask(*args, **kwargs)
1196
1197 IsAllowedTraceMask = staticmethod(IsAllowedTraceMask)
1198 def GetLogLevel(*args, **kwargs):
1199 """Log.GetLogLevel() -> wxLogLevel"""
1200 return _misc.Log_GetLogLevel(*args, **kwargs)
1201
1202 GetLogLevel = staticmethod(GetLogLevel)
1203 def GetTimestamp(*args, **kwargs):
1204 """Log.GetTimestamp() -> wxChar"""
1205 return _misc.Log_GetTimestamp(*args, **kwargs)
1206
1207 GetTimestamp = staticmethod(GetTimestamp)
1208 def TimeStamp(*args, **kwargs):
1209 """Log.TimeStamp() -> wxString"""
1210 return _misc.Log_TimeStamp(*args, **kwargs)
1211
1212 TimeStamp = staticmethod(TimeStamp)
1213 def Destroy(*args, **kwargs):
1214 """Destroy()"""
1215 return _misc.Log_Destroy(*args, **kwargs)
1216
1217
1218 class LogPtr(Log):
1219 def __init__(self, this):
1220 self.this = this
1221 if not hasattr(self,"thisown"): self.thisown = 0
1222 self.__class__ = Log
1223 _misc.Log_swigregister(LogPtr)
1224
1225 def Log_IsEnabled(*args, **kwargs):
1226 """Log_IsEnabled() -> bool"""
1227 return _misc.Log_IsEnabled(*args, **kwargs)
1228
1229 def Log_EnableLogging(*args, **kwargs):
1230 """Log_EnableLogging(bool doIt=True) -> bool"""
1231 return _misc.Log_EnableLogging(*args, **kwargs)
1232
1233 def Log_OnLog(*args, **kwargs):
1234 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1235 return _misc.Log_OnLog(*args, **kwargs)
1236
1237 def Log_FlushActive(*args, **kwargs):
1238 """Log_FlushActive()"""
1239 return _misc.Log_FlushActive(*args, **kwargs)
1240
1241 def Log_GetActiveTarget(*args, **kwargs):
1242 """Log_GetActiveTarget() -> Log"""
1243 return _misc.Log_GetActiveTarget(*args, **kwargs)
1244
1245 def Log_SetActiveTarget(*args, **kwargs):
1246 """Log_SetActiveTarget(Log pLogger) -> Log"""
1247 return _misc.Log_SetActiveTarget(*args, **kwargs)
1248
1249 def Log_Suspend(*args, **kwargs):
1250 """Log_Suspend()"""
1251 return _misc.Log_Suspend(*args, **kwargs)
1252
1253 def Log_Resume(*args, **kwargs):
1254 """Log_Resume()"""
1255 return _misc.Log_Resume(*args, **kwargs)
1256
1257 def Log_SetVerbose(*args, **kwargs):
1258 """Log_SetVerbose(bool bVerbose=True)"""
1259 return _misc.Log_SetVerbose(*args, **kwargs)
1260
1261 def Log_SetLogLevel(*args, **kwargs):
1262 """Log_SetLogLevel(wxLogLevel logLevel)"""
1263 return _misc.Log_SetLogLevel(*args, **kwargs)
1264
1265 def Log_DontCreateOnDemand(*args, **kwargs):
1266 """Log_DontCreateOnDemand()"""
1267 return _misc.Log_DontCreateOnDemand(*args, **kwargs)
1268
1269 def Log_SetTraceMask(*args, **kwargs):
1270 """Log_SetTraceMask(wxTraceMask ulMask)"""
1271 return _misc.Log_SetTraceMask(*args, **kwargs)
1272
1273 def Log_AddTraceMask(*args, **kwargs):
1274 """Log_AddTraceMask(wxString str)"""
1275 return _misc.Log_AddTraceMask(*args, **kwargs)
1276
1277 def Log_RemoveTraceMask(*args, **kwargs):
1278 """Log_RemoveTraceMask(wxString str)"""
1279 return _misc.Log_RemoveTraceMask(*args, **kwargs)
1280
1281 def Log_ClearTraceMasks(*args, **kwargs):
1282 """Log_ClearTraceMasks()"""
1283 return _misc.Log_ClearTraceMasks(*args, **kwargs)
1284
1285 def Log_GetTraceMasks(*args, **kwargs):
1286 """Log_GetTraceMasks() -> wxArrayString"""
1287 return _misc.Log_GetTraceMasks(*args, **kwargs)
1288
1289 def Log_SetTimestamp(*args, **kwargs):
1290 """Log_SetTimestamp(wxChar ts)"""
1291 return _misc.Log_SetTimestamp(*args, **kwargs)
1292
1293 def Log_GetVerbose(*args, **kwargs):
1294 """Log_GetVerbose() -> bool"""
1295 return _misc.Log_GetVerbose(*args, **kwargs)
1296
1297 def Log_GetTraceMask(*args, **kwargs):
1298 """Log_GetTraceMask() -> wxTraceMask"""
1299 return _misc.Log_GetTraceMask(*args, **kwargs)
1300
1301 def Log_IsAllowedTraceMask(*args, **kwargs):
1302 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1303 return _misc.Log_IsAllowedTraceMask(*args, **kwargs)
1304
1305 def Log_GetLogLevel(*args, **kwargs):
1306 """Log_GetLogLevel() -> wxLogLevel"""
1307 return _misc.Log_GetLogLevel(*args, **kwargs)
1308
1309 def Log_GetTimestamp(*args, **kwargs):
1310 """Log_GetTimestamp() -> wxChar"""
1311 return _misc.Log_GetTimestamp(*args, **kwargs)
1312
1313 def Log_TimeStamp(*args, **kwargs):
1314 """Log_TimeStamp() -> wxString"""
1315 return _misc.Log_TimeStamp(*args, **kwargs)
1316
1317 class LogStderr(Log):
1318 def __repr__(self):
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
1324 self.thisown = 1
1325 del newobj.thisown
1326
1327 class LogStderrPtr(LogStderr):
1328 def __init__(self, this):
1329 self.this = this
1330 if not hasattr(self,"thisown"): self.thisown = 0
1331 self.__class__ = LogStderr
1332 _misc.LogStderr_swigregister(LogStderrPtr)
1333
1334 class LogTextCtrl(Log):
1335 def __repr__(self):
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
1341 self.thisown = 1
1342 del newobj.thisown
1343
1344 class LogTextCtrlPtr(LogTextCtrl):
1345 def __init__(self, this):
1346 self.this = this
1347 if not hasattr(self,"thisown"): self.thisown = 0
1348 self.__class__ = LogTextCtrl
1349 _misc.LogTextCtrl_swigregister(LogTextCtrlPtr)
1350
1351 class LogGui(Log):
1352 def __repr__(self):
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
1358 self.thisown = 1
1359 del newobj.thisown
1360
1361 class LogGuiPtr(LogGui):
1362 def __init__(self, this):
1363 self.this = this
1364 if not hasattr(self,"thisown"): self.thisown = 0
1365 self.__class__ = LogGui
1366 _misc.LogGui_swigregister(LogGuiPtr)
1367
1368 class LogWindow(Log):
1369 def __repr__(self):
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):
1372 """
1373 __init__(wxFrame pParent, wxString szTitle, bool bShow=True,
1374 bool bPassToOld=True) -> LogWindow
1375 """
1376 newobj = _misc.new_LogWindow(*args, **kwargs)
1377 self.this = newobj.this
1378 self.thisown = 1
1379 del newobj.thisown
1380 def Show(*args, **kwargs):
1381 """Show(bool bShow=True)"""
1382 return _misc.LogWindow_Show(*args, **kwargs)
1383
1384 def GetFrame(*args, **kwargs):
1385 """GetFrame() -> wxFrame"""
1386 return _misc.LogWindow_GetFrame(*args, **kwargs)
1387
1388 def GetOldLog(*args, **kwargs):
1389 """GetOldLog() -> Log"""
1390 return _misc.LogWindow_GetOldLog(*args, **kwargs)
1391
1392 def IsPassingMessages(*args, **kwargs):
1393 """IsPassingMessages() -> bool"""
1394 return _misc.LogWindow_IsPassingMessages(*args, **kwargs)
1395
1396 def PassMessages(*args, **kwargs):
1397 """PassMessages(bool bDoPass)"""
1398 return _misc.LogWindow_PassMessages(*args, **kwargs)
1399
1400
1401 class LogWindowPtr(LogWindow):
1402 def __init__(self, this):
1403 self.this = this
1404 if not hasattr(self,"thisown"): self.thisown = 0
1405 self.__class__ = LogWindow
1406 _misc.LogWindow_swigregister(LogWindowPtr)
1407
1408 class LogChain(Log):
1409 def __repr__(self):
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
1415 self.thisown = 1
1416 del newobj.thisown
1417 def SetLog(*args, **kwargs):
1418 """SetLog(Log logger)"""
1419 return _misc.LogChain_SetLog(*args, **kwargs)
1420
1421 def PassMessages(*args, **kwargs):
1422 """PassMessages(bool bDoPass)"""
1423 return _misc.LogChain_PassMessages(*args, **kwargs)
1424
1425 def IsPassingMessages(*args, **kwargs):
1426 """IsPassingMessages() -> bool"""
1427 return _misc.LogChain_IsPassingMessages(*args, **kwargs)
1428
1429 def GetOldLog(*args, **kwargs):
1430 """GetOldLog() -> Log"""
1431 return _misc.LogChain_GetOldLog(*args, **kwargs)
1432
1433
1434 class LogChainPtr(LogChain):
1435 def __init__(self, this):
1436 self.this = this
1437 if not hasattr(self,"thisown"): self.thisown = 0
1438 self.__class__ = LogChain
1439 _misc.LogChain_swigregister(LogChainPtr)
1440
1441
1442 def SysErrorCode(*args, **kwargs):
1443 """SysErrorCode() -> unsigned long"""
1444 return _misc.SysErrorCode(*args, **kwargs)
1445
1446 def SysErrorMsg(*args, **kwargs):
1447 """SysErrorMsg(unsigned long nErrCode=0) -> wxString"""
1448 return _misc.SysErrorMsg(*args, **kwargs)
1449
1450 def LogFatalError(*args, **kwargs):
1451 """LogFatalError(wxString msg)"""
1452 return _misc.LogFatalError(*args, **kwargs)
1453
1454 def LogError(*args, **kwargs):
1455 """LogError(wxString msg)"""
1456 return _misc.LogError(*args, **kwargs)
1457
1458 def LogWarning(*args, **kwargs):
1459 """LogWarning(wxString msg)"""
1460 return _misc.LogWarning(*args, **kwargs)
1461
1462 def LogMessage(*args, **kwargs):
1463 """LogMessage(wxString msg)"""
1464 return _misc.LogMessage(*args, **kwargs)
1465
1466 def LogInfo(*args, **kwargs):
1467 """LogInfo(wxString msg)"""
1468 return _misc.LogInfo(*args, **kwargs)
1469
1470 def LogDebug(*args, **kwargs):
1471 """LogDebug(wxString msg)"""
1472 return _misc.LogDebug(*args, **kwargs)
1473
1474 def LogVerbose(*args, **kwargs):
1475 """LogVerbose(wxString msg)"""
1476 return _misc.LogVerbose(*args, **kwargs)
1477
1478 def LogStatus(*args, **kwargs):
1479 """LogStatus(wxString msg)"""
1480 return _misc.LogStatus(*args, **kwargs)
1481
1482 def LogStatusFrame(*args, **kwargs):
1483 """LogStatusFrame(wxFrame pFrame, wxString msg)"""
1484 return _misc.LogStatusFrame(*args, **kwargs)
1485
1486 def LogSysError(*args, **kwargs):
1487 """LogSysError(wxString msg)"""
1488 return _misc.LogSysError(*args, **kwargs)
1489
1490 def LogGeneric(*args, **kwargs):
1491 """LogGeneric(unsigned long level, wxString msg)"""
1492 return _misc.LogGeneric(*args, **kwargs)
1493
1494 def SafeShowMessage(*args, **kwargs):
1495 """SafeShowMessage(wxString title, wxString text)"""
1496 return _misc.SafeShowMessage(*args, **kwargs)
1497 class LogNull(object):
1498 def __repr__(self):
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
1504 self.thisown = 1
1505 del newobj.thisown
1506 def __del__(self, destroy=_misc.delete_LogNull):
1507 """__del__()"""
1508 try:
1509 if self.thisown: destroy(self)
1510 except: pass
1511
1512
1513 class LogNullPtr(LogNull):
1514 def __init__(self, this):
1515 self.this = this
1516 if not hasattr(self,"thisown"): self.thisown = 0
1517 self.__class__ = LogNull
1518 _misc.LogNull_swigregister(LogNullPtr)
1519
1520 def LogTrace(*args):
1521 """
1522 LogTrace(unsigned long mask, wxString msg)
1523 LogTrace(wxString mask, wxString msg)
1524 """
1525 return _misc.LogTrace(*args)
1526
1527 class PyLog(Log):
1528 def __repr__(self):
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
1534 self.thisown = 1
1535 del newobj.thisown
1536 self._setCallbackInfo(self, PyLog)
1537
1538 def _setCallbackInfo(*args, **kwargs):
1539 """_setCallbackInfo(PyObject self, PyObject _class)"""
1540 return _misc.PyLog__setCallbackInfo(*args, **kwargs)
1541
1542
1543 class PyLogPtr(PyLog):
1544 def __init__(self, this):
1545 self.this = this
1546 if not hasattr(self,"thisown"): self.thisown = 0
1547 self.__class__ = PyLog
1548 _misc.PyLog_swigregister(PyLogPtr)
1549
1550 #---------------------------------------------------------------------------
1551
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):
1577 def __repr__(self):
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)
1582
1583 Kill = staticmethod(Kill)
1584 def Exists(*args, **kwargs):
1585 """Process.Exists(int pid) -> bool"""
1586 return _misc.Process_Exists(*args, **kwargs)
1587
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)
1592
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
1598 self.thisown = 1
1599 del newobj.thisown
1600 self._setCallbackInfo(self, Process)
1601
1602 def _setCallbackInfo(*args, **kwargs):
1603 """_setCallbackInfo(PyObject self, PyObject _class)"""
1604 return _misc.Process__setCallbackInfo(*args, **kwargs)
1605
1606 def base_OnTerminate(*args, **kwargs):
1607 """base_OnTerminate(int pid, int status)"""
1608 return _misc.Process_base_OnTerminate(*args, **kwargs)
1609
1610 def Redirect(*args, **kwargs):
1611 """Redirect()"""
1612 return _misc.Process_Redirect(*args, **kwargs)
1613
1614 def IsRedirected(*args, **kwargs):
1615 """IsRedirected() -> bool"""
1616 return _misc.Process_IsRedirected(*args, **kwargs)
1617
1618 def Detach(*args, **kwargs):
1619 """Detach()"""
1620 return _misc.Process_Detach(*args, **kwargs)
1621
1622 def GetInputStream(*args, **kwargs):
1623 """GetInputStream() -> wxInputStream"""
1624 return _misc.Process_GetInputStream(*args, **kwargs)
1625
1626 def GetErrorStream(*args, **kwargs):
1627 """GetErrorStream() -> wxInputStream"""
1628 return _misc.Process_GetErrorStream(*args, **kwargs)
1629
1630 def GetOutputStream(*args, **kwargs):
1631 """GetOutputStream() -> OutputStream"""
1632 return _misc.Process_GetOutputStream(*args, **kwargs)
1633
1634 def CloseOutput(*args, **kwargs):
1635 """CloseOutput()"""
1636 return _misc.Process_CloseOutput(*args, **kwargs)
1637
1638 def IsInputOpened(*args, **kwargs):
1639 """IsInputOpened() -> bool"""
1640 return _misc.Process_IsInputOpened(*args, **kwargs)
1641
1642 def IsInputAvailable(*args, **kwargs):
1643 """IsInputAvailable() -> bool"""
1644 return _misc.Process_IsInputAvailable(*args, **kwargs)
1645
1646 def IsErrorAvailable(*args, **kwargs):
1647 """IsErrorAvailable() -> bool"""
1648 return _misc.Process_IsErrorAvailable(*args, **kwargs)
1649
1650
1651 class ProcessPtr(Process):
1652 def __init__(self, this):
1653 self.this = this
1654 if not hasattr(self,"thisown"): self.thisown = 0
1655 self.__class__ = Process
1656 _misc.Process_swigregister(ProcessPtr)
1657
1658 def Process_Kill(*args, **kwargs):
1659 """Process_Kill(int pid, wxSignal sig=SIGTERM) -> wxKillError"""
1660 return _misc.Process_Kill(*args, **kwargs)
1661
1662 def Process_Exists(*args, **kwargs):
1663 """Process_Exists(int pid) -> bool"""
1664 return _misc.Process_Exists(*args, **kwargs)
1665
1666 def Process_Open(*args, **kwargs):
1667 """Process_Open(wxString cmd, int flags=EXEC_ASYNC) -> Process"""
1668 return _misc.Process_Open(*args, **kwargs)
1669
1670 class ProcessEvent(core.Event):
1671 def __repr__(self):
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
1677 self.thisown = 1
1678 del newobj.thisown
1679 def GetPid(*args, **kwargs):
1680 """GetPid() -> int"""
1681 return _misc.ProcessEvent_GetPid(*args, **kwargs)
1682
1683 def GetExitCode(*args, **kwargs):
1684 """GetExitCode() -> int"""
1685 return _misc.ProcessEvent_GetExitCode(*args, **kwargs)
1686
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)
1689
1690 class ProcessEventPtr(ProcessEvent):
1691 def __init__(self, this):
1692 self.this = this
1693 if not hasattr(self,"thisown"): self.thisown = 0
1694 self.__class__ = ProcessEvent
1695 _misc.ProcessEvent_swigregister(ProcessEventPtr)
1696
1697 wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS
1698 EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 )
1699
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
1704
1705 def Execute(*args, **kwargs):
1706 """Execute(wxString command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1707 return _misc.Execute(*args, **kwargs)
1708 #---------------------------------------------------------------------------
1709
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):
1718 def __repr__(self):
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
1724 self.thisown = 1
1725 del newobj.thisown
1726 def __del__(self, destroy=_misc.delete_Joystick):
1727 """__del__()"""
1728 try:
1729 if self.thisown: destroy(self)
1730 except: pass
1731
1732 def GetPosition(*args, **kwargs):
1733 """GetPosition() -> Point"""
1734 return _misc.Joystick_GetPosition(*args, **kwargs)
1735
1736 def GetZPosition(*args, **kwargs):
1737 """GetZPosition() -> int"""
1738 return _misc.Joystick_GetZPosition(*args, **kwargs)
1739
1740 def GetButtonState(*args, **kwargs):
1741 """GetButtonState() -> int"""
1742 return _misc.Joystick_GetButtonState(*args, **kwargs)
1743
1744 def GetPOVPosition(*args, **kwargs):
1745 """GetPOVPosition() -> int"""
1746 return _misc.Joystick_GetPOVPosition(*args, **kwargs)
1747
1748 def GetPOVCTSPosition(*args, **kwargs):
1749 """GetPOVCTSPosition() -> int"""
1750 return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs)
1751
1752 def GetRudderPosition(*args, **kwargs):
1753 """GetRudderPosition() -> int"""
1754 return _misc.Joystick_GetRudderPosition(*args, **kwargs)
1755
1756 def GetUPosition(*args, **kwargs):
1757 """GetUPosition() -> int"""
1758 return _misc.Joystick_GetUPosition(*args, **kwargs)
1759
1760 def GetVPosition(*args, **kwargs):
1761 """GetVPosition() -> int"""
1762 return _misc.Joystick_GetVPosition(*args, **kwargs)
1763
1764 def GetMovementThreshold(*args, **kwargs):
1765 """GetMovementThreshold() -> int"""
1766 return _misc.Joystick_GetMovementThreshold(*args, **kwargs)
1767
1768 def SetMovementThreshold(*args, **kwargs):
1769 """SetMovementThreshold(int threshold)"""
1770 return _misc.Joystick_SetMovementThreshold(*args, **kwargs)
1771
1772 def IsOk(*args, **kwargs):
1773 """IsOk() -> bool"""
1774 return _misc.Joystick_IsOk(*args, **kwargs)
1775
1776 def GetNumberJoysticks(*args, **kwargs):
1777 """GetNumberJoysticks() -> int"""
1778 return _misc.Joystick_GetNumberJoysticks(*args, **kwargs)
1779
1780 def GetManufacturerId(*args, **kwargs):
1781 """GetManufacturerId() -> int"""
1782 return _misc.Joystick_GetManufacturerId(*args, **kwargs)
1783
1784 def GetProductId(*args, **kwargs):
1785 """GetProductId() -> int"""
1786 return _misc.Joystick_GetProductId(*args, **kwargs)
1787
1788 def GetProductName(*args, **kwargs):
1789 """GetProductName() -> wxString"""
1790 return _misc.Joystick_GetProductName(*args, **kwargs)
1791
1792 def GetXMin(*args, **kwargs):
1793 """GetXMin() -> int"""
1794 return _misc.Joystick_GetXMin(*args, **kwargs)
1795
1796 def GetYMin(*args, **kwargs):
1797 """GetYMin() -> int"""
1798 return _misc.Joystick_GetYMin(*args, **kwargs)
1799
1800 def GetZMin(*args, **kwargs):
1801 """GetZMin() -> int"""
1802 return _misc.Joystick_GetZMin(*args, **kwargs)
1803
1804 def GetXMax(*args, **kwargs):
1805 """GetXMax() -> int"""
1806 return _misc.Joystick_GetXMax(*args, **kwargs)
1807
1808 def GetYMax(*args, **kwargs):
1809 """GetYMax() -> int"""
1810 return _misc.Joystick_GetYMax(*args, **kwargs)
1811
1812 def GetZMax(*args, **kwargs):
1813 """GetZMax() -> int"""
1814 return _misc.Joystick_GetZMax(*args, **kwargs)
1815
1816 def GetNumberButtons(*args, **kwargs):
1817 """GetNumberButtons() -> int"""
1818 return _misc.Joystick_GetNumberButtons(*args, **kwargs)
1819
1820 def GetNumberAxes(*args, **kwargs):
1821 """GetNumberAxes() -> int"""
1822 return _misc.Joystick_GetNumberAxes(*args, **kwargs)
1823
1824 def GetMaxButtons(*args, **kwargs):
1825 """GetMaxButtons() -> int"""
1826 return _misc.Joystick_GetMaxButtons(*args, **kwargs)
1827
1828 def GetMaxAxes(*args, **kwargs):
1829 """GetMaxAxes() -> int"""
1830 return _misc.Joystick_GetMaxAxes(*args, **kwargs)
1831
1832 def GetPollingMin(*args, **kwargs):
1833 """GetPollingMin() -> int"""
1834 return _misc.Joystick_GetPollingMin(*args, **kwargs)
1835
1836 def GetPollingMax(*args, **kwargs):
1837 """GetPollingMax() -> int"""
1838 return _misc.Joystick_GetPollingMax(*args, **kwargs)
1839
1840 def GetRudderMin(*args, **kwargs):
1841 """GetRudderMin() -> int"""
1842 return _misc.Joystick_GetRudderMin(*args, **kwargs)
1843
1844 def GetRudderMax(*args, **kwargs):
1845 """GetRudderMax() -> int"""
1846 return _misc.Joystick_GetRudderMax(*args, **kwargs)
1847
1848 def GetUMin(*args, **kwargs):
1849 """GetUMin() -> int"""
1850 return _misc.Joystick_GetUMin(*args, **kwargs)
1851
1852 def GetUMax(*args, **kwargs):
1853 """GetUMax() -> int"""
1854 return _misc.Joystick_GetUMax(*args, **kwargs)
1855
1856 def GetVMin(*args, **kwargs):
1857 """GetVMin() -> int"""
1858 return _misc.Joystick_GetVMin(*args, **kwargs)
1859
1860 def GetVMax(*args, **kwargs):
1861 """GetVMax() -> int"""
1862 return _misc.Joystick_GetVMax(*args, **kwargs)
1863
1864 def HasRudder(*args, **kwargs):
1865 """HasRudder() -> bool"""
1866 return _misc.Joystick_HasRudder(*args, **kwargs)
1867
1868 def HasZ(*args, **kwargs):
1869 """HasZ() -> bool"""
1870 return _misc.Joystick_HasZ(*args, **kwargs)
1871
1872 def HasU(*args, **kwargs):
1873 """HasU() -> bool"""
1874 return _misc.Joystick_HasU(*args, **kwargs)
1875
1876 def HasV(*args, **kwargs):
1877 """HasV() -> bool"""
1878 return _misc.Joystick_HasV(*args, **kwargs)
1879
1880 def HasPOV(*args, **kwargs):
1881 """HasPOV() -> bool"""
1882 return _misc.Joystick_HasPOV(*args, **kwargs)
1883
1884 def HasPOV4Dir(*args, **kwargs):
1885 """HasPOV4Dir() -> bool"""
1886 return _misc.Joystick_HasPOV4Dir(*args, **kwargs)
1887
1888 def HasPOVCTS(*args, **kwargs):
1889 """HasPOVCTS() -> bool"""
1890 return _misc.Joystick_HasPOVCTS(*args, **kwargs)
1891
1892 def SetCapture(*args, **kwargs):
1893 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1894 return _misc.Joystick_SetCapture(*args, **kwargs)
1895
1896 def ReleaseCapture(*args, **kwargs):
1897 """ReleaseCapture() -> bool"""
1898 return _misc.Joystick_ReleaseCapture(*args, **kwargs)
1899
1900 def __nonzero__(self): return self.IsOk()
1901
1902 class JoystickPtr(Joystick):
1903 def __init__(self, this):
1904 self.this = this
1905 if not hasattr(self,"thisown"): self.thisown = 0
1906 self.__class__ = Joystick
1907 _misc.Joystick_swigregister(JoystickPtr)
1908
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):
1914 def __repr__(self):
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):
1922 """
1923 __init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1924 int change=0) -> JoystickEvent
1925 """
1926 newobj = _misc.new_JoystickEvent(*args, **kwargs)
1927 self.this = newobj.this
1928 self.thisown = 1
1929 del newobj.thisown
1930 def GetPosition(*args, **kwargs):
1931 """GetPosition() -> Point"""
1932 return _misc.JoystickEvent_GetPosition(*args, **kwargs)
1933
1934 def GetZPosition(*args, **kwargs):
1935 """GetZPosition() -> int"""
1936 return _misc.JoystickEvent_GetZPosition(*args, **kwargs)
1937
1938 def GetButtonState(*args, **kwargs):
1939 """GetButtonState() -> int"""
1940 return _misc.JoystickEvent_GetButtonState(*args, **kwargs)
1941
1942 def GetButtonChange(*args, **kwargs):
1943 """GetButtonChange() -> int"""
1944 return _misc.JoystickEvent_GetButtonChange(*args, **kwargs)
1945
1946 def GetJoystick(*args, **kwargs):
1947 """GetJoystick() -> int"""
1948 return _misc.JoystickEvent_GetJoystick(*args, **kwargs)
1949
1950 def SetJoystick(*args, **kwargs):
1951 """SetJoystick(int stick)"""
1952 return _misc.JoystickEvent_SetJoystick(*args, **kwargs)
1953
1954 def SetButtonState(*args, **kwargs):
1955 """SetButtonState(int state)"""
1956 return _misc.JoystickEvent_SetButtonState(*args, **kwargs)
1957
1958 def SetButtonChange(*args, **kwargs):
1959 """SetButtonChange(int change)"""
1960 return _misc.JoystickEvent_SetButtonChange(*args, **kwargs)
1961
1962 def SetPosition(*args, **kwargs):
1963 """SetPosition(Point pos)"""
1964 return _misc.JoystickEvent_SetPosition(*args, **kwargs)
1965
1966 def SetZPosition(*args, **kwargs):
1967 """SetZPosition(int zPos)"""
1968 return _misc.JoystickEvent_SetZPosition(*args, **kwargs)
1969
1970 def IsButton(*args, **kwargs):
1971 """IsButton() -> bool"""
1972 return _misc.JoystickEvent_IsButton(*args, **kwargs)
1973
1974 def IsMove(*args, **kwargs):
1975 """IsMove() -> bool"""
1976 return _misc.JoystickEvent_IsMove(*args, **kwargs)
1977
1978 def IsZMove(*args, **kwargs):
1979 """IsZMove() -> bool"""
1980 return _misc.JoystickEvent_IsZMove(*args, **kwargs)
1981
1982 def ButtonDown(*args, **kwargs):
1983 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1984 return _misc.JoystickEvent_ButtonDown(*args, **kwargs)
1985
1986 def ButtonUp(*args, **kwargs):
1987 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1988 return _misc.JoystickEvent_ButtonUp(*args, **kwargs)
1989
1990 def ButtonIsDown(*args, **kwargs):
1991 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1992 return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs)
1993
1994
1995 class JoystickEventPtr(JoystickEvent):
1996 def __init__(self, this):
1997 self.this = this
1998 if not hasattr(self,"thisown"): self.thisown = 0
1999 self.__class__ = JoystickEvent
2000 _misc.JoystickEvent_swigregister(JoystickEventPtr)
2001
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 )
2006
2007 EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN,
2008 wxEVT_JOY_BUTTON_UP,
2009 wxEVT_JOY_MOVE,
2010 wxEVT_JOY_ZMOVE,
2011 ])
2012
2013
2014 #---------------------------------------------------------------------------
2015
2016 class Wave(object):
2017 def __repr__(self):
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
2023 self.thisown = 1
2024 del newobj.thisown
2025 def __del__(self, destroy=_misc.delete_Wave):
2026 """__del__()"""
2027 try:
2028 if self.thisown: destroy(self)
2029 except: pass
2030
2031 def IsOk(*args, **kwargs):
2032 """IsOk() -> bool"""
2033 return _misc.Wave_IsOk(*args, **kwargs)
2034
2035 def Play(*args, **kwargs):
2036 """Play(bool async=True, bool looped=False) -> bool"""
2037 return _misc.Wave_Play(*args, **kwargs)
2038
2039 def __nonzero__(self): return self.IsOk()
2040
2041 class WavePtr(Wave):
2042 def __init__(self, this):
2043 self.this = this
2044 if not hasattr(self,"thisown"): self.thisown = 0
2045 self.__class__ = Wave
2046 _misc.Wave_swigregister(WavePtr)
2047
2048 def WaveData(*args, **kwargs):
2049 """WaveData(wxString data) -> Wave"""
2050 val = _misc.new_WaveData(*args, **kwargs)
2051 val.thisown = 1
2052 return val
2053
2054 #---------------------------------------------------------------------------
2055
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):
2062 def __repr__(self):
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):
2065 """
2066 __init__(wxString mimeType, wxString openCmd, wxString printCmd,
2067 wxString desc) -> FileTypeInfo
2068 """
2069 newobj = _misc.new_FileTypeInfo(*args, **kwargs)
2070 self.this = newobj.this
2071 self.thisown = 1
2072 del newobj.thisown
2073 def IsValid(*args, **kwargs):
2074 """IsValid() -> bool"""
2075 return _misc.FileTypeInfo_IsValid(*args, **kwargs)
2076
2077 def SetIcon(*args, **kwargs):
2078 """SetIcon(wxString iconFile, int iconIndex=0)"""
2079 return _misc.FileTypeInfo_SetIcon(*args, **kwargs)
2080
2081 def SetShortDesc(*args, **kwargs):
2082 """SetShortDesc(wxString shortDesc)"""
2083 return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs)
2084
2085 def GetMimeType(*args, **kwargs):
2086 """GetMimeType() -> wxString"""
2087 return _misc.FileTypeInfo_GetMimeType(*args, **kwargs)
2088
2089 def GetOpenCommand(*args, **kwargs):
2090 """GetOpenCommand() -> wxString"""
2091 return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs)
2092
2093 def GetPrintCommand(*args, **kwargs):
2094 """GetPrintCommand() -> wxString"""
2095 return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs)
2096
2097 def GetShortDesc(*args, **kwargs):
2098 """GetShortDesc() -> wxString"""
2099 return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs)
2100
2101 def GetDescription(*args, **kwargs):
2102 """GetDescription() -> wxString"""
2103 return _misc.FileTypeInfo_GetDescription(*args, **kwargs)
2104
2105 def GetExtensions(*args, **kwargs):
2106 """GetExtensions() -> wxArrayString"""
2107 return _misc.FileTypeInfo_GetExtensions(*args, **kwargs)
2108
2109 def GetExtensionsCount(*args, **kwargs):
2110 """GetExtensionsCount() -> int"""
2111 return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs)
2112
2113 def GetIconFile(*args, **kwargs):
2114 """GetIconFile() -> wxString"""
2115 return _misc.FileTypeInfo_GetIconFile(*args, **kwargs)
2116
2117 def GetIconIndex(*args, **kwargs):
2118 """GetIconIndex() -> int"""
2119 return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs)
2120
2121
2122 class FileTypeInfoPtr(FileTypeInfo):
2123 def __init__(self, this):
2124 self.this = this
2125 if not hasattr(self,"thisown"): self.thisown = 0
2126 self.__class__ = FileTypeInfo
2127 _misc.FileTypeInfo_swigregister(FileTypeInfoPtr)
2128
2129 def FileTypeInfoSequence(*args, **kwargs):
2130 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2131 val = _misc.new_FileTypeInfoSequence(*args, **kwargs)
2132 val.thisown = 1
2133 return val
2134
2135 def NullFileTypeInfo(*args, **kwargs):
2136 """NullFileTypeInfo() -> FileTypeInfo"""
2137 val = _misc.new_NullFileTypeInfo(*args, **kwargs)
2138 val.thisown = 1
2139 return val
2140
2141 class FileType(object):
2142 def __repr__(self):
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
2148 self.thisown = 1
2149 del newobj.thisown
2150 def __del__(self, destroy=_misc.delete_FileType):
2151 """__del__()"""
2152 try:
2153 if self.thisown: destroy(self)
2154 except: pass
2155
2156 def GetMimeType(*args, **kwargs):
2157 """GetMimeType() -> PyObject"""
2158 return _misc.FileType_GetMimeType(*args, **kwargs)
2159
2160 def GetMimeTypes(*args, **kwargs):
2161 """GetMimeTypes() -> PyObject"""
2162 return _misc.FileType_GetMimeTypes(*args, **kwargs)
2163
2164 def GetExtensions(*args, **kwargs):
2165 """GetExtensions() -> PyObject"""
2166 return _misc.FileType_GetExtensions(*args, **kwargs)
2167
2168 def GetIcon(*args, **kwargs):
2169 """GetIcon() -> wxIcon"""
2170 return _misc.FileType_GetIcon(*args, **kwargs)
2171
2172 def GetIconInfo(*args, **kwargs):
2173 """GetIconInfo() -> PyObject"""
2174 return _misc.FileType_GetIconInfo(*args, **kwargs)
2175
2176 def GetDescription(*args, **kwargs):
2177 """GetDescription() -> PyObject"""
2178 return _misc.FileType_GetDescription(*args, **kwargs)
2179
2180 def GetOpenCommand(*args, **kwargs):
2181 """GetOpenCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2182 return _misc.FileType_GetOpenCommand(*args, **kwargs)
2183
2184 def GetPrintCommand(*args, **kwargs):
2185 """GetPrintCommand(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2186 return _misc.FileType_GetPrintCommand(*args, **kwargs)
2187
2188 def GetAllCommands(*args, **kwargs):
2189 """GetAllCommands(wxString filename, wxString mimetype=wxPyEmptyString) -> PyObject"""
2190 return _misc.FileType_GetAllCommands(*args, **kwargs)
2191
2192 def SetCommand(*args, **kwargs):
2193 """SetCommand(wxString cmd, wxString verb, bool overwriteprompt=True) -> bool"""
2194 return _misc.FileType_SetCommand(*args, **kwargs)
2195
2196 def SetDefaultIcon(*args, **kwargs):
2197 """SetDefaultIcon(wxString cmd=wxPyEmptyString, int index=0) -> bool"""
2198 return _misc.FileType_SetDefaultIcon(*args, **kwargs)
2199
2200 def Unassociate(*args, **kwargs):
2201 """Unassociate() -> bool"""
2202 return _misc.FileType_Unassociate(*args, **kwargs)
2203
2204 def ExpandCommand(*args, **kwargs):
2205 """FileType.ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2206 return _misc.FileType_ExpandCommand(*args, **kwargs)
2207
2208 ExpandCommand = staticmethod(ExpandCommand)
2209
2210 class FileTypePtr(FileType):
2211 def __init__(self, this):
2212 self.this = this
2213 if not hasattr(self,"thisown"): self.thisown = 0
2214 self.__class__ = FileType
2215 _misc.FileType_swigregister(FileTypePtr)
2216
2217 def FileType_ExpandCommand(*args, **kwargs):
2218 """FileType_ExpandCommand(wxString command, wxString filename, wxString mimetype=wxPyEmptyString) -> wxString"""
2219 return _misc.FileType_ExpandCommand(*args, **kwargs)
2220
2221 class MimeTypesManager(object):
2222 def __repr__(self):
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)
2227
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
2233 self.thisown = 1
2234 del newobj.thisown
2235 def Initialize(*args, **kwargs):
2236 """Initialize(int mailcapStyle=MAILCAP_ALL, wxString extraDir=wxPyEmptyString)"""
2237 return _misc.MimeTypesManager_Initialize(*args, **kwargs)
2238
2239 def ClearData(*args, **kwargs):
2240 """ClearData()"""
2241 return _misc.MimeTypesManager_ClearData(*args, **kwargs)
2242
2243 def GetFileTypeFromExtension(*args, **kwargs):
2244 """GetFileTypeFromExtension(wxString ext) -> FileType"""
2245 return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs)
2246
2247 def GetFileTypeFromMimeType(*args, **kwargs):
2248 """GetFileTypeFromMimeType(wxString mimeType) -> FileType"""
2249 return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs)
2250
2251 def ReadMailcap(*args, **kwargs):
2252 """ReadMailcap(wxString filename, bool fallback=False) -> bool"""
2253 return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs)
2254
2255 def ReadMimeTypes(*args, **kwargs):
2256 """ReadMimeTypes(wxString filename) -> bool"""
2257 return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs)
2258
2259 def EnumAllFileTypes(*args, **kwargs):
2260 """EnumAllFileTypes() -> PyObject"""
2261 return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs)
2262
2263 def AddFallback(*args, **kwargs):
2264 """AddFallback(FileTypeInfo ft)"""
2265 return _misc.MimeTypesManager_AddFallback(*args, **kwargs)
2266
2267 def Associate(*args, **kwargs):
2268 """Associate(FileTypeInfo ftInfo) -> FileType"""
2269 return _misc.MimeTypesManager_Associate(*args, **kwargs)
2270
2271 def Unassociate(*args, **kwargs):
2272 """Unassociate(FileType ft) -> bool"""
2273 return _misc.MimeTypesManager_Unassociate(*args, **kwargs)
2274
2275 def __del__(self, destroy=_misc.delete_MimeTypesManager):
2276 """__del__()"""
2277 try:
2278 if self.thisown: destroy(self)
2279 except: pass
2280
2281
2282 class MimeTypesManagerPtr(MimeTypesManager):
2283 def __init__(self, this):
2284 self.this = this
2285 if not hasattr(self,"thisown"): self.thisown = 0
2286 self.__class__ = MimeTypesManager
2287 _misc.MimeTypesManager_swigregister(MimeTypesManagerPtr)
2288 cvar = _misc.cvar
2289 TheMimeTypesManager = cvar.TheMimeTypesManager
2290
2291 def MimeTypesManager_IsOfType(*args, **kwargs):
2292 """MimeTypesManager_IsOfType(wxString mimeType, wxString wildcard) -> bool"""
2293 return _misc.MimeTypesManager_IsOfType(*args, **kwargs)
2294
2295 #---------------------------------------------------------------------------
2296
2297 class ArtProvider(object):
2298 def __repr__(self):
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
2304 self.thisown = 1
2305 del newobj.thisown
2306 self._setCallbackInfo(self, ArtProvider)
2307
2308 def _setCallbackInfo(*args, **kwargs):
2309 """_setCallbackInfo(PyObject self, PyObject _class)"""
2310 return _misc.ArtProvider__setCallbackInfo(*args, **kwargs)
2311
2312 def PushProvider(*args, **kwargs):
2313 """
2314 ArtProvider.PushProvider(ArtProvider provider)
2315
2316 Add new provider to the top of providers stack.
2317 """
2318 return _misc.ArtProvider_PushProvider(*args, **kwargs)
2319
2320 PushProvider = staticmethod(PushProvider)
2321 def PopProvider(*args, **kwargs):
2322 """
2323 ArtProvider.PopProvider() -> bool
2324
2325 Remove latest added provider and delete it.
2326 """
2327 return _misc.ArtProvider_PopProvider(*args, **kwargs)
2328
2329 PopProvider = staticmethod(PopProvider)
2330 def RemoveProvider(*args, **kwargs):
2331 """
2332 ArtProvider.RemoveProvider(ArtProvider provider) -> bool
2333
2334 Remove provider. The provider must have been added previously!
2335 The provider is _not_ deleted.
2336 """
2337 return _misc.ArtProvider_RemoveProvider(*args, **kwargs)
2338
2339 RemoveProvider = staticmethod(RemoveProvider)
2340 def GetBitmap(*args, **kwargs):
2341 """
2342 ArtProvider.GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2343
2344 Query the providers for bitmap with given ID and return it. Return
2345 wx.NullBitmap if no provider provides it.
2346 """
2347 return _misc.ArtProvider_GetBitmap(*args, **kwargs)
2348
2349 GetBitmap = staticmethod(GetBitmap)
2350 def GetIcon(*args, **kwargs):
2351 """
2352 ArtProvider.GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2353
2354 Query the providers for icon with given ID and return it. Return
2355 wx.NullIcon if no provider provides it.
2356 """
2357 return _misc.ArtProvider_GetIcon(*args, **kwargs)
2358
2359 GetIcon = staticmethod(GetIcon)
2360 def Destroy(*args, **kwargs):
2361 """Destroy()"""
2362 return _misc.ArtProvider_Destroy(*args, **kwargs)
2363
2364
2365 class ArtProviderPtr(ArtProvider):
2366 def __init__(self, this):
2367 self.this = 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
2409
2410 def ArtProvider_PushProvider(*args, **kwargs):
2411 """
2412 ArtProvider_PushProvider(ArtProvider provider)
2413
2414 Add new provider to the top of providers stack.
2415 """
2416 return _misc.ArtProvider_PushProvider(*args, **kwargs)
2417
2418 def ArtProvider_PopProvider(*args, **kwargs):
2419 """
2420 ArtProvider_PopProvider() -> bool
2421
2422 Remove latest added provider and delete it.
2423 """
2424 return _misc.ArtProvider_PopProvider(*args, **kwargs)
2425
2426 def ArtProvider_RemoveProvider(*args, **kwargs):
2427 """
2428 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2429
2430 Remove provider. The provider must have been added previously!
2431 The provider is _not_ deleted.
2432 """
2433 return _misc.ArtProvider_RemoveProvider(*args, **kwargs)
2434
2435 def ArtProvider_GetBitmap(*args, **kwargs):
2436 """
2437 ArtProvider_GetBitmap(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxBitmap
2438
2439 Query the providers for bitmap with given ID and return it. Return
2440 wx.NullBitmap if no provider provides it.
2441 """
2442 return _misc.ArtProvider_GetBitmap(*args, **kwargs)
2443
2444 def ArtProvider_GetIcon(*args, **kwargs):
2445 """
2446 ArtProvider_GetIcon(wxString id, wxString client=ART_OTHER, Size size=DefaultSize) -> wxIcon
2447
2448 Query the providers for icon with given ID and return it. Return
2449 wx.NullIcon if no provider provides it.
2450 """
2451 return _misc.ArtProvider_GetIcon(*args, **kwargs)
2452
2453 #---------------------------------------------------------------------------
2454
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"
2461 def __repr__(self):
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):
2464 """__del__()"""
2465 try:
2466 if self.thisown: destroy(self)
2467 except: pass
2468
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)
2477
2478 Set = staticmethod(Set)
2479 def Get(*args, **kwargs):
2480 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2481 return _misc.ConfigBase_Get(*args, **kwargs)
2482
2483 Get = staticmethod(Get)
2484 def Create(*args, **kwargs):
2485 """ConfigBase.Create() -> ConfigBase"""
2486 return _misc.ConfigBase_Create(*args, **kwargs)
2487
2488 Create = staticmethod(Create)
2489 def DontCreateOnDemand(*args, **kwargs):
2490 """ConfigBase.DontCreateOnDemand()"""
2491 return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs)
2492
2493 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
2494 def SetPath(*args, **kwargs):
2495 """SetPath(wxString strPath)"""
2496 return _misc.ConfigBase_SetPath(*args, **kwargs)
2497
2498 def GetPath(*args, **kwargs):
2499 """GetPath() -> wxString"""
2500 return _misc.ConfigBase_GetPath(*args, **kwargs)
2501
2502 def GetFirstGroup(*args, **kwargs):
2503 """GetFirstGroup() -> PyObject"""
2504 return _misc.ConfigBase_GetFirstGroup(*args, **kwargs)
2505
2506 def GetNextGroup(*args, **kwargs):
2507 """GetNextGroup(long index) -> PyObject"""
2508 return _misc.ConfigBase_GetNextGroup(*args, **kwargs)
2509
2510 def GetFirstEntry(*args, **kwargs):
2511 """GetFirstEntry() -> PyObject"""
2512 return _misc.ConfigBase_GetFirstEntry(*args, **kwargs)
2513
2514 def GetNextEntry(*args, **kwargs):
2515 """GetNextEntry(long index) -> PyObject"""
2516 return _misc.ConfigBase_GetNextEntry(*args, **kwargs)
2517
2518 def GetNumberOfEntries(*args, **kwargs):
2519 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2520 return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs)
2521
2522 def GetNumberOfGroups(*args, **kwargs):
2523 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2524 return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs)
2525
2526 def HasGroup(*args, **kwargs):
2527 """HasGroup(wxString strName) -> bool"""
2528 return _misc.ConfigBase_HasGroup(*args, **kwargs)
2529
2530 def HasEntry(*args, **kwargs):
2531 """HasEntry(wxString strName) -> bool"""
2532 return _misc.ConfigBase_HasEntry(*args, **kwargs)
2533
2534 def Exists(*args, **kwargs):
2535 """Exists(wxString strName) -> bool"""
2536 return _misc.ConfigBase_Exists(*args, **kwargs)
2537
2538 def GetEntryType(*args, **kwargs):
2539 """GetEntryType(wxString name) -> wxConfigBase::EntryType"""
2540 return _misc.ConfigBase_GetEntryType(*args, **kwargs)
2541
2542 def Read(*args, **kwargs):
2543 """Read(wxString key, wxString defaultVal=wxPyEmptyString) -> wxString"""
2544 return _misc.ConfigBase_Read(*args, **kwargs)
2545
2546 def ReadInt(*args, **kwargs):
2547 """ReadInt(wxString key, long defaultVal=0) -> long"""
2548 return _misc.ConfigBase_ReadInt(*args, **kwargs)
2549
2550 def ReadFloat(*args, **kwargs):
2551 """ReadFloat(wxString key, double defaultVal=0.0) -> double"""
2552 return _misc.ConfigBase_ReadFloat(*args, **kwargs)
2553
2554 def ReadBool(*args, **kwargs):
2555 """ReadBool(wxString key, bool defaultVal=False) -> bool"""
2556 return _misc.ConfigBase_ReadBool(*args, **kwargs)
2557
2558 def Write(*args, **kwargs):
2559 """Write(wxString key, wxString value) -> bool"""
2560 return _misc.ConfigBase_Write(*args, **kwargs)
2561
2562 def WriteInt(*args, **kwargs):
2563 """WriteInt(wxString key, long value) -> bool"""
2564 return _misc.ConfigBase_WriteInt(*args, **kwargs)
2565
2566 def WriteFloat(*args, **kwargs):
2567 """WriteFloat(wxString key, double value) -> bool"""
2568 return _misc.ConfigBase_WriteFloat(*args, **kwargs)
2569
2570 def WriteBool(*args, **kwargs):
2571 """WriteBool(wxString key, bool value) -> bool"""
2572 return _misc.ConfigBase_WriteBool(*args, **kwargs)
2573
2574 def Flush(*args, **kwargs):
2575 """Flush(bool bCurrentOnly=False) -> bool"""
2576 return _misc.ConfigBase_Flush(*args, **kwargs)
2577
2578 def RenameEntry(*args, **kwargs):
2579 """RenameEntry(wxString oldName, wxString newName) -> bool"""
2580 return _misc.ConfigBase_RenameEntry(*args, **kwargs)
2581
2582 def RenameGroup(*args, **kwargs):
2583 """RenameGroup(wxString oldName, wxString newName) -> bool"""
2584 return _misc.ConfigBase_RenameGroup(*args, **kwargs)
2585
2586 def DeleteEntry(*args, **kwargs):
2587 """DeleteEntry(wxString key, bool bDeleteGroupIfEmpty=True) -> bool"""
2588 return _misc.ConfigBase_DeleteEntry(*args, **kwargs)
2589
2590 def DeleteGroup(*args, **kwargs):
2591 """DeleteGroup(wxString key) -> bool"""
2592 return _misc.ConfigBase_DeleteGroup(*args, **kwargs)
2593
2594 def DeleteAll(*args, **kwargs):
2595 """DeleteAll() -> bool"""
2596 return _misc.ConfigBase_DeleteAll(*args, **kwargs)
2597
2598 def IsExpandingEnvVars(*args, **kwargs):
2599 """IsExpandingEnvVars() -> bool"""
2600 return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs)
2601
2602 def SetExpandEnvVars(*args, **kwargs):
2603 """SetExpandEnvVars(bool bDoIt=True)"""
2604 return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs)
2605
2606 def SetRecordDefaults(*args, **kwargs):
2607 """SetRecordDefaults(bool bDoIt=True)"""
2608 return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs)
2609
2610 def IsRecordingDefaults(*args, **kwargs):
2611 """IsRecordingDefaults() -> bool"""
2612 return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs)
2613
2614 def ExpandEnvVars(*args, **kwargs):
2615 """ExpandEnvVars(wxString str) -> wxString"""
2616 return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs)
2617
2618 def GetAppName(*args, **kwargs):
2619 """GetAppName() -> wxString"""
2620 return _misc.ConfigBase_GetAppName(*args, **kwargs)
2621
2622 def GetVendorName(*args, **kwargs):
2623 """GetVendorName() -> wxString"""
2624 return _misc.ConfigBase_GetVendorName(*args, **kwargs)
2625
2626 def SetAppName(*args, **kwargs):
2627 """SetAppName(wxString appName)"""
2628 return _misc.ConfigBase_SetAppName(*args, **kwargs)
2629
2630 def SetVendorName(*args, **kwargs):
2631 """SetVendorName(wxString vendorName)"""
2632 return _misc.ConfigBase_SetVendorName(*args, **kwargs)
2633
2634 def SetStyle(*args, **kwargs):
2635 """SetStyle(long style)"""
2636 return _misc.ConfigBase_SetStyle(*args, **kwargs)
2637
2638 def GetStyle(*args, **kwargs):
2639 """GetStyle() -> long"""
2640 return _misc.ConfigBase_GetStyle(*args, **kwargs)
2641
2642
2643 class ConfigBasePtr(ConfigBase):
2644 def __init__(self, this):
2645 self.this = this
2646 if not hasattr(self,"thisown"): self.thisown = 0
2647 self.__class__ = ConfigBase
2648 _misc.ConfigBase_swigregister(ConfigBasePtr)
2649
2650 def ConfigBase_Set(*args, **kwargs):
2651 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2652 return _misc.ConfigBase_Set(*args, **kwargs)
2653
2654 def ConfigBase_Get(*args, **kwargs):
2655 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2656 return _misc.ConfigBase_Get(*args, **kwargs)
2657
2658 def ConfigBase_Create(*args, **kwargs):
2659 """ConfigBase_Create() -> ConfigBase"""
2660 return _misc.ConfigBase_Create(*args, **kwargs)
2661
2662 def ConfigBase_DontCreateOnDemand(*args, **kwargs):
2663 """ConfigBase_DontCreateOnDemand()"""
2664 return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs)
2665
2666 class ConfigPathChanger(object):
2667 def __repr__(self):
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
2673 self.thisown = 1
2674 del newobj.thisown
2675 def __del__(self, destroy=_misc.delete_ConfigPathChanger):
2676 """__del__()"""
2677 try:
2678 if self.thisown: destroy(self)
2679 except: pass
2680
2681 def Name(*args, **kwargs):
2682 """Name() -> wxString"""
2683 return _misc.ConfigPathChanger_Name(*args, **kwargs)
2684
2685
2686 class ConfigPathChangerPtr(ConfigPathChanger):
2687 def __init__(self, this):
2688 self.this = this
2689 if not hasattr(self,"thisown"): self.thisown = 0
2690 self.__class__ = ConfigPathChanger
2691 _misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr)
2692
2693 class Config(ConfigBase):
2694 def __repr__(self):
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):
2697 """
2698 __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2699 wxString localFilename=wxPyEmptyString,
2700 wxString globalFilename=wxPyEmptyString,
2701 long style=0) -> Config
2702 """
2703 newobj = _misc.new_Config(*args, **kwargs)
2704 self.this = newobj.this
2705 self.thisown = 1
2706 del newobj.thisown
2707 def __del__(self, destroy=_misc.delete_Config):
2708 """__del__()"""
2709 try:
2710 if self.thisown: destroy(self)
2711 except: pass
2712
2713
2714 class ConfigPtr(Config):
2715 def __init__(self, this):
2716 self.this = this
2717 if not hasattr(self,"thisown"): self.thisown = 0
2718 self.__class__ = Config
2719 _misc.Config_swigregister(ConfigPtr)
2720
2721 class FileConfig(ConfigBase):
2722 def __repr__(self):
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):
2725 """
2726 __init__(wxString appName=wxPyEmptyString, wxString vendorName=wxPyEmptyString,
2727 wxString localFilename=wxPyEmptyString,
2728 wxString globalFilename=wxPyEmptyString,
2729 long style=0) -> FileConfig
2730 """
2731 newobj = _misc.new_FileConfig(*args, **kwargs)
2732 self.this = newobj.this
2733 self.thisown = 1
2734 del newobj.thisown
2735 def __del__(self, destroy=_misc.delete_FileConfig):
2736 """__del__()"""
2737 try:
2738 if self.thisown: destroy(self)
2739 except: pass
2740
2741
2742 class FileConfigPtr(FileConfig):
2743 def __init__(self, this):
2744 self.this = this
2745 if not hasattr(self,"thisown"): self.thisown = 0
2746 self.__class__ = FileConfig
2747 _misc.FileConfig_swigregister(FileConfigPtr)
2748
2749
2750 def ExpandEnvVars(*args, **kwargs):
2751 """ExpandEnvVars(wxString sz) -> wxString"""
2752 return _misc.ExpandEnvVars(*args, **kwargs)
2753 #---------------------------------------------------------------------------
2754
2755 class DateTime(object):
2756 def __repr__(self):
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)
2916
2917 SetCountry = staticmethod(SetCountry)
2918 def GetCountry(*args, **kwargs):
2919 """DateTime.GetCountry() -> wxDateTime::Country"""
2920 return _misc.DateTime_GetCountry(*args, **kwargs)
2921
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)
2926
2927 IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry)
2928 def GetCurrentYear(*args, **kwargs):
2929 """DateTime.GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
2930 return _misc.DateTime_GetCurrentYear(*args, **kwargs)
2931
2932 GetCurrentYear = staticmethod(GetCurrentYear)
2933 def ConvertYearToBC(*args, **kwargs):
2934 """DateTime.ConvertYearToBC(int year) -> int"""
2935 return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
2936
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)
2941
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)
2946
2947 IsLeapYear = staticmethod(IsLeapYear)
2948 def GetCentury(*args, **kwargs):
2949 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2950 return _misc.DateTime_GetCentury(*args, **kwargs)
2951
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)
2956
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)
2961
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)
2966
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)
2971
2972 GetWeekDayName = staticmethod(GetWeekDayName)
2973 def GetAmPmStrings(*args, **kwargs):
2974 """
2975 GetAmPmStrings() -> (am, pm)
2976
2977 Get the AM and PM strings in the current locale (may be empty)
2978 """
2979 return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
2980
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)
2985
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)
2990
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)
2995
2996 GetEndDST = staticmethod(GetEndDST)
2997 def Now(*args, **kwargs):
2998 """DateTime.Now() -> DateTime"""
2999 return _misc.DateTime_Now(*args, **kwargs)
3000
3001 Now = staticmethod(Now)
3002 def UNow(*args, **kwargs):
3003 """DateTime.UNow() -> DateTime"""
3004 return _misc.DateTime_UNow(*args, **kwargs)
3005
3006 UNow = staticmethod(UNow)
3007 def Today(*args, **kwargs):
3008 """DateTime.Today() -> DateTime"""
3009 return _misc.DateTime_Today(*args, **kwargs)
3010
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
3016 self.thisown = 1
3017 del newobj.thisown
3018 def __del__(self, destroy=_misc.delete_DateTime):
3019 """__del__()"""
3020 try:
3021 if self.thisown: destroy(self)
3022 except: pass
3023
3024 def SetToCurrent(*args, **kwargs):
3025 """SetToCurrent() -> DateTime"""
3026 return _misc.DateTime_SetToCurrent(*args, **kwargs)
3027
3028 def SetTimeT(*args, **kwargs):
3029 """SetTimeT(time_t timet) -> DateTime"""
3030 return _misc.DateTime_SetTimeT(*args, **kwargs)
3031
3032 def SetJDN(*args, **kwargs):
3033 """SetJDN(double jdn) -> DateTime"""
3034 return _misc.DateTime_SetJDN(*args, **kwargs)
3035
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)
3039
3040 def Set(*args, **kwargs):
3041 """
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
3045 """
3046 return _misc.DateTime_Set(*args, **kwargs)
3047
3048 def ResetTime(*args, **kwargs):
3049 """ResetTime() -> DateTime"""
3050 return _misc.DateTime_ResetTime(*args, **kwargs)
3051
3052 def SetYear(*args, **kwargs):
3053 """SetYear(int year) -> DateTime"""
3054 return _misc.DateTime_SetYear(*args, **kwargs)
3055
3056 def SetMonth(*args, **kwargs):
3057 """SetMonth(wxDateTime::Month month) -> DateTime"""
3058 return _misc.DateTime_SetMonth(*args, **kwargs)
3059
3060 def SetDay(*args, **kwargs):
3061 """SetDay(int day) -> DateTime"""
3062 return _misc.DateTime_SetDay(*args, **kwargs)
3063
3064 def SetHour(*args, **kwargs):
3065 """SetHour(int hour) -> DateTime"""
3066 return _misc.DateTime_SetHour(*args, **kwargs)
3067
3068 def SetMinute(*args, **kwargs):
3069 """SetMinute(int minute) -> DateTime"""
3070 return _misc.DateTime_SetMinute(*args, **kwargs)
3071
3072 def SetSecond(*args, **kwargs):
3073 """SetSecond(int second) -> DateTime"""
3074 return _misc.DateTime_SetSecond(*args, **kwargs)
3075
3076 def SetMillisecond(*args, **kwargs):
3077 """SetMillisecond(int millisecond) -> DateTime"""
3078 return _misc.DateTime_SetMillisecond(*args, **kwargs)
3079
3080 def SetToWeekDayInSameWeek(*args, **kwargs):
3081 """SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3082 return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs)
3083
3084 def GetWeekDayInSameWeek(*args, **kwargs):
3085 """GetWeekDayInSameWeek(wxDateTime::WeekDay weekday, wxDateTime::WeekFlags flags=Monday_First) -> DateTime"""
3086 return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs)
3087
3088 def SetToNextWeekDay(*args, **kwargs):
3089 """SetToNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3090 return _misc.DateTime_SetToNextWeekDay(*args, **kwargs)
3091
3092 def GetNextWeekDay(*args, **kwargs):
3093 """GetNextWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3094 return _misc.DateTime_GetNextWeekDay(*args, **kwargs)
3095
3096 def SetToPrevWeekDay(*args, **kwargs):
3097 """SetToPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3098 return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs)
3099
3100 def GetPrevWeekDay(*args, **kwargs):
3101 """GetPrevWeekDay(wxDateTime::WeekDay weekday) -> DateTime"""
3102 return _misc.DateTime_GetPrevWeekDay(*args, **kwargs)
3103
3104 def SetToWeekDay(*args, **kwargs):
3105 """
3106 SetToWeekDay(wxDateTime::WeekDay weekday, int n=1, wxDateTime::Month month=Inv_Month,
3107 int year=Inv_Year) -> bool
3108 """
3109 return _misc.DateTime_SetToWeekDay(*args, **kwargs)
3110
3111 def SetToLastWeekDay(*args, **kwargs):
3112 """
3113 SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3114 int year=Inv_Year) -> bool
3115 """
3116 return _misc.DateTime_SetToLastWeekDay(*args, **kwargs)
3117
3118 def GetLastWeekDay(*args, **kwargs):
3119 """
3120 GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month=Inv_Month,
3121 int year=Inv_Year) -> DateTime
3122 """
3123 return _misc.DateTime_GetLastWeekDay(*args, **kwargs)
3124
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)
3128
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)
3132
3133 def SetToLastMonthDay(*args, **kwargs):
3134 """SetToLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3135 return _misc.DateTime_SetToLastMonthDay(*args, **kwargs)
3136
3137 def GetLastMonthDay(*args, **kwargs):
3138 """GetLastMonthDay(wxDateTime::Month month=Inv_Month, int year=Inv_Year) -> DateTime"""
3139 return _misc.DateTime_GetLastMonthDay(*args, **kwargs)
3140
3141 def SetToYearDay(*args, **kwargs):
3142 """SetToYearDay(int yday) -> DateTime"""
3143 return _misc.DateTime_SetToYearDay(*args, **kwargs)
3144
3145 def GetYearDay(*args, **kwargs):
3146 """GetYearDay(int yday) -> DateTime"""
3147 return _misc.DateTime_GetYearDay(*args, **kwargs)
3148
3149 def GetJulianDayNumber(*args, **kwargs):
3150 """GetJulianDayNumber() -> double"""
3151 return _misc.DateTime_GetJulianDayNumber(*args, **kwargs)
3152
3153 def GetJDN(*args, **kwargs):
3154 """GetJDN() -> double"""
3155 return _misc.DateTime_GetJDN(*args, **kwargs)
3156
3157 def GetModifiedJulianDayNumber(*args, **kwargs):
3158 """GetModifiedJulianDayNumber() -> double"""
3159 return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs)
3160
3161 def GetMJD(*args, **kwargs):
3162 """GetMJD() -> double"""
3163 return _misc.DateTime_GetMJD(*args, **kwargs)
3164
3165 def GetRataDie(*args, **kwargs):
3166 """GetRataDie() -> double"""
3167 return _misc.DateTime_GetRataDie(*args, **kwargs)
3168
3169 def ToTimezone(*args, **kwargs):
3170 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3171 return _misc.DateTime_ToTimezone(*args, **kwargs)
3172
3173 def MakeTimezone(*args, **kwargs):
3174 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3175 return _misc.DateTime_MakeTimezone(*args, **kwargs)
3176
3177 def ToGMT(*args, **kwargs):
3178 """ToGMT(bool noDST=False) -> DateTime"""
3179 return _misc.DateTime_ToGMT(*args, **kwargs)
3180
3181 def MakeGMT(*args, **kwargs):
3182 """MakeGMT(bool noDST=False) -> DateTime"""
3183 return _misc.DateTime_MakeGMT(*args, **kwargs)
3184
3185 def IsDST(*args, **kwargs):
3186 """IsDST(wxDateTime::Country country=Country_Default) -> int"""
3187 return _misc.DateTime_IsDST(*args, **kwargs)
3188
3189 def IsValid(*args, **kwargs):
3190 """IsValid() -> bool"""
3191 return _misc.DateTime_IsValid(*args, **kwargs)
3192
3193 def GetTicks(*args, **kwargs):
3194 """GetTicks() -> time_t"""
3195 return _misc.DateTime_GetTicks(*args, **kwargs)
3196
3197 def GetYear(*args, **kwargs):
3198 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3199 return _misc.DateTime_GetYear(*args, **kwargs)
3200
3201 def GetMonth(*args, **kwargs):
3202 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::Month"""
3203 return _misc.DateTime_GetMonth(*args, **kwargs)
3204
3205 def GetDay(*args, **kwargs):
3206 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3207 return _misc.DateTime_GetDay(*args, **kwargs)
3208
3209 def GetWeekDay(*args, **kwargs):
3210 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> wxDateTime::WeekDay"""
3211 return _misc.DateTime_GetWeekDay(*args, **kwargs)
3212
3213 def GetHour(*args, **kwargs):
3214 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3215 return _misc.DateTime_GetHour(*args, **kwargs)
3216
3217 def GetMinute(*args, **kwargs):
3218 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3219 return _misc.DateTime_GetMinute(*args, **kwargs)
3220
3221 def GetSecond(*args, **kwargs):
3222 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3223 return _misc.DateTime_GetSecond(*args, **kwargs)
3224
3225 def GetMillisecond(*args, **kwargs):
3226 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3227 return _misc.DateTime_GetMillisecond(*args, **kwargs)
3228
3229 def GetDayOfYear(*args, **kwargs):
3230 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3231 return _misc.DateTime_GetDayOfYear(*args, **kwargs)
3232
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)
3236
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)
3240
3241 def IsWorkDay(*args, **kwargs):
3242 """IsWorkDay(wxDateTime::Country country=Country_Default) -> bool"""
3243 return _misc.DateTime_IsWorkDay(*args, **kwargs)
3244
3245 def IsEqualTo(*args, **kwargs):
3246 """IsEqualTo(DateTime datetime) -> bool"""
3247 return _misc.DateTime_IsEqualTo(*args, **kwargs)
3248
3249 def IsEarlierThan(*args, **kwargs):
3250 """IsEarlierThan(DateTime datetime) -> bool"""
3251 return _misc.DateTime_IsEarlierThan(*args, **kwargs)
3252
3253 def IsLaterThan(*args, **kwargs):
3254 """IsLaterThan(DateTime datetime) -> bool"""
3255 return _misc.DateTime_IsLaterThan(*args, **kwargs)
3256
3257 def IsStrictlyBetween(*args, **kwargs):
3258 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3259 return _misc.DateTime_IsStrictlyBetween(*args, **kwargs)
3260
3261 def IsBetween(*args, **kwargs):
3262 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3263 return _misc.DateTime_IsBetween(*args, **kwargs)
3264
3265 def IsSameDate(*args, **kwargs):
3266 """IsSameDate(DateTime dt) -> bool"""
3267 return _misc.DateTime_IsSameDate(*args, **kwargs)
3268
3269 def IsSameTime(*args, **kwargs):
3270 """IsSameTime(DateTime dt) -> bool"""
3271 return _misc.DateTime_IsSameTime(*args, **kwargs)
3272
3273 def IsEqualUpTo(*args, **kwargs):
3274 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3275 return _misc.DateTime_IsEqualUpTo(*args, **kwargs)
3276
3277 def AddTS(*args, **kwargs):
3278 """AddTS(TimeSpan diff) -> DateTime"""
3279 return _misc.DateTime_AddTS(*args, **kwargs)
3280
3281 def AddDS(*args, **kwargs):
3282 """AddDS(DateSpan diff) -> DateTime"""
3283 return _misc.DateTime_AddDS(*args, **kwargs)
3284
3285 def SubtractTS(*args, **kwargs):
3286 """SubtractTS(TimeSpan diff) -> DateTime"""
3287 return _misc.DateTime_SubtractTS(*args, **kwargs)
3288
3289 def SubtractDS(*args, **kwargs):
3290 """SubtractDS(DateSpan diff) -> DateTime"""
3291 return _misc.DateTime_SubtractDS(*args, **kwargs)
3292
3293 def Subtract(*args, **kwargs):
3294 """Subtract(DateTime dt) -> TimeSpan"""
3295 return _misc.DateTime_Subtract(*args, **kwargs)
3296
3297 def __iadd__(*args):
3298 """
3299 __iadd__(TimeSpan diff) -> DateTime
3300 __iadd__(DateSpan diff) -> DateTime
3301 """
3302 return _misc.DateTime___iadd__(*args)
3303
3304 def __isub__(*args):
3305 """
3306 __isub__(TimeSpan diff) -> DateTime
3307 __isub__(DateSpan diff) -> DateTime
3308 """
3309 return _misc.DateTime___isub__(*args)
3310
3311 def __add__(*args):
3312 """
3313 __add__(TimeSpan other) -> DateTime
3314 __add__(DateSpan other) -> DateTime
3315 """
3316 return _misc.DateTime___add__(*args)
3317
3318 def __sub__(*args):
3319 """
3320 __sub__(DateTime other) -> TimeSpan
3321 __sub__(TimeSpan other) -> DateTime
3322 __sub__(DateSpan other) -> DateTime
3323 """
3324 return _misc.DateTime___sub__(*args)
3325
3326 def __lt__(*args):
3327 """__lt__(DateTime other) -> bool"""
3328 return _misc.DateTime___lt__(*args)
3329
3330 def __le__(*args):
3331 """__le__(DateTime other) -> bool"""
3332 return _misc.DateTime___le__(*args)
3333
3334 def __gt__(*args):
3335 """__gt__(DateTime other) -> bool"""
3336 return _misc.DateTime___gt__(*args)
3337
3338 def __ge__(*args):
3339 """__ge__(DateTime other) -> bool"""
3340 return _misc.DateTime___ge__(*args)
3341
3342 def __eq__(*args):
3343 """__eq__(DateTime other) -> bool"""
3344 return _misc.DateTime___eq__(*args)
3345
3346 def __ne__(*args):
3347 """__ne__(DateTime other) -> bool"""
3348 return _misc.DateTime___ne__(*args)
3349
3350 def ParseRfc822Date(*args, **kwargs):
3351 """ParseRfc822Date(wxString date) -> int"""
3352 return _misc.DateTime_ParseRfc822Date(*args, **kwargs)
3353
3354 def ParseFormat(*args, **kwargs):
3355 """ParseFormat(wxString date, wxString format=wxPyDateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3356 return _misc.DateTime_ParseFormat(*args, **kwargs)
3357
3358 def ParseDateTime(*args, **kwargs):
3359 """ParseDateTime(wxString datetime) -> int"""
3360 return _misc.DateTime_ParseDateTime(*args, **kwargs)
3361
3362 def ParseDate(*args, **kwargs):
3363 """ParseDate(wxString date) -> int"""
3364 return _misc.DateTime_ParseDate(*args, **kwargs)
3365
3366 def ParseTime(*args, **kwargs):
3367 """ParseTime(wxString time) -> int"""
3368 return _misc.DateTime_ParseTime(*args, **kwargs)
3369
3370 def Format(*args, **kwargs):
3371 """Format(wxString format=wxPyDateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> wxString"""
3372 return _misc.DateTime_Format(*args, **kwargs)
3373
3374 def FormatDate(*args, **kwargs):
3375 """FormatDate() -> wxString"""
3376 return _misc.DateTime_FormatDate(*args, **kwargs)
3377
3378 def FormatTime(*args, **kwargs):
3379 """FormatTime() -> wxString"""
3380 return _misc.DateTime_FormatTime(*args, **kwargs)
3381
3382 def FormatISODate(*args, **kwargs):
3383 """FormatISODate() -> wxString"""
3384 return _misc.DateTime_FormatISODate(*args, **kwargs)
3385
3386 def FormatISOTime(*args, **kwargs):
3387 """FormatISOTime() -> wxString"""
3388 return _misc.DateTime_FormatISOTime(*args, **kwargs)
3389
3390 def __repr__(self):
3391 return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this)
3392 def __str__(self):
3393 return self.Format()
3394
3395
3396 class DateTimePtr(DateTime):
3397 def __init__(self, this):
3398 self.this = this
3399 if not hasattr(self,"thisown"): self.thisown = 0
3400 self.__class__ = DateTime
3401 _misc.DateTime_swigregister(DateTimePtr)
3402
3403 def DateTime_SetCountry(*args, **kwargs):
3404 """DateTime_SetCountry(wxDateTime::Country country)"""
3405 return _misc.DateTime_SetCountry(*args, **kwargs)
3406
3407 def DateTime_GetCountry(*args, **kwargs):
3408 """DateTime_GetCountry() -> wxDateTime::Country"""
3409 return _misc.DateTime_GetCountry(*args, **kwargs)
3410
3411 def DateTime_IsWestEuropeanCountry(*args, **kwargs):
3412 """DateTime_IsWestEuropeanCountry(wxDateTime::Country country=Country_Default) -> bool"""
3413 return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs)
3414
3415 def DateTime_GetCurrentYear(*args, **kwargs):
3416 """DateTime_GetCurrentYear(wxDateTime::Calendar cal=Gregorian) -> int"""
3417 return _misc.DateTime_GetCurrentYear(*args, **kwargs)
3418
3419 def DateTime_ConvertYearToBC(*args, **kwargs):
3420 """DateTime_ConvertYearToBC(int year) -> int"""
3421 return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
3422
3423 def DateTime_GetCurrentMonth(*args, **kwargs):
3424 """DateTime_GetCurrentMonth(wxDateTime::Calendar cal=Gregorian) -> wxDateTime::Month"""
3425 return _misc.DateTime_GetCurrentMonth(*args, **kwargs)
3426
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)
3430
3431 def DateTime_GetCentury(*args, **kwargs):
3432 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3433 return _misc.DateTime_GetCentury(*args, **kwargs)
3434
3435 def DateTime_GetNumberOfDaysinYear(*args, **kwargs):
3436 """DateTime_GetNumberOfDaysinYear(int year, wxDateTime::Calendar cal=Gregorian) -> int"""
3437 return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
3438
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)
3442
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)
3446
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)
3450
3451 def DateTime_GetAmPmStrings(*args, **kwargs):
3452 """
3453 GetAmPmStrings() -> (am, pm)
3454
3455 Get the AM and PM strings in the current locale (may be empty)
3456 """
3457 return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
3458
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)
3462
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)
3466
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)
3470
3471 def DateTime_Now(*args, **kwargs):
3472 """DateTime_Now() -> DateTime"""
3473 return _misc.DateTime_Now(*args, **kwargs)
3474
3475 def DateTime_UNow(*args, **kwargs):
3476 """DateTime_UNow() -> DateTime"""
3477 return _misc.DateTime_UNow(*args, **kwargs)
3478
3479 def DateTime_Today(*args, **kwargs):
3480 """DateTime_Today() -> DateTime"""
3481 return _misc.DateTime_Today(*args, **kwargs)
3482
3483 def DateTimeFromTimeT(*args, **kwargs):
3484 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3485 val = _misc.new_DateTimeFromTimeT(*args, **kwargs)
3486 val.thisown = 1
3487 return val
3488
3489 def DateTimeFromJDN(*args, **kwargs):
3490 """DateTimeFromJDN(double jdn) -> DateTime"""
3491 val = _misc.new_DateTimeFromJDN(*args, **kwargs)
3492 val.thisown = 1
3493 return val
3494
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)
3498 val.thisown = 1
3499 return val
3500
3501 def DateTimeFromDMY(*args, **kwargs):
3502 """
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
3506 """
3507 val = _misc.new_DateTimeFromDMY(*args, **kwargs)
3508 val.thisown = 1
3509 return val
3510
3511 class TimeSpan(object):
3512 def __repr__(self):
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)
3517
3518 Seconds = staticmethod(Seconds)
3519 def Second(*args, **kwargs):
3520 """TimeSpan.Second() -> TimeSpan"""
3521 return _misc.TimeSpan_Second(*args, **kwargs)
3522
3523 Second = staticmethod(Second)
3524 def Minutes(*args, **kwargs):
3525 """TimeSpan.Minutes(long min) -> TimeSpan"""
3526 return _misc.TimeSpan_Minutes(*args, **kwargs)
3527
3528 Minutes = staticmethod(Minutes)
3529 def Minute(*args, **kwargs):
3530 """TimeSpan.Minute() -> TimeSpan"""
3531 return _misc.TimeSpan_Minute(*args, **kwargs)
3532
3533 Minute = staticmethod(Minute)
3534 def Hours(*args, **kwargs):
3535 """TimeSpan.Hours(long hours) -> TimeSpan"""
3536 return _misc.TimeSpan_Hours(*args, **kwargs)
3537
3538 Hours = staticmethod(Hours)
3539 def Hour(*args, **kwargs):
3540 """TimeSpan.Hour() -> TimeSpan"""
3541 return _misc.TimeSpan_Hour(*args, **kwargs)
3542
3543 Hour = staticmethod(Hour)
3544 def Days(*args, **kwargs):
3545 """TimeSpan.Days(long days) -> TimeSpan"""
3546 return _misc.TimeSpan_Days(*args, **kwargs)
3547
3548 Days = staticmethod(Days)
3549 def Day(*args, **kwargs):
3550 """TimeSpan.Day() -> TimeSpan"""
3551 return _misc.TimeSpan_Day(*args, **kwargs)
3552
3553 Day = staticmethod(Day)
3554 def Weeks(*args, **kwargs):
3555 """TimeSpan.Weeks(long days) -> TimeSpan"""
3556 return _misc.TimeSpan_Weeks(*args, **kwargs)
3557
3558 Weeks = staticmethod(Weeks)
3559 def Week(*args, **kwargs):
3560 """TimeSpan.Week() -> TimeSpan"""
3561 return _misc.TimeSpan_Week(*args, **kwargs)
3562
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
3568 self.thisown = 1
3569 del newobj.thisown
3570 def __del__(self, destroy=_misc.delete_TimeSpan):
3571 """__del__()"""
3572 try:
3573 if self.thisown: destroy(self)
3574 except: pass
3575
3576 def Add(*args, **kwargs):
3577 """Add(TimeSpan diff) -> TimeSpan"""
3578 return _misc.TimeSpan_Add(*args, **kwargs)
3579
3580 def Subtract(*args, **kwargs):
3581 """Subtract(TimeSpan diff) -> TimeSpan"""
3582 return _misc.TimeSpan_Subtract(*args, **kwargs)
3583
3584 def Multiply(*args, **kwargs):
3585 """Multiply(int n) -> TimeSpan"""
3586 return _misc.TimeSpan_Multiply(*args, **kwargs)
3587
3588 def Neg(*args, **kwargs):
3589 """Neg() -> TimeSpan"""
3590 return _misc.TimeSpan_Neg(*args, **kwargs)
3591
3592 def Abs(*args, **kwargs):
3593 """Abs() -> TimeSpan"""
3594 return _misc.TimeSpan_Abs(*args, **kwargs)
3595
3596 def __iadd__(*args, **kwargs):
3597 """__iadd__(TimeSpan diff) -> TimeSpan"""
3598 return _misc.TimeSpan___iadd__(*args, **kwargs)
3599
3600 def __isub__(*args, **kwargs):
3601 """__isub__(TimeSpan diff) -> TimeSpan"""
3602 return _misc.TimeSpan___isub__(*args, **kwargs)
3603
3604 def __imul__(*args, **kwargs):
3605 """__imul__(int n) -> TimeSpan"""
3606 return _misc.TimeSpan___imul__(*args, **kwargs)
3607
3608 def __neg__(*args, **kwargs):
3609 """__neg__() -> TimeSpan"""
3610 return _misc.TimeSpan___neg__(*args, **kwargs)
3611
3612 def __add__(*args, **kwargs):
3613 """__add__(TimeSpan other) -> TimeSpan"""
3614 return _misc.TimeSpan___add__(*args, **kwargs)
3615
3616 def __sub__(*args, **kwargs):
3617 """__sub__(TimeSpan other) -> TimeSpan"""
3618 return _misc.TimeSpan___sub__(*args, **kwargs)
3619
3620 def __mul__(*args, **kwargs):
3621 """__mul__(int n) -> TimeSpan"""
3622 return _misc.TimeSpan___mul__(*args, **kwargs)
3623
3624 def __rmul__(*args, **kwargs):
3625 """__rmul__(int n) -> TimeSpan"""
3626 return _misc.TimeSpan___rmul__(*args, **kwargs)
3627
3628 def __lt__(*args, **kwargs):
3629 """__lt__(TimeSpan other) -> bool"""
3630 return _misc.TimeSpan___lt__(*args, **kwargs)
3631
3632 def __le__(*args, **kwargs):
3633 """__le__(TimeSpan other) -> bool"""
3634 return _misc.TimeSpan___le__(*args, **kwargs)
3635
3636 def __gt__(*args, **kwargs):
3637 """__gt__(TimeSpan other) -> bool"""
3638 return _misc.TimeSpan___gt__(*args, **kwargs)
3639
3640 def __ge__(*args, **kwargs):
3641 """__ge__(TimeSpan other) -> bool"""
3642 return _misc.TimeSpan___ge__(*args, **kwargs)
3643
3644 def __eq__(*args, **kwargs):
3645 """__eq__(TimeSpan other) -> bool"""
3646 return _misc.TimeSpan___eq__(*args, **kwargs)
3647
3648 def __ne__(*args, **kwargs):
3649 """__ne__(TimeSpan other) -> bool"""
3650 return _misc.TimeSpan___ne__(*args, **kwargs)
3651
3652 def IsNull(*args, **kwargs):
3653 """IsNull() -> bool"""
3654 return _misc.TimeSpan_IsNull(*args, **kwargs)
3655
3656 def IsPositive(*args, **kwargs):
3657 """IsPositive() -> bool"""
3658 return _misc.TimeSpan_IsPositive(*args, **kwargs)
3659
3660 def IsNegative(*args, **kwargs):
3661 """IsNegative() -> bool"""
3662 return _misc.TimeSpan_IsNegative(*args, **kwargs)
3663
3664 def IsEqualTo(*args, **kwargs):
3665 """IsEqualTo(TimeSpan ts) -> bool"""
3666 return _misc.TimeSpan_IsEqualTo(*args, **kwargs)
3667
3668 def IsLongerThan(*args, **kwargs):
3669 """IsLongerThan(TimeSpan ts) -> bool"""
3670 return _misc.TimeSpan_IsLongerThan(*args, **kwargs)
3671
3672 def IsShorterThan(*args, **kwargs):
3673 """IsShorterThan(TimeSpan t) -> bool"""
3674 return _misc.TimeSpan_IsShorterThan(*args, **kwargs)
3675
3676 def GetWeeks(*args, **kwargs):
3677 """GetWeeks() -> int"""
3678 return _misc.TimeSpan_GetWeeks(*args, **kwargs)
3679
3680 def GetDays(*args, **kwargs):
3681 """GetDays() -> int"""
3682 return _misc.TimeSpan_GetDays(*args, **kwargs)
3683
3684 def GetHours(*args, **kwargs):
3685 """GetHours() -> int"""
3686 return _misc.TimeSpan_GetHours(*args, **kwargs)
3687
3688 def GetMinutes(*args, **kwargs):
3689 """GetMinutes() -> int"""
3690 return _misc.TimeSpan_GetMinutes(*args, **kwargs)
3691
3692 def GetSeconds(*args, **kwargs):
3693 """GetSeconds() -> wxLongLong"""
3694 return _misc.TimeSpan_GetSeconds(*args, **kwargs)
3695
3696 def GetMilliseconds(*args, **kwargs):
3697 """GetMilliseconds() -> wxLongLong"""
3698 return _misc.TimeSpan_GetMilliseconds(*args, **kwargs)
3699
3700 def Format(*args, **kwargs):
3701 """Format(wxString format=wxPyTimeSpanFormatStr) -> wxString"""
3702 return _misc.TimeSpan_Format(*args, **kwargs)
3703
3704 def __repr__(self):
3705 return '<wxTimeSpan: \"%s\" at %s>' % ( self.Format(), self.this)
3706 def __str__(self):
3707 return self.Format()
3708
3709
3710 class TimeSpanPtr(TimeSpan):
3711 def __init__(self, this):
3712 self.this = this
3713 if not hasattr(self,"thisown"): self.thisown = 0
3714 self.__class__ = TimeSpan
3715 _misc.TimeSpan_swigregister(TimeSpanPtr)
3716
3717 def TimeSpan_Seconds(*args, **kwargs):
3718 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3719 return _misc.TimeSpan_Seconds(*args, **kwargs)
3720
3721 def TimeSpan_Second(*args, **kwargs):
3722 """TimeSpan_Second() -> TimeSpan"""
3723 return _misc.TimeSpan_Second(*args, **kwargs)
3724
3725 def TimeSpan_Minutes(*args, **kwargs):
3726 """TimeSpan_Minutes(long min) -> TimeSpan"""
3727 return _misc.TimeSpan_Minutes(*args, **kwargs)
3728
3729 def TimeSpan_Minute(*args, **kwargs):
3730 """TimeSpan_Minute() -> TimeSpan"""
3731 return _misc.TimeSpan_Minute(*args, **kwargs)
3732
3733 def TimeSpan_Hours(*args, **kwargs):
3734 """TimeSpan_Hours(long hours) -> TimeSpan"""
3735 return _misc.TimeSpan_Hours(*args, **kwargs)
3736
3737 def TimeSpan_Hour(*args, **kwargs):
3738 """TimeSpan_Hour() -> TimeSpan"""
3739 return _misc.TimeSpan_Hour(*args, **kwargs)
3740
3741 def TimeSpan_Days(*args, **kwargs):
3742 """TimeSpan_Days(long days) -> TimeSpan"""
3743 return _misc.TimeSpan_Days(*args, **kwargs)
3744
3745 def TimeSpan_Day(*args, **kwargs):
3746 """TimeSpan_Day() -> TimeSpan"""
3747 return _misc.TimeSpan_Day(*args, **kwargs)
3748
3749 def TimeSpan_Weeks(*args, **kwargs):
3750 """TimeSpan_Weeks(long days) -> TimeSpan"""
3751 return _misc.TimeSpan_Weeks(*args, **kwargs)
3752
3753 def TimeSpan_Week(*args, **kwargs):
3754 """TimeSpan_Week() -> TimeSpan"""
3755 return _misc.TimeSpan_Week(*args, **kwargs)
3756
3757 class DateSpan(object):
3758 def __repr__(self):
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
3764 self.thisown = 1
3765 del newobj.thisown
3766 def __del__(self, destroy=_misc.delete_DateSpan):
3767 """__del__()"""
3768 try:
3769 if self.thisown: destroy(self)
3770 except: pass
3771
3772 def Days(*args, **kwargs):
3773 """DateSpan.Days(int days) -> DateSpan"""
3774 return _misc.DateSpan_Days(*args, **kwargs)
3775
3776 Days = staticmethod(Days)
3777 def Day(*args, **kwargs):
3778 """DateSpan.Day() -> DateSpan"""
3779 return _misc.DateSpan_Day(*args, **kwargs)
3780
3781 Day = staticmethod(Day)
3782 def Weeks(*args, **kwargs):
3783 """DateSpan.Weeks(int weeks) -> DateSpan"""
3784 return _misc.DateSpan_Weeks(*args, **kwargs)
3785
3786 Weeks = staticmethod(Weeks)
3787 def Week(*args, **kwargs):
3788 """DateSpan.Week() -> DateSpan"""
3789 return _misc.DateSpan_Week(*args, **kwargs)
3790
3791 Week = staticmethod(Week)
3792 def Months(*args, **kwargs):
3793 """DateSpan.Months(int mon) -> DateSpan"""
3794 return _misc.DateSpan_Months(*args, **kwargs)
3795
3796 Months = staticmethod(Months)
3797 def Month(*args, **kwargs):
3798 """DateSpan.Month() -> DateSpan"""
3799 return _misc.DateSpan_Month(*args, **kwargs)
3800
3801 Month = staticmethod(Month)
3802 def Years(*args, **kwargs):
3803 """DateSpan.Years(int years) -> DateSpan"""
3804 return _misc.DateSpan_Years(*args, **kwargs)
3805
3806 Years = staticmethod(Years)
3807 def Year(*args, **kwargs):
3808 """DateSpan.Year() -> DateSpan"""
3809 return _misc.DateSpan_Year(*args, **kwargs)
3810
3811 Year = staticmethod(Year)
3812 def SetYears(*args, **kwargs):
3813 """SetYears(int n) -> DateSpan"""
3814 return _misc.DateSpan_SetYears(*args, **kwargs)
3815
3816 def SetMonths(*args, **kwargs):
3817 """SetMonths(int n) -> DateSpan"""
3818 return _misc.DateSpan_SetMonths(*args, **kwargs)
3819
3820 def SetWeeks(*args, **kwargs):
3821 """SetWeeks(int n) -> DateSpan"""
3822 return _misc.DateSpan_SetWeeks(*args, **kwargs)
3823
3824 def SetDays(*args, **kwargs):
3825 """SetDays(int n) -> DateSpan"""
3826 return _misc.DateSpan_SetDays(*args, **kwargs)
3827
3828 def GetYears(*args, **kwargs):
3829 """GetYears() -> int"""
3830 return _misc.DateSpan_GetYears(*args, **kwargs)
3831
3832 def GetMonths(*args, **kwargs):
3833 """GetMonths() -> int"""
3834 return _misc.DateSpan_GetMonths(*args, **kwargs)
3835
3836 def GetWeeks(*args, **kwargs):
3837 """GetWeeks() -> int"""
3838 return _misc.DateSpan_GetWeeks(*args, **kwargs)
3839
3840 def GetDays(*args, **kwargs):
3841 """GetDays() -> int"""
3842 return _misc.DateSpan_GetDays(*args, **kwargs)
3843
3844 def GetTotalDays(*args, **kwargs):
3845 """GetTotalDays() -> int"""
3846 return _misc.DateSpan_GetTotalDays(*args, **kwargs)
3847
3848 def Add(*args, **kwargs):
3849 """Add(DateSpan other) -> DateSpan"""
3850 return _misc.DateSpan_Add(*args, **kwargs)
3851
3852 def Subtract(*args, **kwargs):
3853 """Subtract(DateSpan other) -> DateSpan"""
3854 return _misc.DateSpan_Subtract(*args, **kwargs)
3855
3856 def Neg(*args, **kwargs):
3857 """Neg() -> DateSpan"""
3858 return _misc.DateSpan_Neg(*args, **kwargs)
3859
3860 def Multiply(*args, **kwargs):
3861 """Multiply(int factor) -> DateSpan"""
3862 return _misc.DateSpan_Multiply(*args, **kwargs)
3863
3864 def __iadd__(*args, **kwargs):
3865 """__iadd__(DateSpan other) -> DateSpan"""
3866 return _misc.DateSpan___iadd__(*args, **kwargs)
3867
3868 def __isub__(*args, **kwargs):
3869 """__isub__(DateSpan other) -> DateSpan"""
3870 return _misc.DateSpan___isub__(*args, **kwargs)
3871
3872 def __neg__(*args, **kwargs):
3873 """__neg__() -> DateSpan"""
3874 return _misc.DateSpan___neg__(*args, **kwargs)
3875
3876 def __imul__(*args, **kwargs):
3877 """__imul__(int factor) -> DateSpan"""
3878 return _misc.DateSpan___imul__(*args, **kwargs)
3879
3880 def __add__(*args, **kwargs):
3881 """__add__(DateSpan other) -> DateSpan"""
3882 return _misc.DateSpan___add__(*args, **kwargs)
3883
3884 def __sub__(*args, **kwargs):
3885 """__sub__(DateSpan other) -> DateSpan"""
3886 return _misc.DateSpan___sub__(*args, **kwargs)
3887
3888 def __mul__(*args, **kwargs):
3889 """__mul__(int n) -> DateSpan"""
3890 return _misc.DateSpan___mul__(*args, **kwargs)
3891
3892 def __rmul__(*args, **kwargs):
3893 """__rmul__(int n) -> DateSpan"""
3894 return _misc.DateSpan___rmul__(*args, **kwargs)
3895
3896 def __eq__(*args, **kwargs):
3897 """__eq__(DateSpan other) -> bool"""
3898 return _misc.DateSpan___eq__(*args, **kwargs)
3899
3900 def __ne__(*args, **kwargs):
3901 """__ne__(DateSpan other) -> bool"""
3902 return _misc.DateSpan___ne__(*args, **kwargs)
3903
3904
3905 class DateSpanPtr(DateSpan):
3906 def __init__(self, this):
3907 self.this = this
3908 if not hasattr(self,"thisown"): self.thisown = 0
3909 self.__class__ = DateSpan
3910 _misc.DateSpan_swigregister(DateSpanPtr)
3911
3912 def DateSpan_Days(*args, **kwargs):
3913 """DateSpan_Days(int days) -> DateSpan"""
3914 return _misc.DateSpan_Days(*args, **kwargs)
3915
3916 def DateSpan_Day(*args, **kwargs):
3917 """DateSpan_Day() -> DateSpan"""
3918 return _misc.DateSpan_Day(*args, **kwargs)
3919
3920 def DateSpan_Weeks(*args, **kwargs):
3921 """DateSpan_Weeks(int weeks) -> DateSpan"""
3922 return _misc.DateSpan_Weeks(*args, **kwargs)
3923
3924 def DateSpan_Week(*args, **kwargs):
3925 """DateSpan_Week() -> DateSpan"""
3926 return _misc.DateSpan_Week(*args, **kwargs)
3927
3928 def DateSpan_Months(*args, **kwargs):
3929 """DateSpan_Months(int mon) -> DateSpan"""
3930 return _misc.DateSpan_Months(*args, **kwargs)
3931
3932 def DateSpan_Month(*args, **kwargs):
3933 """DateSpan_Month() -> DateSpan"""
3934 return _misc.DateSpan_Month(*args, **kwargs)
3935
3936 def DateSpan_Years(*args, **kwargs):
3937 """DateSpan_Years(int years) -> DateSpan"""
3938 return _misc.DateSpan_Years(*args, **kwargs)
3939
3940 def DateSpan_Year(*args, **kwargs):
3941 """DateSpan_Year() -> DateSpan"""
3942 return _misc.DateSpan_Year(*args, **kwargs)
3943
3944
3945 def GetLocalTime(*args, **kwargs):
3946 """GetLocalTime() -> long"""
3947 return _misc.GetLocalTime(*args, **kwargs)
3948
3949 def GetUTCTime(*args, **kwargs):
3950 """GetUTCTime() -> long"""
3951 return _misc.GetUTCTime(*args, **kwargs)
3952
3953 def GetCurrentTime(*args, **kwargs):
3954 """GetCurrentTime() -> long"""
3955 return _misc.GetCurrentTime(*args, **kwargs)
3956
3957 def GetLocalTimeMillis(*args, **kwargs):
3958 """GetLocalTimeMillis() -> wxLongLong"""
3959 return _misc.GetLocalTimeMillis(*args, **kwargs)
3960 #---------------------------------------------------------------------------
3961
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):
3983 def __repr__(self):
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
3989 self.thisown = 1
3990 del newobj.thisown
3991 def __del__(self, destroy=_misc.delete_DataFormat):
3992 """__del__()"""
3993 try:
3994 if self.thisown: destroy(self)
3995 except: pass
3996
3997 def __eq__(*args):
3998 """
3999 __eq__(wxDataFormatId format) -> bool
4000 __eq__(DataFormat format) -> bool
4001 """
4002 return _misc.DataFormat___eq__(*args)
4003
4004 def __ne__(*args):
4005 """
4006 __ne__(wxDataFormatId format) -> bool
4007 __ne__(DataFormat format) -> bool
4008 """
4009 return _misc.DataFormat___ne__(*args)
4010
4011 def SetType(*args, **kwargs):
4012 """SetType(wxDataFormatId format)"""
4013 return _misc.DataFormat_SetType(*args, **kwargs)
4014
4015 def GetType(*args, **kwargs):
4016 """GetType() -> wxDataFormatId"""
4017 return _misc.DataFormat_GetType(*args, **kwargs)
4018
4019 def GetId(*args, **kwargs):
4020 """GetId() -> wxString"""
4021 return _misc.DataFormat_GetId(*args, **kwargs)
4022
4023 def SetId(*args, **kwargs):
4024 """SetId(wxString format)"""
4025 return _misc.DataFormat_SetId(*args, **kwargs)
4026
4027
4028 class DataFormatPtr(DataFormat):
4029 def __init__(self, this):
4030 self.this = this
4031 if not hasattr(self,"thisown"): self.thisown = 0
4032 self.__class__ = DataFormat
4033 _misc.DataFormat_swigregister(DataFormatPtr)
4034
4035 def CustomDataFormat(*args, **kwargs):
4036 """CustomDataFormat(wxString format) -> DataFormat"""
4037 val = _misc.new_CustomDataFormat(*args, **kwargs)
4038 val.thisown = 1
4039 return val
4040
4041 class DataObject(object):
4042 def __init__(self): raise RuntimeError, "No constructor defined"
4043 def __repr__(self):
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):
4049 """__del__()"""
4050 try:
4051 if self.thisown: destroy(self)
4052 except: pass
4053
4054 def GetPreferredFormat(*args, **kwargs):
4055 """GetPreferredFormat(wxDataObject::Direction dir=Get) -> DataFormat"""
4056 return _misc.DataObject_GetPreferredFormat(*args, **kwargs)
4057
4058 def GetFormatCount(*args, **kwargs):
4059 """GetFormatCount(wxDataObject::Direction dir=Get) -> size_t"""
4060 return _misc.DataObject_GetFormatCount(*args, **kwargs)
4061
4062 def IsSupported(*args, **kwargs):
4063 """IsSupported(DataFormat format, wxDataObject::Direction dir=Get) -> bool"""
4064 return _misc.DataObject_IsSupported(*args, **kwargs)
4065
4066 def GetDataSize(*args, **kwargs):
4067 """GetDataSize(DataFormat format) -> size_t"""
4068 return _misc.DataObject_GetDataSize(*args, **kwargs)
4069
4070 def GetAllFormats(*args, **kwargs):
4071 """GetAllFormats(DataFormat formats, wxDataObject::Direction dir=Get)"""
4072 return _misc.DataObject_GetAllFormats(*args, **kwargs)
4073
4074 def GetDataHere(*args, **kwargs):
4075 """GetDataHere(DataFormat format, void buf) -> bool"""
4076 return _misc.DataObject_GetDataHere(*args, **kwargs)
4077
4078 def SetData(*args, **kwargs):
4079 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4080 return _misc.DataObject_SetData(*args, **kwargs)
4081
4082
4083 class DataObjectPtr(DataObject):
4084 def __init__(self, this):
4085 self.this = this
4086 if not hasattr(self,"thisown"): self.thisown = 0
4087 self.__class__ = DataObject
4088 _misc.DataObject_swigregister(DataObjectPtr)
4089 FormatInvalid = cvar.FormatInvalid
4090
4091 class DataObjectSimple(DataObject):
4092 def __repr__(self):
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
4098 self.thisown = 1
4099 del newobj.thisown
4100 def GetFormat(*args, **kwargs):
4101 """GetFormat() -> DataFormat"""
4102 return _misc.DataObjectSimple_GetFormat(*args, **kwargs)
4103
4104 def SetFormat(*args, **kwargs):
4105 """SetFormat(DataFormat format)"""
4106 return _misc.DataObjectSimple_SetFormat(*args, **kwargs)
4107
4108
4109 class DataObjectSimplePtr(DataObjectSimple):
4110 def __init__(self, this):
4111 self.this = this
4112 if not hasattr(self,"thisown"): self.thisown = 0
4113 self.__class__ = DataObjectSimple
4114 _misc.DataObjectSimple_swigregister(DataObjectSimplePtr)
4115
4116 class PyDataObjectSimple(DataObjectSimple):
4117 def __repr__(self):
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
4123 self.thisown = 1
4124 del newobj.thisown
4125 self._setCallbackInfo(self, PyDataObjectSimple)
4126
4127 def _setCallbackInfo(*args, **kwargs):
4128 """_setCallbackInfo(PyObject self, PyObject _class)"""
4129 return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs)
4130
4131
4132 class PyDataObjectSimplePtr(PyDataObjectSimple):
4133 def __init__(self, this):
4134 self.this = this
4135 if not hasattr(self,"thisown"): self.thisown = 0
4136 self.__class__ = PyDataObjectSimple
4137 _misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr)
4138
4139 class DataObjectComposite(DataObject):
4140 def __repr__(self):
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
4146 self.thisown = 1
4147 del newobj.thisown
4148 def Add(*args, **kwargs):
4149 """Add(DataObjectSimple dataObject, int preferred=False)"""
4150 val = _misc.DataObjectComposite_Add(*args, **kwargs)
4151 args[1].thisown = 0
4152 return val
4153
4154
4155 class DataObjectCompositePtr(DataObjectComposite):
4156 def __init__(self, this):
4157 self.this = this
4158 if not hasattr(self,"thisown"): self.thisown = 0
4159 self.__class__ = DataObjectComposite
4160 _misc.DataObjectComposite_swigregister(DataObjectCompositePtr)
4161
4162 class TextDataObject(DataObjectSimple):
4163 def __repr__(self):
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
4169 self.thisown = 1
4170 del newobj.thisown
4171 def GetTextLength(*args, **kwargs):
4172 """GetTextLength() -> size_t"""
4173 return _misc.TextDataObject_GetTextLength(*args, **kwargs)
4174
4175 def GetText(*args, **kwargs):
4176 """GetText() -> wxString"""
4177 return _misc.TextDataObject_GetText(*args, **kwargs)
4178
4179 def SetText(*args, **kwargs):
4180 """SetText(wxString text)"""
4181 return _misc.TextDataObject_SetText(*args, **kwargs)
4182
4183
4184 class TextDataObjectPtr(TextDataObject):
4185 def __init__(self, this):
4186 self.this = this
4187 if not hasattr(self,"thisown"): self.thisown = 0
4188 self.__class__ = TextDataObject
4189 _misc.TextDataObject_swigregister(TextDataObjectPtr)
4190
4191 class PyTextDataObject(TextDataObject):
4192 def __repr__(self):
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
4198 self.thisown = 1
4199 del newobj.thisown
4200 self._setCallbackInfo(self, PyTextDataObject)
4201
4202 def _setCallbackInfo(*args, **kwargs):
4203 """_setCallbackInfo(PyObject self, PyObject _class)"""
4204 return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs)
4205
4206
4207 class PyTextDataObjectPtr(PyTextDataObject):
4208 def __init__(self, this):
4209 self.this = this
4210 if not hasattr(self,"thisown"): self.thisown = 0
4211 self.__class__ = PyTextDataObject
4212 _misc.PyTextDataObject_swigregister(PyTextDataObjectPtr)
4213
4214 class BitmapDataObject(DataObjectSimple):
4215 def __repr__(self):
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
4221 self.thisown = 1
4222 del newobj.thisown
4223 def GetBitmap(*args, **kwargs):
4224 """GetBitmap() -> wxBitmap"""
4225 return _misc.BitmapDataObject_GetBitmap(*args, **kwargs)
4226
4227 def SetBitmap(*args, **kwargs):
4228 """SetBitmap(wxBitmap bitmap)"""
4229 return _misc.BitmapDataObject_SetBitmap(*args, **kwargs)
4230
4231
4232 class BitmapDataObjectPtr(BitmapDataObject):
4233 def __init__(self, this):
4234 self.this = this
4235 if not hasattr(self,"thisown"): self.thisown = 0
4236 self.__class__ = BitmapDataObject
4237 _misc.BitmapDataObject_swigregister(BitmapDataObjectPtr)
4238
4239 class PyBitmapDataObject(BitmapDataObject):
4240 def __repr__(self):
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
4246 self.thisown = 1
4247 del newobj.thisown
4248 self._setCallbackInfo(self, PyBitmapDataObject)
4249
4250 def _setCallbackInfo(*args, **kwargs):
4251 """_setCallbackInfo(PyObject self, PyObject _class)"""
4252 return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs)
4253
4254
4255 class PyBitmapDataObjectPtr(PyBitmapDataObject):
4256 def __init__(self, this):
4257 self.this = this
4258 if not hasattr(self,"thisown"): self.thisown = 0
4259 self.__class__ = PyBitmapDataObject
4260 _misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr)
4261
4262 class FileDataObject(DataObjectSimple):
4263 def __repr__(self):
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
4269 self.thisown = 1
4270 del newobj.thisown
4271 def GetFilenames(*args, **kwargs):
4272 """GetFilenames() -> wxArrayString"""
4273 return _misc.FileDataObject_GetFilenames(*args, **kwargs)
4274
4275
4276 class FileDataObjectPtr(FileDataObject):
4277 def __init__(self, this):
4278 self.this = this
4279 if not hasattr(self,"thisown"): self.thisown = 0
4280 self.__class__ = FileDataObject
4281 _misc.FileDataObject_swigregister(FileDataObjectPtr)
4282
4283 class CustomDataObject(DataObjectSimple):
4284 def __repr__(self):
4285 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4286 def __init__(self, *args, **kwargs):
4287 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
4288 newobj = _misc.new_CustomDataObject(*args, **kwargs)
4289 self.this = newobj.this
4290 self.thisown = 1
4291 del newobj.thisown
4292 def TakeData(*args, **kwargs):
4293 """TakeData(PyObject data)"""
4294 return _misc.CustomDataObject_TakeData(*args, **kwargs)
4295
4296 def SetData(*args, **kwargs):
4297 """SetData(PyObject data) -> bool"""
4298 return _misc.CustomDataObject_SetData(*args, **kwargs)
4299
4300 def GetSize(*args, **kwargs):
4301 """GetSize() -> size_t"""
4302 return _misc.CustomDataObject_GetSize(*args, **kwargs)
4303
4304 def GetData(*args, **kwargs):
4305 """GetData() -> PyObject"""
4306 return _misc.CustomDataObject_GetData(*args, **kwargs)
4307
4308
4309 class CustomDataObjectPtr(CustomDataObject):
4310 def __init__(self, this):
4311 self.this = this
4312 if not hasattr(self,"thisown"): self.thisown = 0
4313 self.__class__ = CustomDataObject
4314 _misc.CustomDataObject_swigregister(CustomDataObjectPtr)
4315
4316 class URLDataObject(DataObjectComposite):
4317 def __repr__(self):
4318 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4319 def __init__(self, *args, **kwargs):
4320 """__init__() -> URLDataObject"""
4321 newobj = _misc.new_URLDataObject(*args, **kwargs)
4322 self.this = newobj.this
4323 self.thisown = 1
4324 del newobj.thisown
4325 def GetURL(*args, **kwargs):
4326 """GetURL() -> wxString"""
4327 return _misc.URLDataObject_GetURL(*args, **kwargs)
4328
4329 def SetURL(*args, **kwargs):
4330 """SetURL(wxString url)"""
4331 return _misc.URLDataObject_SetURL(*args, **kwargs)
4332
4333
4334 class URLDataObjectPtr(URLDataObject):
4335 def __init__(self, this):
4336 self.this = this
4337 if not hasattr(self,"thisown"): self.thisown = 0
4338 self.__class__ = URLDataObject
4339 _misc.URLDataObject_swigregister(URLDataObjectPtr)
4340
4341 class MetafileDataObject(DataObjectSimple):
4342 def __repr__(self):
4343 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4344 def __init__(self, *args, **kwargs):
4345 """__init__() -> MetafileDataObject"""
4346 newobj = _misc.new_MetafileDataObject(*args, **kwargs)
4347 self.this = newobj.this
4348 self.thisown = 1
4349 del newobj.thisown
4350
4351 class MetafileDataObjectPtr(MetafileDataObject):
4352 def __init__(self, this):
4353 self.this = this
4354 if not hasattr(self,"thisown"): self.thisown = 0
4355 self.__class__ = MetafileDataObject
4356 _misc.MetafileDataObject_swigregister(MetafileDataObjectPtr)
4357
4358 #---------------------------------------------------------------------------
4359
4360 Drag_CopyOnly = _misc.Drag_CopyOnly
4361 Drag_AllowMove = _misc.Drag_AllowMove
4362 Drag_DefaultMove = _misc.Drag_DefaultMove
4363 DragError = _misc.DragError
4364 DragNone = _misc.DragNone
4365 DragCopy = _misc.DragCopy
4366 DragMove = _misc.DragMove
4367 DragLink = _misc.DragLink
4368 DragCancel = _misc.DragCancel
4369
4370 def IsDragResultOk(*args, **kwargs):
4371 """IsDragResultOk(wxDragResult res) -> bool"""
4372 return _misc.IsDragResultOk(*args, **kwargs)
4373 class DropSource(object):
4374 def __repr__(self):
4375 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4376 def __init__(self, *args, **kwargs):
4377 """
4378 __init__(Window win=None, wxIcon copy=wxNullIcon, wxIcon move=wxNullIcon,
4379 wxIcon none=wxNullIcon) -> DropSource
4380 """
4381 newobj = _misc.new_DropSource(*args, **kwargs)
4382 self.this = newobj.this
4383 self.thisown = 1
4384 del newobj.thisown
4385 def _setCallbackInfo(*args, **kwargs):
4386 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4387 return _misc.DropSource__setCallbackInfo(*args, **kwargs)
4388
4389 def __del__(self, destroy=_misc.delete_DropSource):
4390 """__del__()"""
4391 try:
4392 if self.thisown: destroy(self)
4393 except: pass
4394
4395 def SetData(*args, **kwargs):
4396 """SetData(DataObject data)"""
4397 return _misc.DropSource_SetData(*args, **kwargs)
4398
4399 def GetDataObject(*args, **kwargs):
4400 """GetDataObject() -> DataObject"""
4401 return _misc.DropSource_GetDataObject(*args, **kwargs)
4402
4403 def SetCursor(*args, **kwargs):
4404 """SetCursor(wxDragResult res, wxCursor cursor)"""
4405 return _misc.DropSource_SetCursor(*args, **kwargs)
4406
4407 def DoDragDrop(*args, **kwargs):
4408 """DoDragDrop(int flags=Drag_CopyOnly) -> wxDragResult"""
4409 return _misc.DropSource_DoDragDrop(*args, **kwargs)
4410
4411 def base_GiveFeedback(*args, **kwargs):
4412 """base_GiveFeedback(wxDragResult effect) -> bool"""
4413 return _misc.DropSource_base_GiveFeedback(*args, **kwargs)
4414
4415
4416 class DropSourcePtr(DropSource):
4417 def __init__(self, this):
4418 self.this = this
4419 if not hasattr(self,"thisown"): self.thisown = 0
4420 self.__class__ = DropSource
4421 _misc.DropSource_swigregister(DropSourcePtr)
4422
4423 class DropTarget(object):
4424 def __repr__(self):
4425 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4426 def __init__(self, *args, **kwargs):
4427 """__init__(DataObject dataObject=None) -> DropTarget"""
4428 newobj = _misc.new_DropTarget(*args, **kwargs)
4429 self.this = newobj.this
4430 self.thisown = 1
4431 del newobj.thisown
4432 if args: args[0].thisown = 0;
4433 self._setCallbackInfo(self, DropTarget)
4434
4435 def _setCallbackInfo(*args, **kwargs):
4436 """_setCallbackInfo(PyObject self, PyObject _class)"""
4437 return _misc.DropTarget__setCallbackInfo(*args, **kwargs)
4438
4439 def __del__(self, destroy=_misc.delete_DropTarget):
4440 """__del__()"""
4441 try:
4442 if self.thisown: destroy(self)
4443 except: pass
4444
4445 def GetDataObject(*args, **kwargs):
4446 """GetDataObject() -> DataObject"""
4447 return _misc.DropTarget_GetDataObject(*args, **kwargs)
4448
4449 def SetDataObject(*args, **kwargs):
4450 """SetDataObject(DataObject dataObject)"""
4451 val = _misc.DropTarget_SetDataObject(*args, **kwargs)
4452 args[1].thisown = 0
4453 return val
4454
4455 def base_OnEnter(*args, **kwargs):
4456 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4457 return _misc.DropTarget_base_OnEnter(*args, **kwargs)
4458
4459 def base_OnDragOver(*args, **kwargs):
4460 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4461 return _misc.DropTarget_base_OnDragOver(*args, **kwargs)
4462
4463 def base_OnLeave(*args, **kwargs):
4464 """base_OnLeave()"""
4465 return _misc.DropTarget_base_OnLeave(*args, **kwargs)
4466
4467 def base_OnDrop(*args, **kwargs):
4468 """base_OnDrop(int x, int y) -> bool"""
4469 return _misc.DropTarget_base_OnDrop(*args, **kwargs)
4470
4471 def GetData(*args, **kwargs):
4472 """GetData() -> bool"""
4473 return _misc.DropTarget_GetData(*args, **kwargs)
4474
4475
4476 class DropTargetPtr(DropTarget):
4477 def __init__(self, this):
4478 self.this = this
4479 if not hasattr(self,"thisown"): self.thisown = 0
4480 self.__class__ = DropTarget
4481 _misc.DropTarget_swigregister(DropTargetPtr)
4482
4483 PyDropTarget = DropTarget
4484 class TextDropTarget(DropTarget):
4485 def __repr__(self):
4486 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4487 def __init__(self, *args, **kwargs):
4488 """__init__() -> TextDropTarget"""
4489 newobj = _misc.new_TextDropTarget(*args, **kwargs)
4490 self.this = newobj.this
4491 self.thisown = 1
4492 del newobj.thisown
4493 self._setCallbackInfo(self, TextDropTarget)
4494
4495 def _setCallbackInfo(*args, **kwargs):
4496 """_setCallbackInfo(PyObject self, PyObject _class)"""
4497 return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs)
4498
4499 def base_OnEnter(*args, **kwargs):
4500 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4501 return _misc.TextDropTarget_base_OnEnter(*args, **kwargs)
4502
4503 def base_OnDragOver(*args, **kwargs):
4504 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4505 return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs)
4506
4507 def base_OnLeave(*args, **kwargs):
4508 """base_OnLeave()"""
4509 return _misc.TextDropTarget_base_OnLeave(*args, **kwargs)
4510
4511 def base_OnDrop(*args, **kwargs):
4512 """base_OnDrop(int x, int y) -> bool"""
4513 return _misc.TextDropTarget_base_OnDrop(*args, **kwargs)
4514
4515 def base_OnData(*args, **kwargs):
4516 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4517 return _misc.TextDropTarget_base_OnData(*args, **kwargs)
4518
4519
4520 class TextDropTargetPtr(TextDropTarget):
4521 def __init__(self, this):
4522 self.this = this
4523 if not hasattr(self,"thisown"): self.thisown = 0
4524 self.__class__ = TextDropTarget
4525 _misc.TextDropTarget_swigregister(TextDropTargetPtr)
4526
4527 class FileDropTarget(DropTarget):
4528 def __repr__(self):
4529 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4530 def __init__(self, *args, **kwargs):
4531 """__init__() -> FileDropTarget"""
4532 newobj = _misc.new_FileDropTarget(*args, **kwargs)
4533 self.this = newobj.this
4534 self.thisown = 1
4535 del newobj.thisown
4536 self._setCallbackInfo(self, FileDropTarget)
4537
4538 def _setCallbackInfo(*args, **kwargs):
4539 """_setCallbackInfo(PyObject self, PyObject _class)"""
4540 return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs)
4541
4542 def base_OnEnter(*args, **kwargs):
4543 """base_OnEnter(int x, int y, wxDragResult def) -> wxDragResult"""
4544 return _misc.FileDropTarget_base_OnEnter(*args, **kwargs)
4545
4546 def base_OnDragOver(*args, **kwargs):
4547 """base_OnDragOver(int x, int y, wxDragResult def) -> wxDragResult"""
4548 return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs)
4549
4550 def base_OnLeave(*args, **kwargs):
4551 """base_OnLeave()"""
4552 return _misc.FileDropTarget_base_OnLeave(*args, **kwargs)
4553
4554 def base_OnDrop(*args, **kwargs):
4555 """base_OnDrop(int x, int y) -> bool"""
4556 return _misc.FileDropTarget_base_OnDrop(*args, **kwargs)
4557
4558 def base_OnData(*args, **kwargs):
4559 """base_OnData(int x, int y, wxDragResult def) -> wxDragResult"""
4560 return _misc.FileDropTarget_base_OnData(*args, **kwargs)
4561
4562
4563 class FileDropTargetPtr(FileDropTarget):
4564 def __init__(self, this):
4565 self.this = this
4566 if not hasattr(self,"thisown"): self.thisown = 0
4567 self.__class__ = FileDropTarget
4568 _misc.FileDropTarget_swigregister(FileDropTargetPtr)
4569
4570 #---------------------------------------------------------------------------
4571
4572 class Clipboard(core.Object):
4573 def __repr__(self):
4574 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4575 def __init__(self, *args, **kwargs):
4576 """__init__() -> Clipboard"""
4577 newobj = _misc.new_Clipboard(*args, **kwargs)
4578 self.this = newobj.this
4579 self.thisown = 1
4580 del newobj.thisown
4581 def __del__(self, destroy=_misc.delete_Clipboard):
4582 """__del__()"""
4583 try:
4584 if self.thisown: destroy(self)
4585 except: pass
4586
4587 def Open(*args, **kwargs):
4588 """Open() -> bool"""
4589 return _misc.Clipboard_Open(*args, **kwargs)
4590
4591 def Close(*args, **kwargs):
4592 """Close()"""
4593 return _misc.Clipboard_Close(*args, **kwargs)
4594
4595 def IsOpened(*args, **kwargs):
4596 """IsOpened() -> bool"""
4597 return _misc.Clipboard_IsOpened(*args, **kwargs)
4598
4599 def AddData(*args, **kwargs):
4600 """AddData(DataObject data) -> bool"""
4601 return _misc.Clipboard_AddData(*args, **kwargs)
4602
4603 def SetData(*args, **kwargs):
4604 """SetData(DataObject data) -> bool"""
4605 return _misc.Clipboard_SetData(*args, **kwargs)
4606
4607 def IsSupported(*args, **kwargs):
4608 """IsSupported(DataFormat format) -> bool"""
4609 return _misc.Clipboard_IsSupported(*args, **kwargs)
4610
4611 def GetData(*args, **kwargs):
4612 """GetData(DataObject data) -> bool"""
4613 return _misc.Clipboard_GetData(*args, **kwargs)
4614
4615 def Clear(*args, **kwargs):
4616 """Clear()"""
4617 return _misc.Clipboard_Clear(*args, **kwargs)
4618
4619 def Flush(*args, **kwargs):
4620 """Flush() -> bool"""
4621 return _misc.Clipboard_Flush(*args, **kwargs)
4622
4623 def UsePrimarySelection(*args, **kwargs):
4624 """UsePrimarySelection(bool primary=False)"""
4625 return _misc.Clipboard_UsePrimarySelection(*args, **kwargs)
4626
4627
4628 class ClipboardPtr(Clipboard):
4629 def __init__(self, this):
4630 self.this = this
4631 if not hasattr(self,"thisown"): self.thisown = 0
4632 self.__class__ = Clipboard
4633 _misc.Clipboard_swigregister(ClipboardPtr)
4634
4635 class ClipboardLocker(object):
4636 def __repr__(self):
4637 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4638 def __init__(self, *args, **kwargs):
4639 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
4640 newobj = _misc.new_ClipboardLocker(*args, **kwargs)
4641 self.this = newobj.this
4642 self.thisown = 1
4643 del newobj.thisown
4644 def __del__(self, destroy=_misc.delete_ClipboardLocker):
4645 """__del__()"""
4646 try:
4647 if self.thisown: destroy(self)
4648 except: pass
4649
4650 def __nonzero__(*args, **kwargs):
4651 """__nonzero__() -> bool"""
4652 return _misc.ClipboardLocker___nonzero__(*args, **kwargs)
4653
4654
4655 class ClipboardLockerPtr(ClipboardLocker):
4656 def __init__(self, this):
4657 self.this = this
4658 if not hasattr(self,"thisown"): self.thisown = 0
4659 self.__class__ = ClipboardLocker
4660 _misc.ClipboardLocker_swigregister(ClipboardLockerPtr)
4661 TheClipboard = cvar.TheClipboard
4662
4663