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