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