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