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 
= apply(filesysc
.wxFSFile_GetStream
,(self
,) + _args
, _kwargs
) 
  35     def GetMimeType(self
, *_args
, **_kwargs
): 
  36         val 
= apply(filesysc
.wxFSFile_GetMimeType
,(self
,) + _args
, _kwargs
) 
  38     def GetLocation(self
, *_args
, **_kwargs
): 
  39         val 
= apply(filesysc
.wxFSFile_GetLocation
,(self
,) + _args
, _kwargs
) 
  41     def GetAnchor(self
, *_args
, **_kwargs
): 
  42         val 
= apply(filesysc
.wxFSFile_GetAnchor
,(self
,) + _args
, _kwargs
) 
  44     def GetModificationTime(self
, *_args
, **_kwargs
): 
  45         val 
= apply(filesysc
.wxFSFile_GetModificationTime
,(self
,) + _args
, _kwargs
) 
  46         if val
: val 
= wxDateTimePtr(val
) ; val
.thisown 
= 1 
  49         return "<C wxFSFile instance at %s>" % (self
.this
,) 
  50 class wxFSFile(wxFSFilePtr
): 
  51     def __init__(self
,*_args
,**_kwargs
): 
  52         self
.this 
= apply(filesysc
.new_wxFSFile
,_args
,_kwargs
) 
  58 class wxCPPFileSystemHandlerPtr(wxObjectPtr
): 
  59     def __init__(self
,this
): 
  63         return "<C wxCPPFileSystemHandler instance at %s>" % (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 
= apply(filesysc
.wxFileSystemHandler__setCallbackInfo
,(self
,) + _args
, _kwargs
) 
  78     def CanOpen(self
, *_args
, **_kwargs
): 
  79         val 
= apply(filesysc
.wxFileSystemHandler_CanOpen
,(self
,) + _args
, _kwargs
) 
  81     def OpenFile(self
, *_args
, **_kwargs
): 
  82         val 
= apply(filesysc
.wxFileSystemHandler_OpenFile
,(self
,) + _args
, _kwargs
) 
  84     def FindFirst(self
, *_args
, **_kwargs
): 
  85         val 
= apply(filesysc
.wxFileSystemHandler_FindFirst
,(self
,) + _args
, _kwargs
) 
  87     def FindNext(self
, *_args
, **_kwargs
): 
  88         val 
= apply(filesysc
.wxFileSystemHandler_FindNext
,(self
,) + _args
, _kwargs
) 
  90     def GetProtocol(self
, *_args
, **_kwargs
): 
  91         val 
= apply(filesysc
.wxFileSystemHandler_GetProtocol
,(self
,) + _args
, _kwargs
) 
  93     def GetLeftLocation(self
, *_args
, **_kwargs
): 
  94         val 
= apply(filesysc
.wxFileSystemHandler_GetLeftLocation
,(self
,) + _args
, _kwargs
) 
  96     def GetAnchor(self
, *_args
, **_kwargs
): 
  97         val 
= apply(filesysc
.wxFileSystemHandler_GetAnchor
,(self
,) + _args
, _kwargs
) 
  99     def GetRightLocation(self
, *_args
, **_kwargs
): 
 100         val 
= apply(filesysc
.wxFileSystemHandler_GetRightLocation
,(self
,) + _args
, _kwargs
) 
 102     def GetMimeTypeFromExt(self
, *_args
, **_kwargs
): 
 103         val 
= apply(filesysc
.wxFileSystemHandler_GetMimeTypeFromExt
,(self
,) + _args
, _kwargs
) 
 106         return "<C wxFileSystemHandler instance at %s>" % (self
.this
,) 
 107 class wxFileSystemHandler(wxFileSystemHandlerPtr
): 
 108     def __init__(self
,*_args
,**_kwargs
): 
 109         self
.this 
= apply(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 
= apply(filesysc
.wxFileSystem_ChangePathTo
,(self
,) + _args
, _kwargs
) 
 123     def GetPath(self
, *_args
, **_kwargs
): 
 124         val 
= apply(filesysc
.wxFileSystem_GetPath
,(self
,) + _args
, _kwargs
) 
 126     def OpenFile(self
, *_args
, **_kwargs
): 
 127         val 
= apply(filesysc
.wxFileSystem_OpenFile
,(self
,) + _args
, _kwargs
) 
 129     def FindFirst(self
, *_args
, **_kwargs
): 
 130         val 
= apply(filesysc
.wxFileSystem_FindFirst
,(self
,) + _args
, _kwargs
) 
 132     def FindNext(self
, *_args
, **_kwargs
): 
 133         val 
= apply(filesysc
.wxFileSystem_FindNext
,(self
,) + _args
, _kwargs
) 
 136         return "<C wxFileSystem instance at %s>" % (self
.this
,) 
 137 class wxFileSystem(wxFileSystemPtr
): 
 138     def __init__(self
,*_args
,**_kwargs
): 
 139         self
.this 
= apply(filesysc
.new_wxFileSystem
,_args
,_kwargs
) 
 145 class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr
): 
 146     def __init__(self
,this
): 
 149     def CanOpen(self
, *_args
, **_kwargs
): 
 150         val 
= apply(filesysc
.wxInternetFSHandler_CanOpen
,(self
,) + _args
, _kwargs
) 
 152     def OpenFile(self
, *_args
, **_kwargs
): 
 153         val 
= apply(filesysc
.wxInternetFSHandler_OpenFile
,(self
,) + _args
, _kwargs
) 
 156         return "<C wxInternetFSHandler instance at %s>" % (self
.this
,) 
 157 class wxInternetFSHandler(wxInternetFSHandlerPtr
): 
 158     def __init__(self
,*_args
,**_kwargs
): 
 159         self
.this 
= apply(filesysc
.new_wxInternetFSHandler
,_args
,_kwargs
) 
 165 class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr
): 
 166     def __init__(self
,this
): 
 169     def CanOpen(self
, *_args
, **_kwargs
): 
 170         val 
