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