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