]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc.py
reSWIGged
[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(int index) -> Colour"""
107 return _misc.SystemSettings_GetColour(*args, **kwargs)
108
109 GetColour = staticmethod(GetColour)
110 def GetFont(*args, **kwargs):
111 """SystemSettings.GetFont(int index) -> Font"""
112 return _misc.SystemSettings_GetFont(*args, **kwargs)
113
114 GetFont = staticmethod(GetFont)
115 def GetMetric(*args, **kwargs):
116 """SystemSettings.GetMetric(int index) -> int"""
117 return _misc.SystemSettings_GetMetric(*args, **kwargs)
118
119 GetMetric = staticmethod(GetMetric)
120 def HasFeature(*args, **kwargs):
121 """SystemSettings.HasFeature(int index) -> bool"""
122 return _misc.SystemSettings_HasFeature(*args, **kwargs)
123
124 HasFeature = staticmethod(HasFeature)
125 def GetScreenType(*args, **kwargs):
126 """SystemSettings.GetScreenType() -> int"""
127 return _misc.SystemSettings_GetScreenType(*args, **kwargs)
128
129 GetScreenType = staticmethod(GetScreenType)
130 def SetScreenType(*args, **kwargs):
131 """SystemSettings.SetScreenType(int 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(int index) -> Colour"""
145 return _misc.SystemSettings_GetColour(*args, **kwargs)
146
147 def SystemSettings_GetFont(*args, **kwargs):
148 """SystemSettings_GetFont(int index) -> Font"""
149 return _misc.SystemSettings_GetFont(*args, **kwargs)
150
151 def SystemSettings_GetMetric(*args, **kwargs):
152 """SystemSettings_GetMetric(int index) -> int"""
153 return _misc.SystemSettings_GetMetric(*args, **kwargs)
154
155 def SystemSettings_HasFeature(*args, **kwargs):
156 """SystemSettings_HasFeature(int index) -> bool"""
157 return _misc.SystemSettings_HasFeature(*args, **kwargs)
158
159 def SystemSettings_GetScreenType(*args, **kwargs):
160 """SystemSettings_GetScreenType() -> int"""
161 return _misc.SystemSettings_GetScreenType(*args, **kwargs)
162
163 def SystemSettings_SetScreenType(*args, **kwargs):
164 """SystemSettings_SetScreenType(int 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(String name, String value)"""
183 return _misc.SystemOptions_SetOption(*args, **kwargs)
184
185 SetOption = staticmethod(SetOption)
186 def SetOptionInt(*args, **kwargs):
187 """SystemOptions.SetOptionInt(String name, int value)"""
188 return _misc.SystemOptions_SetOptionInt(*args, **kwargs)
189
190 SetOptionInt = staticmethod(SetOptionInt)
191 def GetOption(*args, **kwargs):
192 """SystemOptions.GetOption(String name) -> String"""
193 return _misc.SystemOptions_GetOption(*args, **kwargs)
194
195 GetOption = staticmethod(GetOption)
196 def GetOptionInt(*args, **kwargs):
197 """SystemOptions.GetOptionInt(String name) -> int"""
198 return _misc.SystemOptions_GetOptionInt(*args, **kwargs)
199
200 GetOptionInt = staticmethod(GetOptionInt)
201 def HasOption(*args, **kwargs):
202 """SystemOptions.HasOption(String 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(String name, String value)"""
216 return _misc.SystemOptions_SetOption(*args, **kwargs)
217
218 def SystemOptions_SetOptionInt(*args, **kwargs):
219 """SystemOptions_SetOptionInt(String name, int value)"""
220 return _misc.SystemOptions_SetOptionInt(*args, **kwargs)
221
222 def SystemOptions_GetOption(*args, **kwargs):
223 """SystemOptions_GetOption(String name) -> String"""
224 return _misc.SystemOptions_GetOption(*args, **kwargs)
225
226 def SystemOptions_GetOptionInt(*args, **kwargs):
227 """SystemOptions_GetOptionInt(String name) -> int"""
228 return _misc.SystemOptions_GetOptionInt(*args, **kwargs)
229
230 def SystemOptions_HasOption(*args, **kwargs):
231 """SystemOptions_HasOption(String 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() -> String"""
271 return _misc.Now(*args, **kwargs)
272
273 def Shell(*args, **kwargs):
274 """Shell(String command=EmptyString) -> 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() -> String"""
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(int 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(String in) -> String"""
313 return _misc.StripMenuCodes(*args, **kwargs)
314
315 def GetEmailAddress(*args, **kwargs):
316 """GetEmailAddress() -> String"""
317 return _misc.GetEmailAddress(*args, **kwargs)
318
319 def GetHostName(*args, **kwargs):
320 """GetHostName() -> String"""
321 return _misc.GetHostName(*args, **kwargs)
322
323 def GetFullHostName(*args, **kwargs):
324 """GetFullHostName() -> String"""
325 return _misc.GetFullHostName(*args, **kwargs)
326
327 def GetUserId(*args, **kwargs):
328 """GetUserId() -> String"""
329 return _misc.GetUserId(*args, **kwargs)
330
331 def GetUserName(*args, **kwargs):
332 """GetUserName() -> String"""
333 return _misc.GetUserName(*args, **kwargs)
334
335 def GetHomeDir(*args, **kwargs):
336 """GetHomeDir() -> String"""
337 return _misc.GetHomeDir(*args, **kwargs)
338
339 def GetUserHome(*args, **kwargs):
340 """GetUserHome(String user=EmptyString) -> String"""
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(String message=FileSelectorPromptStr, String default_path=EmptyString,
354 String default_filename=EmptyString,
355 String default_extension=EmptyString,
356 String wildcard=FileSelectorDefaultWildcardStr,
357 int flags=0, Window parent=None, int x=-1,
358 int y=-1) -> String
359 """
360 return _misc.FileSelector(*args, **kwargs)
361
362 def LoadFileSelector(*args, **kwargs):
363 """
364 LoadFileSelector(String what, String extension, String default_name=EmptyString,
365 Window parent=None) -> String
366 """
367 return _misc.LoadFileSelector(*args, **kwargs)
368
369 def SaveFileSelector(*args, **kwargs):
370 """
371 SaveFileSelector(String what, String extension, String default_name=EmptyString,
372 Window parent=None) -> String
373 """
374 return _misc.SaveFileSelector(*args, **kwargs)
375
376 def DirSelector(*args, **kwargs):
377 """
378 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
379 long style=DD_DEFAULT_STYLE,
380 Point pos=DefaultPosition, Window parent=None) -> String
381 """
382 return _misc.DirSelector(*args, **kwargs)
383
384 def GetTextFromUser(*args, **kwargs):
385 """
386 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
387 Window parent=None,
388 int x=-1, int y=-1, bool centre=True) -> String
389 """
390 return _misc.GetTextFromUser(*args, **kwargs)
391
392 def GetPasswordFromUser(*args, **kwargs):
393 """
394 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
395 Window parent=None) -> String
396 """
397 return _misc.GetPasswordFromUser(*args, **kwargs)
398
399 def GetSingleChoice(*args, **kwargs):
400 """
401 GetSingleChoice(String message, String caption, int choices, String choices_array,
402 Window parent=None, int x=-1,
403 int y=-1, bool centre=True, int width=150, int height=200) -> String
404 """
405 return _misc.GetSingleChoice(*args, **kwargs)
406
407 def GetSingleChoiceIndex(*args, **kwargs):
408 """
409 GetSingleChoiceIndex(String message, String caption, int choices, String choices_array,
410 Window parent=None, int x=-1,
411 int y=-1, bool centre=True, int width=150, int height=200) -> int
412 """
413 return _misc.GetSingleChoiceIndex(*args, **kwargs)
414
415 def MessageBox(*args, **kwargs):
416 """
417 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
418 Window parent=None, int x=-1,
419 int y=-1) -> int
420 """
421 return _misc.MessageBox(*args, **kwargs)
422
423 def GetNumberFromUser(*args, **kwargs):
424 """
425 GetNumberFromUser(String message, String prompt, String caption, long value,
426 long min=0, long max=100, Window parent=None,
427 Point pos=DefaultPosition) -> long
428 """
429 return _misc.GetNumberFromUser(*args, **kwargs)
430
431 def ColourDisplay(*args, **kwargs):
432 """ColourDisplay() -> bool"""
433 return _misc.ColourDisplay(*args, **kwargs)
434
435 def DisplayDepth(*args, **kwargs):
436 """DisplayDepth() -> int"""
437 return _misc.DisplayDepth(*args, **kwargs)
438
439 def GetDisplayDepth(*args, **kwargs):
440 """GetDisplayDepth() -> int"""
441 return _misc.GetDisplayDepth(*args, **kwargs)
442
443 def DisplaySize(*args, **kwargs):
444 """DisplaySize() -> (width, height)"""
445 return _misc.DisplaySize(*args, **kwargs)
446
447 def GetDisplaySize(*args, **kwargs):
448 """GetDisplaySize() -> Size"""
449 return _misc.GetDisplaySize(*args, **kwargs)
450
451 def DisplaySizeMM(*args, **kwargs):
452 """DisplaySizeMM() -> (width, height)"""
453 return _misc.DisplaySizeMM(*args, **kwargs)
454
455 def GetDisplaySizeMM(*args, **kwargs):
456 """GetDisplaySizeMM() -> Size"""
457 return _misc.GetDisplaySizeMM(*args, **kwargs)
458
459 def ClientDisplayRect(*args, **kwargs):
460 """ClientDisplayRect() -> (x, y, width, height)"""
461 return _misc.ClientDisplayRect(*args, **kwargs)
462
463 def GetClientDisplayRect(*args, **kwargs):
464 """GetClientDisplayRect() -> Rect"""
465 return _misc.GetClientDisplayRect(*args, **kwargs)
466
467 def SetCursor(*args, **kwargs):
468 """SetCursor(Cursor cursor)"""
469 return _misc.SetCursor(*args, **kwargs)
470
471 def BeginBusyCursor(*args, **kwargs):
472 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
473 return _misc.BeginBusyCursor(*args, **kwargs)
474
475 def GetActiveWindow(*args, **kwargs):
476 """GetActiveWindow() -> Window"""
477 return _misc.GetActiveWindow(*args, **kwargs)
478
479 def GenericFindWindowAtPoint(*args, **kwargs):
480 """GenericFindWindowAtPoint(Point pt) -> Window"""
481 return _misc.GenericFindWindowAtPoint(*args, **kwargs)
482
483 def FindWindowAtPoint(*args, **kwargs):
484 """FindWindowAtPoint(Point pt) -> Window"""
485 return _misc.FindWindowAtPoint(*args, **kwargs)
486
487 def GetTopLevelParent(*args, **kwargs):
488 """GetTopLevelParent(Window win) -> Window"""
489 return _misc.GetTopLevelParent(*args, **kwargs)
490
491 def GetKeyState(*args, **kwargs):
492 """GetKeyState(int key) -> bool"""
493 return _misc.GetKeyState(*args, **kwargs)
494
495 def WakeUpMainThread(*args, **kwargs):
496 """WakeUpMainThread()"""
497 return _misc.WakeUpMainThread(*args, **kwargs)
498
499 def MutexGuiEnter(*args, **kwargs):
500 """MutexGuiEnter()"""
501 return _misc.MutexGuiEnter(*args, **kwargs)
502
503 def MutexGuiLeave(*args, **kwargs):
504 """MutexGuiLeave()"""
505 return _misc.MutexGuiLeave(*args, **kwargs)
506 class MutexGuiLocker(object):
507 def __repr__(self):
508 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
509 def __init__(self, *args, **kwargs):
510 """__init__() -> MutexGuiLocker"""
511 newobj = _misc.new_MutexGuiLocker(*args, **kwargs)
512 self.this = newobj.this
513 self.thisown = 1
514 del newobj.thisown
515 def __del__(self, destroy=_misc.delete_MutexGuiLocker):
516 """__del__()"""
517 try:
518 if self.thisown: destroy(self)
519 except: pass
520
521
522 class MutexGuiLockerPtr(MutexGuiLocker):
523 def __init__(self, this):
524 self.this = this
525 if not hasattr(self,"thisown"): self.thisown = 0
526 self.__class__ = MutexGuiLocker
527 _misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr)
528 cvar = _misc.cvar
529 FileSelectorPromptStr = cvar.FileSelectorPromptStr
530 FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
531 DirSelectorPromptStr = cvar.DirSelectorPromptStr
532
533
534 def Thread_IsMain(*args, **kwargs):
535 """Thread_IsMain() -> bool"""
536 return _misc.Thread_IsMain(*args, **kwargs)
537 #---------------------------------------------------------------------------
538
539 class ToolTip(core.Object):
540 def __repr__(self):
541 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
542 def __init__(self, *args, **kwargs):
543 """__init__(String tip) -> ToolTip"""
544 newobj = _misc.new_ToolTip(*args, **kwargs)
545 self.this = newobj.this
546 self.thisown = 1
547 del newobj.thisown
548 def SetTip(*args, **kwargs):
549 """SetTip(String tip)"""
550 return _misc.ToolTip_SetTip(*args, **kwargs)
551
552 def GetTip(*args, **kwargs):
553 """GetTip() -> String"""
554 return _misc.ToolTip_GetTip(*args, **kwargs)
555
556 def GetWindow(*args, **kwargs):
557 """GetWindow() -> Window"""
558 return _misc.ToolTip_GetWindow(*args, **kwargs)
559
560 def Enable(*args, **kwargs):
561 """ToolTip.Enable(bool flag)"""
562 return _misc.ToolTip_Enable(*args, **kwargs)
563
564 Enable = staticmethod(Enable)
565 def SetDelay(*args, **kwargs):
566 """ToolTip.SetDelay(long milliseconds)"""
567 return _misc.ToolTip_SetDelay(*args, **kwargs)
568
569 SetDelay = staticmethod(SetDelay)
570
571 class ToolTipPtr(ToolTip):
572 def __init__(self, this):
573 self.this = this
574 if not hasattr(self,"thisown"): self.thisown = 0
575 self.__class__ = ToolTip
576 _misc.ToolTip_swigregister(ToolTipPtr)
577
578 def ToolTip_Enable(*args, **kwargs):
579 """ToolTip_Enable(bool flag)"""
580 return _misc.ToolTip_Enable(*args, **kwargs)
581
582 def ToolTip_SetDelay(*args, **kwargs):
583 """ToolTip_SetDelay(long milliseconds)"""
584 return _misc.ToolTip_SetDelay(*args, **kwargs)
585
586 class Caret(object):
587 def __repr__(self):
588 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
589 def __init__(self, *args, **kwargs):
590 """__init__(Window window, Size size) -> Caret"""
591 newobj = _misc.new_Caret(*args, **kwargs)
592 self.this = newobj.this
593 self.thisown = 1
594 del newobj.thisown
595 def __del__(self, destroy=_misc.delete_Caret):
596 """__del__()"""
597 try:
598 if self.thisown: destroy(self)
599 except: pass
600
601 def IsOk(*args, **kwargs):
602 """IsOk() -> bool"""
603 return _misc.Caret_IsOk(*args, **kwargs)
604
605 def IsVisible(*args, **kwargs):
606 """IsVisible() -> bool"""
607 return _misc.Caret_IsVisible(*args, **kwargs)
608
609 def GetPosition(*args, **kwargs):
610 """GetPosition() -> Point"""
611 return _misc.Caret_GetPosition(*args, **kwargs)
612
613 def GetPositionTuple(*args, **kwargs):
614 """GetPositionTuple() -> (x,y)"""
615 return _misc.Caret_GetPositionTuple(*args, **kwargs)
616
617 def GetSize(*args, **kwargs):
618 """GetSize() -> Size"""
619 return _misc.Caret_GetSize(*args, **kwargs)
620
621 def GetSizeTuple(*args, **kwargs):
622 """GetSizeTuple() -> (width, height)"""
623 return _misc.Caret_GetSizeTuple(*args, **kwargs)
624
625 def GetWindow(*args, **kwargs):
626 """GetWindow() -> Window"""
627 return _misc.Caret_GetWindow(*args, **kwargs)
628
629 def MoveXY(*args, **kwargs):
630 """MoveXY(int x, int y)"""
631 return _misc.Caret_MoveXY(*args, **kwargs)
632
633 def Move(*args, **kwargs):
634 """Move(Point pt)"""
635 return _misc.Caret_Move(*args, **kwargs)
636
637 def SetSizeWH(*args, **kwargs):
638 """SetSizeWH(int width, int height)"""
639 return _misc.Caret_SetSizeWH(*args, **kwargs)
640
641 def SetSize(*args, **kwargs):
642 """SetSize(Size size)"""
643 return _misc.Caret_SetSize(*args, **kwargs)
644
645 def Show(*args, **kwargs):
646 """Show(int show=True)"""
647 return _misc.Caret_Show(*args, **kwargs)
648
649 def Hide(*args, **kwargs):
650 """Hide()"""
651 return _misc.Caret_Hide(*args, **kwargs)
652
653 def __nonzero__(self): return self.IsOk()
654
655 class CaretPtr(Caret):
656 def __init__(self, this):
657 self.this = this
658 if not hasattr(self,"thisown"): self.thisown = 0
659 self.__class__ = Caret
660 _misc.Caret_swigregister(CaretPtr)
661
662
663 def Caret_GetBlinkTime(*args, **kwargs):
664 """Caret_GetBlinkTime() -> int"""
665 return _misc.Caret_GetBlinkTime(*args, **kwargs)
666
667 def Caret_SetBlinkTime(*args, **kwargs):
668 """Caret_SetBlinkTime(int milliseconds)"""
669 return _misc.Caret_SetBlinkTime(*args, **kwargs)
670 class BusyCursor(object):
671 def __repr__(self):
672 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
673 def __init__(self, *args, **kwargs):
674 """__init__(Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
675 newobj = _misc.new_BusyCursor(*args, **kwargs)
676 self.this = newobj.this
677 self.thisown = 1
678 del newobj.thisown
679 def __del__(self, destroy=_misc.delete_BusyCursor):
680 """__del__()"""
681 try:
682 if self.thisown: destroy(self)
683 except: pass
684
685
686 class BusyCursorPtr(BusyCursor):
687 def __init__(self, this):
688 self.this = this
689 if not hasattr(self,"thisown"): self.thisown = 0
690 self.__class__ = BusyCursor
691 _misc.BusyCursor_swigregister(BusyCursorPtr)
692
693 class WindowDisabler(object):
694 def __repr__(self):
695 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
696 def __init__(self, *args, **kwargs):
697 """__init__(Window winToSkip=None) -> WindowDisabler"""
698 newobj = _misc.new_WindowDisabler(*args, **kwargs)
699 self.this = newobj.this
700 self.thisown = 1
701 del newobj.thisown
702 def __del__(self, destroy=_misc.delete_WindowDisabler):
703 """__del__()"""
704 try:
705 if self.thisown: destroy(self)
706 except: pass
707
708
709 class WindowDisablerPtr(WindowDisabler):
710 def __init__(self, this):
711 self.this = this
712 if not hasattr(self,"thisown"): self.thisown = 0
713 self.__class__ = WindowDisabler
714 _misc.WindowDisabler_swigregister(WindowDisablerPtr)
715
716 class BusyInfo(core.Object):
717 def __repr__(self):
718 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
719 def __init__(self, *args, **kwargs):
720 """__init__(String message) -> BusyInfo"""
721 newobj = _misc.new_BusyInfo(*args, **kwargs)
722 self.this = newobj.this
723 self.thisown = 1
724 del newobj.thisown
725 def __del__(self, destroy=_misc.delete_BusyInfo):
726 """__del__()"""
727 try:
728 if self.thisown: destroy(self)
729 except: pass
730
731
732 class BusyInfoPtr(BusyInfo):
733 def __init__(self, this):
734 self.this = this
735 if not hasattr(self,"thisown"): self.thisown = 0
736 self.__class__ = BusyInfo
737 _misc.BusyInfo_swigregister(BusyInfoPtr)
738
739 class StopWatch(object):
740 def __repr__(self):
741 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
742 def __init__(self, *args, **kwargs):
743 """__init__() -> StopWatch"""
744 newobj = _misc.new_StopWatch(*args, **kwargs)
745 self.this = newobj.this
746 self.thisown = 1
747 del newobj.thisown
748 def Start(*args, **kwargs):
749 """Start(long t0=0)"""
750 return _misc.StopWatch_Start(*args, **kwargs)
751
752 def Pause(*args, **kwargs):
753 """Pause()"""
754 return _misc.StopWatch_Pause(*args, **kwargs)
755
756 def Resume(*args, **kwargs):
757 """Resume()"""
758 return _misc.StopWatch_Resume(*args, **kwargs)
759
760 def Time(*args, **kwargs):
761 """Time() -> long"""
762 return _misc.StopWatch_Time(*args, **kwargs)
763
764
765 class StopWatchPtr(StopWatch):
766 def __init__(self, this):
767 self.this = this
768 if not hasattr(self,"thisown"): self.thisown = 0
769 self.__class__ = StopWatch
770 _misc.StopWatch_swigregister(StopWatchPtr)
771
772 class FileHistory(core.Object):
773 def __repr__(self):
774 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
775 def __init__(self, *args, **kwargs):
776 """__init__(int maxFiles=9) -> FileHistory"""
777 newobj = _misc.new_FileHistory(*args, **kwargs)
778 self.this = newobj.this
779 self.thisown = 1
780 del newobj.thisown
781 def __del__(self, destroy=_misc.delete_FileHistory):
782 """__del__()"""
783 try:
784 if self.thisown: destroy(self)
785 except: pass
786
787 def AddFileToHistory(*args, **kwargs):
788 """AddFileToHistory(String file)"""
789 return _misc.FileHistory_AddFileToHistory(*args, **kwargs)
790
791 def RemoveFileFromHistory(*args, **kwargs):
792 """RemoveFileFromHistory(int i)"""
793 return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs)
794
795 def GetMaxFiles(*args, **kwargs):
796 """GetMaxFiles() -> int"""
797 return _misc.FileHistory_GetMaxFiles(*args, **kwargs)
798
799 def UseMenu(*args, **kwargs):
800 """UseMenu(Menu menu)"""
801 return _misc.FileHistory_UseMenu(*args, **kwargs)
802
803 def RemoveMenu(*args, **kwargs):
804 """RemoveMenu(Menu menu)"""
805 return _misc.FileHistory_RemoveMenu(*args, **kwargs)
806
807 def Load(*args, **kwargs):
808 """Load(ConfigBase config)"""
809 return _misc.FileHistory_Load(*args, **kwargs)
810
811 def Save(*args, **kwargs):
812 """Save(ConfigBase config)"""
813 return _misc.FileHistory_Save(*args, **kwargs)
814
815 def AddFilesToMenu(*args, **kwargs):
816 """AddFilesToMenu()"""
817 return _misc.FileHistory_AddFilesToMenu(*args, **kwargs)
818
819 def AddFilesToThisMenu(*args, **kwargs):
820 """AddFilesToThisMenu(Menu menu)"""
821 return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs)
822
823 def GetHistoryFile(*args, **kwargs):
824 """GetHistoryFile(int i) -> String"""
825 return _misc.FileHistory_GetHistoryFile(*args, **kwargs)
826
827 def GetCount(*args, **kwargs):
828 """GetCount() -> int"""
829 return _misc.FileHistory_GetCount(*args, **kwargs)
830
831
832 class FileHistoryPtr(FileHistory):
833 def __init__(self, this):
834 self.this = this
835 if not hasattr(self,"thisown"): self.thisown = 0
836 self.__class__ = FileHistory
837 _misc.FileHistory_swigregister(FileHistoryPtr)
838
839 class SingleInstanceChecker(object):
840 def __repr__(self):
841 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
842 def __init__(self, *args, **kwargs):
843 """__init__(String name, String path=EmptyString) -> SingleInstanceChecker"""
844 newobj = _misc.new_SingleInstanceChecker(*args, **kwargs)
845 self.this = newobj.this
846 self.thisown = 1
847 del newobj.thisown
848 def __del__(self, destroy=_misc.delete_SingleInstanceChecker):
849 """__del__()"""
850 try:
851 if self.thisown: destroy(self)
852 except: pass
853
854 def Create(*args, **kwargs):
855 """Create(String name, String path=EmptyString) -> bool"""
856 return _misc.SingleInstanceChecker_Create(*args, **kwargs)
857
858 def IsAnotherRunning(*args, **kwargs):
859 """IsAnotherRunning() -> bool"""
860 return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs)
861
862
863 class SingleInstanceCheckerPtr(SingleInstanceChecker):
864 def __init__(self, this):
865 self.this = this
866 if not hasattr(self,"thisown"): self.thisown = 0
867 self.__class__ = SingleInstanceChecker
868 _misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr)
869
870 def PreSingleInstanceChecker(*args, **kwargs):
871 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
872 val = _misc.new_PreSingleInstanceChecker(*args, **kwargs)
873 val.thisown = 1
874 return val
875
876
877 def DrawWindowOnDC(*args, **kwargs):
878 """DrawWindowOnDC(Window window, DC dc, int method)"""
879 return _misc.DrawWindowOnDC(*args, **kwargs)
880 #---------------------------------------------------------------------------
881
882 class TipProvider(object):
883 def __init__(self): raise RuntimeError, "No constructor defined"
884 def __repr__(self):
885 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
886 def __del__(self, destroy=_misc.delete_TipProvider):
887 """__del__()"""
888 try:
889 if self.thisown: destroy(self)
890 except: pass
891
892 def GetTip(*args, **kwargs):
893 """GetTip() -> String"""
894 return _misc.TipProvider_GetTip(*args, **kwargs)
895
896 def GetCurrentTip(*args, **kwargs):
897 """GetCurrentTip() -> size_t"""
898 return _misc.TipProvider_GetCurrentTip(*args, **kwargs)
899
900 def PreprocessTip(*args, **kwargs):
901 """PreprocessTip(String tip) -> String"""
902 return _misc.TipProvider_PreprocessTip(*args, **kwargs)
903
904
905 class TipProviderPtr(TipProvider):
906 def __init__(self, this):
907 self.this = this
908 if not hasattr(self,"thisown"): self.thisown = 0
909 self.__class__ = TipProvider
910 _misc.TipProvider_swigregister(TipProviderPtr)
911
912 class PyTipProvider(TipProvider):
913 def __repr__(self):
914 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
915 def __init__(self, *args, **kwargs):
916 """__init__(size_t currentTip) -> PyTipProvider"""
917 newobj = _misc.new_PyTipProvider(*args, **kwargs)
918 self.this = newobj.this
919 self.thisown = 1
920 del newobj.thisown
921 def _setCallbackInfo(*args, **kwargs):
922 """_setCallbackInfo(PyObject self, PyObject _class)"""
923 return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs)
924
925
926 class PyTipProviderPtr(PyTipProvider):
927 def __init__(self, this):
928 self.this = this
929 if not hasattr(self,"thisown"): self.thisown = 0
930 self.__class__ = PyTipProvider
931 _misc.PyTipProvider_swigregister(PyTipProviderPtr)
932
933
934 def ShowTip(*args, **kwargs):
935 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
936 return _misc.ShowTip(*args, **kwargs)
937
938 def CreateFileTipProvider(*args, **kwargs):
939 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
940 return _misc.CreateFileTipProvider(*args, **kwargs)
941 #---------------------------------------------------------------------------
942
943 TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS
944 TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT
945 wxEVT_TIMER = _misc.wxEVT_TIMER
946 class Timer(core.EvtHandler):
947 def __repr__(self):
948 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
949 def __init__(self, *args, **kwargs):
950 """__init__(EvtHandler owner=None, int id=-1) -> Timer"""
951 newobj = _misc.new_Timer(*args, **kwargs)
952 self.this = newobj.this
953 self.thisown = 1
954 del newobj.thisown
955 self._setCallbackInfo(self, Timer)
956
957 def __del__(self, destroy=_misc.delete_Timer):
958 """__del__()"""
959 try:
960 if self.thisown: destroy(self)
961 except: pass
962
963 def _setCallbackInfo(*args, **kwargs):
964 """_setCallbackInfo(PyObject self, PyObject _class)"""
965 return _misc.Timer__setCallbackInfo(*args, **kwargs)
966
967 def SetOwner(*args, **kwargs):
968 """SetOwner(EvtHandler owner, int id=-1)"""
969 return _misc.Timer_SetOwner(*args, **kwargs)
970
971 def Start(*args, **kwargs):
972 """Start(int milliseconds=-1, bool oneShot=False) -> bool"""
973 return _misc.Timer_Start(*args, **kwargs)
974
975 def Stop(*args, **kwargs):
976 """Stop()"""
977 return _misc.Timer_Stop(*args, **kwargs)
978
979 def IsRunning(*args, **kwargs):
980 """IsRunning() -> bool"""
981 return _misc.Timer_IsRunning(*args, **kwargs)
982
983 def GetInterval(*args, **kwargs):
984 """GetInterval() -> int"""
985 return _misc.Timer_GetInterval(*args, **kwargs)
986
987 def IsOneShot(*args, **kwargs):
988 """IsOneShot() -> bool"""
989 return _misc.Timer_IsOneShot(*args, **kwargs)
990
991 def GetId(*args, **kwargs):
992 """GetId() -> int"""
993 return _misc.Timer_GetId(*args, **kwargs)
994
995
996 class TimerPtr(Timer):
997 def __init__(self, this):
998 self.this = this
999 if not hasattr(self,"thisown"): self.thisown = 0
1000 self.__class__ = Timer
1001 _misc.Timer_swigregister(TimerPtr)
1002
1003 # For backwards compatibility with 2.4
1004 class PyTimer(Timer):
1005 def __init__(self, notify):
1006 Timer.__init__(self)
1007 self.notify = notify
1008
1009 def Notify(self):
1010 if self.notify:
1011 self.notify()
1012
1013
1014 EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 )
1015
1016
1017 class TimerEvent(core.Event):
1018 def __repr__(self):
1019 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1020 def __init__(self, *args, **kwargs):
1021 """__init__(int timerid=0, int interval=0) -> TimerEvent"""
1022 newobj = _misc.new_TimerEvent(*args, **kwargs)
1023 self.this = newobj.this
1024 self.thisown = 1
1025 del newobj.thisown
1026 def GetInterval(*args, **kwargs):
1027 """GetInterval() -> int"""
1028 return _misc.TimerEvent_GetInterval(*args, **kwargs)
1029
1030
1031 class TimerEventPtr(TimerEvent):
1032 def __init__(self, this):
1033 self.this = this
1034 if not hasattr(self,"thisown"): self.thisown = 0
1035 self.__class__ = TimerEvent
1036 _misc.TimerEvent_swigregister(TimerEventPtr)
1037
1038 class TimerRunner(object):
1039 def __repr__(self):
1040 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1041 def __init__(self, *args):
1042 """
1043 __init__(wxTimer timer) -> TimerRunner
1044 __init__(wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1045 """
1046 newobj = _misc.new_TimerRunner(*args)
1047 self.this = newobj.this
1048 self.thisown = 1
1049 del newobj.thisown
1050 def __del__(self, destroy=_misc.delete_TimerRunner):
1051 """__del__()"""
1052 try:
1053 if self.thisown: destroy(self)
1054 except: pass
1055
1056 def Start(*args, **kwargs):
1057 """Start(int milli, bool oneShot=False)"""
1058 return _misc.TimerRunner_Start(*args, **kwargs)
1059
1060
1061 class TimerRunnerPtr(TimerRunner):
1062 def __init__(self, this):
1063 self.this = this
1064 if not hasattr(self,"thisown"): self.thisown = 0
1065 self.__class__ = TimerRunner
1066 _misc.TimerRunner_swigregister(TimerRunnerPtr)
1067
1068 #---------------------------------------------------------------------------
1069
1070 LOG_FatalError = _misc.LOG_FatalError
1071 LOG_Error = _misc.LOG_Error
1072 LOG_Warning = _misc.LOG_Warning
1073 LOG_Message = _misc.LOG_Message
1074 LOG_Status = _misc.LOG_Status
1075 LOG_Info = _misc.LOG_Info
1076 LOG_Debug = _misc.LOG_Debug
1077 LOG_Trace = _misc.LOG_Trace
1078 LOG_Progress = _misc.LOG_Progress
1079 LOG_User = _misc.LOG_User
1080 LOG_Max = _misc.LOG_Max
1081 TRACE_MemAlloc = _misc.TRACE_MemAlloc
1082 TRACE_Messages = _misc.TRACE_Messages
1083 TRACE_ResAlloc = _misc.TRACE_ResAlloc
1084 TRACE_RefCount = _misc.TRACE_RefCount
1085 TRACE_OleCalls = _misc.TRACE_OleCalls
1086 TraceMemAlloc = _misc.TraceMemAlloc
1087 TraceMessages = _misc.TraceMessages
1088 TraceResAlloc = _misc.TraceResAlloc
1089 TraceRefCount = _misc.TraceRefCount
1090 TraceOleCalls = _misc.TraceOleCalls
1091 class Log(object):
1092 def __repr__(self):
1093 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1094 def __init__(self, *args, **kwargs):
1095 """__init__() -> Log"""
1096 newobj = _misc.new_Log(*args, **kwargs)
1097 self.this = newobj.this
1098 self.thisown = 1
1099 del newobj.thisown
1100 def IsEnabled(*args, **kwargs):
1101 """Log.IsEnabled() -> bool"""
1102 return _misc.Log_IsEnabled(*args, **kwargs)
1103
1104 IsEnabled = staticmethod(IsEnabled)
1105 def EnableLogging(*args, **kwargs):
1106 """Log.EnableLogging(bool doIt=True) -> bool"""
1107 return _misc.Log_EnableLogging(*args, **kwargs)
1108
1109 EnableLogging = staticmethod(EnableLogging)
1110 def OnLog(*args, **kwargs):
1111 """Log.OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1112 return _misc.Log_OnLog(*args, **kwargs)
1113
1114 OnLog = staticmethod(OnLog)
1115 def Flush(*args, **kwargs):
1116 """Flush()"""
1117 return _misc.Log_Flush(*args, **kwargs)
1118
1119 def FlushActive(*args, **kwargs):
1120 """Log.FlushActive()"""
1121 return _misc.Log_FlushActive(*args, **kwargs)
1122
1123 FlushActive = staticmethod(FlushActive)
1124 def GetActiveTarget(*args, **kwargs):
1125 """Log.GetActiveTarget() -> Log"""
1126 return _misc.Log_GetActiveTarget(*args, **kwargs)
1127
1128 GetActiveTarget = staticmethod(GetActiveTarget)
1129 def SetActiveTarget(*args, **kwargs):
1130 """Log.SetActiveTarget(Log pLogger) -> Log"""
1131 return _misc.Log_SetActiveTarget(*args, **kwargs)
1132
1133 SetActiveTarget = staticmethod(SetActiveTarget)
1134 def Suspend(*args, **kwargs):
1135 """Log.Suspend()"""
1136 return _misc.Log_Suspend(*args, **kwargs)
1137
1138 Suspend = staticmethod(Suspend)
1139 def Resume(*args, **kwargs):
1140 """Log.Resume()"""
1141 return _misc.Log_Resume(*args, **kwargs)
1142
1143 Resume = staticmethod(Resume)
1144 def SetVerbose(*args, **kwargs):
1145 """Log.SetVerbose(bool bVerbose=True)"""
1146 return _misc.Log_SetVerbose(*args, **kwargs)
1147
1148 SetVerbose = staticmethod(SetVerbose)
1149 def SetLogLevel(*args, **kwargs):
1150 """Log.SetLogLevel(wxLogLevel logLevel)"""
1151 return _misc.Log_SetLogLevel(*args, **kwargs)
1152
1153 SetLogLevel = staticmethod(SetLogLevel)
1154 def DontCreateOnDemand(*args, **kwargs):
1155 """Log.DontCreateOnDemand()"""
1156 return _misc.Log_DontCreateOnDemand(*args, **kwargs)
1157
1158 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
1159 def SetTraceMask(*args, **kwargs):
1160 """Log.SetTraceMask(wxTraceMask ulMask)"""
1161 return _misc.Log_SetTraceMask(*args, **kwargs)
1162
1163 SetTraceMask = staticmethod(SetTraceMask)
1164 def AddTraceMask(*args, **kwargs):
1165 """Log.AddTraceMask(String str)"""
1166 return _misc.Log_AddTraceMask(*args, **kwargs)
1167
1168 AddTraceMask = staticmethod(AddTraceMask)
1169 def RemoveTraceMask(*args, **kwargs):
1170 """Log.RemoveTraceMask(String str)"""
1171 return _misc.Log_RemoveTraceMask(*args, **kwargs)
1172
1173 RemoveTraceMask = staticmethod(RemoveTraceMask)
1174 def ClearTraceMasks(*args, **kwargs):
1175 """Log.ClearTraceMasks()"""
1176 return _misc.Log_ClearTraceMasks(*args, **kwargs)
1177
1178 ClearTraceMasks = staticmethod(ClearTraceMasks)
1179 def GetTraceMasks(*args, **kwargs):
1180 """Log.GetTraceMasks() -> wxArrayString"""
1181 return _misc.Log_GetTraceMasks(*args, **kwargs)
1182
1183 GetTraceMasks = staticmethod(GetTraceMasks)
1184 def SetTimestamp(*args, **kwargs):
1185 """Log.SetTimestamp(wxChar ts)"""
1186 return _misc.Log_SetTimestamp(*args, **kwargs)
1187
1188 SetTimestamp = staticmethod(SetTimestamp)
1189 def GetVerbose(*args, **kwargs):
1190 """Log.GetVerbose() -> bool"""
1191 return _misc.Log_GetVerbose(*args, **kwargs)
1192
1193 GetVerbose = staticmethod(GetVerbose)
1194 def GetTraceMask(*args, **kwargs):
1195 """Log.GetTraceMask() -> wxTraceMask"""
1196 return _misc.Log_GetTraceMask(*args, **kwargs)
1197
1198 GetTraceMask = staticmethod(GetTraceMask)
1199 def IsAllowedTraceMask(*args, **kwargs):
1200 """Log.IsAllowedTraceMask(wxChar mask) -> bool"""
1201 return _misc.Log_IsAllowedTraceMask(*args, **kwargs)
1202
1203 IsAllowedTraceMask = staticmethod(IsAllowedTraceMask)
1204 def GetLogLevel(*args, **kwargs):
1205 """Log.GetLogLevel() -> wxLogLevel"""
1206 return _misc.Log_GetLogLevel(*args, **kwargs)
1207
1208 GetLogLevel = staticmethod(GetLogLevel)
1209 def GetTimestamp(*args, **kwargs):
1210 """Log.GetTimestamp() -> wxChar"""
1211 return _misc.Log_GetTimestamp(*args, **kwargs)
1212
1213 GetTimestamp = staticmethod(GetTimestamp)
1214 def TimeStamp(*args, **kwargs):
1215 """Log.TimeStamp() -> String"""
1216 return _misc.Log_TimeStamp(*args, **kwargs)
1217
1218 TimeStamp = staticmethod(TimeStamp)
1219 def Destroy(*args, **kwargs):
1220 """Destroy()"""
1221 return _misc.Log_Destroy(*args, **kwargs)
1222
1223
1224 class LogPtr(Log):
1225 def __init__(self, this):
1226 self.this = this
1227 if not hasattr(self,"thisown"): self.thisown = 0
1228 self.__class__ = Log
1229 _misc.Log_swigregister(LogPtr)
1230
1231 def Log_IsEnabled(*args, **kwargs):
1232 """Log_IsEnabled() -> bool"""
1233 return _misc.Log_IsEnabled(*args, **kwargs)
1234
1235 def Log_EnableLogging(*args, **kwargs):
1236 """Log_EnableLogging(bool doIt=True) -> bool"""
1237 return _misc.Log_EnableLogging(*args, **kwargs)
1238
1239 def Log_OnLog(*args, **kwargs):
1240 """Log_OnLog(wxLogLevel level, wxChar szString, time_t t)"""
1241 return _misc.Log_OnLog(*args, **kwargs)
1242
1243 def Log_FlushActive(*args, **kwargs):
1244 """Log_FlushActive()"""
1245 return _misc.Log_FlushActive(*args, **kwargs)
1246
1247 def Log_GetActiveTarget(*args, **kwargs):
1248 """Log_GetActiveTarget() -> Log"""
1249 return _misc.Log_GetActiveTarget(*args, **kwargs)
1250
1251 def Log_SetActiveTarget(*args, **kwargs):
1252 """Log_SetActiveTarget(Log pLogger) -> Log"""
1253 return _misc.Log_SetActiveTarget(*args, **kwargs)
1254
1255 def Log_Suspend(*args, **kwargs):
1256 """Log_Suspend()"""
1257 return _misc.Log_Suspend(*args, **kwargs)
1258
1259 def Log_Resume(*args, **kwargs):
1260 """Log_Resume()"""
1261 return _misc.Log_Resume(*args, **kwargs)
1262
1263 def Log_SetVerbose(*args, **kwargs):
1264 """Log_SetVerbose(bool bVerbose=True)"""
1265 return _misc.Log_SetVerbose(*args, **kwargs)
1266
1267 def Log_SetLogLevel(*args, **kwargs):
1268 """Log_SetLogLevel(wxLogLevel logLevel)"""
1269 return _misc.Log_SetLogLevel(*args, **kwargs)
1270
1271 def Log_DontCreateOnDemand(*args, **kwargs):
1272 """Log_DontCreateOnDemand()"""
1273 return _misc.Log_DontCreateOnDemand(*args, **kwargs)
1274
1275 def Log_SetTraceMask(*args, **kwargs):
1276 """Log_SetTraceMask(wxTraceMask ulMask)"""
1277 return _misc.Log_SetTraceMask(*args, **kwargs)
1278
1279 def Log_AddTraceMask(*args, **kwargs):
1280 """Log_AddTraceMask(String str)"""
1281 return _misc.Log_AddTraceMask(*args, **kwargs)
1282
1283 def Log_RemoveTraceMask(*args, **kwargs):
1284 """Log_RemoveTraceMask(String str)"""
1285 return _misc.Log_RemoveTraceMask(*args, **kwargs)
1286
1287 def Log_ClearTraceMasks(*args, **kwargs):
1288 """Log_ClearTraceMasks()"""
1289 return _misc.Log_ClearTraceMasks(*args, **kwargs)
1290
1291 def Log_GetTraceMasks(*args, **kwargs):
1292 """Log_GetTraceMasks() -> wxArrayString"""
1293 return _misc.Log_GetTraceMasks(*args, **kwargs)
1294
1295 def Log_SetTimestamp(*args, **kwargs):
1296 """Log_SetTimestamp(wxChar ts)"""
1297 return _misc.Log_SetTimestamp(*args, **kwargs)
1298
1299 def Log_GetVerbose(*args, **kwargs):
1300 """Log_GetVerbose() -> bool"""
1301 return _misc.Log_GetVerbose(*args, **kwargs)
1302
1303 def Log_GetTraceMask(*args, **kwargs):
1304 """Log_GetTraceMask() -> wxTraceMask"""
1305 return _misc.Log_GetTraceMask(*args, **kwargs)
1306
1307 def Log_IsAllowedTraceMask(*args, **kwargs):
1308 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1309 return _misc.Log_IsAllowedTraceMask(*args, **kwargs)
1310
1311 def Log_GetLogLevel(*args, **kwargs):
1312 """Log_GetLogLevel() -> wxLogLevel"""
1313 return _misc.Log_GetLogLevel(*args, **kwargs)
1314
1315 def Log_GetTimestamp(*args, **kwargs):
1316 """Log_GetTimestamp() -> wxChar"""
1317 return _misc.Log_GetTimestamp(*args, **kwargs)
1318
1319 def Log_TimeStamp(*args, **kwargs):
1320 """Log_TimeStamp() -> String"""
1321 return _misc.Log_TimeStamp(*args, **kwargs)
1322
1323 class LogStderr(Log):
1324 def __repr__(self):
1325 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1326 def __init__(self, *args, **kwargs):
1327 """__init__() -> LogStderr"""
1328 newobj = _misc.new_LogStderr(*args, **kwargs)
1329 self.this = newobj.this
1330 self.thisown = 1
1331 del newobj.thisown
1332
1333 class LogStderrPtr(LogStderr):
1334 def __init__(self, this):
1335 self.this = this
1336 if not hasattr(self,"thisown"): self.thisown = 0
1337 self.__class__ = LogStderr
1338 _misc.LogStderr_swigregister(LogStderrPtr)
1339
1340 class LogTextCtrl(Log):
1341 def __repr__(self):
1342 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1343 def __init__(self, *args, **kwargs):
1344 """__init__(wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1345 newobj = _misc.new_LogTextCtrl(*args, **kwargs)
1346 self.this = newobj.this
1347 self.thisown = 1
1348 del newobj.thisown
1349
1350 class LogTextCtrlPtr(LogTextCtrl):
1351 def __init__(self, this):
1352 self.this = this
1353 if not hasattr(self,"thisown"): self.thisown = 0
1354 self.__class__ = LogTextCtrl
1355 _misc.LogTextCtrl_swigregister(LogTextCtrlPtr)
1356
1357 class LogGui(Log):
1358 def __repr__(self):
1359 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1360 def __init__(self, *args, **kwargs):
1361 """__init__() -> LogGui"""
1362 newobj = _misc.new_LogGui(*args, **kwargs)
1363 self.this = newobj.this
1364 self.thisown = 1
1365 del newobj.thisown
1366
1367 class LogGuiPtr(LogGui):
1368 def __init__(self, this):
1369 self.this = this
1370 if not hasattr(self,"thisown"): self.thisown = 0
1371 self.__class__ = LogGui
1372 _misc.LogGui_swigregister(LogGuiPtr)
1373
1374 class LogWindow(Log):
1375 def __repr__(self):
1376 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1377 def __init__(self, *args, **kwargs):
1378 """__init__(wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1379 newobj = _misc.new_LogWindow(*args, **kwargs)
1380 self.this = newobj.this
1381 self.thisown = 1
1382 del newobj.thisown
1383 def Show(*args, **kwargs):
1384 """Show(bool bShow=True)"""
1385 return _misc.LogWindow_Show(*args, **kwargs)
1386
1387 def GetFrame(*args, **kwargs):
1388 """GetFrame() -> wxFrame"""
1389 return _misc.LogWindow_GetFrame(*args, **kwargs)
1390
1391 def GetOldLog(*args, **kwargs):
1392 """GetOldLog() -> Log"""
1393 return _misc.LogWindow_GetOldLog(*args, **kwargs)
1394
1395 def IsPassingMessages(*args, **kwargs):
1396 """IsPassingMessages() -> bool"""
1397 return _misc.LogWindow_IsPassingMessages(*args, **kwargs)
1398
1399 def PassMessages(*args, **kwargs):
1400 """PassMessages(bool bDoPass)"""
1401 return _misc.LogWindow_PassMessages(*args, **kwargs)
1402
1403
1404 class LogWindowPtr(LogWindow):
1405 def __init__(self, this):
1406 self.this = this
1407 if not hasattr(self,"thisown"): self.thisown = 0
1408 self.__class__ = LogWindow
1409 _misc.LogWindow_swigregister(LogWindowPtr)
1410
1411 class LogChain(Log):
1412 def __repr__(self):
1413 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1414 def __init__(self, *args, **kwargs):
1415 """__init__(Log logger) -> LogChain"""
1416 newobj = _misc.new_LogChain(*args, **kwargs)
1417 self.this = newobj.this
1418 self.thisown = 1
1419 del newobj.thisown
1420 def SetLog(*args, **kwargs):
1421 """SetLog(Log logger)"""
1422 return _misc.LogChain_SetLog(*args, **kwargs)
1423
1424 def PassMessages(*args, **kwargs):
1425 """PassMessages(bool bDoPass)"""
1426 return _misc.LogChain_PassMessages(*args, **kwargs)
1427
1428 def IsPassingMessages(*args, **kwargs):
1429 """IsPassingMessages() -> bool"""
1430 return _misc.LogChain_IsPassingMessages(*args, **kwargs)
1431
1432 def GetOldLog(*args, **kwargs):
1433 """GetOldLog() -> Log"""
1434 return _misc.LogChain_GetOldLog(*args, **kwargs)
1435
1436
1437 class LogChainPtr(LogChain):
1438 def __init__(self, this):
1439 self.this = this
1440 if not hasattr(self,"thisown"): self.thisown = 0
1441 self.__class__ = LogChain
1442 _misc.LogChain_swigregister(LogChainPtr)
1443
1444
1445 def SysErrorCode(*args, **kwargs):
1446 """SysErrorCode() -> unsigned long"""
1447 return _misc.SysErrorCode(*args, **kwargs)
1448
1449 def SysErrorMsg(*args, **kwargs):
1450 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1451 return _misc.SysErrorMsg(*args, **kwargs)
1452
1453 def LogFatalError(*args, **kwargs):
1454 """LogFatalError(String msg)"""
1455 return _misc.LogFatalError(*args, **kwargs)
1456
1457 def LogError(*args, **kwargs):
1458 """LogError(String msg)"""
1459 return _misc.LogError(*args, **kwargs)
1460
1461 def LogWarning(*args, **kwargs):
1462 """LogWarning(String msg)"""
1463 return _misc.LogWarning(*args, **kwargs)
1464
1465 def LogMessage(*args, **kwargs):
1466 """LogMessage(String msg)"""
1467 return _misc.LogMessage(*args, **kwargs)
1468
1469 def LogInfo(*args, **kwargs):
1470 """LogInfo(String msg)"""
1471 return _misc.LogInfo(*args, **kwargs)
1472
1473 def LogDebug(*args, **kwargs):
1474 """LogDebug(String msg)"""
1475 return _misc.LogDebug(*args, **kwargs)
1476
1477 def LogVerbose(*args, **kwargs):
1478 """LogVerbose(String msg)"""
1479 return _misc.LogVerbose(*args, **kwargs)
1480
1481 def LogStatus(*args, **kwargs):
1482 """LogStatus(String msg)"""
1483 return _misc.LogStatus(*args, **kwargs)
1484
1485 def LogStatusFrame(*args, **kwargs):
1486 """LogStatusFrame(wxFrame pFrame, String msg)"""
1487 return _misc.LogStatusFrame(*args, **kwargs)
1488
1489 def LogSysError(*args, **kwargs):
1490 """LogSysError(String msg)"""
1491 return _misc.LogSysError(*args, **kwargs)
1492
1493 def LogGeneric(*args, **kwargs):
1494 """LogGeneric(unsigned long level, String msg)"""
1495 return _misc.LogGeneric(*args, **kwargs)
1496
1497 def SafeShowMessage(*args, **kwargs):
1498 """SafeShowMessage(String title, String text)"""
1499 return _misc.SafeShowMessage(*args, **kwargs)
1500 class LogNull(object):
1501 def __repr__(self):
1502 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1503 def __init__(self, *args, **kwargs):
1504 """__init__() -> LogNull"""
1505 newobj = _misc.new_LogNull(*args, **kwargs)
1506 self.this = newobj.this
1507 self.thisown = 1
1508 del newobj.thisown
1509 def __del__(self, destroy=_misc.delete_LogNull):
1510 """__del__()"""
1511 try:
1512 if self.thisown: destroy(self)
1513 except: pass
1514
1515
1516 class LogNullPtr(LogNull):
1517 def __init__(self, this):
1518 self.this = this
1519 if not hasattr(self,"thisown"): self.thisown = 0
1520 self.__class__ = LogNull
1521 _misc.LogNull_swigregister(LogNullPtr)
1522
1523 def LogTrace(*args):
1524 """
1525 LogTrace(unsigned long mask, String msg)
1526 LogTrace(String mask, String msg)
1527 """
1528 return _misc.LogTrace(*args)
1529
1530 class PyLog(Log):
1531 def __repr__(self):
1532 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1533 def __init__(self, *args, **kwargs):
1534 """__init__() -> PyLog"""
1535 newobj = _misc.new_PyLog(*args, **kwargs)
1536 self.this = newobj.this
1537 self.thisown = 1
1538 del newobj.thisown
1539 self._setCallbackInfo(self, PyLog)
1540
1541 def _setCallbackInfo(*args, **kwargs):
1542 """_setCallbackInfo(PyObject self, PyObject _class)"""
1543 return _misc.PyLog__setCallbackInfo(*args, **kwargs)
1544
1545
1546 class PyLogPtr(PyLog):
1547 def __init__(self, this):
1548 self.this = this
1549 if not hasattr(self,"thisown"): self.thisown = 0
1550 self.__class__ = PyLog
1551 _misc.PyLog_swigregister(PyLogPtr)
1552
1553 #---------------------------------------------------------------------------
1554
1555 PROCESS_DEFAULT = _misc.PROCESS_DEFAULT
1556 PROCESS_REDIRECT = _misc.PROCESS_REDIRECT
1557 KILL_OK = _misc.KILL_OK
1558 KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL
1559 KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED
1560 KILL_NO_PROCESS = _misc.KILL_NO_PROCESS
1561 KILL_ERROR = _misc.KILL_ERROR
1562 SIGNONE = _misc.SIGNONE
1563 SIGHUP = _misc.SIGHUP
1564 SIGINT = _misc.SIGINT
1565 SIGQUIT = _misc.SIGQUIT
1566 SIGILL = _misc.SIGILL
1567 SIGTRAP = _misc.SIGTRAP
1568 SIGABRT = _misc.SIGABRT
1569 SIGIOT = _misc.SIGIOT
1570 SIGEMT = _misc.SIGEMT
1571 SIGFPE = _misc.SIGFPE
1572 SIGKILL = _misc.SIGKILL
1573 SIGBUS = _misc.SIGBUS
1574 SIGSEGV = _misc.SIGSEGV
1575 SIGSYS = _misc.SIGSYS
1576 SIGPIPE = _misc.SIGPIPE
1577 SIGALRM = _misc.SIGALRM
1578 SIGTERM = _misc.SIGTERM
1579 class Process(core.EvtHandler):
1580 def __repr__(self):
1581 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1582 def Kill(*args, **kwargs):
1583 """Process.Kill(int pid, int sig=SIGTERM) -> int"""
1584 return _misc.Process_Kill(*args, **kwargs)
1585
1586 Kill = staticmethod(Kill)
1587 def Exists(*args, **kwargs):
1588 """Process.Exists(int pid) -> bool"""
1589 return _misc.Process_Exists(*args, **kwargs)
1590
1591 Exists = staticmethod(Exists)
1592 def Open(*args, **kwargs):
1593 """Process.Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1594 return _misc.Process_Open(*args, **kwargs)
1595
1596 Open = staticmethod(Open)
1597 def __init__(self, *args, **kwargs):
1598 """__init__(EvtHandler parent=None, int id=-1) -> Process"""
1599 newobj = _misc.new_Process(*args, **kwargs)
1600 self.this = newobj.this
1601 self.thisown = 1
1602 del newobj.thisown
1603 self._setCallbackInfo(self, Process)
1604
1605 def _setCallbackInfo(*args, **kwargs):
1606 """_setCallbackInfo(PyObject self, PyObject _class)"""
1607 return _misc.Process__setCallbackInfo(*args, **kwargs)
1608
1609 def base_OnTerminate(*args, **kwargs):
1610 """base_OnTerminate(int pid, int status)"""
1611 return _misc.Process_base_OnTerminate(*args, **kwargs)
1612
1613 def Redirect(*args, **kwargs):
1614 """Redirect()"""
1615 return _misc.Process_Redirect(*args, **kwargs)
1616
1617 def IsRedirected(*args, **kwargs):
1618 """IsRedirected() -> bool"""
1619 return _misc.Process_IsRedirected(*args, **kwargs)
1620
1621 def Detach(*args, **kwargs):
1622 """Detach()"""
1623 return _misc.Process_Detach(*args, **kwargs)
1624
1625 def GetInputStream(*args, **kwargs):
1626 """GetInputStream() -> InputStream"""
1627 return _misc.Process_GetInputStream(*args, **kwargs)
1628
1629 def GetErrorStream(*args, **kwargs):
1630 """GetErrorStream() -> InputStream"""
1631 return _misc.Process_GetErrorStream(*args, **kwargs)
1632
1633 def GetOutputStream(*args, **kwargs):
1634 """GetOutputStream() -> OutputStream"""
1635 return _misc.Process_GetOutputStream(*args, **kwargs)
1636
1637 def CloseOutput(*args, **kwargs):
1638 """CloseOutput()"""
1639 return _misc.Process_CloseOutput(*args, **kwargs)
1640
1641 def IsInputOpened(*args, **kwargs):
1642 """IsInputOpened() -> bool"""
1643 return _misc.Process_IsInputOpened(*args, **kwargs)
1644
1645 def IsInputAvailable(*args, **kwargs):
1646 """IsInputAvailable() -> bool"""
1647 return _misc.Process_IsInputAvailable(*args, **kwargs)
1648
1649 def IsErrorAvailable(*args, **kwargs):
1650 """IsErrorAvailable() -> bool"""
1651 return _misc.Process_IsErrorAvailable(*args, **kwargs)
1652
1653
1654 class ProcessPtr(Process):
1655 def __init__(self, this):
1656 self.this = this
1657 if not hasattr(self,"thisown"): self.thisown = 0
1658 self.__class__ = Process
1659 _misc.Process_swigregister(ProcessPtr)
1660
1661 def Process_Kill(*args, **kwargs):
1662 """Process_Kill(int pid, int sig=SIGTERM) -> int"""
1663 return _misc.Process_Kill(*args, **kwargs)
1664
1665 def Process_Exists(*args, **kwargs):
1666 """Process_Exists(int pid) -> bool"""
1667 return _misc.Process_Exists(*args, **kwargs)
1668
1669 def Process_Open(*args, **kwargs):
1670 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1671 return _misc.Process_Open(*args, **kwargs)
1672
1673 class ProcessEvent(core.Event):
1674 def __repr__(self):
1675 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1676 def __init__(self, *args, **kwargs):
1677 """__init__(int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1678 newobj = _misc.new_ProcessEvent(*args, **kwargs)
1679 self.this = newobj.this
1680 self.thisown = 1
1681 del newobj.thisown
1682 def GetPid(*args, **kwargs):
1683 """GetPid() -> int"""
1684 return _misc.ProcessEvent_GetPid(*args, **kwargs)
1685
1686 def GetExitCode(*args, **kwargs):
1687 """GetExitCode() -> int"""
1688 return _misc.ProcessEvent_GetExitCode(*args, **kwargs)
1689
1690 m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set)
1691 m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set)
1692
1693 class ProcessEventPtr(ProcessEvent):
1694 def __init__(self, this):
1695 self.this = this
1696 if not hasattr(self,"thisown"): self.thisown = 0
1697 self.__class__ = ProcessEvent
1698 _misc.ProcessEvent_swigregister(ProcessEventPtr)
1699
1700 wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS
1701 EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 )
1702
1703 EXEC_ASYNC = _misc.EXEC_ASYNC
1704 EXEC_SYNC = _misc.EXEC_SYNC
1705 EXEC_NOHIDE = _misc.EXEC_NOHIDE
1706 EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER
1707
1708 def Execute(*args, **kwargs):
1709 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1710 return _misc.Execute(*args, **kwargs)
1711 #---------------------------------------------------------------------------
1712
1713 JOYSTICK1 = _misc.JOYSTICK1
1714 JOYSTICK2 = _misc.JOYSTICK2
1715 JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY
1716 JOY_BUTTON1 = _misc.JOY_BUTTON1
1717 JOY_BUTTON2 = _misc.JOY_BUTTON2
1718 JOY_BUTTON3 = _misc.JOY_BUTTON3
1719 JOY_BUTTON4 = _misc.JOY_BUTTON4
1720 class Joystick(object):
1721 def __repr__(self):
1722 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1723 def __init__(self, *args, **kwargs):
1724 """__init__(int joystick=JOYSTICK1) -> Joystick"""
1725 newobj = _misc.new_Joystick(*args, **kwargs)
1726 self.this = newobj.this
1727 self.thisown = 1
1728 del newobj.thisown
1729 def __del__(self, destroy=_misc.delete_Joystick):
1730 """__del__()"""
1731 try:
1732 if self.thisown: destroy(self)
1733 except: pass
1734
1735 def GetPosition(*args, **kwargs):
1736 """GetPosition() -> Point"""
1737 return _misc.Joystick_GetPosition(*args, **kwargs)
1738
1739 def GetZPosition(*args, **kwargs):
1740 """GetZPosition() -> int"""
1741 return _misc.Joystick_GetZPosition(*args, **kwargs)
1742
1743 def GetButtonState(*args, **kwargs):
1744 """GetButtonState() -> int"""
1745 return _misc.Joystick_GetButtonState(*args, **kwargs)
1746
1747 def GetPOVPosition(*args, **kwargs):
1748 """GetPOVPosition() -> int"""
1749 return _misc.Joystick_GetPOVPosition(*args, **kwargs)
1750
1751 def GetPOVCTSPosition(*args, **kwargs):
1752 """GetPOVCTSPosition() -> int"""
1753 return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs)
1754
1755 def GetRudderPosition(*args, **kwargs):
1756 """GetRudderPosition() -> int"""
1757 return _misc.Joystick_GetRudderPosition(*args, **kwargs)
1758
1759 def GetUPosition(*args, **kwargs):
1760 """GetUPosition() -> int"""
1761 return _misc.Joystick_GetUPosition(*args, **kwargs)
1762
1763 def GetVPosition(*args, **kwargs):
1764 """GetVPosition() -> int"""
1765 return _misc.Joystick_GetVPosition(*args, **kwargs)
1766
1767 def GetMovementThreshold(*args, **kwargs):
1768 """GetMovementThreshold() -> int"""
1769 return _misc.Joystick_GetMovementThreshold(*args, **kwargs)
1770
1771 def SetMovementThreshold(*args, **kwargs):
1772 """SetMovementThreshold(int threshold)"""
1773 return _misc.Joystick_SetMovementThreshold(*args, **kwargs)
1774
1775 def IsOk(*args, **kwargs):
1776 """IsOk() -> bool"""
1777 return _misc.Joystick_IsOk(*args, **kwargs)
1778
1779 def GetNumberJoysticks(*args, **kwargs):
1780 """GetNumberJoysticks() -> int"""
1781 return _misc.Joystick_GetNumberJoysticks(*args, **kwargs)
1782
1783 def GetManufacturerId(*args, **kwargs):
1784 """GetManufacturerId() -> int"""
1785 return _misc.Joystick_GetManufacturerId(*args, **kwargs)
1786
1787 def GetProductId(*args, **kwargs):
1788 """GetProductId() -> int"""
1789 return _misc.Joystick_GetProductId(*args, **kwargs)
1790
1791 def GetProductName(*args, **kwargs):
1792 """GetProductName() -> String"""
1793 return _misc.Joystick_GetProductName(*args, **kwargs)
1794
1795 def GetXMin(*args, **kwargs):
1796 """GetXMin() -> int"""
1797 return _misc.Joystick_GetXMin(*args, **kwargs)
1798
1799 def GetYMin(*args, **kwargs):
1800 """GetYMin() -> int"""
1801 return _misc.Joystick_GetYMin(*args, **kwargs)
1802
1803 def GetZMin(*args, **kwargs):
1804 """GetZMin() -> int"""
1805 return _misc.Joystick_GetZMin(*args, **kwargs)
1806
1807 def GetXMax(*args, **kwargs):
1808 """GetXMax() -> int"""
1809 return _misc.Joystick_GetXMax(*args, **kwargs)
1810
1811 def GetYMax(*args, **kwargs):
1812 """GetYMax() -> int"""
1813 return _misc.Joystick_GetYMax(*args, **kwargs)
1814
1815 def GetZMax(*args, **kwargs):
1816 """GetZMax() -> int"""
1817 return _misc.Joystick_GetZMax(*args, **kwargs)
1818
1819 def GetNumberButtons(*args, **kwargs):
1820 """GetNumberButtons() -> int"""
1821 return _misc.Joystick_GetNumberButtons(*args, **kwargs)
1822
1823 def GetNumberAxes(*args, **kwargs):
1824 """GetNumberAxes() -> int"""
1825 return _misc.Joystick_GetNumberAxes(*args, **kwargs)
1826
1827 def GetMaxButtons(*args, **kwargs):
1828 """GetMaxButtons() -> int"""
1829 return _misc.Joystick_GetMaxButtons(*args, **kwargs)
1830
1831 def GetMaxAxes(*args, **kwargs):
1832 """GetMaxAxes() -> int"""
1833 return _misc.Joystick_GetMaxAxes(*args, **kwargs)
1834
1835 def GetPollingMin(*args, **kwargs):
1836 """GetPollingMin() -> int"""
1837 return _misc.Joystick_GetPollingMin(*args, **kwargs)
1838
1839 def GetPollingMax(*args, **kwargs):
1840 """GetPollingMax() -> int"""
1841 return _misc.Joystick_GetPollingMax(*args, **kwargs)
1842
1843 def GetRudderMin(*args, **kwargs):
1844 """GetRudderMin() -> int"""
1845 return _misc.Joystick_GetRudderMin(*args, **kwargs)
1846
1847 def GetRudderMax(*args, **kwargs):
1848 """GetRudderMax() -> int"""
1849 return _misc.Joystick_GetRudderMax(*args, **kwargs)
1850
1851 def GetUMin(*args, **kwargs):
1852 """GetUMin() -> int"""
1853 return _misc.Joystick_GetUMin(*args, **kwargs)
1854
1855 def GetUMax(*args, **kwargs):
1856 """GetUMax() -> int"""
1857 return _misc.Joystick_GetUMax(*args, **kwargs)
1858
1859 def GetVMin(*args, **kwargs):
1860 """GetVMin() -> int"""
1861 return _misc.Joystick_GetVMin(*args, **kwargs)
1862
1863 def GetVMax(*args, **kwargs):
1864 """GetVMax() -> int"""
1865 return _misc.Joystick_GetVMax(*args, **kwargs)
1866
1867 def HasRudder(*args, **kwargs):
1868 """HasRudder() -> bool"""
1869 return _misc.Joystick_HasRudder(*args, **kwargs)
1870
1871 def HasZ(*args, **kwargs):
1872 """HasZ() -> bool"""
1873 return _misc.Joystick_HasZ(*args, **kwargs)
1874
1875 def HasU(*args, **kwargs):
1876 """HasU() -> bool"""
1877 return _misc.Joystick_HasU(*args, **kwargs)
1878
1879 def HasV(*args, **kwargs):
1880 """HasV() -> bool"""
1881 return _misc.Joystick_HasV(*args, **kwargs)
1882
1883 def HasPOV(*args, **kwargs):
1884 """HasPOV() -> bool"""
1885 return _misc.Joystick_HasPOV(*args, **kwargs)
1886
1887 def HasPOV4Dir(*args, **kwargs):
1888 """HasPOV4Dir() -> bool"""
1889 return _misc.Joystick_HasPOV4Dir(*args, **kwargs)
1890
1891 def HasPOVCTS(*args, **kwargs):
1892 """HasPOVCTS() -> bool"""
1893 return _misc.Joystick_HasPOVCTS(*args, **kwargs)
1894
1895 def SetCapture(*args, **kwargs):
1896 """SetCapture(Window win, int pollingFreq=0) -> bool"""
1897 return _misc.Joystick_SetCapture(*args, **kwargs)
1898
1899 def ReleaseCapture(*args, **kwargs):
1900 """ReleaseCapture() -> bool"""
1901 return _misc.Joystick_ReleaseCapture(*args, **kwargs)
1902
1903 def __nonzero__(self): return self.IsOk()
1904
1905 class JoystickPtr(Joystick):
1906 def __init__(self, this):
1907 self.this = this
1908 if not hasattr(self,"thisown"): self.thisown = 0
1909 self.__class__ = Joystick
1910 _misc.Joystick_swigregister(JoystickPtr)
1911
1912 wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN
1913 wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP
1914 wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE
1915 wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE
1916 class JoystickEvent(core.Event):
1917 def __repr__(self):
1918 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1919 m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set)
1920 m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set)
1921 m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set)
1922 m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set)
1923 m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set)
1924 def __init__(self, *args, **kwargs):
1925 """
1926 __init__(wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
1927 int change=0) -> JoystickEvent
1928 """
1929 newobj = _misc.new_JoystickEvent(*args, **kwargs)
1930 self.this = newobj.this
1931 self.thisown = 1
1932 del newobj.thisown
1933 def GetPosition(*args, **kwargs):
1934 """GetPosition() -> Point"""
1935 return _misc.JoystickEvent_GetPosition(*args, **kwargs)
1936
1937 def GetZPosition(*args, **kwargs):
1938 """GetZPosition() -> int"""
1939 return _misc.JoystickEvent_GetZPosition(*args, **kwargs)
1940
1941 def GetButtonState(*args, **kwargs):
1942 """GetButtonState() -> int"""
1943 return _misc.JoystickEvent_GetButtonState(*args, **kwargs)
1944
1945 def GetButtonChange(*args, **kwargs):
1946 """GetButtonChange() -> int"""
1947 return _misc.JoystickEvent_GetButtonChange(*args, **kwargs)
1948
1949 def GetJoystick(*args, **kwargs):
1950 """GetJoystick() -> int"""
1951 return _misc.JoystickEvent_GetJoystick(*args, **kwargs)
1952
1953 def SetJoystick(*args, **kwargs):
1954 """SetJoystick(int stick)"""
1955 return _misc.JoystickEvent_SetJoystick(*args, **kwargs)
1956
1957 def SetButtonState(*args, **kwargs):
1958 """SetButtonState(int state)"""
1959 return _misc.JoystickEvent_SetButtonState(*args, **kwargs)
1960
1961 def SetButtonChange(*args, **kwargs):
1962 """SetButtonChange(int change)"""
1963 return _misc.JoystickEvent_SetButtonChange(*args, **kwargs)
1964
1965 def SetPosition(*args, **kwargs):
1966 """SetPosition(Point pos)"""
1967 return _misc.JoystickEvent_SetPosition(*args, **kwargs)
1968
1969 def SetZPosition(*args, **kwargs):
1970 """SetZPosition(int zPos)"""
1971 return _misc.JoystickEvent_SetZPosition(*args, **kwargs)
1972
1973 def IsButton(*args, **kwargs):
1974 """IsButton() -> bool"""
1975 return _misc.JoystickEvent_IsButton(*args, **kwargs)
1976
1977 def IsMove(*args, **kwargs):
1978 """IsMove() -> bool"""
1979 return _misc.JoystickEvent_IsMove(*args, **kwargs)
1980
1981 def IsZMove(*args, **kwargs):
1982 """IsZMove() -> bool"""
1983 return _misc.JoystickEvent_IsZMove(*args, **kwargs)
1984
1985 def ButtonDown(*args, **kwargs):
1986 """ButtonDown(int but=JOY_BUTTON_ANY) -> bool"""
1987 return _misc.JoystickEvent_ButtonDown(*args, **kwargs)
1988
1989 def ButtonUp(*args, **kwargs):
1990 """ButtonUp(int but=JOY_BUTTON_ANY) -> bool"""
1991 return _misc.JoystickEvent_ButtonUp(*args, **kwargs)
1992
1993 def ButtonIsDown(*args, **kwargs):
1994 """ButtonIsDown(int but=JOY_BUTTON_ANY) -> bool"""
1995 return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs)
1996
1997
1998 class JoystickEventPtr(JoystickEvent):
1999 def __init__(self, this):
2000 self.this = this
2001 if not hasattr(self,"thisown"): self.thisown = 0
2002 self.__class__ = JoystickEvent
2003 _misc.JoystickEvent_swigregister(JoystickEventPtr)
2004
2005 EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN )
2006 EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP )
2007 EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE )
2008 EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE )
2009
2010 EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN,
2011 wxEVT_JOY_BUTTON_UP,
2012 wxEVT_JOY_MOVE,
2013 wxEVT_JOY_ZMOVE,
2014 ])
2015
2016
2017 #---------------------------------------------------------------------------
2018
2019 class Wave(object):
2020 def __repr__(self):
2021 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2022 def __init__(self, *args, **kwargs):
2023 """__init__(String fileName, bool isResource=False) -> Wave"""
2024 newobj = _misc.new_Wave(*args, **kwargs)
2025 self.this = newobj.this
2026 self.thisown = 1
2027 del newobj.thisown
2028 def __del__(self, destroy=_misc.delete_Wave):
2029 """__del__()"""
2030 try:
2031 if self.thisown: destroy(self)
2032 except: pass
2033
2034 def IsOk(*args, **kwargs):
2035 """IsOk() -> bool"""
2036 return _misc.Wave_IsOk(*args, **kwargs)
2037
2038 def Play(*args, **kwargs):
2039 """Play(bool async=True, bool looped=False) -> bool"""
2040 return _misc.Wave_Play(*args, **kwargs)
2041
2042 def __nonzero__(self): return self.IsOk()
2043
2044 class WavePtr(Wave):
2045 def __init__(self, this):
2046 self.this = this
2047 if not hasattr(self,"thisown"): self.thisown = 0
2048 self.__class__ = Wave
2049 _misc.Wave_swigregister(WavePtr)
2050
2051 def WaveData(*args, **kwargs):
2052 """WaveData(String data) -> Wave"""
2053 val = _misc.new_WaveData(*args, **kwargs)
2054 val.thisown = 1
2055 return val
2056
2057 #---------------------------------------------------------------------------
2058
2059 MAILCAP_STANDARD = _misc.MAILCAP_STANDARD
2060 MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE
2061 MAILCAP_KDE = _misc.MAILCAP_KDE
2062 MAILCAP_GNOME = _misc.MAILCAP_GNOME
2063 MAILCAP_ALL = _misc.MAILCAP_ALL
2064 class FileTypeInfo(object):
2065 def __repr__(self):
2066 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2067 def __init__(self, *args, **kwargs):
2068 """__init__(String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
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(String iconFile, int iconIndex=0)"""
2079 return _misc.FileTypeInfo_SetIcon(*args, **kwargs)
2080
2081 def SetShortDesc(*args, **kwargs):
2082 """SetShortDesc(String shortDesc)"""
2083 return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs)
2084
2085 def GetMimeType(*args, **kwargs):
2086 """GetMimeType() -> String"""
2087 return _misc.FileTypeInfo_GetMimeType(*args, **kwargs)
2088
2089 def GetOpenCommand(*args, **kwargs):
2090 """GetOpenCommand() -> String"""
2091 return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs)
2092
2093 def GetPrintCommand(*args, **kwargs):
2094 """GetPrintCommand() -> String"""
2095 return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs)
2096
2097 def GetShortDesc(*args, **kwargs):
2098 """GetShortDesc() -> String"""
2099 return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs)
2100
2101 def GetDescription(*args, **kwargs):
2102 """GetDescription() -> String"""
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() -> String"""
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() -> Icon"""
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(String filename, String mimetype=EmptyString) -> PyObject"""
2182 return _misc.FileType_GetOpenCommand(*args, **kwargs)
2183
2184 def GetPrintCommand(*args, **kwargs):
2185 """GetPrintCommand(String filename, String mimetype=EmptyString) -> PyObject"""
2186 return _misc.FileType_GetPrintCommand(*args, **kwargs)
2187
2188 def GetAllCommands(*args, **kwargs):
2189 """GetAllCommands(String filename, String mimetype=EmptyString) -> PyObject"""
2190 return _misc.FileType_GetAllCommands(*args, **kwargs)
2191
2192 def SetCommand(*args, **kwargs):
2193 """SetCommand(String cmd, String verb, bool overwriteprompt=True) -> bool"""
2194 return _misc.FileType_SetCommand(*args, **kwargs)
2195
2196 def SetDefaultIcon(*args, **kwargs):
2197 """SetDefaultIcon(String cmd=EmptyString, 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(String command, String filename, String mimetype=EmptyString) -> String"""
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(String command, String filename, String mimetype=EmptyString) -> String"""
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(String mimeType, String 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, String extraDir=EmptyString)"""
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(String ext) -> FileType"""
2245 return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs)
2246
2247 def GetFileTypeFromMimeType(*args, **kwargs):
2248 """GetFileTypeFromMimeType(String mimeType) -> FileType"""
2249 return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs)
2250
2251 def ReadMailcap(*args, **kwargs):
2252 """ReadMailcap(String filename, bool fallback=False) -> bool"""
2253 return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs)
2254
2255 def ReadMimeTypes(*args, **kwargs):
2256 """ReadMimeTypes(String 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 TheMimeTypesManager = cvar.TheMimeTypesManager
2289
2290 def MimeTypesManager_IsOfType(*args, **kwargs):
2291 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2292 return _misc.MimeTypesManager_IsOfType(*args, **kwargs)
2293
2294 #---------------------------------------------------------------------------
2295
2296 class ArtProvider(object):
2297 def __repr__(self):
2298 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2299 def __init__(self, *args, **kwargs):
2300 """__init__() -> ArtProvider"""
2301 newobj = _misc.new_ArtProvider(*args, **kwargs)
2302 self.this = newobj.this
2303 self.thisown = 1
2304 del newobj.thisown
2305 self._setCallbackInfo(self, ArtProvider)
2306
2307 def _setCallbackInfo(*args, **kwargs):
2308 """_setCallbackInfo(PyObject self, PyObject _class)"""
2309 return _misc.ArtProvider__setCallbackInfo(*args, **kwargs)
2310
2311 def PushProvider(*args, **kwargs):
2312 """
2313 ArtProvider.PushProvider(ArtProvider provider)
2314
2315 Add new provider to the top of providers stack.
2316 """
2317 return _misc.ArtProvider_PushProvider(*args, **kwargs)
2318
2319 PushProvider = staticmethod(PushProvider)
2320 def PopProvider(*args, **kwargs):
2321 """
2322 ArtProvider.PopProvider() -> bool
2323
2324 Remove latest added provider and delete it.
2325 """
2326 return _misc.ArtProvider_PopProvider(*args, **kwargs)
2327
2328 PopProvider = staticmethod(PopProvider)
2329 def RemoveProvider(*args, **kwargs):
2330 """
2331 ArtProvider.RemoveProvider(ArtProvider provider) -> bool
2332
2333 Remove provider. The provider must have been added previously!
2334 The provider is _not_ deleted.
2335 """
2336 return _misc.ArtProvider_RemoveProvider(*args, **kwargs)
2337
2338 RemoveProvider = staticmethod(RemoveProvider)
2339 def GetBitmap(*args, **kwargs):
2340 """
2341 ArtProvider.GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2342
2343 Query the providers for bitmap with given ID and return it. Return
2344 wx.NullBitmap if no provider provides it.
2345 """
2346 return _misc.ArtProvider_GetBitmap(*args, **kwargs)
2347
2348 GetBitmap = staticmethod(GetBitmap)
2349 def GetIcon(*args, **kwargs):
2350 """
2351 ArtProvider.GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2352
2353 Query the providers for icon with given ID and return it. Return
2354 wx.NullIcon if no provider provides it.
2355 """
2356 return _misc.ArtProvider_GetIcon(*args, **kwargs)
2357
2358 GetIcon = staticmethod(GetIcon)
2359 def Destroy(*args, **kwargs):
2360 """Destroy()"""
2361 return _misc.ArtProvider_Destroy(*args, **kwargs)
2362
2363
2364 class ArtProviderPtr(ArtProvider):
2365 def __init__(self, this):
2366 self.this = this
2367 if not hasattr(self,"thisown"): self.thisown = 0
2368 self.__class__ = ArtProvider
2369 _misc.ArtProvider_swigregister(ArtProviderPtr)
2370 ART_TOOLBAR = cvar.ART_TOOLBAR
2371 ART_MENU = cvar.ART_MENU
2372 ART_FRAME_ICON = cvar.ART_FRAME_ICON
2373 ART_CMN_DIALOG = cvar.ART_CMN_DIALOG
2374 ART_HELP_BROWSER = cvar.ART_HELP_BROWSER
2375 ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX
2376 ART_OTHER = cvar.ART_OTHER
2377 ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK
2378 ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK
2379 ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL
2380 ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS
2381 ART_HELP_BOOK = cvar.ART_HELP_BOOK
2382 ART_HELP_FOLDER = cvar.ART_HELP_FOLDER
2383 ART_HELP_PAGE = cvar.ART_HELP_PAGE
2384 ART_GO_BACK = cvar.ART_GO_BACK
2385 ART_GO_FORWARD = cvar.ART_GO_FORWARD
2386 ART_GO_UP = cvar.ART_GO_UP
2387 ART_GO_DOWN = cvar.ART_GO_DOWN
2388 ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT
2389 ART_GO_HOME = cvar.ART_GO_HOME
2390 ART_FILE_OPEN = cvar.ART_FILE_OPEN
2391 ART_PRINT = cvar.ART_PRINT
2392 ART_HELP = cvar.ART_HELP
2393 ART_TIP = cvar.ART_TIP
2394 ART_REPORT_VIEW = cvar.ART_REPORT_VIEW
2395 ART_LIST_VIEW = cvar.ART_LIST_VIEW
2396 ART_NEW_DIR = cvar.ART_NEW_DIR
2397 ART_FOLDER = cvar.ART_FOLDER
2398 ART_GO_DIR_UP = cvar.ART_GO_DIR_UP
2399 ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE
2400 ART_NORMAL_FILE = cvar.ART_NORMAL_FILE
2401 ART_TICK_MARK = cvar.ART_TICK_MARK
2402 ART_CROSS_MARK = cvar.ART_CROSS_MARK
2403 ART_ERROR = cvar.ART_ERROR
2404 ART_QUESTION = cvar.ART_QUESTION
2405 ART_WARNING = cvar.ART_WARNING
2406 ART_INFORMATION = cvar.ART_INFORMATION
2407 ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE
2408
2409 def ArtProvider_PushProvider(*args, **kwargs):
2410 """
2411 ArtProvider_PushProvider(ArtProvider provider)
2412
2413 Add new provider to the top of providers stack.
2414 """
2415 return _misc.ArtProvider_PushProvider(*args, **kwargs)
2416
2417 def ArtProvider_PopProvider(*args, **kwargs):
2418 """
2419 ArtProvider_PopProvider() -> bool
2420
2421 Remove latest added provider and delete it.
2422 """
2423 return _misc.ArtProvider_PopProvider(*args, **kwargs)
2424
2425 def ArtProvider_RemoveProvider(*args, **kwargs):
2426 """
2427 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2428
2429 Remove provider. The provider must have been added previously!
2430 The provider is _not_ deleted.
2431 """
2432 return _misc.ArtProvider_RemoveProvider(*args, **kwargs)
2433
2434 def ArtProvider_GetBitmap(*args, **kwargs):
2435 """
2436 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2437
2438 Query the providers for bitmap with given ID and return it. Return
2439 wx.NullBitmap if no provider provides it.
2440 """
2441 return _misc.ArtProvider_GetBitmap(*args, **kwargs)
2442
2443 def ArtProvider_GetIcon(*args, **kwargs):
2444 """
2445 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2446
2447 Query the providers for icon with given ID and return it. Return
2448 wx.NullIcon if no provider provides it.
2449 """
2450 return _misc.ArtProvider_GetIcon(*args, **kwargs)
2451
2452 #---------------------------------------------------------------------------
2453
2454 CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE
2455 CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE
2456 CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH
2457 CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS
2458 class ConfigBase(object):
2459 def __init__(self): raise RuntimeError, "No constructor defined"
2460 def __repr__(self):
2461 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2462 def __del__(self, destroy=_misc.delete_ConfigBase):
2463 """__del__()"""
2464 try:
2465 if self.thisown: destroy(self)
2466 except: pass
2467
2468 Type_Unknown = _misc.ConfigBase_Type_Unknown
2469 Type_String = _misc.ConfigBase_Type_String
2470 Type_Boolean = _misc.ConfigBase_Type_Boolean
2471 Type_Integer = _misc.ConfigBase_Type_Integer
2472 Type_Float = _misc.ConfigBase_Type_Float
2473 def Set(*args, **kwargs):
2474 """ConfigBase.Set(ConfigBase pConfig) -> ConfigBase"""
2475 return _misc.ConfigBase_Set(*args, **kwargs)
2476
2477 Set = staticmethod(Set)
2478 def Get(*args, **kwargs):
2479 """ConfigBase.Get(bool createOnDemand=True) -> ConfigBase"""
2480 return _misc.ConfigBase_Get(*args, **kwargs)
2481
2482 Get = staticmethod(Get)
2483 def Create(*args, **kwargs):
2484 """ConfigBase.Create() -> ConfigBase"""
2485 return _misc.ConfigBase_Create(*args, **kwargs)
2486
2487 Create = staticmethod(Create)
2488 def DontCreateOnDemand(*args, **kwargs):
2489 """ConfigBase.DontCreateOnDemand()"""
2490 return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs)
2491
2492 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
2493 def SetPath(*args, **kwargs):
2494 """SetPath(String strPath)"""
2495 return _misc.ConfigBase_SetPath(*args, **kwargs)
2496
2497 def GetPath(*args, **kwargs):
2498 """GetPath() -> String"""
2499 return _misc.ConfigBase_GetPath(*args, **kwargs)
2500
2501 def GetFirstGroup(*args, **kwargs):
2502 """GetFirstGroup() -> PyObject"""
2503 return _misc.ConfigBase_GetFirstGroup(*args, **kwargs)
2504
2505 def GetNextGroup(*args, **kwargs):
2506 """GetNextGroup(long index) -> PyObject"""
2507 return _misc.ConfigBase_GetNextGroup(*args, **kwargs)
2508
2509 def GetFirstEntry(*args, **kwargs):
2510 """GetFirstEntry() -> PyObject"""
2511 return _misc.ConfigBase_GetFirstEntry(*args, **kwargs)
2512
2513 def GetNextEntry(*args, **kwargs):
2514 """GetNextEntry(long index) -> PyObject"""
2515 return _misc.ConfigBase_GetNextEntry(*args, **kwargs)
2516
2517 def GetNumberOfEntries(*args, **kwargs):
2518 """GetNumberOfEntries(bool bRecursive=False) -> size_t"""
2519 return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs)
2520
2521 def GetNumberOfGroups(*args, **kwargs):
2522 """GetNumberOfGroups(bool bRecursive=False) -> size_t"""
2523 return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs)
2524
2525 def HasGroup(*args, **kwargs):
2526 """HasGroup(String strName) -> bool"""
2527 return _misc.ConfigBase_HasGroup(*args, **kwargs)
2528
2529 def HasEntry(*args, **kwargs):
2530 """HasEntry(String strName) -> bool"""
2531 return _misc.ConfigBase_HasEntry(*args, **kwargs)
2532
2533 def Exists(*args, **kwargs):
2534 """Exists(String strName) -> bool"""
2535 return _misc.ConfigBase_Exists(*args, **kwargs)
2536
2537 def GetEntryType(*args, **kwargs):
2538 """GetEntryType(String name) -> int"""
2539 return _misc.ConfigBase_GetEntryType(*args, **kwargs)
2540
2541 def Read(*args, **kwargs):
2542 """Read(String key, String defaultVal=EmptyString) -> String"""
2543 return _misc.ConfigBase_Read(*args, **kwargs)
2544
2545 def ReadInt(*args, **kwargs):
2546 """ReadInt(String key, long defaultVal=0) -> long"""
2547 return _misc.ConfigBase_ReadInt(*args, **kwargs)
2548
2549 def ReadFloat(*args, **kwargs):
2550 """ReadFloat(String key, double defaultVal=0.0) -> double"""
2551 return _misc.ConfigBase_ReadFloat(*args, **kwargs)
2552
2553 def ReadBool(*args, **kwargs):
2554 """ReadBool(String key, bool defaultVal=False) -> bool"""
2555 return _misc.ConfigBase_ReadBool(*args, **kwargs)
2556
2557 def Write(*args, **kwargs):
2558 """Write(String key, String value) -> bool"""
2559 return _misc.ConfigBase_Write(*args, **kwargs)
2560
2561 def WriteInt(*args, **kwargs):
2562 """WriteInt(String key, long value) -> bool"""
2563 return _misc.ConfigBase_WriteInt(*args, **kwargs)
2564
2565 def WriteFloat(*args, **kwargs):
2566 """WriteFloat(String key, double value) -> bool"""
2567 return _misc.ConfigBase_WriteFloat(*args, **kwargs)
2568
2569 def WriteBool(*args, **kwargs):
2570 """WriteBool(String key, bool value) -> bool"""
2571 return _misc.ConfigBase_WriteBool(*args, **kwargs)
2572
2573 def Flush(*args, **kwargs):
2574 """Flush(bool bCurrentOnly=False) -> bool"""
2575 return _misc.ConfigBase_Flush(*args, **kwargs)
2576
2577 def RenameEntry(*args, **kwargs):
2578 """RenameEntry(String oldName, String newName) -> bool"""
2579 return _misc.ConfigBase_RenameEntry(*args, **kwargs)
2580
2581 def RenameGroup(*args, **kwargs):
2582 """RenameGroup(String oldName, String newName) -> bool"""
2583 return _misc.ConfigBase_RenameGroup(*args, **kwargs)
2584
2585 def DeleteEntry(*args, **kwargs):
2586 """DeleteEntry(String key, bool bDeleteGroupIfEmpty=True) -> bool"""
2587 return _misc.ConfigBase_DeleteEntry(*args, **kwargs)
2588
2589 def DeleteGroup(*args, **kwargs):
2590 """DeleteGroup(String key) -> bool"""
2591 return _misc.ConfigBase_DeleteGroup(*args, **kwargs)
2592
2593 def DeleteAll(*args, **kwargs):
2594 """DeleteAll() -> bool"""
2595 return _misc.ConfigBase_DeleteAll(*args, **kwargs)
2596
2597 def IsExpandingEnvVars(*args, **kwargs):
2598 """IsExpandingEnvVars() -> bool"""
2599 return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs)
2600
2601 def SetExpandEnvVars(*args, **kwargs):
2602 """SetExpandEnvVars(bool bDoIt=True)"""
2603 return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs)
2604
2605 def SetRecordDefaults(*args, **kwargs):
2606 """SetRecordDefaults(bool bDoIt=True)"""
2607 return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs)
2608
2609 def IsRecordingDefaults(*args, **kwargs):
2610 """IsRecordingDefaults() -> bool"""
2611 return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs)
2612
2613 def ExpandEnvVars(*args, **kwargs):
2614 """ExpandEnvVars(String str) -> String"""
2615 return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs)
2616
2617 def GetAppName(*args, **kwargs):
2618 """GetAppName() -> String"""
2619 return _misc.ConfigBase_GetAppName(*args, **kwargs)
2620
2621 def GetVendorName(*args, **kwargs):
2622 """GetVendorName() -> String"""
2623 return _misc.ConfigBase_GetVendorName(*args, **kwargs)
2624
2625 def SetAppName(*args, **kwargs):
2626 """SetAppName(String appName)"""
2627 return _misc.ConfigBase_SetAppName(*args, **kwargs)
2628
2629 def SetVendorName(*args, **kwargs):
2630 """SetVendorName(String vendorName)"""
2631 return _misc.ConfigBase_SetVendorName(*args, **kwargs)
2632
2633 def SetStyle(*args, **kwargs):
2634 """SetStyle(long style)"""
2635 return _misc.ConfigBase_SetStyle(*args, **kwargs)
2636
2637 def GetStyle(*args, **kwargs):
2638 """GetStyle() -> long"""
2639 return _misc.ConfigBase_GetStyle(*args, **kwargs)
2640
2641
2642 class ConfigBasePtr(ConfigBase):
2643 def __init__(self, this):
2644 self.this = this
2645 if not hasattr(self,"thisown"): self.thisown = 0
2646 self.__class__ = ConfigBase
2647 _misc.ConfigBase_swigregister(ConfigBasePtr)
2648
2649 def ConfigBase_Set(*args, **kwargs):
2650 """ConfigBase_Set(ConfigBase pConfig) -> ConfigBase"""
2651 return _misc.ConfigBase_Set(*args, **kwargs)
2652
2653 def ConfigBase_Get(*args, **kwargs):
2654 """ConfigBase_Get(bool createOnDemand=True) -> ConfigBase"""
2655 return _misc.ConfigBase_Get(*args, **kwargs)
2656
2657 def ConfigBase_Create(*args, **kwargs):
2658 """ConfigBase_Create() -> ConfigBase"""
2659 return _misc.ConfigBase_Create(*args, **kwargs)
2660
2661 def ConfigBase_DontCreateOnDemand(*args, **kwargs):
2662 """ConfigBase_DontCreateOnDemand()"""
2663 return _misc.ConfigBase_DontCreateOnDemand(*args, **kwargs)
2664
2665 class ConfigPathChanger(object):
2666 def __repr__(self):
2667 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2668 def __init__(self, *args, **kwargs):
2669 """__init__(ConfigBase pContainer, String strEntry) -> ConfigPathChanger"""
2670 newobj = _misc.new_ConfigPathChanger(*args, **kwargs)
2671 self.this = newobj.this
2672 self.thisown = 1
2673 del newobj.thisown
2674 def __del__(self, destroy=_misc.delete_ConfigPathChanger):
2675 """__del__()"""
2676 try:
2677 if self.thisown: destroy(self)
2678 except: pass
2679
2680 def Name(*args, **kwargs):
2681 """Name() -> String"""
2682 return _misc.ConfigPathChanger_Name(*args, **kwargs)
2683
2684
2685 class ConfigPathChangerPtr(ConfigPathChanger):
2686 def __init__(self, this):
2687 self.this = this
2688 if not hasattr(self,"thisown"): self.thisown = 0
2689 self.__class__ = ConfigPathChanger
2690 _misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr)
2691
2692 class Config(ConfigBase):
2693 def __repr__(self):
2694 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2695 def __init__(self, *args, **kwargs):
2696 """
2697 __init__(String appName=EmptyString, String vendorName=EmptyString,
2698 String localFilename=EmptyString, String globalFilename=EmptyString,
2699 long style=0) -> Config
2700 """
2701 newobj = _misc.new_Config(*args, **kwargs)
2702 self.this = newobj.this
2703 self.thisown = 1
2704 del newobj.thisown
2705 def __del__(self, destroy=_misc.delete_Config):
2706 """__del__()"""
2707 try:
2708 if self.thisown: destroy(self)
2709 except: pass
2710
2711
2712 class ConfigPtr(Config):
2713 def __init__(self, this):
2714 self.this = this
2715 if not hasattr(self,"thisown"): self.thisown = 0
2716 self.__class__ = Config
2717 _misc.Config_swigregister(ConfigPtr)
2718
2719 class FileConfig(ConfigBase):
2720 def __repr__(self):
2721 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2722 def __init__(self, *args, **kwargs):
2723 """
2724 __init__(String appName=EmptyString, String vendorName=EmptyString,
2725 String localFilename=EmptyString, String globalFilename=EmptyString,
2726 long style=0) -> FileConfig
2727 """
2728 newobj = _misc.new_FileConfig(*args, **kwargs)
2729 self.this = newobj.this
2730 self.thisown = 1
2731 del newobj.thisown
2732 def __del__(self, destroy=_misc.delete_FileConfig):
2733 """__del__()"""
2734 try:
2735 if self.thisown: destroy(self)
2736 except: pass
2737
2738
2739 class FileConfigPtr(FileConfig):
2740 def __init__(self, this):
2741 self.this = this
2742 if not hasattr(self,"thisown"): self.thisown = 0
2743 self.__class__ = FileConfig
2744 _misc.FileConfig_swigregister(FileConfigPtr)
2745
2746
2747 def ExpandEnvVars(*args, **kwargs):
2748 """ExpandEnvVars(String sz) -> String"""
2749 return _misc.ExpandEnvVars(*args, **kwargs)
2750 #---------------------------------------------------------------------------
2751
2752 class DateTime(object):
2753 def __repr__(self):
2754 return "<%s.%s; proxy of C++ wxDateTime instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2755 Local = _misc.DateTime_Local
2756 GMT_12 = _misc.DateTime_GMT_12
2757 GMT_11 = _misc.DateTime_GMT_11
2758 GMT_10 = _misc.DateTime_GMT_10
2759 GMT_9 = _misc.DateTime_GMT_9
2760 GMT_8 = _misc.DateTime_GMT_8
2761 GMT_7 = _misc.DateTime_GMT_7
2762 GMT_6 = _misc.DateTime_GMT_6
2763 GMT_5 = _misc.DateTime_GMT_5
2764 GMT_4 = _misc.DateTime_GMT_4
2765 GMT_3 = _misc.DateTime_GMT_3
2766 GMT_2 = _misc.DateTime_GMT_2
2767 GMT_1 = _misc.DateTime_GMT_1
2768 GMT0 = _misc.DateTime_GMT0
2769 GMT1 = _misc.DateTime_GMT1
2770 GMT2 = _misc.DateTime_GMT2
2771 GMT3 = _misc.DateTime_GMT3
2772 GMT4 = _misc.DateTime_GMT4
2773 GMT5 = _misc.DateTime_GMT5
2774 GMT6 = _misc.DateTime_GMT6
2775 GMT7 = _misc.DateTime_GMT7
2776 GMT8 = _misc.DateTime_GMT8
2777 GMT9 = _misc.DateTime_GMT9
2778 GMT10 = _misc.DateTime_GMT10
2779 GMT11 = _misc.DateTime_GMT11
2780 GMT12 = _misc.DateTime_GMT12
2781 WET = _misc.DateTime_WET
2782 WEST = _misc.DateTime_WEST
2783 CET = _misc.DateTime_CET
2784 CEST = _misc.DateTime_CEST
2785 EET = _misc.DateTime_EET
2786 EEST = _misc.DateTime_EEST
2787 MSK = _misc.DateTime_MSK
2788 MSD = _misc.DateTime_MSD
2789 AST = _misc.DateTime_AST
2790 ADT = _misc.DateTime_ADT
2791 EST = _misc.DateTime_EST
2792 EDT = _misc.DateTime_EDT
2793 CST = _misc.DateTime_CST
2794 CDT = _misc.DateTime_CDT
2795 MST = _misc.DateTime_MST
2796 MDT = _misc.DateTime_MDT
2797 PST = _misc.DateTime_PST
2798 PDT = _misc.DateTime_PDT
2799 HST = _misc.DateTime_HST
2800 AKST = _misc.DateTime_AKST
2801 AKDT = _misc.DateTime_AKDT
2802 A_WST = _misc.DateTime_A_WST
2803 A_CST = _misc.DateTime_A_CST
2804 A_EST = _misc.DateTime_A_EST
2805 A_ESST = _misc.DateTime_A_ESST
2806 UTC = _misc.DateTime_UTC
2807 Gregorian = _misc.DateTime_Gregorian
2808 Julian = _misc.DateTime_Julian
2809 Gr_Unknown = _misc.DateTime_Gr_Unknown
2810 Gr_Standard = _misc.DateTime_Gr_Standard
2811 Gr_Alaska = _misc.DateTime_Gr_Alaska
2812 Gr_Albania = _misc.DateTime_Gr_Albania
2813 Gr_Austria = _misc.DateTime_Gr_Austria
2814 Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen
2815 Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg
2816 Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol
2817 Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia
2818 Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria
2819 Gr_Belgium = _misc.DateTime_Gr_Belgium
2820 Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria
2821 Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1
2822 Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2
2823 Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3
2824 Gr_Canada = _misc.DateTime_Gr_Canada
2825 Gr_China = _misc.DateTime_Gr_China
2826 Gr_China_1 = _misc.DateTime_Gr_China_1
2827 Gr_China_2 = _misc.DateTime_Gr_China_2
2828 Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia
2829 Gr_Denmark = _misc.DateTime_Gr_Denmark
2830 Gr_Egypt = _misc.DateTime_Gr_Egypt
2831 Gr_Estonia = _misc.DateTime_Gr_Estonia
2832 Gr_Finland = _misc.DateTime_Gr_Finland
2833 Gr_France = _misc.DateTime_Gr_France
2834 Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace
2835 Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine
2836 Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg
2837 Gr_Germany = _misc.DateTime_Gr_Germany
2838 Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic
2839 Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia
2840 Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant
2841 Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain
2842 Gr_Greece = _misc.DateTime_Gr_Greece
2843 Gr_Hungary = _misc.DateTime_Gr_Hungary
2844 Gr_Ireland = _misc.DateTime_Gr_Ireland
2845 Gr_Italy = _misc.DateTime_Gr_Italy
2846 Gr_Japan = _misc.DateTime_Gr_Japan
2847 Gr_Japan_1 = _misc.DateTime_Gr_Japan_1
2848 Gr_Japan_2 = _misc.DateTime_Gr_Japan_2
2849 Gr_Japan_3 = _misc.DateTime_Gr_Japan_3
2850 Gr_Latvia = _misc.DateTime_Gr_Latvia
2851 Gr_Lithuania = _misc.DateTime_Gr_Lithuania
2852 Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg
2853 Gr_Netherlands = _misc.DateTime_Gr_Netherlands
2854 Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen
2855 Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland
2856 Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht
2857 Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland
2858 Gr_Norway = _misc.DateTime_Gr_Norway
2859 Gr_Poland = _misc.DateTime_Gr_Poland
2860 Gr_Portugal = _misc.DateTime_Gr_Portugal
2861 Gr_Romania = _misc.DateTime_Gr_Romania
2862 Gr_Russia = _misc.DateTime_Gr_Russia
2863 Gr_Scotland = _misc.DateTime_Gr_Scotland
2864 Gr_Spain = _misc.DateTime_Gr_Spain
2865 Gr_Sweden = _misc.DateTime_Gr_Sweden
2866 Gr_Switzerland = _misc.DateTime_Gr_Switzerland
2867 Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic
2868 Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant
2869 Gr_Turkey = _misc.DateTime_Gr_Turkey
2870 Gr_USA = _misc.DateTime_Gr_USA
2871 Gr_Wales = _misc.DateTime_Gr_Wales
2872 Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia
2873 Country_Unknown = _misc.DateTime_Country_Unknown
2874 Country_Default = _misc.DateTime_Country_Default
2875 Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start
2876 Country_EEC = _misc.DateTime_Country_EEC
2877 France = _misc.DateTime_France
2878 Germany = _misc.DateTime_Germany
2879 UK = _misc.DateTime_UK
2880 Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End
2881 Russia = _misc.DateTime_Russia
2882 USA = _misc.DateTime_USA
2883 Jan = _misc.DateTime_Jan
2884 Feb = _misc.DateTime_Feb
2885 Mar = _misc.DateTime_Mar
2886 Apr = _misc.DateTime_Apr
2887 May = _misc.DateTime_May
2888 Jun = _misc.DateTime_Jun
2889 Jul = _misc.DateTime_Jul
2890 Aug = _misc.DateTime_Aug
2891 Sep = _misc.DateTime_Sep
2892 Oct = _misc.DateTime_Oct
2893 Nov = _misc.DateTime_Nov
2894 Dec = _misc.DateTime_Dec
2895 Inv_Month = _misc.DateTime_Inv_Month
2896 Sun = _misc.DateTime_Sun
2897 Mon = _misc.DateTime_Mon
2898 Tue = _misc.DateTime_Tue
2899 Wed = _misc.DateTime_Wed
2900 Thu = _misc.DateTime_Thu
2901 Fri = _misc.DateTime_Fri
2902 Sat = _misc.DateTime_Sat
2903 Inv_WeekDay = _misc.DateTime_Inv_WeekDay
2904 Inv_Year = _misc.DateTime_Inv_Year
2905 Name_Full = _misc.DateTime_Name_Full
2906 Name_Abbr = _misc.DateTime_Name_Abbr
2907 Default_First = _misc.DateTime_Default_First
2908 Monday_First = _misc.DateTime_Monday_First
2909 Sunday_First = _misc.DateTime_Sunday_First
2910 def SetCountry(*args, **kwargs):
2911 """DateTime.SetCountry(int country)"""
2912 return _misc.DateTime_SetCountry(*args, **kwargs)
2913
2914 SetCountry = staticmethod(SetCountry)
2915 def GetCountry(*args, **kwargs):
2916 """DateTime.GetCountry() -> int"""
2917 return _misc.DateTime_GetCountry(*args, **kwargs)
2918
2919 GetCountry = staticmethod(GetCountry)
2920 def IsWestEuropeanCountry(*args, **kwargs):
2921 """DateTime.IsWestEuropeanCountry(int country=Country_Default) -> bool"""
2922 return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs)
2923
2924 IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry)
2925 def GetCurrentYear(*args, **kwargs):
2926 """DateTime.GetCurrentYear(int cal=Gregorian) -> int"""
2927 return _misc.DateTime_GetCurrentYear(*args, **kwargs)
2928
2929 GetCurrentYear = staticmethod(GetCurrentYear)
2930 def ConvertYearToBC(*args, **kwargs):
2931 """DateTime.ConvertYearToBC(int year) -> int"""
2932 return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
2933
2934 ConvertYearToBC = staticmethod(ConvertYearToBC)
2935 def GetCurrentMonth(*args, **kwargs):
2936 """DateTime.GetCurrentMonth(int cal=Gregorian) -> int"""
2937 return _misc.DateTime_GetCurrentMonth(*args, **kwargs)
2938
2939 GetCurrentMonth = staticmethod(GetCurrentMonth)
2940 def IsLeapYear(*args, **kwargs):
2941 """DateTime.IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
2942 return _misc.DateTime_IsLeapYear(*args, **kwargs)
2943
2944 IsLeapYear = staticmethod(IsLeapYear)
2945 def GetCentury(*args, **kwargs):
2946 """DateTime.GetCentury(int year=Inv_Year) -> int"""
2947 return _misc.DateTime_GetCentury(*args, **kwargs)
2948
2949 GetCentury = staticmethod(GetCentury)
2950 def GetNumberOfDaysinYear(*args, **kwargs):
2951 """DateTime.GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
2952 return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
2953
2954 GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear)
2955 def GetNumberOfDaysInMonth(*args, **kwargs):
2956 """DateTime.GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
2957 return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
2958
2959 GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth)
2960 def GetMonthName(*args, **kwargs):
2961 """DateTime.GetMonthName(int month, int flags=Name_Full) -> String"""
2962 return _misc.DateTime_GetMonthName(*args, **kwargs)
2963
2964 GetMonthName = staticmethod(GetMonthName)
2965 def GetWeekDayName(*args, **kwargs):
2966 """DateTime.GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
2967 return _misc.DateTime_GetWeekDayName(*args, **kwargs)
2968
2969 GetWeekDayName = staticmethod(GetWeekDayName)
2970 def GetAmPmStrings(*args, **kwargs):
2971 """
2972 GetAmPmStrings() -> (am, pm)
2973
2974 Get the AM and PM strings in the current locale (may be empty)
2975 """
2976 return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
2977
2978 GetAmPmStrings = staticmethod(GetAmPmStrings)
2979 def IsDSTApplicable(*args, **kwargs):
2980 """DateTime.IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
2981 return _misc.DateTime_IsDSTApplicable(*args, **kwargs)
2982
2983 IsDSTApplicable = staticmethod(IsDSTApplicable)
2984 def GetBeginDST(*args, **kwargs):
2985 """DateTime.GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
2986 return _misc.DateTime_GetBeginDST(*args, **kwargs)
2987
2988 GetBeginDST = staticmethod(GetBeginDST)
2989 def GetEndDST(*args, **kwargs):
2990 """DateTime.GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
2991 return _misc.DateTime_GetEndDST(*args, **kwargs)
2992
2993 GetEndDST = staticmethod(GetEndDST)
2994 def Now(*args, **kwargs):
2995 """DateTime.Now() -> DateTime"""
2996 return _misc.DateTime_Now(*args, **kwargs)
2997
2998 Now = staticmethod(Now)
2999 def UNow(*args, **kwargs):
3000 """DateTime.UNow() -> DateTime"""
3001 return _misc.DateTime_UNow(*args, **kwargs)
3002
3003 UNow = staticmethod(UNow)
3004 def Today(*args, **kwargs):
3005 """DateTime.Today() -> DateTime"""
3006 return _misc.DateTime_Today(*args, **kwargs)
3007
3008 Today = staticmethod(Today)
3009 def __init__(self, *args, **kwargs):
3010 """__init__() -> DateTime"""
3011 newobj = _misc.new_DateTime(*args, **kwargs)
3012 self.this = newobj.this
3013 self.thisown = 1
3014 del newobj.thisown
3015 def __del__(self, destroy=_misc.delete_DateTime):
3016 """__del__()"""
3017 try:
3018 if self.thisown: destroy(self)
3019 except: pass
3020
3021 def SetToCurrent(*args, **kwargs):
3022 """SetToCurrent() -> DateTime"""
3023 return _misc.DateTime_SetToCurrent(*args, **kwargs)
3024
3025 def SetTimeT(*args, **kwargs):
3026 """SetTimeT(time_t timet) -> DateTime"""
3027 return _misc.DateTime_SetTimeT(*args, **kwargs)
3028
3029 def SetJDN(*args, **kwargs):
3030 """SetJDN(double jdn) -> DateTime"""
3031 return _misc.DateTime_SetJDN(*args, **kwargs)
3032
3033 def SetHMS(*args, **kwargs):
3034 """SetHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3035 return _misc.DateTime_SetHMS(*args, **kwargs)
3036
3037 def Set(*args, **kwargs):
3038 """
3039 Set(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3040 int minute=0, int second=0, int millisec=0) -> DateTime
3041 """
3042 return _misc.DateTime_Set(*args, **kwargs)
3043
3044 def ResetTime(*args, **kwargs):
3045 """ResetTime() -> DateTime"""
3046 return _misc.DateTime_ResetTime(*args, **kwargs)
3047
3048 def SetYear(*args, **kwargs):
3049 """SetYear(int year) -> DateTime"""
3050 return _misc.DateTime_SetYear(*args, **kwargs)
3051
3052 def SetMonth(*args, **kwargs):
3053 """SetMonth(int month) -> DateTime"""
3054 return _misc.DateTime_SetMonth(*args, **kwargs)
3055
3056 def SetDay(*args, **kwargs):
3057 """SetDay(int day) -> DateTime"""
3058 return _misc.DateTime_SetDay(*args, **kwargs)
3059
3060 def SetHour(*args, **kwargs):
3061 """SetHour(int hour) -> DateTime"""
3062 return _misc.DateTime_SetHour(*args, **kwargs)
3063
3064 def SetMinute(*args, **kwargs):
3065 """SetMinute(int minute) -> DateTime"""
3066 return _misc.DateTime_SetMinute(*args, **kwargs)
3067
3068 def SetSecond(*args, **kwargs):
3069 """SetSecond(int second) -> DateTime"""
3070 return _misc.DateTime_SetSecond(*args, **kwargs)
3071
3072 def SetMillisecond(*args, **kwargs):
3073 """SetMillisecond(int millisecond) -> DateTime"""
3074 return _misc.DateTime_SetMillisecond(*args, **kwargs)
3075
3076 def SetToWeekDayInSameWeek(*args, **kwargs):
3077 """SetToWeekDayInSameWeek(int weekday, int flags=Monday_First) -> DateTime"""
3078 return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs)
3079
3080 def GetWeekDayInSameWeek(*args, **kwargs):
3081 """GetWeekDayInSameWeek(int weekday, int flags=Monday_First) -> DateTime"""
3082 return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs)
3083
3084 def SetToNextWeekDay(*args, **kwargs):
3085 """SetToNextWeekDay(int weekday) -> DateTime"""
3086 return _misc.DateTime_SetToNextWeekDay(*args, **kwargs)
3087
3088 def GetNextWeekDay(*args, **kwargs):
3089 """GetNextWeekDay(int weekday) -> DateTime"""
3090 return _misc.DateTime_GetNextWeekDay(*args, **kwargs)
3091
3092 def SetToPrevWeekDay(*args, **kwargs):
3093 """SetToPrevWeekDay(int weekday) -> DateTime"""
3094 return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs)
3095
3096 def GetPrevWeekDay(*args, **kwargs):
3097 """GetPrevWeekDay(int weekday) -> DateTime"""
3098 return _misc.DateTime_GetPrevWeekDay(*args, **kwargs)
3099
3100 def SetToWeekDay(*args, **kwargs):
3101 """SetToWeekDay(int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3102 return _misc.DateTime_SetToWeekDay(*args, **kwargs)
3103
3104 def SetToLastWeekDay(*args, **kwargs):
3105 """SetToLastWeekDay(int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3106 return _misc.DateTime_SetToLastWeekDay(*args, **kwargs)
3107
3108 def GetLastWeekDay(*args, **kwargs):
3109 """GetLastWeekDay(int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3110 return _misc.DateTime_GetLastWeekDay(*args, **kwargs)
3111
3112 def SetToTheWeek(*args, **kwargs):
3113 """SetToTheWeek(int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3114 return _misc.DateTime_SetToTheWeek(*args, **kwargs)
3115
3116 def GetWeek(*args, **kwargs):
3117 """GetWeek(int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3118 return _misc.DateTime_GetWeek(*args, **kwargs)
3119
3120 def SetToLastMonthDay(*args, **kwargs):
3121 """SetToLastMonthDay(int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3122 return _misc.DateTime_SetToLastMonthDay(*args, **kwargs)
3123
3124 def GetLastMonthDay(*args, **kwargs):
3125 """GetLastMonthDay(int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3126 return _misc.DateTime_GetLastMonthDay(*args, **kwargs)
3127
3128 def SetToYearDay(*args, **kwargs):
3129 """SetToYearDay(int yday) -> DateTime"""
3130 return _misc.DateTime_SetToYearDay(*args, **kwargs)
3131
3132 def GetYearDay(*args, **kwargs):
3133 """GetYearDay(int yday) -> DateTime"""
3134 return _misc.DateTime_GetYearDay(*args, **kwargs)
3135
3136 def GetJulianDayNumber(*args, **kwargs):
3137 """GetJulianDayNumber() -> double"""
3138 return _misc.DateTime_GetJulianDayNumber(*args, **kwargs)
3139
3140 def GetJDN(*args, **kwargs):
3141 """GetJDN() -> double"""
3142 return _misc.DateTime_GetJDN(*args, **kwargs)
3143
3144 def GetModifiedJulianDayNumber(*args, **kwargs):
3145 """GetModifiedJulianDayNumber() -> double"""
3146 return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs)
3147
3148 def GetMJD(*args, **kwargs):
3149 """GetMJD() -> double"""
3150 return _misc.DateTime_GetMJD(*args, **kwargs)
3151
3152 def GetRataDie(*args, **kwargs):
3153 """GetRataDie() -> double"""
3154 return _misc.DateTime_GetRataDie(*args, **kwargs)
3155
3156 def ToTimezone(*args, **kwargs):
3157 """ToTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3158 return _misc.DateTime_ToTimezone(*args, **kwargs)
3159
3160 def MakeTimezone(*args, **kwargs):
3161 """MakeTimezone(wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3162 return _misc.DateTime_MakeTimezone(*args, **kwargs)
3163
3164 def ToGMT(*args, **kwargs):
3165 """ToGMT(bool noDST=False) -> DateTime"""
3166 return _misc.DateTime_ToGMT(*args, **kwargs)
3167
3168 def MakeGMT(*args, **kwargs):
3169 """MakeGMT(bool noDST=False) -> DateTime"""
3170 return _misc.DateTime_MakeGMT(*args, **kwargs)
3171
3172 def IsDST(*args, **kwargs):
3173 """IsDST(int country=Country_Default) -> int"""
3174 return _misc.DateTime_IsDST(*args, **kwargs)
3175
3176 def IsValid(*args, **kwargs):
3177 """IsValid() -> bool"""
3178 return _misc.DateTime_IsValid(*args, **kwargs)
3179
3180 def GetTicks(*args, **kwargs):
3181 """GetTicks() -> time_t"""
3182 return _misc.DateTime_GetTicks(*args, **kwargs)
3183
3184 def GetYear(*args, **kwargs):
3185 """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3186 return _misc.DateTime_GetYear(*args, **kwargs)
3187
3188 def GetMonth(*args, **kwargs):
3189 """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3190 return _misc.DateTime_GetMonth(*args, **kwargs)
3191
3192 def GetDay(*args, **kwargs):
3193 """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3194 return _misc.DateTime_GetDay(*args, **kwargs)
3195
3196 def GetWeekDay(*args, **kwargs):
3197 """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3198 return _misc.DateTime_GetWeekDay(*args, **kwargs)
3199
3200 def GetHour(*args, **kwargs):
3201 """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3202 return _misc.DateTime_GetHour(*args, **kwargs)
3203
3204 def GetMinute(*args, **kwargs):
3205 """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3206 return _misc.DateTime_GetMinute(*args, **kwargs)
3207
3208 def GetSecond(*args, **kwargs):
3209 """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3210 return _misc.DateTime_GetSecond(*args, **kwargs)
3211
3212 def GetMillisecond(*args, **kwargs):
3213 """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3214 return _misc.DateTime_GetMillisecond(*args, **kwargs)
3215
3216 def GetDayOfYear(*args, **kwargs):
3217 """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3218 return _misc.DateTime_GetDayOfYear(*args, **kwargs)
3219
3220 def GetWeekOfYear(*args, **kwargs):
3221 """GetWeekOfYear(int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3222 return _misc.DateTime_GetWeekOfYear(*args, **kwargs)
3223
3224 def GetWeekOfMonth(*args, **kwargs):
3225 """GetWeekOfMonth(int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3226 return _misc.DateTime_GetWeekOfMonth(*args, **kwargs)
3227
3228 def IsWorkDay(*args, **kwargs):
3229 """IsWorkDay(int country=Country_Default) -> bool"""
3230 return _misc.DateTime_IsWorkDay(*args, **kwargs)
3231
3232 def IsEqualTo(*args, **kwargs):
3233 """IsEqualTo(DateTime datetime) -> bool"""
3234 return _misc.DateTime_IsEqualTo(*args, **kwargs)
3235
3236 def IsEarlierThan(*args, **kwargs):
3237 """IsEarlierThan(DateTime datetime) -> bool"""
3238 return _misc.DateTime_IsEarlierThan(*args, **kwargs)
3239
3240 def IsLaterThan(*args, **kwargs):
3241 """IsLaterThan(DateTime datetime) -> bool"""
3242 return _misc.DateTime_IsLaterThan(*args, **kwargs)
3243
3244 def IsStrictlyBetween(*args, **kwargs):
3245 """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
3246 return _misc.DateTime_IsStrictlyBetween(*args, **kwargs)
3247
3248 def IsBetween(*args, **kwargs):
3249 """IsBetween(DateTime t1, DateTime t2) -> bool"""
3250 return _misc.DateTime_IsBetween(*args, **kwargs)
3251
3252 def IsSameDate(*args, **kwargs):
3253 """IsSameDate(DateTime dt) -> bool"""
3254 return _misc.DateTime_IsSameDate(*args, **kwargs)
3255
3256 def IsSameTime(*args, **kwargs):
3257 """IsSameTime(DateTime dt) -> bool"""
3258 return _misc.DateTime_IsSameTime(*args, **kwargs)
3259
3260 def IsEqualUpTo(*args, **kwargs):
3261 """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
3262 return _misc.DateTime_IsEqualUpTo(*args, **kwargs)
3263
3264 def AddTS(*args, **kwargs):
3265 """AddTS(TimeSpan diff) -> DateTime"""
3266 return _misc.DateTime_AddTS(*args, **kwargs)
3267
3268 def AddDS(*args, **kwargs):
3269 """AddDS(DateSpan diff) -> DateTime"""
3270 return _misc.DateTime_AddDS(*args, **kwargs)
3271
3272 def SubtractTS(*args, **kwargs):
3273 """SubtractTS(TimeSpan diff) -> DateTime"""
3274 return _misc.DateTime_SubtractTS(*args, **kwargs)
3275
3276 def SubtractDS(*args, **kwargs):
3277 """SubtractDS(DateSpan diff) -> DateTime"""
3278 return _misc.DateTime_SubtractDS(*args, **kwargs)
3279
3280 def Subtract(*args, **kwargs):
3281 """Subtract(DateTime dt) -> TimeSpan"""
3282 return _misc.DateTime_Subtract(*args, **kwargs)
3283
3284 def __iadd__(*args):
3285 """
3286 __iadd__(TimeSpan diff) -> DateTime
3287 __iadd__(DateSpan diff) -> DateTime
3288 """
3289 return _misc.DateTime___iadd__(*args)
3290
3291 def __isub__(*args):
3292 """
3293 __isub__(TimeSpan diff) -> DateTime
3294 __isub__(DateSpan diff) -> DateTime
3295 """
3296 return _misc.DateTime___isub__(*args)
3297
3298 def __add__(*args):
3299 """
3300 __add__(TimeSpan other) -> DateTime
3301 __add__(DateSpan other) -> DateTime
3302 """
3303 return _misc.DateTime___add__(*args)
3304
3305 def __sub__(*args):
3306 """
3307 __sub__(DateTime other) -> TimeSpan
3308 __sub__(TimeSpan other) -> DateTime
3309 __sub__(DateSpan other) -> DateTime
3310 """
3311 return _misc.DateTime___sub__(*args)
3312
3313 def __lt__(*args):
3314 """__lt__(DateTime other) -> bool"""
3315 return _misc.DateTime___lt__(*args)
3316
3317 def __le__(*args):
3318 """__le__(DateTime other) -> bool"""
3319 return _misc.DateTime___le__(*args)
3320
3321 def __gt__(*args):
3322 """__gt__(DateTime other) -> bool"""
3323 return _misc.DateTime___gt__(*args)
3324
3325 def __ge__(*args):
3326 """__ge__(DateTime other) -> bool"""
3327 return _misc.DateTime___ge__(*args)
3328
3329 def __eq__(*args):
3330 """__eq__(DateTime other) -> bool"""
3331 return _misc.DateTime___eq__(*args)
3332
3333 def __ne__(*args):
3334 """__ne__(DateTime other) -> bool"""
3335 return _misc.DateTime___ne__(*args)
3336
3337 def ParseRfc822Date(*args, **kwargs):
3338 """ParseRfc822Date(String date) -> int"""
3339 return _misc.DateTime_ParseRfc822Date(*args, **kwargs)
3340
3341 def ParseFormat(*args, **kwargs):
3342 """ParseFormat(String date, String format=DateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int"""
3343 return _misc.DateTime_ParseFormat(*args, **kwargs)
3344
3345 def ParseDateTime(*args, **kwargs):
3346 """ParseDateTime(String datetime) -> int"""
3347 return _misc.DateTime_ParseDateTime(*args, **kwargs)
3348
3349 def ParseDate(*args, **kwargs):
3350 """ParseDate(String date) -> int"""
3351 return _misc.DateTime_ParseDate(*args, **kwargs)
3352
3353 def ParseTime(*args, **kwargs):
3354 """ParseTime(String time) -> int"""
3355 return _misc.DateTime_ParseTime(*args, **kwargs)
3356
3357 def Format(*args, **kwargs):
3358 """Format(String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3359 return _misc.DateTime_Format(*args, **kwargs)
3360
3361 def FormatDate(*args, **kwargs):
3362 """FormatDate() -> String"""
3363 return _misc.DateTime_FormatDate(*args, **kwargs)
3364
3365 def FormatTime(*args, **kwargs):
3366 """FormatTime() -> String"""
3367 return _misc.DateTime_FormatTime(*args, **kwargs)
3368
3369 def FormatISODate(*args, **kwargs):
3370 """FormatISODate() -> String"""
3371 return _misc.DateTime_FormatISODate(*args, **kwargs)
3372
3373 def FormatISOTime(*args, **kwargs):
3374 """FormatISOTime() -> String"""
3375 return _misc.DateTime_FormatISOTime(*args, **kwargs)
3376
3377 def __repr__(self):
3378 return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this)
3379 def __str__(self):
3380 return self.Format()
3381
3382
3383 class DateTimePtr(DateTime):
3384 def __init__(self, this):
3385 self.this = this
3386 if not hasattr(self,"thisown"): self.thisown = 0
3387 self.__class__ = DateTime
3388 _misc.DateTime_swigregister(DateTimePtr)
3389 DateFormatStr = cvar.DateFormatStr
3390 TimeSpanFormatStr = cvar.TimeSpanFormatStr
3391
3392 def DateTime_SetCountry(*args, **kwargs):
3393 """DateTime_SetCountry(int country)"""
3394 return _misc.DateTime_SetCountry(*args, **kwargs)
3395
3396 def DateTime_GetCountry(*args, **kwargs):
3397 """DateTime_GetCountry() -> int"""
3398 return _misc.DateTime_GetCountry(*args, **kwargs)
3399
3400 def DateTime_IsWestEuropeanCountry(*args, **kwargs):
3401 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3402 return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs)
3403
3404 def DateTime_GetCurrentYear(*args, **kwargs):
3405 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
3406 return _misc.DateTime_GetCurrentYear(*args, **kwargs)
3407
3408 def DateTime_ConvertYearToBC(*args, **kwargs):
3409 """DateTime_ConvertYearToBC(int year) -> int"""
3410 return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
3411
3412 def DateTime_GetCurrentMonth(*args, **kwargs):
3413 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
3414 return _misc.DateTime_GetCurrentMonth(*args, **kwargs)
3415
3416 def DateTime_IsLeapYear(*args, **kwargs):
3417 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3418 return _misc.DateTime_IsLeapYear(*args, **kwargs)
3419
3420 def DateTime_GetCentury(*args, **kwargs):
3421 """DateTime_GetCentury(int year=Inv_Year) -> int"""
3422 return _misc.DateTime_GetCentury(*args, **kwargs)
3423
3424 def DateTime_GetNumberOfDaysinYear(*args, **kwargs):
3425 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3426 return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
3427
3428 def DateTime_GetNumberOfDaysInMonth(*args, **kwargs):
3429 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3430 return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
3431
3432 def DateTime_GetMonthName(*args, **kwargs):
3433 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
3434 return _misc.DateTime_GetMonthName(*args, **kwargs)
3435
3436 def DateTime_GetWeekDayName(*args, **kwargs):
3437 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3438 return _misc.DateTime_GetWeekDayName(*args, **kwargs)
3439
3440 def DateTime_GetAmPmStrings(*args, **kwargs):
3441 """
3442 GetAmPmStrings() -> (am, pm)
3443
3444 Get the AM and PM strings in the current locale (may be empty)
3445 """
3446 return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
3447
3448 def DateTime_IsDSTApplicable(*args, **kwargs):
3449 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3450 return _misc.DateTime_IsDSTApplicable(*args, **kwargs)
3451
3452 def DateTime_GetBeginDST(*args, **kwargs):
3453 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3454 return _misc.DateTime_GetBeginDST(*args, **kwargs)
3455
3456 def DateTime_GetEndDST(*args, **kwargs):
3457 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3458 return _misc.DateTime_GetEndDST(*args, **kwargs)
3459
3460 def DateTime_Now(*args, **kwargs):
3461 """DateTime_Now() -> DateTime"""
3462 return _misc.DateTime_Now(*args, **kwargs)
3463
3464 def DateTime_UNow(*args, **kwargs):
3465 """DateTime_UNow() -> DateTime"""
3466 return _misc.DateTime_UNow(*args, **kwargs)
3467
3468 def DateTime_Today(*args, **kwargs):
3469 """DateTime_Today() -> DateTime"""
3470 return _misc.DateTime_Today(*args, **kwargs)
3471
3472 def DateTimeFromTimeT(*args, **kwargs):
3473 """DateTimeFromTimeT(time_t timet) -> DateTime"""
3474 val = _misc.new_DateTimeFromTimeT(*args, **kwargs)
3475 val.thisown = 1
3476 return val
3477
3478 def DateTimeFromJDN(*args, **kwargs):
3479 """DateTimeFromJDN(double jdn) -> DateTime"""
3480 val = _misc.new_DateTimeFromJDN(*args, **kwargs)
3481 val.thisown = 1
3482 return val
3483
3484 def DateTimeFromHMS(*args, **kwargs):
3485 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3486 val = _misc.new_DateTimeFromHMS(*args, **kwargs)
3487 val.thisown = 1
3488 return val
3489
3490 def DateTimeFromDMY(*args, **kwargs):
3491 """
3492 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3493 int minute=0, int second=0, int millisec=0) -> DateTime
3494 """
3495 val = _misc.new_DateTimeFromDMY(*args, **kwargs)
3496 val.thisown = 1
3497 return val
3498
3499 class TimeSpan(object):
3500 def __repr__(self):
3501 return "<%s.%s; proxy of C++ wxTimeSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3502 def Seconds(*args, **kwargs):
3503 """TimeSpan.Seconds(long sec) -> TimeSpan"""
3504 return _misc.TimeSpan_Seconds(*args, **kwargs)
3505
3506 Seconds = staticmethod(Seconds)
3507 def Second(*args, **kwargs):
3508 """TimeSpan.Second() -> TimeSpan"""
3509 return _misc.TimeSpan_Second(*args, **kwargs)
3510
3511 Second = staticmethod(Second)
3512 def Minutes(*args, **kwargs):
3513 """TimeSpan.Minutes(long min) -> TimeSpan"""
3514 return _misc.TimeSpan_Minutes(*args, **kwargs)
3515
3516 Minutes = staticmethod(Minutes)
3517 def Minute(*args, **kwargs):
3518 """TimeSpan.Minute() -> TimeSpan"""
3519 return _misc.TimeSpan_Minute(*args, **kwargs)
3520
3521 Minute = staticmethod(Minute)
3522 def Hours(*args, **kwargs):
3523 """TimeSpan.Hours(long hours) -> TimeSpan"""
3524 return _misc.TimeSpan_Hours(*args, **kwargs)
3525
3526 Hours = staticmethod(Hours)
3527 def Hour(*args, **kwargs):
3528 """TimeSpan.Hour() -> TimeSpan"""
3529 return _misc.TimeSpan_Hour(*args, **kwargs)
3530
3531 Hour = staticmethod(Hour)
3532 def Days(*args, **kwargs):
3533 """TimeSpan.Days(long days) -> TimeSpan"""
3534 return _misc.TimeSpan_Days(*args, **kwargs)
3535
3536 Days = staticmethod(Days)
3537 def Day(*args, **kwargs):
3538 """TimeSpan.Day() -> TimeSpan"""
3539 return _misc.TimeSpan_Day(*args, **kwargs)
3540
3541 Day = staticmethod(Day)
3542 def Weeks(*args, **kwargs):
3543 """TimeSpan.Weeks(long days) -> TimeSpan"""
3544 return _misc.TimeSpan_Weeks(*args, **kwargs)
3545
3546 Weeks = staticmethod(Weeks)
3547 def Week(*args, **kwargs):
3548 """TimeSpan.Week() -> TimeSpan"""
3549 return _misc.TimeSpan_Week(*args, **kwargs)
3550
3551 Week = staticmethod(Week)
3552 def __init__(self, *args, **kwargs):
3553 """__init__(long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
3554 newobj = _misc.new_TimeSpan(*args, **kwargs)
3555 self.this = newobj.this
3556 self.thisown = 1
3557 del newobj.thisown
3558 def __del__(self, destroy=_misc.delete_TimeSpan):
3559 """__del__()"""
3560 try:
3561 if self.thisown: destroy(self)
3562 except: pass
3563
3564 def Add(*args, **kwargs):
3565 """Add(TimeSpan diff) -> TimeSpan"""
3566 return _misc.TimeSpan_Add(*args, **kwargs)
3567
3568 def Subtract(*args, **kwargs):
3569 """Subtract(TimeSpan diff) -> TimeSpan"""
3570 return _misc.TimeSpan_Subtract(*args, **kwargs)
3571
3572 def Multiply(*args, **kwargs):
3573 """Multiply(int n) -> TimeSpan"""
3574 return _misc.TimeSpan_Multiply(*args, **kwargs)
3575
3576 def Neg(*args, **kwargs):
3577 """Neg() -> TimeSpan"""
3578 return _misc.TimeSpan_Neg(*args, **kwargs)
3579
3580 def Abs(*args, **kwargs):
3581 """Abs() -> TimeSpan"""
3582 return _misc.TimeSpan_Abs(*args, **kwargs)
3583
3584 def __iadd__(*args, **kwargs):
3585 """__iadd__(TimeSpan diff) -> TimeSpan"""
3586 return _misc.TimeSpan___iadd__(*args, **kwargs)
3587
3588 def __isub__(*args, **kwargs):
3589 """__isub__(TimeSpan diff) -> TimeSpan"""
3590 return _misc.TimeSpan___isub__(*args, **kwargs)
3591
3592 def __imul__(*args, **kwargs):
3593 """__imul__(int n) -> TimeSpan"""
3594 return _misc.TimeSpan___imul__(*args, **kwargs)
3595
3596 def __neg__(*args, **kwargs):
3597 """__neg__() -> TimeSpan"""
3598 return _misc.TimeSpan___neg__(*args, **kwargs)
3599
3600 def __add__(*args, **kwargs):
3601 """__add__(TimeSpan other) -> TimeSpan"""
3602 return _misc.TimeSpan___add__(*args, **kwargs)
3603
3604 def __sub__(*args, **kwargs):
3605 """__sub__(TimeSpan other) -> TimeSpan"""
3606 return _misc.TimeSpan___sub__(*args, **kwargs)
3607
3608 def __mul__(*args, **kwargs):
3609 """__mul__(int n) -> TimeSpan"""
3610 return _misc.TimeSpan___mul__(*args, **kwargs)
3611
3612 def __rmul__(*args, **kwargs):
3613 """__rmul__(int n) -> TimeSpan"""
3614 return _misc.TimeSpan___rmul__(*args, **kwargs)
3615
3616 def __lt__(*args, **kwargs):
3617 """__lt__(TimeSpan other) -> bool"""
3618 return _misc.TimeSpan___lt__(*args, **kwargs)
3619
3620 def __le__(*args, **kwargs):
3621 """__le__(TimeSpan other) -> bool"""
3622 return _misc.TimeSpan___le__(*args, **kwargs)
3623
3624 def __gt__(*args, **kwargs):
3625 """__gt__(TimeSpan other) -> bool"""
3626 return _misc.TimeSpan___gt__(*args, **kwargs)
3627
3628 def __ge__(*args, **kwargs):
3629 """__ge__(TimeSpan other) -> bool"""
3630 return _misc.TimeSpan___ge__(*args, **kwargs)
3631
3632 def __eq__(*args, **kwargs):
3633 """__eq__(TimeSpan other) -> bool"""
3634 return _misc.TimeSpan___eq__(*args, **kwargs)
3635
3636 def __ne__(*args, **kwargs):
3637 """__ne__(TimeSpan other) -> bool"""
3638 return _misc.TimeSpan___ne__(*args, **kwargs)
3639
3640 def IsNull(*args, **kwargs):
3641 """IsNull() -> bool"""
3642 return _misc.TimeSpan_IsNull(*args, **kwargs)
3643
3644 def IsPositive(*args, **kwargs):
3645 """IsPositive() -> bool"""
3646 return _misc.TimeSpan_IsPositive(*args, **kwargs)
3647
3648 def IsNegative(*args, **kwargs):
3649 """IsNegative() -> bool"""
3650 return _misc.TimeSpan_IsNegative(*args, **kwargs)
3651
3652 def IsEqualTo(*args, **kwargs):
3653 """IsEqualTo(TimeSpan ts) -> bool"""
3654 return _misc.TimeSpan_IsEqualTo(*args, **kwargs)
3655
3656 def IsLongerThan(*args, **kwargs):
3657 """IsLongerThan(TimeSpan ts) -> bool"""
3658 return _misc.TimeSpan_IsLongerThan(*args, **kwargs)
3659
3660 def IsShorterThan(*args, **kwargs):
3661 """IsShorterThan(TimeSpan t) -> bool"""
3662 return _misc.TimeSpan_IsShorterThan(*args, **kwargs)
3663
3664 def GetWeeks(*args, **kwargs):
3665 """GetWeeks() -> int"""
3666 return _misc.TimeSpan_GetWeeks(*args, **kwargs)
3667
3668 def GetDays(*args, **kwargs):
3669 """GetDays() -> int"""
3670 return _misc.TimeSpan_GetDays(*args, **kwargs)
3671
3672 def GetHours(*args, **kwargs):
3673 """GetHours() -> int"""
3674 return _misc.TimeSpan_GetHours(*args, **kwargs)
3675
3676 def GetMinutes(*args, **kwargs):
3677 """GetMinutes() -> int"""
3678 return _misc.TimeSpan_GetMinutes(*args, **kwargs)
3679
3680 def GetSeconds(*args, **kwargs):
3681 """GetSeconds() -> wxLongLong"""
3682 return _misc.TimeSpan_GetSeconds(*args, **kwargs)
3683
3684 def GetMilliseconds(*args, **kwargs):
3685 """GetMilliseconds() -> wxLongLong"""
3686 return _misc.TimeSpan_GetMilliseconds(*args, **kwargs)
3687
3688 def Format(*args, **kwargs):
3689 """Format(String format=TimeSpanFormatStr) -> String"""
3690 return _misc.TimeSpan_Format(*args, **kwargs)
3691
3692 def __repr__(self):
3693 return '<wxTimeSpan: \"%s\" at %s>' % ( self.Format(), self.this)
3694 def __str__(self):
3695 return self.Format()
3696
3697
3698 class TimeSpanPtr(TimeSpan):
3699 def __init__(self, this):
3700 self.this = this
3701 if not hasattr(self,"thisown"): self.thisown = 0
3702 self.__class__ = TimeSpan
3703 _misc.TimeSpan_swigregister(TimeSpanPtr)
3704
3705 def TimeSpan_Seconds(*args, **kwargs):
3706 """TimeSpan_Seconds(long sec) -> TimeSpan"""
3707 return _misc.TimeSpan_Seconds(*args, **kwargs)
3708
3709 def TimeSpan_Second(*args, **kwargs):
3710 """TimeSpan_Second() -> TimeSpan"""
3711 return _misc.TimeSpan_Second(*args, **kwargs)
3712
3713 def TimeSpan_Minutes(*args, **kwargs):
3714 """TimeSpan_Minutes(long min) -> TimeSpan"""
3715 return _misc.TimeSpan_Minutes(*args, **kwargs)
3716
3717 def TimeSpan_Minute(*args, **kwargs):
3718 """TimeSpan_Minute() -> TimeSpan"""
3719 return _misc.TimeSpan_Minute(*args, **kwargs)
3720
3721 def TimeSpan_Hours(*args, **kwargs):
3722 """TimeSpan_Hours(long hours) -> TimeSpan"""
3723 return _misc.TimeSpan_Hours(*args, **kwargs)
3724
3725 def TimeSpan_Hour(*args, **kwargs):
3726 """TimeSpan_Hour() -> TimeSpan"""
3727 return _misc.TimeSpan_Hour(*args, **kwargs)
3728
3729 def TimeSpan_Days(*args, **kwargs):
3730 """TimeSpan_Days(long days) -> TimeSpan"""
3731 return _misc.TimeSpan_Days(*args, **kwargs)
3732
3733 def TimeSpan_Day(*args, **kwargs):
3734 """TimeSpan_Day() -> TimeSpan"""
3735 return _misc.TimeSpan_Day(*args, **kwargs)
3736
3737 def TimeSpan_Weeks(*args, **kwargs):
3738 """TimeSpan_Weeks(long days) -> TimeSpan"""
3739 return _misc.TimeSpan_Weeks(*args, **kwargs)
3740
3741 def TimeSpan_Week(*args, **kwargs):
3742 """TimeSpan_Week() -> TimeSpan"""
3743 return _misc.TimeSpan_Week(*args, **kwargs)
3744
3745 class DateSpan(object):
3746 def __repr__(self):
3747 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3748 def __init__(self, *args, **kwargs):
3749 """__init__(int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
3750 newobj = _misc.new_DateSpan(*args, **kwargs)
3751 self.this = newobj.this
3752 self.thisown = 1
3753 del newobj.thisown
3754 def __del__(self, destroy=_misc.delete_DateSpan):
3755 """__del__()"""
3756 try:
3757 if self.thisown: destroy(self)
3758 except: pass
3759
3760 def Days(*args, **kwargs):
3761 """DateSpan.Days(int days) -> DateSpan"""
3762 return _misc.DateSpan_Days(*args, **kwargs)
3763
3764 Days = staticmethod(Days)
3765 def Day(*args, **kwargs):
3766 """DateSpan.Day() -> DateSpan"""
3767 return _misc.DateSpan_Day(*args, **kwargs)
3768
3769 Day = staticmethod(Day)
3770 def Weeks(*args, **kwargs):
3771 """DateSpan.Weeks(int weeks) -> DateSpan"""
3772 return _misc.DateSpan_Weeks(*args, **kwargs)
3773
3774 Weeks = staticmethod(Weeks)
3775 def Week(*args, **kwargs):
3776 """DateSpan.Week() -> DateSpan"""
3777 return _misc.DateSpan_Week(*args, **kwargs)
3778
3779 Week = staticmethod(Week)
3780 def Months(*args, **kwargs):
3781 """DateSpan.Months(int mon) -> DateSpan"""
3782 return _misc.DateSpan_Months(*args, **kwargs)
3783
3784 Months = staticmethod(Months)
3785 def Month(*args, **kwargs):
3786 """DateSpan.Month() -> DateSpan"""
3787 return _misc.DateSpan_Month(*args, **kwargs)
3788
3789 Month = staticmethod(Month)
3790 def Years(*args, **kwargs):
3791 """DateSpan.Years(int years) -> DateSpan"""
3792 return _misc.DateSpan_Years(*args, **kwargs)
3793
3794 Years = staticmethod(Years)
3795 def Year(*args, **kwargs):
3796 """DateSpan.Year() -> DateSpan"""
3797 return _misc.DateSpan_Year(*args, **kwargs)
3798
3799 Year = staticmethod(Year)
3800 def SetYears(*args, **kwargs):
3801 """SetYears(int n) -> DateSpan"""
3802 return _misc.DateSpan_SetYears(*args, **kwargs)
3803
3804 def SetMonths(*args, **kwargs):
3805 """SetMonths(int n) -> DateSpan"""
3806 return _misc.DateSpan_SetMonths(*args, **kwargs)
3807
3808 def SetWeeks(*args, **kwargs):
3809 """SetWeeks(int n) -> DateSpan"""
3810 return _misc.DateSpan_SetWeeks(*args, **kwargs)
3811
3812 def SetDays(*args, **kwargs):
3813 """SetDays(int n) -> DateSpan"""
3814 return _misc.DateSpan_SetDays(*args, **kwargs)
3815
3816 def GetYears(*args, **kwargs):
3817 """GetYears() -> int"""
3818 return _misc.DateSpan_GetYears(*args, **kwargs)
3819
3820 def GetMonths(*args, **kwargs):
3821 """GetMonths() -> int"""
3822 return _misc.DateSpan_GetMonths(*args, **kwargs)
3823
3824 def GetWeeks(*args, **kwargs):
3825 """GetWeeks() -> int"""
3826 return _misc.DateSpan_GetWeeks(*args, **kwargs)
3827
3828 def GetDays(*args, **kwargs):
3829 """GetDays() -> int"""
3830 return _misc.DateSpan_GetDays(*args, **kwargs)
3831
3832 def GetTotalDays(*args, **kwargs):
3833 """GetTotalDays() -> int"""
3834 return _misc.DateSpan_GetTotalDays(*args, **kwargs)
3835
3836 def Add(*args, **kwargs):
3837 """Add(DateSpan other) -> DateSpan"""
3838 return _misc.DateSpan_Add(*args, **kwargs)
3839
3840 def Subtract(*args, **kwargs):
3841 """Subtract(DateSpan other) -> DateSpan"""
3842 return _misc.DateSpan_Subtract(*args, **kwargs)
3843
3844 def Neg(*args, **kwargs):
3845 """Neg() -> DateSpan"""
3846 return _misc.DateSpan_Neg(*args, **kwargs)
3847
3848 def Multiply(*args, **kwargs):
3849 """Multiply(int factor) -> DateSpan"""
3850 return _misc.DateSpan_Multiply(*args, **kwargs)
3851
3852 def __iadd__(*args, **kwargs):
3853 """__iadd__(DateSpan other) -> DateSpan"""
3854 return _misc.DateSpan___iadd__(*args, **kwargs)
3855
3856 def __isub__(*args, **kwargs):
3857 """__isub__(DateSpan other) -> DateSpan"""
3858 return _misc.DateSpan___isub__(*args, **kwargs)
3859
3860 def __neg__(*args, **kwargs):
3861 """__neg__() -> DateSpan"""
3862 return _misc.DateSpan___neg__(*args, **kwargs)
3863
3864 def __imul__(*args, **kwargs):
3865 """__imul__(int factor) -> DateSpan"""
3866 return _misc.DateSpan___imul__(*args, **kwargs)
3867
3868 def __add__(*args, **kwargs):
3869 """__add__(DateSpan other) -> DateSpan"""
3870 return _misc.DateSpan___add__(*args, **kwargs)
3871
3872 def __sub__(*args, **kwargs):
3873 """__sub__(DateSpan other) -> DateSpan"""
3874 return _misc.DateSpan___sub__(*args, **kwargs)
3875
3876 def __mul__(*args, **kwargs):
3877 """__mul__(int n) -> DateSpan"""
3878 return _misc.DateSpan___mul__(*args, **kwargs)
3879
3880 def __rmul__(*args, **kwargs):
3881 """__rmul__(int n) -> DateSpan"""
3882 return _misc.DateSpan___rmul__(*args, **kwargs)
3883
3884 def __eq__(*args, **kwargs):
3885 """__eq__(DateSpan other) -> bool"""
3886 return _misc.DateSpan___eq__(*args, **kwargs)
3887
3888 def __ne__(*args, **kwargs):
3889 """__ne__(DateSpan other) -> bool"""
3890 return _misc.DateSpan___ne__(*args, **kwargs)
3891
3892
3893 class DateSpanPtr(DateSpan):
3894 def __init__(self, this):
3895 self.this = this
3896 if not hasattr(self,"thisown"): self.thisown = 0
3897 self.__class__ = DateSpan
3898 _misc.DateSpan_swigregister(DateSpanPtr)
3899
3900 def DateSpan_Days(*args, **kwargs):
3901 """DateSpan_Days(int days) -> DateSpan"""
3902 return _misc.DateSpan_Days(*args, **kwargs)
3903
3904 def DateSpan_Day(*args, **kwargs):
3905 """DateSpan_Day() -> DateSpan"""
3906 return _misc.DateSpan_Day(*args, **kwargs)
3907
3908 def DateSpan_Weeks(*args, **kwargs):
3909 """DateSpan_Weeks(int weeks) -> DateSpan"""
3910 return _misc.DateSpan_Weeks(*args, **kwargs)
3911
3912 def DateSpan_Week(*args, **kwargs):
3913 """DateSpan_Week() -> DateSpan"""
3914 return _misc.DateSpan_Week(*args, **kwargs)
3915
3916 def DateSpan_Months(*args, **kwargs):
3917 """DateSpan_Months(int mon) -> DateSpan"""
3918 return _misc.DateSpan_Months(*args, **kwargs)
3919
3920 def DateSpan_Month(*args, **kwargs):
3921 """DateSpan_Month() -> DateSpan"""
3922 return _misc.DateSpan_Month(*args, **kwargs)
3923
3924 def DateSpan_Years(*args, **kwargs):
3925 """DateSpan_Years(int years) -> DateSpan"""
3926 return _misc.DateSpan_Years(*args, **kwargs)
3927
3928 def DateSpan_Year(*args, **kwargs):
3929 """DateSpan_Year() -> DateSpan"""
3930 return _misc.DateSpan_Year(*args, **kwargs)
3931
3932
3933 def GetLocalTime(*args, **kwargs):
3934 """GetLocalTime() -> long"""
3935 return _misc.GetLocalTime(*args, **kwargs)
3936
3937 def GetUTCTime(*args, **kwargs):
3938 """GetUTCTime() -> long"""
3939 return _misc.GetUTCTime(*args, **kwargs)
3940
3941 def GetCurrentTime(*args, **kwargs):
3942 """GetCurrentTime() -> long"""
3943 return _misc.GetCurrentTime(*args, **kwargs)
3944
3945 def GetLocalTimeMillis(*args, **kwargs):
3946 """GetLocalTimeMillis() -> wxLongLong"""
3947 return _misc.GetLocalTimeMillis(*args, **kwargs)
3948 #---------------------------------------------------------------------------
3949
3950 DF_INVALID = _misc.DF_INVALID
3951 DF_TEXT = _misc.DF_TEXT
3952 DF_BITMAP = _misc.DF_BITMAP
3953 DF_METAFILE = _misc.DF_METAFILE
3954 DF_SYLK = _misc.DF_SYLK
3955 DF_DIF = _misc.DF_DIF
3956 DF_TIFF = _misc.DF_TIFF
3957 DF_OEMTEXT = _misc.DF_OEMTEXT
3958 DF_DIB = _misc.DF_DIB
3959 DF_PALETTE = _misc.DF_PALETTE
3960 DF_PENDATA = _misc.DF_PENDATA
3961 DF_RIFF = _misc.DF_RIFF
3962 DF_WAVE = _misc.DF_WAVE
3963 DF_UNICODETEXT = _misc.DF_UNICODETEXT
3964 DF_ENHMETAFILE = _misc.DF_ENHMETAFILE
3965 DF_FILENAME = _misc.DF_FILENAME
3966 DF_LOCALE = _misc.DF_LOCALE
3967 DF_PRIVATE = _misc.DF_PRIVATE
3968 DF_HTML = _misc.DF_HTML
3969 DF_MAX = _misc.DF_MAX
3970 class DataFormat(object):
3971 def __repr__(self):
3972 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3973 def __init__(self, *args, **kwargs):
3974 """__init__(int type) -> DataFormat"""
3975 newobj = _misc.new_DataFormat(*args, **kwargs)
3976 self.this = newobj.this
3977 self.thisown = 1
3978 del newobj.thisown
3979 def __del__(self, destroy=_misc.delete_DataFormat):
3980 """__del__()"""
3981 try:
3982 if self.thisown: destroy(self)
3983 except: pass
3984
3985 def __eq__(*args):
3986 """
3987 __eq__(int format) -> bool
3988 __eq__(DataFormat format) -> bool
3989 """
3990 return _misc.DataFormat___eq__(*args)
3991
3992 def __ne__(*args):
3993 """
3994 __ne__(int format) -> bool
3995 __ne__(DataFormat format) -> bool
3996 """
3997 return _misc.DataFormat___ne__(*args)
3998
3999 def SetType(*args, **kwargs):
4000 """SetType(int format)"""
4001 return _misc.DataFormat_SetType(*args, **kwargs)
4002
4003 def GetType(*args, **kwargs):
4004 """GetType() -> int"""
4005 return _misc.DataFormat_GetType(*args, **kwargs)
4006
4007 def GetId(*args, **kwargs):
4008 """GetId() -> String"""
4009 return _misc.DataFormat_GetId(*args, **kwargs)
4010
4011 def SetId(*args, **kwargs):
4012 """SetId(String format)"""
4013 return _misc.DataFormat_SetId(*args, **kwargs)
4014
4015
4016 class DataFormatPtr(DataFormat):
4017 def __init__(self, this):
4018 self.this = this
4019 if not hasattr(self,"thisown"): self.thisown = 0
4020 self.__class__ = DataFormat
4021 _misc.DataFormat_swigregister(DataFormatPtr)
4022
4023 def CustomDataFormat(*args, **kwargs):
4024 """CustomDataFormat(String format) -> DataFormat"""
4025 val = _misc.new_CustomDataFormat(*args, **kwargs)
4026 val.thisown = 1
4027 return val
4028
4029 class DataObject(object):
4030 def __init__(self): raise RuntimeError, "No constructor defined"
4031 def __repr__(self):
4032 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4033 Get = _misc.DataObject_Get
4034 Set = _misc.DataObject_Set
4035 Both = _misc.DataObject_Both
4036 def __del__(self, destroy=_misc.delete_DataObject):
4037 """__del__()"""
4038 try:
4039 if self.thisown: destroy(self)
4040 except: pass
4041
4042 def GetPreferredFormat(*args, **kwargs):
4043 """GetPreferredFormat(int dir=Get) -> DataFormat"""
4044 return _misc.DataObject_GetPreferredFormat(*args, **kwargs)
4045
4046 def GetFormatCount(*args, **kwargs):
4047 """GetFormatCount(int dir=Get) -> size_t"""
4048 return _misc.DataObject_GetFormatCount(*args, **kwargs)
4049
4050 def IsSupported(*args, **kwargs):
4051 """IsSupported(DataFormat format, int dir=Get) -> bool"""
4052 return _misc.DataObject_IsSupported(*args, **kwargs)
4053
4054 def GetDataSize(*args, **kwargs):
4055 """GetDataSize(DataFormat format) -> size_t"""
4056 return _misc.DataObject_GetDataSize(*args, **kwargs)
4057
4058 def GetAllFormats(*args, **kwargs):
4059 """GetAllFormats(DataFormat formats, int dir=Get)"""
4060 return _misc.DataObject_GetAllFormats(*args, **kwargs)
4061
4062 def GetDataHere(*args, **kwargs):
4063 """GetDataHere(DataFormat format, void buf) -> bool"""
4064 return _misc.DataObject_GetDataHere(*args, **kwargs)
4065
4066 def SetData(*args, **kwargs):
4067 """SetData(DataFormat format, size_t len, void buf) -> bool"""
4068 return _misc.DataObject_SetData(*args, **kwargs)
4069
4070
4071 class DataObjectPtr(DataObject):
4072 def __init__(self, this):
4073 self.this = this
4074 if not hasattr(self,"thisown"): self.thisown = 0
4075 self.__class__ = DataObject
4076 _misc.DataObject_swigregister(DataObjectPtr)
4077 FormatInvalid = cvar.FormatInvalid
4078
4079 class DataObjectSimple(DataObject):
4080 def __repr__(self):
4081 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4082 def __init__(self, *args, **kwargs):
4083 """__init__(DataFormat format=FormatInvalid) -> DataObjectSimple"""
4084 newobj = _misc.new_DataObjectSimple(*args, **kwargs)
4085 self.this = newobj.this
4086 self.thisown = 1
4087 del newobj.thisown
4088 def GetFormat(*args, **kwargs):
4089 """GetFormat() -> DataFormat"""
4090 return _misc.DataObjectSimple_GetFormat(*args, **kwargs)
4091
4092 def SetFormat(*args, **kwargs):
4093 """SetFormat(DataFormat format)"""
4094 return _misc.DataObjectSimple_SetFormat(*args, **kwargs)
4095
4096
4097 class DataObjectSimplePtr(DataObjectSimple):
4098 def __init__(self, this):
4099 self.this = this
4100 if not hasattr(self,"thisown"): self.thisown = 0
4101 self.__class__ = DataObjectSimple
4102 _misc.DataObjectSimple_swigregister(DataObjectSimplePtr)
4103
4104 class PyDataObjectSimple(DataObjectSimple):
4105 def __repr__(self):
4106 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4107 def __init__(self, *args, **kwargs):
4108 """__init__(DataFormat format=FormatInvalid) -> PyDataObjectSimple"""
4109 newobj = _misc.new_PyDataObjectSimple(*args, **kwargs)
4110 self.this = newobj.this
4111 self.thisown = 1
4112 del newobj.thisown
4113 self._setCallbackInfo(self, PyDataObjectSimple)
4114
4115 def _setCallbackInfo(*args, **kwargs):
4116 """_setCallbackInfo(PyObject self, PyObject _class)"""
4117 return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs)
4118
4119
4120 class PyDataObjectSimplePtr(PyDataObjectSimple):
4121 def __init__(self, this):
4122 self.this = this
4123 if not hasattr(self,"thisown"): self.thisown = 0
4124 self.__class__ = PyDataObjectSimple
4125 _misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr)
4126
4127 class DataObjectComposite(DataObject):
4128 def __repr__(self):
4129 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4130 def __init__(self, *args, **kwargs):
4131 """__init__() -> DataObjectComposite"""
4132 newobj = _misc.new_DataObjectComposite(*args, **kwargs)
4133 self.this = newobj.this
4134 self.thisown = 1
4135 del newobj.thisown
4136 def Add(*args, **kwargs):
4137 """Add(DataObjectSimple dataObject, int preferred=False)"""
4138 val = _misc.DataObjectComposite_Add(*args, **kwargs)
4139 args[1].thisown = 0
4140 return val
4141
4142
4143 class DataObjectCompositePtr(DataObjectComposite):
4144 def __init__(self, this):
4145 self.this = this
4146 if not hasattr(self,"thisown"): self.thisown = 0
4147 self.__class__ = DataObjectComposite
4148 _misc.DataObjectComposite_swigregister(DataObjectCompositePtr)
4149
4150 class TextDataObject(DataObjectSimple):
4151 def __repr__(self):
4152 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4153 def __init__(self, *args, **kwargs):
4154 """__init__(String text=EmptyString) -> TextDataObject"""
4155 newobj = _misc.new_TextDataObject(*args, **kwargs)
4156 self.this = newobj.this
4157 self.thisown = 1
4158 del newobj.thisown
4159 def GetTextLength(*args, **kwargs):
4160 """GetTextLength() -> size_t"""
4161 return _misc.TextDataObject_GetTextLength(*args, **kwargs)
4162
4163 def GetText(*args, **kwargs):
4164 """GetText() -> String"""
4165 return _misc.TextDataObject_GetText(*args, **kwargs)
4166
4167 def SetText(*args, **kwargs):
4168 """SetText(String text)"""
4169 return _misc.TextDataObject_SetText(*args, **kwargs)
4170
4171
4172 class TextDataObjectPtr(TextDataObject):
4173 def __init__(self, this):
4174 self.this = this
4175 if not hasattr(self,"thisown"): self.thisown = 0
4176 self.__class__ = TextDataObject
4177 _misc.TextDataObject_swigregister(TextDataObjectPtr)
4178
4179 class PyTextDataObject(TextDataObject):
4180 def __repr__(self):
4181 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4182 def __init__(self, *args, **kwargs):
4183 """__init__(String text=EmptyString) -> PyTextDataObject"""
4184 newobj = _misc.new_PyTextDataObject(*args, **kwargs)
4185 self.this = newobj.this
4186 self.thisown = 1
4187 del newobj.thisown
4188 self._setCallbackInfo(self, PyTextDataObject)
4189
4190 def _setCallbackInfo(*args, **kwargs):
4191 """_setCallbackInfo(PyObject self, PyObject _class)"""
4192 return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs)
4193
4194
4195 class PyTextDataObjectPtr(PyTextDataObject):
4196 def __init__(self, this):
4197 self.this = this
4198 if not hasattr(self,"thisown"): self.thisown = 0
4199 self.__class__ = PyTextDataObject
4200 _misc.PyTextDataObject_swigregister(PyTextDataObjectPtr)
4201
4202 class BitmapDataObject(DataObjectSimple):
4203 def __repr__(self):
4204 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4205 def __init__(self, *args, **kwargs):
4206 """__init__(Bitmap bitmap=wxNullBitmap) -> BitmapDataObject"""
4207 newobj = _misc.new_BitmapDataObject(*args, **kwargs)
4208 self.this = newobj.this
4209 self.thisown = 1
4210 del newobj.thisown
4211 def GetBitmap(*args, **kwargs):
4212 """GetBitmap() -> Bitmap"""
4213 return _misc.BitmapDataObject_GetBitmap(*args, **kwargs)
4214
4215 def SetBitmap(*args, **kwargs):
4216 """SetBitmap(Bitmap bitmap)"""
4217 return _misc.BitmapDataObject_SetBitmap(*args, **kwargs)
4218
4219
4220 class BitmapDataObjectPtr(BitmapDataObject):
4221 def __init__(self, this):
4222 self.this = this
4223 if not hasattr(self,"thisown"): self.thisown = 0
4224 self.__class__ = BitmapDataObject
4225 _misc.BitmapDataObject_swigregister(BitmapDataObjectPtr)
4226
4227 class PyBitmapDataObject(BitmapDataObject):
4228 def __repr__(self):
4229 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4230 def __init__(self, *args, **kwargs):
4231 """__init__(Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject"""
4232 newobj = _misc.new_PyBitmapDataObject(*args, **kwargs)
4233 self.this = newobj.this
4234 self.thisown = 1
4235 del newobj.thisown
4236 self._setCallbackInfo(self, PyBitmapDataObject)
4237
4238 def _setCallbackInfo(*args, **kwargs):
4239 """_setCallbackInfo(PyObject self, PyObject _class)"""
4240 return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs)
4241
4242
4243 class PyBitmapDataObjectPtr(PyBitmapDataObject):
4244 def __init__(self, this):
4245 self.this = this
4246 if not hasattr(self,"thisown"): self.thisown = 0
4247 self.__class__ = PyBitmapDataObject
4248 _misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr)
4249
4250 class FileDataObject(DataObjectSimple):
4251 def __repr__(self):
4252 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4253 def __init__(self, *args, **kwargs):
4254 """__init__() -> FileDataObject"""
4255 newobj = _misc.new_FileDataObject(*args, **kwargs)
4256 self.this = newobj.this
4257 self.thisown = 1
4258 del newobj.thisown
4259 def GetFilenames(*args, **kwargs):
4260 """GetFilenames() -> wxArrayString"""
4261 return _misc.FileDataObject_GetFilenames(*args, **kwargs)
4262
4263
4264 class FileDataObjectPtr(FileDataObject):
4265 def __init__(self, this):
4266 self.this = this
4267 if not hasattr(self,"thisown"): self.thisown = 0
4268 self.__class__ = FileDataObject
4269 _misc.FileDataObject_swigregister(FileDataObjectPtr)
4270
4271 class CustomDataObject(DataObjectSimple):
4272 def __repr__(self):
4273 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4274 def __init__(self, *args, **kwargs):
4275 """__init__(DataFormat format=FormatInvalid) -> CustomDataObject"""
4276 newobj = _misc.new_CustomDataObject(*args, **kwargs)
4277 self.this = newobj.this
4278 self.thisown = 1
4279 del newobj.thisown
4280 def TakeData(*args, **kwargs):
4281 """TakeData(PyObject data)"""
4282 return _misc.CustomDataObject_TakeData(*args, **kwargs)
4283
4284 def SetData(*args, **kwargs):
4285 """SetData(PyObject data) -> bool"""
4286 return _misc.CustomDataObject_SetData(*args, **kwargs)
4287
4288 def GetSize(*args, **kwargs):
4289 """GetSize() -> size_t"""
4290 return _misc.CustomDataObject_GetSize(*args, **kwargs)
4291
4292 def GetData(*args, **kwargs):
4293 """GetData() -> PyObject"""
4294 return _misc.CustomDataObject_GetData(*args, **kwargs)
4295
4296
4297 class CustomDataObjectPtr(CustomDataObject):
4298 def __init__(self, this):
4299 self.this = this
4300 if not hasattr(self,"thisown"): self.thisown = 0
4301 self.__class__ = CustomDataObject
4302 _misc.CustomDataObject_swigregister(CustomDataObjectPtr)
4303
4304 class URLDataObject(DataObjectComposite):
4305 def __repr__(self):
4306 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4307 def __init__(self, *args, **kwargs):
4308 """__init__() -> URLDataObject"""
4309 newobj = _misc.new_URLDataObject(*args, **kwargs)
4310 self.this = newobj.this
4311 self.thisown = 1
4312 del newobj.thisown
4313 def GetURL(*args, **kwargs):
4314 """GetURL() -> String"""
4315 return _misc.URLDataObject_GetURL(*args, **kwargs)
4316
4317 def SetURL(*args, **kwargs):
4318 """SetURL(String url)"""
4319 return _misc.URLDataObject_SetURL(*args, **kwargs)
4320
4321
4322 class URLDataObjectPtr(URLDataObject):
4323 def __init__(self, this):
4324 self.this = this
4325 if not hasattr(self,"thisown"): self.thisown = 0
4326 self.__class__ = URLDataObject
4327 _misc.URLDataObject_swigregister(URLDataObjectPtr)
4328
4329 class MetafileDataObject(DataObjectSimple):
4330 def __repr__(self):
4331 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4332 def __init__(self, *args, **kwargs):
4333 """__init__() -> MetafileDataObject"""
4334 newobj = _misc.new_MetafileDataObject(*args, **kwargs)
4335 self.this = newobj.this
4336 self.thisown = 1
4337 del newobj.thisown
4338
4339 class MetafileDataObjectPtr(MetafileDataObject):
4340 def __init__(self, this):
4341 self.this = this
4342 if not hasattr(self,"thisown"): self.thisown = 0
4343 self.__class__ = MetafileDataObject
4344 _misc.MetafileDataObject_swigregister(MetafileDataObjectPtr)
4345
4346 #---------------------------------------------------------------------------
4347
4348 Drag_CopyOnly = _misc.Drag_CopyOnly
4349 Drag_AllowMove = _misc.Drag_AllowMove
4350 Drag_DefaultMove = _misc.Drag_DefaultMove
4351 DragError = _misc.DragError
4352 DragNone = _misc.DragNone
4353 DragCopy = _misc.DragCopy
4354 DragMove = _misc.DragMove
4355 DragLink = _misc.DragLink
4356 DragCancel = _misc.DragCancel
4357
4358 def IsDragResultOk(*args, **kwargs):
4359 """IsDragResultOk(int res) -> bool"""
4360 return _misc.IsDragResultOk(*args, **kwargs)
4361 class DropSource(object):
4362 def __repr__(self):
4363 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4364 def __init__(self, *args, **kwargs):
4365 """
4366 __init__(Window win=None, Icon copy=wxNullIcon, Icon move=wxNullIcon,
4367 Icon none=wxNullIcon) -> DropSource
4368 """
4369 newobj = _misc.new_DropSource(*args, **kwargs)
4370 self.this = newobj.this
4371 self.thisown = 1
4372 del newobj.thisown
4373 def _setCallbackInfo(*args, **kwargs):
4374 """_setCallbackInfo(PyObject self, PyObject _class, int incref)"""
4375 return _misc.DropSource__setCallbackInfo(*args, **kwargs)
4376
4377 def __del__(self, destroy=_misc.delete_DropSource):
4378 """__del__()"""
4379 try:
4380 if self.thisown: destroy(self)
4381 except: pass
4382
4383 def SetData(*args, **kwargs):
4384 """SetData(DataObject data)"""
4385 return _misc.DropSource_SetData(*args, **kwargs)
4386
4387 def GetDataObject(*args, **kwargs):
4388 """GetDataObject() -> DataObject"""
4389 return _misc.DropSource_GetDataObject(*args, **kwargs)
4390
4391 def SetCursor(*args, **kwargs):
4392 """SetCursor(int res, Cursor cursor)"""
4393 return _misc.DropSource_SetCursor(*args, **kwargs)
4394
4395 def DoDragDrop(*args, **kwargs):
4396 """DoDragDrop(int flags=Drag_CopyOnly) -> int"""
4397 return _misc.DropSource_DoDragDrop(*args, **kwargs)
4398
4399 def base_GiveFeedback(*args, **kwargs):
4400 """base_GiveFeedback(int effect) -> bool"""
4401 return _misc.DropSource_base_GiveFeedback(*args, **kwargs)
4402
4403
4404 class DropSourcePtr(DropSource):
4405 def __init__(self, this):
4406 self.this = this
4407 if not hasattr(self,"thisown"): self.thisown = 0
4408 self.__class__ = DropSource
4409 _misc.DropSource_swigregister(DropSourcePtr)
4410
4411 class DropTarget(object):
4412 def __repr__(self):
4413 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4414 def __init__(self, *args, **kwargs):
4415 """PyDropTarget(DataObject dataObject=None) -> DropTarget"""
4416 newobj = _misc.new_PyDropTarget(*args, **kwargs)
4417 self.this = newobj.this
4418 self.thisown = 1
4419 del newobj.thisown
4420 if args: args[0].thisown = 0;
4421 self._setCallbackInfo(self, DropTarget)
4422
4423 def _setCallbackInfo(*args, **kwargs):
4424 """_setCallbackInfo(PyObject self, PyObject _class)"""
4425 return _misc.DropTarget__setCallbackInfo(*args, **kwargs)
4426
4427 def __del__(self, destroy=_misc.delete_DropTarget):
4428 """__del__()"""
4429 try:
4430 if self.thisown: destroy(self)
4431 except: pass
4432
4433 def GetDataObject(*args, **kwargs):
4434 """GetDataObject() -> DataObject"""
4435 return _misc.DropTarget_GetDataObject(*args, **kwargs)
4436
4437 def SetDataObject(*args, **kwargs):
4438 """SetDataObject(DataObject dataObject)"""
4439 val = _misc.DropTarget_SetDataObject(*args, **kwargs)
4440 args[1].thisown = 0
4441 return val
4442
4443 def base_OnEnter(*args, **kwargs):
4444 """base_OnEnter(int x, int y, int def) -> int"""
4445 return _misc.DropTarget_base_OnEnter(*args, **kwargs)
4446
4447 def base_OnDragOver(*args, **kwargs):
4448 """base_OnDragOver(int x, int y, int def) -> int"""
4449 return _misc.DropTarget_base_OnDragOver(*args, **kwargs)
4450
4451 def base_OnLeave(*args, **kwargs):
4452 """base_OnLeave()"""
4453 return _misc.DropTarget_base_OnLeave(*args, **kwargs)
4454
4455 def base_OnDrop(*args, **kwargs):
4456 """base_OnDrop(int x, int y) -> bool"""
4457 return _misc.DropTarget_base_OnDrop(*args, **kwargs)
4458
4459 def GetData(*args, **kwargs):
4460 """GetData() -> bool"""
4461 return _misc.DropTarget_GetData(*args, **kwargs)
4462
4463
4464 class DropTargetPtr(DropTarget):
4465 def __init__(self, this):
4466 self.this = this
4467 if not hasattr(self,"thisown"): self.thisown = 0
4468 self.__class__ = DropTarget
4469 _misc.DropTarget_swigregister(DropTargetPtr)
4470
4471 PyDropTarget = DropTarget
4472 class TextDropTarget(DropTarget):
4473 def __repr__(self):
4474 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4475 def __init__(self, *args, **kwargs):
4476 """__init__() -> TextDropTarget"""
4477 newobj = _misc.new_TextDropTarget(*args, **kwargs)
4478 self.this = newobj.this
4479 self.thisown = 1
4480 del newobj.thisown
4481 self._setCallbackInfo(self, TextDropTarget)
4482
4483 def _setCallbackInfo(*args, **kwargs):
4484 """_setCallbackInfo(PyObject self, PyObject _class)"""
4485 return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs)
4486
4487 def base_OnEnter(*args, **kwargs):
4488 """base_OnEnter(int x, int y, int def) -> int"""
4489 return _misc.TextDropTarget_base_OnEnter(*args, **kwargs)
4490
4491 def base_OnDragOver(*args, **kwargs):
4492 """base_OnDragOver(int x, int y, int def) -> int"""
4493 return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs)
4494
4495 def base_OnLeave(*args, **kwargs):
4496 """base_OnLeave()"""
4497 return _misc.TextDropTarget_base_OnLeave(*args, **kwargs)
4498
4499 def base_OnDrop(*args, **kwargs):
4500 """base_OnDrop(int x, int y) -> bool"""
4501 return _misc.TextDropTarget_base_OnDrop(*args, **kwargs)
4502
4503 def base_OnData(*args, **kwargs):
4504 """base_OnData(int x, int y, int def) -> int"""
4505 return _misc.TextDropTarget_base_OnData(*args, **kwargs)
4506
4507
4508 class TextDropTargetPtr(TextDropTarget):
4509 def __init__(self, this):
4510 self.this = this
4511 if not hasattr(self,"thisown"): self.thisown = 0
4512 self.__class__ = TextDropTarget
4513 _misc.TextDropTarget_swigregister(TextDropTargetPtr)
4514
4515 class FileDropTarget(DropTarget):
4516 def __repr__(self):
4517 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4518 def __init__(self, *args, **kwargs):
4519 """__init__() -> FileDropTarget"""
4520 newobj = _misc.new_FileDropTarget(*args, **kwargs)
4521 self.this = newobj.this
4522 self.thisown = 1
4523 del newobj.thisown
4524 self._setCallbackInfo(self, FileDropTarget)
4525
4526 def _setCallbackInfo(*args, **kwargs):
4527 """_setCallbackInfo(PyObject self, PyObject _class)"""
4528 return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs)
4529
4530 def base_OnEnter(*args, **kwargs):
4531 """base_OnEnter(int x, int y, int def) -> int"""
4532 return _misc.FileDropTarget_base_OnEnter(*args, **kwargs)
4533
4534 def base_OnDragOver(*args, **kwargs):
4535 """base_OnDragOver(int x, int y, int def) -> int"""
4536 return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs)
4537
4538 def base_OnLeave(*args, **kwargs):
4539 """base_OnLeave()"""
4540 return _misc.FileDropTarget_base_OnLeave(*args, **kwargs)
4541
4542 def base_OnDrop(*args, **kwargs):
4543 """base_OnDrop(int x, int y) -> bool"""
4544 return _misc.FileDropTarget_base_OnDrop(*args, **kwargs)
4545
4546 def base_OnData(*args, **kwargs):
4547 """base_OnData(int x, int y, int def) -> int"""
4548 return _misc.FileDropTarget_base_OnData(*args, **kwargs)
4549
4550
4551 class FileDropTargetPtr(FileDropTarget):
4552 def __init__(self, this):
4553 self.this = this
4554 if not hasattr(self,"thisown"): self.thisown = 0
4555 self.__class__ = FileDropTarget
4556 _misc.FileDropTarget_swigregister(FileDropTargetPtr)
4557
4558 #---------------------------------------------------------------------------
4559
4560 class Clipboard(core.Object):
4561 def __repr__(self):
4562 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4563 def __init__(self, *args, **kwargs):
4564 """__init__() -> Clipboard"""
4565 newobj = _misc.new_Clipboard(*args, **kwargs)
4566 self.this = newobj.this
4567 self.thisown = 1
4568 del newobj.thisown
4569 def __del__(self, destroy=_misc.delete_Clipboard):
4570 """__del__()"""
4571 try:
4572 if self.thisown: destroy(self)
4573 except: pass
4574
4575 def Open(*args, **kwargs):
4576 """Open() -> bool"""
4577 return _misc.Clipboard_Open(*args, **kwargs)
4578
4579 def Close(*args, **kwargs):
4580 """Close()"""
4581 return _misc.Clipboard_Close(*args, **kwargs)
4582
4583 def IsOpened(*args, **kwargs):
4584 """IsOpened() -> bool"""
4585 return _misc.Clipboard_IsOpened(*args, **kwargs)
4586
4587 def AddData(*args, **kwargs):
4588 """AddData(DataObject data) -> bool"""
4589 return _misc.Clipboard_AddData(*args, **kwargs)
4590
4591 def SetData(*args, **kwargs):
4592 """SetData(DataObject data) -> bool"""
4593 return _misc.Clipboard_SetData(*args, **kwargs)
4594
4595 def IsSupported(*args, **kwargs):
4596 """IsSupported(DataFormat format) -> bool"""
4597 return _misc.Clipboard_IsSupported(*args, **kwargs)
4598
4599 def GetData(*args, **kwargs):
4600 """GetData(DataObject data) -> bool"""
4601 return _misc.Clipboard_GetData(*args, **kwargs)
4602
4603 def Clear(*args, **kwargs):
4604 """Clear()"""
4605 return _misc.Clipboard_Clear(*args, **kwargs)
4606
4607 def Flush(*args, **kwargs):
4608 """Flush() -> bool"""
4609 return _misc.Clipboard_Flush(*args, **kwargs)
4610
4611 def UsePrimarySelection(*args, **kwargs):
4612 """UsePrimarySelection(bool primary=False)"""
4613 return _misc.Clipboard_UsePrimarySelection(*args, **kwargs)
4614
4615
4616 class ClipboardPtr(Clipboard):
4617 def __init__(self, this):
4618 self.this = this
4619 if not hasattr(self,"thisown"): self.thisown = 0
4620 self.__class__ = Clipboard
4621 _misc.Clipboard_swigregister(ClipboardPtr)
4622
4623 class ClipboardLocker(object):
4624 def __repr__(self):
4625 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4626 def __init__(self, *args, **kwargs):
4627 """__init__(Clipboard clipboard=None) -> ClipboardLocker"""
4628 newobj = _misc.new_ClipboardLocker(*args, **kwargs)
4629 self.this = newobj.this
4630 self.thisown = 1
4631 del newobj.thisown
4632 def __del__(self, destroy=_misc.delete_ClipboardLocker):
4633 """__del__()"""
4634 try:
4635 if self.thisown: destroy(self)
4636 except: pass
4637
4638 def __nonzero__(*args, **kwargs):
4639 """__nonzero__() -> bool"""
4640 return _misc.ClipboardLocker___nonzero__(*args, **kwargs)
4641
4642
4643 class ClipboardLockerPtr(ClipboardLocker):
4644 def __init__(self, this):
4645 self.this = this
4646 if not hasattr(self,"thisown"): self.thisown = 0
4647 self.__class__ = ClipboardLocker
4648 _misc.ClipboardLocker_swigregister(ClipboardLockerPtr)
4649 TheClipboard = cvar.TheClipboard
4650
4651