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