= apply(filesysc
.wxZipFSHandler_CanOpen
,(self
,) + _args
, _kwargs
) 
 172     def OpenFile(self
, *_args
, **_kwargs
): 
 173         val 
= apply(filesysc
.wxZipFSHandler_OpenFile
,(self
,) + _args
, _kwargs
) 
 175     def FindFirst(self
, *_args
, **_kwargs
): 
 176         val 
= apply(filesysc
.wxZipFSHandler_FindFirst
,(self
,) + _args
, _kwargs
) 
 178     def FindNext(self
, *_args
, **_kwargs
): 
 179         val 
= apply(filesysc
.wxZipFSHandler_FindNext
,(self
,) + _args
, _kwargs
) 
 182         return "<C wxZipFSHandler instance at %s>" % (self
.this
,) 
 183 class wxZipFSHandler(wxZipFSHandlerPtr
): 
 184     def __init__(self
,*_args
,**_kwargs
): 
 185         self
.this 
= apply(filesysc
.new_wxZipFSHandler
,_args
,_kwargs
) 
 191 class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr
): 
 192     def __init__(self
,this
): 
 195     def CanOpen(self
, *_args
, **_kwargs
): 
 196         val 
= apply(filesysc
.wxMemoryFSHandler_CanOpen
,(self
,) + _args
, _kwargs
) 
 198     def OpenFile(self
, *_args
, **_kwargs
): 
 199         val 
= apply(filesysc
.wxMemoryFSHandler_OpenFile
,(self
,) + _args
, _kwargs
) 
 201     def FindFirst(self
, *_args
, **_kwargs
): 
 202         val 
= apply(filesysc
.wxMemoryFSHandler_FindFirst
,(self
,) + _args
, _kwargs
) 
 204     def FindNext(self
, *_args
, **_kwargs
): 
 205         val 
= apply(filesysc
.wxMemoryFSHandler_FindNext
,(self
,) + _args
, _kwargs
) 
 208         return "<C wxMemoryFSHandler instance at %s>" % (self
.this
,) 
 209 class wxMemoryFSHandler(wxMemoryFSHandlerPtr
): 
 210     def __init__(self
,*_args
,**_kwargs
): 
 211         self
.this 
= apply(filesysc
.new_wxMemoryFSHandler
,_args
,_kwargs
) 
 219 #-------------- FUNCTION WRAPPERS ------------------ 
 221 __wxMemoryFSHandler_AddFile_wxImage 
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxImage
 
 223 __wxMemoryFSHandler_AddFile_wxBitmap 
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxBitmap
 
 225 __wxMemoryFSHandler_AddFile_Data 
= filesysc
.__wxMemoryFSHandler
_AddFile
_Data
 
 227 wxFileSystem_AddHandler 
= filesysc
.wxFileSystem_AddHandler
 
 229 wxFileSystem_CleanUpHandlers 
= filesysc
.wxFileSystem_CleanUpHandlers
 
 231 wxMemoryFSHandler_RemoveFile 
= filesysc
.wxMemoryFSHandler_RemoveFile
 
 235 #-------------- VARIABLE WRAPPERS ------------------