]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/msw/misc.py
reSWIGged
[wxWidgets.git] / wxPython / src / msw / misc.py
... / ...
CommitLineData
1# This file was created automatically by SWIG.
2# Don't modify this file, modify the SWIG interface instead.
3
4import _misc
5
6import core
7wx = core
8#---------------------------------------------------------------------------
9
10SYS_OEM_FIXED_FONT = _misc.SYS_OEM_FIXED_FONT
11SYS_ANSI_FIXED_FONT = _misc.SYS_ANSI_FIXED_FONT
12SYS_ANSI_VAR_FONT = _misc.SYS_ANSI_VAR_FONT
13SYS_SYSTEM_FONT = _misc.SYS_SYSTEM_FONT
14SYS_DEVICE_DEFAULT_FONT = _misc.SYS_DEVICE_DEFAULT_FONT
15SYS_DEFAULT_PALETTE = _misc.SYS_DEFAULT_PALETTE
16SYS_SYSTEM_FIXED_FONT = _misc.SYS_SYSTEM_FIXED_FONT
17SYS_DEFAULT_GUI_FONT = _misc.SYS_DEFAULT_GUI_FONT
18SYS_ICONTITLE_FONT = _misc.SYS_ICONTITLE_FONT
19SYS_COLOUR_SCROLLBAR = _misc.SYS_COLOUR_SCROLLBAR
20SYS_COLOUR_BACKGROUND = _misc.SYS_COLOUR_BACKGROUND
21SYS_COLOUR_DESKTOP = _misc.SYS_COLOUR_DESKTOP
22SYS_COLOUR_ACTIVECAPTION = _misc.SYS_COLOUR_ACTIVECAPTION
23SYS_COLOUR_INACTIVECAPTION = _misc.SYS_COLOUR_INACTIVECAPTION
24SYS_COLOUR_MENU = _misc.SYS_COLOUR_MENU
25SYS_COLOUR_WINDOW = _misc.SYS_COLOUR_WINDOW
26SYS_COLOUR_WINDOWFRAME = _misc.SYS_COLOUR_WINDOWFRAME
27SYS_COLOUR_MENUTEXT = _misc.SYS_COLOUR_MENUTEXT
28SYS_COLOUR_WINDOWTEXT = _misc.SYS_COLOUR_WINDOWTEXT
29SYS_COLOUR_CAPTIONTEXT = _misc.SYS_COLOUR_CAPTIONTEXT
30SYS_COLOUR_ACTIVEBORDER = _misc.SYS_COLOUR_ACTIVEBORDER
31SYS_COLOUR_INACTIVEBORDER = _misc.SYS_COLOUR_INACTIVEBORDER
32SYS_COLOUR_APPWORKSPACE = _misc.SYS_COLOUR_APPWORKSPACE
33SYS_COLOUR_HIGHLIGHT = _misc.SYS_COLOUR_HIGHLIGHT
34SYS_COLOUR_HIGHLIGHTTEXT = _misc.SYS_COLOUR_HIGHLIGHTTEXT
35SYS_COLOUR_BTNFACE = _misc.SYS_COLOUR_BTNFACE
36SYS_COLOUR_3DFACE = _misc.SYS_COLOUR_3DFACE
37SYS_COLOUR_BTNSHADOW = _misc.SYS_COLOUR_BTNSHADOW
38SYS_COLOUR_3DSHADOW = _misc.SYS_COLOUR_3DSHADOW
39SYS_COLOUR_GRAYTEXT = _misc.SYS_COLOUR_GRAYTEXT
40SYS_COLOUR_BTNTEXT = _misc.SYS_COLOUR_BTNTEXT
41SYS_COLOUR_INACTIVECAPTIONTEXT = _misc.SYS_COLOUR_INACTIVECAPTIONTEXT
42SYS_COLOUR_BTNHIGHLIGHT = _misc.SYS_COLOUR_BTNHIGHLIGHT
43SYS_COLOUR_BTNHILIGHT = _misc.SYS_COLOUR_BTNHILIGHT
44SYS_COLOUR_3DHIGHLIGHT = _misc.SYS_COLOUR_3DHIGHLIGHT
45SYS_COLOUR_3DHILIGHT = _misc.SYS_COLOUR_3DHILIGHT
46SYS_COLOUR_3DDKSHADOW = _misc.SYS_COLOUR_3DDKSHADOW
47SYS_COLOUR_3DLIGHT = _misc.SYS_COLOUR_3DLIGHT
48SYS_COLOUR_INFOTEXT = _misc.SYS_COLOUR_INFOTEXT
49SYS_COLOUR_INFOBK = _misc.SYS_COLOUR_INFOBK
50SYS_COLOUR_LISTBOX = _misc.SYS_COLOUR_LISTBOX
51SYS_COLOUR_HOTLIGHT = _misc.SYS_COLOUR_HOTLIGHT
52SYS_COLOUR_GRADIENTACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTACTIVECAPTION
53SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc.SYS_COLOUR_GRADIENTINACTIVECAPTION
54SYS_COLOUR_MENUHILIGHT = _misc.SYS_COLOUR_MENUHILIGHT
55SYS_COLOUR_MENUBAR = _misc.SYS_COLOUR_MENUBAR
56SYS_COLOUR_MAX = _misc.SYS_COLOUR_MAX
57SYS_MOUSE_BUTTONS = _misc.SYS_MOUSE_BUTTONS
58SYS_BORDER_X = _misc.SYS_BORDER_X
59SYS_BORDER_Y = _misc.SYS_BORDER_Y
60SYS_CURSOR_X = _misc.SYS_CURSOR_X
61SYS_CURSOR_Y = _misc.SYS_CURSOR_Y
62SYS_DCLICK_X = _misc.SYS_DCLICK_X
63SYS_DCLICK_Y = _misc.SYS_DCLICK_Y
64SYS_DRAG_X = _misc.SYS_DRAG_X
65SYS_DRAG_Y = _misc.SYS_DRAG_Y
66SYS_EDGE_X = _misc.SYS_EDGE_X
67SYS_EDGE_Y = _misc.SYS_EDGE_Y
68SYS_HSCROLL_ARROW_X = _misc.SYS_HSCROLL_ARROW_X
69SYS_HSCROLL_ARROW_Y = _misc.SYS_HSCROLL_ARROW_Y
70SYS_HTHUMB_X = _misc.SYS_HTHUMB_X
71SYS_ICON_X = _misc.SYS_ICON_X
72SYS_ICON_Y = _misc.SYS_ICON_Y
73SYS_ICONSPACING_X = _misc.SYS_ICONSPACING_X
74SYS_ICONSPACING_Y = _misc.SYS_ICONSPACING_Y
75SYS_WINDOWMIN_X = _misc.SYS_WINDOWMIN_X
76SYS_WINDOWMIN_Y = _misc.SYS_WINDOWMIN_Y
77SYS_SCREEN_X = _misc.SYS_SCREEN_X
78SYS_SCREEN_Y = _misc.SYS_SCREEN_Y
79SYS_FRAMESIZE_X = _misc.SYS_FRAMESIZE_X
80SYS_FRAMESIZE_Y = _misc.SYS_FRAMESIZE_Y
81SYS_SMALLICON_X = _misc.SYS_SMALLICON_X
82SYS_SMALLICON_Y = _misc.SYS_SMALLICON_Y
83SYS_HSCROLL_Y = _misc.SYS_HSCROLL_Y
84SYS_VSCROLL_X = _misc.SYS_VSCROLL_X
85SYS_VSCROLL_ARROW_X = _misc.SYS_VSCROLL_ARROW_X
86SYS_VSCROLL_ARROW_Y = _misc.SYS_VSCROLL_ARROW_Y
87SYS_VTHUMB_Y = _misc.SYS_VTHUMB_Y
88SYS_CAPTION_Y = _misc.SYS_CAPTION_Y
89SYS_MENU_Y = _misc.SYS_MENU_Y
90SYS_NETWORK_PRESENT = _misc.SYS_NETWORK_PRESENT
91SYS_PENWINDOWS_PRESENT = _misc.SYS_PENWINDOWS_PRESENT
92SYS_SHOW_SOUNDS = _misc.SYS_SHOW_SOUNDS
93SYS_SWAP_BUTTONS = _misc.SYS_SWAP_BUTTONS
94SYS_CAN_DRAW_FRAME_DECORATIONS = _misc.SYS_CAN_DRAW_FRAME_DECORATIONS
95SYS_CAN_ICONIZE_FRAME = _misc.SYS_CAN_ICONIZE_FRAME
96SYS_SCREEN_NONE = _misc.SYS_SCREEN_NONE
97SYS_SCREEN_TINY = _misc.SYS_SCREEN_TINY
98SYS_SCREEN_PDA = _misc.SYS_SCREEN_PDA
99SYS_SCREEN_SMALL = _misc.SYS_SCREEN_SMALL
100SYS_SCREEN_DESKTOP = _misc.SYS_SCREEN_DESKTOP
101class SystemSettings(object):
102 GetColour = staticmethod(_misc.SystemSettings_GetColour)
103 GetFont = staticmethod(_misc.SystemSettings_GetFont)
104 GetMetric = staticmethod(_misc.SystemSettings_GetMetric)
105 HasFeature = staticmethod(_misc.SystemSettings_HasFeature)
106 GetScreenType = staticmethod(_misc.SystemSettings_GetScreenType)
107 SetScreenType = staticmethod(_misc.SystemSettings_SetScreenType)
108 def __init__(self): raise RuntimeError, "No constructor defined"
109 def __repr__(self):
110 return "<%s.%s; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
111
112class SystemSettingsPtr(SystemSettings):
113 def __init__(self, this):
114 self.this = this
115 if not hasattr(self,"thisown"): self.thisown = 0
116 self.__class__ = SystemSettings
117_misc.SystemSettings_swigregister(SystemSettingsPtr)
118
119SystemSettings_GetColour = _misc.SystemSettings_GetColour
120
121SystemSettings_GetFont = _misc.SystemSettings_GetFont
122
123SystemSettings_GetMetric = _misc.SystemSettings_GetMetric
124
125SystemSettings_HasFeature = _misc.SystemSettings_HasFeature
126
127SystemSettings_GetScreenType = _misc.SystemSettings_GetScreenType
128
129SystemSettings_SetScreenType = _misc.SystemSettings_SetScreenType
130
131class SystemOptions(core.Object):
132 def __init__(self, *args, **kwargs):
133 newobj = _misc.new_SystemOptions(*args, **kwargs)
134 self.this = newobj.this
135 self.thisown = 1
136 del newobj.thisown
137 SetOption = staticmethod(_misc.SystemOptions_SetOption)
138 SetOptionInt = staticmethod(_misc.SystemOptions_SetOptionInt)
139 GetOption = staticmethod(_misc.SystemOptions_GetOption)
140 GetOptionInt = staticmethod(_misc.SystemOptions_GetOptionInt)
141 HasOption = staticmethod(_misc.SystemOptions_HasOption)
142 def __repr__(self):
143 return "<%s.%s; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
144
145class SystemOptionsPtr(SystemOptions):
146 def __init__(self, this):
147 self.this = this
148 if not hasattr(self,"thisown"): self.thisown = 0
149 self.__class__ = SystemOptions
150_misc.SystemOptions_swigregister(SystemOptionsPtr)
151
152SystemOptions_SetOption = _misc.SystemOptions_SetOption
153
154SystemOptions_SetOptionInt = _misc.SystemOptions_SetOptionInt
155
156SystemOptions_GetOption = _misc.SystemOptions_GetOption
157
158SystemOptions_GetOptionInt = _misc.SystemOptions_GetOptionInt
159
160SystemOptions_HasOption = _misc.SystemOptions_HasOption
161
162#---------------------------------------------------------------------------
163
164
165NewId = _misc.NewId
166
167RegisterId = _misc.RegisterId
168
169GetCurrentId = _misc.GetCurrentId
170
171Bell = _misc.Bell
172
173EndBusyCursor = _misc.EndBusyCursor
174
175GetElapsedTime = _misc.GetElapsedTime
176
177GetMousePosition = _misc.GetMousePosition
178
179IsBusy = _misc.IsBusy
180
181Now = _misc.Now
182
183Shell = _misc.Shell
184
185StartTimer = _misc.StartTimer
186
187GetOsVersion = _misc.GetOsVersion
188
189GetOsDescription = _misc.GetOsDescription
190
191GetFreeMemory = _misc.GetFreeMemory
192SHUTDOWN_POWEROFF = _misc.SHUTDOWN_POWEROFF
193SHUTDOWN_REBOOT = _misc.SHUTDOWN_REBOOT
194
195Shutdown = _misc.Shutdown
196
197Sleep = _misc.Sleep
198
199Usleep = _misc.Usleep
200
201EnableTopLevelWindows = _misc.EnableTopLevelWindows
202
203StripMenuCodes = _misc.StripMenuCodes
204
205GetEmailAddress = _misc.GetEmailAddress
206
207GetHostName = _misc.GetHostName
208
209GetFullHostName = _misc.GetFullHostName
210
211GetUserId = _misc.GetUserId
212
213GetUserName = _misc.GetUserName
214
215GetHomeDir = _misc.GetHomeDir
216
217GetUserHome = _misc.GetUserHome
218
219GetProcessId = _misc.GetProcessId
220
221Trap = _misc.Trap
222
223FileSelector = _misc.FileSelector
224
225LoadFileSelector = _misc.LoadFileSelector
226
227SaveFileSelector = _misc.SaveFileSelector
228
229DirSelector = _misc.DirSelector
230
231GetTextFromUser = _misc.GetTextFromUser
232
233GetPasswordFromUser = _misc.GetPasswordFromUser
234
235GetSingleChoice = _misc.GetSingleChoice
236
237GetSingleChoiceIndex = _misc.GetSingleChoiceIndex
238
239MessageBox = _misc.MessageBox
240
241GetNumberFromUser = _misc.GetNumberFromUser
242
243ColourDisplay = _misc.ColourDisplay
244
245DisplayDepth = _misc.DisplayDepth
246
247GetDisplayDepth = _misc.GetDisplayDepth
248
249DisplaySize = _misc.DisplaySize
250
251GetDisplaySize = _misc.GetDisplaySize
252
253DisplaySizeMM = _misc.DisplaySizeMM
254
255GetDisplaySizeMM = _misc.GetDisplaySizeMM
256
257ClientDisplayRect = _misc.ClientDisplayRect
258
259GetClientDisplayRect = _misc.GetClientDisplayRect
260
261SetCursor = _misc.SetCursor
262
263BeginBusyCursor = _misc.BeginBusyCursor
264
265GetActiveWindow = _misc.GetActiveWindow
266
267GenericFindWindowAtPoint = _misc.GenericFindWindowAtPoint
268
269FindWindowAtPoint = _misc.FindWindowAtPoint
270
271GetTopLevelParent = _misc.GetTopLevelParent
272
273WakeUpMainThread = _misc.WakeUpMainThread
274
275MutexGuiEnter = _misc.MutexGuiEnter
276
277MutexGuiLeave = _misc.MutexGuiLeave
278class MutexGuiLocker(object):
279 def __init__(self, *args, **kwargs):
280 newobj = _misc.new_MutexGuiLocker(*args, **kwargs)
281 self.this = newobj.this
282 self.thisown = 1
283 del newobj.thisown
284 def __del__(self, destroy=_misc.delete_MutexGuiLocker):
285 try:
286 if self.thisown: destroy(self)
287 except: pass
288 def __repr__(self):
289 return "<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
290
291class MutexGuiLockerPtr(MutexGuiLocker):
292 def __init__(self, this):
293 self.this = this
294 if not hasattr(self,"thisown"): self.thisown = 0
295 self.__class__ = MutexGuiLocker
296_misc.MutexGuiLocker_swigregister(MutexGuiLockerPtr)
297
298
299Thread_IsMain = _misc.Thread_IsMain
300#---------------------------------------------------------------------------
301
302class ToolTip(core.Object):
303 def __init__(self, *args, **kwargs):
304 newobj = _misc.new_ToolTip(*args, **kwargs)
305 self.this = newobj.this
306 self.thisown = 1
307 del newobj.thisown
308 def SetTip(*args, **kwargs): return _misc.ToolTip_SetTip(*args, **kwargs)
309 def GetTip(*args, **kwargs): return _misc.ToolTip_GetTip(*args, **kwargs)
310 def GetWindow(*args, **kwargs): return _misc.ToolTip_GetWindow(*args, **kwargs)
311 Enable = staticmethod(_misc.ToolTip_Enable)
312 SetDelay = staticmethod(_misc.ToolTip_SetDelay)
313 def __repr__(self):
314 return "<%s.%s; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
315
316class ToolTipPtr(ToolTip):
317 def __init__(self, this):
318 self.this = this
319 if not hasattr(self,"thisown"): self.thisown = 0
320 self.__class__ = ToolTip
321_misc.ToolTip_swigregister(ToolTipPtr)
322
323ToolTip_Enable = _misc.ToolTip_Enable
324
325ToolTip_SetDelay = _misc.ToolTip_SetDelay
326
327class Caret(object):
328 def __init__(self, *args, **kwargs):
329 newobj = _misc.new_Caret(*args, **kwargs)
330 self.this = newobj.this
331 self.thisown = 1
332 del newobj.thisown
333 def __del__(self, destroy=_misc.delete_Caret):
334 try:
335 if self.thisown: destroy(self)
336 except: pass
337 def IsOk(*args, **kwargs): return _misc.Caret_IsOk(*args, **kwargs)
338 def IsVisible(*args, **kwargs): return _misc.Caret_IsVisible(*args, **kwargs)
339 def GetPositionTuple(*args, **kwargs): return _misc.Caret_GetPositionTuple(*args, **kwargs)
340 def GetPosition(*args, **kwargs): return _misc.Caret_GetPosition(*args, **kwargs)
341 def GetSizeTuple(*args, **kwargs): return _misc.Caret_GetSizeTuple(*args, **kwargs)
342 def GetSize(*args, **kwargs): return _misc.Caret_GetSize(*args, **kwargs)
343 def GetWindow(*args, **kwargs): return _misc.Caret_GetWindow(*args, **kwargs)
344 def MoveXY(*args, **kwargs): return _misc.Caret_MoveXY(*args, **kwargs)
345 def Move(*args, **kwargs): return _misc.Caret_Move(*args, **kwargs)
346 def SetSizeWH(*args, **kwargs): return _misc.Caret_SetSizeWH(*args, **kwargs)
347 def SetSize(*args, **kwargs): return _misc.Caret_SetSize(*args, **kwargs)
348 def Show(*args, **kwargs): return _misc.Caret_Show(*args, **kwargs)
349 def Hide(*args, **kwargs): return _misc.Caret_Hide(*args, **kwargs)
350 def __repr__(self):
351 return "<%s.%s; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
352
353class CaretPtr(Caret):
354 def __init__(self, this):
355 self.this = this
356 if not hasattr(self,"thisown"): self.thisown = 0
357 self.__class__ = Caret
358_misc.Caret_swigregister(CaretPtr)
359
360
361Caret_GetBlinkTime = _misc.Caret_GetBlinkTime
362
363Caret_SetBlinkTime = _misc.Caret_SetBlinkTime
364class BusyCursor(object):
365 def __init__(self, *args, **kwargs):
366 newobj = _misc.new_BusyCursor(*args, **kwargs)
367 self.this = newobj.this
368 self.thisown = 1
369 del newobj.thisown
370 def __del__(self, destroy=_misc.delete_BusyCursor):
371 try:
372 if self.thisown: destroy(self)
373 except: pass
374 def __repr__(self):
375 return "<%s.%s; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
376
377class BusyCursorPtr(BusyCursor):
378 def __init__(self, this):
379 self.this = this
380 if not hasattr(self,"thisown"): self.thisown = 0
381 self.__class__ = BusyCursor
382_misc.BusyCursor_swigregister(BusyCursorPtr)
383
384class WindowDisabler(object):
385 def __init__(self, *args, **kwargs):
386 newobj = _misc.new_WindowDisabler(*args, **kwargs)
387 self.this = newobj.this
388 self.thisown = 1
389 del newobj.thisown
390 def __del__(self, destroy=_misc.delete_WindowDisabler):
391 try:
392 if self.thisown: destroy(self)
393 except: pass
394 def __repr__(self):
395 return "<%s.%s; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
396
397class WindowDisablerPtr(WindowDisabler):
398 def __init__(self, this):
399 self.this = this
400 if not hasattr(self,"thisown"): self.thisown = 0
401 self.__class__ = WindowDisabler
402_misc.WindowDisabler_swigregister(WindowDisablerPtr)
403
404class BusyInfo(core.Object):
405 def __init__(self, *args, **kwargs):
406 newobj = _misc.new_BusyInfo(*args, **kwargs)
407 self.this = newobj.this
408 self.thisown = 1
409 del newobj.thisown
410 def __del__(self, destroy=_misc.delete_BusyInfo):
411 try:
412 if self.thisown: destroy(self)
413 except: pass
414 def __repr__(self):
415 return "<%s.%s; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
416
417class BusyInfoPtr(BusyInfo):
418 def __init__(self, this):
419 self.this = this
420 if not hasattr(self,"thisown"): self.thisown = 0
421 self.__class__ = BusyInfo
422_misc.BusyInfo_swigregister(BusyInfoPtr)
423
424class StopWatch(object):
425 def __init__(self, *args, **kwargs):
426 newobj = _misc.new_StopWatch(*args, **kwargs)
427 self.this = newobj.this
428 self.thisown = 1
429 del newobj.thisown
430 def Start(*args, **kwargs): return _misc.StopWatch_Start(*args, **kwargs)
431 def Pause(*args, **kwargs): return _misc.StopWatch_Pause(*args, **kwargs)
432 def Resume(*args, **kwargs): return _misc.StopWatch_Resume(*args, **kwargs)
433 def Time(*args, **kwargs): return _misc.StopWatch_Time(*args, **kwargs)
434 def __repr__(self):
435 return "<%s.%s; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
436
437class StopWatchPtr(StopWatch):
438 def __init__(self, this):
439 self.this = this
440 if not hasattr(self,"thisown"): self.thisown = 0
441 self.__class__ = StopWatch
442_misc.StopWatch_swigregister(StopWatchPtr)
443
444class FileHistory(core.Object):
445 def __init__(self, *args, **kwargs):
446 newobj = _misc.new_FileHistory(*args, **kwargs)
447 self.this = newobj.this
448 self.thisown = 1
449 del newobj.thisown
450 def __del__(self, destroy=_misc.delete_FileHistory):
451 try:
452 if self.thisown: destroy(self)
453 except: pass
454 def AddFileToHistory(*args, **kwargs): return _misc.FileHistory_AddFileToHistory(*args, **kwargs)
455 def RemoveFileFromHistory(*args, **kwargs): return _misc.FileHistory_RemoveFileFromHistory(*args, **kwargs)
456 def GetMaxFiles(*args, **kwargs): return _misc.FileHistory_GetMaxFiles(*args, **kwargs)
457 def UseMenu(*args, **kwargs): return _misc.FileHistory_UseMenu(*args, **kwargs)
458 def RemoveMenu(*args, **kwargs): return _misc.FileHistory_RemoveMenu(*args, **kwargs)
459 def Load(*args, **kwargs): return _misc.FileHistory_Load(*args, **kwargs)
460 def Save(*args, **kwargs): return _misc.FileHistory_Save(*args, **kwargs)
461 def AddFilesToMenu(*args, **kwargs): return _misc.FileHistory_AddFilesToMenu(*args, **kwargs)
462 def AddFilesToThisMenu(*args, **kwargs): return _misc.FileHistory_AddFilesToThisMenu(*args, **kwargs)
463 def GetHistoryFile(*args, **kwargs): return _misc.FileHistory_GetHistoryFile(*args, **kwargs)
464 def GetCount(*args, **kwargs): return _misc.FileHistory_GetCount(*args, **kwargs)
465 def __repr__(self):
466 return "<%s.%s; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
467
468class FileHistoryPtr(FileHistory):
469 def __init__(self, this):
470 self.this = this
471 if not hasattr(self,"thisown"): self.thisown = 0
472 self.__class__ = FileHistory
473_misc.FileHistory_swigregister(FileHistoryPtr)
474
475class SingleInstanceChecker(object):
476 def __init__(self, *args, **kwargs):
477 newobj = _misc.new_SingleInstanceChecker(*args, **kwargs)
478 self.this = newobj.this
479 self.thisown = 1
480 del newobj.thisown
481 def __del__(self, destroy=_misc.delete_SingleInstanceChecker):
482 try:
483 if self.thisown: destroy(self)
484 except: pass
485 def Create(*args, **kwargs): return _misc.SingleInstanceChecker_Create(*args, **kwargs)
486 def IsAnotherRunning(*args, **kwargs): return _misc.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs)
487 def __repr__(self):
488 return "<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
489
490class SingleInstanceCheckerPtr(SingleInstanceChecker):
491 def __init__(self, this):
492 self.this = this
493 if not hasattr(self,"thisown"): self.thisown = 0
494 self.__class__ = SingleInstanceChecker
495_misc.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr)
496
497def PreSingleInstanceChecker(*args, **kwargs):
498 val = _misc.new_PreSingleInstanceChecker(*args, **kwargs)
499 val.thisown = 1
500 return val
501
502
503DrawWindowOnDC = _misc.DrawWindowOnDC
504#---------------------------------------------------------------------------
505
506class TipProvider(object):
507 def __del__(self, destroy=_misc.delete_TipProvider):
508 try:
509 if self.thisown: destroy(self)
510 except: pass
511 def GetTip(*args, **kwargs): return _misc.TipProvider_GetTip(*args, **kwargs)
512 def GetCurrentTip(*args, **kwargs): return _misc.TipProvider_GetCurrentTip(*args, **kwargs)
513 def PreprocessTip(*args, **kwargs): return _misc.TipProvider_PreprocessTip(*args, **kwargs)
514 def __init__(self): raise RuntimeError, "No constructor defined"
515 def __repr__(self):
516 return "<%s.%s; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
517
518class TipProviderPtr(TipProvider):
519 def __init__(self, this):
520 self.this = this
521 if not hasattr(self,"thisown"): self.thisown = 0
522 self.__class__ = TipProvider
523_misc.TipProvider_swigregister(TipProviderPtr)
524
525class PyTipProvider(TipProvider):
526 def __init__(self, *args, **kwargs):
527 newobj = _misc.new_PyTipProvider(*args, **kwargs)
528 self.this = newobj.this
529 self.thisown = 1
530 del newobj.thisown
531 def _setCallbackInfo(*args, **kwargs): return _misc.PyTipProvider__setCallbackInfo(*args, **kwargs)
532 def __repr__(self):
533 return "<%s.%s; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
534
535class PyTipProviderPtr(PyTipProvider):
536 def __init__(self, this):
537 self.this = this
538 if not hasattr(self,"thisown"): self.thisown = 0
539 self.__class__ = PyTipProvider
540_misc.PyTipProvider_swigregister(PyTipProviderPtr)
541
542
543ShowTip = _misc.ShowTip
544
545CreateFileTipProvider = _misc.CreateFileTipProvider
546#---------------------------------------------------------------------------
547
548TIMER_CONTINUOUS = _misc.TIMER_CONTINUOUS
549TIMER_ONE_SHOT = _misc.TIMER_ONE_SHOT
550wxEVT_TIMER = _misc.wxEVT_TIMER
551class Timer(core.EvtHandler):
552 def __init__(self, *args, **kwargs):
553 newobj = _misc.new_Timer(*args, **kwargs)
554 self.this = newobj.this
555 self.thisown = 1
556 del newobj.thisown
557 def __del__(self, destroy=_misc.delete_Timer):
558 try:
559 if self.thisown: destroy(self)
560 except: pass
561 def SetOwner(*args, **kwargs): return _misc.Timer_SetOwner(*args, **kwargs)
562 def Start(*args, **kwargs): return _misc.Timer_Start(*args, **kwargs)
563 def Stop(*args, **kwargs): return _misc.Timer_Stop(*args, **kwargs)
564 def Notify(*args, **kwargs): return _misc.Timer_Notify(*args, **kwargs)
565 def IsRunning(*args, **kwargs): return _misc.Timer_IsRunning(*args, **kwargs)
566 def GetInterval(*args, **kwargs): return _misc.Timer_GetInterval(*args, **kwargs)
567 def IsOneShot(*args, **kwargs): return _misc.Timer_IsOneShot(*args, **kwargs)
568 def __repr__(self):
569 return "<%s.%s; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
570
571class TimerPtr(Timer):
572 def __init__(self, this):
573 self.this = this
574 if not hasattr(self,"thisown"): self.thisown = 0
575 self.__class__ = Timer
576_misc.Timer_swigregister(TimerPtr)
577
578# For backwards compatibility with 2.4
579class PyTimer(Timer):
580 def __init__(self, notify):
581 Timer.__init__(self)
582 self.notify = notify
583
584 def Notify(self):
585 if self.notify:
586 self.notify()
587
588
589EVT_TIMER = wx.PyEventBinder( wxEVT_TIMER, 1 )
590
591
592class TimerEvent(core.Event):
593 def __init__(self, *args, **kwargs):
594 newobj = _misc.new_TimerEvent(*args, **kwargs)
595 self.this = newobj.this
596 self.thisown = 1
597 del newobj.thisown
598 def GetInterval(*args, **kwargs): return _misc.TimerEvent_GetInterval(*args, **kwargs)
599 def __repr__(self):
600 return "<%s.%s; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
601
602class TimerEventPtr(TimerEvent):
603 def __init__(self, this):
604 self.this = this
605 if not hasattr(self,"thisown"): self.thisown = 0
606 self.__class__ = TimerEvent
607_misc.TimerEvent_swigregister(TimerEventPtr)
608
609class TimerRunner(object):
610 def __init__(self, *args):
611 newobj = _misc.new_TimerRunner(*args)
612 self.this = newobj.this
613 self.thisown = 1
614 del newobj.thisown
615 def __del__(self, destroy=_misc.delete_TimerRunner):
616 try:
617 if self.thisown: destroy(self)
618 except: pass
619 def Start(*args, **kwargs): return _misc.TimerRunner_Start(*args, **kwargs)
620 def __repr__(self):
621 return "<%s.%s; proxy of C++ wxTimerRunner instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
622
623class TimerRunnerPtr(TimerRunner):
624 def __init__(self, this):
625 self.this = this
626 if not hasattr(self,"thisown"): self.thisown = 0
627 self.__class__ = TimerRunner
628_misc.TimerRunner_swigregister(TimerRunnerPtr)
629
630#---------------------------------------------------------------------------
631
632LOG_FatalError = _misc.LOG_FatalError
633LOG_Error = _misc.LOG_Error
634LOG_Warning = _misc.LOG_Warning
635LOG_Message = _misc.LOG_Message
636LOG_Status = _misc.LOG_Status
637LOG_Info = _misc.LOG_Info
638LOG_Debug = _misc.LOG_Debug
639LOG_Trace = _misc.LOG_Trace
640LOG_Progress = _misc.LOG_Progress
641LOG_User = _misc.LOG_User
642LOG_Max = _misc.LOG_Max
643TRACE_MemAlloc = _misc.TRACE_MemAlloc
644TRACE_Messages = _misc.TRACE_Messages
645TRACE_ResAlloc = _misc.TRACE_ResAlloc
646TRACE_RefCount = _misc.TRACE_RefCount
647TRACE_OleCalls = _misc.TRACE_OleCalls
648TraceMemAlloc = _misc.TraceMemAlloc
649TraceMessages = _misc.TraceMessages
650TraceResAlloc = _misc.TraceResAlloc
651TraceRefCount = _misc.TraceRefCount
652TraceOleCalls = _misc.TraceOleCalls
653class Log(object):
654 def __init__(self, *args, **kwargs):
655 newobj = _misc.new_Log(*args, **kwargs)
656 self.this = newobj.this
657 self.thisown = 1
658 del newobj.thisown
659 IsEnabled = staticmethod(_misc.Log_IsEnabled)
660 EnableLogging = staticmethod(_misc.Log_EnableLogging)
661 OnLog = staticmethod(_misc.Log_OnLog)
662 def Flush(*args, **kwargs): return _misc.Log_Flush(*args, **kwargs)
663 FlushActive = staticmethod(_misc.Log_FlushActive)
664 GetActiveTarget = staticmethod(_misc.Log_GetActiveTarget)
665 SetActiveTarget = staticmethod(_misc.Log_SetActiveTarget)
666 Suspend = staticmethod(_misc.Log_Suspend)
667 Resume = staticmethod(_misc.Log_Resume)
668 SetVerbose = staticmethod(_misc.Log_SetVerbose)
669 SetLogLevel = staticmethod(_misc.Log_SetLogLevel)
670 DontCreateOnDemand = staticmethod(_misc.Log_DontCreateOnDemand)
671 SetTraceMask = staticmethod(_misc.Log_SetTraceMask)
672 AddTraceMask = staticmethod(_misc.Log_AddTraceMask)
673 RemoveTraceMask = staticmethod(_misc.Log_RemoveTraceMask)
674 ClearTraceMasks = staticmethod(_misc.Log_ClearTraceMasks)
675 GetTraceMasks = staticmethod(_misc.Log_GetTraceMasks)
676 SetTimestamp = staticmethod(_misc.Log_SetTimestamp)
677 GetVerbose = staticmethod(_misc.Log_GetVerbose)
678 GetTraceMask = staticmethod(_misc.Log_GetTraceMask)
679 IsAllowedTraceMask = staticmethod(_misc.Log_IsAllowedTraceMask)
680 GetLogLevel = staticmethod(_misc.Log_GetLogLevel)
681 GetTimestamp = staticmethod(_misc.Log_GetTimestamp)
682 TimeStamp = staticmethod(_misc.Log_TimeStamp)
683 def Destroy(*args, **kwargs): return _misc.Log_Destroy(*args, **kwargs)
684 def __repr__(self):
685 return "<%s.%s; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
686
687class LogPtr(Log):
688 def __init__(self, this):
689 self.this = this
690 if not hasattr(self,"thisown"): self.thisown = 0
691 self.__class__ = Log
692_misc.Log_swigregister(LogPtr)
693
694Log_IsEnabled = _misc.Log_IsEnabled
695
696Log_EnableLogging = _misc.Log_EnableLogging
697
698Log_OnLog = _misc.Log_OnLog
699
700Log_FlushActive = _misc.Log_FlushActive
701
702Log_GetActiveTarget = _misc.Log_GetActiveTarget
703
704Log_SetActiveTarget = _misc.Log_SetActiveTarget
705
706Log_Suspend = _misc.Log_Suspend
707
708Log_Resume = _misc.Log_Resume
709
710Log_SetVerbose = _misc.Log_SetVerbose
711
712Log_SetLogLevel = _misc.Log_SetLogLevel
713
714Log_DontCreateOnDemand = _misc.Log_DontCreateOnDemand
715
716Log_SetTraceMask = _misc.Log_SetTraceMask
717
718Log_AddTraceMask = _misc.Log_AddTraceMask
719
720Log_RemoveTraceMask = _misc.Log_RemoveTraceMask
721
722Log_ClearTraceMasks = _misc.Log_ClearTraceMasks
723
724Log_GetTraceMasks = _misc.Log_GetTraceMasks
725
726Log_SetTimestamp = _misc.Log_SetTimestamp
727
728Log_GetVerbose = _misc.Log_GetVerbose
729
730Log_GetTraceMask = _misc.Log_GetTraceMask
731
732Log_IsAllowedTraceMask = _misc.Log_IsAllowedTraceMask
733
734Log_GetLogLevel = _misc.Log_GetLogLevel
735
736Log_GetTimestamp = _misc.Log_GetTimestamp
737
738Log_TimeStamp = _misc.Log_TimeStamp
739
740class LogStderr(Log):
741 def __init__(self, *args, **kwargs):
742 newobj = _misc.new_LogStderr(*args, **kwargs)
743 self.this = newobj.this
744 self.thisown = 1
745 del newobj.thisown
746 def __repr__(self):
747 return "<%s.%s; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
748
749class LogStderrPtr(LogStderr):
750 def __init__(self, this):
751 self.this = this
752 if not hasattr(self,"thisown"): self.thisown = 0
753 self.__class__ = LogStderr
754_misc.LogStderr_swigregister(LogStderrPtr)
755
756class LogTextCtrl(Log):
757 def __init__(self, *args, **kwargs):
758 newobj = _misc.new_LogTextCtrl(*args, **kwargs)
759 self.this = newobj.this
760 self.thisown = 1
761 del newobj.thisown
762 def __repr__(self):
763 return "<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
764
765class LogTextCtrlPtr(LogTextCtrl):
766 def __init__(self, this):
767 self.this = this
768 if not hasattr(self,"thisown"): self.thisown = 0
769 self.__class__ = LogTextCtrl
770_misc.LogTextCtrl_swigregister(LogTextCtrlPtr)
771
772class LogGui(Log):
773 def __init__(self, *args, **kwargs):
774 newobj = _misc.new_LogGui(*args, **kwargs)
775 self.this = newobj.this
776 self.thisown = 1
777 del newobj.thisown
778 def __repr__(self):
779 return "<%s.%s; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
780
781class LogGuiPtr(LogGui):
782 def __init__(self, this):
783 self.this = this
784 if not hasattr(self,"thisown"): self.thisown = 0
785 self.__class__ = LogGui
786_misc.LogGui_swigregister(LogGuiPtr)
787
788class LogWindow(Log):
789 def __init__(self, *args, **kwargs):
790 newobj = _misc.new_LogWindow(*args, **kwargs)
791 self.this = newobj.this
792 self.thisown = 1
793 del newobj.thisown
794 def Show(*args, **kwargs): return _misc.LogWindow_Show(*args, **kwargs)
795 def GetFrame(*args, **kwargs): return _misc.LogWindow_GetFrame(*args, **kwargs)
796 def GetOldLog(*args, **kwargs): return _misc.LogWindow_GetOldLog(*args, **kwargs)
797 def IsPassingMessages(*args, **kwargs): return _misc.LogWindow_IsPassingMessages(*args, **kwargs)
798 def PassMessages(*args, **kwargs): return _misc.LogWindow_PassMessages(*args, **kwargs)
799 def __repr__(self):
800 return "<%s.%s; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
801
802class LogWindowPtr(LogWindow):
803 def __init__(self, this):
804 self.this = this
805 if not hasattr(self,"thisown"): self.thisown = 0
806 self.__class__ = LogWindow
807_misc.LogWindow_swigregister(LogWindowPtr)
808
809class LogChain(Log):
810 def __init__(self, *args, **kwargs):
811 newobj = _misc.new_LogChain(*args, **kwargs)
812 self.this = newobj.this
813 self.thisown = 1
814 del newobj.thisown
815 def SetLog(*args, **kwargs): return _misc.LogChain_SetLog(*args, **kwargs)
816 def PassMessages(*args, **kwargs): return _misc.LogChain_PassMessages(*args, **kwargs)
817 def IsPassingMessages(*args, **kwargs): return _misc.LogChain_IsPassingMessages(*args, **kwargs)
818 def GetOldLog(*args, **kwargs): return _misc.LogChain_GetOldLog(*args, **kwargs)
819 def __repr__(self):
820 return "<%s.%s; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
821
822class LogChainPtr(LogChain):
823 def __init__(self, this):
824 self.this = this
825 if not hasattr(self,"thisown"): self.thisown = 0
826 self.__class__ = LogChain
827_misc.LogChain_swigregister(LogChainPtr)
828
829
830SysErrorCode = _misc.SysErrorCode
831
832SysErrorMsg = _misc.SysErrorMsg
833
834LogFatalError = _misc.LogFatalError
835
836LogError = _misc.LogError
837
838LogWarning = _misc.LogWarning
839
840LogMessage = _misc.LogMessage
841
842LogInfo = _misc.LogInfo
843
844LogDebug = _misc.LogDebug
845
846LogVerbose = _misc.LogVerbose
847
848LogStatus = _misc.LogStatus
849
850LogStatusFrame = _misc.LogStatusFrame
851
852LogSysError = _misc.LogSysError
853
854LogTrace = _misc.LogTrace
855
856LogTraceMask = _misc.LogTraceMask
857
858LogGeneric = _misc.LogGeneric
859
860SafeShowMessage = _misc.SafeShowMessage
861class LogNull(object):
862 def __init__(self, *args, **kwargs):
863 newobj = _misc.new_LogNull(*args, **kwargs)
864 self.this = newobj.this
865 self.thisown = 1
866 del newobj.thisown
867 def __del__(self, destroy=_misc.delete_LogNull):
868 try:
869 if self.thisown: destroy(self)
870 except: pass
871 def __repr__(self):
872 return "<%s.%s; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
873
874class LogNullPtr(LogNull):
875 def __init__(self, this):
876 self.this = this
877 if not hasattr(self,"thisown"): self.thisown = 0
878 self.__class__ = LogNull
879_misc.LogNull_swigregister(LogNullPtr)
880
881class PyLog(Log):
882 def __init__(self, *args, **kwargs):
883 newobj = _misc.new_PyLog(*args, **kwargs)
884 self.this = newobj.this
885 self.thisown = 1
886 del newobj.thisown
887 self._setCallbackInfo(self, PyLog)
888 def _setCallbackInfo(*args, **kwargs): return _misc.PyLog__setCallbackInfo(*args, **kwargs)
889 def __repr__(self):
890 return "<%s.%s; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
891
892class PyLogPtr(PyLog):
893 def __init__(self, this):
894 self.this = this
895 if not hasattr(self,"thisown"): self.thisown = 0
896 self.__class__ = PyLog
897_misc.PyLog_swigregister(PyLogPtr)
898
899#---------------------------------------------------------------------------
900
901PROCESS_DEFAULT = _misc.PROCESS_DEFAULT
902PROCESS_REDIRECT = _misc.PROCESS_REDIRECT
903KILL_OK = _misc.KILL_OK
904KILL_BAD_SIGNAL = _misc.KILL_BAD_SIGNAL
905KILL_ACCESS_DENIED = _misc.KILL_ACCESS_DENIED
906KILL_NO_PROCESS = _misc.KILL_NO_PROCESS
907KILL_ERROR = _misc.KILL_ERROR
908SIGNONE = _misc.SIGNONE
909SIGHUP = _misc.SIGHUP
910SIGINT = _misc.SIGINT
911SIGQUIT = _misc.SIGQUIT
912SIGILL = _misc.SIGILL
913SIGTRAP = _misc.SIGTRAP
914SIGABRT = _misc.SIGABRT
915SIGIOT = _misc.SIGIOT
916SIGEMT = _misc.SIGEMT
917SIGFPE = _misc.SIGFPE
918SIGKILL = _misc.SIGKILL
919SIGBUS = _misc.SIGBUS
920SIGSEGV = _misc.SIGSEGV
921SIGSYS = _misc.SIGSYS
922SIGPIPE = _misc.SIGPIPE
923SIGALRM = _misc.SIGALRM
924SIGTERM = _misc.SIGTERM
925class Process(core.EvtHandler):
926 Kill = staticmethod(_misc.Process_Kill)
927 Exists = staticmethod(_misc.Process_Exists)
928 Open = staticmethod(_misc.Process_Open)
929 def __init__(self, *args, **kwargs):
930 newobj = _misc.new_Process(*args, **kwargs)
931 self.this = newobj.this
932 self.thisown = 1
933 del newobj.thisown
934 self._setCallbackInfo(self, Process)
935 def _setCallbackInfo(*args, **kwargs): return _misc.Process__setCallbackInfo(*args, **kwargs)
936 def base_OnTerminate(*args, **kwargs): return _misc.Process_base_OnTerminate(*args, **kwargs)
937 def Redirect(*args, **kwargs): return _misc.Process_Redirect(*args, **kwargs)
938 def IsRedirected(*args, **kwargs): return _misc.Process_IsRedirected(*args, **kwargs)
939 def Detach(*args, **kwargs): return _misc.Process_Detach(*args, **kwargs)
940 def GetInputStream(*args, **kwargs): return _misc.Process_GetInputStream(*args, **kwargs)
941 def GetErrorStream(*args, **kwargs): return _misc.Process_GetErrorStream(*args, **kwargs)
942 def GetOutputStream(*args, **kwargs): return _misc.Process_GetOutputStream(*args, **kwargs)
943 def CloseOutput(*args, **kwargs): return _misc.Process_CloseOutput(*args, **kwargs)
944 def IsInputOpened(*args, **kwargs): return _misc.Process_IsInputOpened(*args, **kwargs)
945 def IsInputAvailable(*args, **kwargs): return _misc.Process_IsInputAvailable(*args, **kwargs)
946 def IsErrorAvailable(*args, **kwargs): return _misc.Process_IsErrorAvailable(*args, **kwargs)
947 def __repr__(self):
948 return "<%s.%s; proxy of C++ wxPyProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
949
950class ProcessPtr(Process):
951 def __init__(self, this):
952 self.this = this
953 if not hasattr(self,"thisown"): self.thisown = 0
954 self.__class__ = Process
955_misc.Process_swigregister(ProcessPtr)
956
957Process_Kill = _misc.Process_Kill
958
959Process_Exists = _misc.Process_Exists
960
961Process_Open = _misc.Process_Open
962
963class ProcessEvent(core.Event):
964 def __init__(self, *args, **kwargs):
965 newobj = _misc.new_ProcessEvent(*args, **kwargs)
966 self.this = newobj.this
967 self.thisown = 1
968 del newobj.thisown
969 def GetPid(*args, **kwargs): return _misc.ProcessEvent_GetPid(*args, **kwargs)
970 def GetExitCode(*args, **kwargs): return _misc.ProcessEvent_GetExitCode(*args, **kwargs)
971 m_pid = property(_misc.ProcessEvent_m_pid_get, _misc.ProcessEvent_m_pid_set)
972 m_exitcode = property(_misc.ProcessEvent_m_exitcode_get, _misc.ProcessEvent_m_exitcode_set)
973 def __repr__(self):
974 return "<%s.%s; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
975
976class ProcessEventPtr(ProcessEvent):
977 def __init__(self, this):
978 self.this = this
979 if not hasattr(self,"thisown"): self.thisown = 0
980 self.__class__ = ProcessEvent
981_misc.ProcessEvent_swigregister(ProcessEventPtr)
982
983wxEVT_END_PROCESS = _misc.wxEVT_END_PROCESS
984EVT_END_PROCESS = wx.PyEventBinder( wxEVT_END_PROCESS, 1 )
985
986EXEC_ASYNC = _misc.EXEC_ASYNC
987EXEC_SYNC = _misc.EXEC_SYNC
988EXEC_NOHIDE = _misc.EXEC_NOHIDE
989EXEC_MAKE_GROUP_LEADER = _misc.EXEC_MAKE_GROUP_LEADER
990
991Execute = _misc.Execute
992#---------------------------------------------------------------------------
993
994JOYSTICK1 = _misc.JOYSTICK1
995JOYSTICK2 = _misc.JOYSTICK2
996JOY_BUTTON_ANY = _misc.JOY_BUTTON_ANY
997JOY_BUTTON1 = _misc.JOY_BUTTON1
998JOY_BUTTON2 = _misc.JOY_BUTTON2
999JOY_BUTTON3 = _misc.JOY_BUTTON3
1000JOY_BUTTON4 = _misc.JOY_BUTTON4
1001class Joystick(object):
1002 def __init__(self, *args, **kwargs):
1003 newobj = _misc.new_Joystick(*args, **kwargs)
1004 self.this = newobj.this
1005 self.thisown = 1
1006 del newobj.thisown
1007 def __del__(self, destroy=_misc.delete_Joystick):
1008 try:
1009 if self.thisown: destroy(self)
1010 except: pass
1011 def GetPosition(*args, **kwargs): return _misc.Joystick_GetPosition(*args, **kwargs)
1012 def GetZPosition(*args, **kwargs): return _misc.Joystick_GetZPosition(*args, **kwargs)
1013 def GetButtonState(*args, **kwargs): return _misc.Joystick_GetButtonState(*args, **kwargs)
1014 def GetPOVPosition(*args, **kwargs): return _misc.Joystick_GetPOVPosition(*args, **kwargs)
1015 def GetPOVCTSPosition(*args, **kwargs): return _misc.Joystick_GetPOVCTSPosition(*args, **kwargs)
1016 def GetRudderPosition(*args, **kwargs): return _misc.Joystick_GetRudderPosition(*args, **kwargs)
1017 def GetUPosition(*args, **kwargs): return _misc.Joystick_GetUPosition(*args, **kwargs)
1018 def GetVPosition(*args, **kwargs): return _misc.Joystick_GetVPosition(*args, **kwargs)
1019 def GetMovementThreshold(*args, **kwargs): return _misc.Joystick_GetMovementThreshold(*args, **kwargs)
1020 def SetMovementThreshold(*args, **kwargs): return _misc.Joystick_SetMovementThreshold(*args, **kwargs)
1021 def IsOk(*args, **kwargs): return _misc.Joystick_IsOk(*args, **kwargs)
1022 def GetNumberJoysticks(*args, **kwargs): return _misc.Joystick_GetNumberJoysticks(*args, **kwargs)
1023 def GetManufacturerId(*args, **kwargs): return _misc.Joystick_GetManufacturerId(*args, **kwargs)
1024 def GetProductId(*args, **kwargs): return _misc.Joystick_GetProductId(*args, **kwargs)
1025 def GetProductName(*args, **kwargs): return _misc.Joystick_GetProductName(*args, **kwargs)
1026 def GetXMin(*args, **kwargs): return _misc.Joystick_GetXMin(*args, **kwargs)
1027 def GetYMin(*args, **kwargs): return _misc.Joystick_GetYMin(*args, **kwargs)
1028 def GetZMin(*args, **kwargs): return _misc.Joystick_GetZMin(*args, **kwargs)
1029 def GetXMax(*args, **kwargs): return _misc.Joystick_GetXMax(*args, **kwargs)
1030 def GetYMax(*args, **kwargs): return _misc.Joystick_GetYMax(*args, **kwargs)
1031 def GetZMax(*args, **kwargs): return _misc.Joystick_GetZMax(*args, **kwargs)
1032 def GetNumberButtons(*args, **kwargs): return _misc.Joystick_GetNumberButtons(*args, **kwargs)
1033 def GetNumberAxes(*args, **kwargs): return _misc.Joystick_GetNumberAxes(*args, **kwargs)
1034 def GetMaxButtons(*args, **kwargs): return _misc.Joystick_GetMaxButtons(*args, **kwargs)
1035 def GetMaxAxes(*args, **kwargs): return _misc.Joystick_GetMaxAxes(*args, **kwargs)
1036 def GetPollingMin(*args, **kwargs): return _misc.Joystick_GetPollingMin(*args, **kwargs)
1037 def GetPollingMax(*args, **kwargs): return _misc.Joystick_GetPollingMax(*args, **kwargs)
1038 def GetRudderMin(*args, **kwargs): return _misc.Joystick_GetRudderMin(*args, **kwargs)
1039 def GetRudderMax(*args, **kwargs): return _misc.Joystick_GetRudderMax(*args, **kwargs)
1040 def GetUMin(*args, **kwargs): return _misc.Joystick_GetUMin(*args, **kwargs)
1041 def GetUMax(*args, **kwargs): return _misc.Joystick_GetUMax(*args, **kwargs)
1042 def GetVMin(*args, **kwargs): return _misc.Joystick_GetVMin(*args, **kwargs)
1043 def GetVMax(*args, **kwargs): return _misc.Joystick_GetVMax(*args, **kwargs)
1044 def HasRudder(*args, **kwargs): return _misc.Joystick_HasRudder(*args, **kwargs)
1045 def HasZ(*args, **kwargs): return _misc.Joystick_HasZ(*args, **kwargs)
1046 def HasU(*args, **kwargs): return _misc.Joystick_HasU(*args, **kwargs)
1047 def HasV(*args, **kwargs): return _misc.Joystick_HasV(*args, **kwargs)
1048 def HasPOV(*args, **kwargs): return _misc.Joystick_HasPOV(*args, **kwargs)
1049 def HasPOV4Dir(*args, **kwargs): return _misc.Joystick_HasPOV4Dir(*args, **kwargs)
1050 def HasPOVCTS(*args, **kwargs): return _misc.Joystick_HasPOVCTS(*args, **kwargs)
1051 def SetCapture(*args, **kwargs): return _misc.Joystick_SetCapture(*args, **kwargs)
1052 def ReleaseCapture(*args, **kwargs): return _misc.Joystick_ReleaseCapture(*args, **kwargs)
1053 def __nonzero__(self): return self.IsOk()
1054 def __repr__(self):
1055 return "<%s.%s; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1056
1057class JoystickPtr(Joystick):
1058 def __init__(self, this):
1059 self.this = this
1060 if not hasattr(self,"thisown"): self.thisown = 0
1061 self.__class__ = Joystick
1062_misc.Joystick_swigregister(JoystickPtr)
1063
1064wxEVT_JOY_BUTTON_DOWN = _misc.wxEVT_JOY_BUTTON_DOWN
1065wxEVT_JOY_BUTTON_UP = _misc.wxEVT_JOY_BUTTON_UP
1066wxEVT_JOY_MOVE = _misc.wxEVT_JOY_MOVE
1067wxEVT_JOY_ZMOVE = _misc.wxEVT_JOY_ZMOVE
1068class JoystickEvent(core.Event):
1069 m_pos = property(_misc.JoystickEvent_m_pos_get, _misc.JoystickEvent_m_pos_set)
1070 m_zPosition = property(_misc.JoystickEvent_m_zPosition_get, _misc.JoystickEvent_m_zPosition_set)
1071 m_buttonChange = property(_misc.JoystickEvent_m_buttonChange_get, _misc.JoystickEvent_m_buttonChange_set)
1072 m_buttonState = property(_misc.JoystickEvent_m_buttonState_get, _misc.JoystickEvent_m_buttonState_set)
1073 m_joyStick = property(_misc.JoystickEvent_m_joyStick_get, _misc.JoystickEvent_m_joyStick_set)
1074 def __init__(self, *args, **kwargs):
1075 newobj = _misc.new_JoystickEvent(*args, **kwargs)
1076 self.this = newobj.this
1077 self.thisown = 1
1078 del newobj.thisown
1079 def GetPosition(*args, **kwargs): return _misc.JoystickEvent_GetPosition(*args, **kwargs)
1080 def GetZPosition(*args, **kwargs): return _misc.JoystickEvent_GetZPosition(*args, **kwargs)
1081 def GetButtonState(*args, **kwargs): return _misc.JoystickEvent_GetButtonState(*args, **kwargs)
1082 def GetButtonChange(*args, **kwargs): return _misc.JoystickEvent_GetButtonChange(*args, **kwargs)
1083 def GetJoystick(*args, **kwargs): return _misc.JoystickEvent_GetJoystick(*args, **kwargs)
1084 def SetJoystick(*args, **kwargs): return _misc.JoystickEvent_SetJoystick(*args, **kwargs)
1085 def SetButtonState(*args, **kwargs): return _misc.JoystickEvent_SetButtonState(*args, **kwargs)
1086 def SetButtonChange(*args, **kwargs): return _misc.JoystickEvent_SetButtonChange(*args, **kwargs)
1087 def SetPosition(*args, **kwargs): return _misc.JoystickEvent_SetPosition(*args, **kwargs)
1088 def SetZPosition(*args, **kwargs): return _misc.JoystickEvent_SetZPosition(*args, **kwargs)
1089 def IsButton(*args, **kwargs): return _misc.JoystickEvent_IsButton(*args, **kwargs)
1090 def IsMove(*args, **kwargs): return _misc.JoystickEvent_IsMove(*args, **kwargs)
1091 def IsZMove(*args, **kwargs): return _misc.JoystickEvent_IsZMove(*args, **kwargs)
1092 def ButtonDown(*args, **kwargs): return _misc.JoystickEvent_ButtonDown(*args, **kwargs)
1093 def ButtonUp(*args, **kwargs): return _misc.JoystickEvent_ButtonUp(*args, **kwargs)
1094 def ButtonIsDown(*args, **kwargs): return _misc.JoystickEvent_ButtonIsDown(*args, **kwargs)
1095 def __repr__(self):
1096 return "<%s.%s; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1097
1098class JoystickEventPtr(JoystickEvent):
1099 def __init__(self, this):
1100 self.this = this
1101 if not hasattr(self,"thisown"): self.thisown = 0
1102 self.__class__ = JoystickEvent
1103_misc.JoystickEvent_swigregister(JoystickEventPtr)
1104
1105EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN )
1106EVT_JOY_BUTTON_UP = wx.PyEventBinder( wxEVT_JOY_BUTTON_UP )
1107EVT_JOY_MOVE = wx.PyEventBinder( wxEVT_JOY_MOVE )
1108EVT_JOY_ZMOVE = wx.PyEventBinder( wxEVT_JOY_ZMOVE )
1109
1110EVT_JOYSTICK_EVENTS = wx.PyEventBinder([ wxEVT_JOY_BUTTON_DOWN,
1111 wxEVT_JOY_BUTTON_UP,
1112 wxEVT_JOY_MOVE,
1113 wxEVT_JOY_ZMOVE,
1114 ])
1115
1116
1117#---------------------------------------------------------------------------
1118
1119class Wave(object):
1120 def __init__(self, *args, **kwargs):
1121 newobj = _misc.new_Wave(*args, **kwargs)
1122 self.this = newobj.this
1123 self.thisown = 1
1124 del newobj.thisown
1125 def __del__(self, destroy=_misc.delete_Wave):
1126 try:
1127 if self.thisown: destroy(self)
1128 except: pass
1129 def IsOk(*args, **kwargs): return _misc.Wave_IsOk(*args, **kwargs)
1130 def Play(*args, **kwargs): return _misc.Wave_Play(*args, **kwargs)
1131 def __nonzero__(self): return self.IsOk()
1132 def __repr__(self):
1133 return "<%s.%s; proxy of C++ wxWave instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1134
1135class WavePtr(Wave):
1136 def __init__(self, this):
1137 self.this = this
1138 if not hasattr(self,"thisown"): self.thisown = 0
1139 self.__class__ = Wave
1140_misc.Wave_swigregister(WavePtr)
1141
1142def WaveData(*args, **kwargs):
1143 val = _misc.new_WaveData(*args, **kwargs)
1144 val.thisown = 1
1145 return val
1146
1147#---------------------------------------------------------------------------
1148
1149MAILCAP_STANDARD = _misc.MAILCAP_STANDARD
1150MAILCAP_NETSCAPE = _misc.MAILCAP_NETSCAPE
1151MAILCAP_KDE = _misc.MAILCAP_KDE
1152MAILCAP_GNOME = _misc.MAILCAP_GNOME
1153MAILCAP_ALL = _misc.MAILCAP_ALL
1154class FileTypeInfo(object):
1155 def __init__(self, *args, **kwargs):
1156 newobj = _misc.new_FileTypeInfo(*args, **kwargs)
1157 self.this = newobj.this
1158 self.thisown = 1
1159 del newobj.thisown
1160 def IsValid(*args, **kwargs): return _misc.FileTypeInfo_IsValid(*args, **kwargs)
1161 def SetIcon(*args, **kwargs): return _misc.FileTypeInfo_SetIcon(*args, **kwargs)
1162 def SetShortDesc(*args, **kwargs): return _misc.FileTypeInfo_SetShortDesc(*args, **kwargs)
1163 def GetMimeType(*args, **kwargs): return _misc.FileTypeInfo_GetMimeType(*args, **kwargs)
1164 def GetOpenCommand(*args, **kwargs): return _misc.FileTypeInfo_GetOpenCommand(*args, **kwargs)
1165 def GetPrintCommand(*args, **kwargs): return _misc.FileTypeInfo_GetPrintCommand(*args, **kwargs)
1166 def GetShortDesc(*args, **kwargs): return _misc.FileTypeInfo_GetShortDesc(*args, **kwargs)
1167 def GetDescription(*args, **kwargs): return _misc.FileTypeInfo_GetDescription(*args, **kwargs)
1168 def GetExtensions(*args, **kwargs): return _misc.FileTypeInfo_GetExtensions(*args, **kwargs)
1169 def GetExtensionsCount(*args, **kwargs): return _misc.FileTypeInfo_GetExtensionsCount(*args, **kwargs)
1170 def GetIconFile(*args, **kwargs): return _misc.FileTypeInfo_GetIconFile(*args, **kwargs)
1171 def GetIconIndex(*args, **kwargs): return _misc.FileTypeInfo_GetIconIndex(*args, **kwargs)
1172 def __repr__(self):
1173 return "<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1174
1175class FileTypeInfoPtr(FileTypeInfo):
1176 def __init__(self, this):
1177 self.this = this
1178 if not hasattr(self,"thisown"): self.thisown = 0
1179 self.__class__ = FileTypeInfo
1180_misc.FileTypeInfo_swigregister(FileTypeInfoPtr)
1181
1182def FileTypeInfoSequence(*args, **kwargs):
1183 val = _misc.new_FileTypeInfoSequence(*args, **kwargs)
1184 val.thisown = 1
1185 return val
1186
1187def NullFileTypeInfo(*args, **kwargs):
1188 val = _misc.new_NullFileTypeInfo(*args, **kwargs)
1189 val.thisown = 1
1190 return val
1191
1192class FileType(object):
1193 def __init__(self, *args, **kwargs):
1194 newobj = _misc.new_FileType(*args, **kwargs)
1195 self.this = newobj.this
1196 self.thisown = 1
1197 del newobj.thisown
1198 def __del__(self, destroy=_misc.delete_FileType):
1199 try:
1200 if self.thisown: destroy(self)
1201 except: pass
1202 def GetMimeType(*args, **kwargs): return _misc.FileType_GetMimeType(*args, **kwargs)
1203 def GetMimeTypes(*args, **kwargs): return _misc.FileType_GetMimeTypes(*args, **kwargs)
1204 def GetExtensions(*args, **kwargs): return _misc.FileType_GetExtensions(*args, **kwargs)
1205 def GetIcon(*args, **kwargs): return _misc.FileType_GetIcon(*args, **kwargs)
1206 def GetIconInfo(*args, **kwargs): return _misc.FileType_GetIconInfo(*args, **kwargs)
1207 def GetDescription(*args, **kwargs): return _misc.FileType_GetDescription(*args, **kwargs)
1208 def GetOpenCommand(*args, **kwargs): return _misc.FileType_GetOpenCommand(*args, **kwargs)
1209 def GetPrintCommand(*args, **kwargs): return _misc.FileType_GetPrintCommand(*args, **kwargs)
1210 def GetAllCommands(*args, **kwargs): return _misc.FileType_GetAllCommands(*args, **kwargs)
1211 def SetCommand(*args, **kwargs): return _misc.FileType_SetCommand(*args, **kwargs)
1212 def SetDefaultIcon(*args, **kwargs): return _misc.FileType_SetDefaultIcon(*args, **kwargs)
1213 def Unassociate(*args, **kwargs): return _misc.FileType_Unassociate(*args, **kwargs)
1214 ExpandCommand = staticmethod(_misc.FileType_ExpandCommand)
1215 def __repr__(self):
1216 return "<%s.%s; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1217
1218class FileTypePtr(FileType):
1219 def __init__(self, this):
1220 self.this = this
1221 if not hasattr(self,"thisown"): self.thisown = 0
1222 self.__class__ = FileType
1223_misc.FileType_swigregister(FileTypePtr)
1224
1225FileType_ExpandCommand = _misc.FileType_ExpandCommand
1226
1227class MimeTypesManager(object):
1228 IsOfType = staticmethod(_misc.MimeTypesManager_IsOfType)
1229 def __init__(self, *args, **kwargs):
1230 newobj = _misc.new_MimeTypesManager(*args, **kwargs)
1231 self.this = newobj.this
1232 self.thisown = 1
1233 del newobj.thisown
1234 def Initialize(*args, **kwargs): return _misc.MimeTypesManager_Initialize(*args, **kwargs)
1235 def ClearData(*args, **kwargs): return _misc.MimeTypesManager_ClearData(*args, **kwargs)
1236 def GetFileTypeFromExtension(*args, **kwargs): return _misc.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs)
1237 def GetFileTypeFromMimeType(*args, **kwargs): return _misc.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs)
1238 def ReadMailcap(*args, **kwargs): return _misc.MimeTypesManager_ReadMailcap(*args, **kwargs)
1239 def ReadMimeTypes(*args, **kwargs): return _misc.MimeTypesManager_ReadMimeTypes(*args, **kwargs)
1240 def EnumAllFileTypes(*args, **kwargs): return _misc.MimeTypesManager_EnumAllFileTypes(*args, **kwargs)
1241 def AddFallback(*args, **kwargs): return _misc.MimeTypesManager_AddFallback(*args, **kwargs)
1242 def Associate(*args, **kwargs): return _misc.MimeTypesManager_Associate(*args, **kwargs)
1243 def Unassociate(*args, **kwargs): return _misc.MimeTypesManager_Unassociate(*args, **kwargs)
1244 def __del__(self, destroy=_misc.delete_MimeTypesManager):
1245 try:
1246 if self.thisown: destroy(self)
1247 except: pass
1248 def __repr__(self):
1249 return "<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1250
1251class MimeTypesManagerPtr(MimeTypesManager):
1252 def __init__(self, this):
1253 self.this = this
1254 if not hasattr(self,"thisown"): self.thisown = 0
1255 self.__class__ = MimeTypesManager
1256_misc.MimeTypesManager_swigregister(MimeTypesManagerPtr)
1257cvar = _misc.cvar
1258TheMimeTypesManager = cvar.TheMimeTypesManager
1259
1260MimeTypesManager_IsOfType = _misc.MimeTypesManager_IsOfType
1261
1262#---------------------------------------------------------------------------
1263
1264class ArtProvider(object):
1265 def __init__(self, *args, **kwargs):
1266 newobj = _misc.new_ArtProvider(*args, **kwargs)
1267 self.this = newobj.this
1268 self.thisown = 1
1269 del newobj.thisown
1270 self._setCallbackInfo(self, ArtProvider)
1271 def __del__(self, destroy=_misc.delete_ArtProvider):
1272 try:
1273 if self.thisown: destroy(self)
1274 except: pass
1275 def _setCallbackInfo(*args, **kwargs): return _misc.ArtProvider__setCallbackInfo(*args, **kwargs)
1276 PushProvider = staticmethod(_misc.ArtProvider_PushProvider)
1277 PopProvider = staticmethod(_misc.ArtProvider_PopProvider)
1278 RemoveProvider = staticmethod(_misc.ArtProvider_RemoveProvider)
1279 GetBitmap = staticmethod(_misc.ArtProvider_GetBitmap)
1280 GetIcon = staticmethod(_misc.ArtProvider_GetIcon)
1281 def __repr__(self):
1282 return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1283
1284class ArtProviderPtr(ArtProvider):
1285 def __init__(self, this):
1286 self.this = this
1287 if not hasattr(self,"thisown"): self.thisown = 0
1288 self.__class__ = ArtProvider
1289_misc.ArtProvider_swigregister(ArtProviderPtr)
1290ART_TOOLBAR = cvar.ART_TOOLBAR
1291ART_MENU = cvar.ART_MENU
1292ART_FRAME_ICON = cvar.ART_FRAME_ICON
1293ART_CMN_DIALOG = cvar.ART_CMN_DIALOG
1294ART_HELP_BROWSER = cvar.ART_HELP_BROWSER
1295ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX
1296ART_OTHER = cvar.ART_OTHER
1297ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK
1298ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK
1299ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL
1300ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS
1301ART_HELP_BOOK = cvar.ART_HELP_BOOK
1302ART_HELP_FOLDER = cvar.ART_HELP_FOLDER
1303ART_HELP_PAGE = cvar.ART_HELP_PAGE
1304ART_GO_BACK = cvar.ART_GO_BACK
1305ART_GO_FORWARD = cvar.ART_GO_FORWARD
1306ART_GO_UP = cvar.ART_GO_UP
1307ART_GO_DOWN = cvar.ART_GO_DOWN
1308ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT
1309ART_GO_HOME = cvar.ART_GO_HOME
1310ART_FILE_OPEN = cvar.ART_FILE_OPEN
1311ART_PRINT = cvar.ART_PRINT
1312ART_HELP = cvar.ART_HELP
1313ART_TIP = cvar.ART_TIP
1314ART_REPORT_VIEW = cvar.ART_REPORT_VIEW
1315ART_LIST_VIEW = cvar.ART_LIST_VIEW
1316ART_NEW_DIR = cvar.ART_NEW_DIR
1317ART_FOLDER = cvar.ART_FOLDER
1318ART_GO_DIR_UP = cvar.ART_GO_DIR_UP
1319ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE
1320ART_NORMAL_FILE = cvar.ART_NORMAL_FILE
1321ART_TICK_MARK = cvar.ART_TICK_MARK
1322ART_CROSS_MARK = cvar.ART_CROSS_MARK
1323ART_ERROR = cvar.ART_ERROR
1324ART_QUESTION = cvar.ART_QUESTION
1325ART_WARNING = cvar.ART_WARNING
1326ART_INFORMATION = cvar.ART_INFORMATION
1327ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE
1328
1329ArtProvider_PushProvider = _misc.ArtProvider_PushProvider
1330
1331ArtProvider_PopProvider = _misc.ArtProvider_PopProvider
1332
1333ArtProvider_RemoveProvider = _misc.ArtProvider_RemoveProvider
1334
1335ArtProvider_GetBitmap = _misc.ArtProvider_GetBitmap
1336
1337ArtProvider_GetIcon = _misc.ArtProvider_GetIcon
1338
1339#---------------------------------------------------------------------------
1340
1341CONFIG_USE_LOCAL_FILE = _misc.CONFIG_USE_LOCAL_FILE
1342CONFIG_USE_GLOBAL_FILE = _misc.CONFIG_USE_GLOBAL_FILE
1343CONFIG_USE_RELATIVE_PATH = _misc.CONFIG_USE_RELATIVE_PATH
1344CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc.CONFIG_USE_NO_ESCAPE_CHARACTERS
1345class ConfigBase(object):
1346 def __del__(self, destroy=_misc.delete_ConfigBase):
1347 try:
1348 if self.thisown: destroy(self)
1349 except: pass
1350 Type_Unknown = _misc.ConfigBase_Type_Unknown
1351 Type_String = _misc.ConfigBase_Type_String
1352 Type_Boolean = _misc.ConfigBase_Type_Boolean
1353 Type_Integer = _misc.ConfigBase_Type_Integer
1354 Type_Float = _misc.ConfigBase_Type_Float
1355 Set = staticmethod(_misc.ConfigBase_Set)
1356 Get = staticmethod(_misc.ConfigBase_Get)
1357 Create = staticmethod(_misc.ConfigBase_Create)
1358 DontCreateOnDemand = staticmethod(_misc.ConfigBase_DontCreateOnDemand)
1359 def SetPath(*args, **kwargs): return _misc.ConfigBase_SetPath(*args, **kwargs)
1360 def GetPath(*args, **kwargs): return _misc.ConfigBase_GetPath(*args, **kwargs)
1361 def GetFirstGroup(*args, **kwargs): return _misc.ConfigBase_GetFirstGroup(*args, **kwargs)
1362 def GetNextGroup(*args, **kwargs): return _misc.ConfigBase_GetNextGroup(*args, **kwargs)
1363 def GetFirstEntry(*args, **kwargs): return _misc.ConfigBase_GetFirstEntry(*args, **kwargs)
1364 def GetNextEntry(*args, **kwargs): return _misc.ConfigBase_GetNextEntry(*args, **kwargs)
1365 def GetNumberOfEntries(*args, **kwargs): return _misc.ConfigBase_GetNumberOfEntries(*args, **kwargs)
1366 def GetNumberOfGroups(*args, **kwargs): return _misc.ConfigBase_GetNumberOfGroups(*args, **kwargs)
1367 def HasGroup(*args, **kwargs): return _misc.ConfigBase_HasGroup(*args, **kwargs)
1368 def HasEntry(*args, **kwargs): return _misc.ConfigBase_HasEntry(*args, **kwargs)
1369 def Exists(*args, **kwargs): return _misc.ConfigBase_Exists(*args, **kwargs)
1370 def GetEntryType(*args, **kwargs): return _misc.ConfigBase_GetEntryType(*args, **kwargs)
1371 def Read(*args, **kwargs): return _misc.ConfigBase_Read(*args, **kwargs)
1372 def ReadInt(*args, **kwargs): return _misc.ConfigBase_ReadInt(*args, **kwargs)
1373 def ReadFloat(*args, **kwargs): return _misc.ConfigBase_ReadFloat(*args, **kwargs)
1374 def ReadBool(*args, **kwargs): return _misc.ConfigBase_ReadBool(*args, **kwargs)
1375 def Write(*args, **kwargs): return _misc.ConfigBase_Write(*args, **kwargs)
1376 def WriteInt(*args, **kwargs): return _misc.ConfigBase_WriteInt(*args, **kwargs)
1377 def WriteFloat(*args, **kwargs): return _misc.ConfigBase_WriteFloat(*args, **kwargs)
1378 def WriteBool(*args, **kwargs): return _misc.ConfigBase_WriteBool(*args, **kwargs)
1379 def Flush(*args, **kwargs): return _misc.ConfigBase_Flush(*args, **kwargs)
1380 def RenameEntry(*args, **kwargs): return _misc.ConfigBase_RenameEntry(*args, **kwargs)
1381 def RenameGroup(*args, **kwargs): return _misc.ConfigBase_RenameGroup(*args, **kwargs)
1382 def DeleteEntry(*args, **kwargs): return _misc.ConfigBase_DeleteEntry(*args, **kwargs)
1383 def DeleteGroup(*args, **kwargs): return _misc.ConfigBase_DeleteGroup(*args, **kwargs)
1384 def DeleteAll(*args, **kwargs): return _misc.ConfigBase_DeleteAll(*args, **kwargs)
1385 def IsExpandingEnvVars(*args, **kwargs): return _misc.ConfigBase_IsExpandingEnvVars(*args, **kwargs)
1386 def SetExpandEnvVars(*args, **kwargs): return _misc.ConfigBase_SetExpandEnvVars(*args, **kwargs)
1387 def SetRecordDefaults(*args, **kwargs): return _misc.ConfigBase_SetRecordDefaults(*args, **kwargs)
1388 def IsRecordingDefaults(*args, **kwargs): return _misc.ConfigBase_IsRecordingDefaults(*args, **kwargs)
1389 def ExpandEnvVars(*args, **kwargs): return _misc.ConfigBase_ExpandEnvVars(*args, **kwargs)
1390 def GetAppName(*args, **kwargs): return _misc.ConfigBase_GetAppName(*args, **kwargs)
1391 def GetVendorName(*args, **kwargs): return _misc.ConfigBase_GetVendorName(*args, **kwargs)
1392 def SetAppName(*args, **kwargs): return _misc.ConfigBase_SetAppName(*args, **kwargs)
1393 def SetVendorName(*args, **kwargs): return _misc.ConfigBase_SetVendorName(*args, **kwargs)
1394 def SetStyle(*args, **kwargs): return _misc.ConfigBase_SetStyle(*args, **kwargs)
1395 def GetStyle(*args, **kwargs): return _misc.ConfigBase_GetStyle(*args, **kwargs)
1396 def __init__(self): raise RuntimeError, "No constructor defined"
1397 def __repr__(self):
1398 return "<%s.%s; proxy of C++ wxConfigBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1399
1400class ConfigBasePtr(ConfigBase):
1401 def __init__(self, this):
1402 self.this = this
1403 if not hasattr(self,"thisown"): self.thisown = 0
1404 self.__class__ = ConfigBase
1405_misc.ConfigBase_swigregister(ConfigBasePtr)
1406
1407ConfigBase_Set = _misc.ConfigBase_Set
1408
1409ConfigBase_Get = _misc.ConfigBase_Get
1410
1411ConfigBase_Create = _misc.ConfigBase_Create
1412
1413ConfigBase_DontCreateOnDemand = _misc.ConfigBase_DontCreateOnDemand
1414
1415class ConfigPathChanger(object):
1416 def __init__(self, *args, **kwargs):
1417 newobj = _misc.new_ConfigPathChanger(*args, **kwargs)
1418 self.this = newobj.this
1419 self.thisown = 1
1420 del newobj.thisown
1421 def __del__(self, destroy=_misc.delete_ConfigPathChanger):
1422 try:
1423 if self.thisown: destroy(self)
1424 except: pass
1425 def Name(*args, **kwargs): return _misc.ConfigPathChanger_Name(*args, **kwargs)
1426 def __repr__(self):
1427 return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1428
1429class ConfigPathChangerPtr(ConfigPathChanger):
1430 def __init__(self, this):
1431 self.this = this
1432 if not hasattr(self,"thisown"): self.thisown = 0
1433 self.__class__ = ConfigPathChanger
1434_misc.ConfigPathChanger_swigregister(ConfigPathChangerPtr)
1435
1436class Config(ConfigBase):
1437 def __init__(self, *args, **kwargs):
1438 newobj = _misc.new_Config(*args, **kwargs)
1439 self.this = newobj.this
1440 self.thisown = 1
1441 del newobj.thisown
1442 def __del__(self, destroy=_misc.delete_Config):
1443 try:
1444 if self.thisown: destroy(self)
1445 except: pass
1446 def __repr__(self):
1447 return "<%s.%s; proxy of C++ wxConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1448
1449class ConfigPtr(Config):
1450 def __init__(self, this):
1451 self.this = this
1452 if not hasattr(self,"thisown"): self.thisown = 0
1453 self.__class__ = Config
1454_misc.Config_swigregister(ConfigPtr)
1455
1456class FileConfig(ConfigBase):
1457 def __init__(self, *args, **kwargs):
1458 newobj = _misc.new_FileConfig(*args, **kwargs)
1459 self.this = newobj.this
1460 self.thisown = 1
1461 del newobj.thisown
1462 def __del__(self, destroy=_misc.delete_FileConfig):
1463 try:
1464 if self.thisown: destroy(self)
1465 except: pass
1466 def __repr__(self):
1467 return "<%s.%s; proxy of C++ wxFileConfig instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1468
1469class FileConfigPtr(FileConfig):
1470 def __init__(self, this):
1471 self.this = this
1472 if not hasattr(self,"thisown"): self.thisown = 0
1473 self.__class__ = FileConfig
1474_misc.FileConfig_swigregister(FileConfigPtr)
1475
1476
1477ExpandEnvVars = _misc.ExpandEnvVars
1478#---------------------------------------------------------------------------
1479
1480class DateTime(object):
1481 Local = _misc.DateTime_Local
1482 GMT_12 = _misc.DateTime_GMT_12
1483 GMT_11 = _misc.DateTime_GMT_11
1484 GMT_10 = _misc.DateTime_GMT_10
1485 GMT_9 = _misc.DateTime_GMT_9
1486 GMT_8 = _misc.DateTime_GMT_8
1487 GMT_7 = _misc.DateTime_GMT_7
1488 GMT_6 = _misc.DateTime_GMT_6
1489 GMT_5 = _misc.DateTime_GMT_5
1490 GMT_4 = _misc.DateTime_GMT_4
1491 GMT_3 = _misc.DateTime_GMT_3
1492 GMT_2 = _misc.DateTime_GMT_2
1493 GMT_1 = _misc.DateTime_GMT_1
1494 GMT0 = _misc.DateTime_GMT0
1495 GMT1 = _misc.DateTime_GMT1
1496 GMT2 = _misc.DateTime_GMT2
1497 GMT3 = _misc.DateTime_GMT3
1498 GMT4 = _misc.DateTime_GMT4
1499 GMT5 = _misc.DateTime_GMT5
1500 GMT6 = _misc.DateTime_GMT6
1501 GMT7 = _misc.DateTime_GMT7
1502 GMT8 = _misc.DateTime_GMT8
1503 GMT9 = _misc.DateTime_GMT9
1504 GMT10 = _misc.DateTime_GMT10
1505 GMT11 = _misc.DateTime_GMT11
1506 GMT12 = _misc.DateTime_GMT12
1507 WET = _misc.DateTime_WET
1508 WEST = _misc.DateTime_WEST
1509 CET = _misc.DateTime_CET
1510 CEST = _misc.DateTime_CEST
1511 EET = _misc.DateTime_EET
1512 EEST = _misc.DateTime_EEST
1513 MSK = _misc.DateTime_MSK
1514 MSD = _misc.DateTime_MSD
1515 AST = _misc.DateTime_AST
1516 ADT = _misc.DateTime_ADT
1517 EST = _misc.DateTime_EST
1518 EDT = _misc.DateTime_EDT
1519 CST = _misc.DateTime_CST
1520 CDT = _misc.DateTime_CDT
1521 MST = _misc.DateTime_MST
1522 MDT = _misc.DateTime_MDT
1523 PST = _misc.DateTime_PST
1524 PDT = _misc.DateTime_PDT
1525 HST = _misc.DateTime_HST
1526 AKST = _misc.DateTime_AKST
1527 AKDT = _misc.DateTime_AKDT
1528 A_WST = _misc.DateTime_A_WST
1529 A_CST = _misc.DateTime_A_CST
1530 A_EST = _misc.DateTime_A_EST
1531 A_ESST = _misc.DateTime_A_ESST
1532 UTC = _misc.DateTime_UTC
1533 Gregorian = _misc.DateTime_Gregorian
1534 Julian = _misc.DateTime_Julian
1535 Gr_Unknown = _misc.DateTime_Gr_Unknown
1536 Gr_Standard = _misc.DateTime_Gr_Standard
1537 Gr_Alaska = _misc.DateTime_Gr_Alaska
1538 Gr_Albania = _misc.DateTime_Gr_Albania
1539 Gr_Austria = _misc.DateTime_Gr_Austria
1540 Gr_Austria_Brixen = _misc.DateTime_Gr_Austria_Brixen
1541 Gr_Austria_Salzburg = _misc.DateTime_Gr_Austria_Salzburg
1542 Gr_Austria_Tyrol = _misc.DateTime_Gr_Austria_Tyrol
1543 Gr_Austria_Carinthia = _misc.DateTime_Gr_Austria_Carinthia
1544 Gr_Austria_Styria = _misc.DateTime_Gr_Austria_Styria
1545 Gr_Belgium = _misc.DateTime_Gr_Belgium
1546 Gr_Bulgaria = _misc.DateTime_Gr_Bulgaria
1547 Gr_Bulgaria_1 = _misc.DateTime_Gr_Bulgaria_1
1548 Gr_Bulgaria_2 = _misc.DateTime_Gr_Bulgaria_2
1549 Gr_Bulgaria_3 = _misc.DateTime_Gr_Bulgaria_3
1550 Gr_Canada = _misc.DateTime_Gr_Canada
1551 Gr_China = _misc.DateTime_Gr_China
1552 Gr_China_1 = _misc.DateTime_Gr_China_1
1553 Gr_China_2 = _misc.DateTime_Gr_China_2
1554 Gr_Czechoslovakia = _misc.DateTime_Gr_Czechoslovakia
1555 Gr_Denmark = _misc.DateTime_Gr_Denmark
1556 Gr_Egypt = _misc.DateTime_Gr_Egypt
1557 Gr_Estonia = _misc.DateTime_Gr_Estonia
1558 Gr_Finland = _misc.DateTime_Gr_Finland
1559 Gr_France = _misc.DateTime_Gr_France
1560 Gr_France_Alsace = _misc.DateTime_Gr_France_Alsace
1561 Gr_France_Lorraine = _misc.DateTime_Gr_France_Lorraine
1562 Gr_France_Strasbourg = _misc.DateTime_Gr_France_Strasbourg
1563 Gr_Germany = _misc.DateTime_Gr_Germany
1564 Gr_Germany_Catholic = _misc.DateTime_Gr_Germany_Catholic
1565 Gr_Germany_Prussia = _misc.DateTime_Gr_Germany_Prussia
1566 Gr_Germany_Protestant = _misc.DateTime_Gr_Germany_Protestant
1567 Gr_GreatBritain = _misc.DateTime_Gr_GreatBritain
1568 Gr_Greece = _misc.DateTime_Gr_Greece
1569 Gr_Hungary = _misc.DateTime_Gr_Hungary
1570 Gr_Ireland = _misc.DateTime_Gr_Ireland
1571 Gr_Italy = _misc.DateTime_Gr_Italy
1572 Gr_Japan = _misc.DateTime_Gr_Japan
1573 Gr_Japan_1 = _misc.DateTime_Gr_Japan_1
1574 Gr_Japan_2 = _misc.DateTime_Gr_Japan_2
1575 Gr_Japan_3 = _misc.DateTime_Gr_Japan_3
1576 Gr_Latvia = _misc.DateTime_Gr_Latvia
1577 Gr_Lithuania = _misc.DateTime_Gr_Lithuania
1578 Gr_Luxemburg = _misc.DateTime_Gr_Luxemburg
1579 Gr_Netherlands = _misc.DateTime_Gr_Netherlands
1580 Gr_Netherlands_Groningen = _misc.DateTime_Gr_Netherlands_Groningen
1581 Gr_Netherlands_Gelderland = _misc.DateTime_Gr_Netherlands_Gelderland
1582 Gr_Netherlands_Utrecht = _misc.DateTime_Gr_Netherlands_Utrecht
1583 Gr_Netherlands_Friesland = _misc.DateTime_Gr_Netherlands_Friesland
1584 Gr_Norway = _misc.DateTime_Gr_Norway
1585 Gr_Poland = _misc.DateTime_Gr_Poland
1586 Gr_Portugal = _misc.DateTime_Gr_Portugal
1587 Gr_Romania = _misc.DateTime_Gr_Romania
1588 Gr_Russia = _misc.DateTime_Gr_Russia
1589 Gr_Scotland = _misc.DateTime_Gr_Scotland
1590 Gr_Spain = _misc.DateTime_Gr_Spain
1591 Gr_Sweden = _misc.DateTime_Gr_Sweden
1592 Gr_Switzerland = _misc.DateTime_Gr_Switzerland
1593 Gr_Switzerland_Catholic = _misc.DateTime_Gr_Switzerland_Catholic
1594 Gr_Switzerland_Protestant = _misc.DateTime_Gr_Switzerland_Protestant
1595 Gr_Turkey = _misc.DateTime_Gr_Turkey
1596 Gr_USA = _misc.DateTime_Gr_USA
1597 Gr_Wales = _misc.DateTime_Gr_Wales
1598 Gr_Yugoslavia = _misc.DateTime_Gr_Yugoslavia
1599 Country_Unknown = _misc.DateTime_Country_Unknown
1600 Country_Default = _misc.DateTime_Country_Default
1601 Country_WesternEurope_Start = _misc.DateTime_Country_WesternEurope_Start
1602 Country_EEC = _misc.DateTime_Country_EEC
1603 France = _misc.DateTime_France
1604 Germany = _misc.DateTime_Germany
1605 UK = _misc.DateTime_UK
1606 Country_WesternEurope_End = _misc.DateTime_Country_WesternEurope_End
1607 Russia = _misc.DateTime_Russia
1608 USA = _misc.DateTime_USA
1609 Jan = _misc.DateTime_Jan
1610 Feb = _misc.DateTime_Feb
1611 Mar = _misc.DateTime_Mar
1612 Apr = _misc.DateTime_Apr
1613 May = _misc.DateTime_May
1614 Jun = _misc.DateTime_Jun
1615 Jul = _misc.DateTime_Jul
1616 Aug = _misc.DateTime_Aug
1617 Sep = _misc.DateTime_Sep
1618 Oct = _misc.DateTime_Oct
1619 Nov = _misc.DateTime_Nov
1620 Dec = _misc.DateTime_Dec
1621 Inv_Month = _misc.DateTime_Inv_Month
1622 Sun = _misc.DateTime_Sun
1623 Mon = _misc.DateTime_Mon
1624 Tue = _misc.DateTime_Tue
1625 Wed = _misc.DateTime_Wed
1626 Thu = _misc.DateTime_Thu
1627 Fri = _misc.DateTime_Fri
1628 Sat = _misc.DateTime_Sat
1629 Inv_WeekDay = _misc.DateTime_Inv_WeekDay
1630 Inv_Year = _misc.DateTime_Inv_Year
1631 Name_Full = _misc.DateTime_Name_Full
1632 Name_Abbr = _misc.DateTime_Name_Abbr
1633 Default_First = _misc.DateTime_Default_First
1634 Monday_First = _misc.DateTime_Monday_First
1635 Sunday_First = _misc.DateTime_Sunday_First
1636 SetCountry = staticmethod(_misc.DateTime_SetCountry)
1637 GetCountry = staticmethod(_misc.DateTime_GetCountry)
1638 IsWestEuropeanCountry = staticmethod(_misc.DateTime_IsWestEuropeanCountry)
1639 GetCurrentYear = staticmethod(_misc.DateTime_GetCurrentYear)
1640 ConvertYearToBC = staticmethod(_misc.DateTime_ConvertYearToBC)
1641 GetCurrentMonth = staticmethod(_misc.DateTime_GetCurrentMonth)
1642 IsLeapYear = staticmethod(_misc.DateTime_IsLeapYear)
1643 GetCentury = staticmethod(_misc.DateTime_GetCentury)
1644 GetNumberOfDaysinYear = staticmethod(_misc.DateTime_GetNumberOfDaysinYear)
1645 GetNumberOfDaysInMonth = staticmethod(_misc.DateTime_GetNumberOfDaysInMonth)
1646 GetMonthName = staticmethod(_misc.DateTime_GetMonthName)
1647 GetWeekDayName = staticmethod(_misc.DateTime_GetWeekDayName)
1648 GetAmPmStrings = staticmethod(_misc.DateTime_GetAmPmStrings)
1649 IsDSTApplicable = staticmethod(_misc.DateTime_IsDSTApplicable)
1650 GetBeginDST = staticmethod(_misc.DateTime_GetBeginDST)
1651 GetEndDST = staticmethod(_misc.DateTime_GetEndDST)
1652 Now = staticmethod(_misc.DateTime_Now)
1653 UNow = staticmethod(_misc.DateTime_UNow)
1654 Today = staticmethod(_misc.DateTime_Today)
1655 def __init__(self, *args, **kwargs):
1656 newobj = _misc.new_DateTime(*args, **kwargs)
1657 self.this = newobj.this
1658 self.thisown = 1
1659 del newobj.thisown
1660 def __del__(self, destroy=_misc.delete_DateTime):
1661 try:
1662 if self.thisown: destroy(self)
1663 except: pass
1664 def SetToCurrent(*args, **kwargs): return _misc.DateTime_SetToCurrent(*args, **kwargs)
1665 def SetTimeT(*args, **kwargs): return _misc.DateTime_SetTimeT(*args, **kwargs)
1666 def SetJDN(*args, **kwargs): return _misc.DateTime_SetJDN(*args, **kwargs)
1667 def SetHMS(*args, **kwargs): return _misc.DateTime_SetHMS(*args, **kwargs)
1668 def Set(*args, **kwargs): return _misc.DateTime_Set(*args, **kwargs)
1669 def ResetTime(*args, **kwargs): return _misc.DateTime_ResetTime(*args, **kwargs)
1670 def SetYear(*args, **kwargs): return _misc.DateTime_SetYear(*args, **kwargs)
1671 def SetMonth(*args, **kwargs): return _misc.DateTime_SetMonth(*args, **kwargs)
1672 def SetDay(*args, **kwargs): return _misc.DateTime_SetDay(*args, **kwargs)
1673 def SetHour(*args, **kwargs): return _misc.DateTime_SetHour(*args, **kwargs)
1674 def SetMinute(*args, **kwargs): return _misc.DateTime_SetMinute(*args, **kwargs)
1675 def SetSecond(*args, **kwargs): return _misc.DateTime_SetSecond(*args, **kwargs)
1676 def SetMillisecond(*args, **kwargs): return _misc.DateTime_SetMillisecond(*args, **kwargs)
1677 def SetToWeekDayInSameWeek(*args, **kwargs): return _misc.DateTime_SetToWeekDayInSameWeek(*args, **kwargs)
1678 def GetWeekDayInSameWeek(*args, **kwargs): return _misc.DateTime_GetWeekDayInSameWeek(*args, **kwargs)
1679 def SetToNextWeekDay(*args, **kwargs): return _misc.DateTime_SetToNextWeekDay(*args, **kwargs)
1680 def GetNextWeekDay(*args, **kwargs): return _misc.DateTime_GetNextWeekDay(*args, **kwargs)
1681 def SetToPrevWeekDay(*args, **kwargs): return _misc.DateTime_SetToPrevWeekDay(*args, **kwargs)
1682 def GetPrevWeekDay(*args, **kwargs): return _misc.DateTime_GetPrevWeekDay(*args, **kwargs)
1683 def SetToWeekDay(*args, **kwargs): return _misc.DateTime_SetToWeekDay(*args, **kwargs)
1684 def SetToLastWeekDay(*args, **kwargs): return _misc.DateTime_SetToLastWeekDay(*args, **kwargs)
1685 def GetLastWeekDay(*args, **kwargs): return _misc.DateTime_GetLastWeekDay(*args, **kwargs)
1686 def SetToTheWeek(*args, **kwargs): return _misc.DateTime_SetToTheWeek(*args, **kwargs)
1687 def GetWeek(*args, **kwargs): return _misc.DateTime_GetWeek(*args, **kwargs)
1688 def SetToLastMonthDay(*args, **kwargs): return _misc.DateTime_SetToLastMonthDay(*args, **kwargs)
1689 def GetLastMonthDay(*args, **kwargs): return _misc.DateTime_GetLastMonthDay(*args, **kwargs)
1690 def SetToYearDay(*args, **kwargs): return _misc.DateTime_SetToYearDay(*args, **kwargs)
1691 def GetYearDay(*args, **kwargs): return _misc.DateTime_GetYearDay(*args, **kwargs)
1692 def GetJulianDayNumber(*args, **kwargs): return _misc.DateTime_GetJulianDayNumber(*args, **kwargs)
1693 def GetJDN(*args, **kwargs): return _misc.DateTime_GetJDN(*args, **kwargs)
1694 def GetModifiedJulianDayNumber(*args, **kwargs): return _misc.DateTime_GetModifiedJulianDayNumber(*args, **kwargs)
1695 def GetMJD(*args, **kwargs): return _misc.DateTime_GetMJD(*args, **kwargs)
1696 def GetRataDie(*args, **kwargs): return _misc.DateTime_GetRataDie(*args, **kwargs)
1697 def ToTimezone(*args, **kwargs): return _misc.DateTime_ToTimezone(*args, **kwargs)
1698 def MakeTimezone(*args, **kwargs): return _misc.DateTime_MakeTimezone(*args, **kwargs)
1699 def ToGMT(*args, **kwargs): return _misc.DateTime_ToGMT(*args, **kwargs)
1700 def MakeGMT(*args, **kwargs): return _misc.DateTime_MakeGMT(*args, **kwargs)
1701 def IsDST(*args, **kwargs): return _misc.DateTime_IsDST(*args, **kwargs)
1702 def IsValid(*args, **kwargs): return _misc.DateTime_IsValid(*args, **kwargs)
1703 def GetTicks(*args, **kwargs): return _misc.DateTime_GetTicks(*args, **kwargs)
1704 def GetYear(*args, **kwargs): return _misc.DateTime_GetYear(*args, **kwargs)
1705 def GetMonth(*args, **kwargs): return _misc.DateTime_GetMonth(*args, **kwargs)
1706 def GetDay(*args, **kwargs): return _misc.DateTime_GetDay(*args, **kwargs)
1707 def GetWeekDay(*args, **kwargs): return _misc.DateTime_GetWeekDay(*args, **kwargs)
1708 def GetHour(*args, **kwargs): return _misc.DateTime_GetHour(*args, **kwargs)
1709 def GetMinute(*args, **kwargs): return _misc.DateTime_GetMinute(*args, **kwargs)
1710 def GetSecond(*args, **kwargs): return _misc.DateTime_GetSecond(*args, **kwargs)
1711 def GetMillisecond(*args, **kwargs): return _misc.DateTime_GetMillisecond(*args, **kwargs)
1712 def GetDayOfYear(*args, **kwargs): return _misc.DateTime_GetDayOfYear(*args, **kwargs)
1713 def GetWeekOfYear(*args, **kwargs): return _misc.DateTime_GetWeekOfYear(*args, **kwargs)
1714 def GetWeekOfMonth(*args, **kwargs): return _misc.DateTime_GetWeekOfMonth(*args, **kwargs)
1715 def IsWorkDay(*args, **kwargs): return _misc.DateTime_IsWorkDay(*args, **kwargs)
1716 def IsEqualTo(*args, **kwargs): return _misc.DateTime_IsEqualTo(*args, **kwargs)
1717 def IsEarlierThan(*args, **kwargs): return _misc.DateTime_IsEarlierThan(*args, **kwargs)
1718 def IsLaterThan(*args, **kwargs): return _misc.DateTime_IsLaterThan(*args, **kwargs)
1719 def IsStrictlyBetween(*args, **kwargs): return _misc.DateTime_IsStrictlyBetween(*args, **kwargs)
1720 def IsBetween(*args, **kwargs): return _misc.DateTime_IsBetween(*args, **kwargs)
1721 def IsSameDate(*args, **kwargs): return _misc.DateTime_IsSameDate(*args, **kwargs)
1722 def IsSameTime(*args, **kwargs): return _misc.DateTime_IsSameTime(*args, **kwargs)
1723 def IsEqualUpTo(*args, **kwargs): return _misc.DateTime_IsEqualUpTo(*args, **kwargs)
1724 def AddTS(*args, **kwargs): return _misc.DateTime_AddTS(*args, **kwargs)
1725 def AddDS(*args, **kwargs): return _misc.DateTime_AddDS(*args, **kwargs)
1726 def SubtractTS(*args, **kwargs): return _misc.DateTime_SubtractTS(*args, **kwargs)
1727 def SubtractDS(*args, **kwargs): return _misc.DateTime_SubtractDS(*args, **kwargs)
1728 def Subtract(*args, **kwargs): return _misc.DateTime_Subtract(*args, **kwargs)
1729 def __iadd__(*args): return _misc.DateTime___iadd__(*args)
1730 def __isub__(*args): return _misc.DateTime___isub__(*args)
1731 def __add__(*args): return _misc.DateTime___add__(*args)
1732 def __sub__(*args): return _misc.DateTime___sub__(*args)
1733 def __lt__(*args): return _misc.DateTime___lt__(*args)
1734 def __le__(*args): return _misc.DateTime___le__(*args)
1735 def __gt__(*args): return _misc.DateTime___gt__(*args)
1736 def __ge__(*args): return _misc.DateTime___ge__(*args)
1737 def __eq__(*args): return _misc.DateTime___eq__(*args)
1738 def __ne__(*args): return _misc.DateTime___ne__(*args)
1739 def ParseRfc822Date(*args, **kwargs): return _misc.DateTime_ParseRfc822Date(*args, **kwargs)
1740 def ParseFormat(*args, **kwargs): return _misc.DateTime_ParseFormat(*args, **kwargs)
1741 def ParseDateTime(*args, **kwargs): return _misc.DateTime_ParseDateTime(*args, **kwargs)
1742 def ParseDate(*args, **kwargs): return _misc.DateTime_ParseDate(*args, **kwargs)
1743 def ParseTime(*args, **kwargs): return _misc.DateTime_ParseTime(*args, **kwargs)
1744 def Format(*args, **kwargs): return _misc.DateTime_Format(*args, **kwargs)
1745 def FormatDate(*args, **kwargs): return _misc.DateTime_FormatDate(*args, **kwargs)
1746 def FormatTime(*args, **kwargs): return _misc.DateTime_FormatTime(*args, **kwargs)
1747 def FormatISODate(*args, **kwargs): return _misc.DateTime_FormatISODate(*args, **kwargs)
1748 def FormatISOTime(*args, **kwargs): return _misc.DateTime_FormatISOTime(*args, **kwargs)
1749 def __repr__(self):
1750 return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this)
1751 def __str__(self):
1752 return self.Format()
1753
1754
1755class DateTimePtr(DateTime):
1756 def __init__(self, this):
1757 self.this = this
1758 if not hasattr(self,"thisown"): self.thisown = 0
1759 self.__class__ = DateTime
1760_misc.DateTime_swigregister(DateTimePtr)
1761
1762DateTime_SetCountry = _misc.DateTime_SetCountry
1763
1764DateTime_GetCountry = _misc.DateTime_GetCountry
1765
1766DateTime_IsWestEuropeanCountry = _misc.DateTime_IsWestEuropeanCountry
1767
1768DateTime_GetCurrentYear = _misc.DateTime_GetCurrentYear
1769
1770DateTime_ConvertYearToBC = _misc.DateTime_ConvertYearToBC
1771
1772DateTime_GetCurrentMonth = _misc.DateTime_GetCurrentMonth
1773
1774DateTime_IsLeapYear = _misc.DateTime_IsLeapYear
1775
1776DateTime_GetCentury = _misc.DateTime_GetCentury
1777
1778DateTime_GetNumberOfDaysinYear = _misc.DateTime_GetNumberOfDaysinYear
1779
1780DateTime_GetNumberOfDaysInMonth = _misc.DateTime_GetNumberOfDaysInMonth
1781
1782DateTime_GetMonthName = _misc.DateTime_GetMonthName
1783
1784DateTime_GetWeekDayName = _misc.DateTime_GetWeekDayName
1785
1786DateTime_GetAmPmStrings = _misc.DateTime_GetAmPmStrings
1787
1788DateTime_IsDSTApplicable = _misc.DateTime_IsDSTApplicable
1789
1790DateTime_GetBeginDST = _misc.DateTime_GetBeginDST
1791
1792DateTime_GetEndDST = _misc.DateTime_GetEndDST
1793
1794DateTime_Now = _misc.DateTime_Now
1795
1796DateTime_UNow = _misc.DateTime_UNow
1797
1798DateTime_Today = _misc.DateTime_Today
1799
1800def DateTimeFromTimeT(*args, **kwargs):
1801 val = _misc.new_DateTimeFromTimeT(*args, **kwargs)
1802 val.thisown = 1
1803 return val
1804
1805def DateTimeFromJDN(*args, **kwargs):
1806 val = _misc.new_DateTimeFromJDN(*args, **kwargs)
1807 val.thisown = 1
1808 return val
1809
1810def DateTimeFromHMS(*args, **kwargs):
1811 val = _misc.new_DateTimeFromHMS(*args, **kwargs)
1812 val.thisown = 1
1813 return val
1814
1815def DateTimeFromDMY(*args, **kwargs):
1816 val = _misc.new_DateTimeFromDMY(*args, **kwargs)
1817 val.thisown = 1
1818 return val
1819
1820class TimeSpan(object):
1821 Seconds = staticmethod(_misc.TimeSpan_Seconds)
1822 Second = staticmethod(_misc.TimeSpan_Second)
1823 Minutes = staticmethod(_misc.TimeSpan_Minutes)
1824 Minute = staticmethod(_misc.TimeSpan_Minute)
1825 Hours = staticmethod(_misc.TimeSpan_Hours)
1826 Hour = staticmethod(_misc.TimeSpan_Hour)
1827 Days = staticmethod(_misc.TimeSpan_Days)
1828 Day = staticmethod(_misc.TimeSpan_Day)
1829 Weeks = staticmethod(_misc.TimeSpan_Weeks)
1830 Week = staticmethod(_misc.TimeSpan_Week)
1831 def __init__(self, *args, **kwargs):
1832 newobj = _misc.new_TimeSpan(*args, **kwargs)
1833 self.this = newobj.this
1834 self.thisown = 1
1835 del newobj.thisown
1836 def __del__(self, destroy=_misc.delete_TimeSpan):
1837 try:
1838 if self.thisown: destroy(self)
1839 except: pass
1840 def Add(*args, **kwargs): return _misc.TimeSpan_Add(*args, **kwargs)
1841 def Subtract(*args, **kwargs): return _misc.TimeSpan_Subtract(*args, **kwargs)
1842 def Multiply(*args, **kwargs): return _misc.TimeSpan_Multiply(*args, **kwargs)
1843 def Neg(*args, **kwargs): return _misc.TimeSpan_Neg(*args, **kwargs)
1844 def Abs(*args, **kwargs): return _misc.TimeSpan_Abs(*args, **kwargs)
1845 def __iadd__(*args, **kwargs): return _misc.TimeSpan___iadd__(*args, **kwargs)
1846 def __isub__(*args, **kwargs): return _misc.TimeSpan___isub__(*args, **kwargs)
1847 def __imul__(*args, **kwargs): return _misc.TimeSpan___imul__(*args, **kwargs)
1848 def __neg__(*args, **kwargs): return _misc.TimeSpan___neg__(*args, **kwargs)
1849 def __add__(*args, **kwargs): return _misc.TimeSpan___add__(*args, **kwargs)
1850 def __sub__(*args, **kwargs): return _misc.TimeSpan___sub__(*args, **kwargs)
1851 def __mul__(*args, **kwargs): return _misc.TimeSpan___mul__(*args, **kwargs)
1852 def __rmul__(*args, **kwargs): return _misc.TimeSpan___rmul__(*args, **kwargs)
1853 def __lt__(*args, **kwargs): return _misc.TimeSpan___lt__(*args, **kwargs)
1854 def __le__(*args, **kwargs): return _misc.TimeSpan___le__(*args, **kwargs)
1855 def __gt__(*args, **kwargs): return _misc.TimeSpan___gt__(*args, **kwargs)
1856 def __ge__(*args, **kwargs): return _misc.TimeSpan___ge__(*args, **kwargs)
1857 def __eq__(*args, **kwargs): return _misc.TimeSpan___eq__(*args, **kwargs)
1858 def __ne__(*args, **kwargs): return _misc.TimeSpan___ne__(*args, **kwargs)
1859 def IsNull(*args, **kwargs): return _misc.TimeSpan_IsNull(*args, **kwargs)
1860 def IsPositive(*args, **kwargs): return _misc.TimeSpan_IsPositive(*args, **kwargs)
1861 def IsNegative(*args, **kwargs): return _misc.TimeSpan_IsNegative(*args, **kwargs)
1862 def IsEqualTo(*args, **kwargs): return _misc.TimeSpan_IsEqualTo(*args, **kwargs)
1863 def IsLongerThan(*args, **kwargs): return _misc.TimeSpan_IsLongerThan(*args, **kwargs)
1864 def IsShorterThan(*args, **kwargs): return _misc.TimeSpan_IsShorterThan(*args, **kwargs)
1865 def GetWeeks(*args, **kwargs): return _misc.TimeSpan_GetWeeks(*args, **kwargs)
1866 def GetDays(*args, **kwargs): return _misc.TimeSpan_GetDays(*args, **kwargs)
1867 def GetHours(*args, **kwargs): return _misc.TimeSpan_GetHours(*args, **kwargs)
1868 def GetMinutes(*args, **kwargs): return _misc.TimeSpan_GetMinutes(*args, **kwargs)
1869 def GetSeconds(*args, **kwargs): return _misc.TimeSpan_GetSeconds(*args, **kwargs)
1870 def GetMilliseconds(*args, **kwargs): return _misc.TimeSpan_GetMilliseconds(*args, **kwargs)
1871 def Format(*args, **kwargs): return _misc.TimeSpan_Format(*args, **kwargs)
1872 def __repr__(self):
1873 return '<wxTimeSpan: \"%s\" at %s>' % ( self.Format(), self.this)
1874 def __str__(self):
1875 return self.Format()
1876
1877
1878class TimeSpanPtr(TimeSpan):
1879 def __init__(self, this):
1880 self.this = this
1881 if not hasattr(self,"thisown"): self.thisown = 0
1882 self.__class__ = TimeSpan
1883_misc.TimeSpan_swigregister(TimeSpanPtr)
1884
1885TimeSpan_Seconds = _misc.TimeSpan_Seconds
1886
1887TimeSpan_Second = _misc.TimeSpan_Second
1888
1889TimeSpan_Minutes = _misc.TimeSpan_Minutes
1890
1891TimeSpan_Minute = _misc.TimeSpan_Minute
1892
1893TimeSpan_Hours = _misc.TimeSpan_Hours
1894
1895TimeSpan_Hour = _misc.TimeSpan_Hour
1896
1897TimeSpan_Days = _misc.TimeSpan_Days
1898
1899TimeSpan_Day = _misc.TimeSpan_Day
1900
1901TimeSpan_Weeks = _misc.TimeSpan_Weeks
1902
1903TimeSpan_Week = _misc.TimeSpan_Week
1904
1905class DateSpan(object):
1906 def __init__(self, *args, **kwargs):
1907 newobj = _misc.new_DateSpan(*args, **kwargs)
1908 self.this = newobj.this
1909 self.thisown = 1
1910 del newobj.thisown
1911 def __del__(self, destroy=_misc.delete_DateSpan):
1912 try:
1913 if self.thisown: destroy(self)
1914 except: pass
1915 Days = staticmethod(_misc.DateSpan_Days)
1916 Day = staticmethod(_misc.DateSpan_Day)
1917 Weeks = staticmethod(_misc.DateSpan_Weeks)
1918 Week = staticmethod(_misc.DateSpan_Week)
1919 Months = staticmethod(_misc.DateSpan_Months)
1920 Month = staticmethod(_misc.DateSpan_Month)
1921 Years = staticmethod(_misc.DateSpan_Years)
1922 Year = staticmethod(_misc.DateSpan_Year)
1923 def SetYears(*args, **kwargs): return _misc.DateSpan_SetYears(*args, **kwargs)
1924 def SetMonths(*args, **kwargs): return _misc.DateSpan_SetMonths(*args, **kwargs)
1925 def SetWeeks(*args, **kwargs): return _misc.DateSpan_SetWeeks(*args, **kwargs)
1926 def SetDays(*args, **kwargs): return _misc.DateSpan_SetDays(*args, **kwargs)
1927 def GetYears(*args, **kwargs): return _misc.DateSpan_GetYears(*args, **kwargs)
1928 def GetMonths(*args, **kwargs): return _misc.DateSpan_GetMonths(*args, **kwargs)
1929 def GetWeeks(*args, **kwargs): return _misc.DateSpan_GetWeeks(*args, **kwargs)
1930 def GetDays(*args, **kwargs): return _misc.DateSpan_GetDays(*args, **kwargs)
1931 def GetTotalDays(*args, **kwargs): return _misc.DateSpan_GetTotalDays(*args, **kwargs)
1932 def Add(*args, **kwargs): return _misc.DateSpan_Add(*args, **kwargs)
1933 def Subtract(*args, **kwargs): return _misc.DateSpan_Subtract(*args, **kwargs)
1934 def Neg(*args, **kwargs): return _misc.DateSpan_Neg(*args, **kwargs)
1935 def Multiply(*args, **kwargs): return _misc.DateSpan_Multiply(*args, **kwargs)
1936 def __iadd__(*args, **kwargs): return _misc.DateSpan___iadd__(*args, **kwargs)
1937 def __isub__(*args, **kwargs): return _misc.DateSpan___isub__(*args, **kwargs)
1938 def __neg__(*args, **kwargs): return _misc.DateSpan___neg__(*args, **kwargs)
1939 def __imul__(*args, **kwargs): return _misc.DateSpan___imul__(*args, **kwargs)
1940 def __add__(*args, **kwargs): return _misc.DateSpan___add__(*args, **kwargs)
1941 def __sub__(*args, **kwargs): return _misc.DateSpan___sub__(*args, **kwargs)
1942 def __mul__(*args, **kwargs): return _misc.DateSpan___mul__(*args, **kwargs)
1943 def __rmul__(*args, **kwargs): return _misc.DateSpan___rmul__(*args, **kwargs)
1944 def __eq__(*args, **kwargs): return _misc.DateSpan___eq__(*args, **kwargs)
1945 def __ne__(*args, **kwargs): return _misc.DateSpan___ne__(*args, **kwargs)
1946 def __repr__(self):
1947 return "<%s.%s; proxy of C++ wxDateSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1948
1949class DateSpanPtr(DateSpan):
1950 def __init__(self, this):
1951 self.this = this
1952 if not hasattr(self,"thisown"): self.thisown = 0
1953 self.__class__ = DateSpan
1954_misc.DateSpan_swigregister(DateSpanPtr)
1955
1956DateSpan_Days = _misc.DateSpan_Days
1957
1958DateSpan_Day = _misc.DateSpan_Day
1959
1960DateSpan_Weeks = _misc.DateSpan_Weeks
1961
1962DateSpan_Week = _misc.DateSpan_Week
1963
1964DateSpan_Months = _misc.DateSpan_Months
1965
1966DateSpan_Month = _misc.DateSpan_Month
1967
1968DateSpan_Years = _misc.DateSpan_Years
1969
1970DateSpan_Year = _misc.DateSpan_Year
1971
1972
1973GetLocalTime = _misc.GetLocalTime
1974
1975GetUTCTime = _misc.GetUTCTime
1976
1977GetCurrentTime = _misc.GetCurrentTime
1978
1979GetLocalTimeMillis = _misc.GetLocalTimeMillis
1980#---------------------------------------------------------------------------
1981
1982DF_INVALID = _misc.DF_INVALID
1983DF_TEXT = _misc.DF_TEXT
1984DF_BITMAP = _misc.DF_BITMAP
1985DF_METAFILE = _misc.DF_METAFILE
1986DF_SYLK = _misc.DF_SYLK
1987DF_DIF = _misc.DF_DIF
1988DF_TIFF = _misc.DF_TIFF
1989DF_OEMTEXT = _misc.DF_OEMTEXT
1990DF_DIB = _misc.DF_DIB
1991DF_PALETTE = _misc.DF_PALETTE
1992DF_PENDATA = _misc.DF_PENDATA
1993DF_RIFF = _misc.DF_RIFF
1994DF_WAVE = _misc.DF_WAVE
1995DF_UNICODETEXT = _misc.DF_UNICODETEXT
1996DF_ENHMETAFILE = _misc.DF_ENHMETAFILE
1997DF_FILENAME = _misc.DF_FILENAME
1998DF_LOCALE = _misc.DF_LOCALE
1999DF_PRIVATE = _misc.DF_PRIVATE
2000DF_HTML = _misc.DF_HTML
2001DF_MAX = _misc.DF_MAX
2002class DataFormat(object):
2003 def __init__(self, *args, **kwargs):
2004 newobj = _misc.new_DataFormat(*args, **kwargs)
2005 self.this = newobj.this
2006 self.thisown = 1
2007 del newobj.thisown
2008 def __del__(self, destroy=_misc.delete_DataFormat):
2009 try:
2010 if self.thisown: destroy(self)
2011 except: pass
2012 def __eq__(*args): return _misc.DataFormat___eq__(*args)
2013 def __ne__(*args): return _misc.DataFormat___ne__(*args)
2014 def SetType(*args, **kwargs): return _misc.DataFormat_SetType(*args, **kwargs)
2015 def GetType(*args, **kwargs): return _misc.DataFormat_GetType(*args, **kwargs)
2016 def GetId(*args, **kwargs): return _misc.DataFormat_GetId(*args, **kwargs)
2017 def SetId(*args, **kwargs): return _misc.DataFormat_SetId(*args, **kwargs)
2018 def __repr__(self):
2019 return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2020
2021class DataFormatPtr(DataFormat):
2022 def __init__(self, this):
2023 self.this = this
2024 if not hasattr(self,"thisown"): self.thisown = 0
2025 self.__class__ = DataFormat
2026_misc.DataFormat_swigregister(DataFormatPtr)
2027
2028def CustomDataFormat(*args, **kwargs):
2029 val = _misc.new_CustomDataFormat(*args, **kwargs)
2030 val.thisown = 1
2031 return val
2032
2033class DataObject(object):
2034 Get = _misc.DataObject_Get
2035 Set = _misc.DataObject_Set
2036 Both = _misc.DataObject_Both
2037 def __del__(self, destroy=_misc.delete_DataObject):
2038 try:
2039 if self.thisown: destroy(self)
2040 except: pass
2041 def GetPreferredFormat(*args, **kwargs): return _misc.DataObject_GetPreferredFormat(*args, **kwargs)
2042 def GetFormatCount(*args, **kwargs): return _misc.DataObject_GetFormatCount(*args, **kwargs)
2043 def IsSupported(*args, **kwargs): return _misc.DataObject_IsSupported(*args, **kwargs)
2044 def GetDataSize(*args, **kwargs): return _misc.DataObject_GetDataSize(*args, **kwargs)
2045 def GetAllFormats(*args, **kwargs): return _misc.DataObject_GetAllFormats(*args, **kwargs)
2046 def GetDataHere(*args, **kwargs): return _misc.DataObject_GetDataHere(*args, **kwargs)
2047 def SetData(*args, **kwargs): return _misc.DataObject_SetData(*args, **kwargs)
2048 def __init__(self): raise RuntimeError, "No constructor defined"
2049 def __repr__(self):
2050 return "<%s.%s; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2051
2052class DataObjectPtr(DataObject):
2053 def __init__(self, this):
2054 self.this = this
2055 if not hasattr(self,"thisown"): self.thisown = 0
2056 self.__class__ = DataObject
2057_misc.DataObject_swigregister(DataObjectPtr)
2058FormatInvalid = cvar.FormatInvalid
2059
2060class DataObjectSimple(DataObject):
2061 def __init__(self, *args, **kwargs):
2062 newobj = _misc.new_DataObjectSimple(*args, **kwargs)
2063 self.this = newobj.this
2064 self.thisown = 1
2065 del newobj.thisown
2066 def GetFormat(*args, **kwargs): return _misc.DataObjectSimple_GetFormat(*args, **kwargs)
2067 def SetFormat(*args, **kwargs): return _misc.DataObjectSimple_SetFormat(*args, **kwargs)
2068 def __repr__(self):
2069 return "<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2070
2071class DataObjectSimplePtr(DataObjectSimple):
2072 def __init__(self, this):
2073 self.this = this
2074 if not hasattr(self,"thisown"): self.thisown = 0
2075 self.__class__ = DataObjectSimple
2076_misc.DataObjectSimple_swigregister(DataObjectSimplePtr)
2077
2078class PyDataObjectSimple(DataObjectSimple):
2079 def __init__(self, *args, **kwargs):
2080 newobj = _misc.new_PyDataObjectSimple(*args, **kwargs)
2081 self.this = newobj.this
2082 self.thisown = 1
2083 del newobj.thisown
2084 self._setCallbackInfo(self, PyDataObjectSimple)
2085 def _setCallbackInfo(*args, **kwargs): return _misc.PyDataObjectSimple__setCallbackInfo(*args, **kwargs)
2086 def __repr__(self):
2087 return "<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2088
2089class PyDataObjectSimplePtr(PyDataObjectSimple):
2090 def __init__(self, this):
2091 self.this = this
2092 if not hasattr(self,"thisown"): self.thisown = 0
2093 self.__class__ = PyDataObjectSimple
2094_misc.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr)
2095
2096class DataObjectComposite(DataObject):
2097 def __init__(self, *args, **kwargs):
2098 newobj = _misc.new_DataObjectComposite(*args, **kwargs)
2099 self.this = newobj.this
2100 self.thisown = 1
2101 del newobj.thisown
2102 def Add(*args, **kwargs):
2103 val = _misc.DataObjectComposite_Add(*args, **kwargs)
2104 args[1].thisown = 0
2105 return val
2106 def __repr__(self):
2107 return "<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2108
2109class DataObjectCompositePtr(DataObjectComposite):
2110 def __init__(self, this):
2111 self.this = this
2112 if not hasattr(self,"thisown"): self.thisown = 0
2113 self.__class__ = DataObjectComposite
2114_misc.DataObjectComposite_swigregister(DataObjectCompositePtr)
2115
2116class TextDataObject(DataObjectSimple):
2117 def __init__(self, *args, **kwargs):
2118 newobj = _misc.new_TextDataObject(*args, **kwargs)
2119 self.this = newobj.this
2120 self.thisown = 1
2121 del newobj.thisown
2122 def GetTextLength(*args, **kwargs): return _misc.TextDataObject_GetTextLength(*args, **kwargs)
2123 def GetText(*args, **kwargs): return _misc.TextDataObject_GetText(*args, **kwargs)
2124 def SetText(*args, **kwargs): return _misc.TextDataObject_SetText(*args, **kwargs)
2125 def __repr__(self):
2126 return "<%s.%s; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2127
2128class TextDataObjectPtr(TextDataObject):
2129 def __init__(self, this):
2130 self.this = this
2131 if not hasattr(self,"thisown"): self.thisown = 0
2132 self.__class__ = TextDataObject
2133_misc.TextDataObject_swigregister(TextDataObjectPtr)
2134
2135class PyTextDataObject(TextDataObject):
2136 def __init__(self, *args, **kwargs):
2137 newobj = _misc.new_PyTextDataObject(*args, **kwargs)
2138 self.this = newobj.this
2139 self.thisown = 1
2140 del newobj.thisown
2141 self._setCallbackInfo(self, PyTextDataObject)
2142 def _setCallbackInfo(*args, **kwargs): return _misc.PyTextDataObject__setCallbackInfo(*args, **kwargs)
2143 def __repr__(self):
2144 return "<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2145
2146class PyTextDataObjectPtr(PyTextDataObject):
2147 def __init__(self, this):
2148 self.this = this
2149 if not hasattr(self,"thisown"): self.thisown = 0
2150 self.__class__ = PyTextDataObject
2151_misc.PyTextDataObject_swigregister(PyTextDataObjectPtr)
2152
2153class BitmapDataObject(DataObjectSimple):
2154 def __init__(self, *args, **kwargs):
2155 newobj = _misc.new_BitmapDataObject(*args, **kwargs)
2156 self.this = newobj.this
2157 self.thisown = 1
2158 del newobj.thisown
2159 def GetBitmap(*args, **kwargs): return _misc.BitmapDataObject_GetBitmap(*args, **kwargs)
2160 def SetBitmap(*args, **kwargs): return _misc.BitmapDataObject_SetBitmap(*args, **kwargs)
2161 def __repr__(self):
2162 return "<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2163
2164class BitmapDataObjectPtr(BitmapDataObject):
2165 def __init__(self, this):
2166 self.this = this
2167 if not hasattr(self,"thisown"): self.thisown = 0
2168 self.__class__ = BitmapDataObject
2169_misc.BitmapDataObject_swigregister(BitmapDataObjectPtr)
2170
2171class PyBitmapDataObject(BitmapDataObject):
2172 def __init__(self, *args, **kwargs):
2173 newobj = _misc.new_PyBitmapDataObject(*args, **kwargs)
2174 self.this = newobj.this
2175 self.thisown = 1
2176 del newobj.thisown
2177 self._setCallbackInfo(self, PyBitmapDataObject)
2178 def _setCallbackInfo(*args, **kwargs): return _misc.PyBitmapDataObject__setCallbackInfo(*args, **kwargs)
2179 def __repr__(self):
2180 return "<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2181
2182class PyBitmapDataObjectPtr(PyBitmapDataObject):
2183 def __init__(self, this):
2184 self.this = this
2185 if not hasattr(self,"thisown"): self.thisown = 0
2186 self.__class__ = PyBitmapDataObject
2187_misc.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr)
2188
2189class FileDataObject(DataObjectSimple):
2190 def __init__(self, *args, **kwargs):
2191 newobj = _misc.new_FileDataObject(*args, **kwargs)
2192 self.this = newobj.this
2193 self.thisown = 1
2194 del newobj.thisown
2195 def GetFilenames(*args, **kwargs): return _misc.FileDataObject_GetFilenames(*args, **kwargs)
2196 def AddFile(*args, **kwargs): return _misc.FileDataObject_AddFile(*args, **kwargs)
2197 def __repr__(self):
2198 return "<%s.%s; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2199
2200class FileDataObjectPtr(FileDataObject):
2201 def __init__(self, this):
2202 self.this = this
2203 if not hasattr(self,"thisown"): self.thisown = 0
2204 self.__class__ = FileDataObject
2205_misc.FileDataObject_swigregister(FileDataObjectPtr)
2206
2207class CustomDataObject(DataObjectSimple):
2208 def __init__(self, *args, **kwargs):
2209 newobj = _misc.new_CustomDataObject(*args, **kwargs)
2210 self.this = newobj.this
2211 self.thisown = 1
2212 del newobj.thisown
2213 def TakeData(*args, **kwargs): return _misc.CustomDataObject_TakeData(*args, **kwargs)
2214 def SetData(*args, **kwargs): return _misc.CustomDataObject_SetData(*args, **kwargs)
2215 def GetSize(*args, **kwargs): return _misc.CustomDataObject_GetSize(*args, **kwargs)
2216 def GetData(*args, **kwargs): return _misc.CustomDataObject_GetData(*args, **kwargs)
2217 def __repr__(self):
2218 return "<%s.%s; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2219
2220class CustomDataObjectPtr(CustomDataObject):
2221 def __init__(self, this):
2222 self.this = this
2223 if not hasattr(self,"thisown"): self.thisown = 0
2224 self.__class__ = CustomDataObject
2225_misc.CustomDataObject_swigregister(CustomDataObjectPtr)
2226
2227class URLDataObject(DataObjectComposite):
2228 def __init__(self, *args, **kwargs):
2229 newobj = _misc.new_URLDataObject(*args, **kwargs)
2230 self.this = newobj.this
2231 self.thisown = 1
2232 del newobj.thisown
2233 def GetURL(*args, **kwargs): return _misc.URLDataObject_GetURL(*args, **kwargs)
2234 def SetURL(*args, **kwargs): return _misc.URLDataObject_SetURL(*args, **kwargs)
2235 def __repr__(self):
2236 return "<%s.%s; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2237
2238class URLDataObjectPtr(URLDataObject):
2239 def __init__(self, this):
2240 self.this = this
2241 if not hasattr(self,"thisown"): self.thisown = 0
2242 self.__class__ = URLDataObject
2243_misc.URLDataObject_swigregister(URLDataObjectPtr)
2244
2245class MetafileDataObject(DataObjectSimple):
2246 def __init__(self, *args, **kwargs):
2247 newobj = _misc.new_MetafileDataObject(*args, **kwargs)
2248 self.this = newobj.this
2249 self.thisown = 1
2250 del newobj.thisown
2251 def SetMetafile(*args, **kwargs): return _misc.MetafileDataObject_SetMetafile(*args, **kwargs)
2252 def GetMetafile(*args, **kwargs): return _misc.MetafileDataObject_GetMetafile(*args, **kwargs)
2253 def __repr__(self):
2254 return "<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2255
2256class MetafileDataObjectPtr(MetafileDataObject):
2257 def __init__(self, this):
2258 self.this = this
2259 if not hasattr(self,"thisown"): self.thisown = 0
2260 self.__class__ = MetafileDataObject
2261_misc.MetafileDataObject_swigregister(MetafileDataObjectPtr)
2262
2263#---------------------------------------------------------------------------
2264
2265Drag_CopyOnly = _misc.Drag_CopyOnly
2266Drag_AllowMove = _misc.Drag_AllowMove
2267Drag_DefaultMove = _misc.Drag_DefaultMove
2268DragError = _misc.DragError
2269DragNone = _misc.DragNone
2270DragCopy = _misc.DragCopy
2271DragMove = _misc.DragMove
2272DragLink = _misc.DragLink
2273DragCancel = _misc.DragCancel
2274
2275IsDragResultOk = _misc.IsDragResultOk
2276class DropSource(object):
2277 def __init__(self, *args, **kwargs):
2278 newobj = _misc.new_DropSource(*args, **kwargs)
2279 self.this = newobj.this
2280 self.thisown = 1
2281 del newobj.thisown
2282 def _setCallbackInfo(*args, **kwargs): return _misc.DropSource__setCallbackInfo(*args, **kwargs)
2283 def __del__(self, destroy=_misc.delete_DropSource):
2284 try:
2285 if self.thisown: destroy(self)
2286 except: pass
2287 def SetData(*args, **kwargs): return _misc.DropSource_SetData(*args, **kwargs)
2288 def GetDataObject(*args, **kwargs): return _misc.DropSource_GetDataObject(*args, **kwargs)
2289 def SetCursor(*args, **kwargs): return _misc.DropSource_SetCursor(*args, **kwargs)
2290 def DoDragDrop(*args, **kwargs): return _misc.DropSource_DoDragDrop(*args, **kwargs)
2291 def base_GiveFeedback(*args, **kwargs): return _misc.DropSource_base_GiveFeedback(*args, **kwargs)
2292 def __repr__(self):
2293 return "<%s.%s; proxy of C++ wxPyDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2294
2295class DropSourcePtr(DropSource):
2296 def __init__(self, this):
2297 self.this = this
2298 if not hasattr(self,"thisown"): self.thisown = 0
2299 self.__class__ = DropSource
2300_misc.DropSource_swigregister(DropSourcePtr)
2301
2302class DropTarget(object):
2303 def __init__(self, *args, **kwargs):
2304 newobj = _misc.new_DropTarget(*args, **kwargs)
2305 self.this = newobj.this
2306 self.thisown = 1
2307 del newobj.thisown
2308 if args: args[1].thisown = 0; self._setCallbackInfo(self, DropTarget)
2309 def _setCallbackInfo(*args, **kwargs): return _misc.DropTarget__setCallbackInfo(*args, **kwargs)
2310 def __del__(self, destroy=_misc.delete_DropTarget):
2311 try:
2312 if self.thisown: destroy(self)
2313 except: pass
2314 def GetDataObject(*args, **kwargs): return _misc.DropTarget_GetDataObject(*args, **kwargs)
2315 def SetDataObject(*args, **kwargs):
2316 val = _misc.DropTarget_SetDataObject(*args, **kwargs)
2317 args[1].thisown = 0
2318 return val
2319 def base_OnEnter(*args, **kwargs): return _misc.DropTarget_base_OnEnter(*args, **kwargs)
2320 def base_OnDragOver(*args, **kwargs): return _misc.DropTarget_base_OnDragOver(*args, **kwargs)
2321 def base_OnLeave(*args, **kwargs): return _misc.DropTarget_base_OnLeave(*args, **kwargs)
2322 def base_OnDrop(*args, **kwargs): return _misc.DropTarget_base_OnDrop(*args, **kwargs)
2323 def GetData(*args, **kwargs): return _misc.DropTarget_GetData(*args, **kwargs)
2324 def __repr__(self):
2325 return "<%s.%s; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2326
2327class DropTargetPtr(DropTarget):
2328 def __init__(self, this):
2329 self.this = this
2330 if not hasattr(self,"thisown"): self.thisown = 0
2331 self.__class__ = DropTarget
2332_misc.DropTarget_swigregister(DropTargetPtr)
2333
2334PyDropTarget = DropTarget
2335class TextDropTarget(DropTarget):
2336 def __init__(self, *args, **kwargs):
2337 newobj = _misc.new_TextDropTarget(*args, **kwargs)
2338 self.this = newobj.this
2339 self.thisown = 1
2340 del newobj.thisown
2341 self._setCallbackInfo(self, TextDropTarget)
2342 def _setCallbackInfo(*args, **kwargs): return _misc.TextDropTarget__setCallbackInfo(*args, **kwargs)
2343 def base_OnEnter(*args, **kwargs): return _misc.TextDropTarget_base_OnEnter(*args, **kwargs)
2344 def base_OnDragOver(*args, **kwargs): return _misc.TextDropTarget_base_OnDragOver(*args, **kwargs)
2345 def base_OnLeave(*args, **kwargs): return _misc.TextDropTarget_base_OnLeave(*args, **kwargs)
2346 def base_OnDrop(*args, **kwargs): return _misc.TextDropTarget_base_OnDrop(*args, **kwargs)
2347 def base_OnData(*args, **kwargs): return _misc.TextDropTarget_base_OnData(*args, **kwargs)
2348 def __repr__(self):
2349 return "<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2350
2351class TextDropTargetPtr(TextDropTarget):
2352 def __init__(self, this):
2353 self.this = this
2354 if not hasattr(self,"thisown"): self.thisown = 0
2355 self.__class__ = TextDropTarget
2356_misc.TextDropTarget_swigregister(TextDropTargetPtr)
2357
2358class FileDropTarget(DropTarget):
2359 def __init__(self, *args, **kwargs):
2360 newobj = _misc.new_FileDropTarget(*args, **kwargs)
2361 self.this = newobj.this
2362 self.thisown = 1
2363 del newobj.thisown
2364 self._setCallbackInfo(self, FileDropTarget)
2365 def _setCallbackInfo(*args, **kwargs): return _misc.FileDropTarget__setCallbackInfo(*args, **kwargs)
2366 def base_OnEnter(*args, **kwargs): return _misc.FileDropTarget_base_OnEnter(*args, **kwargs)
2367 def base_OnDragOver(*args, **kwargs): return _misc.FileDropTarget_base_OnDragOver(*args, **kwargs)
2368 def base_OnLeave(*args, **kwargs): return _misc.FileDropTarget_base_OnLeave(*args, **kwargs)
2369 def base_OnDrop(*args, **kwargs): return _misc.FileDropTarget_base_OnDrop(*args, **kwargs)
2370 def base_OnData(*args, **kwargs): return _misc.FileDropTarget_base_OnData(*args, **kwargs)
2371 def __repr__(self):
2372 return "<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2373
2374class FileDropTargetPtr(FileDropTarget):
2375 def __init__(self, this):
2376 self.this = this
2377 if not hasattr(self,"thisown"): self.thisown = 0
2378 self.__class__ = FileDropTarget
2379_misc.FileDropTarget_swigregister(FileDropTargetPtr)
2380
2381#---------------------------------------------------------------------------
2382
2383class Clipboard(core.Object):
2384 def __init__(self, *args, **kwargs):
2385 newobj = _misc.new_Clipboard(*args, **kwargs)
2386 self.this = newobj.this
2387 self.thisown = 1
2388 del newobj.thisown
2389 def __del__(self, destroy=_misc.delete_Clipboard):
2390 try:
2391 if self.thisown: destroy(self)
2392 except: pass
2393 def Open(*args, **kwargs): return _misc.Clipboard_Open(*args, **kwargs)
2394 def Close(*args, **kwargs): return _misc.Clipboard_Close(*args, **kwargs)
2395 def IsOpened(*args, **kwargs): return _misc.Clipboard_IsOpened(*args, **kwargs)
2396 def AddData(*args, **kwargs): return _misc.Clipboard_AddData(*args, **kwargs)
2397 def SetData(*args, **kwargs): return _misc.Clipboard_SetData(*args, **kwargs)
2398 def IsSupported(*args, **kwargs): return _misc.Clipboard_IsSupported(*args, **kwargs)
2399 def GetData(*args, **kwargs): return _misc.Clipboard_GetData(*args, **kwargs)
2400 def Clear(*args, **kwargs): return _misc.Clipboard_Clear(*args, **kwargs)
2401 def Flush(*args, **kwargs): return _misc.Clipboard_Flush(*args, **kwargs)
2402 def UsePrimarySelection(*args, **kwargs): return _misc.Clipboard_UsePrimarySelection(*args, **kwargs)
2403 def __repr__(self):
2404 return "<%s.%s; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2405
2406class ClipboardPtr(Clipboard):
2407 def __init__(self, this):
2408 self.this = this
2409 if not hasattr(self,"thisown"): self.thisown = 0
2410 self.__class__ = Clipboard
2411_misc.Clipboard_swigregister(ClipboardPtr)
2412
2413class ClipboardLocker(object):
2414 def __init__(self, *args, **kwargs):
2415 newobj = _misc.new_ClipboardLocker(*args, **kwargs)
2416 self.this = newobj.this
2417 self.thisown = 1
2418 del newobj.thisown
2419 def __del__(self, destroy=_misc.delete_ClipboardLocker):
2420 try:
2421 if self.thisown: destroy(self)
2422 except: pass
2423 def __nonzero__(*args, **kwargs): return _misc.ClipboardLocker___nonzero__(*args, **kwargs)
2424 def __repr__(self):
2425 return "<%s.%s; proxy of C++ wxClipboardLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2426
2427class ClipboardLockerPtr(ClipboardLocker):
2428 def __init__(self, this):
2429 self.this = this
2430 if not hasattr(self,"thisown"): self.thisown = 0
2431 self.__class__ = ClipboardLocker
2432_misc.ClipboardLocker_swigregister(ClipboardLockerPtr)
2433TheClipboard = cvar.TheClipboard
2434
2435