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