1 # This file was created automatically by SWIG.
19 def wxMemoryFSHandler_AddFile(filename
, a
, b
=''):
20 if isinstance(a
, wxImage
):
21 __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
)
22 elif isinstance(a
, wxBitmap
):
23 __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
)
24 elif type(a
) == types
.StringType
:
25 #__wxMemoryFSHandler_AddFile_wxString(filename, a)
26 __wxMemoryFSHandler_AddFile_Data(filename
, a
)
27 else: raise TypeError, 'wxImage, wxBitmap or string expected'
29 class wxFSFilePtr(wxObjectPtr
):
30 def __init__(self
,this
):
33 def GetStream(self
, *_args
, **_kwargs
):
34 val
= apply(filesysc
.wxFSFile_GetStream
,(self
,) + _args
, _kwargs
)
36 def GetMimeType(self
, *_args
, **_kwargs
):
37 val
= apply(filesysc
.wxFSFile_GetMimeType
,(self
,) + _args
, _kwargs
)
39 def GetLocation(self
, *_args
, **_kwargs
):
40 val
= apply(filesysc
.wxFSFile_GetLocation
,(self
,) + _args
, _kwargs
)
42 def GetAnchor(self
, *_args
, **_kwargs
):
43 val
= apply(filesysc
.wxFSFile_GetAnchor
,(self
,) + _args
, _kwargs
)
45 def GetModificationTime(self
, *_args
, **_kwargs
):
46 val
= apply(filesysc
.wxFSFile_GetModificationTime
,(self
,) + _args
, _kwargs
)
47 if val
: val
= wxDateTimePtr(val
) ; val
.thisown
= 1
50 return "<C wxFSFile instance at %s>" % (self
.this
,)
51 class wxFSFile(wxFSFilePtr
):
52 def __init__(self
,*_args
,**_kwargs
):
53 self
.this
= apply(filesysc
.new_wxFSFile
,_args
,_kwargs
)
59 class wxCPPFileSystemHandlerPtr(wxObjectPtr
):
60 def __init__(self
,this
):
64 return "<C wxCPPFileSystemHandler instance at %s>" % (self
.this
,)
65 class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr
):
66 def __init__(self
,this
):
72 class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr
):
73 def __init__(self
,this
):
76 def _setCallbackInfo(self
, *_args
, **_kwargs
):
77 val
= apply(filesysc
.wxFileSystemHandler__setCallbackInfo
,(self
,) + _args
, _kwargs
)
79 def CanOpen(self
, *_args
, **_kwargs
):
80 val
= apply(filesysc
.wxFileSystemHandler_CanOpen
,(self
,) + _args
, _kwargs
)
82 def OpenFile(self
, *_args
, **_kwargs
):
83 val
= apply(filesysc
.wxFileSystemHandler_OpenFile
,(self
,) + _args
, _kwargs
)
85 def FindFirst(self
, *_args
, **_kwargs
):
86 val
= apply(filesysc
.wxFileSystemHandler_FindFirst
,(self
,) + _args
, _kwargs
)
88 def FindNext(self
, *_args
, **_kwargs
):
89 val
= apply(filesysc
.wxFileSystemHandler_FindNext
,(self
,) + _args
, _kwargs
)
91 def GetProtocol(self
, *_args
, **_kwargs
):
92 val
= apply(filesysc
.wxFileSystemHandler_GetProtocol
,(self
,) + _args
, _kwargs
)
94 def GetLeftLocation(self
, *_args
, **_kwargs
):
95 val
= apply(filesysc
.wxFileSystemHandler_GetLeftLocation
,(self
,) + _args
, _kwargs
)
97 def GetAnchor(self
, *_args
, **_kwargs
):
98 val
= apply(filesysc
.wxFileSystemHandler_GetAnchor
,(self
,) + _args
, _kwargs
)
100 def GetRightLocation(self
, *_args
, **_kwargs
):
101 val
= apply(filesysc
.wxFileSystemHandler_GetRightLocation
,(self
,) + _args
, _kwargs
)
103 def GetMimeTypeFromExt(self
, *_args
, **_kwargs
):
104 val
= apply(filesysc
.wxFileSystemHandler_GetMimeTypeFromExt
,(self
,) + _args
, _kwargs
)
107 return "<C wxFileSystemHandler instance at %s>" % (self
.this
,)
108 class wxFileSystemHandler(wxFileSystemHandlerPtr
):
109 def __init__(self
,*_args
,**_kwargs
):
110 self
.this
= apply(filesysc
.new_wxFileSystemHandler
,_args
,_kwargs
)
112 self
._setCallbackInfo
(self
, wxFileSystemHandler
)
117 class wxFileSystemPtr(wxObjectPtr
):
118 def __init__(self
,this
):
121 def ChangePathTo(self
, *_args
, **_kwargs
):
122 val
= apply(filesysc
.wxFileSystem_ChangePathTo
,(self
,) + _args
, _kwargs
)
124 def GetPath(self
, *_args
, **_kwargs
):
125 val
= apply(filesysc
.wxFileSystem_GetPath
,(self
,) + _args
, _kwargs
)
127 def OpenFile(self
, *_args
, **_kwargs
):
128 val
= apply(filesysc
.wxFileSystem_OpenFile
,(self
,) + _args
, _kwargs
)
130 def FindFirst(self
, *_args
, **_kwargs
):
131 val
= apply(filesysc
.wxFileSystem_FindFirst
,(self
,) + _args
, _kwargs
)
133 def FindNext(self
, *_args
, **_kwargs
):
134 val
= apply(filesysc
.wxFileSystem_FindNext
,(self
,) + _args
, _kwargs
)
137 return "<C wxFileSystem instance at %s>" % (self
.this
,)
138 class wxFileSystem(wxFileSystemPtr
):
139 def __init__(self
,*_args
,**_kwargs
):
140 self
.this
= apply(filesysc
.new_wxFileSystem
,_args
,_kwargs
)
146 class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
147 def __init__(self
,this
):
150 def CanOpen(self
, *_args
, **_kwargs
):
151 val
= apply(filesysc
.wxInternetFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
153 def OpenFile(self
, *_args
, **_kwargs
):
154 val
= apply(filesysc
.wxInternetFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
157 return "<C wxInternetFSHandler instance at %s>" % (self
.this
,)
158 class wxInternetFSHandler(wxInternetFSHandlerPtr
):
159 def __init__(self
,*_args
,**_kwargs
):
160 self
.this
= apply(filesysc
.new_wxInternetFSHandler
,_args
,_kwargs
)
166 class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
167 def __init__(self
,this
):
170 def CanOpen(self
, *_args
, **_kwargs
):
171 val
= apply(filesysc
.wxZipFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
173 def OpenFile(self
, *_args
, **_kwargs
):
174 val
= apply(filesysc
.wxZipFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
176 def FindFirst(self
, *_args
, **_kwargs
):
177 val
= apply(filesysc
.wxZipFSHandler_FindFirst
,(self
,) + _args
, _kwargs
)
179 def FindNext(self
, *_args
, **_kwargs
):
180 val
= apply(filesysc
.wxZipFSHandler_FindNext
,(self
,) + _args
, _kwargs
)
183 return "<C wxZipFSHandler instance at %s>" % (self
.this
,)
184 class wxZipFSHandler(wxZipFSHandlerPtr
):
185 def __init__(self
,*_args
,**_kwargs
):
186 self
.this
= apply(filesysc
.new_wxZipFSHandler
,_args
,_kwargs
)
192 class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
193 def __init__(self
,this
):
196 def CanOpen(self
, *_args
, **_kwargs
):
197 val
= apply(filesysc
.wxMemoryFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
199 def OpenFile(self
, *_args
, **_kwargs
):
200 val
= apply(filesysc
.wxMemoryFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
202 def FindFirst(self
, *_args
, **_kwargs
):
203 val
= apply(filesysc
.wxMemoryFSHandler_FindFirst
,(self
,) + _args
, _kwargs
)
205 def FindNext(self
, *_args
, **_kwargs
):
206 val
= apply(filesysc
.wxMemoryFSHandler_FindNext
,(self
,) + _args
, _kwargs
)
209 return "<C wxMemoryFSHandler instance at %s>" % (self
.this
,)
210 class wxMemoryFSHandler(wxMemoryFSHandlerPtr
):
211 def __init__(self
,*_args
,**_kwargs
):
212 self
.this
= apply(filesysc
.new_wxMemoryFSHandler
,_args
,_kwargs
)
220 #-------------- FUNCTION WRAPPERS ------------------
222 __wxMemoryFSHandler_AddFile_wxImage
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxImage
224 __wxMemoryFSHandler_AddFile_wxBitmap
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxBitmap
226 __wxMemoryFSHandler_AddFile_Data
= filesysc
.__wxMemoryFSHandler
_AddFile
_Data
228 wxFileSystem_AddHandler
= filesysc
.wxFileSystem_AddHandler
230 wxFileSystem_CleanUpHandlers
= filesysc
.wxFileSystem_CleanUpHandlers
232 wxMemoryFSHandler_RemoveFile
= filesysc
.wxMemoryFSHandler_RemoveFile
236 #-------------- VARIABLE WRAPPERS ------------------