]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_misc.py
ccee8ff4eb3fb41f44947d00296bc72662925d6e
[wxWidgets.git] / wxPython / src / gtk / _misc.py
1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _misc_
5 import new
6 new_instancemethod = new.instancemethod
7 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
8 if (name == "thisown"): return self.this.own(value)
9 if (name == "this"):
10 if type(value).__name__ == 'PySwigObject':
11 self.__dict__[name] = value
12 return
13 method = class_type.__swig_setmethods__.get(name,None)
14 if method: return method(self,value)
15 if (not static) or hasattr(self,name):
16 self.__dict__[name] = value
17 else:
18 raise AttributeError("You cannot add attributes to %s" % self)
19
20 def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23 def _swig_getattr(self,class_type,name):
24 if (name == "thisown"): return self.this.own()
25 method = class_type.__swig_getmethods__.get(name,None)
26 if method: return method(self)
27 raise AttributeError,name
28
29 def _swig_repr(self):
30 try: strthis = "proxy of " + self.this.__repr__()
31 except: strthis = ""
32 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
33
34 import types
35 try:
36 _object = types.ObjectType
37 _newclass = 1
38 except AttributeError:
39 class _object : pass
40 _newclass = 0
41 del types
42
43
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self,name,value):
46 if (name == "thisown"): return self.this.own(value)
47 if hasattr(self,name) or (name == "this"):
48 set(self,name,value)
49 else:
50 raise AttributeError("You cannot add attributes to %s" % self)
51 return set_attr
52
53
54 import _core
55 wx = _core
56 #---------------------------------------------------------------------------
57
58 SYS_OEM_FIXED_FONT = _misc_.SYS_OEM_FIXED_FONT
59 SYS_ANSI_FIXED_FONT = _misc_.SYS_ANSI_FIXED_FONT
60 SYS_ANSI_VAR_FONT = _misc_.SYS_ANSI_VAR_FONT
61 SYS_SYSTEM_FONT = _misc_.SYS_SYSTEM_FONT
62 SYS_DEVICE_DEFAULT_FONT = _misc_.SYS_DEVICE_DEFAULT_FONT
63 SYS_DEFAULT_PALETTE = _misc_.SYS_DEFAULT_PALETTE
64 SYS_SYSTEM_FIXED_FONT = _misc_.SYS_SYSTEM_FIXED_FONT
65 SYS_DEFAULT_GUI_FONT = _misc_.SYS_DEFAULT_GUI_FONT
66 SYS_ICONTITLE_FONT = _misc_.SYS_ICONTITLE_FONT
67 SYS_COLOUR_SCROLLBAR = _misc_.SYS_COLOUR_SCROLLBAR
68 SYS_COLOUR_BACKGROUND = _misc_.SYS_COLOUR_BACKGROUND
69 SYS_COLOUR_DESKTOP = _misc_.SYS_COLOUR_DESKTOP
70 SYS_COLOUR_ACTIVECAPTION = _misc_.SYS_COLOUR_ACTIVECAPTION
71 SYS_COLOUR_INACTIVECAPTION = _misc_.SYS_COLOUR_INACTIVECAPTION
72 SYS_COLOUR_MENU = _misc_.SYS_COLOUR_MENU
73 SYS_COLOUR_WINDOW = _misc_.SYS_COLOUR_WINDOW
74 SYS_COLOUR_WINDOWFRAME = _misc_.SYS_COLOUR_WINDOWFRAME
75 SYS_COLOUR_MENUTEXT = _misc_.SYS_COLOUR_MENUTEXT
76 SYS_COLOUR_WINDOWTEXT = _misc_.SYS_COLOUR_WINDOWTEXT
77 SYS_COLOUR_CAPTIONTEXT = _misc_.SYS_COLOUR_CAPTIONTEXT
78 SYS_COLOUR_ACTIVEBORDER = _misc_.SYS_COLOUR_ACTIVEBORDER
79 SYS_COLOUR_INACTIVEBORDER = _misc_.SYS_COLOUR_INACTIVEBORDER
80 SYS_COLOUR_APPWORKSPACE = _misc_.SYS_COLOUR_APPWORKSPACE
81 SYS_COLOUR_HIGHLIGHT = _misc_.SYS_COLOUR_HIGHLIGHT
82 SYS_COLOUR_HIGHLIGHTTEXT = _misc_.SYS_COLOUR_HIGHLIGHTTEXT
83 SYS_COLOUR_BTNFACE = _misc_.SYS_COLOUR_BTNFACE
84 SYS_COLOUR_3DFACE = _misc_.SYS_COLOUR_3DFACE
85 SYS_COLOUR_BTNSHADOW = _misc_.SYS_COLOUR_BTNSHADOW
86 SYS_COLOUR_3DSHADOW = _misc_.SYS_COLOUR_3DSHADOW
87 SYS_COLOUR_GRAYTEXT = _misc_.SYS_COLOUR_GRAYTEXT
88 SYS_COLOUR_BTNTEXT = _misc_.SYS_COLOUR_BTNTEXT
89 SYS_COLOUR_INACTIVECAPTIONTEXT = _misc_.SYS_COLOUR_INACTIVECAPTIONTEXT
90 SYS_COLOUR_BTNHIGHLIGHT = _misc_.SYS_COLOUR_BTNHIGHLIGHT
91 SYS_COLOUR_BTNHILIGHT = _misc_.SYS_COLOUR_BTNHILIGHT
92 SYS_COLOUR_3DHIGHLIGHT = _misc_.SYS_COLOUR_3DHIGHLIGHT
93 SYS_COLOUR_3DHILIGHT = _misc_.SYS_COLOUR_3DHILIGHT
94 SYS_COLOUR_3DDKSHADOW = _misc_.SYS_COLOUR_3DDKSHADOW
95 SYS_COLOUR_3DLIGHT = _misc_.SYS_COLOUR_3DLIGHT
96 SYS_COLOUR_INFOTEXT = _misc_.SYS_COLOUR_INFOTEXT
97 SYS_COLOUR_INFOBK = _misc_.SYS_COLOUR_INFOBK
98 SYS_COLOUR_LISTBOX = _misc_.SYS_COLOUR_LISTBOX
99 SYS_COLOUR_HOTLIGHT = _misc_.SYS_COLOUR_HOTLIGHT
100 SYS_COLOUR_GRADIENTACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTACTIVECAPTION
101 SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTINACTIVECAPTION
102 SYS_COLOUR_MENUHILIGHT = _misc_.SYS_COLOUR_MENUHILIGHT
103 SYS_COLOUR_MENUBAR = _misc_.SYS_COLOUR_MENUBAR
104 SYS_COLOUR_MAX = _misc_.SYS_COLOUR_MAX
105 SYS_MOUSE_BUTTONS = _misc_.SYS_MOUSE_BUTTONS
106 SYS_BORDER_X = _misc_.SYS_BORDER_X
107 SYS_BORDER_Y = _misc_.SYS_BORDER_Y
108 SYS_CURSOR_X = _misc_.SYS_CURSOR_X
109 SYS_CURSOR_Y = _misc_.SYS_CURSOR_Y
110 SYS_DCLICK_X = _misc_.SYS_DCLICK_X
111 SYS_DCLICK_Y = _misc_.SYS_DCLICK_Y
112 SYS_DRAG_X = _misc_.SYS_DRAG_X
113 SYS_DRAG_Y = _misc_.SYS_DRAG_Y
114 SYS_EDGE_X = _misc_.SYS_EDGE_X
115 SYS_EDGE_Y = _misc_.SYS_EDGE_Y
116 SYS_HSCROLL_ARROW_X = _misc_.SYS_HSCROLL_ARROW_X
117 SYS_HSCROLL_ARROW_Y = _misc_.SYS_HSCROLL_ARROW_Y
118 SYS_HTHUMB_X = _misc_.SYS_HTHUMB_X
119 SYS_ICON_X = _misc_.SYS_ICON_X
120 SYS_ICON_Y = _misc_.SYS_ICON_Y
121 SYS_ICONSPACING_X = _misc_.SYS_ICONSPACING_X
122 SYS_ICONSPACING_Y = _misc_.SYS_ICONSPACING_Y
123 SYS_WINDOWMIN_X = _misc_.SYS_WINDOWMIN_X
124 SYS_WINDOWMIN_Y = _misc_.SYS_WINDOWMIN_Y
125 SYS_SCREEN_X = _misc_.SYS_SCREEN_X
126 SYS_SCREEN_Y = _misc_.SYS_SCREEN_Y
127 SYS_FRAMESIZE_X = _misc_.SYS_FRAMESIZE_X
128 SYS_FRAMESIZE_Y = _misc_.SYS_FRAMESIZE_Y
129 SYS_SMALLICON_X = _misc_.SYS_SMALLICON_X
130 SYS_SMALLICON_Y = _misc_.SYS_SMALLICON_Y
131 SYS_HSCROLL_Y = _misc_.SYS_HSCROLL_Y
132 SYS_VSCROLL_X = _misc_.SYS_VSCROLL_X
133 SYS_VSCROLL_ARROW_X = _misc_.SYS_VSCROLL_ARROW_X
134 SYS_VSCROLL_ARROW_Y = _misc_.SYS_VSCROLL_ARROW_Y
135 SYS_VTHUMB_Y = _misc_.SYS_VTHUMB_Y
136 SYS_CAPTION_Y = _misc_.SYS_CAPTION_Y
137 SYS_MENU_Y = _misc_.SYS_MENU_Y
138 SYS_NETWORK_PRESENT = _misc_.SYS_NETWORK_PRESENT
139 SYS_PENWINDOWS_PRESENT = _misc_.SYS_PENWINDOWS_PRESENT
140 SYS_SHOW_SOUNDS = _misc_.SYS_SHOW_SOUNDS
141 SYS_SWAP_BUTTONS = _misc_.SYS_SWAP_BUTTONS
142 SYS_CAN_DRAW_FRAME_DECORATIONS = _misc_.SYS_CAN_DRAW_FRAME_DECORATIONS
143 SYS_CAN_ICONIZE_FRAME = _misc_.SYS_CAN_ICONIZE_FRAME
144 SYS_TABLET_PRESENT = _misc_.SYS_TABLET_PRESENT
145 SYS_SCREEN_NONE = _misc_.SYS_SCREEN_NONE
146 SYS_SCREEN_TINY = _misc_.SYS_SCREEN_TINY
147 SYS_SCREEN_PDA = _misc_.SYS_SCREEN_PDA
148 SYS_SCREEN_SMALL = _misc_.SYS_SCREEN_SMALL
149 SYS_SCREEN_DESKTOP = _misc_.SYS_SCREEN_DESKTOP
150 class SystemSettings(object):
151 """Proxy of C++ SystemSettings class"""
152 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
153 def __init__(self): raise AttributeError, "No constructor defined"
154 __repr__ = _swig_repr
155 def GetColour(*args, **kwargs):
156 """GetColour(int index) -> Colour"""
157 return _misc_.SystemSettings_GetColour(*args, **kwargs)
158
159 GetColour = staticmethod(GetColour)
160 def GetFont(*args, **kwargs):
161 """GetFont(int index) -> Font"""
162 return _misc_.SystemSettings_GetFont(*args, **kwargs)
163
164 GetFont = staticmethod(GetFont)
165 def GetMetric(*args, **kwargs):
166 """GetMetric(int index, Window win=None) -> int"""
167 return _misc_.SystemSettings_GetMetric(*args, **kwargs)
168
169 GetMetric = staticmethod(GetMetric)
170 def HasFeature(*args, **kwargs):
171 """HasFeature(int index) -> bool"""
172 return _misc_.SystemSettings_HasFeature(*args, **kwargs)
173
174 HasFeature = staticmethod(HasFeature)
175 def GetScreenType(*args, **kwargs):
176 """GetScreenType() -> int"""
177 return _misc_.SystemSettings_GetScreenType(*args, **kwargs)
178
179 GetScreenType = staticmethod(GetScreenType)
180 def SetScreenType(*args, **kwargs):
181 """SetScreenType(int screen)"""
182 return _misc_.SystemSettings_SetScreenType(*args, **kwargs)
183
184 SetScreenType = staticmethod(SetScreenType)
185 _misc_.SystemSettings_swigregister(SystemSettings)
186
187 def SystemSettings_GetColour(*args, **kwargs):
188 """SystemSettings_GetColour(int index) -> Colour"""
189 return _misc_.SystemSettings_GetColour(*args, **kwargs)
190
191 def SystemSettings_GetFont(*args, **kwargs):
192 """SystemSettings_GetFont(int index) -> Font"""
193 return _misc_.SystemSettings_GetFont(*args, **kwargs)
194
195 def SystemSettings_GetMetric(*args, **kwargs):
196 """SystemSettings_GetMetric(int index, Window win=None) -> int"""
197 return _misc_.SystemSettings_GetMetric(*args, **kwargs)
198
199 def SystemSettings_HasFeature(*args, **kwargs):
200 """SystemSettings_HasFeature(int index) -> bool"""
201 return _misc_.SystemSettings_HasFeature(*args, **kwargs)
202
203 def SystemSettings_GetScreenType(*args):
204 """SystemSettings_GetScreenType() -> int"""
205 return _misc_.SystemSettings_GetScreenType(*args)
206
207 def SystemSettings_SetScreenType(*args, **kwargs):
208 """SystemSettings_SetScreenType(int screen)"""
209 return _misc_.SystemSettings_SetScreenType(*args, **kwargs)
210
211 class SystemOptions(_core.Object):
212 """Proxy of C++ SystemOptions class"""
213 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
214 __repr__ = _swig_repr
215 def __init__(self, *args, **kwargs):
216 """__init__(self) -> SystemOptions"""
217 _misc_.SystemOptions_swiginit(self,_misc_.new_SystemOptions(*args, **kwargs))
218 def SetOption(*args, **kwargs):
219 """SetOption(String name, String value)"""
220 return _misc_.SystemOptions_SetOption(*args, **kwargs)
221
222 SetOption = staticmethod(SetOption)
223 def SetOptionInt(*args, **kwargs):
224 """SetOptionInt(String name, int value)"""
225 return _misc_.SystemOptions_SetOptionInt(*args, **kwargs)
226
227 SetOptionInt = staticmethod(SetOptionInt)
228 def GetOption(*args, **kwargs):
229 """GetOption(String name) -> String"""
230 return _misc_.SystemOptions_GetOption(*args, **kwargs)
231
232 GetOption = staticmethod(GetOption)
233 def GetOptionInt(*args, **kwargs):
234 """GetOptionInt(String name) -> int"""
235 return _misc_.SystemOptions_GetOptionInt(*args, **kwargs)
236
237 GetOptionInt = staticmethod(GetOptionInt)
238 def HasOption(*args, **kwargs):
239 """HasOption(String name) -> bool"""
240 return _misc_.SystemOptions_HasOption(*args, **kwargs)
241
242 HasOption = staticmethod(HasOption)
243 def IsFalse(*args, **kwargs):
244 """IsFalse(String name) -> bool"""
245 return _misc_.SystemOptions_IsFalse(*args, **kwargs)
246
247 IsFalse = staticmethod(IsFalse)
248 _misc_.SystemOptions_swigregister(SystemOptions)
249 cvar = _misc_.cvar
250 WINDOW_DEFAULT_VARIANT = cvar.WINDOW_DEFAULT_VARIANT
251
252 def SystemOptions_SetOption(*args, **kwargs):
253 """SystemOptions_SetOption(String name, String value)"""
254 return _misc_.SystemOptions_SetOption(*args, **kwargs)
255
256 def SystemOptions_SetOptionInt(*args, **kwargs):
257 """SystemOptions_SetOptionInt(String name, int value)"""
258 return _misc_.SystemOptions_SetOptionInt(*args, **kwargs)
259
260 def SystemOptions_GetOption(*args, **kwargs):
261 """SystemOptions_GetOption(String name) -> String"""
262 return _misc_.SystemOptions_GetOption(*args, **kwargs)
263
264 def SystemOptions_GetOptionInt(*args, **kwargs):
265 """SystemOptions_GetOptionInt(String name) -> int"""
266 return _misc_.SystemOptions_GetOptionInt(*args, **kwargs)
267
268 def SystemOptions_HasOption(*args, **kwargs):
269 """SystemOptions_HasOption(String name) -> bool"""
270 return _misc_.SystemOptions_HasOption(*args, **kwargs)
271
272 def SystemOptions_IsFalse(*args, **kwargs):
273 """SystemOptions_IsFalse(String name) -> bool"""
274 return _misc_.SystemOptions_IsFalse(*args, **kwargs)
275
276 #---------------------------------------------------------------------------
277
278
279 def NewId(*args):
280 """NewId() -> long"""
281 return _misc_.NewId(*args)
282
283 def RegisterId(*args, **kwargs):
284 """RegisterId(long id)"""
285 return _misc_.RegisterId(*args, **kwargs)
286
287 def GetCurrentId(*args):
288 """GetCurrentId() -> long"""
289 return _misc_.GetCurrentId(*args)
290
291 def IsStockID(*args, **kwargs):
292 """IsStockID(int id) -> bool"""
293 return _misc_.IsStockID(*args, **kwargs)
294
295 def IsStockLabel(*args, **kwargs):
296 """IsStockLabel(int id, String label) -> bool"""
297 return _misc_.IsStockLabel(*args, **kwargs)
298 STOCK_NOFLAGS = _misc_.STOCK_NOFLAGS
299 STOCK_WITH_MNEMONIC = _misc_.STOCK_WITH_MNEMONIC
300 STOCK_WITH_ACCELERATOR = _misc_.STOCK_WITH_ACCELERATOR
301
302 def GetStockLabel(*args, **kwargs):
303 """GetStockLabel(int id, long flags=STOCK_WITH_MNEMONIC) -> String"""
304 return _misc_.GetStockLabel(*args, **kwargs)
305 STOCK_MENU = _misc_.STOCK_MENU
306
307 def GetStockHelpString(*args, **kwargs):
308 """GetStockHelpString(int id, int client=STOCK_MENU) -> String"""
309 return _misc_.GetStockHelpString(*args, **kwargs)
310
311 def Bell(*args):
312 """Bell()"""
313 return _misc_.Bell(*args)
314
315 def EndBusyCursor(*args):
316 """EndBusyCursor()"""
317 return _misc_.EndBusyCursor(*args)
318
319 def GetElapsedTime(*args, **kwargs):
320 """GetElapsedTime(bool resetTimer=True) -> long"""
321 return _misc_.GetElapsedTime(*args, **kwargs)
322 GetElapsedTime = wx._deprecated(GetElapsedTime)
323
324 def IsBusy(*args):
325 """IsBusy() -> bool"""
326 return _misc_.IsBusy(*args)
327
328 def Now(*args):
329 """Now() -> String"""
330 return _misc_.Now(*args)
331
332 def Shell(*args, **kwargs):
333 """Shell(String command=EmptyString) -> bool"""
334 return _misc_.Shell(*args, **kwargs)
335
336 def StartTimer(*args):
337 """StartTimer()"""
338 return _misc_.StartTimer(*args)
339
340 def GetOsVersion(*args):
341 """GetOsVersion() -> (platform, major, minor)"""
342 return _misc_.GetOsVersion(*args)
343
344 def GetOsDescription(*args):
345 """GetOsDescription() -> String"""
346 return _misc_.GetOsDescription(*args)
347
348 def IsPlatformLittleEndian(*args):
349 """IsPlatformLittleEndian() -> bool"""
350 return _misc_.IsPlatformLittleEndian(*args)
351
352 def IsPlatform64Bit(*args):
353 """IsPlatform64Bit() -> bool"""
354 return _misc_.IsPlatform64Bit(*args)
355
356 def GetFreeMemory(*args):
357 """GetFreeMemory() -> wxMemorySize"""
358 return _misc_.GetFreeMemory(*args)
359 SHUTDOWN_POWEROFF = _misc_.SHUTDOWN_POWEROFF
360 SHUTDOWN_REBOOT = _misc_.SHUTDOWN_REBOOT
361
362 def Shutdown(*args, **kwargs):
363 """Shutdown(int wFlags) -> bool"""
364 return _misc_.Shutdown(*args, **kwargs)
365
366 def Sleep(*args, **kwargs):
367 """Sleep(int secs)"""
368 return _misc_.Sleep(*args, **kwargs)
369
370 def MilliSleep(*args, **kwargs):
371 """MilliSleep(unsigned long milliseconds)"""
372 return _misc_.MilliSleep(*args, **kwargs)
373
374 def MicroSleep(*args, **kwargs):
375 """MicroSleep(unsigned long microseconds)"""
376 return _misc_.MicroSleep(*args, **kwargs)
377 Usleep = MilliSleep
378
379 def EnableTopLevelWindows(*args, **kwargs):
380 """EnableTopLevelWindows(bool enable)"""
381 return _misc_.EnableTopLevelWindows(*args, **kwargs)
382
383 def StripMenuCodes(*args, **kwargs):
384 """StripMenuCodes(String in) -> String"""
385 return _misc_.StripMenuCodes(*args, **kwargs)
386
387 def GetEmailAddress(*args):
388 """GetEmailAddress() -> String"""
389 return _misc_.GetEmailAddress(*args)
390
391 def GetHostName(*args):
392 """GetHostName() -> String"""
393 return _misc_.GetHostName(*args)
394
395 def GetFullHostName(*args):
396 """GetFullHostName() -> String"""
397 return _misc_.GetFullHostName(*args)
398
399 def GetUserId(*args):
400 """GetUserId() -> String"""
401 return _misc_.GetUserId(*args)
402
403 def GetUserName(*args):
404 """GetUserName() -> String"""
405 return _misc_.GetUserName(*args)
406
407 def GetHomeDir(*args):
408 """GetHomeDir() -> String"""
409 return _misc_.GetHomeDir(*args)
410
411 def GetUserHome(*args, **kwargs):
412 """GetUserHome(String user=EmptyString) -> String"""
413 return _misc_.GetUserHome(*args, **kwargs)
414
415 def GetProcessId(*args):
416 """GetProcessId() -> unsigned long"""
417 return _misc_.GetProcessId(*args)
418
419 def Trap(*args):
420 """Trap()"""
421 return _misc_.Trap(*args)
422
423 def FileSelector(*args, **kwargs):
424 """
425 FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString,
426 String default_filename=EmptyString,
427 String default_extension=EmptyString,
428 String wildcard=FileSelectorDefaultWildcardStr,
429 int flags=0, Window parent=None, int x=-1,
430 int y=-1) -> String
431 """
432 return _misc_.FileSelector(*args, **kwargs)
433
434 def LoadFileSelector(*args, **kwargs):
435 """
436 LoadFileSelector(String what, String extension, String default_name=EmptyString,
437 Window parent=None) -> String
438 """
439 return _misc_.LoadFileSelector(*args, **kwargs)
440
441 def SaveFileSelector(*args, **kwargs):
442 """
443 SaveFileSelector(String what, String extension, String default_name=EmptyString,
444 Window parent=None) -> String
445 """
446 return _misc_.SaveFileSelector(*args, **kwargs)
447
448 def DirSelector(*args, **kwargs):
449 """
450 DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString,
451 long style=wxDD_DEFAULT_STYLE,
452 Point pos=DefaultPosition, Window parent=None) -> String
453 """
454 return _misc_.DirSelector(*args, **kwargs)
455
456 def GetTextFromUser(*args, **kwargs):
457 """
458 GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
459 Window parent=None,
460 int x=-1, int y=-1, bool centre=True) -> String
461 """
462 return _misc_.GetTextFromUser(*args, **kwargs)
463
464 def GetPasswordFromUser(*args, **kwargs):
465 """
466 GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString,
467 Window parent=None) -> String
468 """
469 return _misc_.GetPasswordFromUser(*args, **kwargs)
470
471 def GetSingleChoice(*args, **kwargs):
472 """
473 GetSingleChoice(String message, String caption, int choices, Window parent=None,
474 int x=-1, int y=-1, bool centre=True,
475 int width=150, int height=200) -> String
476 """
477 return _misc_.GetSingleChoice(*args, **kwargs)
478
479 def GetSingleChoiceIndex(*args, **kwargs):
480 """
481 GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None,
482 int x=-1, int y=-1, bool centre=True,
483 int width=150, int height=200) -> int
484 """
485 return _misc_.GetSingleChoiceIndex(*args, **kwargs)
486
487 def MessageBox(*args, **kwargs):
488 """
489 MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE,
490 Window parent=None, int x=-1,
491 int y=-1) -> int
492 """
493 return _misc_.MessageBox(*args, **kwargs)
494
495 def GetNumberFromUser(*args, **kwargs):
496 """
497 GetNumberFromUser(String message, String prompt, String caption, long value,
498 long min=0, long max=100, Window parent=None,
499 Point pos=DefaultPosition) -> long
500 """
501 return _misc_.GetNumberFromUser(*args, **kwargs)
502
503 def ColourDisplay(*args):
504 """ColourDisplay() -> bool"""
505 return _misc_.ColourDisplay(*args)
506
507 def DisplayDepth(*args):
508 """DisplayDepth() -> int"""
509 return _misc_.DisplayDepth(*args)
510
511 def GetDisplayDepth(*args):
512 """GetDisplayDepth() -> int"""
513 return _misc_.GetDisplayDepth(*args)
514
515 def DisplaySize(*args):
516 """DisplaySize() -> (width, height)"""
517 return _misc_.DisplaySize(*args)
518
519 def GetDisplaySize(*args):
520 """GetDisplaySize() -> Size"""
521 return _misc_.GetDisplaySize(*args)
522
523 def DisplaySizeMM(*args):
524 """DisplaySizeMM() -> (width, height)"""
525 return _misc_.DisplaySizeMM(*args)
526
527 def GetDisplaySizeMM(*args):
528 """GetDisplaySizeMM() -> Size"""
529 return _misc_.GetDisplaySizeMM(*args)
530
531 def ClientDisplayRect(*args):
532 """ClientDisplayRect() -> (x, y, width, height)"""
533 return _misc_.ClientDisplayRect(*args)
534
535 def GetClientDisplayRect(*args):
536 """GetClientDisplayRect() -> Rect"""
537 return _misc_.GetClientDisplayRect(*args)
538
539 def SetCursor(*args, **kwargs):
540 """SetCursor(Cursor cursor)"""
541 return _misc_.SetCursor(*args, **kwargs)
542
543 def GetXDisplay(*args):
544 """
545 GetXDisplay() -> void
546
547 Returns a swigified pointer to the X11 display. Returns None on
548 other platforms.
549 """
550 return _misc_.GetXDisplay(*args)
551
552 def BeginBusyCursor(*args, **kwargs):
553 """BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)"""
554 return _misc_.BeginBusyCursor(*args, **kwargs)
555
556 def GetMousePosition(*args):
557 """
558 GetMousePosition() -> Point
559
560 Get the current mouse position on the screen.
561 """
562 return _misc_.GetMousePosition(*args)
563
564 def FindWindowAtPointer(*args):
565 """
566 FindWindowAtPointer() -> Window
567
568 Returns the window currently under the mouse pointer, if it belongs to
569 this application. Otherwise it returns None.
570 """
571 return _misc_.FindWindowAtPointer(*args)
572
573 def GetActiveWindow(*args):
574 """
575 GetActiveWindow() -> Window
576
577 Get the currently active window of this application, or None
578 """
579 return _misc_.GetActiveWindow(*args)
580
581 def GenericFindWindowAtPoint(*args, **kwargs):
582 """GenericFindWindowAtPoint(Point pt) -> Window"""
583 return _misc_.GenericFindWindowAtPoint(*args, **kwargs)
584
585 def FindWindowAtPoint(*args, **kwargs):
586 """FindWindowAtPoint(Point pt) -> Window"""
587 return _misc_.FindWindowAtPoint(*args, **kwargs)
588
589 def GetTopLevelParent(*args, **kwargs):
590 """GetTopLevelParent(Window win) -> Window"""
591 return _misc_.GetTopLevelParent(*args, **kwargs)
592
593 def LaunchDefaultBrowser(*args, **kwargs):
594 """
595 LaunchDefaultBrowser(String url) -> bool
596
597 Launches the user's default browser and tells it to open the location
598 at ``url``. Returns ``True`` if the application was successfully
599 launched.
600 """
601 return _misc_.LaunchDefaultBrowser(*args, **kwargs)
602
603 def GetKeyState(*args, **kwargs):
604 """
605 GetKeyState(int key) -> bool
606
607 Get the state of a key (true if pressed or toggled on, false if not.)
608 This is generally most useful getting the state of the modifier or
609 toggle keys. On some platforms those may be the only keys that this
610 function is able to detect.
611
612 """
613 return _misc_.GetKeyState(*args, **kwargs)
614 class MouseState(object):
615 """
616 `wx.MouseState` is used to hold information about mouse button and
617 modifier key states and is what is returned from `wx.GetMouseState`.
618 """
619 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
620 __repr__ = _swig_repr
621 def __init__(self, *args, **kwargs):
622 """
623 __init__(self) -> MouseState
624
625 `wx.MouseState` is used to hold information about mouse button and
626 modifier key states and is what is returned from `wx.GetMouseState`.
627 """
628 _misc_.MouseState_swiginit(self,_misc_.new_MouseState(*args, **kwargs))
629 __swig_destroy__ = _misc_.delete_MouseState
630 __del__ = lambda self : None;
631 def GetX(*args, **kwargs):
632 """GetX(self) -> int"""
633 return _misc_.MouseState_GetX(*args, **kwargs)
634
635 def GetY(*args, **kwargs):
636 """GetY(self) -> int"""
637 return _misc_.MouseState_GetY(*args, **kwargs)
638
639 def LeftDown(*args, **kwargs):
640 """LeftDown(self) -> bool"""
641 return _misc_.MouseState_LeftDown(*args, **kwargs)
642
643 def MiddleDown(*args, **kwargs):
644 """MiddleDown(self) -> bool"""
645 return _misc_.MouseState_MiddleDown(*args, **kwargs)
646
647 def RightDown(*args, **kwargs):
648 """RightDown(self) -> bool"""
649 return _misc_.MouseState_RightDown(*args, **kwargs)
650
651 def ControlDown(*args, **kwargs):
652 """ControlDown(self) -> bool"""
653 return _misc_.MouseState_ControlDown(*args, **kwargs)
654
655 def ShiftDown(*args, **kwargs):
656 """ShiftDown(self) -> bool"""
657 return _misc_.MouseState_ShiftDown(*args, **kwargs)
658
659 def AltDown(*args, **kwargs):
660 """AltDown(self) -> bool"""
661 return _misc_.MouseState_AltDown(*args, **kwargs)
662
663 def MetaDown(*args, **kwargs):
664 """MetaDown(self) -> bool"""
665 return _misc_.MouseState_MetaDown(*args, **kwargs)
666
667 def CmdDown(*args, **kwargs):
668 """CmdDown(self) -> bool"""
669 return _misc_.MouseState_CmdDown(*args, **kwargs)
670
671 def SetX(*args, **kwargs):
672 """SetX(self, int x)"""
673 return _misc_.MouseState_SetX(*args, **kwargs)
674
675 def SetY(*args, **kwargs):
676 """SetY(self, int y)"""
677 return _misc_.MouseState_SetY(*args, **kwargs)
678
679 def SetLeftDown(*args, **kwargs):
680 """SetLeftDown(self, bool down)"""
681 return _misc_.MouseState_SetLeftDown(*args, **kwargs)
682
683 def SetMiddleDown(*args, **kwargs):
684 """SetMiddleDown(self, bool down)"""
685 return _misc_.MouseState_SetMiddleDown(*args, **kwargs)
686
687 def SetRightDown(*args, **kwargs):
688 """SetRightDown(self, bool down)"""
689 return _misc_.MouseState_SetRightDown(*args, **kwargs)
690
691 def SetControlDown(*args, **kwargs):
692 """SetControlDown(self, bool down)"""
693 return _misc_.MouseState_SetControlDown(*args, **kwargs)
694
695 def SetShiftDown(*args, **kwargs):
696 """SetShiftDown(self, bool down)"""
697 return _misc_.MouseState_SetShiftDown(*args, **kwargs)
698
699 def SetAltDown(*args, **kwargs):
700 """SetAltDown(self, bool down)"""
701 return _misc_.MouseState_SetAltDown(*args, **kwargs)
702
703 def SetMetaDown(*args, **kwargs):
704 """SetMetaDown(self, bool down)"""
705 return _misc_.MouseState_SetMetaDown(*args, **kwargs)
706
707 x = property(GetX, SetX)
708 y = property(GetY, SetY)
709 leftDown = property(LeftDown, SetLeftDown)
710 middleDown = property(MiddleDown, SetMiddleDown)
711 rightDown = property(RightDown, SetRightDown)
712 controlDown = property(ControlDown, SetControlDown)
713 shiftDown = property(ShiftDown, SetShiftDown)
714 altDown = property(AltDown, SetAltDown)
715 metaDown = property(MetaDown, SetMetaDown)
716 cmdDown = property(CmdDown)
717
718 _misc_.MouseState_swigregister(MouseState)
719 FileSelectorPromptStr = cvar.FileSelectorPromptStr
720 FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
721 DirSelectorPromptStr = cvar.DirSelectorPromptStr
722
723
724 def GetMouseState(*args):
725 """
726 GetMouseState() -> MouseState
727
728 Returns the current state of the mouse. Returns an instance of a
729 `wx.MouseState` object that contains the current position of the mouse
730 pointer in screen coordinants, as well as boolean values indicating
731 the up/down status of the mouse buttons and the modifier keys.
732 """
733 return _misc_.GetMouseState(*args)
734
735 def WakeUpMainThread(*args):
736 """WakeUpMainThread()"""
737 return _misc_.WakeUpMainThread(*args)
738
739 def MutexGuiEnter(*args):
740 """MutexGuiEnter()"""
741 return _misc_.MutexGuiEnter(*args)
742
743 def MutexGuiLeave(*args):
744 """MutexGuiLeave()"""
745 return _misc_.MutexGuiLeave(*args)
746 class MutexGuiLocker(object):
747 """Proxy of C++ MutexGuiLocker class"""
748 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
749 __repr__ = _swig_repr
750 def __init__(self, *args, **kwargs):
751 """__init__(self) -> MutexGuiLocker"""
752 _misc_.MutexGuiLocker_swiginit(self,_misc_.new_MutexGuiLocker(*args, **kwargs))
753 __swig_destroy__ = _misc_.delete_MutexGuiLocker
754 __del__ = lambda self : None;
755 _misc_.MutexGuiLocker_swigregister(MutexGuiLocker)
756
757
758 def Thread_IsMain(*args):
759 """Thread_IsMain() -> bool"""
760 return _misc_.Thread_IsMain(*args)
761 #---------------------------------------------------------------------------
762
763 class ToolTip(_core.Object):
764 """Proxy of C++ ToolTip class"""
765 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
766 __repr__ = _swig_repr
767 def __init__(self, *args, **kwargs):
768 """__init__(self, String tip) -> ToolTip"""
769 _misc_.ToolTip_swiginit(self,_misc_.new_ToolTip(*args, **kwargs))
770 __swig_destroy__ = _misc_.delete_ToolTip
771 __del__ = lambda self : None;
772 def SetTip(*args, **kwargs):
773 """SetTip(self, String tip)"""
774 return _misc_.ToolTip_SetTip(*args, **kwargs)
775
776 def GetTip(*args, **kwargs):
777 """GetTip(self) -> String"""
778 return _misc_.ToolTip_GetTip(*args, **kwargs)
779
780 def GetWindow(*args, **kwargs):
781 """GetWindow(self) -> Window"""
782 return _misc_.ToolTip_GetWindow(*args, **kwargs)
783
784 def Enable(*args, **kwargs):
785 """Enable(bool flag)"""
786 return _misc_.ToolTip_Enable(*args, **kwargs)
787
788 Enable = staticmethod(Enable)
789 def SetDelay(*args, **kwargs):
790 """SetDelay(long milliseconds)"""
791 return _misc_.ToolTip_SetDelay(*args, **kwargs)
792
793 SetDelay = staticmethod(SetDelay)
794 _misc_.ToolTip_swigregister(ToolTip)
795
796 def ToolTip_Enable(*args, **kwargs):
797 """ToolTip_Enable(bool flag)"""
798 return _misc_.ToolTip_Enable(*args, **kwargs)
799
800 def ToolTip_SetDelay(*args, **kwargs):
801 """ToolTip_SetDelay(long milliseconds)"""
802 return _misc_.ToolTip_SetDelay(*args, **kwargs)
803
804 class Caret(object):
805 """Proxy of C++ Caret class"""
806 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
807 __repr__ = _swig_repr
808 def __init__(self, *args, **kwargs):
809 """__init__(self, Window window, Size size) -> Caret"""
810 _misc_.Caret_swiginit(self,_misc_.new_Caret(*args, **kwargs))
811 __swig_destroy__ = _misc_.delete_Caret
812 __del__ = lambda self : None;
813 def Destroy(*args, **kwargs):
814 """
815 Destroy(self)
816
817 Deletes the C++ object this Python object is a proxy for.
818 """
819 val = _misc_.Caret_Destroy(*args, **kwargs)
820 args[0].thisown = 0
821 return val
822
823 def IsOk(*args, **kwargs):
824 """IsOk(self) -> bool"""
825 return _misc_.Caret_IsOk(*args, **kwargs)
826
827 def IsVisible(*args, **kwargs):
828 """IsVisible(self) -> bool"""
829 return _misc_.Caret_IsVisible(*args, **kwargs)
830
831 def GetPosition(*args, **kwargs):
832 """GetPosition(self) -> Point"""
833 return _misc_.Caret_GetPosition(*args, **kwargs)
834
835 def GetPositionTuple(*args, **kwargs):
836 """GetPositionTuple() -> (x,y)"""
837 return _misc_.Caret_GetPositionTuple(*args, **kwargs)
838
839 def GetSize(*args, **kwargs):
840 """GetSize(self) -> Size"""
841 return _misc_.Caret_GetSize(*args, **kwargs)
842
843 def GetSizeTuple(*args, **kwargs):
844 """GetSizeTuple() -> (width, height)"""
845 return _misc_.Caret_GetSizeTuple(*args, **kwargs)
846
847 def GetWindow(*args, **kwargs):
848 """GetWindow(self) -> Window"""
849 return _misc_.Caret_GetWindow(*args, **kwargs)
850
851 def MoveXY(*args, **kwargs):
852 """MoveXY(self, int x, int y)"""
853 return _misc_.Caret_MoveXY(*args, **kwargs)
854
855 def Move(*args, **kwargs):
856 """Move(self, Point pt)"""
857 return _misc_.Caret_Move(*args, **kwargs)
858
859 def SetSizeWH(*args, **kwargs):
860 """SetSizeWH(self, int width, int height)"""
861 return _misc_.Caret_SetSizeWH(*args, **kwargs)
862
863 def SetSize(*args, **kwargs):
864 """SetSize(self, Size size)"""
865 return _misc_.Caret_SetSize(*args, **kwargs)
866
867 def Show(*args, **kwargs):
868 """Show(self, int show=True)"""
869 return _misc_.Caret_Show(*args, **kwargs)
870
871 def Hide(*args, **kwargs):
872 """Hide(self)"""
873 return _misc_.Caret_Hide(*args, **kwargs)
874
875 def __nonzero__(self): return self.IsOk()
876 def GetBlinkTime(*args, **kwargs):
877 """GetBlinkTime() -> int"""
878 return _misc_.Caret_GetBlinkTime(*args, **kwargs)
879
880 GetBlinkTime = staticmethod(GetBlinkTime)
881 def SetBlinkTime(*args, **kwargs):
882 """SetBlinkTime(int milliseconds)"""
883 return _misc_.Caret_SetBlinkTime(*args, **kwargs)
884
885 SetBlinkTime = staticmethod(SetBlinkTime)
886 Position = property(GetPosition,doc="See `GetPosition`")
887 Size = property(GetSize,SetSize,doc="See `GetSize` and `SetSize`")
888 Window = property(GetWindow,doc="See `GetWindow`")
889 _misc_.Caret_swigregister(Caret)
890
891 def Caret_GetBlinkTime(*args):
892 """Caret_GetBlinkTime() -> int"""
893 return _misc_.Caret_GetBlinkTime(*args)
894
895 def Caret_SetBlinkTime(*args, **kwargs):
896 """Caret_SetBlinkTime(int milliseconds)"""
897 return _misc_.Caret_SetBlinkTime(*args, **kwargs)
898
899 class BusyCursor(object):
900 """Proxy of C++ BusyCursor class"""
901 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
902 __repr__ = _swig_repr
903 def __init__(self, *args, **kwargs):
904 """__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor"""
905 _misc_.BusyCursor_swiginit(self,_misc_.new_BusyCursor(*args, **kwargs))
906 __swig_destroy__ = _misc_.delete_BusyCursor
907 __del__ = lambda self : None;
908 _misc_.BusyCursor_swigregister(BusyCursor)
909
910 class WindowDisabler(object):
911 """Proxy of C++ WindowDisabler class"""
912 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
913 __repr__ = _swig_repr
914 def __init__(self, *args, **kwargs):
915 """__init__(self, Window winToSkip=None) -> WindowDisabler"""
916 _misc_.WindowDisabler_swiginit(self,_misc_.new_WindowDisabler(*args, **kwargs))
917 __swig_destroy__ = _misc_.delete_WindowDisabler
918 __del__ = lambda self : None;
919 _misc_.WindowDisabler_swigregister(WindowDisabler)
920
921 class BusyInfo(_core.Object):
922 """Proxy of C++ BusyInfo class"""
923 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
924 __repr__ = _swig_repr
925 def __init__(self, *args, **kwargs):
926 """__init__(self, String message) -> BusyInfo"""
927 _misc_.BusyInfo_swiginit(self,_misc_.new_BusyInfo(*args, **kwargs))
928 __swig_destroy__ = _misc_.delete_BusyInfo
929 __del__ = lambda self : None;
930 def Destroy(self): pass
931 _misc_.BusyInfo_swigregister(BusyInfo)
932
933 class StopWatch(object):
934 """Proxy of C++ StopWatch class"""
935 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
936 __repr__ = _swig_repr
937 def __init__(self, *args, **kwargs):
938 """__init__(self) -> StopWatch"""
939 _misc_.StopWatch_swiginit(self,_misc_.new_StopWatch(*args, **kwargs))
940 def Start(*args, **kwargs):
941 """Start(self, long t0=0)"""
942 return _misc_.StopWatch_Start(*args, **kwargs)
943
944 def Pause(*args, **kwargs):
945 """Pause(self)"""
946 return _misc_.StopWatch_Pause(*args, **kwargs)
947
948 def Resume(*args, **kwargs):
949 """Resume(self)"""
950 return _misc_.StopWatch_Resume(*args, **kwargs)
951
952 def Time(*args, **kwargs):
953 """Time(self) -> long"""
954 return _misc_.StopWatch_Time(*args, **kwargs)
955
956 _misc_.StopWatch_swigregister(StopWatch)
957
958 class FileHistory(_core.Object):
959 """Proxy of C++ FileHistory class"""
960 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
961 __repr__ = _swig_repr
962 def __init__(self, *args, **kwargs):
963 """__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory"""
964 _misc_.FileHistory_swiginit(self,_misc_.new_FileHistory(*args, **kwargs))
965 __swig_destroy__ = _misc_.delete_FileHistory
966 __del__ = lambda self : None;
967 def AddFileToHistory(*args, **kwargs):
968 """AddFileToHistory(self, String file)"""
969 return _misc_.FileHistory_AddFileToHistory(*args, **kwargs)
970
971 def RemoveFileFromHistory(*args, **kwargs):
972 """RemoveFileFromHistory(self, int i)"""
973 return _misc_.FileHistory_RemoveFileFromHistory(*args, **kwargs)
974
975 def GetMaxFiles(*args, **kwargs):
976 """GetMaxFiles(self) -> int"""
977 return _misc_.FileHistory_GetMaxFiles(*args, **kwargs)
978
979 def UseMenu(*args, **kwargs):
980 """UseMenu(self, Menu menu)"""
981 return _misc_.FileHistory_UseMenu(*args, **kwargs)
982
983 def RemoveMenu(*args, **kwargs):
984 """RemoveMenu(self, Menu menu)"""
985 return _misc_.FileHistory_RemoveMenu(*args, **kwargs)
986
987 def Load(*args, **kwargs):
988 """Load(self, ConfigBase config)"""
989 return _misc_.FileHistory_Load(*args, **kwargs)
990
991 def Save(*args, **kwargs):
992 """Save(self, ConfigBase config)"""
993 return _misc_.FileHistory_Save(*args, **kwargs)
994
995 def AddFilesToMenu(*args, **kwargs):
996 """AddFilesToMenu(self)"""
997 return _misc_.FileHistory_AddFilesToMenu(*args, **kwargs)
998
999 def AddFilesToThisMenu(*args, **kwargs):
1000 """AddFilesToThisMenu(self, Menu menu)"""
1001 return _misc_.FileHistory_AddFilesToThisMenu(*args, **kwargs)
1002
1003 def GetHistoryFile(*args, **kwargs):
1004 """GetHistoryFile(self, int i) -> String"""
1005 return _misc_.FileHistory_GetHistoryFile(*args, **kwargs)
1006
1007 def GetCount(*args, **kwargs):
1008 """GetCount(self) -> int"""
1009 return _misc_.FileHistory_GetCount(*args, **kwargs)
1010
1011 GetNoHistoryFiles = GetCount
1012 Count = property(GetCount,doc="See `GetCount`")
1013 HistoryFile = property(GetHistoryFile,doc="See `GetHistoryFile`")
1014 MaxFiles = property(GetMaxFiles,doc="See `GetMaxFiles`")
1015 NoHistoryFiles = property(GetNoHistoryFiles,doc="See `GetNoHistoryFiles`")
1016 _misc_.FileHistory_swigregister(FileHistory)
1017
1018 class SingleInstanceChecker(object):
1019 """Proxy of C++ SingleInstanceChecker class"""
1020 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1021 __repr__ = _swig_repr
1022 def __init__(self, *args, **kwargs):
1023 """__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker"""
1024 _misc_.SingleInstanceChecker_swiginit(self,_misc_.new_SingleInstanceChecker(*args, **kwargs))
1025 __swig_destroy__ = _misc_.delete_SingleInstanceChecker
1026 __del__ = lambda self : None;
1027 def Create(*args, **kwargs):
1028 """Create(self, String name, String path=EmptyString) -> bool"""
1029 return _misc_.SingleInstanceChecker_Create(*args, **kwargs)
1030
1031 def IsAnotherRunning(*args, **kwargs):
1032 """IsAnotherRunning(self) -> bool"""
1033 return _misc_.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs)
1034
1035 _misc_.SingleInstanceChecker_swigregister(SingleInstanceChecker)
1036
1037 def PreSingleInstanceChecker(*args, **kwargs):
1038 """PreSingleInstanceChecker() -> SingleInstanceChecker"""
1039 val = _misc_.new_PreSingleInstanceChecker(*args, **kwargs)
1040 return val
1041
1042 #---------------------------------------------------------------------------
1043
1044 OS_UNKNOWN = _misc_.OS_UNKNOWN
1045 OS_MAC_OS = _misc_.OS_MAC_OS
1046 OS_MAC_OSX_DARWIN = _misc_.OS_MAC_OSX_DARWIN
1047 OS_MAC = _misc_.OS_MAC
1048 OS_WINDOWS_9X = _misc_.OS_WINDOWS_9X
1049 OS_WINDOWS_NT = _misc_.OS_WINDOWS_NT
1050 OS_WINDOWS_MICRO = _misc_.OS_WINDOWS_MICRO
1051 OS_WINDOWS_CE = _misc_.OS_WINDOWS_CE
1052 OS_WINDOWS = _misc_.OS_WINDOWS
1053 OS_UNIX_LINUX = _misc_.OS_UNIX_LINUX
1054 OS_UNIX_FREEBSD = _misc_.OS_UNIX_FREEBSD
1055 OS_UNIX_OPENBSD = _misc_.OS_UNIX_OPENBSD
1056 OS_UNIX_NETBSD = _misc_.OS_UNIX_NETBSD
1057 OS_UNIX_SOLARIS = _misc_.OS_UNIX_SOLARIS
1058 OS_UNIX_AIX = _misc_.OS_UNIX_AIX
1059 OS_UNIX_HPUX = _misc_.OS_UNIX_HPUX
1060 OS_UNIX = _misc_.OS_UNIX
1061 OS_DOS = _misc_.OS_DOS
1062 OS_OS2 = _misc_.OS_OS2
1063 PORT_UNKNOWN = _misc_.PORT_UNKNOWN
1064 PORT_BASE = _misc_.PORT_BASE
1065 PORT_MSW = _misc_.PORT_MSW
1066 PORT_MOTIF = _misc_.PORT_MOTIF
1067 PORT_GTK = _misc_.PORT_GTK
1068 PORT_MGL = _misc_.PORT_MGL
1069 PORT_X11 = _misc_.PORT_X11
1070 PORT_PM = _misc_.PORT_PM
1071 PORT_OS2 = _misc_.PORT_OS2
1072 PORT_MAC = _misc_.PORT_MAC
1073 PORT_COCOA = _misc_.PORT_COCOA
1074 PORT_WINCE = _misc_.PORT_WINCE
1075 PORT_PALMOS = _misc_.PORT_PALMOS
1076 PORT_DFB = _misc_.PORT_DFB
1077 ARCH_INVALID = _misc_.ARCH_INVALID
1078 ARCH_32 = _misc_.ARCH_32
1079 ARCH_64 = _misc_.ARCH_64
1080 ARCH_MAX = _misc_.ARCH_MAX
1081 ENDIAN_INVALID = _misc_.ENDIAN_INVALID
1082 ENDIAN_BIG = _misc_.ENDIAN_BIG
1083 ENDIAN_LITTLE = _misc_.ENDIAN_LITTLE
1084 ENDIAN_PDP = _misc_.ENDIAN_PDP
1085 ENDIAN_MAX = _misc_.ENDIAN_MAX
1086 class PlatformInformation(object):
1087 """Proxy of C++ PlatformInformation class"""
1088 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1089 __repr__ = _swig_repr
1090 def __init__(self, *args, **kwargs):
1091 """__init__(self) -> PlatformInformation"""
1092 _misc_.PlatformInformation_swiginit(self,_misc_.new_PlatformInformation(*args, **kwargs))
1093 def __eq__(*args, **kwargs):
1094 """__eq__(self, PlatformInformation t) -> bool"""
1095 return _misc_.PlatformInformation___eq__(*args, **kwargs)
1096
1097 def __ne__(*args, **kwargs):
1098 """__ne__(self, PlatformInformation t) -> bool"""
1099 return _misc_.PlatformInformation___ne__(*args, **kwargs)
1100
1101 def GetOSMajorVersion(*args, **kwargs):
1102 """GetOSMajorVersion(self) -> int"""
1103 return _misc_.PlatformInformation_GetOSMajorVersion(*args, **kwargs)
1104
1105 def GetOSMinorVersion(*args, **kwargs):
1106 """GetOSMinorVersion(self) -> int"""
1107 return _misc_.PlatformInformation_GetOSMinorVersion(*args, **kwargs)
1108
1109 def GetToolkitMajorVersion(*args, **kwargs):
1110 """GetToolkitMajorVersion(self) -> int"""
1111 return _misc_.PlatformInformation_GetToolkitMajorVersion(*args, **kwargs)
1112
1113 def GetToolkitMinorVersion(*args, **kwargs):
1114 """GetToolkitMinorVersion(self) -> int"""
1115 return _misc_.PlatformInformation_GetToolkitMinorVersion(*args, **kwargs)
1116
1117 def IsUsingUniversalWidgets(*args, **kwargs):
1118 """IsUsingUniversalWidgets(self) -> bool"""
1119 return _misc_.PlatformInformation_IsUsingUniversalWidgets(*args, **kwargs)
1120
1121 def GetOperatingSystemId(*args, **kwargs):
1122 """GetOperatingSystemId(self) -> int"""
1123 return _misc_.PlatformInformation_GetOperatingSystemId(*args, **kwargs)
1124
1125 def GetPortId(*args, **kwargs):
1126 """GetPortId(self) -> int"""
1127 return _misc_.PlatformInformation_GetPortId(*args, **kwargs)
1128
1129 def GetArchitecture(*args, **kwargs):
1130 """GetArchitecture(self) -> int"""
1131 return _misc_.PlatformInformation_GetArchitecture(*args, **kwargs)
1132
1133 def GetEndianness(*args, **kwargs):
1134 """GetEndianness(self) -> int"""
1135 return _misc_.PlatformInformation_GetEndianness(*args, **kwargs)
1136
1137 def GetOperatingSystemFamilyName(*args, **kwargs):
1138 """GetOperatingSystemFamilyName(self) -> String"""
1139 return _misc_.PlatformInformation_GetOperatingSystemFamilyName(*args, **kwargs)
1140
1141 def GetOperatingSystemIdName(*args, **kwargs):
1142 """GetOperatingSystemIdName(self) -> String"""
1143 return _misc_.PlatformInformation_GetOperatingSystemIdName(*args, **kwargs)
1144
1145 def GetPortIdName(*args, **kwargs):
1146 """GetPortIdName(self) -> String"""
1147 return _misc_.PlatformInformation_GetPortIdName(*args, **kwargs)
1148
1149 def GetPortIdShortName(*args, **kwargs):
1150 """GetPortIdShortName(self) -> String"""
1151 return _misc_.PlatformInformation_GetPortIdShortName(*args, **kwargs)
1152
1153 def GetArchName(*args, **kwargs):
1154 """GetArchName(self) -> String"""
1155 return _misc_.PlatformInformation_GetArchName(*args, **kwargs)
1156
1157 def GetEndiannessName(*args, **kwargs):
1158 """GetEndiannessName(self) -> String"""
1159 return _misc_.PlatformInformation_GetEndiannessName(*args, **kwargs)
1160
1161 def SetOSVersion(*args, **kwargs):
1162 """SetOSVersion(self, int major, int minor)"""
1163 return _misc_.PlatformInformation_SetOSVersion(*args, **kwargs)
1164
1165 def SetToolkitVersion(*args, **kwargs):
1166 """SetToolkitVersion(self, int major, int minor)"""
1167 return _misc_.PlatformInformation_SetToolkitVersion(*args, **kwargs)
1168
1169 def SetOperatingSystemId(*args, **kwargs):
1170 """SetOperatingSystemId(self, int n)"""
1171 return _misc_.PlatformInformation_SetOperatingSystemId(*args, **kwargs)
1172
1173 def SetPortId(*args, **kwargs):
1174 """SetPortId(self, int n)"""
1175 return _misc_.PlatformInformation_SetPortId(*args, **kwargs)
1176
1177 def SetArchitecture(*args, **kwargs):
1178 """SetArchitecture(self, int n)"""
1179 return _misc_.PlatformInformation_SetArchitecture(*args, **kwargs)
1180
1181 def SetEndianness(*args, **kwargs):
1182 """SetEndianness(self, int n)"""
1183 return _misc_.PlatformInformation_SetEndianness(*args, **kwargs)
1184
1185 def IsOk(*args, **kwargs):
1186 """IsOk(self) -> bool"""
1187 return _misc_.PlatformInformation_IsOk(*args, **kwargs)
1188
1189 ArchName = property(GetArchName,doc="See `GetArchName`")
1190 Architecture = property(GetArchitecture,SetArchitecture,doc="See `GetArchitecture` and `SetArchitecture`")
1191 Endianness = property(GetEndianness,SetEndianness,doc="See `GetEndianness` and `SetEndianness`")
1192 EndiannessName = property(GetEndiannessName,doc="See `GetEndiannessName`")
1193 OSMajorVersion = property(GetOSMajorVersion,doc="See `GetOSMajorVersion`")
1194 OSMinorVersion = property(GetOSMinorVersion,doc="See `GetOSMinorVersion`")
1195 OperatingSystemFamilyName = property(GetOperatingSystemFamilyName,doc="See `GetOperatingSystemFamilyName`")
1196 OperatingSystemId = property(GetOperatingSystemId,SetOperatingSystemId,doc="See `GetOperatingSystemId` and `SetOperatingSystemId`")
1197 OperatingSystemIdName = property(GetOperatingSystemIdName,doc="See `GetOperatingSystemIdName`")
1198 PortId = property(GetPortId,SetPortId,doc="See `GetPortId` and `SetPortId`")
1199 PortIdName = property(GetPortIdName,doc="See `GetPortIdName`")
1200 PortIdShortName = property(GetPortIdShortName,doc="See `GetPortIdShortName`")
1201 ToolkitMajorVersion = property(GetToolkitMajorVersion,doc="See `GetToolkitMajorVersion`")
1202 ToolkitMinorVersion = property(GetToolkitMinorVersion,doc="See `GetToolkitMinorVersion`")
1203 _misc_.PlatformInformation_swigregister(PlatformInformation)
1204
1205
1206 def DrawWindowOnDC(*args, **kwargs):
1207 """DrawWindowOnDC(Window window, DC dc) -> bool"""
1208 return _misc_.DrawWindowOnDC(*args, **kwargs)
1209 #---------------------------------------------------------------------------
1210
1211 class TipProvider(object):
1212 """Proxy of C++ TipProvider class"""
1213 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1214 def __init__(self): raise AttributeError, "No constructor defined"
1215 __repr__ = _swig_repr
1216 __swig_destroy__ = _misc_.delete_TipProvider
1217 __del__ = lambda self : None;
1218 def GetTip(*args, **kwargs):
1219 """GetTip(self) -> String"""
1220 return _misc_.TipProvider_GetTip(*args, **kwargs)
1221
1222 def GetCurrentTip(*args, **kwargs):
1223 """GetCurrentTip(self) -> size_t"""
1224 return _misc_.TipProvider_GetCurrentTip(*args, **kwargs)
1225
1226 def PreprocessTip(*args, **kwargs):
1227 """PreprocessTip(self, String tip) -> String"""
1228 return _misc_.TipProvider_PreprocessTip(*args, **kwargs)
1229
1230 _misc_.TipProvider_swigregister(TipProvider)
1231
1232 class PyTipProvider(TipProvider):
1233 """Proxy of C++ PyTipProvider class"""
1234 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1235 __repr__ = _swig_repr
1236 def __init__(self, *args, **kwargs):
1237 """__init__(self, size_t currentTip) -> PyTipProvider"""
1238 _misc_.PyTipProvider_swiginit(self,_misc_.new_PyTipProvider(*args, **kwargs))
1239 self._setCallbackInfo(self, PyTipProvider)
1240
1241 def _setCallbackInfo(*args, **kwargs):
1242 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1243 return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs)
1244
1245 _misc_.PyTipProvider_swigregister(PyTipProvider)
1246
1247
1248 def ShowTip(*args, **kwargs):
1249 """ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool"""
1250 return _misc_.ShowTip(*args, **kwargs)
1251
1252 def CreateFileTipProvider(*args, **kwargs):
1253 """CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider"""
1254 return _misc_.CreateFileTipProvider(*args, **kwargs)
1255 #---------------------------------------------------------------------------
1256
1257 TIMER_CONTINUOUS = _misc_.TIMER_CONTINUOUS
1258 TIMER_ONE_SHOT = _misc_.TIMER_ONE_SHOT
1259 wxEVT_TIMER = _misc_.wxEVT_TIMER
1260 class Timer(_core.EvtHandler):
1261 """Proxy of C++ Timer class"""
1262 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1263 __repr__ = _swig_repr
1264 def __init__(self, *args, **kwargs):
1265 """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer"""
1266 _misc_.Timer_swiginit(self,_misc_.new_Timer(*args, **kwargs))
1267 self._setCallbackInfo(self, Timer, 0); self._setOORInfo(self, 0)
1268
1269 __swig_destroy__ = _misc_.delete_Timer
1270 __del__ = lambda self : None;
1271 def _setCallbackInfo(*args, **kwargs):
1272 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)"""
1273 return _misc_.Timer__setCallbackInfo(*args, **kwargs)
1274
1275 def SetOwner(*args, **kwargs):
1276 """SetOwner(self, EvtHandler owner, int id=ID_ANY)"""
1277 return _misc_.Timer_SetOwner(*args, **kwargs)
1278
1279 def GetOwner(*args, **kwargs):
1280 """GetOwner(self) -> EvtHandler"""
1281 return _misc_.Timer_GetOwner(*args, **kwargs)
1282
1283 def Start(*args, **kwargs):
1284 """Start(self, int milliseconds=-1, bool oneShot=False) -> bool"""
1285 return _misc_.Timer_Start(*args, **kwargs)
1286
1287 def Stop(*args, **kwargs):
1288 """Stop(self)"""
1289 return _misc_.Timer_Stop(*args, **kwargs)
1290
1291 def Notify(*args, **kwargs):
1292 """Notify(self)"""
1293 return _misc_.Timer_Notify(*args, **kwargs)
1294
1295 def IsRunning(*args, **kwargs):
1296 """IsRunning(self) -> bool"""
1297 return _misc_.Timer_IsRunning(*args, **kwargs)
1298
1299 def GetInterval(*args, **kwargs):
1300 """GetInterval(self) -> int"""
1301 return _misc_.Timer_GetInterval(*args, **kwargs)
1302
1303 def GetId(*args, **kwargs):
1304 """GetId(self) -> int"""
1305 return _misc_.Timer_GetId(*args, **kwargs)
1306
1307 def IsOneShot(*args, **kwargs):
1308 """IsOneShot(self) -> bool"""
1309 return _misc_.Timer_IsOneShot(*args, **kwargs)
1310
1311 def Destroy(self):
1312 """NO-OP: Timers must be destroyed by normal reference counting"""
1313 pass
1314
1315 _misc_.Timer_swigregister(Timer)
1316
1317 # For backwards compatibility with 2.4
1318 class PyTimer(Timer):
1319 def __init__(self, notify):
1320 Timer.__init__(self)
1321 self.notify = notify
1322
1323 def Notify(self):
1324 if self.notify:
1325 self.notify()
1326
1327
1328 EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 )
1329
1330
1331 class TimerEvent(_core.Event):
1332 """Proxy of C++ TimerEvent class"""
1333 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1334 __repr__ = _swig_repr
1335 def __init__(self, *args, **kwargs):
1336 """__init__(self, int timerid=0, int interval=0) -> TimerEvent"""
1337 _misc_.TimerEvent_swiginit(self,_misc_.new_TimerEvent(*args, **kwargs))
1338 def GetInterval(*args, **kwargs):
1339 """GetInterval(self) -> int"""
1340 return _misc_.TimerEvent_GetInterval(*args, **kwargs)
1341
1342 _misc_.TimerEvent_swigregister(TimerEvent)
1343
1344 class TimerRunner(object):
1345 """Proxy of C++ TimerRunner class"""
1346 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1347 __repr__ = _swig_repr
1348 def __init__(self, *args):
1349 """
1350 __init__(self, wxTimer timer) -> TimerRunner
1351 __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
1352 """
1353 _misc_.TimerRunner_swiginit(self,_misc_.new_TimerRunner(*args))
1354 __swig_destroy__ = _misc_.delete_TimerRunner
1355 __del__ = lambda self : None;
1356 def Start(*args, **kwargs):
1357 """Start(self, int milli, bool oneShot=False)"""
1358 return _misc_.TimerRunner_Start(*args, **kwargs)
1359
1360 _misc_.TimerRunner_swigregister(TimerRunner)
1361
1362 #---------------------------------------------------------------------------
1363
1364 LOG_FatalError = _misc_.LOG_FatalError
1365 LOG_Error = _misc_.LOG_Error
1366 LOG_Warning = _misc_.LOG_Warning
1367 LOG_Message = _misc_.LOG_Message
1368 LOG_Status = _misc_.LOG_Status
1369 LOG_Info = _misc_.LOG_Info
1370 LOG_Debug = _misc_.LOG_Debug
1371 LOG_Trace = _misc_.LOG_Trace
1372 LOG_Progress = _misc_.LOG_Progress
1373 LOG_User = _misc_.LOG_User
1374 LOG_Max = _misc_.LOG_Max
1375 TRACE_MemAlloc = _misc_.TRACE_MemAlloc
1376 TRACE_Messages = _misc_.TRACE_Messages
1377 TRACE_ResAlloc = _misc_.TRACE_ResAlloc
1378 TRACE_RefCount = _misc_.TRACE_RefCount
1379 TRACE_OleCalls = _misc_.TRACE_OleCalls
1380 TraceMemAlloc = _misc_.TraceMemAlloc
1381 TraceMessages = _misc_.TraceMessages
1382 TraceResAlloc = _misc_.TraceResAlloc
1383 TraceRefCount = _misc_.TraceRefCount
1384 TraceOleCalls = _misc_.TraceOleCalls
1385 class Log(object):
1386 """Proxy of C++ Log class"""
1387 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1388 __repr__ = _swig_repr
1389 def __init__(self, *args, **kwargs):
1390 """__init__(self) -> Log"""
1391 _misc_.Log_swiginit(self,_misc_.new_Log(*args, **kwargs))
1392 __swig_destroy__ = _misc_.delete_Log
1393 __del__ = lambda self : None;
1394 def IsEnabled(*args, **kwargs):
1395 """IsEnabled() -> bool"""
1396 return _misc_.Log_IsEnabled(*args, **kwargs)
1397
1398 IsEnabled = staticmethod(IsEnabled)
1399 def EnableLogging(*args, **kwargs):
1400 """EnableLogging(bool doIt=True) -> bool"""
1401 return _misc_.Log_EnableLogging(*args, **kwargs)
1402
1403 EnableLogging = staticmethod(EnableLogging)
1404 def OnLog(*args, **kwargs):
1405 """OnLog(LogLevel level, wxChar szString, time_t t)"""
1406 return _misc_.Log_OnLog(*args, **kwargs)
1407
1408 OnLog = staticmethod(OnLog)
1409 def Flush(*args, **kwargs):
1410 """Flush(self)"""
1411 return _misc_.Log_Flush(*args, **kwargs)
1412
1413 def FlushActive(*args, **kwargs):
1414 """FlushActive()"""
1415 return _misc_.Log_FlushActive(*args, **kwargs)
1416
1417 FlushActive = staticmethod(FlushActive)
1418 def GetActiveTarget(*args, **kwargs):
1419 """GetActiveTarget() -> Log"""
1420 return _misc_.Log_GetActiveTarget(*args, **kwargs)
1421
1422 GetActiveTarget = staticmethod(GetActiveTarget)
1423 def SetActiveTarget(*args, **kwargs):
1424 """SetActiveTarget(Log pLogger) -> Log"""
1425 return _misc_.Log_SetActiveTarget(*args, **kwargs)
1426
1427 SetActiveTarget = staticmethod(SetActiveTarget)
1428 def Suspend(*args, **kwargs):
1429 """Suspend()"""
1430 return _misc_.Log_Suspend(*args, **kwargs)
1431
1432 Suspend = staticmethod(Suspend)
1433 def Resume(*args, **kwargs):
1434 """Resume()"""
1435 return _misc_.Log_Resume(*args, **kwargs)
1436
1437 Resume = staticmethod(Resume)
1438 def SetVerbose(*args, **kwargs):
1439 """SetVerbose(bool bVerbose=True)"""
1440 return _misc_.Log_SetVerbose(*args, **kwargs)
1441
1442 SetVerbose = staticmethod(SetVerbose)
1443 def SetLogLevel(*args, **kwargs):
1444 """SetLogLevel(LogLevel logLevel)"""
1445 return _misc_.Log_SetLogLevel(*args, **kwargs)
1446
1447 SetLogLevel = staticmethod(SetLogLevel)
1448 def DontCreateOnDemand(*args, **kwargs):
1449 """DontCreateOnDemand()"""
1450 return _misc_.Log_DontCreateOnDemand(*args, **kwargs)
1451
1452 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
1453 def SetRepetitionCounting(*args, **kwargs):
1454 """SetRepetitionCounting(bool bRepetCounting=True)"""
1455 return _misc_.Log_SetRepetitionCounting(*args, **kwargs)
1456
1457 SetRepetitionCounting = staticmethod(SetRepetitionCounting)
1458 def GetRepetitionCounting(*args, **kwargs):
1459 """GetRepetitionCounting() -> bool"""
1460 return _misc_.Log_GetRepetitionCounting(*args, **kwargs)
1461
1462 GetRepetitionCounting = staticmethod(GetRepetitionCounting)
1463 def SetTraceMask(*args, **kwargs):
1464 """SetTraceMask(TraceMask ulMask)"""
1465 return _misc_.Log_SetTraceMask(*args, **kwargs)
1466
1467 SetTraceMask = staticmethod(SetTraceMask)
1468 def AddTraceMask(*args, **kwargs):
1469 """AddTraceMask(String str)"""
1470 return _misc_.Log_AddTraceMask(*args, **kwargs)
1471
1472 AddTraceMask = staticmethod(AddTraceMask)
1473 def RemoveTraceMask(*args, **kwargs):
1474 """RemoveTraceMask(String str)"""
1475 return _misc_.Log_RemoveTraceMask(*args, **kwargs)
1476
1477 RemoveTraceMask = staticmethod(RemoveTraceMask)
1478 def ClearTraceMasks(*args, **kwargs):
1479 """ClearTraceMasks()"""
1480 return _misc_.Log_ClearTraceMasks(*args, **kwargs)
1481
1482 ClearTraceMasks = staticmethod(ClearTraceMasks)
1483 def GetTraceMasks(*args, **kwargs):
1484 """GetTraceMasks() -> wxArrayString"""
1485 return _misc_.Log_GetTraceMasks(*args, **kwargs)
1486
1487 GetTraceMasks = staticmethod(GetTraceMasks)
1488 def SetTimestamp(*args, **kwargs):
1489 """SetTimestamp(wxChar ts)"""
1490 return _misc_.Log_SetTimestamp(*args, **kwargs)
1491
1492 SetTimestamp = staticmethod(SetTimestamp)
1493 def GetVerbose(*args, **kwargs):
1494 """GetVerbose() -> bool"""
1495 return _misc_.Log_GetVerbose(*args, **kwargs)
1496
1497 GetVerbose = staticmethod(GetVerbose)
1498 def GetTraceMask(*args, **kwargs):
1499 """GetTraceMask() -> TraceMask"""
1500 return _misc_.Log_GetTraceMask(*args, **kwargs)
1501
1502 GetTraceMask = staticmethod(GetTraceMask)
1503 def IsAllowedTraceMask(*args, **kwargs):
1504 """IsAllowedTraceMask(wxChar mask) -> bool"""
1505 return _misc_.Log_IsAllowedTraceMask(*args, **kwargs)
1506
1507 IsAllowedTraceMask = staticmethod(IsAllowedTraceMask)
1508 def GetLogLevel(*args, **kwargs):
1509 """GetLogLevel() -> LogLevel"""
1510 return _misc_.Log_GetLogLevel(*args, **kwargs)
1511
1512 GetLogLevel = staticmethod(GetLogLevel)
1513 def GetTimestamp(*args, **kwargs):
1514 """GetTimestamp() -> wxChar"""
1515 return _misc_.Log_GetTimestamp(*args, **kwargs)
1516
1517 GetTimestamp = staticmethod(GetTimestamp)
1518 def TimeStamp(*args, **kwargs):
1519 """TimeStamp() -> String"""
1520 return _misc_.Log_TimeStamp(*args, **kwargs)
1521
1522 TimeStamp = staticmethod(TimeStamp)
1523 def Destroy(*args, **kwargs):
1524 """Destroy(self)"""
1525 val = _misc_.Log_Destroy(*args, **kwargs)
1526 args[0].thisown = 0
1527 return val
1528
1529 _misc_.Log_swigregister(Log)
1530
1531 def Log_IsEnabled(*args):
1532 """Log_IsEnabled() -> bool"""
1533 return _misc_.Log_IsEnabled(*args)
1534
1535 def Log_EnableLogging(*args, **kwargs):
1536 """Log_EnableLogging(bool doIt=True) -> bool"""
1537 return _misc_.Log_EnableLogging(*args, **kwargs)
1538
1539 def Log_OnLog(*args, **kwargs):
1540 """Log_OnLog(LogLevel level, wxChar szString, time_t t)"""
1541 return _misc_.Log_OnLog(*args, **kwargs)
1542
1543 def Log_FlushActive(*args):
1544 """Log_FlushActive()"""
1545 return _misc_.Log_FlushActive(*args)
1546
1547 def Log_GetActiveTarget(*args):
1548 """Log_GetActiveTarget() -> Log"""
1549 return _misc_.Log_GetActiveTarget(*args)
1550
1551 def Log_SetActiveTarget(*args, **kwargs):
1552 """Log_SetActiveTarget(Log pLogger) -> Log"""
1553 return _misc_.Log_SetActiveTarget(*args, **kwargs)
1554
1555 def Log_Suspend(*args):
1556 """Log_Suspend()"""
1557 return _misc_.Log_Suspend(*args)
1558
1559 def Log_Resume(*args):
1560 """Log_Resume()"""
1561 return _misc_.Log_Resume(*args)
1562
1563 def Log_SetVerbose(*args, **kwargs):
1564 """Log_SetVerbose(bool bVerbose=True)"""
1565 return _misc_.Log_SetVerbose(*args, **kwargs)
1566
1567 def Log_SetLogLevel(*args, **kwargs):
1568 """Log_SetLogLevel(LogLevel logLevel)"""
1569 return _misc_.Log_SetLogLevel(*args, **kwargs)
1570
1571 def Log_DontCreateOnDemand(*args):
1572 """Log_DontCreateOnDemand()"""
1573 return _misc_.Log_DontCreateOnDemand(*args)
1574
1575 def Log_SetRepetitionCounting(*args, **kwargs):
1576 """Log_SetRepetitionCounting(bool bRepetCounting=True)"""
1577 return _misc_.Log_SetRepetitionCounting(*args, **kwargs)
1578
1579 def Log_GetRepetitionCounting(*args):
1580 """Log_GetRepetitionCounting() -> bool"""
1581 return _misc_.Log_GetRepetitionCounting(*args)
1582
1583 def Log_SetTraceMask(*args, **kwargs):
1584 """Log_SetTraceMask(TraceMask ulMask)"""
1585 return _misc_.Log_SetTraceMask(*args, **kwargs)
1586
1587 def Log_AddTraceMask(*args, **kwargs):
1588 """Log_AddTraceMask(String str)"""
1589 return _misc_.Log_AddTraceMask(*args, **kwargs)
1590
1591 def Log_RemoveTraceMask(*args, **kwargs):
1592 """Log_RemoveTraceMask(String str)"""
1593 return _misc_.Log_RemoveTraceMask(*args, **kwargs)
1594
1595 def Log_ClearTraceMasks(*args):
1596 """Log_ClearTraceMasks()"""
1597 return _misc_.Log_ClearTraceMasks(*args)
1598
1599 def Log_GetTraceMasks(*args):
1600 """Log_GetTraceMasks() -> wxArrayString"""
1601 return _misc_.Log_GetTraceMasks(*args)
1602
1603 def Log_SetTimestamp(*args, **kwargs):
1604 """Log_SetTimestamp(wxChar ts)"""
1605 return _misc_.Log_SetTimestamp(*args, **kwargs)
1606
1607 def Log_GetVerbose(*args):
1608 """Log_GetVerbose() -> bool"""
1609 return _misc_.Log_GetVerbose(*args)
1610
1611 def Log_GetTraceMask(*args):
1612 """Log_GetTraceMask() -> TraceMask"""
1613 return _misc_.Log_GetTraceMask(*args)
1614
1615 def Log_IsAllowedTraceMask(*args, **kwargs):
1616 """Log_IsAllowedTraceMask(wxChar mask) -> bool"""
1617 return _misc_.Log_IsAllowedTraceMask(*args, **kwargs)
1618
1619 def Log_GetLogLevel(*args):
1620 """Log_GetLogLevel() -> LogLevel"""
1621 return _misc_.Log_GetLogLevel(*args)
1622
1623 def Log_GetTimestamp(*args):
1624 """Log_GetTimestamp() -> wxChar"""
1625 return _misc_.Log_GetTimestamp(*args)
1626
1627 def Log_TimeStamp(*args):
1628 """Log_TimeStamp() -> String"""
1629 return _misc_.Log_TimeStamp(*args)
1630
1631 class LogStderr(Log):
1632 """Proxy of C++ LogStderr class"""
1633 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1634 __repr__ = _swig_repr
1635 def __init__(self, *args, **kwargs):
1636 """__init__(self) -> LogStderr"""
1637 _misc_.LogStderr_swiginit(self,_misc_.new_LogStderr(*args, **kwargs))
1638 _misc_.LogStderr_swigregister(LogStderr)
1639
1640 class LogTextCtrl(Log):
1641 """Proxy of C++ LogTextCtrl class"""
1642 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1643 __repr__ = _swig_repr
1644 def __init__(self, *args, **kwargs):
1645 """__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl"""
1646 _misc_.LogTextCtrl_swiginit(self,_misc_.new_LogTextCtrl(*args, **kwargs))
1647 _misc_.LogTextCtrl_swigregister(LogTextCtrl)
1648
1649 class LogGui(Log):
1650 """Proxy of C++ LogGui class"""
1651 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1652 __repr__ = _swig_repr
1653 def __init__(self, *args, **kwargs):
1654 """__init__(self) -> LogGui"""
1655 _misc_.LogGui_swiginit(self,_misc_.new_LogGui(*args, **kwargs))
1656 _misc_.LogGui_swigregister(LogGui)
1657
1658 class LogWindow(Log):
1659 """Proxy of C++ LogWindow class"""
1660 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1661 __repr__ = _swig_repr
1662 def __init__(self, *args, **kwargs):
1663 """__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow"""
1664 _misc_.LogWindow_swiginit(self,_misc_.new_LogWindow(*args, **kwargs))
1665 def Show(*args, **kwargs):
1666 """Show(self, bool bShow=True)"""
1667 return _misc_.LogWindow_Show(*args, **kwargs)
1668
1669 def GetFrame(*args, **kwargs):
1670 """GetFrame(self) -> wxFrame"""
1671 return _misc_.LogWindow_GetFrame(*args, **kwargs)
1672
1673 def GetOldLog(*args, **kwargs):
1674 """GetOldLog(self) -> Log"""
1675 return _misc_.LogWindow_GetOldLog(*args, **kwargs)
1676
1677 def IsPassingMessages(*args, **kwargs):
1678 """IsPassingMessages(self) -> bool"""
1679 return _misc_.LogWindow_IsPassingMessages(*args, **kwargs)
1680
1681 def PassMessages(*args, **kwargs):
1682 """PassMessages(self, bool bDoPass)"""
1683 return _misc_.LogWindow_PassMessages(*args, **kwargs)
1684
1685 Frame = property(GetFrame,doc="See `GetFrame`")
1686 OldLog = property(GetOldLog,doc="See `GetOldLog`")
1687 _misc_.LogWindow_swigregister(LogWindow)
1688
1689 class LogChain(Log):
1690 """Proxy of C++ LogChain class"""
1691 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1692 __repr__ = _swig_repr
1693 def __init__(self, *args, **kwargs):
1694 """__init__(self, Log logger) -> LogChain"""
1695 _misc_.LogChain_swiginit(self,_misc_.new_LogChain(*args, **kwargs))
1696 def SetLog(*args, **kwargs):
1697 """SetLog(self, Log logger)"""
1698 return _misc_.LogChain_SetLog(*args, **kwargs)
1699
1700 def PassMessages(*args, **kwargs):
1701 """PassMessages(self, bool bDoPass)"""
1702 return _misc_.LogChain_PassMessages(*args, **kwargs)
1703
1704 def IsPassingMessages(*args, **kwargs):
1705 """IsPassingMessages(self) -> bool"""
1706 return _misc_.LogChain_IsPassingMessages(*args, **kwargs)
1707
1708 def GetOldLog(*args, **kwargs):
1709 """GetOldLog(self) -> Log"""
1710 return _misc_.LogChain_GetOldLog(*args, **kwargs)
1711
1712 OldLog = property(GetOldLog,doc="See `GetOldLog`")
1713 _misc_.LogChain_swigregister(LogChain)
1714
1715 class LogBuffer(Log):
1716 """Proxy of C++ LogBuffer class"""
1717 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1718 __repr__ = _swig_repr
1719 def __init__(self, *args, **kwargs):
1720 """__init__(self) -> LogBuffer"""
1721 _misc_.LogBuffer_swiginit(self,_misc_.new_LogBuffer(*args, **kwargs))
1722 def GetBuffer(*args, **kwargs):
1723 """GetBuffer(self) -> String"""
1724 return _misc_.LogBuffer_GetBuffer(*args, **kwargs)
1725
1726 Buffer = property(GetBuffer,doc="See `GetBuffer`")
1727 _misc_.LogBuffer_swigregister(LogBuffer)
1728
1729
1730 def SysErrorCode(*args):
1731 """SysErrorCode() -> unsigned long"""
1732 return _misc_.SysErrorCode(*args)
1733
1734 def SysErrorMsg(*args, **kwargs):
1735 """SysErrorMsg(unsigned long nErrCode=0) -> String"""
1736 return _misc_.SysErrorMsg(*args, **kwargs)
1737
1738 def LogFatalError(*args, **kwargs):
1739 """LogFatalError(String msg)"""
1740 return _misc_.LogFatalError(*args, **kwargs)
1741
1742 def LogError(*args, **kwargs):
1743 """LogError(String msg)"""
1744 return _misc_.LogError(*args, **kwargs)
1745
1746 def LogWarning(*args, **kwargs):
1747 """LogWarning(String msg)"""
1748 return _misc_.LogWarning(*args, **kwargs)
1749
1750 def LogMessage(*args, **kwargs):
1751 """LogMessage(String msg)"""
1752 return _misc_.LogMessage(*args, **kwargs)
1753
1754 def LogInfo(*args, **kwargs):
1755 """LogInfo(String msg)"""
1756 return _misc_.LogInfo(*args, **kwargs)
1757
1758 def LogDebug(*args, **kwargs):
1759 """LogDebug(String msg)"""
1760 return _misc_.LogDebug(*args, **kwargs)
1761
1762 def LogVerbose(*args, **kwargs):
1763 """LogVerbose(String msg)"""
1764 return _misc_.LogVerbose(*args, **kwargs)
1765
1766 def LogStatus(*args, **kwargs):
1767 """LogStatus(String msg)"""
1768 return _misc_.LogStatus(*args, **kwargs)
1769
1770 def LogStatusFrame(*args, **kwargs):
1771 """LogStatusFrame(wxFrame pFrame, String msg)"""
1772 return _misc_.LogStatusFrame(*args, **kwargs)
1773
1774 def LogSysError(*args, **kwargs):
1775 """LogSysError(String msg)"""
1776 return _misc_.LogSysError(*args, **kwargs)
1777
1778 def LogGeneric(*args, **kwargs):
1779 """LogGeneric(unsigned long level, String msg)"""
1780 return _misc_.LogGeneric(*args, **kwargs)
1781
1782 def SafeShowMessage(*args, **kwargs):
1783 """SafeShowMessage(String title, String text)"""
1784 return _misc_.SafeShowMessage(*args, **kwargs)
1785 class LogNull(object):
1786 """Proxy of C++ LogNull class"""
1787 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1788 __repr__ = _swig_repr
1789 def __init__(self, *args, **kwargs):
1790 """__init__(self) -> LogNull"""
1791 _misc_.LogNull_swiginit(self,_misc_.new_LogNull(*args, **kwargs))
1792 __swig_destroy__ = _misc_.delete_LogNull
1793 __del__ = lambda self : None;
1794 _misc_.LogNull_swigregister(LogNull)
1795
1796 def LogTrace(*args):
1797 """
1798 LogTrace(unsigned long mask, String msg)
1799 LogTrace(String mask, String msg)
1800 """
1801 return _misc_.LogTrace(*args)
1802
1803 class PyLog(Log):
1804 """Proxy of C++ PyLog class"""
1805 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1806 __repr__ = _swig_repr
1807 def __init__(self, *args, **kwargs):
1808 """__init__(self) -> PyLog"""
1809 _misc_.PyLog_swiginit(self,_misc_.new_PyLog(*args, **kwargs))
1810 self._setCallbackInfo(self, PyLog)
1811
1812 def _setCallbackInfo(*args, **kwargs):
1813 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1814 return _misc_.PyLog__setCallbackInfo(*args, **kwargs)
1815
1816 _misc_.PyLog_swigregister(PyLog)
1817
1818 #---------------------------------------------------------------------------
1819
1820 PROCESS_DEFAULT = _misc_.PROCESS_DEFAULT
1821 PROCESS_REDIRECT = _misc_.PROCESS_REDIRECT
1822 KILL_OK = _misc_.KILL_OK
1823 KILL_BAD_SIGNAL = _misc_.KILL_BAD_SIGNAL
1824 KILL_ACCESS_DENIED = _misc_.KILL_ACCESS_DENIED
1825 KILL_NO_PROCESS = _misc_.KILL_NO_PROCESS
1826 KILL_ERROR = _misc_.KILL_ERROR
1827 KILL_NOCHILDREN = _misc_.KILL_NOCHILDREN
1828 KILL_CHILDREN = _misc_.KILL_CHILDREN
1829 SIGNONE = _misc_.SIGNONE
1830 SIGHUP = _misc_.SIGHUP
1831 SIGINT = _misc_.SIGINT
1832 SIGQUIT = _misc_.SIGQUIT
1833 SIGILL = _misc_.SIGILL
1834 SIGTRAP = _misc_.SIGTRAP
1835 SIGABRT = _misc_.SIGABRT
1836 SIGIOT = _misc_.SIGIOT
1837 SIGEMT = _misc_.SIGEMT
1838 SIGFPE = _misc_.SIGFPE
1839 SIGKILL = _misc_.SIGKILL
1840 SIGBUS = _misc_.SIGBUS
1841 SIGSEGV = _misc_.SIGSEGV
1842 SIGSYS = _misc_.SIGSYS
1843 SIGPIPE = _misc_.SIGPIPE
1844 SIGALRM = _misc_.SIGALRM
1845 SIGTERM = _misc_.SIGTERM
1846 class Process(_core.EvtHandler):
1847 """Proxy of C++ Process class"""
1848 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1849 __repr__ = _swig_repr
1850 def Kill(*args, **kwargs):
1851 """Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1852 return _misc_.Process_Kill(*args, **kwargs)
1853
1854 Kill = staticmethod(Kill)
1855 def Exists(*args, **kwargs):
1856 """Exists(int pid) -> bool"""
1857 return _misc_.Process_Exists(*args, **kwargs)
1858
1859 Exists = staticmethod(Exists)
1860 def Open(*args, **kwargs):
1861 """Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1862 return _misc_.Process_Open(*args, **kwargs)
1863
1864 Open = staticmethod(Open)
1865 def __init__(self, *args, **kwargs):
1866 """__init__(self, EvtHandler parent=None, int id=-1) -> Process"""
1867 _misc_.Process_swiginit(self,_misc_.new_Process(*args, **kwargs))
1868 self._setCallbackInfo(self, Process)
1869
1870 def _setCallbackInfo(*args, **kwargs):
1871 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1872 return _misc_.Process__setCallbackInfo(*args, **kwargs)
1873
1874 def OnTerminate(*args, **kwargs):
1875 """OnTerminate(self, int pid, int status)"""
1876 return _misc_.Process_OnTerminate(*args, **kwargs)
1877
1878 def base_OnTerminate(*args, **kw):
1879 return Process.OnTerminate(*args, **kw)
1880 base_OnTerminate = wx._deprecated(base_OnTerminate,
1881 "Please use Process.OnTerminate instead.")
1882
1883 def Redirect(*args, **kwargs):
1884 """Redirect(self)"""
1885 return _misc_.Process_Redirect(*args, **kwargs)
1886
1887 def IsRedirected(*args, **kwargs):
1888 """IsRedirected(self) -> bool"""
1889 return _misc_.Process_IsRedirected(*args, **kwargs)
1890
1891 def Detach(*args, **kwargs):
1892 """Detach(self)"""
1893 return _misc_.Process_Detach(*args, **kwargs)
1894
1895 def GetInputStream(*args, **kwargs):
1896 """GetInputStream(self) -> InputStream"""
1897 return _misc_.Process_GetInputStream(*args, **kwargs)
1898
1899 def GetErrorStream(*args, **kwargs):
1900 """GetErrorStream(self) -> InputStream"""
1901 return _misc_.Process_GetErrorStream(*args, **kwargs)
1902
1903 def GetOutputStream(*args, **kwargs):
1904 """GetOutputStream(self) -> OutputStream"""
1905 return _misc_.Process_GetOutputStream(*args, **kwargs)
1906
1907 def CloseOutput(*args, **kwargs):
1908 """CloseOutput(self)"""
1909 return _misc_.Process_CloseOutput(*args, **kwargs)
1910
1911 def IsInputOpened(*args, **kwargs):
1912 """IsInputOpened(self) -> bool"""
1913 return _misc_.Process_IsInputOpened(*args, **kwargs)
1914
1915 def IsInputAvailable(*args, **kwargs):
1916 """IsInputAvailable(self) -> bool"""
1917 return _misc_.Process_IsInputAvailable(*args, **kwargs)
1918
1919 def IsErrorAvailable(*args, **kwargs):
1920 """IsErrorAvailable(self) -> bool"""
1921 return _misc_.Process_IsErrorAvailable(*args, **kwargs)
1922
1923 ErrorStream = property(GetErrorStream,doc="See `GetErrorStream`")
1924 InputStream = property(GetInputStream,doc="See `GetInputStream`")
1925 OutputStream = property(GetOutputStream,doc="See `GetOutputStream`")
1926 InputOpened = property(IsInputOpened)
1927 InputAvailable = property(IsInputAvailable)
1928 ErrorAvailable = property(IsErrorAvailable)
1929 _misc_.Process_swigregister(Process)
1930
1931 def Process_Kill(*args, **kwargs):
1932 """Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int"""
1933 return _misc_.Process_Kill(*args, **kwargs)
1934
1935 def Process_Exists(*args, **kwargs):
1936 """Process_Exists(int pid) -> bool"""
1937 return _misc_.Process_Exists(*args, **kwargs)
1938
1939 def Process_Open(*args, **kwargs):
1940 """Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process"""
1941 return _misc_.Process_Open(*args, **kwargs)
1942
1943 class ProcessEvent(_core.Event):
1944 """Proxy of C++ ProcessEvent class"""
1945 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1946 __repr__ = _swig_repr
1947 def __init__(self, *args, **kwargs):
1948 """__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent"""
1949 _misc_.ProcessEvent_swiginit(self,_misc_.new_ProcessEvent(*args, **kwargs))
1950 def GetPid(*args, **kwargs):
1951 """GetPid(self) -> int"""
1952 return _misc_.ProcessEvent_GetPid(*args, **kwargs)
1953
1954 def GetExitCode(*args, **kwargs):
1955 """GetExitCode(self) -> int"""
1956 return _misc_.ProcessEvent_GetExitCode(*args, **kwargs)
1957
1958 m_pid = property(_misc_.ProcessEvent_m_pid_get, _misc_.ProcessEvent_m_pid_set)
1959 m_exitcode = property(_misc_.ProcessEvent_m_exitcode_get, _misc_.ProcessEvent_m_exitcode_set)
1960 ExitCode = property(GetExitCode,doc="See `GetExitCode`")
1961 Pid = property(GetPid,doc="See `GetPid`")
1962 _misc_.ProcessEvent_swigregister(ProcessEvent)
1963
1964 wxEVT_END_PROCESS = _misc_.wxEVT_END_PROCESS
1965 EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 )
1966
1967 EXEC_ASYNC = _misc_.EXEC_ASYNC
1968 EXEC_SYNC = _misc_.EXEC_SYNC
1969 EXEC_NOHIDE = _misc_.EXEC_NOHIDE
1970 EXEC_MAKE_GROUP_LEADER = _misc_.EXEC_MAKE_GROUP_LEADER
1971 EXEC_NODISABLE = _misc_.EXEC_NODISABLE
1972
1973 def Execute(*args, **kwargs):
1974 """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long"""
1975 return _misc_.Execute(*args, **kwargs)
1976
1977 def Kill(*args, **kwargs):
1978 """Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int"""
1979 return _misc_.Kill(*args, **kwargs)
1980 #---------------------------------------------------------------------------
1981
1982 JOYSTICK1 = _misc_.JOYSTICK1
1983 JOYSTICK2 = _misc_.JOYSTICK2
1984 JOY_BUTTON_ANY = _misc_.JOY_BUTTON_ANY
1985 JOY_BUTTON1 = _misc_.JOY_BUTTON1
1986 JOY_BUTTON2 = _misc_.JOY_BUTTON2
1987 JOY_BUTTON3 = _misc_.JOY_BUTTON3
1988 JOY_BUTTON4 = _misc_.JOY_BUTTON4
1989 class Joystick(object):
1990 """Proxy of C++ Joystick class"""
1991 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1992 __repr__ = _swig_repr
1993 def __init__(self, *args, **kwargs):
1994 """__init__(self, int joystick=JOYSTICK1) -> Joystick"""
1995 _misc_.Joystick_swiginit(self,_misc_.new_Joystick(*args, **kwargs))
1996 __swig_destroy__ = _misc_.delete_Joystick
1997 __del__ = lambda self : None;
1998 def GetPosition(*args, **kwargs):
1999 """GetPosition(self) -> Point"""
2000 return _misc_.Joystick_GetPosition(*args, **kwargs)
2001
2002 def GetZPosition(*args, **kwargs):
2003 """GetZPosition(self) -> int"""
2004 return _misc_.Joystick_GetZPosition(*args, **kwargs)
2005
2006 def GetButtonState(*args, **kwargs):
2007 """GetButtonState(self) -> int"""
2008 return _misc_.Joystick_GetButtonState(*args, **kwargs)
2009
2010 def GetPOVPosition(*args, **kwargs):
2011 """GetPOVPosition(self) -> int"""
2012 return _misc_.Joystick_GetPOVPosition(*args, **kwargs)
2013
2014 def GetPOVCTSPosition(*args, **kwargs):
2015 """GetPOVCTSPosition(self) -> int"""
2016 return _misc_.Joystick_GetPOVCTSPosition(*args, **kwargs)
2017
2018 def GetRudderPosition(*args, **kwargs):
2019 """GetRudderPosition(self) -> int"""
2020 return _misc_.Joystick_GetRudderPosition(*args, **kwargs)
2021
2022 def GetUPosition(*args, **kwargs):
2023 """GetUPosition(self) -> int"""
2024 return _misc_.Joystick_GetUPosition(*args, **kwargs)
2025
2026 def GetVPosition(*args, **kwargs):
2027 """GetVPosition(self) -> int"""
2028 return _misc_.Joystick_GetVPosition(*args, **kwargs)
2029
2030 def GetMovementThreshold(*args, **kwargs):
2031 """GetMovementThreshold(self) -> int"""
2032 return _misc_.Joystick_GetMovementThreshold(*args, **kwargs)
2033
2034 def SetMovementThreshold(*args, **kwargs):
2035 """SetMovementThreshold(self, int threshold)"""
2036 return _misc_.Joystick_SetMovementThreshold(*args, **kwargs)
2037
2038 def IsOk(*args, **kwargs):
2039 """IsOk(self) -> bool"""
2040 return _misc_.Joystick_IsOk(*args, **kwargs)
2041
2042 def GetNumberJoysticks(*args, **kwargs):
2043 """GetNumberJoysticks(self) -> int"""
2044 return _misc_.Joystick_GetNumberJoysticks(*args, **kwargs)
2045
2046 def GetManufacturerId(*args, **kwargs):
2047 """GetManufacturerId(self) -> int"""
2048 return _misc_.Joystick_GetManufacturerId(*args, **kwargs)
2049
2050 def GetProductId(*args, **kwargs):
2051 """GetProductId(self) -> int"""
2052 return _misc_.Joystick_GetProductId(*args, **kwargs)
2053
2054 def GetProductName(*args, **kwargs):
2055 """GetProductName(self) -> String"""
2056 return _misc_.Joystick_GetProductName(*args, **kwargs)
2057
2058 def GetXMin(*args, **kwargs):
2059 """GetXMin(self) -> int"""
2060 return _misc_.Joystick_GetXMin(*args, **kwargs)
2061
2062 def GetYMin(*args, **kwargs):
2063 """GetYMin(self) -> int"""
2064 return _misc_.Joystick_GetYMin(*args, **kwargs)
2065
2066 def GetZMin(*args, **kwargs):
2067 """GetZMin(self) -> int"""
2068 return _misc_.Joystick_GetZMin(*args, **kwargs)
2069
2070 def GetXMax(*args, **kwargs):
2071 """GetXMax(self) -> int"""
2072 return _misc_.Joystick_GetXMax(*args, **kwargs)
2073
2074 def GetYMax(*args, **kwargs):
2075 """GetYMax(self) -> int"""
2076 return _misc_.Joystick_GetYMax(*args, **kwargs)
2077
2078 def GetZMax(*args, **kwargs):
2079 """GetZMax(self) -> int"""
2080 return _misc_.Joystick_GetZMax(*args, **kwargs)
2081
2082 def GetNumberButtons(*args, **kwargs):
2083 """GetNumberButtons(self) -> int"""
2084 return _misc_.Joystick_GetNumberButtons(*args, **kwargs)
2085
2086 def GetNumberAxes(*args, **kwargs):
2087 """GetNumberAxes(self) -> int"""
2088 return _misc_.Joystick_GetNumberAxes(*args, **kwargs)
2089
2090 def GetMaxButtons(*args, **kwargs):
2091 """GetMaxButtons(self) -> int"""
2092 return _misc_.Joystick_GetMaxButtons(*args, **kwargs)
2093
2094 def GetMaxAxes(*args, **kwargs):
2095 """GetMaxAxes(self) -> int"""
2096 return _misc_.Joystick_GetMaxAxes(*args, **kwargs)
2097
2098 def GetPollingMin(*args, **kwargs):
2099 """GetPollingMin(self) -> int"""
2100 return _misc_.Joystick_GetPollingMin(*args, **kwargs)
2101
2102 def GetPollingMax(*args, **kwargs):
2103 """GetPollingMax(self) -> int"""
2104 return _misc_.Joystick_GetPollingMax(*args, **kwargs)
2105
2106 def GetRudderMin(*args, **kwargs):
2107 """GetRudderMin(self) -> int"""
2108 return _misc_.Joystick_GetRudderMin(*args, **kwargs)
2109
2110 def GetRudderMax(*args, **kwargs):
2111 """GetRudderMax(self) -> int"""
2112 return _misc_.Joystick_GetRudderMax(*args, **kwargs)
2113
2114 def GetUMin(*args, **kwargs):
2115 """GetUMin(self) -> int"""
2116 return _misc_.Joystick_GetUMin(*args, **kwargs)
2117
2118 def GetUMax(*args, **kwargs):
2119 """GetUMax(self) -> int"""
2120 return _misc_.Joystick_GetUMax(*args, **kwargs)
2121
2122 def GetVMin(*args, **kwargs):
2123 """GetVMin(self) -> int"""
2124 return _misc_.Joystick_GetVMin(*args, **kwargs)
2125
2126 def GetVMax(*args, **kwargs):
2127 """GetVMax(self) -> int"""
2128 return _misc_.Joystick_GetVMax(*args, **kwargs)
2129
2130 def HasRudder(*args, **kwargs):
2131 """HasRudder(self) -> bool"""
2132 return _misc_.Joystick_HasRudder(*args, **kwargs)
2133
2134 def HasZ(*args, **kwargs):
2135 """HasZ(self) -> bool"""
2136 return _misc_.Joystick_HasZ(*args, **kwargs)
2137
2138 def HasU(*args, **kwargs):
2139 """HasU(self) -> bool"""
2140 return _misc_.Joystick_HasU(*args, **kwargs)
2141
2142 def HasV(*args, **kwargs):
2143 """HasV(self) -> bool"""
2144 return _misc_.Joystick_HasV(*args, **kwargs)
2145
2146 def HasPOV(*args, **kwargs):
2147 """HasPOV(self) -> bool"""
2148 return _misc_.Joystick_HasPOV(*args, **kwargs)
2149
2150 def HasPOV4Dir(*args, **kwargs):
2151 """HasPOV4Dir(self) -> bool"""
2152 return _misc_.Joystick_HasPOV4Dir(*args, **kwargs)
2153
2154 def HasPOVCTS(*args, **kwargs):
2155 """HasPOVCTS(self) -> bool"""
2156 return _misc_.Joystick_HasPOVCTS(*args, **kwargs)
2157
2158 def SetCapture(*args, **kwargs):
2159 """SetCapture(self, Window win, int pollingFreq=0) -> bool"""
2160 return _misc_.Joystick_SetCapture(*args, **kwargs)
2161
2162 def ReleaseCapture(*args, **kwargs):
2163 """ReleaseCapture(self) -> bool"""
2164 return _misc_.Joystick_ReleaseCapture(*args, **kwargs)
2165
2166 def __nonzero__(self): return self.IsOk()
2167 ButtonState = property(GetButtonState,doc="See `GetButtonState`")
2168 ManufacturerId = property(GetManufacturerId,doc="See `GetManufacturerId`")
2169 MaxAxes = property(GetMaxAxes,doc="See `GetMaxAxes`")
2170 MaxButtons = property(GetMaxButtons,doc="See `GetMaxButtons`")
2171 MovementThreshold = property(GetMovementThreshold,SetMovementThreshold,doc="See `GetMovementThreshold` and `SetMovementThreshold`")
2172 NumberAxes = property(GetNumberAxes,doc="See `GetNumberAxes`")
2173 NumberButtons = property(GetNumberButtons,doc="See `GetNumberButtons`")
2174 NumberJoysticks = property(GetNumberJoysticks,doc="See `GetNumberJoysticks`")
2175 POVCTSPosition = property(GetPOVCTSPosition,doc="See `GetPOVCTSPosition`")
2176 POVPosition = property(GetPOVPosition,doc="See `GetPOVPosition`")
2177 PollingMax = property(GetPollingMax,doc="See `GetPollingMax`")
2178 PollingMin = property(GetPollingMin,doc="See `GetPollingMin`")
2179 Position = property(GetPosition,doc="See `GetPosition`")
2180 ProductId = property(GetProductId,doc="See `GetProductId`")
2181 ProductName = property(GetProductName,doc="See `GetProductName`")
2182 RudderMax = property(GetRudderMax,doc="See `GetRudderMax`")
2183 RudderMin = property(GetRudderMin,doc="See `GetRudderMin`")
2184 RudderPosition = property(GetRudderPosition,doc="See `GetRudderPosition`")
2185 UMax = property(GetUMax,doc="See `GetUMax`")
2186 UMin = property(GetUMin,doc="See `GetUMin`")
2187 UPosition = property(GetUPosition,doc="See `GetUPosition`")
2188 VMax = property(GetVMax,doc="See `GetVMax`")
2189 VMin = property(GetVMin,doc="See `GetVMin`")
2190 VPosition = property(GetVPosition,doc="See `GetVPosition`")
2191 XMax = property(GetXMax,doc="See `GetXMax`")
2192 XMin = property(GetXMin,doc="See `GetXMin`")
2193 YMax = property(GetYMax,doc="See `GetYMax`")
2194 YMin = property(GetYMin,doc="See `GetYMin`")
2195 ZMax = property(GetZMax,doc="See `GetZMax`")
2196 ZMin = property(GetZMin,doc="See `GetZMin`")
2197 ZPosition = property(GetZPosition,doc="See `GetZPosition`")
2198 _misc_.Joystick_swigregister(Joystick)
2199
2200 wxEVT_JOY_BUTTON_DOWN = _misc_.wxEVT_JOY_BUTTON_DOWN
2201 wxEVT_JOY_BUTTON_UP = _misc_.wxEVT_JOY_BUTTON_UP
2202 wxEVT_JOY_MOVE = _misc_.wxEVT_JOY_MOVE
2203 wxEVT_JOY_ZMOVE = _misc_.wxEVT_JOY_ZMOVE
2204 class JoystickEvent(_core.Event):
2205 """Proxy of C++ JoystickEvent class"""
2206 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2207 __repr__ = _swig_repr
2208 def __init__(self, *args, **kwargs):
2209 """
2210 __init__(self, EventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1,
2211 int change=0) -> JoystickEvent
2212 """
2213 _misc_.JoystickEvent_swiginit(self,_misc_.new_JoystickEvent(*args, **kwargs))
2214 def GetPosition(*args, **kwargs):
2215 """GetPosition(self) -> Point"""
2216 return _misc_.JoystickEvent_GetPosition(*args, **kwargs)
2217
2218 def GetZPosition(*args, **kwargs):
2219 """GetZPosition(self) -> int"""
2220 return _misc_.JoystickEvent_GetZPosition(*args, **kwargs)
2221
2222 def GetButtonState(*args, **kwargs):
2223 """GetButtonState(self) -> int"""
2224 return _misc_.JoystickEvent_GetButtonState(*args, **kwargs)
2225
2226 def GetButtonChange(*args, **kwargs):
2227 """GetButtonChange(self) -> int"""
2228 return _misc_.JoystickEvent_GetButtonChange(*args, **kwargs)
2229
2230 def GetJoystick(*args, **kwargs):
2231 """GetJoystick(self) -> int"""
2232 return _misc_.JoystickEvent_GetJoystick(*args, **kwargs)
2233
2234 def SetJoystick(*args, **kwargs):
2235 """SetJoystick(self, int stick)"""
2236 return _misc_.JoystickEvent_SetJoystick(*args, **kwargs)
2237
2238 def SetButtonState(*args, **kwargs):
2239 """SetButtonState(self, int state)"""
2240 return _misc_.JoystickEvent_SetButtonState(*args, **kwargs)
2241
2242 def SetButtonChange(*args, **kwargs):
2243 """SetButtonChange(self, int change)"""
2244 return _misc_.JoystickEvent_SetButtonChange(*args, **kwargs)
2245
2246 def SetPosition(*args, **kwargs):
2247 """SetPosition(self, Point pos)"""
2248 return _misc_.JoystickEvent_SetPosition(*args, **kwargs)
2249
2250 def SetZPosition(*args, **kwargs):
2251 """SetZPosition(self, int zPos)"""
2252 return _misc_.JoystickEvent_SetZPosition(*args, **kwargs)
2253
2254 def IsButton(*args, **kwargs):
2255 """IsButton(self) -> bool"""
2256 return _misc_.JoystickEvent_IsButton(*args, **kwargs)
2257
2258 def IsMove(*args, **kwargs):
2259 """IsMove(self) -> bool"""
2260 return _misc_.JoystickEvent_IsMove(*args, **kwargs)
2261
2262 def IsZMove(*args, **kwargs):
2263 """IsZMove(self) -> bool"""
2264 return _misc_.JoystickEvent_IsZMove(*args, **kwargs)
2265
2266 def ButtonDown(*args, **kwargs):
2267 """ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2268 return _misc_.JoystickEvent_ButtonDown(*args, **kwargs)
2269
2270 def ButtonUp(*args, **kwargs):
2271 """ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool"""
2272 return _misc_.JoystickEvent_ButtonUp(*args, **kwargs)
2273
2274 def ButtonIsDown(*args, **kwargs):
2275 """ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool"""
2276 return _misc_.JoystickEvent_ButtonIsDown(*args, **kwargs)
2277
2278 m_pos = property(GetPosition, SetPosition)
2279 m_zPosition = property(GetZPosition, SetZPosition)
2280 m_buttonChange = property(GetButtonChange, SetButtonChange)
2281 m_buttonState = property(GetButtonState, SetButtonState)
2282 m_joyStick = property(GetJoystick, SetJoystick)
2283
2284 ButtonChange = property(GetButtonChange,SetButtonChange,doc="See `GetButtonChange` and `SetButtonChange`")
2285 ButtonState = property(GetButtonState,SetButtonState,doc="See `GetButtonState` and `SetButtonState`")
2286 Joystick = property(GetJoystick,SetJoystick,doc="See `GetJoystick` and `SetJoystick`")
2287 Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`")
2288 ZPosition = property(GetZPosition,SetZPosition,doc="See `GetZPosition` and `SetZPosition`")
2289 _misc_.JoystickEvent_swigregister(JoystickEvent)
2290
2291 EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN )
2292 EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP )
2293 EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE )
2294 EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE )
2295
2296 EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN,
2297 wxEVT_JOY_BUTTON_UP,
2298 wxEVT_JOY_MOVE,
2299 wxEVT_JOY_ZMOVE,
2300 ])
2301
2302
2303 #---------------------------------------------------------------------------
2304
2305 SOUND_SYNC = _misc_.SOUND_SYNC
2306 SOUND_ASYNC = _misc_.SOUND_ASYNC
2307 SOUND_LOOP = _misc_.SOUND_LOOP
2308 class Sound(object):
2309 """Proxy of C++ Sound class"""
2310 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2311 __repr__ = _swig_repr
2312 def __init__(self, *args, **kwargs):
2313 """__init__(self, String fileName=EmptyString) -> Sound"""
2314 _misc_.Sound_swiginit(self,_misc_.new_Sound(*args, **kwargs))
2315 __swig_destroy__ = _misc_.delete_Sound
2316 __del__ = lambda self : None;
2317 def Create(*args, **kwargs):
2318 """Create(self, String fileName) -> bool"""
2319 return _misc_.Sound_Create(*args, **kwargs)
2320
2321 def CreateFromData(*args, **kwargs):
2322 """CreateFromData(self, PyObject data) -> bool"""
2323 return _misc_.Sound_CreateFromData(*args, **kwargs)
2324
2325 def IsOk(*args, **kwargs):
2326 """IsOk(self) -> bool"""
2327 return _misc_.Sound_IsOk(*args, **kwargs)
2328
2329 def Play(*args, **kwargs):
2330 """Play(self, unsigned int flags=SOUND_ASYNC) -> bool"""
2331 return _misc_.Sound_Play(*args, **kwargs)
2332
2333 def PlaySound(*args, **kwargs):
2334 """PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2335 return _misc_.Sound_PlaySound(*args, **kwargs)
2336
2337 PlaySound = staticmethod(PlaySound)
2338 def Stop(*args, **kwargs):
2339 """Stop()"""
2340 return _misc_.Sound_Stop(*args, **kwargs)
2341
2342 Stop = staticmethod(Stop)
2343 def __nonzero__(self): return self.IsOk()
2344 _misc_.Sound_swigregister(Sound)
2345
2346 def SoundFromData(*args, **kwargs):
2347 """SoundFromData(PyObject data) -> Sound"""
2348 val = _misc_.new_SoundFromData(*args, **kwargs)
2349 return val
2350
2351 def Sound_PlaySound(*args, **kwargs):
2352 """Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool"""
2353 return _misc_.Sound_PlaySound(*args, **kwargs)
2354
2355 def Sound_Stop(*args):
2356 """Sound_Stop()"""
2357 return _misc_.Sound_Stop(*args)
2358
2359 #---------------------------------------------------------------------------
2360
2361 MAILCAP_STANDARD = _misc_.MAILCAP_STANDARD
2362 MAILCAP_NETSCAPE = _misc_.MAILCAP_NETSCAPE
2363 MAILCAP_KDE = _misc_.MAILCAP_KDE
2364 MAILCAP_GNOME = _misc_.MAILCAP_GNOME
2365 MAILCAP_ALL = _misc_.MAILCAP_ALL
2366 class FileTypeInfo(object):
2367 """Proxy of C++ FileTypeInfo class"""
2368 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2369 __repr__ = _swig_repr
2370 def __init__(self, *args, **kwargs):
2371 """__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo"""
2372 _misc_.FileTypeInfo_swiginit(self,_misc_.new_FileTypeInfo(*args, **kwargs))
2373 def IsValid(*args, **kwargs):
2374 """IsValid(self) -> bool"""
2375 return _misc_.FileTypeInfo_IsValid(*args, **kwargs)
2376
2377 def SetIcon(*args, **kwargs):
2378 """SetIcon(self, String iconFile, int iconIndex=0)"""
2379 return _misc_.FileTypeInfo_SetIcon(*args, **kwargs)
2380
2381 def SetShortDesc(*args, **kwargs):
2382 """SetShortDesc(self, String shortDesc)"""
2383 return _misc_.FileTypeInfo_SetShortDesc(*args, **kwargs)
2384
2385 def GetMimeType(*args, **kwargs):
2386 """GetMimeType(self) -> String"""
2387 return _misc_.FileTypeInfo_GetMimeType(*args, **kwargs)
2388
2389 def GetOpenCommand(*args, **kwargs):
2390 """GetOpenCommand(self) -> String"""
2391 return _misc_.FileTypeInfo_GetOpenCommand(*args, **kwargs)
2392
2393 def GetPrintCommand(*args, **kwargs):
2394 """GetPrintCommand(self) -> String"""
2395 return _misc_.FileTypeInfo_GetPrintCommand(*args, **kwargs)
2396
2397 def GetShortDesc(*args, **kwargs):
2398 """GetShortDesc(self) -> String"""
2399 return _misc_.FileTypeInfo_GetShortDesc(*args, **kwargs)
2400
2401 def GetDescription(*args, **kwargs):
2402 """GetDescription(self) -> String"""
2403 return _misc_.FileTypeInfo_GetDescription(*args, **kwargs)
2404
2405 def GetExtensions(*args, **kwargs):
2406 """GetExtensions(self) -> wxArrayString"""
2407 return _misc_.FileTypeInfo_GetExtensions(*args, **kwargs)
2408
2409 def GetExtensionsCount(*args, **kwargs):
2410 """GetExtensionsCount(self) -> size_t"""
2411 return _misc_.FileTypeInfo_GetExtensionsCount(*args, **kwargs)
2412
2413 def GetIconFile(*args, **kwargs):
2414 """GetIconFile(self) -> String"""
2415 return _misc_.FileTypeInfo_GetIconFile(*args, **kwargs)
2416
2417 def GetIconIndex(*args, **kwargs):
2418 """GetIconIndex(self) -> int"""
2419 return _misc_.FileTypeInfo_GetIconIndex(*args, **kwargs)
2420
2421 Description = property(GetDescription,doc="See `GetDescription`")
2422 Extensions = property(GetExtensions,doc="See `GetExtensions`")
2423 ExtensionsCount = property(GetExtensionsCount,doc="See `GetExtensionsCount`")
2424 IconFile = property(GetIconFile,doc="See `GetIconFile`")
2425 IconIndex = property(GetIconIndex,doc="See `GetIconIndex`")
2426 MimeType = property(GetMimeType,doc="See `GetMimeType`")
2427 OpenCommand = property(GetOpenCommand,doc="See `GetOpenCommand`")
2428 PrintCommand = property(GetPrintCommand,doc="See `GetPrintCommand`")
2429 ShortDesc = property(GetShortDesc,SetShortDesc,doc="See `GetShortDesc` and `SetShortDesc`")
2430 _misc_.FileTypeInfo_swigregister(FileTypeInfo)
2431
2432 def FileTypeInfoSequence(*args, **kwargs):
2433 """FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo"""
2434 val = _misc_.new_FileTypeInfoSequence(*args, **kwargs)
2435 return val
2436
2437 def NullFileTypeInfo(*args, **kwargs):
2438 """NullFileTypeInfo() -> FileTypeInfo"""
2439 val = _misc_.new_NullFileTypeInfo(*args, **kwargs)
2440 return val
2441
2442 class FileType(object):
2443 """Proxy of C++ FileType class"""
2444 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2445 __repr__ = _swig_repr
2446 def __init__(self, *args, **kwargs):
2447 """__init__(self, FileTypeInfo ftInfo) -> FileType"""
2448 _misc_.FileType_swiginit(self,_misc_.new_FileType(*args, **kwargs))
2449 __swig_destroy__ = _misc_.delete_FileType
2450 __del__ = lambda self : None;
2451 def GetMimeType(*args, **kwargs):
2452 """GetMimeType(self) -> PyObject"""
2453 return _misc_.FileType_GetMimeType(*args, **kwargs)
2454
2455 def GetMimeTypes(*args, **kwargs):
2456 """GetMimeTypes(self) -> PyObject"""
2457 return _misc_.FileType_GetMimeTypes(*args, **kwargs)
2458
2459 def GetExtensions(*args, **kwargs):
2460 """GetExtensions(self) -> PyObject"""
2461 return _misc_.FileType_GetExtensions(*args, **kwargs)
2462
2463 def GetIcon(*args, **kwargs):
2464 """GetIcon(self) -> Icon"""
2465 return _misc_.FileType_GetIcon(*args, **kwargs)
2466
2467 def GetIconInfo(*args, **kwargs):
2468 """GetIconInfo(self) -> PyObject"""
2469 return _misc_.FileType_GetIconInfo(*args, **kwargs)
2470
2471 def GetDescription(*args, **kwargs):
2472 """GetDescription(self) -> PyObject"""
2473 return _misc_.FileType_GetDescription(*args, **kwargs)
2474
2475 def GetOpenCommand(*args, **kwargs):
2476 """GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2477 return _misc_.FileType_GetOpenCommand(*args, **kwargs)
2478
2479 def GetPrintCommand(*args, **kwargs):
2480 """GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject"""
2481 return _misc_.FileType_GetPrintCommand(*args, **kwargs)
2482
2483 def GetAllCommands(*args, **kwargs):
2484 """GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject"""
2485 return _misc_.FileType_GetAllCommands(*args, **kwargs)
2486
2487 def SetCommand(*args, **kwargs):
2488 """SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool"""
2489 return _misc_.FileType_SetCommand(*args, **kwargs)
2490
2491 def SetDefaultIcon(*args, **kwargs):
2492 """SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool"""
2493 return _misc_.FileType_SetDefaultIcon(*args, **kwargs)
2494
2495 def Unassociate(*args, **kwargs):
2496 """Unassociate(self) -> bool"""
2497 return _misc_.FileType_Unassociate(*args, **kwargs)
2498
2499 def ExpandCommand(*args, **kwargs):
2500 """ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2501 return _misc_.FileType_ExpandCommand(*args, **kwargs)
2502
2503 ExpandCommand = staticmethod(ExpandCommand)
2504 AllCommands = property(GetAllCommands,doc="See `GetAllCommands`")
2505 Description = property(GetDescription,doc="See `GetDescription`")
2506 Extensions = property(GetExtensions,doc="See `GetExtensions`")
2507 Icon = property(GetIcon,doc="See `GetIcon`")
2508 IconInfo = property(GetIconInfo,doc="See `GetIconInfo`")
2509 MimeType = property(GetMimeType,doc="See `GetMimeType`")
2510 MimeTypes = property(GetMimeTypes,doc="See `GetMimeTypes`")
2511 OpenCommand = property(GetOpenCommand,doc="See `GetOpenCommand`")
2512 PrintCommand = property(GetPrintCommand,doc="See `GetPrintCommand`")
2513 _misc_.FileType_swigregister(FileType)
2514
2515 def FileType_ExpandCommand(*args, **kwargs):
2516 """FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String"""
2517 return _misc_.FileType_ExpandCommand(*args, **kwargs)
2518
2519 class MimeTypesManager(object):
2520 """Proxy of C++ MimeTypesManager class"""
2521 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2522 __repr__ = _swig_repr
2523 def IsOfType(*args, **kwargs):
2524 """IsOfType(String mimeType, String wildcard) -> bool"""
2525 return _misc_.MimeTypesManager_IsOfType(*args, **kwargs)
2526
2527 IsOfType = staticmethod(IsOfType)
2528 def __init__(self, *args, **kwargs):
2529 """__init__(self) -> MimeTypesManager"""
2530 _misc_.MimeTypesManager_swiginit(self,_misc_.new_MimeTypesManager(*args, **kwargs))
2531 def Initialize(*args, **kwargs):
2532 """Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)"""
2533 return _misc_.MimeTypesManager_Initialize(*args, **kwargs)
2534
2535 def ClearData(*args, **kwargs):
2536 """ClearData(self)"""
2537 return _misc_.MimeTypesManager_ClearData(*args, **kwargs)
2538
2539 def GetFileTypeFromExtension(*args, **kwargs):
2540 """GetFileTypeFromExtension(self, String ext) -> FileType"""
2541 return _misc_.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs)
2542
2543 def GetFileTypeFromMimeType(*args, **kwargs):
2544 """GetFileTypeFromMimeType(self, String mimeType) -> FileType"""
2545 return _misc_.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs)
2546
2547 def ReadMailcap(*args, **kwargs):
2548 """ReadMailcap(self, String filename, bool fallback=False) -> bool"""
2549 return _misc_.MimeTypesManager_ReadMailcap(*args, **kwargs)
2550
2551 def ReadMimeTypes(*args, **kwargs):
2552 """ReadMimeTypes(self, String filename) -> bool"""
2553 return _misc_.MimeTypesManager_ReadMimeTypes(*args, **kwargs)
2554
2555 def EnumAllFileTypes(*args, **kwargs):
2556 """EnumAllFileTypes(self) -> PyObject"""
2557 return _misc_.MimeTypesManager_EnumAllFileTypes(*args, **kwargs)
2558
2559 def AddFallback(*args, **kwargs):
2560 """AddFallback(self, FileTypeInfo ft)"""
2561 return _misc_.MimeTypesManager_AddFallback(*args, **kwargs)
2562
2563 def Associate(*args, **kwargs):
2564 """Associate(self, FileTypeInfo ftInfo) -> FileType"""
2565 return _misc_.MimeTypesManager_Associate(*args, **kwargs)
2566
2567 def Unassociate(*args, **kwargs):
2568 """Unassociate(self, FileType ft) -> bool"""
2569 return _misc_.MimeTypesManager_Unassociate(*args, **kwargs)
2570
2571 __swig_destroy__ = _misc_.delete_MimeTypesManager
2572 __del__ = lambda self : None;
2573 _misc_.MimeTypesManager_swigregister(MimeTypesManager)
2574 TheMimeTypesManager = cvar.TheMimeTypesManager
2575
2576 def MimeTypesManager_IsOfType(*args, **kwargs):
2577 """MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool"""
2578 return _misc_.MimeTypesManager_IsOfType(*args, **kwargs)
2579
2580 #---------------------------------------------------------------------------
2581
2582 class ArtProvider(object):
2583 """
2584 The wx.ArtProvider class is used to customize the look of wxWidgets
2585 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2586 in the standard file dialog), it does not use hard-coded resource but
2587 asks wx.ArtProvider for it instead. This way the users can plug in
2588 their own wx.ArtProvider class and easily replace standard art with
2589 his/her own version. It is easy thing to do: all that is needed is
2590 to derive a class from wx.ArtProvider, override it's CreateBitmap
2591 method and register the provider with wx.ArtProvider.PushProvider::
2592
2593 class MyArtProvider(wx.ArtProvider):
2594 def __init__(self):
2595 wx.ArtProvider.__init__(self)
2596
2597 def CreateBitmap(self, artid, client, size):
2598 ...
2599 return bmp
2600
2601 """
2602 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2603 __repr__ = _swig_repr
2604 def __init__(self, *args, **kwargs):
2605 """
2606 __init__(self) -> ArtProvider
2607
2608 The wx.ArtProvider class is used to customize the look of wxWidgets
2609 application. When wxWidgets needs to display an icon or a bitmap (e.g.
2610 in the standard file dialog), it does not use hard-coded resource but
2611 asks wx.ArtProvider for it instead. This way the users can plug in
2612 their own wx.ArtProvider class and easily replace standard art with
2613 his/her own version. It is easy thing to do: all that is needed is
2614 to derive a class from wx.ArtProvider, override it's CreateBitmap
2615 method and register the provider with wx.ArtProvider.PushProvider::
2616
2617 class MyArtProvider(wx.ArtProvider):
2618 def __init__(self):
2619 wx.ArtProvider.__init__(self)
2620
2621 def CreateBitmap(self, artid, client, size):
2622 ...
2623 return bmp
2624
2625 """
2626 _misc_.ArtProvider_swiginit(self,_misc_.new_ArtProvider(*args, **kwargs))
2627 self._setCallbackInfo(self, ArtProvider)
2628
2629 __swig_destroy__ = _misc_.delete_ArtProvider
2630 __del__ = lambda self : None;
2631 def _setCallbackInfo(*args, **kwargs):
2632 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2633 return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs)
2634
2635 def PushProvider(*args, **kwargs):
2636 """
2637 PushProvider(ArtProvider provider)
2638
2639 Add new provider to the top of providers stack.
2640 """
2641 return _misc_.ArtProvider_PushProvider(*args, **kwargs)
2642
2643 PushProvider = staticmethod(PushProvider)
2644 def InsertProvider(*args, **kwargs):
2645 """
2646 InsertProvider(ArtProvider provider)
2647
2648 Add new provider to the bottom of providers stack.
2649 """
2650 return _misc_.ArtProvider_InsertProvider(*args, **kwargs)
2651
2652 InsertProvider = staticmethod(InsertProvider)
2653 def PopProvider(*args, **kwargs):
2654 """
2655 PopProvider() -> bool
2656
2657 Remove latest added provider and delete it.
2658 """
2659 return _misc_.ArtProvider_PopProvider(*args, **kwargs)
2660
2661 PopProvider = staticmethod(PopProvider)
2662 def RemoveProvider(*args, **kwargs):
2663 """
2664 RemoveProvider(ArtProvider provider) -> bool
2665
2666 Remove provider. The provider must have been added previously! The
2667 provider is _not_ deleted.
2668 """
2669 val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
2670 args[1].thisown = 1
2671 return val
2672
2673 RemoveProvider = staticmethod(RemoveProvider)
2674 def GetBitmap(*args, **kwargs):
2675 """
2676 GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2677
2678 Query the providers for bitmap with given ID and return it. Return
2679 wx.NullBitmap if no provider provides it.
2680 """
2681 return _misc_.ArtProvider_GetBitmap(*args, **kwargs)
2682
2683 GetBitmap = staticmethod(GetBitmap)
2684 def GetIcon(*args, **kwargs):
2685 """
2686 GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2687
2688 Query the providers for icon with given ID and return it. Return
2689 wx.NullIcon if no provider provides it.
2690 """
2691 return _misc_.ArtProvider_GetIcon(*args, **kwargs)
2692
2693 GetIcon = staticmethod(GetIcon)
2694 def GetSizeHint(*args, **kwargs):
2695 """
2696 GetSizeHint(String client, bool platform_dependent=False) -> Size
2697
2698 Get the size hint of an icon from a specific Art Client, queries the
2699 topmost provider if platform_dependent = false
2700 """
2701 return _misc_.ArtProvider_GetSizeHint(*args, **kwargs)
2702
2703 GetSizeHint = staticmethod(GetSizeHint)
2704 def Destroy(*args, **kwargs):
2705 """Destroy(self)"""
2706 val = _misc_.ArtProvider_Destroy(*args, **kwargs)
2707 args[0].thisown = 0
2708 return val
2709
2710 _misc_.ArtProvider_swigregister(ArtProvider)
2711 ART_TOOLBAR = cvar.ART_TOOLBAR
2712 ART_MENU = cvar.ART_MENU
2713 ART_FRAME_ICON = cvar.ART_FRAME_ICON
2714 ART_CMN_DIALOG = cvar.ART_CMN_DIALOG
2715 ART_HELP_BROWSER = cvar.ART_HELP_BROWSER
2716 ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX
2717 ART_BUTTON = cvar.ART_BUTTON
2718 ART_OTHER = cvar.ART_OTHER
2719 ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK
2720 ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK
2721 ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL
2722 ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS
2723 ART_HELP_BOOK = cvar.ART_HELP_BOOK
2724 ART_HELP_FOLDER = cvar.ART_HELP_FOLDER
2725 ART_HELP_PAGE = cvar.ART_HELP_PAGE
2726 ART_GO_BACK = cvar.ART_GO_BACK
2727 ART_GO_FORWARD = cvar.ART_GO_FORWARD
2728 ART_GO_UP = cvar.ART_GO_UP
2729 ART_GO_DOWN = cvar.ART_GO_DOWN
2730 ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT
2731 ART_GO_HOME = cvar.ART_GO_HOME
2732 ART_FILE_OPEN = cvar.ART_FILE_OPEN
2733 ART_FILE_SAVE = cvar.ART_FILE_SAVE
2734 ART_FILE_SAVE_AS = cvar.ART_FILE_SAVE_AS
2735 ART_PRINT = cvar.ART_PRINT
2736 ART_HELP = cvar.ART_HELP
2737 ART_TIP = cvar.ART_TIP
2738 ART_REPORT_VIEW = cvar.ART_REPORT_VIEW
2739 ART_LIST_VIEW = cvar.ART_LIST_VIEW
2740 ART_NEW_DIR = cvar.ART_NEW_DIR
2741 ART_HARDDISK = cvar.ART_HARDDISK
2742 ART_FLOPPY = cvar.ART_FLOPPY
2743 ART_CDROM = cvar.ART_CDROM
2744 ART_REMOVABLE = cvar.ART_REMOVABLE
2745 ART_FOLDER = cvar.ART_FOLDER
2746 ART_FOLDER_OPEN = cvar.ART_FOLDER_OPEN
2747 ART_GO_DIR_UP = cvar.ART_GO_DIR_UP
2748 ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE
2749 ART_NORMAL_FILE = cvar.ART_NORMAL_FILE
2750 ART_TICK_MARK = cvar.ART_TICK_MARK
2751 ART_CROSS_MARK = cvar.ART_CROSS_MARK
2752 ART_ERROR = cvar.ART_ERROR
2753 ART_QUESTION = cvar.ART_QUESTION
2754 ART_WARNING = cvar.ART_WARNING
2755 ART_INFORMATION = cvar.ART_INFORMATION
2756 ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE
2757 ART_COPY = cvar.ART_COPY
2758 ART_CUT = cvar.ART_CUT
2759 ART_PASTE = cvar.ART_PASTE
2760 ART_DELETE = cvar.ART_DELETE
2761 ART_NEW = cvar.ART_NEW
2762 ART_UNDO = cvar.ART_UNDO
2763 ART_REDO = cvar.ART_REDO
2764 ART_QUIT = cvar.ART_QUIT
2765 ART_FIND = cvar.ART_FIND
2766 ART_FIND_AND_REPLACE = cvar.ART_FIND_AND_REPLACE
2767
2768 def ArtProvider_PushProvider(*args, **kwargs):
2769 """
2770 ArtProvider_PushProvider(ArtProvider provider)
2771
2772 Add new provider to the top of providers stack.
2773 """
2774 return _misc_.ArtProvider_PushProvider(*args, **kwargs)
2775
2776 def ArtProvider_InsertProvider(*args, **kwargs):
2777 """
2778 ArtProvider_InsertProvider(ArtProvider provider)
2779
2780 Add new provider to the bottom of providers stack.
2781 """
2782 return _misc_.ArtProvider_InsertProvider(*args, **kwargs)
2783
2784 def ArtProvider_PopProvider(*args):
2785 """
2786 ArtProvider_PopProvider() -> bool
2787
2788 Remove latest added provider and delete it.
2789 """
2790 return _misc_.ArtProvider_PopProvider(*args)
2791
2792 def ArtProvider_RemoveProvider(*args, **kwargs):
2793 """
2794 ArtProvider_RemoveProvider(ArtProvider provider) -> bool
2795
2796 Remove provider. The provider must have been added previously! The
2797 provider is _not_ deleted.
2798 """
2799 val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
2800 args[1].thisown = 1
2801 return val
2802
2803 def ArtProvider_GetBitmap(*args, **kwargs):
2804 """
2805 ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
2806
2807 Query the providers for bitmap with given ID and return it. Return
2808 wx.NullBitmap if no provider provides it.
2809 """
2810 return _misc_.ArtProvider_GetBitmap(*args, **kwargs)
2811
2812 def ArtProvider_GetIcon(*args, **kwargs):
2813 """
2814 ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
2815
2816 Query the providers for icon with given ID and return it. Return
2817 wx.NullIcon if no provider provides it.
2818 """
2819 return _misc_.ArtProvider_GetIcon(*args, **kwargs)
2820
2821 def ArtProvider_GetSizeHint(*args, **kwargs):
2822 """
2823 ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
2824
2825 Get the size hint of an icon from a specific Art Client, queries the
2826 topmost provider if platform_dependent = false
2827 """
2828 return _misc_.ArtProvider_GetSizeHint(*args, **kwargs)
2829
2830 #---------------------------------------------------------------------------
2831
2832 CONFIG_USE_LOCAL_FILE = _misc_.CONFIG_USE_LOCAL_FILE
2833 CONFIG_USE_GLOBAL_FILE = _misc_.CONFIG_USE_GLOBAL_FILE
2834 CONFIG_USE_RELATIVE_PATH = _misc_.CONFIG_USE_RELATIVE_PATH
2835 CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc_.CONFIG_USE_NO_ESCAPE_CHARACTERS
2836 class ConfigBase(object):
2837 """
2838 wx.ConfigBase class defines the basic interface of all config
2839 classes. It can not be used by itself (it is an abstract base class)
2840 and you will always use one of its derivations: wx.Config or
2841 wx.FileConfig.
2842
2843 wx.ConfigBase organizes the items in a tree-like structure, modeled
2844 after the Unix/Dos filesystem. There are groups that act like
2845 directories and entries, key/value pairs that act like files. There
2846 is always one current group given by the current path. As in the file
2847 system case, to specify a key in the config class you must use a path
2848 to it. Config classes also support the notion of the current group,
2849 which makes it possible to use relative paths.
2850
2851 Keys are pairs "key_name = value" where value may be of string,
2852 integer floating point or boolean, you can not store binary data
2853 without first encoding it as a string. For performance reasons items
2854 should be kept small, no more than a couple kilobytes.
2855
2856 """
2857 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2858 def __init__(self): raise AttributeError, "No constructor defined"
2859 __repr__ = _swig_repr
2860 __swig_destroy__ = _misc_.delete_ConfigBase
2861 __del__ = lambda self : None;
2862 Type_Unknown = _misc_.ConfigBase_Type_Unknown
2863 Type_String = _misc_.ConfigBase_Type_String
2864 Type_Boolean = _misc_.ConfigBase_Type_Boolean
2865 Type_Integer = _misc_.ConfigBase_Type_Integer
2866 Type_Float = _misc_.ConfigBase_Type_Float
2867 def Set(*args, **kwargs):
2868 """
2869 Set(ConfigBase config) -> ConfigBase
2870
2871 Sets the global config object (the one returned by Get) and returns a
2872 reference to the previous global config object.
2873 """
2874 return _misc_.ConfigBase_Set(*args, **kwargs)
2875
2876 Set = staticmethod(Set)
2877 def Get(*args, **kwargs):
2878 """
2879 Get(bool createOnDemand=True) -> ConfigBase
2880
2881 Returns the current global config object, creating one if neccessary.
2882 """
2883 return _misc_.ConfigBase_Get(*args, **kwargs)
2884
2885 Get = staticmethod(Get)
2886 def Create(*args, **kwargs):
2887 """
2888 Create() -> ConfigBase
2889
2890 Create and return a new global config object. This function will
2891 create the "best" implementation of wx.Config available for the
2892 current platform.
2893 """
2894 return _misc_.ConfigBase_Create(*args, **kwargs)
2895
2896 Create = staticmethod(Create)
2897 def DontCreateOnDemand(*args, **kwargs):
2898 """
2899 DontCreateOnDemand()
2900
2901 Should Get() try to create a new log object if there isn't a current
2902 one?
2903 """
2904 return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs)
2905
2906 DontCreateOnDemand = staticmethod(DontCreateOnDemand)
2907 def SetPath(*args, **kwargs):
2908 """
2909 SetPath(self, String path)
2910
2911 Set current path: if the first character is '/', it's the absolute
2912 path, otherwise it's a relative path. '..' is supported. If the
2913 strPath doesn't exist it is created.
2914 """
2915 return _misc_.ConfigBase_SetPath(*args, **kwargs)
2916
2917 def GetPath(*args, **kwargs):
2918 """
2919 GetPath(self) -> String
2920
2921 Retrieve the current path (always as absolute path)
2922 """
2923 return _misc_.ConfigBase_GetPath(*args, **kwargs)
2924
2925 def GetFirstGroup(*args, **kwargs):
2926 """
2927 GetFirstGroup() -> (more, value, index)
2928
2929 Allows enumerating the subgroups in a config object. Returns a tuple
2930 containing a flag indicating there are more items, the name of the
2931 current item, and an index to pass to GetNextGroup to fetch the next
2932 item.
2933 """
2934 return _misc_.ConfigBase_GetFirstGroup(*args, **kwargs)
2935
2936 def GetNextGroup(*args, **kwargs):
2937 """
2938 GetNextGroup(long index) -> (more, value, index)
2939
2940 Allows enumerating the subgroups in a config object. Returns a tuple
2941 containing a flag indicating there are more items, the name of the
2942 current item, and an index to pass to GetNextGroup to fetch the next
2943 item.
2944 """
2945 return _misc_.ConfigBase_GetNextGroup(*args, **kwargs)
2946
2947 def GetFirstEntry(*args, **kwargs):
2948 """
2949 GetFirstEntry() -> (more, value, index)
2950
2951 Allows enumerating the entries in the current group in a config
2952 object. Returns a tuple containing a flag indicating there are more
2953 items, the name of the current item, and an index to pass to
2954 GetNextGroup to fetch the next item.
2955 """
2956 return _misc_.ConfigBase_GetFirstEntry(*args, **kwargs)
2957
2958 def GetNextEntry(*args, **kwargs):
2959 """
2960 GetNextEntry(long index) -> (more, value, index)
2961
2962 Allows enumerating the entries in the current group in a config
2963 object. Returns a tuple containing a flag indicating there are more
2964 items, the name of the current item, and an index to pass to
2965 GetNextGroup to fetch the next item.
2966 """
2967 return _misc_.ConfigBase_GetNextEntry(*args, **kwargs)
2968
2969 def GetNumberOfEntries(*args, **kwargs):
2970 """
2971 GetNumberOfEntries(self, bool recursive=False) -> size_t
2972
2973 Get the number of entries in the current group, with or without its
2974 subgroups.
2975 """
2976 return _misc_.ConfigBase_GetNumberOfEntries(*args, **kwargs)
2977
2978 def GetNumberOfGroups(*args, **kwargs):
2979 """
2980 GetNumberOfGroups(self, bool recursive=False) -> size_t
2981
2982 Get the number of subgroups in the current group, with or without its
2983 subgroups.
2984 """
2985 return _misc_.ConfigBase_GetNumberOfGroups(*args, **kwargs)
2986
2987 def HasGroup(*args, **kwargs):
2988 """
2989 HasGroup(self, String name) -> bool
2990
2991 Returns True if the group by this name exists
2992 """
2993 return _misc_.ConfigBase_HasGroup(*args, **kwargs)
2994
2995 def HasEntry(*args, **kwargs):
2996 """
2997 HasEntry(self, String name) -> bool
2998
2999 Returns True if the entry by this name exists
3000 """
3001 return _misc_.ConfigBase_HasEntry(*args, **kwargs)
3002
3003 def Exists(*args, **kwargs):
3004 """
3005 Exists(self, String name) -> bool
3006
3007 Returns True if either a group or an entry with a given name exists
3008 """
3009 return _misc_.ConfigBase_Exists(*args, **kwargs)
3010
3011 def GetEntryType(*args, **kwargs):
3012 """
3013 GetEntryType(self, String name) -> int
3014
3015 Get the type of the entry. Returns one of the wx.Config.Type_XXX values.
3016 """
3017 return _misc_.ConfigBase_GetEntryType(*args, **kwargs)
3018
3019 def Read(*args, **kwargs):
3020 """
3021 Read(self, String key, String defaultVal=EmptyString) -> String
3022
3023 Returns the value of key if it exists, defaultVal otherwise.
3024 """
3025 return _misc_.ConfigBase_Read(*args, **kwargs)
3026
3027 def ReadInt(*args, **kwargs):
3028 """
3029 ReadInt(self, String key, long defaultVal=0) -> long
3030
3031 Returns the value of key if it exists, defaultVal otherwise.
3032 """
3033 return _misc_.ConfigBase_ReadInt(*args, **kwargs)
3034
3035 def ReadFloat(*args, **kwargs):
3036 """
3037 ReadFloat(self, String key, double defaultVal=0.0) -> double
3038
3039 Returns the value of key if it exists, defaultVal otherwise.
3040 """
3041 return _misc_.ConfigBase_ReadFloat(*args, **kwargs)
3042
3043 def ReadBool(*args, **kwargs):
3044 """
3045 ReadBool(self, String key, bool defaultVal=False) -> bool
3046
3047 Returns the value of key if it exists, defaultVal otherwise.
3048 """
3049 return _misc_.ConfigBase_ReadBool(*args, **kwargs)
3050
3051 def Write(*args, **kwargs):
3052 """
3053 Write(self, String key, String value) -> bool
3054
3055 write the value (return True on success)
3056 """
3057 return _misc_.ConfigBase_Write(*args, **kwargs)
3058
3059 def WriteInt(*args, **kwargs):
3060 """
3061 WriteInt(self, String key, long value) -> bool
3062
3063 write the value (return True on success)
3064 """
3065 return _misc_.ConfigBase_WriteInt(*args, **kwargs)
3066
3067 def WriteFloat(*args, **kwargs):
3068 """
3069 WriteFloat(self, String key, double value) -> bool
3070
3071 write the value (return True on success)
3072 """
3073 return _misc_.ConfigBase_WriteFloat(*args, **kwargs)
3074
3075 def WriteBool(*args, **kwargs):
3076 """
3077 WriteBool(self, String key, bool value) -> bool
3078
3079 write the value (return True on success)
3080 """
3081 return _misc_.ConfigBase_WriteBool(*args, **kwargs)
3082
3083 def Flush(*args, **kwargs):
3084 """
3085 Flush(self, bool currentOnly=False) -> bool
3086
3087 permanently writes all changes
3088 """
3089 return _misc_.ConfigBase_Flush(*args, **kwargs)
3090
3091 def RenameEntry(*args, **kwargs):
3092 """
3093 RenameEntry(self, String oldName, String newName) -> bool
3094
3095 Rename an entry. Returns False on failure (probably because the new
3096 name is already taken by an existing entry)
3097 """
3098 return _misc_.ConfigBase_RenameEntry(*args, **kwargs)
3099
3100 def RenameGroup(*args, **kwargs):
3101 """
3102 RenameGroup(self, String oldName, String newName) -> bool
3103
3104 Rename a group. Returns False on failure (probably because the new
3105 name is already taken by an existing entry)
3106 """
3107 return _misc_.ConfigBase_RenameGroup(*args, **kwargs)
3108
3109 def DeleteEntry(*args, **kwargs):
3110 """
3111 DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
3112
3113 Deletes the specified entry and the group it belongs to if it was the
3114 last key in it and the second parameter is True
3115 """
3116 return _misc_.ConfigBase_DeleteEntry(*args, **kwargs)
3117
3118 def DeleteGroup(*args, **kwargs):
3119 """
3120 DeleteGroup(self, String key) -> bool
3121
3122 Delete the group (with all subgroups)
3123 """
3124 return _misc_.ConfigBase_DeleteGroup(*args, **kwargs)
3125
3126 def DeleteAll(*args, **kwargs):
3127 """
3128 DeleteAll(self) -> bool
3129
3130 Delete the whole underlying object (disk file, registry key, ...)
3131 primarly intended for use by deinstallation routine.
3132 """
3133 return _misc_.ConfigBase_DeleteAll(*args, **kwargs)
3134
3135 def SetExpandEnvVars(*args, **kwargs):
3136 """
3137 SetExpandEnvVars(self, bool doIt=True)
3138
3139 We can automatically expand environment variables in the config
3140 entries this option is on by default, you can turn it on/off at any
3141 time)
3142 """
3143 return _misc_.ConfigBase_SetExpandEnvVars(*args, **kwargs)
3144
3145 def IsExpandingEnvVars(*args, **kwargs):
3146 """
3147 IsExpandingEnvVars(self) -> bool
3148
3149 Are we currently expanding environment variables?
3150 """
3151 return _misc_.ConfigBase_IsExpandingEnvVars(*args, **kwargs)
3152
3153 def SetRecordDefaults(*args, **kwargs):
3154 """
3155 SetRecordDefaults(self, bool doIt=True)
3156
3157 Set whether the config objec should record default values.
3158 """
3159 return _misc_.ConfigBase_SetRecordDefaults(*args, **kwargs)
3160
3161 def IsRecordingDefaults(*args, **kwargs):
3162 """
3163 IsRecordingDefaults(self) -> bool
3164
3165 Are we currently recording default values?
3166 """
3167 return _misc_.ConfigBase_IsRecordingDefaults(*args, **kwargs)
3168
3169 def ExpandEnvVars(*args, **kwargs):
3170 """
3171 ExpandEnvVars(self, String str) -> String
3172
3173 Expand any environment variables in str and return the result
3174 """
3175 return _misc_.ConfigBase_ExpandEnvVars(*args, **kwargs)
3176
3177 def GetAppName(*args, **kwargs):
3178 """GetAppName(self) -> String"""
3179 return _misc_.ConfigBase_GetAppName(*args, **kwargs)
3180
3181 def GetVendorName(*args, **kwargs):
3182 """GetVendorName(self) -> String"""
3183 return _misc_.ConfigBase_GetVendorName(*args, **kwargs)
3184
3185 def SetAppName(*args, **kwargs):
3186 """SetAppName(self, String appName)"""
3187 return _misc_.ConfigBase_SetAppName(*args, **kwargs)
3188
3189 def SetVendorName(*args, **kwargs):
3190 """SetVendorName(self, String vendorName)"""
3191 return _misc_.ConfigBase_SetVendorName(*args, **kwargs)
3192
3193 def SetStyle(*args, **kwargs):
3194 """SetStyle(self, long style)"""
3195 return _misc_.ConfigBase_SetStyle(*args, **kwargs)
3196
3197 def GetStyle(*args, **kwargs):
3198 """GetStyle(self) -> long"""
3199 return _misc_.ConfigBase_GetStyle(*args, **kwargs)
3200
3201 AppName = property(GetAppName,SetAppName,doc="See `GetAppName` and `SetAppName`")
3202 EntryType = property(GetEntryType,doc="See `GetEntryType`")
3203 FirstEntry = property(GetFirstEntry,doc="See `GetFirstEntry`")
3204 FirstGroup = property(GetFirstGroup,doc="See `GetFirstGroup`")
3205 NextEntry = property(GetNextEntry,doc="See `GetNextEntry`")
3206 NextGroup = property(GetNextGroup,doc="See `GetNextGroup`")
3207 NumberOfEntries = property(GetNumberOfEntries,doc="See `GetNumberOfEntries`")
3208 NumberOfGroups = property(GetNumberOfGroups,doc="See `GetNumberOfGroups`")
3209 Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
3210 Style = property(GetStyle,SetStyle,doc="See `GetStyle` and `SetStyle`")
3211 VendorName = property(GetVendorName,SetVendorName,doc="See `GetVendorName` and `SetVendorName`")
3212 _misc_.ConfigBase_swigregister(ConfigBase)
3213
3214 def ConfigBase_Set(*args, **kwargs):
3215 """
3216 ConfigBase_Set(ConfigBase config) -> ConfigBase
3217
3218 Sets the global config object (the one returned by Get) and returns a
3219 reference to the previous global config object.
3220 """
3221 return _misc_.ConfigBase_Set(*args, **kwargs)
3222
3223 def ConfigBase_Get(*args, **kwargs):
3224 """
3225 ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
3226
3227 Returns the current global config object, creating one if neccessary.
3228 """
3229 return _misc_.ConfigBase_Get(*args, **kwargs)
3230
3231 def ConfigBase_Create(*args):
3232 """
3233 ConfigBase_Create() -> ConfigBase
3234
3235 Create and return a new global config object. This function will
3236 create the "best" implementation of wx.Config available for the
3237 current platform.
3238 """
3239 return _misc_.ConfigBase_Create(*args)
3240
3241 def ConfigBase_DontCreateOnDemand(*args):
3242 """
3243 ConfigBase_DontCreateOnDemand()
3244
3245 Should Get() try to create a new log object if there isn't a current
3246 one?
3247 """
3248 return _misc_.ConfigBase_DontCreateOnDemand(*args)
3249
3250 class Config(ConfigBase):
3251 """
3252 This ConfigBase-derived class will use the registry on Windows,
3253 and will be a wx.FileConfig on other platforms.
3254 """
3255 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3256 __repr__ = _swig_repr
3257 def __init__(self, *args, **kwargs):
3258 """
3259 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3260 String localFilename=EmptyString, String globalFilename=EmptyString,
3261 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
3262 """
3263 _misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs))
3264 __swig_destroy__ = _misc_.delete_Config
3265 __del__ = lambda self : None;
3266 _misc_.Config_swigregister(Config)
3267
3268 class FileConfig(ConfigBase):
3269 """This config class will use a file for storage on all platforms."""
3270 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3271 __repr__ = _swig_repr
3272 def __init__(self, *args, **kwargs):
3273 """
3274 __init__(self, String appName=EmptyString, String vendorName=EmptyString,
3275 String localFilename=EmptyString, String globalFilename=EmptyString,
3276 long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
3277 """
3278 _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args, **kwargs))
3279 __swig_destroy__ = _misc_.delete_FileConfig
3280 __del__ = lambda self : None;
3281 _misc_.FileConfig_swigregister(FileConfig)
3282
3283 class ConfigPathChanger(object):
3284 """
3285 A handy little class which changes current path to the path of given
3286 entry and restores it in the destructoir: so if you declare a local
3287 variable of this type, you work in the entry directory and the path is
3288 automatically restored when the function returns.
3289 """
3290 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3291 __repr__ = _swig_repr
3292 def __init__(self, *args, **kwargs):
3293 """__init__(self, ConfigBase config, String entry) -> ConfigPathChanger"""
3294 _misc_.ConfigPathChanger_swiginit(self,_misc_.new_ConfigPathChanger(*args, **kwargs))
3295 __swig_destroy__ = _misc_.delete_ConfigPathChanger
3296 __del__ = lambda self : None;
3297 def Name(*args, **kwargs):
3298 """
3299 Name(self) -> String
3300
3301 Get the key name
3302 """
3303 return _misc_.ConfigPathChanger_Name(*args, **kwargs)
3304
3305 _misc_.ConfigPathChanger_swigregister(ConfigPathChanger)
3306
3307
3308 def ExpandEnvVars(*args, **kwargs):
3309 """
3310 ExpandEnvVars(String sz) -> String
3311
3312 Replace environment variables ($SOMETHING) with their values. The
3313 format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
3314 characters and '_' only. '$' must be escaped ('\$') in order to be
3315 taken literally.
3316 """
3317 return _misc_.ExpandEnvVars(*args, **kwargs)
3318 #---------------------------------------------------------------------------
3319
3320 class DateTime(object):
3321 """Proxy of C++ DateTime class"""
3322 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3323 __repr__ = _swig_repr
3324 Local = _misc_.DateTime_Local
3325 GMT_12 = _misc_.DateTime_GMT_12
3326 GMT_11 = _misc_.DateTime_GMT_11
3327 GMT_10 = _misc_.DateTime_GMT_10
3328 GMT_9 = _misc_.DateTime_GMT_9
3329 GMT_8 = _misc_.DateTime_GMT_8
3330 GMT_7 = _misc_.DateTime_GMT_7
3331 GMT_6 = _misc_.DateTime_GMT_6
3332 GMT_5 = _misc_.DateTime_GMT_5
3333 GMT_4 = _misc_.DateTime_GMT_4
3334 GMT_3 = _misc_.DateTime_GMT_3
3335 GMT_2 = _misc_.DateTime_GMT_2
3336 GMT_1 = _misc_.DateTime_GMT_1
3337 GMT0 = _misc_.DateTime_GMT0
3338 GMT1 = _misc_.DateTime_GMT1
3339 GMT2 = _misc_.DateTime_GMT2
3340 GMT3 = _misc_.DateTime_GMT3
3341 GMT4 = _misc_.DateTime_GMT4
3342 GMT5 = _misc_.DateTime_GMT5
3343 GMT6 = _misc_.DateTime_GMT6
3344 GMT7 = _misc_.DateTime_GMT7
3345 GMT8 = _misc_.DateTime_GMT8
3346 GMT9 = _misc_.DateTime_GMT9
3347 GMT10 = _misc_.DateTime_GMT10
3348 GMT11 = _misc_.DateTime_GMT11
3349 GMT12 = _misc_.DateTime_GMT12
3350 WET = _misc_.DateTime_WET
3351 WEST = _misc_.DateTime_WEST
3352 CET = _misc_.DateTime_CET
3353 CEST = _misc_.DateTime_CEST
3354 EET = _misc_.DateTime_EET
3355 EEST = _misc_.DateTime_EEST
3356 MSK = _misc_.DateTime_MSK
3357 MSD = _misc_.DateTime_MSD
3358 AST = _misc_.DateTime_AST
3359 ADT = _misc_.DateTime_ADT
3360 EST = _misc_.DateTime_EST
3361 EDT = _misc_.DateTime_EDT
3362 CST = _misc_.DateTime_CST
3363 CDT = _misc_.DateTime_CDT
3364 MST = _misc_.DateTime_MST
3365 MDT = _misc_.DateTime_MDT
3366 PST = _misc_.DateTime_PST
3367 PDT = _misc_.DateTime_PDT
3368 HST = _misc_.DateTime_HST
3369 AKST = _misc_.DateTime_AKST
3370 AKDT = _misc_.DateTime_AKDT
3371 A_WST = _misc_.DateTime_A_WST
3372 A_CST = _misc_.DateTime_A_CST
3373 A_EST = _misc_.DateTime_A_EST
3374 A_ESST = _misc_.DateTime_A_ESST
3375 UTC = _misc_.DateTime_UTC
3376 Gregorian = _misc_.DateTime_Gregorian
3377 Julian = _misc_.DateTime_Julian
3378 Gr_Unknown = _misc_.DateTime_Gr_Unknown
3379 Gr_Standard = _misc_.DateTime_Gr_Standard
3380 Gr_Alaska = _misc_.DateTime_Gr_Alaska
3381 Gr_Albania = _misc_.DateTime_Gr_Albania
3382 Gr_Austria = _misc_.DateTime_Gr_Austria
3383 Gr_Austria_Brixen = _misc_.DateTime_Gr_Austria_Brixen
3384 Gr_Austria_Salzburg = _misc_.DateTime_Gr_Austria_Salzburg
3385 Gr_Austria_Tyrol = _misc_.DateTime_Gr_Austria_Tyrol
3386 Gr_Austria_Carinthia = _misc_.DateTime_Gr_Austria_Carinthia
3387 Gr_Austria_Styria = _misc_.DateTime_Gr_Austria_Styria
3388 Gr_Belgium = _misc_.DateTime_Gr_Belgium
3389 Gr_Bulgaria = _misc_.DateTime_Gr_Bulgaria
3390 Gr_Bulgaria_1 = _misc_.DateTime_Gr_Bulgaria_1
3391 Gr_Bulgaria_2 = _misc_.DateTime_Gr_Bulgaria_2
3392 Gr_Bulgaria_3 = _misc_.DateTime_Gr_Bulgaria_3
3393 Gr_Canada = _misc_.DateTime_Gr_Canada
3394 Gr_China = _misc_.DateTime_Gr_China
3395 Gr_China_1 = _misc_.DateTime_Gr_China_1
3396 Gr_China_2 = _misc_.DateTime_Gr_China_2
3397 Gr_Czechoslovakia = _misc_.DateTime_Gr_Czechoslovakia
3398 Gr_Denmark = _misc_.DateTime_Gr_Denmark
3399 Gr_Egypt = _misc_.DateTime_Gr_Egypt
3400 Gr_Estonia = _misc_.DateTime_Gr_Estonia
3401 Gr_Finland = _misc_.DateTime_Gr_Finland
3402 Gr_France = _misc_.DateTime_Gr_France
3403 Gr_France_Alsace = _misc_.DateTime_Gr_France_Alsace
3404 Gr_France_Lorraine = _misc_.DateTime_Gr_France_Lorraine
3405 Gr_France_Strasbourg = _misc_.DateTime_Gr_France_Strasbourg
3406 Gr_Germany = _misc_.DateTime_Gr_Germany
3407 Gr_Germany_Catholic = _misc_.DateTime_Gr_Germany_Catholic
3408 Gr_Germany_Prussia = _misc_.DateTime_Gr_Germany_Prussia
3409 Gr_Germany_Protestant = _misc_.DateTime_Gr_Germany_Protestant
3410 Gr_GreatBritain = _misc_.DateTime_Gr_GreatBritain
3411 Gr_Greece = _misc_.DateTime_Gr_Greece
3412 Gr_Hungary = _misc_.DateTime_Gr_Hungary
3413 Gr_Ireland = _misc_.DateTime_Gr_Ireland
3414 Gr_Italy = _misc_.DateTime_Gr_Italy
3415 Gr_Japan = _misc_.DateTime_Gr_Japan
3416 Gr_Japan_1 = _misc_.DateTime_Gr_Japan_1
3417 Gr_Japan_2 = _misc_.DateTime_Gr_Japan_2
3418 Gr_Japan_3 = _misc_.DateTime_Gr_Japan_3
3419 Gr_Latvia = _misc_.DateTime_Gr_Latvia
3420 Gr_Lithuania = _misc_.DateTime_Gr_Lithuania
3421 Gr_Luxemburg = _misc_.DateTime_Gr_Luxemburg
3422 Gr_Netherlands = _misc_.DateTime_Gr_Netherlands
3423 Gr_Netherlands_Groningen = _misc_.DateTime_Gr_Netherlands_Groningen
3424 Gr_Netherlands_Gelderland = _misc_.DateTime_Gr_Netherlands_Gelderland
3425 Gr_Netherlands_Utrecht = _misc_.DateTime_Gr_Netherlands_Utrecht
3426 Gr_Netherlands_Friesland = _misc_.DateTime_Gr_Netherlands_Friesland
3427 Gr_Norway = _misc_.DateTime_Gr_Norway
3428 Gr_Poland = _misc_.DateTime_Gr_Poland
3429 Gr_Portugal = _misc_.DateTime_Gr_Portugal
3430 Gr_Romania = _misc_.DateTime_Gr_Romania
3431 Gr_Russia = _misc_.DateTime_Gr_Russia
3432 Gr_Scotland = _misc_.DateTime_Gr_Scotland
3433 Gr_Spain = _misc_.DateTime_Gr_Spain
3434 Gr_Sweden = _misc_.DateTime_Gr_Sweden
3435 Gr_Switzerland = _misc_.DateTime_Gr_Switzerland
3436 Gr_Switzerland_Catholic = _misc_.DateTime_Gr_Switzerland_Catholic
3437 Gr_Switzerland_Protestant = _misc_.DateTime_Gr_Switzerland_Protestant
3438 Gr_Turkey = _misc_.DateTime_Gr_Turkey
3439 Gr_USA = _misc_.DateTime_Gr_USA
3440 Gr_Wales = _misc_.DateTime_Gr_Wales
3441 Gr_Yugoslavia = _misc_.DateTime_Gr_Yugoslavia
3442 Country_Unknown = _misc_.DateTime_Country_Unknown
3443 Country_Default = _misc_.DateTime_Country_Default
3444 Country_WesternEurope_Start = _misc_.DateTime_Country_WesternEurope_Start
3445 Country_EEC = _misc_.DateTime_Country_EEC
3446 France = _misc_.DateTime_France
3447 Germany = _misc_.DateTime_Germany
3448 UK = _misc_.DateTime_UK
3449 Country_WesternEurope_End = _misc_.DateTime_Country_WesternEurope_End
3450 Russia = _misc_.DateTime_Russia
3451 USA = _misc_.DateTime_USA
3452 Jan = _misc_.DateTime_Jan
3453 Feb = _misc_.DateTime_Feb
3454 Mar = _misc_.DateTime_Mar
3455 Apr = _misc_.DateTime_Apr
3456 May = _misc_.DateTime_May
3457 Jun = _misc_.DateTime_Jun
3458 Jul = _misc_.DateTime_Jul
3459 Aug = _misc_.DateTime_Aug
3460 Sep = _misc_.DateTime_Sep
3461 Oct = _misc_.DateTime_Oct
3462 Nov = _misc_.DateTime_Nov
3463 Dec = _misc_.DateTime_Dec
3464 Inv_Month = _misc_.DateTime_Inv_Month
3465 Sun = _misc_.DateTime_Sun
3466 Mon = _misc_.DateTime_Mon
3467 Tue = _misc_.DateTime_Tue
3468 Wed = _misc_.DateTime_Wed
3469 Thu = _misc_.DateTime_Thu
3470 Fri = _misc_.DateTime_Fri
3471 Sat = _misc_.DateTime_Sat
3472 Inv_WeekDay = _misc_.DateTime_Inv_WeekDay
3473 Inv_Year = _misc_.DateTime_Inv_Year
3474 Name_Full = _misc_.DateTime_Name_Full
3475 Name_Abbr = _misc_.DateTime_Name_Abbr
3476 Default_First = _misc_.DateTime_Default_First
3477 Monday_First = _misc_.DateTime_Monday_First
3478 Sunday_First = _misc_.DateTime_Sunday_First
3479 def SetCountry(*args, **kwargs):
3480 """SetCountry(int country)"""
3481 return _misc_.DateTime_SetCountry(*args, **kwargs)
3482
3483 SetCountry = staticmethod(SetCountry)
3484 def GetCountry(*args, **kwargs):
3485 """GetCountry() -> int"""
3486 return _misc_.DateTime_GetCountry(*args, **kwargs)
3487
3488 GetCountry = staticmethod(GetCountry)
3489 def IsWestEuropeanCountry(*args, **kwargs):
3490 """IsWestEuropeanCountry(int country=Country_Default) -> bool"""
3491 return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs)
3492
3493 IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry)
3494 def GetCurrentYear(*args, **kwargs):
3495 """GetCurrentYear(int cal=Gregorian) -> int"""
3496 return _misc_.DateTime_GetCurrentYear(*args, **kwargs)
3497
3498 GetCurrentYear = staticmethod(GetCurrentYear)
3499 def ConvertYearToBC(*args, **kwargs):
3500 """ConvertYearToBC(int year) -> int"""
3501 return _misc_.DateTime_ConvertYearToBC(*args, **kwargs)
3502
3503 ConvertYearToBC = staticmethod(ConvertYearToBC)
3504 def GetCurrentMonth(*args, **kwargs):
3505 """GetCurrentMonth(int cal=Gregorian) -> int"""
3506 return _misc_.DateTime_GetCurrentMonth(*args, **kwargs)
3507
3508 GetCurrentMonth = staticmethod(GetCurrentMonth)
3509 def IsLeapYear(*args, **kwargs):
3510 """IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
3511 return _misc_.DateTime_IsLeapYear(*args, **kwargs)
3512
3513 IsLeapYear = staticmethod(IsLeapYear)
3514 def GetCentury(*args, **kwargs):
3515 """GetCentury(int year=Inv_Year) -> int"""
3516 return _misc_.DateTime_GetCentury(*args, **kwargs)
3517
3518 GetCentury = staticmethod(GetCentury)
3519 def GetNumberOfDaysinYear(*args, **kwargs):
3520 """GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
3521 return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
3522
3523 GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear)
3524 def GetNumberOfDaysInMonth(*args, **kwargs):
3525 """GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
3526 return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
3527
3528 GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth)
3529 def GetMonthName(*args, **kwargs):
3530 """GetMonthName(int month, int flags=Name_Full) -> String"""
3531 return _misc_.DateTime_GetMonthName(*args, **kwargs)
3532
3533 GetMonthName = staticmethod(GetMonthName)
3534 def GetWeekDayName(*args, **kwargs):
3535 """GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
3536 return _misc_.DateTime_GetWeekDayName(*args, **kwargs)
3537
3538 GetWeekDayName = staticmethod(GetWeekDayName)
3539 def GetAmPmStrings(*args, **kwargs):
3540 """
3541 GetAmPmStrings() -> (am, pm)
3542
3543 Get the AM and PM strings in the current locale (may be empty)
3544 """
3545 return _misc_.DateTime_GetAmPmStrings(*args, **kwargs)
3546
3547 GetAmPmStrings = staticmethod(GetAmPmStrings)
3548 def IsDSTApplicable(*args, **kwargs):
3549 """IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
3550 return _misc_.DateTime_IsDSTApplicable(*args, **kwargs)
3551
3552 IsDSTApplicable = staticmethod(IsDSTApplicable)
3553 def GetBeginDST(*args, **kwargs):
3554 """GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3555 return _misc_.DateTime_GetBeginDST(*args, **kwargs)
3556
3557 GetBeginDST = staticmethod(GetBeginDST)
3558 def GetEndDST(*args, **kwargs):
3559 """GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
3560 return _misc_.DateTime_GetEndDST(*args, **kwargs)
3561
3562 GetEndDST = staticmethod(GetEndDST)
3563 def Now(*args, **kwargs):
3564 """Now() -> DateTime"""
3565 return _misc_.DateTime_Now(*args, **kwargs)
3566
3567 Now = staticmethod(Now)
3568 def UNow(*args, **kwargs):
3569 """UNow() -> DateTime"""
3570 return _misc_.DateTime_UNow(*args, **kwargs)
3571
3572 UNow = staticmethod(UNow)
3573 def Today(*args, **kwargs):
3574 """Today() -> DateTime"""
3575 return _misc_.DateTime_Today(*args, **kwargs)
3576
3577 Today = staticmethod(Today)
3578 def __init__(self, *args, **kwargs):
3579 """__init__(self) -> DateTime"""
3580 _misc_.DateTime_swiginit(self,_misc_.new_DateTime(*args, **kwargs))
3581 __swig_destroy__ = _misc_.delete_DateTime
3582 __del__ = lambda self : None;
3583 def SetToCurrent(*args, **kwargs):
3584 """SetToCurrent(self) -> DateTime"""
3585 return _misc_.DateTime_SetToCurrent(*args, **kwargs)
3586
3587 def SetTimeT(*args, **kwargs):
3588 """SetTimeT(self, time_t timet) -> DateTime"""
3589 return _misc_.DateTime_SetTimeT(*args, **kwargs)
3590
3591 def SetJDN(*args, **kwargs):
3592 """SetJDN(self, double jdn) -> DateTime"""
3593 return _misc_.DateTime_SetJDN(*args, **kwargs)
3594
3595 def SetHMS(*args, **kwargs):
3596 """SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
3597 return _misc_.DateTime_SetHMS(*args, **kwargs)
3598
3599 def Set(*args, **kwargs):
3600 """
3601 Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
3602 int minute=0, int second=0, int millisec=0) -> DateTime
3603 """
3604 return _misc_.DateTime_Set(*args, **kwargs)
3605
3606 def ResetTime(*args, **kwargs):
3607 """ResetTime(self) -> DateTime"""
3608 return _misc_.DateTime_ResetTime(*args, **kwargs)
3609
3610 def SetYear(*args, **kwargs):
3611 """SetYear(self, int year) -> DateTime"""
3612 return _misc_.DateTime_SetYear(*args, **kwargs)
3613
3614 def SetMonth(*args, **kwargs):
3615 """SetMonth(self, int month) -> DateTime"""
3616 return _misc_.DateTime_SetMonth(*args, **kwargs)
3617
3618 def SetDay(*args, **kwargs):
3619 """SetDay(self, int day) -> DateTime"""
3620 return _misc_.DateTime_SetDay(*args, **kwargs)
3621
3622 def SetHour(*args, **kwargs):
3623 """SetHour(self, int hour) -> DateTime"""
3624 return _misc_.DateTime_SetHour(*args, **kwargs)
3625
3626 def SetMinute(*args, **kwargs):
3627 """SetMinute(self, int minute) -> DateTime"""
3628 return _misc_.DateTime_SetMinute(*args, **kwargs)
3629
3630 def SetSecond(*args, **kwargs):
3631 """SetSecond(self, int second) -> DateTime"""
3632 return _misc_.DateTime_SetSecond(*args, **kwargs)
3633
3634 def SetMillisecond(*args, **kwargs):
3635 """SetMillisecond(self, int millisecond) -> DateTime"""
3636 return _misc_.DateTime_SetMillisecond(*args, **kwargs)
3637
3638 def SetToWeekDayInSameWeek(*args, **kwargs):
3639 """SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3640 return _misc_.DateTime_SetToWeekDayInSameWeek(*args, **kwargs)
3641
3642 def GetWeekDayInSameWeek(*args, **kwargs):
3643 """GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime"""
3644 return _misc_.DateTime_GetWeekDayInSameWeek(*args, **kwargs)
3645
3646 def SetToNextWeekDay(*args, **kwargs):
3647 """SetToNextWeekDay(self, int weekday) -> DateTime"""
3648 return _misc_.DateTime_SetToNextWeekDay(*args, **kwargs)
3649
3650 def GetNextWeekDay(*args, **kwargs):
3651 """GetNextWeekDay(self, int weekday) -> DateTime"""
3652 return _misc_.DateTime_GetNextWeekDay(*args, **kwargs)
3653
3654 def SetToPrevWeekDay(*args, **kwargs):
3655 """SetToPrevWeekDay(self, int weekday) -> DateTime"""
3656 return _misc_.DateTime_SetToPrevWeekDay(*args, **kwargs)
3657
3658 def GetPrevWeekDay(*args, **kwargs):
3659 """GetPrevWeekDay(self, int weekday) -> DateTime"""
3660 return _misc_.DateTime_GetPrevWeekDay(*args, **kwargs)
3661
3662 def SetToWeekDay(*args, **kwargs):
3663 """SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool"""
3664 return _misc_.DateTime_SetToWeekDay(*args, **kwargs)
3665
3666 def SetToLastWeekDay(*args, **kwargs):
3667 """SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool"""
3668 return _misc_.DateTime_SetToLastWeekDay(*args, **kwargs)
3669
3670 def GetLastWeekDay(*args, **kwargs):
3671 """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3672 return _misc_.DateTime_GetLastWeekDay(*args, **kwargs)
3673
3674 def SetToTheWeek(*args, **kwargs):
3675 """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool"""
3676 return _misc_.DateTime_SetToTheWeek(*args, **kwargs)
3677
3678 def GetWeek(*args, **kwargs):
3679 """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime"""
3680 return _misc_.DateTime_GetWeek(*args, **kwargs)
3681
3682 SetToTheWeek = wx._deprecated(SetToTheWeek, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead")
3683 GetWeek = wx._deprecated(GetWeek, "GetWeek is deprecated, use GetWeekOfYear instead")
3684
3685 def SetToWeekOfYear(*args, **kwargs):
3686 """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
3687 return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs)
3688
3689 SetToWeekOfYear = staticmethod(SetToWeekOfYear)
3690 def SetToLastMonthDay(*args, **kwargs):
3691 """SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3692 return _misc_.DateTime_SetToLastMonthDay(*args, **kwargs)
3693
3694 def GetLastMonthDay(*args, **kwargs):
3695 """GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime"""
3696 return _misc_.DateTime_GetLastMonthDay(*args, **kwargs)
3697
3698 def SetToYearDay(*args, **kwargs):
3699 """SetToYearDay(self, int yday) -> DateTime"""
3700 return _misc_.DateTime_SetToYearDay(*args, **kwargs)
3701
3702 def GetYearDay(*args, **kwargs):
3703 """GetYearDay(self, int yday) -> DateTime"""
3704 return _misc_.DateTime_GetYearDay(*args, **kwargs)
3705
3706 def GetJulianDayNumber(*args, **kwargs):
3707 """GetJulianDayNumber(self) -> double"""
3708 return _misc_.DateTime_GetJulianDayNumber(*args, **kwargs)
3709
3710 def GetJDN(*args, **kwargs):
3711 """GetJDN(self) -> double"""
3712 return _misc_.DateTime_GetJDN(*args, **kwargs)
3713
3714 def GetModifiedJulianDayNumber(*args, **kwargs):
3715 """GetModifiedJulianDayNumber(self) -> double"""
3716 return _misc_.DateTime_GetModifiedJulianDayNumber(*args, **kwargs)
3717
3718 def GetMJD(*args, **kwargs):
3719 """GetMJD(self) -> double"""
3720 return _misc_.DateTime_GetMJD(*args, **kwargs)
3721
3722 def GetRataDie(*args, **kwargs):
3723 """GetRataDie(self) -> double"""
3724 return _misc_.DateTime_GetRataDie(*args, **kwargs)
3725
3726 def ToTimezone(*args, **kwargs):
3727 """ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3728 return _misc_.DateTime_ToTimezone(*args, **kwargs)
3729
3730 def MakeTimezone(*args, **kwargs):
3731 """MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3732 return _misc_.DateTime_MakeTimezone(*args, **kwargs)
3733
3734 def FromTimezone(*args, **kwargs):
3735 """FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3736 return _misc_.DateTime_FromTimezone(*args, **kwargs)
3737
3738 def MakeFromTimezone(*args, **kwargs):
3739 """MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime"""
3740 return _misc_.DateTime_MakeFromTimezone(*args, **kwargs)
3741
3742 def ToUTC(*args, **kwargs):
3743 """ToUTC(self, bool noDST=False) -> DateTime"""
3744 return _misc_.DateTime_ToUTC(*args, **kwargs)
3745
3746 def MakeUTC(*args, **kwargs):
3747 """MakeUTC(self, bool noDST=False) -> DateTime"""
3748 return _misc_.DateTime_MakeUTC(*args, **kwargs)
3749
3750 def ToGMT(*args, **kwargs):
3751 """ToGMT(self, bool noDST=False) -> DateTime"""
3752 return _misc_.DateTime_ToGMT(*args, **kwargs)
3753
3754 def MakeGMT(*args, **kwargs):
3755 """MakeGMT(self, bool noDST=False) -> DateTime"""
3756 return _misc_.DateTime_MakeGMT(*args, **kwargs)
3757
3758 def FromUTC(*args, **kwargs):
3759 """FromUTC(self, bool noDST=False) -> DateTime"""
3760 return _misc_.DateTime_FromUTC(*args, **kwargs)
3761
3762 def MakeFromUTC(*args, **kwargs):
3763 """MakeFromUTC(self, bool noDST=False) -> DateTime"""
3764 return _misc_.DateTime_MakeFromUTC(*args, **kwargs)
3765
3766 def IsDST(*args, **kwargs):
3767 """IsDST(self, int country=Country_Default) -> int"""
3768 return _misc_.DateTime_IsDST(*args, **kwargs)
3769
3770 def IsValid(*args, **kwargs):
3771 """IsValid(self) -> bool"""
3772 return _misc_.DateTime_IsValid(*args, **kwargs)
3773
3774 Ok = IsValid
3775 def __nonzero__(self): return self.Ok()
3776 def GetTicks(*args, **kwargs):
3777 """GetTicks(self) -> time_t"""
3778 return _misc_.DateTime_GetTicks(*args, **kwargs)
3779
3780 def GetYear(*args, **kwargs):
3781 """GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3782 return _misc_.DateTime_GetYear(*args, **kwargs)
3783
3784 def GetMonth(*args, **kwargs):
3785 """GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3786 return _misc_.DateTime_GetMonth(*args, **kwargs)
3787
3788 def GetDay(*args, **kwargs):
3789 """GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3790 return _misc_.DateTime_GetDay(*args, **kwargs)
3791
3792 def GetWeekDay(*args, **kwargs):
3793 """GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3794 return _misc_.DateTime_GetWeekDay(*args, **kwargs)
3795
3796 def GetHour(*args, **kwargs):
3797 """GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3798 return _misc_.DateTime_GetHour(*args, **kwargs)
3799
3800 def GetMinute(*args, **kwargs):
3801 """GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3802 return _misc_.DateTime_GetMinute(*args, **kwargs)
3803
3804 def GetSecond(*args, **kwargs):
3805 """GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3806 return _misc_.DateTime_GetSecond(*args, **kwargs)
3807
3808 def GetMillisecond(*args, **kwargs):
3809 """GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3810 return _misc_.DateTime_GetMillisecond(*args, **kwargs)
3811
3812 def GetDayOfYear(*args, **kwargs):
3813 """GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3814 return _misc_.DateTime_GetDayOfYear(*args, **kwargs)
3815
3816 def GetWeekOfYear(*args, **kwargs):
3817 """GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3818 return _misc_.DateTime_GetWeekOfYear(*args, **kwargs)
3819
3820 def GetWeekOfMonth(*args, **kwargs):
3821 """GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
3822 return _misc_.DateTime_GetWeekOfMonth(*args, **kwargs)
3823
3824 def IsWorkDay(*args, **kwargs):
3825 """IsWorkDay(self, int country=Country_Default) -> bool"""
3826 return _misc_.DateTime_IsWorkDay(*args, **kwargs)
3827
3828 def IsEqualTo(*args, **kwargs):
3829 """IsEqualTo(self, DateTime datetime) -> bool"""
3830 return _misc_.DateTime_IsEqualTo(*args, **kwargs)
3831
3832 def IsEarlierThan(*args, **kwargs):
3833 """IsEarlierThan(self, DateTime datetime) -> bool"""
3834 return _misc_.DateTime_IsEarlierThan(*args, **kwargs)
3835
3836 def IsLaterThan(*args, **kwargs):
3837 """IsLaterThan(self, DateTime datetime) -> bool"""
3838 return _misc_.DateTime_IsLaterThan(*args, **kwargs)
3839
3840 def IsStrictlyBetween(*args, **kwargs):
3841 """IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool"""
3842 return _misc_.DateTime_IsStrictlyBetween(*args, **kwargs)
3843
3844 def IsBetween(*args, **kwargs):
3845 """IsBetween(self, DateTime t1, DateTime t2) -> bool"""
3846 return _misc_.DateTime_IsBetween(*args, **kwargs)
3847
3848 def IsSameDate(*args, **kwargs):
3849 """IsSameDate(self, DateTime dt) -> bool"""
3850 return _misc_.DateTime_IsSameDate(*args, **kwargs)
3851
3852 def IsSameTime(*args, **kwargs):
3853 """IsSameTime(self, DateTime dt) -> bool"""
3854 return _misc_.DateTime_IsSameTime(*args, **kwargs)
3855
3856 def IsEqualUpTo(*args, **kwargs):
3857 """IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool"""
3858 return _misc_.DateTime_IsEqualUpTo(*args, **kwargs)
3859
3860 def AddTS(*args, **kwargs):
3861 """AddTS(self, TimeSpan diff) -> DateTime"""
3862 return _misc_.DateTime_AddTS(*args, **kwargs)
3863
3864 def AddDS(*args, **kwargs):
3865 """AddDS(self, DateSpan diff) -> DateTime"""
3866 return _misc_.DateTime_AddDS(*args, **kwargs)
3867
3868 def SubtractTS(*args, **kwargs):
3869 """SubtractTS(self, TimeSpan diff) -> DateTime"""
3870 return _misc_.DateTime_SubtractTS(*args, **kwargs)
3871
3872 def SubtractDS(*args, **kwargs):
3873 """SubtractDS(self, DateSpan diff) -> DateTime"""
3874 return _misc_.DateTime_SubtractDS(*args, **kwargs)
3875
3876 def Subtract(*args, **kwargs):
3877 """Subtract(self, DateTime dt) -> TimeSpan"""
3878 return _misc_.DateTime_Subtract(*args, **kwargs)
3879
3880 def __iadd__(*args):
3881 """
3882 __iadd__(self, TimeSpan diff) -> DateTime
3883 __iadd__(self, DateSpan diff) -> DateTime
3884 """
3885 return _misc_.DateTime___iadd__(*args)
3886
3887 def __isub__(*args):
3888 """
3889 __isub__(self, TimeSpan diff) -> DateTime
3890 __isub__(self, DateSpan diff) -> DateTime
3891 """
3892 return _misc_.DateTime___isub__(*args)
3893
3894 def __add__(*args):
3895 """
3896 __add__(self, TimeSpan other) -> DateTime
3897 __add__(self, DateSpan other) -> DateTime
3898 """
3899 return _misc_.DateTime___add__(*args)
3900
3901 def __sub__(*args):
3902 """
3903 __sub__(self, DateTime other) -> TimeSpan
3904 __sub__(self, TimeSpan other) -> DateTime
3905 __sub__(self, DateSpan other) -> DateTime
3906 """
3907 return _misc_.DateTime___sub__(*args)
3908
3909 def __lt__(*args, **kwargs):
3910 """__lt__(self, DateTime other) -> bool"""
3911 return _misc_.DateTime___lt__(*args, **kwargs)
3912
3913 def __le__(*args, **kwargs):
3914 """__le__(self, DateTime other) -> bool"""
3915 return _misc_.DateTime___le__(*args, **kwargs)
3916
3917 def __gt__(*args, **kwargs):
3918 """__gt__(self, DateTime other) -> bool"""
3919 return _misc_.DateTime___gt__(*args, **kwargs)
3920
3921 def __ge__(*args, **kwargs):
3922 """__ge__(self, DateTime other) -> bool"""
3923 return _misc_.DateTime___ge__(*args, **kwargs)
3924
3925 def __eq__(*args, **kwargs):
3926 """__eq__(self, DateTime other) -> bool"""
3927 return _misc_.DateTime___eq__(*args, **kwargs)
3928
3929 def __ne__(*args, **kwargs):
3930 """__ne__(self, DateTime other) -> bool"""
3931 return _misc_.DateTime___ne__(*args, **kwargs)
3932
3933 def ParseRfc822Date(*args, **kwargs):
3934 """ParseRfc822Date(self, String date) -> int"""
3935 return _misc_.DateTime_ParseRfc822Date(*args, **kwargs)
3936
3937 def ParseFormat(*args, **kwargs):
3938 """ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int"""
3939 return _misc_.DateTime_ParseFormat(*args, **kwargs)
3940
3941 def ParseDateTime(*args, **kwargs):
3942 """ParseDateTime(self, String datetime) -> int"""
3943 return _misc_.DateTime_ParseDateTime(*args, **kwargs)
3944
3945 def ParseDate(*args, **kwargs):
3946 """ParseDate(self, String date) -> int"""
3947 return _misc_.DateTime_ParseDate(*args, **kwargs)
3948
3949 def ParseTime(*args, **kwargs):
3950 """ParseTime(self, String time) -> int"""
3951 return _misc_.DateTime_ParseTime(*args, **kwargs)
3952
3953 def Format(*args, **kwargs):
3954 """Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
3955 return _misc_.DateTime_Format(*args, **kwargs)
3956
3957 def FormatDate(*args, **kwargs):
3958 """FormatDate(self) -> String"""
3959 return _misc_.DateTime_FormatDate(*args, **kwargs)
3960
3961 def FormatTime(*args, **kwargs):
3962 """FormatTime(self) -> String"""
3963 return _misc_.DateTime_FormatTime(*args, **kwargs)
3964
3965 def FormatISODate(*args, **kwargs):
3966 """FormatISODate(self) -> String"""
3967 return _misc_.DateTime_FormatISODate(*args, **kwargs)
3968
3969 def FormatISOTime(*args, **kwargs):
3970 """FormatISOTime(self) -> String"""
3971 return _misc_.DateTime_FormatISOTime(*args, **kwargs)
3972
3973 def __repr__(self):
3974 if self.IsValid():
3975 f = self.Format().encode(wx.GetDefaultPyEncoding())
3976 return '<wx.DateTime: \"%s\" at %s>' % ( f, self.this)
3977 else:
3978 return '<wx.DateTime: \"INVALID\" at %s>' % self.this
3979 def __str__(self):
3980 if self.IsValid():
3981 return self.Format().encode(wx.GetDefaultPyEncoding())
3982 else:
3983 return "INVALID DateTime"
3984
3985 Day = property(GetDay,SetDay,doc="See `GetDay` and `SetDay`")
3986 DayOfYear = property(GetDayOfYear,doc="See `GetDayOfYear`")
3987 Hour = property(GetHour,SetHour,doc="See `GetHour` and `SetHour`")
3988 JDN = property(GetJDN,SetJDN,doc="See `GetJDN` and `SetJDN`")
3989 JulianDayNumber = property(GetJulianDayNumber,doc="See `GetJulianDayNumber`")
3990 LastMonthDay = property(GetLastMonthDay,doc="See `GetLastMonthDay`")
3991 LastWeekDay = property(GetLastWeekDay,doc="See `GetLastWeekDay`")
3992 MJD = property(GetMJD,doc="See `GetMJD`")
3993 Millisecond = property(GetMillisecond,SetMillisecond,doc="See `GetMillisecond` and `SetMillisecond`")
3994 Minute = property(GetMinute,SetMinute,doc="See `GetMinute` and `SetMinute`")
3995 ModifiedJulianDayNumber = property(GetModifiedJulianDayNumber,doc="See `GetModifiedJulianDayNumber`")
3996 Month = property(GetMonth,SetMonth,doc="See `GetMonth` and `SetMonth`")
3997 NextWeekDay = property(GetNextWeekDay,doc="See `GetNextWeekDay`")
3998 PrevWeekDay = property(GetPrevWeekDay,doc="See `GetPrevWeekDay`")
3999 RataDie = property(GetRataDie,doc="See `GetRataDie`")
4000 Second = property(GetSecond,SetSecond,doc="See `GetSecond` and `SetSecond`")
4001 Ticks = property(GetTicks,doc="See `GetTicks`")
4002 Week = property(GetWeek,doc="See `GetWeek`")
4003 WeekDay = property(GetWeekDay,doc="See `GetWeekDay`")
4004 WeekDayInSameWeek = property(GetWeekDayInSameWeek,doc="See `GetWeekDayInSameWeek`")
4005 WeekOfMonth = property(GetWeekOfMonth,doc="See `GetWeekOfMonth`")
4006 WeekOfYear = property(GetWeekOfYear,doc="See `GetWeekOfYear`")
4007 Year = property(GetYear,SetYear,doc="See `GetYear` and `SetYear`")
4008 YearDay = property(GetYearDay,doc="See `GetYearDay`")
4009 _misc_.DateTime_swigregister(DateTime)
4010 DefaultDateTimeFormat = cvar.DefaultDateTimeFormat
4011 DefaultTimeSpanFormat = cvar.DefaultTimeSpanFormat
4012
4013 def DateTime_SetCountry(*args, **kwargs):
4014 """DateTime_SetCountry(int country)"""
4015 return _misc_.DateTime_SetCountry(*args, **kwargs)
4016
4017 def DateTime_GetCountry(*args):
4018 """DateTime_GetCountry() -> int"""
4019 return _misc_.DateTime_GetCountry(*args)
4020
4021 def DateTime_IsWestEuropeanCountry(*args, **kwargs):
4022 """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
4023 return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs)
4024
4025 def DateTime_GetCurrentYear(*args, **kwargs):
4026 """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
4027 return _misc_.DateTime_GetCurrentYear(*args, **kwargs)
4028
4029 def DateTime_ConvertYearToBC(*args, **kwargs):
4030 """DateTime_ConvertYearToBC(int year) -> int"""
4031 return _misc_.DateTime_ConvertYearToBC(*args, **kwargs)
4032
4033 def DateTime_GetCurrentMonth(*args, **kwargs):
4034 """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
4035 return _misc_.DateTime_GetCurrentMonth(*args, **kwargs)
4036
4037 def DateTime_IsLeapYear(*args, **kwargs):
4038 """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
4039 return _misc_.DateTime_IsLeapYear(*args, **kwargs)
4040
4041 def DateTime_GetCentury(*args, **kwargs):
4042 """DateTime_GetCentury(int year=Inv_Year) -> int"""
4043 return _misc_.DateTime_GetCentury(*args, **kwargs)
4044
4045 def DateTime_GetNumberOfDaysinYear(*args, **kwargs):
4046 """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
4047 return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
4048
4049 def DateTime_GetNumberOfDaysInMonth(*args, **kwargs):
4050 """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
4051 return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
4052
4053 def DateTime_GetMonthName(*args, **kwargs):
4054 """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
4055 return _misc_.DateTime_GetMonthName(*args, **kwargs)
4056
4057 def DateTime_GetWeekDayName(*args, **kwargs):
4058 """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
4059 return _misc_.DateTime_GetWeekDayName(*args, **kwargs)
4060
4061 def DateTime_GetAmPmStrings(*args):
4062 """
4063 GetAmPmStrings() -> (am, pm)
4064
4065 Get the AM and PM strings in the current locale (may be empty)
4066 """
4067 return _misc_.DateTime_GetAmPmStrings(*args)
4068
4069 def DateTime_IsDSTApplicable(*args, **kwargs):
4070 """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
4071 return _misc_.DateTime_IsDSTApplicable(*args, **kwargs)
4072
4073 def DateTime_GetBeginDST(*args, **kwargs):
4074 """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4075 return _misc_.DateTime_GetBeginDST(*args, **kwargs)
4076
4077 def DateTime_GetEndDST(*args, **kwargs):
4078 """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
4079 return _misc_.DateTime_GetEndDST(*args, **kwargs)
4080
4081 def DateTime_Now(*args):
4082 """DateTime_Now() -> DateTime"""
4083 return _misc_.DateTime_Now(*args)
4084
4085 def DateTime_UNow(*args):
4086 """DateTime_UNow() -> DateTime"""
4087 return _misc_.DateTime_UNow(*args)
4088
4089 def DateTime_Today(*args):
4090 """DateTime_Today() -> DateTime"""
4091 return _misc_.DateTime_Today(*args)
4092
4093 def DateTimeFromTimeT(*args, **kwargs):
4094 """DateTimeFromTimeT(time_t timet) -> DateTime"""
4095 val = _misc_.new_DateTimeFromTimeT(*args, **kwargs)
4096 return val
4097
4098 def DateTimeFromJDN(*args, **kwargs):
4099 """DateTimeFromJDN(double jdn) -> DateTime"""
4100 val = _misc_.new_DateTimeFromJDN(*args, **kwargs)
4101 return val
4102
4103 def DateTimeFromHMS(*args, **kwargs):
4104 """DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime"""
4105 val = _misc_.new_DateTimeFromHMS(*args, **kwargs)
4106 return val
4107
4108 def DateTimeFromDMY(*args, **kwargs):
4109 """
4110 DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0,
4111 int minute=0, int second=0, int millisec=0) -> DateTime
4112 """
4113 val = _misc_.new_DateTimeFromDMY(*args, **kwargs)
4114 return val
4115
4116 def DateTimeFromDateTime(*args, **kwargs):
4117 """DateTimeFromDateTime(DateTime date) -> DateTime"""
4118 val = _misc_.new_DateTimeFromDateTime(*args, **kwargs)
4119 return val
4120
4121 def DateTime_SetToWeekOfYear(*args, **kwargs):
4122 """DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime"""
4123 return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs)
4124
4125 class TimeSpan(object):
4126 """Proxy of C++ TimeSpan class"""
4127 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4128 __repr__ = _swig_repr
4129 def Milliseconds(*args, **kwargs):
4130 """Milliseconds(long ms) -> TimeSpan"""
4131 return _misc_.TimeSpan_Milliseconds(*args, **kwargs)
4132
4133 Milliseconds = staticmethod(Milliseconds)
4134 def Millisecond(*args, **kwargs):
4135 """Millisecond() -> TimeSpan"""
4136 return _misc_.TimeSpan_Millisecond(*args, **kwargs)
4137
4138 Millisecond = staticmethod(Millisecond)
4139 def Seconds(*args, **kwargs):
4140 """Seconds(long sec) -> TimeSpan"""
4141 return _misc_.TimeSpan_Seconds(*args, **kwargs)
4142
4143 Seconds = staticmethod(Seconds)
4144 def Second(*args, **kwargs):
4145 """Second() -> TimeSpan"""
4146 return _misc_.TimeSpan_Second(*args, **kwargs)
4147
4148 Second = staticmethod(Second)
4149 def Minutes(*args, **kwargs):
4150 """Minutes(long min) -> TimeSpan"""
4151 return _misc_.TimeSpan_Minutes(*args, **kwargs)
4152
4153 Minutes = staticmethod(Minutes)
4154 def Minute(*args, **kwargs):
4155 """Minute() -> TimeSpan"""
4156 return _misc_.TimeSpan_Minute(*args, **kwargs)
4157
4158 Minute = staticmethod(Minute)
4159 def Hours(*args, **kwargs):
4160 """Hours(long hours) -> TimeSpan"""
4161 return _misc_.TimeSpan_Hours(*args, **kwargs)
4162
4163 Hours = staticmethod(Hours)
4164 def Hour(*args, **kwargs):
4165 """Hour() -> TimeSpan"""
4166 return _misc_.TimeSpan_Hour(*args, **kwargs)
4167
4168 Hour = staticmethod(Hour)
4169 def Days(*args, **kwargs):
4170 """Days(long days) -> TimeSpan"""
4171 return _misc_.TimeSpan_Days(*args, **kwargs)
4172
4173 Days = staticmethod(Days)
4174 def Day(*args, **kwargs):
4175 """Day() -> TimeSpan"""
4176 return _misc_.TimeSpan_Day(*args, **kwargs)
4177
4178 Day = staticmethod(Day)
4179 def Weeks(*args, **kwargs):
4180 """Weeks(long days) -> TimeSpan"""
4181 return _misc_.TimeSpan_Weeks(*args, **kwargs)
4182
4183 Weeks = staticmethod(Weeks)
4184 def Week(*args, **kwargs):
4185 """Week() -> TimeSpan"""
4186 return _misc_.TimeSpan_Week(*args, **kwargs)
4187
4188 Week = staticmethod(Week)
4189 def __init__(self, *args, **kwargs):
4190 """__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan"""
4191 _misc_.TimeSpan_swiginit(self,_misc_.new_TimeSpan(*args, **kwargs))
4192 __swig_destroy__ = _misc_.delete_TimeSpan
4193 __del__ = lambda self : None;
4194 def Add(*args, **kwargs):
4195 """Add(self, TimeSpan diff) -> TimeSpan"""
4196 return _misc_.TimeSpan_Add(*args, **kwargs)
4197
4198 def Subtract(*args, **kwargs):
4199 """Subtract(self, TimeSpan diff) -> TimeSpan"""
4200 return _misc_.TimeSpan_Subtract(*args, **kwargs)
4201
4202 def Multiply(*args, **kwargs):
4203 """Multiply(self, int n) -> TimeSpan"""
4204 return _misc_.TimeSpan_Multiply(*args, **kwargs)
4205
4206 def Neg(*args, **kwargs):
4207 """Neg(self) -> TimeSpan"""
4208 return _misc_.TimeSpan_Neg(*args, **kwargs)
4209
4210 def Abs(*args, **kwargs):
4211 """Abs(self) -> TimeSpan"""
4212 return _misc_.TimeSpan_Abs(*args, **kwargs)
4213
4214 def __iadd__(*args, **kwargs):
4215 """__iadd__(self, TimeSpan diff) -> TimeSpan"""
4216 return _misc_.TimeSpan___iadd__(*args, **kwargs)
4217
4218 def __isub__(*args, **kwargs):
4219 """__isub__(self, TimeSpan diff) -> TimeSpan"""
4220 return _misc_.TimeSpan___isub__(*args, **kwargs)
4221
4222 def __imul__(*args, **kwargs):
4223 """__imul__(self, int n) -> TimeSpan"""
4224 return _misc_.TimeSpan___imul__(*args, **kwargs)
4225
4226 def __neg__(*args, **kwargs):
4227 """__neg__(self) -> TimeSpan"""
4228 return _misc_.TimeSpan___neg__(*args, **kwargs)
4229
4230 def __add__(*args, **kwargs):
4231 """__add__(self, TimeSpan other) -> TimeSpan"""
4232 return _misc_.TimeSpan___add__(*args, **kwargs)
4233
4234 def __sub__(*args, **kwargs):
4235 """__sub__(self, TimeSpan other) -> TimeSpan"""
4236 return _misc_.TimeSpan___sub__(*args, **kwargs)
4237
4238 def __mul__(*args, **kwargs):
4239 """__mul__(self, int n) -> TimeSpan"""
4240 return _misc_.TimeSpan___mul__(*args, **kwargs)
4241
4242 def __rmul__(*args, **kwargs):
4243 """__rmul__(self, int n) -> TimeSpan"""
4244 return _misc_.TimeSpan___rmul__(*args, **kwargs)
4245
4246 def __lt__(*args, **kwargs):
4247 """__lt__(self, TimeSpan other) -> bool"""
4248 return _misc_.TimeSpan___lt__(*args, **kwargs)
4249
4250 def __le__(*args, **kwargs):
4251 """__le__(self, TimeSpan other) -> bool"""
4252 return _misc_.TimeSpan___le__(*args, **kwargs)
4253
4254 def __gt__(*args, **kwargs):
4255 """__gt__(self, TimeSpan other) -> bool"""
4256 return _misc_.TimeSpan___gt__(*args, **kwargs)
4257
4258 def __ge__(*args, **kwargs):
4259 """__ge__(self, TimeSpan other) -> bool"""
4260 return _misc_.TimeSpan___ge__(*args, **kwargs)
4261
4262 def __eq__(*args, **kwargs):
4263 """__eq__(self, TimeSpan other) -> bool"""
4264 return _misc_.TimeSpan___eq__(*args, **kwargs)
4265
4266 def __ne__(*args, **kwargs):
4267 """__ne__(self, TimeSpan other) -> bool"""
4268 return _misc_.TimeSpan___ne__(*args, **kwargs)
4269
4270 def IsNull(*args, **kwargs):
4271 """IsNull(self) -> bool"""
4272 return _misc_.TimeSpan_IsNull(*args, **kwargs)
4273
4274 def IsPositive(*args, **kwargs):
4275 """IsPositive(self) -> bool"""
4276 return _misc_.TimeSpan_IsPositive(*args, **kwargs)
4277
4278 def IsNegative(*args, **kwargs):
4279 """IsNegative(self) -> bool"""
4280 return _misc_.TimeSpan_IsNegative(*args, **kwargs)
4281
4282 def IsEqualTo(*args, **kwargs):
4283 """IsEqualTo(self, TimeSpan ts) -> bool"""
4284 return _misc_.TimeSpan_IsEqualTo(*args, **kwargs)
4285
4286 def IsLongerThan(*args, **kwargs):
4287 """IsLongerThan(self, TimeSpan ts) -> bool"""
4288 return _misc_.TimeSpan_IsLongerThan(*args, **kwargs)
4289
4290 def IsShorterThan(*args, **kwargs):
4291 """IsShorterThan(self, TimeSpan t) -> bool"""
4292 return _misc_.TimeSpan_IsShorterThan(*args, **kwargs)
4293
4294 def GetWeeks(*args, **kwargs):
4295 """GetWeeks(self) -> int"""
4296 return _misc_.TimeSpan_GetWeeks(*args, **kwargs)
4297
4298 def GetDays(*args, **kwargs):
4299 """GetDays(self) -> int"""
4300 return _misc_.TimeSpan_GetDays(*args, **kwargs)
4301
4302 def GetHours(*args, **kwargs):
4303 """GetHours(self) -> int"""
4304 return _misc_.TimeSpan_GetHours(*args, **kwargs)
4305
4306 def GetMinutes(*args, **kwargs):
4307 """GetMinutes(self) -> int"""
4308 return _misc_.TimeSpan_GetMinutes(*args, **kwargs)
4309
4310 def GetSeconds(*args, **kwargs):
4311 """GetSeconds(self) -> wxLongLong"""
4312 return _misc_.TimeSpan_GetSeconds(*args, **kwargs)
4313
4314 def GetMilliseconds(*args, **kwargs):
4315 """GetMilliseconds(self) -> wxLongLong"""
4316 return _misc_.TimeSpan_GetMilliseconds(*args, **kwargs)
4317
4318 def Format(*args, **kwargs):
4319 """Format(self, String format=DefaultTimeSpanFormat) -> String"""
4320 return _misc_.TimeSpan_Format(*args, **kwargs)
4321
4322 def __repr__(self):
4323 f = self.Format().encode(wx.GetDefaultPyEncoding())
4324 return '<wx.TimeSpan: \"%s\" at %s>' % ( f, self.this)
4325 def __str__(self):
4326 return self.Format().encode(wx.GetDefaultPyEncoding())
4327
4328 _misc_.TimeSpan_swigregister(TimeSpan)
4329
4330 def TimeSpan_Milliseconds(*args, **kwargs):
4331 """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
4332 return _misc_.TimeSpan_Milliseconds(*args, **kwargs)
4333
4334 def TimeSpan_Millisecond(*args):
4335 """TimeSpan_Millisecond() -> TimeSpan"""
4336 return _misc_.TimeSpan_Millisecond(*args)
4337
4338 def TimeSpan_Seconds(*args, **kwargs):
4339 """TimeSpan_Seconds(long sec) -> TimeSpan"""
4340 return _misc_.TimeSpan_Seconds(*args, **kwargs)
4341
4342 def TimeSpan_Second(*args):
4343 """TimeSpan_Second() -> TimeSpan"""
4344 return _misc_.TimeSpan_Second(*args)
4345
4346 def TimeSpan_Minutes(*args, **kwargs):
4347 """TimeSpan_Minutes(long min) -> TimeSpan"""
4348 return _misc_.TimeSpan_Minutes(*args, **kwargs)
4349
4350 def TimeSpan_Minute(*args):
4351 """TimeSpan_Minute() -> TimeSpan"""
4352 return _misc_.TimeSpan_Minute(*args)
4353
4354 def TimeSpan_Hours(*args, **kwargs):
4355 """TimeSpan_Hours(long hours) -> TimeSpan"""
4356 return _misc_.TimeSpan_Hours(*args, **kwargs)
4357
4358 def TimeSpan_Hour(*args):
4359 """TimeSpan_Hour() -> TimeSpan"""
4360 return _misc_.TimeSpan_Hour(*args)
4361
4362 def TimeSpan_Days(*args, **kwargs):
4363 """TimeSpan_Days(long days) -> TimeSpan"""
4364 return _misc_.TimeSpan_Days(*args, **kwargs)
4365
4366 def TimeSpan_Day(*args):
4367 """TimeSpan_Day() -> TimeSpan"""
4368 return _misc_.TimeSpan_Day(*args)
4369
4370 def TimeSpan_Weeks(*args, **kwargs):
4371 """TimeSpan_Weeks(long days) -> TimeSpan"""
4372 return _misc_.TimeSpan_Weeks(*args, **kwargs)
4373
4374 def TimeSpan_Week(*args):
4375 """TimeSpan_Week() -> TimeSpan"""
4376 return _misc_.TimeSpan_Week(*args)
4377
4378 class DateSpan(object):
4379 """Proxy of C++ DateSpan class"""
4380 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4381 __repr__ = _swig_repr
4382 def __init__(self, *args, **kwargs):
4383 """__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan"""
4384 _misc_.DateSpan_swiginit(self,_misc_.new_DateSpan(*args, **kwargs))
4385 __swig_destroy__ = _misc_.delete_DateSpan
4386 __del__ = lambda self : None;
4387 def Days(*args, **kwargs):
4388 """Days(int days) -> DateSpan"""
4389 return _misc_.DateSpan_Days(*args, **kwargs)
4390
4391 Days = staticmethod(Days)
4392 def Day(*args, **kwargs):
4393 """Day() -> DateSpan"""
4394 return _misc_.DateSpan_Day(*args, **kwargs)
4395
4396 Day = staticmethod(Day)
4397 def Weeks(*args, **kwargs):
4398 """Weeks(int weeks) -> DateSpan"""
4399 return _misc_.DateSpan_Weeks(*args, **kwargs)
4400
4401 Weeks = staticmethod(Weeks)
4402 def Week(*args, **kwargs):
4403 """Week() -> DateSpan"""
4404 return _misc_.DateSpan_Week(*args, **kwargs)
4405
4406 Week = staticmethod(Week)
4407 def Months(*args, **kwargs):
4408 """Months(int mon) -> DateSpan"""
4409 return _misc_.DateSpan_Months(*args, **kwargs)
4410
4411 Months = staticmethod(Months)
4412 def Month(*args, **kwargs):
4413 """Month() -> DateSpan"""
4414 return _misc_.DateSpan_Month(*args, **kwargs)
4415
4416 Month = staticmethod(Month)
4417 def Years(*args, **kwargs):
4418 """Years(int years) -> DateSpan"""
4419 return _misc_.DateSpan_Years(*args, **kwargs)
4420
4421 Years = staticmethod(Years)
4422 def Year(*args, **kwargs):
4423 """Year() -> DateSpan"""
4424 return _misc_.DateSpan_Year(*args, **kwargs)
4425
4426 Year = staticmethod(Year)
4427 def SetYears(*args, **kwargs):
4428 """SetYears(self, int n) -> DateSpan"""
4429 return _misc_.DateSpan_SetYears(*args, **kwargs)
4430
4431 def SetMonths(*args, **kwargs):
4432 """SetMonths(self, int n) -> DateSpan"""
4433 return _misc_.DateSpan_SetMonths(*args, **kwargs)
4434
4435 def SetWeeks(*args, **kwargs):
4436 """SetWeeks(self, int n) -> DateSpan"""
4437 return _misc_.DateSpan_SetWeeks(*args, **kwargs)
4438
4439 def SetDays(*args, **kwargs):
4440 """SetDays(self, int n) -> DateSpan"""
4441 return _misc_.DateSpan_SetDays(*args, **kwargs)
4442
4443 def GetYears(*args, **kwargs):
4444 """GetYears(self) -> int"""
4445 return _misc_.DateSpan_GetYears(*args, **kwargs)
4446
4447 def GetMonths(*args, **kwargs):
4448 """GetMonths(self) -> int"""
4449 return _misc_.DateSpan_GetMonths(*args, **kwargs)
4450
4451 def GetWeeks(*args, **kwargs):
4452 """GetWeeks(self) -> int"""
4453 return _misc_.DateSpan_GetWeeks(*args, **kwargs)
4454
4455 def GetDays(*args, **kwargs):
4456 """GetDays(self) -> int"""
4457 return _misc_.DateSpan_GetDays(*args, **kwargs)
4458
4459 def GetTotalDays(*args, **kwargs):
4460 """GetTotalDays(self) -> int"""
4461 return _misc_.DateSpan_GetTotalDays(*args, **kwargs)
4462
4463 def Add(*args, **kwargs):
4464 """Add(self, DateSpan other) -> DateSpan"""
4465 return _misc_.DateSpan_Add(*args, **kwargs)
4466
4467 def Subtract(*args, **kwargs):
4468 """Subtract(self, DateSpan other) -> DateSpan"""
4469 return _misc_.DateSpan_Subtract(*args, **kwargs)
4470
4471 def Neg(*args, **kwargs):
4472 """Neg(self) -> DateSpan"""
4473 return _misc_.DateSpan_Neg(*args, **kwargs)
4474
4475 def Multiply(*args, **kwargs):
4476 """Multiply(self, int factor) -> DateSpan"""
4477 return _misc_.DateSpan_Multiply(*args, **kwargs)
4478
4479 def __iadd__(*args, **kwargs):
4480 """__iadd__(self, DateSpan other) -> DateSpan"""
4481 return _misc_.DateSpan___iadd__(*args, **kwargs)
4482
4483 def __isub__(*args, **kwargs):
4484 """__isub__(self, DateSpan other) -> DateSpan"""
4485 return _misc_.DateSpan___isub__(*args, **kwargs)
4486
4487 def __neg__(*args, **kwargs):
4488 """__neg__(self) -> DateSpan"""
4489 return _misc_.DateSpan___neg__(*args, **kwargs)
4490
4491 def __imul__(*args, **kwargs):
4492 """__imul__(self, int factor) -> DateSpan"""
4493 return _misc_.DateSpan___imul__(*args, **kwargs)
4494
4495 def __add__(*args, **kwargs):
4496 """__add__(self, DateSpan other) -> DateSpan"""
4497 return _misc_.DateSpan___add__(*args, **kwargs)
4498
4499 def __sub__(*args, **kwargs):
4500 """__sub__(self, DateSpan other) -> DateSpan"""
4501 return _misc_.DateSpan___sub__(*args, **kwargs)
4502
4503 def __mul__(*args, **kwargs):
4504 """__mul__(self, int n) -> DateSpan"""
4505 return _misc_.DateSpan___mul__(*args, **kwargs)
4506
4507 def __rmul__(*args, **kwargs):
4508 """__rmul__(self, int n) -> DateSpan"""
4509 return _misc_.DateSpan___rmul__(*args, **kwargs)
4510
4511 def __eq__(*args, **kwargs):
4512 """__eq__(self, DateSpan other) -> bool"""
4513 return _misc_.DateSpan___eq__(*args, **kwargs)
4514
4515 def __ne__(*args, **kwargs):
4516 """__ne__(self, DateSpan other) -> bool"""
4517 return _misc_.DateSpan___ne__(*args, **kwargs)
4518
4519 Days = property(GetDays,SetDays,doc="See `GetDays` and `SetDays`")
4520 Months = property(GetMonths,SetMonths,doc="See `GetMonths` and `SetMonths`")
4521 TotalDays = property(GetTotalDays,doc="See `GetTotalDays`")
4522 Weeks = property(GetWeeks,SetWeeks,doc="See `GetWeeks` and `SetWeeks`")
4523 Years = property(GetYears,SetYears,doc="See `GetYears` and `SetYears`")
4524 _misc_.DateSpan_swigregister(DateSpan)
4525
4526 def DateSpan_Days(*args, **kwargs):
4527 """DateSpan_Days(int days) -> DateSpan"""
4528 return _misc_.DateSpan_Days(*args, **kwargs)
4529
4530 def DateSpan_Day(*args):
4531 """DateSpan_Day() -> DateSpan"""
4532 return _misc_.DateSpan_Day(*args)
4533
4534 def DateSpan_Weeks(*args, **kwargs):
4535 """DateSpan_Weeks(int weeks) -> DateSpan"""
4536 return _misc_.DateSpan_Weeks(*args, **kwargs)
4537
4538 def DateSpan_Week(*args):
4539 """DateSpan_Week() -> DateSpan"""
4540 return _misc_.DateSpan_Week(*args)
4541
4542 def DateSpan_Months(*args, **kwargs):
4543 """DateSpan_Months(int mon) -> DateSpan"""
4544 return _misc_.DateSpan_Months(*args, **kwargs)
4545
4546 def DateSpan_Month(*args):
4547 """DateSpan_Month() -> DateSpan"""
4548 return _misc_.DateSpan_Month(*args)
4549
4550 def DateSpan_Years(*args, **kwargs):
4551 """DateSpan_Years(int years) -> DateSpan"""
4552 return _misc_.DateSpan_Years(*args, **kwargs)
4553
4554 def DateSpan_Year(*args):
4555 """DateSpan_Year() -> DateSpan"""
4556 return _misc_.DateSpan_Year(*args)
4557
4558
4559 def GetLocalTime(*args):
4560 """GetLocalTime() -> long"""
4561 return _misc_.GetLocalTime(*args)
4562
4563 def GetUTCTime(*args):
4564 """GetUTCTime() -> long"""
4565 return _misc_.GetUTCTime(*args)
4566
4567 def GetCurrentTime(*args):
4568 """GetCurrentTime() -> long"""
4569 return _misc_.GetCurrentTime(*args)
4570
4571 def GetLocalTimeMillis(*args):
4572 """GetLocalTimeMillis() -> wxLongLong"""
4573 return _misc_.GetLocalTimeMillis(*args)
4574 #---------------------------------------------------------------------------
4575
4576 DF_INVALID = _misc_.DF_INVALID
4577 DF_TEXT = _misc_.DF_TEXT
4578 DF_BITMAP = _misc_.DF_BITMAP
4579 DF_METAFILE = _misc_.DF_METAFILE
4580 DF_SYLK = _misc_.DF_SYLK
4581 DF_DIF = _misc_.DF_DIF
4582 DF_TIFF = _misc_.DF_TIFF
4583 DF_OEMTEXT = _misc_.DF_OEMTEXT
4584 DF_DIB = _misc_.DF_DIB
4585 DF_PALETTE = _misc_.DF_PALETTE
4586 DF_PENDATA = _misc_.DF_PENDATA
4587 DF_RIFF = _misc_.DF_RIFF
4588 DF_WAVE = _misc_.DF_WAVE
4589 DF_UNICODETEXT = _misc_.DF_UNICODETEXT
4590 DF_ENHMETAFILE = _misc_.DF_ENHMETAFILE
4591 DF_FILENAME = _misc_.DF_FILENAME
4592 DF_LOCALE = _misc_.DF_LOCALE
4593 DF_PRIVATE = _misc_.DF_PRIVATE
4594 DF_HTML = _misc_.DF_HTML
4595 DF_MAX = _misc_.DF_MAX
4596 class DataFormat(object):
4597 """
4598 A wx.DataFormat is an encapsulation of a platform-specific format
4599 handle which is used by the system for the clipboard and drag and drop
4600 operations. The applications are usually only interested in, for
4601 example, pasting data from the clipboard only if the data is in a
4602 format the program understands. A data format is is used to uniquely
4603 identify this format.
4604 """
4605 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4606 __repr__ = _swig_repr
4607 def __init__(self, *args, **kwargs):
4608 """
4609 __init__(self, int type) -> DataFormat
4610
4611 Constructs a data format object for one of the standard data formats
4612 or an empty data object (use SetType or SetId later in this case)
4613 """
4614 _misc_.DataFormat_swiginit(self,_misc_.new_DataFormat(*args, **kwargs))
4615 __swig_destroy__ = _misc_.delete_DataFormat
4616 __del__ = lambda self : None;
4617 def __eq__(*args):
4618 """
4619 __eq__(self, int format) -> bool
4620 __eq__(self, DataFormat format) -> bool
4621 """
4622 return _misc_.DataFormat___eq__(*args)
4623
4624 def __ne__(*args):
4625 """
4626 __ne__(self, int format) -> bool
4627 __ne__(self, DataFormat format) -> bool
4628 """
4629 return _misc_.DataFormat___ne__(*args)
4630
4631 def SetType(*args, **kwargs):
4632 """
4633 SetType(self, int format)
4634
4635 Sets the format to the given value, which should be one of wx.DF_XXX
4636 constants.
4637 """
4638 return _misc_.DataFormat_SetType(*args, **kwargs)
4639
4640 def GetType(*args, **kwargs):
4641 """
4642 GetType(self) -> int
4643
4644 Returns the platform-specific number identifying the format.
4645 """
4646 return _misc_.DataFormat_GetType(*args, **kwargs)
4647
4648 def GetId(*args, **kwargs):
4649 """
4650 GetId(self) -> String
4651
4652 Returns the name of a custom format (this function will fail for a
4653 standard format).
4654 """
4655 return _misc_.DataFormat_GetId(*args, **kwargs)
4656
4657 def SetId(*args, **kwargs):
4658 """
4659 SetId(self, String format)
4660
4661 Sets the format to be the custom format identified by the given name.
4662 """
4663 return _misc_.DataFormat_SetId(*args, **kwargs)
4664
4665 Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
4666 Type = property(GetType,SetType,doc="See `GetType` and `SetType`")
4667 _misc_.DataFormat_swigregister(DataFormat)
4668 DefaultDateTime = cvar.DefaultDateTime
4669
4670 def CustomDataFormat(*args, **kwargs):
4671 """
4672 CustomDataFormat(String format) -> DataFormat
4673
4674 Constructs a data format object for a custom format identified by its
4675 name.
4676 """
4677 val = _misc_.new_CustomDataFormat(*args, **kwargs)
4678 return val
4679
4680 class DataObject(object):
4681 """
4682 A wx.DataObject represents data that can be copied to or from the
4683 clipboard, or dragged and dropped. The important thing about
4684 wx.DataObject is that this is a 'smart' piece of data unlike usual
4685 'dumb' data containers such as memory buffers or files. Being 'smart'
4686 here means that the data object itself should know what data formats
4687 it supports and how to render itself in each of supported formats.
4688
4689 **NOTE**: This class is an abstract base class and can not be used
4690 directly from Python. If you need a custom type of data object then
4691 you should instead derive from `wx.PyDataObjectSimple` or use
4692 `wx.CustomDataObject`.
4693
4694 """
4695 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4696 def __init__(self): raise AttributeError, "No constructor defined"
4697 __repr__ = _swig_repr
4698 Get = _misc_.DataObject_Get
4699 Set = _misc_.DataObject_Set
4700 Both = _misc_.DataObject_Both
4701 __swig_destroy__ = _misc_.delete_DataObject
4702 __del__ = lambda self : None;
4703 def GetPreferredFormat(*args, **kwargs):
4704 """
4705 GetPreferredFormat(self, int dir=Get) -> DataFormat
4706
4707 Returns the preferred format for either rendering the data (if dir is
4708 Get, its default value) or for setting it. Usually this will be the
4709 native format of the wx.DataObject.
4710 """
4711 return _misc_.DataObject_GetPreferredFormat(*args, **kwargs)
4712
4713 def GetFormatCount(*args, **kwargs):
4714 """
4715 GetFormatCount(self, int dir=Get) -> size_t
4716
4717 Returns the number of available formats for rendering or setting the
4718 data.
4719 """
4720 return _misc_.DataObject_GetFormatCount(*args, **kwargs)
4721
4722 def IsSupported(*args, **kwargs):
4723 """
4724 IsSupported(self, DataFormat format, int dir=Get) -> bool
4725
4726 Returns True if this format is supported.
4727 """
4728 return _misc_.DataObject_IsSupported(*args, **kwargs)
4729
4730 def GetDataSize(*args, **kwargs):
4731 """
4732 GetDataSize(self, DataFormat format) -> size_t
4733
4734 Get the (total) size of data for the given format
4735 """
4736 return _misc_.DataObject_GetDataSize(*args, **kwargs)
4737
4738 def GetAllFormats(*args, **kwargs):
4739 """
4740 GetAllFormats(self, int dir=Get) -> [formats]
4741
4742 Returns a list of all the wx.DataFormats that this dataobject supports
4743 in the given direction.
4744 """
4745 return _misc_.DataObject_GetAllFormats(*args, **kwargs)
4746
4747 def GetDataHere(*args, **kwargs):
4748 """
4749 GetDataHere(self, DataFormat format) -> String
4750
4751 Get the data bytes in the specified format, returns None on failure.
4752 """
4753 return _misc_.DataObject_GetDataHere(*args, **kwargs)
4754
4755 def SetData(*args, **kwargs):
4756 """
4757 SetData(self, DataFormat format, String data) -> bool
4758
4759 Set the data in the specified format from the bytes in the the data string.
4760
4761 """
4762 return _misc_.DataObject_SetData(*args, **kwargs)
4763
4764 AllFormats = property(GetAllFormats,doc="See `GetAllFormats`")
4765 DataHere = property(GetDataHere,doc="See `GetDataHere`")
4766 DataSize = property(GetDataSize,doc="See `GetDataSize`")
4767 FormatCount = property(GetFormatCount,doc="See `GetFormatCount`")
4768 PreferredFormat = property(GetPreferredFormat,doc="See `GetPreferredFormat`")
4769 _misc_.DataObject_swigregister(DataObject)
4770 FormatInvalid = cvar.FormatInvalid
4771
4772 class DataObjectSimple(DataObject):
4773 """
4774 wx.DataObjectSimple is a `wx.DataObject` which only supports one
4775 format. This is the simplest possible `wx.DataObject` implementation.
4776
4777 This is still an "abstract base class" meaning that you can't use it
4778 directly. You either need to use one of the predefined base classes,
4779 or derive your own class from `wx.PyDataObjectSimple`.
4780
4781 """
4782 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4783 __repr__ = _swig_repr
4784 def __init__(self, *args, **kwargs):
4785 """
4786 __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
4787
4788 Constructor accepts the supported format (none by default) which may
4789 also be set later with `SetFormat`.
4790 """
4791 _misc_.DataObjectSimple_swiginit(self,_misc_.new_DataObjectSimple(*args, **kwargs))
4792 def GetFormat(*args, **kwargs):
4793 """
4794 GetFormat(self) -> DataFormat
4795
4796 Returns the (one and only one) format supported by this object. It is
4797 assumed that the format is supported in both directions.
4798 """
4799 return _misc_.DataObjectSimple_GetFormat(*args, **kwargs)
4800
4801 def SetFormat(*args, **kwargs):
4802 """
4803 SetFormat(self, DataFormat format)
4804
4805 Sets the supported format.
4806 """
4807 return _misc_.DataObjectSimple_SetFormat(*args, **kwargs)
4808
4809 def GetDataSize(*args, **kwargs):
4810 """
4811 GetDataSize(self) -> size_t
4812
4813 Get the size of our data.
4814 """
4815 return _misc_.DataObjectSimple_GetDataSize(*args, **kwargs)
4816
4817 def GetDataHere(*args, **kwargs):
4818 """
4819 GetDataHere(self) -> String
4820
4821 Returns the data bytes from the data object as a string, returns None
4822 on failure. Must be implemented in the derived class if the object
4823 supports rendering its data.
4824 """
4825 return _misc_.DataObjectSimple_GetDataHere(*args, **kwargs)
4826
4827 def SetData(*args, **kwargs):
4828 """
4829 SetData(self, String data) -> bool
4830
4831 Copy the data value to the data object. Must be implemented in the
4832 derived class if the object supports setting its data.
4833
4834 """
4835 return _misc_.DataObjectSimple_SetData(*args, **kwargs)
4836
4837 Format = property(GetFormat,SetFormat,doc="See `GetFormat` and `SetFormat`")
4838 _misc_.DataObjectSimple_swigregister(DataObjectSimple)
4839
4840 class PyDataObjectSimple(DataObjectSimple):
4841 """
4842 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4843 Python-aware and knows how to reflect calls to its C++ virtual methods
4844 to methods in the Python derived class. You should derive from this
4845 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4846 need to create your own simple single-format type of `wx.DataObject`.
4847
4848 """
4849 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4850 __repr__ = _swig_repr
4851 def __init__(self, *args, **kwargs):
4852 """
4853 __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
4854
4855 wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
4856 Python-aware and knows how to reflect calls to its C++ virtual methods
4857 to methods in the Python derived class. You should derive from this
4858 class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
4859 need to create your own simple single-format type of `wx.DataObject`.
4860
4861 """
4862 _misc_.PyDataObjectSimple_swiginit(self,_misc_.new_PyDataObjectSimple(*args, **kwargs))
4863 self._setCallbackInfo(self, PyDataObjectSimple)
4864
4865 def _setCallbackInfo(*args, **kwargs):
4866 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4867 return _misc_.PyDataObjectSimple__setCallbackInfo(*args, **kwargs)
4868
4869 _misc_.PyDataObjectSimple_swigregister(PyDataObjectSimple)
4870
4871 class DataObjectComposite(DataObject):
4872 """
4873 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4874 which may be sued to support multiple formats. It contains several
4875 'wx.DataObjectSimple` objects and supports any format supported by at
4876 least one of them. Only one of these data objects is *preferred* (the
4877 first one if not explicitly changed by using the second parameter of
4878 `Add`) and its format determines the preferred format of the composite
4879 data object as well.
4880
4881 See `wx.DataObject` documentation for the reasons why you might prefer
4882 to use wx.DataObject directly instead of wx.DataObjectComposite for
4883 efficiency reasons.
4884
4885 """
4886 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4887 __repr__ = _swig_repr
4888 def __init__(self, *args, **kwargs):
4889 """
4890 __init__(self) -> DataObjectComposite
4891
4892 wx.DataObjectComposite is the simplest `wx.DataObject` derivation
4893 which may be sued to support multiple formats. It contains several
4894 'wx.DataObjectSimple` objects and supports any format supported by at
4895 least one of them. Only one of these data objects is *preferred* (the
4896 first one if not explicitly changed by using the second parameter of
4897 `Add`) and its format determines the preferred format of the composite
4898 data object as well.
4899
4900 See `wx.DataObject` documentation for the reasons why you might prefer
4901 to use wx.DataObject directly instead of wx.DataObjectComposite for
4902 efficiency reasons.
4903
4904 """
4905 _misc_.DataObjectComposite_swiginit(self,_misc_.new_DataObjectComposite(*args, **kwargs))
4906 def Add(*args, **kwargs):
4907 """
4908 Add(self, DataObjectSimple dataObject, bool preferred=False)
4909
4910 Adds the dataObject to the list of supported objects and it becomes
4911 the preferred object if preferred is True.
4912 """
4913 return _misc_.DataObjectComposite_Add(*args, **kwargs)
4914
4915 def GetReceivedFormat(*args, **kwargs):
4916 """
4917 GetReceivedFormat(self) -> DataFormat
4918
4919 Report the format passed to the `SetData` method. This should be the
4920 format of the data object within the composite that recieved data from
4921 the clipboard or the DnD operation. You can use this method to find
4922 out what kind of data object was recieved.
4923 """
4924 return _misc_.DataObjectComposite_GetReceivedFormat(*args, **kwargs)
4925
4926 ReceivedFormat = property(GetReceivedFormat,doc="See `GetReceivedFormat`")
4927 _misc_.DataObjectComposite_swigregister(DataObjectComposite)
4928
4929 class TextDataObject(DataObjectSimple):
4930 """
4931 wx.TextDataObject is a specialization of `wx.DataObject` for text
4932 data. It can be used without change to paste data into the `wx.Clipboard`
4933 or a `wx.DropSource`.
4934
4935 Alternativly, you may wish to derive a new class from the
4936 `wx.PyTextDataObject` class for providing text on-demand in order to
4937 minimize memory consumption when offering data in several formats,
4938 such as plain text and RTF, because by default the text is stored in a
4939 string in this class, but it might as well be generated on demand when
4940 requested. For this, `GetTextLength` and `GetText` will have to be
4941 overridden.
4942 """
4943 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4944 __repr__ = _swig_repr
4945 def __init__(self, *args, **kwargs):
4946 """
4947 __init__(self, String text=EmptyString) -> TextDataObject
4948
4949 Constructor, may be used to initialise the text (otherwise `SetText`
4950 should be used later).
4951 """
4952 _misc_.TextDataObject_swiginit(self,_misc_.new_TextDataObject(*args, **kwargs))
4953 def GetTextLength(*args, **kwargs):
4954 """
4955 GetTextLength(self) -> size_t
4956
4957 Returns the data size. By default, returns the size of the text data
4958 set in the constructor or using `SetText`. This can be overridden (via
4959 `wx.PyTextDataObject`) to provide text size data on-demand. It is
4960 recommended to return the text length plus 1 for a trailing zero, but
4961 this is not strictly required.
4962 """
4963 return _misc_.TextDataObject_GetTextLength(*args, **kwargs)
4964
4965 def GetText(*args, **kwargs):
4966 """
4967 GetText(self) -> String
4968
4969 Returns the text associated with the data object.
4970 """
4971 return _misc_.TextDataObject_GetText(*args, **kwargs)
4972
4973 def SetText(*args, **kwargs):
4974 """
4975 SetText(self, String text)
4976
4977 Sets the text associated with the data object. This method is called
4978 when the data object receives the data and, by default, copies the
4979 text into the member variable. If you want to process the text on the
4980 fly you may wish to override this function (via
4981 `wx.PyTextDataObject`.)
4982 """
4983 return _misc_.TextDataObject_SetText(*args, **kwargs)
4984
4985 _misc_.TextDataObject_swigregister(TextDataObject)
4986
4987 class PyTextDataObject(TextDataObject):
4988 """
4989 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
4990 Python-aware and knows how to reflect calls to its C++ virtual methods
4991 to methods in the Python derived class. You should derive from this
4992 class and overload `GetTextLength`, `GetText`, and `SetText` when you
4993 want to be able to provide text on demand instead of preloading it
4994 into the data object.
4995 """
4996 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4997 __repr__ = _swig_repr
4998 def __init__(self, *args, **kwargs):
4999 """
5000 __init__(self, String text=EmptyString) -> PyTextDataObject
5001
5002 wx.PyTextDataObject is a version of `wx.TextDataObject` that is
5003 Python-aware and knows how to reflect calls to its C++ virtual methods
5004 to methods in the Python derived class. You should derive from this
5005 class and overload `GetTextLength`, `GetText`, and `SetText` when you
5006 want to be able to provide text on demand instead of preloading it
5007 into the data object.
5008 """
5009 _misc_.PyTextDataObject_swiginit(self,_misc_.new_PyTextDataObject(*args, **kwargs))
5010 self._setCallbackInfo(self, PyTextDataObject)
5011
5012 def _setCallbackInfo(*args, **kwargs):
5013 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5014 return _misc_.PyTextDataObject__setCallbackInfo(*args, **kwargs)
5015
5016 _misc_.PyTextDataObject_swigregister(PyTextDataObject)
5017
5018 class BitmapDataObject(DataObjectSimple):
5019 """
5020 wx.BitmapDataObject is a specialization of wxDataObject for bitmap
5021 data. It can be used without change to paste data into the `wx.Clipboard`
5022 or a `wx.DropSource`.
5023
5024 """
5025 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5026 __repr__ = _swig_repr
5027 def __init__(self, *args, **kwargs):
5028 """
5029 __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
5030
5031 Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
5032 later).
5033 """
5034 _misc_.BitmapDataObject_swiginit(self,_misc_.new_BitmapDataObject(*args, **kwargs))
5035 def GetBitmap(*args, **kwargs):
5036 """
5037 GetBitmap(self) -> Bitmap
5038
5039 Returns the bitmap associated with the data object. You may wish to
5040 override this method (by deriving from `wx.PyBitmapDataObject`) when
5041 offering data on-demand, but this is not required by wxWidgets'
5042 internals. Use this method to get data in bitmap form from the
5043 `wx.Clipboard`.
5044 """
5045 return _misc_.BitmapDataObject_GetBitmap(*args, **kwargs)
5046
5047 def SetBitmap(*args, **kwargs):
5048 """
5049 SetBitmap(self, Bitmap bitmap)
5050
5051 Sets the bitmap associated with the data object. This method is called
5052 when the data object receives data. Usually there will be no reason to
5053 override this function.
5054 """
5055 return _misc_.BitmapDataObject_SetBitmap(*args, **kwargs)
5056
5057 Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`")
5058 _misc_.BitmapDataObject_swigregister(BitmapDataObject)
5059
5060 class PyBitmapDataObject(BitmapDataObject):
5061 """
5062 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5063 Python-aware and knows how to reflect calls to its C++ virtual methods
5064 to methods in the Python derived class. To be able to provide bitmap
5065 data on demand derive from this class and overload `GetBitmap`.
5066 """
5067 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5068 __repr__ = _swig_repr
5069 def __init__(self, *args, **kwargs):
5070 """
5071 __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
5072
5073 wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
5074 Python-aware and knows how to reflect calls to its C++ virtual methods
5075 to methods in the Python derived class. To be able to provide bitmap
5076 data on demand derive from this class and overload `GetBitmap`.
5077 """
5078 _misc_.PyBitmapDataObject_swiginit(self,_misc_.new_PyBitmapDataObject(*args, **kwargs))
5079 self._setCallbackInfo(self, PyBitmapDataObject)
5080
5081 def _setCallbackInfo(*args, **kwargs):
5082 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5083 return _misc_.PyBitmapDataObject__setCallbackInfo(*args, **kwargs)
5084
5085 _misc_.PyBitmapDataObject_swigregister(PyBitmapDataObject)
5086
5087 class FileDataObject(DataObjectSimple):
5088 """
5089 wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
5090 file names. The program works with it just as if it were a list of
5091 absolute file names, but internally it uses the same format as
5092 Explorer and other compatible programs under Windows or GNOME/KDE
5093 filemanager under Unix which makes it possible to receive files from
5094 them using this class.
5095 """
5096 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5097 __repr__ = _swig_repr
5098 def __init__(self, *args, **kwargs):
5099 """__init__(self) -> FileDataObject"""
5100 _misc_.FileDataObject_swiginit(self,_misc_.new_FileDataObject(*args, **kwargs))
5101 def GetFilenames(*args, **kwargs):
5102 """
5103 GetFilenames(self) -> [names]
5104
5105 Returns a list of file names.
5106 """
5107 return _misc_.FileDataObject_GetFilenames(*args, **kwargs)
5108
5109 def AddFile(*args, **kwargs):
5110 """
5111 AddFile(self, String filename)
5112
5113 Adds a file to the list of files represented by this data object.
5114 """
5115 return _misc_.FileDataObject_AddFile(*args, **kwargs)
5116
5117 Filenames = property(GetFilenames,doc="See `GetFilenames`")
5118 _misc_.FileDataObject_swigregister(FileDataObject)
5119
5120 class CustomDataObject(DataObjectSimple):
5121 """
5122 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5123 some application-specific data in arbitrary format. Python strings
5124 are used for getting and setting data, but any picklable object can
5125 easily be transfered via strings. A copy of the data is stored in the
5126 data object.
5127 """
5128 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5129 __repr__ = _swig_repr
5130 def __init__(self, *args):
5131 """
5132 __init__(self, DataFormat format) -> CustomDataObject
5133 __init__(self, String formatName) -> CustomDataObject
5134 __init__(self) -> CustomDataObject
5135
5136 wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
5137 some application-specific data in arbitrary format. Python strings
5138 are used for getting and setting data, but any picklable object can
5139 easily be transfered via strings. A copy of the data is stored in the
5140 data object.
5141 """
5142 _misc_.CustomDataObject_swiginit(self,_misc_.new_CustomDataObject(*args))
5143 def SetData(*args, **kwargs):
5144 """
5145 SetData(self, String data) -> bool
5146
5147 Copy the data value to the data object.
5148 """
5149 return _misc_.CustomDataObject_SetData(*args, **kwargs)
5150
5151 TakeData = SetData
5152 def GetSize(*args, **kwargs):
5153 """
5154 GetSize(self) -> size_t
5155
5156 Get the size of the data.
5157 """
5158 return _misc_.CustomDataObject_GetSize(*args, **kwargs)
5159
5160 def GetData(*args, **kwargs):
5161 """
5162 GetData(self) -> String
5163
5164 Returns the data bytes from the data object as a string.
5165 """
5166 return _misc_.CustomDataObject_GetData(*args, **kwargs)
5167
5168 Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
5169 Size = property(GetSize,doc="See `GetSize`")
5170 _misc_.CustomDataObject_swigregister(CustomDataObject)
5171
5172 class URLDataObject(DataObject):
5173 """
5174 This data object holds a URL in a format that is compatible with some
5175 browsers such that it is able to be dragged to or from them.
5176 """
5177 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5178 __repr__ = _swig_repr
5179 def __init__(self, *args, **kwargs):
5180 """
5181 __init__(self, String url=EmptyString) -> URLDataObject
5182
5183 This data object holds a URL in a format that is compatible with some
5184 browsers such that it is able to be dragged to or from them.
5185 """
5186 _misc_.URLDataObject_swiginit(self,_misc_.new_URLDataObject(*args, **kwargs))
5187 def GetURL(*args, **kwargs):
5188 """
5189 GetURL(self) -> String
5190
5191 Returns a string containing the current URL.
5192 """
5193 return _misc_.URLDataObject_GetURL(*args, **kwargs)
5194
5195 def SetURL(*args, **kwargs):
5196 """
5197 SetURL(self, String url)
5198
5199 Set the URL.
5200 """
5201 return _misc_.URLDataObject_SetURL(*args, **kwargs)
5202
5203 _misc_.URLDataObject_swigregister(URLDataObject)
5204
5205 class MetafileDataObject(DataObjectSimple):
5206 """Proxy of C++ MetafileDataObject class"""
5207 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5208 __repr__ = _swig_repr
5209 def __init__(self, *args, **kwargs):
5210 """__init__(self) -> MetafileDataObject"""
5211 _misc_.MetafileDataObject_swiginit(self,_misc_.new_MetafileDataObject(*args, **kwargs))
5212 _misc_.MetafileDataObject_swigregister(MetafileDataObject)
5213
5214 #---------------------------------------------------------------------------
5215
5216 Drag_CopyOnly = _misc_.Drag_CopyOnly
5217 Drag_AllowMove = _misc_.Drag_AllowMove
5218 Drag_DefaultMove = _misc_.Drag_DefaultMove
5219 DragError = _misc_.DragError
5220 DragNone = _misc_.DragNone
5221 DragCopy = _misc_.DragCopy
5222 DragMove = _misc_.DragMove
5223 DragLink = _misc_.DragLink
5224 DragCancel = _misc_.DragCancel
5225
5226 def IsDragResultOk(*args, **kwargs):
5227 """IsDragResultOk(int res) -> bool"""
5228 return _misc_.IsDragResultOk(*args, **kwargs)
5229 class DropSource(object):
5230 """Proxy of C++ DropSource class"""
5231 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5232 __repr__ = _swig_repr
5233 def __init__(self, *args, **kwargs):
5234 """
5235 __init__(self, Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
5236 Icon none=wxNullIcon) -> DropSource
5237 """
5238 _misc_.DropSource_swiginit(self,_misc_.new_DropSource(*args, **kwargs))
5239 self._setCallbackInfo(self, DropSource, 0)
5240
5241 def _setCallbackInfo(*args, **kwargs):
5242 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
5243 return _misc_.DropSource__setCallbackInfo(*args, **kwargs)
5244
5245 __swig_destroy__ = _misc_.delete_DropSource
5246 __del__ = lambda self : None;
5247 def SetData(*args, **kwargs):
5248 """SetData(self, DataObject data)"""
5249 return _misc_.DropSource_SetData(*args, **kwargs)
5250
5251 def GetDataObject(*args, **kwargs):
5252 """GetDataObject(self) -> DataObject"""
5253 return _misc_.DropSource_GetDataObject(*args, **kwargs)
5254
5255 def SetCursor(*args, **kwargs):
5256 """SetCursor(self, int res, Cursor cursor)"""
5257 return _misc_.DropSource_SetCursor(*args, **kwargs)
5258
5259 def DoDragDrop(*args, **kwargs):
5260 """DoDragDrop(self, int flags=Drag_CopyOnly) -> int"""
5261 return _misc_.DropSource_DoDragDrop(*args, **kwargs)
5262
5263 def GiveFeedback(*args, **kwargs):
5264 """GiveFeedback(self, int effect) -> bool"""
5265 return _misc_.DropSource_GiveFeedback(*args, **kwargs)
5266
5267 def base_GiveFeedback(*args, **kw):
5268 return DropSource.GiveFeedback(*args, **kw)
5269 base_GiveFeedback = wx._deprecated(base_GiveFeedback,
5270 "Please use DropSource.GiveFeedback instead.")
5271
5272 DataObject = property(GetDataObject,SetData,doc="See `GetDataObject` and `SetData`")
5273 _misc_.DropSource_swigregister(DropSource)
5274
5275 def DROP_ICON(filename):
5276 """
5277 Returns either a `wx.Cursor` or `wx.Icon` created from the image file
5278 ``filename``. This function is useful with the `wx.DropSource` class
5279 which, depending on platform accepts either a icon or a cursor.
5280 """
5281 img = wx.Image(filename)
5282 if wx.Platform == '__WXGTK__':
5283 return wx.IconFromBitmap(wx.BitmapFromImage(img))
5284 else:
5285 return wx.CursorFromImage(img)
5286
5287 class DropTarget(object):
5288 """Proxy of C++ DropTarget class"""
5289 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5290 __repr__ = _swig_repr
5291 def __init__(self, *args, **kwargs):
5292 """__init__(self, DataObject dataObject=None) -> DropTarget"""
5293 _misc_.DropTarget_swiginit(self,_misc_.new_DropTarget(*args, **kwargs))
5294 self._setCallbackInfo(self, DropTarget)
5295
5296 def _setCallbackInfo(*args, **kwargs):
5297 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5298 return _misc_.DropTarget__setCallbackInfo(*args, **kwargs)
5299
5300 __swig_destroy__ = _misc_.delete_DropTarget
5301 __del__ = lambda self : None;
5302 def GetDataObject(*args, **kwargs):
5303 """GetDataObject(self) -> DataObject"""
5304 return _misc_.DropTarget_GetDataObject(*args, **kwargs)
5305
5306 def SetDataObject(*args, **kwargs):
5307 """SetDataObject(self, DataObject dataObject)"""
5308 return _misc_.DropTarget_SetDataObject(*args, **kwargs)
5309
5310 def OnEnter(*args, **kwargs):
5311 """OnEnter(self, int x, int y, int def) -> int"""
5312 return _misc_.DropTarget_OnEnter(*args, **kwargs)
5313
5314 def OnDragOver(*args, **kwargs):
5315 """OnDragOver(self, int x, int y, int def) -> int"""
5316 return _misc_.DropTarget_OnDragOver(*args, **kwargs)
5317
5318 def OnLeave(*args, **kwargs):
5319 """OnLeave(self)"""
5320 return _misc_.DropTarget_OnLeave(*args, **kwargs)
5321
5322 def OnDrop(*args, **kwargs):
5323 """OnDrop(self, int x, int y) -> bool"""
5324 return _misc_.DropTarget_OnDrop(*args, **kwargs)
5325
5326 def base_OnEnter(*args, **kw):
5327 return DropTarget.OnEnter(*args, **kw)
5328 base_OnEnter = wx._deprecated(base_OnEnter,
5329 "Please use DropTarget.OnEnter instead.")
5330
5331 def base_OnDragOver(*args, **kw):
5332 return DropTarget.OnDragOver(*args, **kw)
5333 base_OnDragOver = wx._deprecated(base_OnDragOver,
5334 "Please use DropTarget.OnDragOver instead.")
5335
5336 def base_OnLeave(*args, **kw):
5337 return DropTarget.OnLeave(*args, **kw)
5338 base_OnLeave = wx._deprecated(base_OnLeave,
5339 "Please use DropTarget.OnLeave instead.")
5340
5341 def base_OnDrop(*args, **kw):
5342 return DropTarget.OnDrop(*args, **kw)
5343 base_OnDrop = wx._deprecated(base_OnDrop,
5344 "Please use DropTarget.OnDrop instead.")
5345
5346 def GetData(*args, **kwargs):
5347 """GetData(self) -> bool"""
5348 return _misc_.DropTarget_GetData(*args, **kwargs)
5349
5350 def SetDefaultAction(*args, **kwargs):
5351 """SetDefaultAction(self, int action)"""
5352 return _misc_.DropTarget_SetDefaultAction(*args, **kwargs)
5353
5354 def GetDefaultAction(*args, **kwargs):
5355 """GetDefaultAction(self) -> int"""
5356 return _misc_.DropTarget_GetDefaultAction(*args, **kwargs)
5357
5358 Data = property(GetData,doc="See `GetData`")
5359 DataObject = property(GetDataObject,SetDataObject,doc="See `GetDataObject` and `SetDataObject`")
5360 DefaultAction = property(GetDefaultAction,SetDefaultAction,doc="See `GetDefaultAction` and `SetDefaultAction`")
5361 _misc_.DropTarget_swigregister(DropTarget)
5362
5363 PyDropTarget = DropTarget
5364 class TextDropTarget(DropTarget):
5365 """Proxy of C++ TextDropTarget class"""
5366 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5367 __repr__ = _swig_repr
5368 def __init__(self, *args, **kwargs):
5369 """__init__(self) -> TextDropTarget"""
5370 _misc_.TextDropTarget_swiginit(self,_misc_.new_TextDropTarget(*args, **kwargs))
5371 self._setCallbackInfo(self, TextDropTarget)
5372
5373 def _setCallbackInfo(*args, **kwargs):
5374 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5375 return _misc_.TextDropTarget__setCallbackInfo(*args, **kwargs)
5376
5377 def OnDropText(*args, **kwargs):
5378 """OnDropText(self, int x, int y, String text) -> bool"""
5379 return _misc_.TextDropTarget_OnDropText(*args, **kwargs)
5380
5381 def OnEnter(*args, **kwargs):
5382 """OnEnter(self, int x, int y, int def) -> int"""
5383 return _misc_.TextDropTarget_OnEnter(*args, **kwargs)
5384
5385 def OnDragOver(*args, **kwargs):
5386 """OnDragOver(self, int x, int y, int def) -> int"""
5387 return _misc_.TextDropTarget_OnDragOver(*args, **kwargs)
5388
5389 def OnLeave(*args, **kwargs):
5390 """OnLeave(self)"""
5391 return _misc_.TextDropTarget_OnLeave(*args, **kwargs)
5392
5393 def OnDrop(*args, **kwargs):
5394 """OnDrop(self, int x, int y) -> bool"""
5395 return _misc_.TextDropTarget_OnDrop(*args, **kwargs)
5396
5397 def OnData(*args, **kwargs):
5398 """OnData(self, int x, int y, int def) -> int"""
5399 return _misc_.TextDropTarget_OnData(*args, **kwargs)
5400
5401 def base_OnDropText(*args, **kw):
5402 return TextDropTarget.OnDropText(*args, **kw)
5403 base_OnDropText = wx._deprecated(base_OnDropText,
5404 "Please use TextDropTarget.OnDropText instead.")
5405
5406 def base_OnEnter(*args, **kw):
5407 return TextDropTarget.OnEnter(*args, **kw)
5408 base_OnEnter = wx._deprecated(base_OnEnter,
5409 "Please use TextDropTarget.OnEnter instead.")
5410
5411 def base_OnDragOver(*args, **kw):
5412 return TextDropTarget.OnDragOver(*args, **kw)
5413 base_OnDragOver = wx._deprecated(base_OnDragOver,
5414 "Please use TextDropTarget.OnDragOver instead.")
5415
5416 def base_OnLeave(*args, **kw):
5417 return TextDropTarget.OnLeave(*args, **kw)
5418 base_OnLeave = wx._deprecated(base_OnLeave,
5419 "Please use TextDropTarget.OnLeave instead.")
5420
5421 def base_OnDrop(*args, **kw):
5422 return TextDropTarget.OnDrop(*args, **kw)
5423 base_OnDrop = wx._deprecated(base_OnDrop,
5424 "Please use TextDropTarget.OnDrop instead.")
5425
5426 def base_OnData(*args, **kw):
5427 return TextDropTarget.OnData(*args, **kw)
5428 base_OnData = wx._deprecated(base_OnData,
5429 "Please use TextDropTarget.OnData instead.")
5430
5431 _misc_.TextDropTarget_swigregister(TextDropTarget)
5432
5433 class FileDropTarget(DropTarget):
5434 """Proxy of C++ FileDropTarget class"""
5435 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5436 __repr__ = _swig_repr
5437 def __init__(self, *args, **kwargs):
5438 """__init__(self) -> FileDropTarget"""
5439 _misc_.FileDropTarget_swiginit(self,_misc_.new_FileDropTarget(*args, **kwargs))
5440 self._setCallbackInfo(self, FileDropTarget)
5441
5442 def _setCallbackInfo(*args, **kwargs):
5443 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5444 return _misc_.FileDropTarget__setCallbackInfo(*args, **kwargs)
5445
5446 def OnDropFiles(*args, **kwargs):
5447 """OnDropFiles(self, int x, int y, wxArrayString filenames) -> bool"""
5448 return _misc_.FileDropTarget_OnDropFiles(*args, **kwargs)
5449
5450 def OnEnter(*args, **kwargs):
5451 """OnEnter(self, int x, int y, int def) -> int"""
5452 return _misc_.FileDropTarget_OnEnter(*args, **kwargs)
5453
5454 def OnDragOver(*args, **kwargs):
5455 """OnDragOver(self, int x, int y, int def) -> int"""
5456 return _misc_.FileDropTarget_OnDragOver(*args, **kwargs)
5457
5458 def OnLeave(*args, **kwargs):
5459 """OnLeave(self)"""
5460 return _misc_.FileDropTarget_OnLeave(*args, **kwargs)
5461
5462 def OnDrop(*args, **kwargs):
5463 """OnDrop(self, int x, int y) -> bool"""
5464 return _misc_.FileDropTarget_OnDrop(*args, **kwargs)
5465
5466 def OnData(*args, **kwargs):
5467 """OnData(self, int x, int y, int def) -> int"""
5468 return _misc_.FileDropTarget_OnData(*args, **kwargs)
5469
5470 def base_OnDropFiles(*args, **kw):
5471 return FileDropTarget.OnDropFiles(*args, **kw)
5472 base_OnDropFiles = wx._deprecated(base_OnDropFiles,
5473 "Please use FileDropTarget.OnDropFiles instead.")
5474
5475 def base_OnEnter(*args, **kw):
5476 return FileDropTarget.OnEnter(*args, **kw)
5477 base_OnEnter = wx._deprecated(base_OnEnter,
5478 "Please use FileDropTarget.OnEnter instead.")
5479
5480 def base_OnDragOver(*args, **kw):
5481 return FileDropTarget.OnDragOver(*args, **kw)
5482 base_OnDragOver = wx._deprecated(base_OnDragOver,
5483 "Please use FileDropTarget.OnDragOver instead.")
5484
5485 def base_OnLeave(*args, **kw):
5486 return FileDropTarget.OnLeave(*args, **kw)
5487 base_OnLeave = wx._deprecated(base_OnLeave,
5488 "Please use FileDropTarget.OnLeave instead.")
5489
5490 def base_OnDrop(*args, **kw):
5491 return FileDropTarget.OnDrop(*args, **kw)
5492 base_OnDrop = wx._deprecated(base_OnDrop,
5493 "Please use FileDropTarget.OnDrop instead.")
5494
5495 def base_OnData(*args, **kw):
5496 return FileDropTarget.OnData(*args, **kw)
5497 base_OnData = wx._deprecated(base_OnData,
5498 "Please use FileDropTarget.OnData instead.")
5499
5500 _misc_.FileDropTarget_swigregister(FileDropTarget)
5501
5502 #---------------------------------------------------------------------------
5503
5504 class Clipboard(_core.Object):
5505 """
5506 wx.Clipboard represents the system clipboard and provides methods to
5507 copy data to it or paste data from it. Normally, you should only use
5508 ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
5509 instance.
5510
5511 Call ``wx.TheClipboard``'s `Open` method to get ownership of the
5512 clipboard. If this operation returns True, you now own the
5513 clipboard. Call `SetData` to put data on the clipboard, or `GetData`
5514 to retrieve data from the clipboard. Call `Close` to close the
5515 clipboard and relinquish ownership. You should keep the clipboard open
5516 only momentarily.
5517
5518 :see: `wx.DataObject`
5519
5520 """
5521 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5522 __repr__ = _swig_repr
5523 def __init__(self, *args, **kwargs):
5524 """__init__(self) -> Clipboard"""
5525 _misc_.Clipboard_swiginit(self,_misc_.new_Clipboard(*args, **kwargs))
5526 __swig_destroy__ = _misc_.delete_Clipboard
5527 __del__ = lambda self : None;
5528 def Open(*args, **kwargs):
5529 """
5530 Open(self) -> bool
5531
5532 Call this function to open the clipboard before calling SetData and
5533 GetData. Call Close when you have finished with the clipboard. You
5534 should keep the clipboard open for only a very short time. Returns
5535 True on success.
5536 """
5537 return _misc_.Clipboard_Open(*args, **kwargs)
5538
5539 def Close(*args, **kwargs):
5540 """
5541 Close(self)
5542
5543 Closes the clipboard.
5544 """
5545 return _misc_.Clipboard_Close(*args, **kwargs)
5546
5547 def IsOpened(*args, **kwargs):
5548 """
5549 IsOpened(self) -> bool
5550
5551 Query whether the clipboard is opened
5552 """
5553 return _misc_.Clipboard_IsOpened(*args, **kwargs)
5554
5555 def AddData(*args, **kwargs):
5556 """
5557 AddData(self, DataObject data) -> bool
5558
5559 Call this function to add the data object to the clipboard. You may
5560 call this function repeatedly after having cleared the clipboard.
5561 After this function has been called, the clipboard owns the data, so
5562 do not delete the data explicitly.
5563
5564 :see: `wx.DataObject`
5565 """
5566 return _misc_.Clipboard_AddData(*args, **kwargs)
5567
5568 def SetData(*args, **kwargs):
5569 """
5570 SetData(self, DataObject data) -> bool
5571
5572 Set the clipboard data, this is the same as `Clear` followed by
5573 `AddData`.
5574
5575 :see: `wx.DataObject`
5576 """
5577 return _misc_.Clipboard_SetData(*args, **kwargs)
5578
5579 def IsSupported(*args, **kwargs):
5580 """
5581 IsSupported(self, DataFormat format) -> bool
5582
5583 Returns True if the given format is available in the data object(s) on
5584 the clipboard.
5585 """
5586 return _misc_.Clipboard_IsSupported(*args, **kwargs)
5587
5588 def GetData(*args, **kwargs):
5589 """
5590 GetData(self, DataObject data) -> bool
5591
5592 Call this function to fill data with data on the clipboard, if
5593 available in the required format. Returns true on success.
5594 """
5595 return _misc_.Clipboard_GetData(*args, **kwargs)
5596
5597 def Clear(*args, **kwargs):
5598 """
5599 Clear(self)
5600
5601 Clears data from the clipboard object and also the system's clipboard
5602 if possible.
5603 """
5604 return _misc_.Clipboard_Clear(*args, **kwargs)
5605
5606 def Flush(*args, **kwargs):
5607 """
5608 Flush(self) -> bool
5609
5610 Flushes the clipboard: this means that the data which is currently on
5611 clipboard will stay available even after the application exits,
5612 possibly eating memory, otherwise the clipboard will be emptied on
5613 exit. Returns False if the operation is unsuccesful for any reason.
5614 """
5615 return _misc_.Clipboard_Flush(*args, **kwargs)
5616
5617 def UsePrimarySelection(*args, **kwargs):
5618 """
5619 UsePrimarySelection(self, bool primary=True)
5620
5621 On platforms supporting it (the X11 based platforms), selects the
5622 so called PRIMARY SELECTION as the clipboard as opposed to the
5623 normal clipboard, if primary is True.
5624 """
5625 return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs)
5626
5627 def Get(*args, **kwargs):
5628 """
5629 Get() -> Clipboard
5630
5631 Returns global instance (wxTheClipboard) of the object.
5632 """
5633 return _misc_.Clipboard_Get(*args, **kwargs)
5634
5635 Get = staticmethod(Get)
5636 Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
5637 _misc_.Clipboard_swigregister(Clipboard)
5638
5639 def Clipboard_Get(*args):
5640 """
5641 Clipboard_Get() -> Clipboard
5642
5643 Returns global instance (wxTheClipboard) of the object.
5644 """
5645 return _misc_.Clipboard_Get(*args)
5646
5647 class _wxPyDelayedInitWrapper(object):
5648 def __init__(self, initfunc, *args, **kwargs):
5649 self._initfunc = initfunc
5650 self._args = args
5651 self._kwargs = kwargs
5652 self._instance = None
5653 def _checkInstance(self):
5654 if self._instance is None:
5655 if wx.GetApp():
5656 self._instance = self._initfunc(*self._args, **self._kwargs)
5657 def __getattr__(self, name):
5658 self._checkInstance()
5659 return getattr(self._instance, name)
5660 def __repr__(self):
5661 self._checkInstance()
5662 return repr(self._instance)
5663 TheClipboard = _wxPyDelayedInitWrapper(Clipboard.Get)
5664
5665 class ClipboardLocker(object):
5666 """
5667 A helpful class for opening the clipboard and automatically
5668 closing it when the locker is destroyed.
5669 """
5670 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5671 __repr__ = _swig_repr
5672 def __init__(self, *args, **kwargs):
5673 """
5674 __init__(self, Clipboard clipboard=None) -> ClipboardLocker
5675
5676 A helpful class for opening the clipboard and automatically
5677 closing it when the locker is destroyed.
5678 """
5679 _misc_.ClipboardLocker_swiginit(self,_misc_.new_ClipboardLocker(*args, **kwargs))
5680 __swig_destroy__ = _misc_.delete_ClipboardLocker
5681 __del__ = lambda self : None;
5682 def __nonzero__(*args, **kwargs):
5683 """
5684 __nonzero__(self) -> bool
5685
5686 A ClipboardLocker instance evaluates to True if the clipboard was
5687 successfully opened.
5688 """
5689 return _misc_.ClipboardLocker___nonzero__(*args, **kwargs)
5690
5691 _misc_.ClipboardLocker_swigregister(ClipboardLocker)
5692
5693 #---------------------------------------------------------------------------
5694
5695 class VideoMode(object):
5696 """A simple struct containing video mode parameters for a display"""
5697 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5698 __repr__ = _swig_repr
5699 def __init__(self, *args, **kwargs):
5700 """
5701 __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
5702
5703 A simple struct containing video mode parameters for a display
5704 """
5705 _misc_.VideoMode_swiginit(self,_misc_.new_VideoMode(*args, **kwargs))
5706 __swig_destroy__ = _misc_.delete_VideoMode
5707 __del__ = lambda self : None;
5708 def Matches(*args, **kwargs):
5709 """
5710 Matches(self, VideoMode other) -> bool
5711
5712 Returns True if this mode matches the other one in the sense that all
5713 non-zero fields of the other mode have the same value in this
5714 one (except for refresh which is allowed to have a greater value)
5715 """
5716 return _misc_.VideoMode_Matches(*args, **kwargs)
5717
5718 def GetWidth(*args, **kwargs):
5719 """
5720 GetWidth(self) -> int
5721
5722 Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
5723 """
5724 return _misc_.VideoMode_GetWidth(*args, **kwargs)
5725
5726 def GetHeight(*args, **kwargs):
5727 """
5728 GetHeight(self) -> int
5729
5730 Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
5731 """
5732 return _misc_.VideoMode_GetHeight(*args, **kwargs)
5733
5734 def GetDepth(*args, **kwargs):
5735 """
5736 GetDepth(self) -> int
5737
5738 Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
5739 means unspecified/known
5740 """
5741 return _misc_.VideoMode_GetDepth(*args, **kwargs)
5742
5743 def IsOk(*args, **kwargs):
5744 """
5745 IsOk(self) -> bool
5746
5747 returns true if the object has been initialized
5748 """
5749 return _misc_.VideoMode_IsOk(*args, **kwargs)
5750
5751 def __nonzero__(self): return self.IsOk()
5752 def __eq__(*args, **kwargs):
5753 """__eq__(self, VideoMode other) -> bool"""
5754 return _misc_.VideoMode___eq__(*args, **kwargs)
5755
5756 def __ne__(*args, **kwargs):
5757 """__ne__(self, VideoMode other) -> bool"""
5758 return _misc_.VideoMode___ne__(*args, **kwargs)
5759
5760 w = property(_misc_.VideoMode_w_get, _misc_.VideoMode_w_set)
5761 h = property(_misc_.VideoMode_h_get, _misc_.VideoMode_h_set)
5762 bpp = property(_misc_.VideoMode_bpp_get, _misc_.VideoMode_bpp_set)
5763 refresh = property(_misc_.VideoMode_refresh_get, _misc_.VideoMode_refresh_set)
5764 _misc_.VideoMode_swigregister(VideoMode)
5765
5766 class Display(object):
5767 """Represents a display/monitor attached to the system"""
5768 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5769 __repr__ = _swig_repr
5770 def __init__(self, *args, **kwargs):
5771 """
5772 __init__(self, size_t index=0) -> Display
5773
5774 Set up a Display instance with the specified display. The displays
5775 are numbered from 0 to GetCount() - 1, 0 is always the primary display
5776 and the only one which is always supported
5777 """
5778 _misc_.Display_swiginit(self,_misc_.new_Display(*args, **kwargs))
5779 __swig_destroy__ = _misc_.delete_Display
5780 __del__ = lambda self : None;
5781 def GetCount(*args, **kwargs):
5782 """
5783 GetCount() -> size_t
5784
5785 Return the number of available displays.
5786 """
5787 return _misc_.Display_GetCount(*args, **kwargs)
5788
5789 GetCount = staticmethod(GetCount)
5790 def GetFromPoint(*args, **kwargs):
5791 """
5792 GetFromPoint(Point pt) -> int
5793
5794 Find the display where the given point lies, return wx.NOT_FOUND if it
5795 doesn't belong to any display
5796 """
5797 return _misc_.Display_GetFromPoint(*args, **kwargs)
5798
5799 GetFromPoint = staticmethod(GetFromPoint)
5800 def GetFromWindow(*args, **kwargs):
5801 """
5802 GetFromWindow(Window window) -> int
5803
5804 Find the display where the given window lies, return wx.NOT_FOUND if
5805 it is not shown at all.
5806 """
5807 return _misc_.Display_GetFromWindow(*args, **kwargs)
5808
5809 GetFromWindow = staticmethod(GetFromWindow)
5810 def IsOk(*args, **kwargs):
5811 """
5812 IsOk(self) -> bool
5813
5814 Return true if the object was initialized successfully
5815 """
5816 return _misc_.Display_IsOk(*args, **kwargs)
5817
5818 def __nonzero__(self): return self.IsOk()
5819 def GetGeometry(*args, **kwargs):
5820 """
5821 GetGeometry(self) -> Rect
5822
5823 Returns the bounding rectangle of the display whose index was passed
5824 to the constructor.
5825 """
5826 return _misc_.Display_GetGeometry(*args, **kwargs)
5827
5828 def GetClientArea(*args, **kwargs):
5829 """
5830 GetClientArea(self) -> Rect
5831
5832 Returns the bounding rectangle the client area of the display,
5833 i.e., without taskbars and such.
5834 """
5835 return _misc_.Display_GetClientArea(*args, **kwargs)
5836
5837 def GetName(*args, **kwargs):
5838 """
5839 GetName(self) -> String
5840
5841 Returns the display's name. A name is not available on all platforms.
5842 """
5843 return _misc_.Display_GetName(*args, **kwargs)
5844
5845 def IsPrimary(*args, **kwargs):
5846 """
5847 IsPrimary(self) -> bool
5848
5849 Returns True if the display is the primary display. The primary
5850 display is the one whose index is 0.
5851 """
5852 return _misc_.Display_IsPrimary(*args, **kwargs)
5853
5854 def GetModes(*args, **kwargs):
5855 """
5856 GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
5857
5858 Enumerate all video modes supported by this display matching the given
5859 one (in the sense of VideoMode.Match()).
5860
5861 As any mode matches the default value of the argument and there is
5862 always at least one video mode supported by display, the returned
5863 array is only empty for the default value of the argument if this
5864 function is not supported at all on this platform.
5865 """
5866 return _misc_.Display_GetModes(*args, **kwargs)
5867
5868 def GetCurrentMode(*args, **kwargs):
5869 """
5870 GetCurrentMode(self) -> VideoMode
5871
5872 Get the current video mode.
5873 """
5874 return _misc_.Display_GetCurrentMode(*args, **kwargs)
5875
5876 def ChangeMode(*args, **kwargs):
5877 """
5878 ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
5879
5880 Changes the video mode of this display to the mode specified in the
5881 mode parameter.
5882
5883 If wx.DefaultVideoMode is passed in as the mode parameter, the defined
5884 behaviour is that wx.Display will reset the video mode to the default
5885 mode used by the display. On Windows, the behavior is normal.
5886 However, there are differences on other platforms. On Unix variations
5887 using X11 extensions it should behave as defined, but some
5888 irregularities may occur.
5889
5890 On wxMac passing in wx.DefaultVideoMode as the mode parameter does
5891 nothing. This happens because Carbon no longer has access to
5892 DMUseScreenPrefs, an undocumented function that changed the video mode
5893 to the system default by using the system's 'scrn' resource.
5894
5895 Returns True if succeeded, False otherwise
5896 """
5897 return _misc_.Display_ChangeMode(*args, **kwargs)
5898
5899 def ResetMode(*args, **kwargs):
5900 """
5901 ResetMode(self)
5902
5903 Restore the default video mode (just a more readable synonym)
5904 """
5905 return _misc_.Display_ResetMode(*args, **kwargs)
5906
5907 ClientArea = property(GetClientArea,doc="See `GetClientArea`")
5908 CurrentMode = property(GetCurrentMode,doc="See `GetCurrentMode`")
5909 Geometry = property(GetGeometry,doc="See `GetGeometry`")
5910 Modes = property(GetModes,doc="See `GetModes`")
5911 Name = property(GetName,doc="See `GetName`")
5912 _misc_.Display_swigregister(Display)
5913 DefaultVideoMode = cvar.DefaultVideoMode
5914
5915 def Display_GetCount(*args):
5916 """
5917 Display_GetCount() -> size_t
5918
5919 Return the number of available displays.
5920 """
5921 return _misc_.Display_GetCount(*args)
5922
5923 def Display_GetFromPoint(*args, **kwargs):
5924 """
5925 Display_GetFromPoint(Point pt) -> int
5926
5927 Find the display where the given point lies, return wx.NOT_FOUND if it
5928 doesn't belong to any display
5929 """
5930 return _misc_.Display_GetFromPoint(*args, **kwargs)
5931
5932 def Display_GetFromWindow(*args, **kwargs):
5933 """
5934 Display_GetFromWindow(Window window) -> int
5935
5936 Find the display where the given window lies, return wx.NOT_FOUND if
5937 it is not shown at all.
5938 """
5939 return _misc_.Display_GetFromWindow(*args, **kwargs)
5940
5941 #---------------------------------------------------------------------------
5942
5943 class StandardPaths(object):
5944 """
5945 wx.StandardPaths returns standard locations in the file system and
5946 should be used by programs to find their data files in a portable way.
5947
5948 In the description of the methods below, the example return values are
5949 given for the Unix, Windows and Mac OS X systems, however please note
5950 that these are just examples and the actual values may differ. For
5951 example, under Windows the system administrator may change the
5952 standard directories locations, i.e. the Windows directory may be
5953 named W:\Win2003 instead of the default C:\Windows.
5954
5955 The strings appname and username should be replaced with the value
5956 returned by `wx.App.GetAppName` and the name of the currently logged
5957 in user, respectively. The string prefix is only used under Unix and
5958 is /usr/local by default but may be changed using `SetInstallPrefix`.
5959
5960 The directories returned by the methods of this class may or may not
5961 exist. If they don't exist, it's up to the caller to create them,
5962 wx.StandardPaths doesn't do it.
5963
5964 Finally note that these functions only work with standardly packaged
5965 applications. I.e. under Unix you should follow the standard
5966 installation conventions and under Mac you should create your
5967 application bundle according to the Apple guidelines. Again, this
5968 class doesn't help you to do it.
5969 """
5970 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5971 def __init__(self): raise AttributeError, "No constructor defined"
5972 __repr__ = _swig_repr
5973 ResourceCat_None = _misc_.StandardPaths_ResourceCat_None
5974 ResourceCat_Messages = _misc_.StandardPaths_ResourceCat_Messages
5975 ResourceCat_Max = _misc_.StandardPaths_ResourceCat_Max
5976 def Get(*args, **kwargs):
5977 """
5978 Get() -> StandardPaths
5979
5980 Return the global standard paths singleton
5981 """
5982 return _misc_.StandardPaths_Get(*args, **kwargs)
5983
5984 Get = staticmethod(Get)
5985 def GetConfigDir(*args, **kwargs):
5986 """
5987 GetConfigDir(self) -> String
5988
5989 Return the directory with system config files: /etc under Unix,
5990 'c:\Documents and Settings\All Users\Application Data' under Windows,
5991 /Library/Preferences for Mac
5992 """
5993 return _misc_.StandardPaths_GetConfigDir(*args, **kwargs)
5994
5995 def GetUserConfigDir(*args, **kwargs):
5996 """
5997 GetUserConfigDir(self) -> String
5998
5999 Return the directory for the user config files: $HOME under Unix,
6000 'c:\Documents and Settings\username' under Windows, and
6001 ~/Library/Preferences under Mac
6002
6003 Only use this if you have a single file to put there, otherwise
6004 `GetUserDataDir` is more appropriate
6005 """
6006 return _misc_.StandardPaths_GetUserConfigDir(*args, **kwargs)
6007
6008 def GetDataDir(*args, **kwargs):
6009 """
6010 GetDataDir(self) -> String
6011
6012 Return the location of the application's global, (i.e. not
6013 user-specific,) data files: prefix/share/appname under Unix,
6014 'c:\Program Files\appname' under Windows,
6015 appname.app/Contents/SharedSupport app bundle directory under Mac.
6016 """
6017 return _misc_.StandardPaths_GetDataDir(*args, **kwargs)
6018
6019 def GetLocalDataDir(*args, **kwargs):
6020 """
6021 GetLocalDataDir(self) -> String
6022
6023 Return the location for application data files which are
6024 host-specific. Same as `GetDataDir` except under Unix where it is
6025 /etc/appname
6026 """
6027 return _misc_.StandardPaths_GetLocalDataDir(*args, **kwargs)
6028
6029 def GetUserDataDir(*args, **kwargs):
6030 """
6031 GetUserDataDir(self) -> String
6032
6033 Return the directory for the user-dependent application data files:
6034 $HOME/.appname under Unix, c:\Documents and
6035 Settings\username\Application Data\appname under Windows and
6036 ~/Library/Application Support/appname under Mac
6037 """
6038 return _misc_.StandardPaths_GetUserDataDir(*args, **kwargs)
6039
6040 def GetUserLocalDataDir(*args, **kwargs):
6041 """
6042 GetUserLocalDataDir(self) -> String
6043
6044 Return the directory for user data files which shouldn't be shared
6045 with the other machines
6046
6047 Same as `GetUserDataDir` for all platforms except Windows where it is
6048 the 'Local Settings\Application Data\appname' directory.
6049 """
6050 return _misc_.StandardPaths_GetUserLocalDataDir(*args, **kwargs)
6051
6052 def GetPluginsDir(*args, **kwargs):
6053 """
6054 GetPluginsDir(self) -> String
6055
6056 Return the directory where the loadable modules (plugins) live:
6057 prefix/lib/appname under Unix, program directory under Windows and
6058 Contents/Plugins app bundle subdirectory under Mac
6059 """
6060 return _misc_.StandardPaths_GetPluginsDir(*args, **kwargs)
6061
6062 def GetResourcesDir(*args, **kwargs):
6063 """
6064 GetResourcesDir(self) -> String
6065
6066 Get resources directory. Resources are auxiliary files used by the
6067 application and include things like image and sound files.
6068
6069 Same as `GetDataDir` for all platforms except Mac where it returns
6070 Contents/Resources subdirectory of the app bundle.
6071 """
6072 return _misc_.StandardPaths_GetResourcesDir(*args, **kwargs)
6073
6074 def GetLocalizedResourcesDir(*args, **kwargs):
6075 """
6076 GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
6077
6078 Get localized resources directory containing the resource files of the
6079 specified category for the given language.
6080
6081 In general this is just GetResourcesDir()/lang under Windows and Unix
6082 and GetResourcesDir()/lang.lproj under Mac but is something quite
6083 different under Unix for the message catalog category (namely the
6084 standard prefix/share/locale/lang/LC_MESSAGES.)
6085 """
6086 return _misc_.StandardPaths_GetLocalizedResourcesDir(*args, **kwargs)
6087
6088 def GetDocumentsDir(*args, **kwargs):
6089 """
6090 GetDocumentsDir(self) -> String
6091
6092 Return the Documents directory for the current user.
6093
6094 C:\Documents and Settings\username\Documents under Windows,
6095 $HOME under Unix and ~/Documents under Mac
6096 """
6097 return _misc_.StandardPaths_GetDocumentsDir(*args, **kwargs)
6098
6099 def SetInstallPrefix(*args, **kwargs):
6100 """
6101 SetInstallPrefix(self, String prefix)
6102
6103 Set the program installation directory which is /usr/local by default.
6104 This value will be used by other methods such as `GetDataDir` and
6105 `GetPluginsDir` as the prefix for what they return. (This function
6106 only has meaning on Unix systems.)
6107 """
6108 return _misc_.StandardPaths_SetInstallPrefix(*args, **kwargs)
6109
6110 def GetInstallPrefix(*args, **kwargs):
6111 """
6112 GetInstallPrefix(self) -> String
6113
6114 Get the program installation prefix. The default is the prefix where
6115 Python is installed. (This function only has meaning on Unix systems.)
6116 """
6117 return _misc_.StandardPaths_GetInstallPrefix(*args, **kwargs)
6118
6119 _misc_.StandardPaths_swigregister(StandardPaths)
6120
6121 def StandardPaths_Get(*args):
6122 """
6123 StandardPaths_Get() -> StandardPaths
6124
6125 Return the global standard paths singleton
6126 """
6127 return _misc_.StandardPaths_Get(*args)
6128
6129 #---------------------------------------------------------------------------
6130
6131 POWER_SOCKET = _misc_.POWER_SOCKET
6132 POWER_BATTERY = _misc_.POWER_BATTERY
6133 POWER_UNKNOWN = _misc_.POWER_UNKNOWN
6134 BATTERY_NORMAL_STATE = _misc_.BATTERY_NORMAL_STATE
6135 BATTERY_LOW_STATE = _misc_.BATTERY_LOW_STATE
6136 BATTERY_CRITICAL_STATE = _misc_.BATTERY_CRITICAL_STATE
6137 BATTERY_SHUTDOWN_STATE = _misc_.BATTERY_SHUTDOWN_STATE
6138 BATTERY_UNKNOWN_STATE = _misc_.BATTERY_UNKNOWN_STATE
6139 class PowerEvent(_core.Event):
6140 """
6141 wx.PowerEvent is generated when the system online status changes.
6142 Currently this is only implemented for Windows.
6143 """
6144 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6145 __repr__ = _swig_repr
6146 def __init__(self, *args, **kwargs):
6147 """
6148 __init__(self, EventType evtType) -> PowerEvent
6149
6150 wx.PowerEvent is generated when the system online status changes.
6151 Currently this is only implemented for Windows.
6152 """
6153 _misc_.PowerEvent_swiginit(self,_misc_.new_PowerEvent(*args, **kwargs))
6154 def Veto(*args, **kwargs):
6155 """Veto(self)"""
6156 return _misc_.PowerEvent_Veto(*args, **kwargs)
6157
6158 def IsVetoed(*args, **kwargs):
6159 """IsVetoed(self) -> bool"""
6160 return _misc_.PowerEvent_IsVetoed(*args, **kwargs)
6161
6162 _misc_.PowerEvent_swigregister(PowerEvent)
6163
6164 wxEVT_POWER_SUSPENDING = _misc_.wxEVT_POWER_SUSPENDING
6165 wxEVT_POWER_SUSPENDED = _misc_.wxEVT_POWER_SUSPENDED
6166 wxEVT_POWER_SUSPEND_CANCEL = _misc_.wxEVT_POWER_SUSPEND_CANCEL
6167 wxEVT_POWER_RESUME = _misc_.wxEVT_POWER_RESUME
6168 EVT_POWER_SUSPENDING = wx.PyEventBinder( wxEVT_POWER_SUSPENDING , 1 )
6169 EVT_POWER_SUSPENDED = wx.PyEventBinder( wxEVT_POWER_SUSPENDED , 1 )
6170 EVT_POWER_SUSPEND_CANCEL = wx.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL , 1 )
6171 EVT_POWER_RESUME = wx.PyEventBinder( wxEVT_POWER_RESUME , 1 )
6172
6173
6174 def GetPowerType(*args):
6175 """
6176 GetPowerType() -> int
6177
6178 return the current system power state: online or offline
6179 """
6180 return _misc_.GetPowerType(*args)
6181
6182 def GetBatteryState(*args):
6183 """
6184 GetBatteryState() -> int
6185
6186 return approximate battery state
6187 """
6188 return _misc_.GetBatteryState(*args)
6189
6190