1 # This file was created automatically by SWIG.
18 def wxMemoryFSHandler_AddFile(filename
, a
, b
=''):
19 if wx
.wxPy_isinstance(a
, (wxImage
, wxImagePtr
)):
20 __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
)
21 elif wx
.wxPy_isinstance(a
, (wxBitmap
, wxBitmapPtr
)):
22 __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
)
23 elif type(a
) == types
.StringType
:
24 #__wxMemoryFSHandler_AddFile_wxString(filename, a)
25 __wxMemoryFSHandler_AddFile_Data(filename
, a
)
26 else: raise TypeError, 'wxImage, wxBitmap or string expected'
28 class wxFSFilePtr(wxObjectPtr
):
29 def __init__(self
,this
):
32 def GetStream(self
, *_args
, **_kwargs
):
33 val
= filesysc
.wxFSFile_GetStream(self
, *_args
, **_kwargs
)
35 def GetMimeType(self
, *_args
, **_kwargs
):
36 val
= filesysc
.wxFSFile_GetMimeType(self
, *_args
, **_kwargs
)
38 def GetLocation(self
, *_args
, **_kwargs
):
39 val
= filesysc
.wxFSFile_GetLocation(self
, *_args
, **_kwargs
)
41 def GetAnchor(self
, *_args
, **_kwargs
):
42 val
= filesysc
.wxFSFile_GetAnchor(self
, *_args
, **_kwargs
)
44 def GetModificationTime(self
, *_args
, **_kwargs
):
45 val
= filesysc
.wxFSFile_GetModificationTime(self
, *_args
, **_kwargs
)
46 if val
: val
= wxDateTimePtr(val
) ; val
.thisown
= 1
49 return "<%s.%s instance; proxy of C++ wxFSFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
50 class wxFSFile(wxFSFilePtr
):
51 def __init__(self
,*_args
,**_kwargs
):
52 self
.this
= filesysc
.new_wxFSFile(*_args
,**_kwargs
)
58 class wxCPPFileSystemHandlerPtr(wxObjectPtr
):
59 def __init__(self
,this
):
63 return "<%s.%s instance; proxy of C++ wxCPPFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
64 class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr
):
65 def __init__(self
,this
):
71 class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr
):
72 def __init__(self
,this
):
75 def _setCallbackInfo(self
, *_args
, **_kwargs
):
76 val
= filesysc
.wxFileSystemHandler__setCallbackInfo(self
, *_args
, **_kwargs
)
78 def CanOpen(self
, *_args
, **_kwargs
):
79 val
= filesysc
.wxFileSystemHandler_CanOpen(self
, *_args
, **_kwargs
)
81 def OpenFile(self
, *_args
, **_kwargs
):
82 val
= filesysc
.wxFileSystemHandler_OpenFile(self
, *_args
, **_kwargs
)
84 def FindFirst(self
, *_args
, **_kwargs
):
85 val
= filesysc
.wxFileSystemHandler_FindFirst(self
, *_args
, **_kwargs
)
87 def FindNext(self
, *_args
, **_kwargs
):
88 val
= filesysc
.wxFileSystemHandler_FindNext(self
, *_args
, **_kwargs
)
90 def GetProtocol(self
, *_args
, **_kwargs
):
91 val
= filesysc
.wxFileSystemHandler_GetProtocol(self
, *_args
, **_kwargs
)
93 def GetLeftLocation(self
, *_args
, **_kwargs
):
94 val
= filesysc
.wxFileSystemHandler_GetLeftLocation(self
, *_args
, **_kwargs
)
96 def GetAnchor(self
, *_args
, **_kwargs
):
97 val
= filesysc
.wxFileSystemHandler_GetAnchor(self
, *_args
, **_kwargs
)
99 def GetRightLocation(self
, *_args
, **_kwargs
):
100 val
= filesysc
.wxFileSystemHandler_GetRightLocation(self
, *_args
, **_kwargs
)
102 def GetMimeTypeFromExt(self
, *_args
, **_kwargs
):
103 val
= filesysc
.wxFileSystemHandler_GetMimeTypeFromExt(self
, *_args
, **_kwargs
)
106 return "<%s.%s instance; proxy of C++ wxFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
107 class wxFileSystemHandler(wxFileSystemHandlerPtr
):
108 def __init__(self
,*_args
,**_kwargs
):
109 self
.this
= filesysc
.new_wxFileSystemHandler(*_args
,**_kwargs
)
111 self
._setCallbackInfo
(self
, wxFileSystemHandler
)
116 class wxFileSystemPtr(wxObjectPtr
):
117 def __init__(self
,this
):
120 def ChangePathTo(self
, *_args
, **_kwargs
):
121 val
= filesysc
.wxFileSystem_ChangePathTo(self
, *_args
, **_kwargs
)
123 def GetPath(self
, *_args
, **_kwargs
):
124 val
= filesysc
.wxFileSystem_GetPath(self
, *_args
, **_kwargs
)
126 def OpenFile(self
, *_args
, **_kwargs
):
127 val
= filesysc
.wxFileSystem_OpenFile(self
, *_args
, **_kwargs
)
129 def FindFirst(self
, *_args
, **_kwargs
):
130 val
= filesysc
.wxFileSystem_FindFirst(self
, *_args
, **_kwargs
)
132 def FindNext(self
, *_args
, **_kwargs
):
133 val
= filesysc
.wxFileSystem_FindNext(self
, *_args
, **_kwargs
)
136 return "<%s.%s instance; proxy of C++ wxFileSystem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
137 class wxFileSystem(wxFileSystemPtr
):
138 def __init__(self
,*_args
,**_kwargs
):
139 self
.this
= filesysc
.new_wxFileSystem(*_args
,**_kwargs
)
145 class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
146 def __init__(self
,this
):
149 def CanOpen(self
, *_args
, **_kwargs
):
150 val
= filesysc
.wxInternetFSHandler_CanOpen(self
, *_args
, **_kwargs
)
152 def OpenFile(self
, *_args
, **_kwargs
):
153 val
= filesysc
.wxInternetFSHandler_OpenFile(self
, *_args
, **_kwargs
)
156 return "<%s.%s instance; proxy of C++ wxInternetFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
157 class wxInternetFSHandler(wxInternetFSHandlerPtr
):
158 def __init__(self
,*_args
,**_kwargs
):
159 self
.this
= filesysc
.new_wxInternetFSHandler(*_args
,**_kwargs
)
165 class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
166 def __init__(self
,this
):
169 def CanOpen(self
, *_args
, **_kwargs
):
170 val
= filesysc
.wxZipFSHandler_CanOpen(self
, *_args
, **_kwargs
)
172 def OpenFile(self
, *_args
, **_kwargs
):
173 val
= filesysc
.wxZipFSHandler_OpenFile(self
, *_args
, **_kwargs
)
175 def FindFirst(self
, *_args
, **_kwargs
):
176 val
= filesysc
.wxZipFSHandler_FindFirst(self
, *_args
, **_kwargs
)
178 def FindNext(self
, *_args
, **_kwargs
):
179 val
= filesysc
.wxZipFSHandler_FindNext(self
, *_args
, **_kwargs
)
182 return "<%s.%s instance; proxy of C++ wxZipFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
183 class wxZipFSHandler(wxZipFSHandlerPtr
):
184 def __init__(self
,*_args
,**_kwargs
):
185 self
.this
= filesysc
.new_wxZipFSHandler(*_args
,**_kwargs
)
191 class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
192 def __init__(self
,this
):
195 def CanOpen(self
, *_args
, **_kwargs
):
196 val
= filesysc
.wxMemoryFSHandler_CanOpen(self
, *_args
, **_kwargs
)
198 def OpenFile(self
, *_args
, **_kwargs
):
199 val
= filesysc
.wxMemoryFSHandler_OpenFile(self
, *_args
, **_kwargs
)
201 def FindFirst(self
, *_args
, **_kwargs
):
202 val
= filesysc
.wxMemoryFSHandler_FindFirst(self
, *_args
, **_kwargs
)
204 def FindNext(self
, *_args
, **_kwargs
):
205 val
= filesysc
.wxMemoryFSHandler_FindNext(self
, *_args
, **_kwargs
)
208 return "<%s.%s instance; proxy of C++ wxMemoryFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
209 class wxMemoryFSHandler(wxMemoryFSHandlerPtr
):
210 def __init__(self
,*_args
,**_kwargs
):
211 self
.this
= filesysc
.new_wxMemoryFSHandler(*_args
,**_kwargs
)
219 #-------------- FUNCTION WRAPPERS ------------------
221 wxFileSystem_URLToFileName
= filesysc
.wxFileSystem_URLToFileName
223 __wxMemoryFSHandler_AddFile_wxImage
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxImage
225 __wxMemoryFSHandler_AddFile_wxBitmap
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxBitmap
227 __wxMemoryFSHandler_AddFile_Data
= filesysc
.__wxMemoryFSHandler
_AddFile
_Data
229 wxFileSystem_AddHandler
= filesysc
.wxFileSystem_AddHandler
231 wxFileSystem_CleanUpHandlers
= filesysc
.wxFileSystem_CleanUpHandlers
233 wxFileSystem_FileNameToURL
= filesysc
.wxFileSystem_FileNameToURL
235 wxMemoryFSHandler_RemoveFile
= filesysc
.wxMemoryFSHandler_RemoveFile
239 #-------------- VARIABLE WRAPPERS ------------------