1 # This file was created automatically by SWIG.
17 def wxMemoryFSHandler_AddFile(filename
, a
, b
=''):
18 if isinstance(a
, wxImage
):
19 __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
)
20 elif isinstance(a
, wxBitmap
):
21 __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
)
22 elif type(a
) == types
.StringType
:
23 #__wxMemoryFSHandler_AddFile_wxString(filename, a)
24 __wxMemoryFSHandler_AddFile_Data(filename
, a
)
25 else: raise TypeError, 'wxImage, wxBitmap or string expected'
27 class wxFSFilePtr(wxObjectPtr
):
28 def __init__(self
,this
):
31 def GetStream(self
, *_args
, **_kwargs
):
32 val
= apply(filesysc
.wxFSFile_GetStream
,(self
,) + _args
, _kwargs
)
34 def GetMimeType(self
, *_args
, **_kwargs
):
35 val
= apply(filesysc
.wxFSFile_GetMimeType
,(self
,) + _args
, _kwargs
)
37 def GetLocation(self
, *_args
, **_kwargs
):
38 val
= apply(filesysc
.wxFSFile_GetLocation
,(self
,) + _args
, _kwargs
)
40 def GetAnchor(self
, *_args
, **_kwargs
):
41 val
= apply(filesysc
.wxFSFile_GetAnchor
,(self
,) + _args
, _kwargs
)
43 def GetModificationTime(self
, *_args
, **_kwargs
):
44 val
= apply(filesysc
.wxFSFile_GetModificationTime
,(self
,) + _args
, _kwargs
)
45 if val
: val
= wxDateTimePtr(val
) ; val
.thisown
= 1
48 return "<C wxFSFile instance at %s>" % (self
.this
,)
49 class wxFSFile(wxFSFilePtr
):
50 def __init__(self
,*_args
,**_kwargs
):
51 self
.this
= apply(filesysc
.new_wxFSFile
,_args
,_kwargs
)
57 class wxCPPFileSystemHandlerPtr(wxObjectPtr
):
58 def __init__(self
,this
):
62 return "<C wxCPPFileSystemHandler instance at %s>" % (self
.this
,)
63 class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr
):
64 def __init__(self
,this
):
70 class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr
):
71 def __init__(self
,this
):
74 def _setSelf(self
, *_args
, **_kwargs
):
75 val
= apply(filesysc
.wxFileSystemHandler__setSelf
,(self
,) + _args
, _kwargs
)
77 def CanOpen(self
, *_args
, **_kwargs
):
78 val
= apply(filesysc
.wxFileSystemHandler_CanOpen
,(self
,) + _args
, _kwargs
)
80 def OpenFile(self
, *_args
, **_kwargs
):
81 val
= apply(filesysc
.wxFileSystemHandler_OpenFile
,(self
,) + _args
, _kwargs
)
83 def FindFirst(self
, *_args
, **_kwargs
):
84 val
= apply(filesysc
.wxFileSystemHandler_FindFirst
,(self
,) + _args
, _kwargs
)
86 def FindNext(self
, *_args
, **_kwargs
):
87 val
= apply(filesysc
.wxFileSystemHandler_FindNext
,(self
,) + _args
, _kwargs
)
89 def GetProtocol(self
, *_args
, **_kwargs
):
90 val
= apply(filesysc
.wxFileSystemHandler_GetProtocol
,(self
,) + _args
, _kwargs
)
92 def GetLeftLocation(self
, *_args
, **_kwargs
):
93 val
= apply(filesysc
.wxFileSystemHandler_GetLeftLocation
,(self
,) + _args
, _kwargs
)
95 def GetAnchor(self
, *_args
, **_kwargs
):
96 val
= apply(filesysc
.wxFileSystemHandler_GetAnchor
,(self
,) + _args
, _kwargs
)
98 def GetRightLocation(self
, *_args
, **_kwargs
):
99 val
= apply(filesysc
.wxFileSystemHandler_GetRightLocation
,(self
,) + _args
, _kwargs
)
101 def GetMimeTypeFromExt(self
, *_args
, **_kwargs
):
102 val
= apply(filesysc
.wxFileSystemHandler_GetMimeTypeFromExt
,(self
,) + _args
, _kwargs
)
105 return "<C wxFileSystemHandler instance at %s>" % (self
.this
,)
106 class wxFileSystemHandler(wxFileSystemHandlerPtr
):
107 def __init__(self
,*_args
,**_kwargs
):
108 self
.this
= apply(filesysc
.new_wxFileSystemHandler
,_args
,_kwargs
)
110 self
._setSelf
(self
, wxFileSystemHandler
)
115 class wxFileSystemPtr(wxObjectPtr
):
116 def __init__(self
,this
):
119 def ChangePathTo(self
, *_args
, **_kwargs
):
120 val
= apply(filesysc
.wxFileSystem_ChangePathTo
,(self
,) + _args
, _kwargs
)
122 def GetPath(self
, *_args
, **_kwargs
):
123 val
= apply(filesysc
.wxFileSystem_GetPath
,(self
,) + _args
, _kwargs
)
125 def OpenFile(self
, *_args
, **_kwargs
):
126 val
= apply(filesysc
.wxFileSystem_OpenFile
,(self
,) + _args
, _kwargs
)
128 def FindFirst(self
, *_args
, **_kwargs
):
129 val
= apply(filesysc
.wxFileSystem_FindFirst
,(self
,) + _args
, _kwargs
)
131 def FindNext(self
, *_args
, **_kwargs
):
132 val
= apply(filesysc
.wxFileSystem_FindNext
,(self
,) + _args
, _kwargs
)
135 return "<C wxFileSystem instance at %s>" % (self
.this
,)
136 class wxFileSystem(wxFileSystemPtr
):
137 def __init__(self
,*_args
,**_kwargs
):
138 self
.this
= apply(filesysc
.new_wxFileSystem
,_args
,_kwargs
)
144 class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
145 def __init__(self
,this
):
148 def CanOpen(self
, *_args
, **_kwargs
):
149 val
= apply(filesysc
.wxInternetFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
151 def OpenFile(self
, *_args
, **_kwargs
):
152 val
= apply(filesysc
.wxInternetFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
155 return "<C wxInternetFSHandler instance at %s>" % (self
.this
,)
156 class wxInternetFSHandler(wxInternetFSHandlerPtr
):
157 def __init__(self
,*_args
,**_kwargs
):
158 self
.this
= apply(filesysc
.new_wxInternetFSHandler
,_args
,_kwargs
)
164 class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
165 def __init__(self
,this
):
168 def CanOpen(self
, *_args
, **_kwargs
):
169 val
= apply(filesysc
.wxZipFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
171 def OpenFile(self
, *_args
, **_kwargs
):
172 val
= apply(filesysc
.wxZipFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
174 def FindFirst(self
, *_args
, **_kwargs
):
175 val
= apply(filesysc
.wxZipFSHandler_FindFirst
,(self
,) + _args
, _kwargs
)
177 def FindNext(self
, *_args
, **_kwargs
):
178 val
= apply(filesysc
.wxZipFSHandler_FindNext
,(self
,) + _args
, _kwargs
)
181 return "<C wxZipFSHandler instance at %s>" % (self
.this
,)
182 class wxZipFSHandler(wxZipFSHandlerPtr
):
183 def __init__(self
,*_args
,**_kwargs
):
184 self
.this
= apply(filesysc
.new_wxZipFSHandler
,_args
,_kwargs
)
190 class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
191 def __init__(self
,this
):
194 def CanOpen(self
, *_args
, **_kwargs
):
195 val
= apply(filesysc
.wxMemoryFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
197 def OpenFile(self
, *_args
, **_kwargs
):
198 val
= apply(filesysc
.wxMemoryFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
200 def FindFirst(self
, *_args
, **_kwargs
):
201 val
= apply(filesysc
.wxMemoryFSHandler_FindFirst
,(self
,) + _args
, _kwargs
)
203 def FindNext(self
, *_args
, **_kwargs
):
204 val
= apply(filesysc
.wxMemoryFSHandler_FindNext
,(self
,) + _args
, _kwargs
)
207 return "<C wxMemoryFSHandler instance at %s>" % (self
.this
,)
208 class wxMemoryFSHandler(wxMemoryFSHandlerPtr
):
209 def __init__(self
,*_args
,**_kwargs
):
210 self
.this
= apply(filesysc
.new_wxMemoryFSHandler
,_args
,_kwargs
)
218 #-------------- FUNCTION WRAPPERS ------------------
220 __wxMemoryFSHandler_AddFile_wxImage
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxImage
222 __wxMemoryFSHandler_AddFile_wxBitmap
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxBitmap
224 __wxMemoryFSHandler_AddFile_Data
= filesysc
.__wxMemoryFSHandler
_AddFile
_Data
226 wxFileSystem_AddHandler
= filesysc
.wxFileSystem_AddHandler
228 wxFileSystem_CleanUpHandlers
= filesysc
.wxFileSystem_CleanUpHandlers
230 wxMemoryFSHandler_RemoveFile
= filesysc
.wxMemoryFSHandler_RemoveFile
234 #-------------- VARIABLE WRAPPERS ------------------