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