X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7108497a54ee5de03bcea8de85e2750116c223e6..0c8392cac2d36d0d211432e71d3b24d3d93c22db:/wxPython/src/mac/filesys.py diff --git a/wxPython/src/mac/filesys.py b/wxPython/src/mac/filesys.py index 8950e6059b..27c1665beb 100644 --- a/wxPython/src/mac/filesys.py +++ b/wxPython/src/mac/filesys.py @@ -30,26 +30,26 @@ class wxFSFilePtr(wxObjectPtr): self.this = this self.thisown = 0 def GetStream(self, *_args, **_kwargs): - val = apply(filesysc.wxFSFile_GetStream,(self,) + _args, _kwargs) + val = filesysc.wxFSFile_GetStream(self, *_args, **_kwargs) return val def GetMimeType(self, *_args, **_kwargs): - val = apply(filesysc.wxFSFile_GetMimeType,(self,) + _args, _kwargs) + val = filesysc.wxFSFile_GetMimeType(self, *_args, **_kwargs) return val def GetLocation(self, *_args, **_kwargs): - val = apply(filesysc.wxFSFile_GetLocation,(self,) + _args, _kwargs) + val = filesysc.wxFSFile_GetLocation(self, *_args, **_kwargs) return val def GetAnchor(self, *_args, **_kwargs): - val = apply(filesysc.wxFSFile_GetAnchor,(self,) + _args, _kwargs) + val = filesysc.wxFSFile_GetAnchor(self, *_args, **_kwargs) return val def GetModificationTime(self, *_args, **_kwargs): - val = apply(filesysc.wxFSFile_GetModificationTime,(self,) + _args, _kwargs) + val = filesysc.wxFSFile_GetModificationTime(self, *_args, **_kwargs) if val: val = wxDateTimePtr(val) ; val.thisown = 1 return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFSFile(wxFSFilePtr): def __init__(self,*_args,**_kwargs): - self.this = apply(filesysc.new_wxFSFile,_args,_kwargs) + self.this = filesysc.new_wxFSFile(*_args,**_kwargs) self.thisown = 1 @@ -60,7 +60,7 @@ class wxCPPFileSystemHandlerPtr(wxObjectPtr): self.this = this self.thisown = 0 def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxCPPFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr): def __init__(self,this): self.this = this @@ -73,40 +73,40 @@ class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr): self.this = this self.thisown = 0 def _setCallbackInfo(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler__setCallbackInfo,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler__setCallbackInfo(self, *_args, **_kwargs) return val def CanOpen(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_CanOpen,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_CanOpen(self, *_args, **_kwargs) return val def OpenFile(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_OpenFile,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_OpenFile(self, *_args, **_kwargs) return val def FindFirst(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_FindFirst,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_FindFirst(self, *_args, **_kwargs) return val def FindNext(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_FindNext,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_FindNext(self, *_args, **_kwargs) return val def GetProtocol(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_GetProtocol,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_GetProtocol(self, *_args, **_kwargs) return val def GetLeftLocation(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_GetLeftLocation,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_GetLeftLocation(self, *_args, **_kwargs) return val def GetAnchor(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_GetAnchor,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_GetAnchor(self, *_args, **_kwargs) return val def GetRightLocation(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_GetRightLocation,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_GetRightLocation(self, *_args, **_kwargs) return val def GetMimeTypeFromExt(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystemHandler_GetMimeTypeFromExt,(self,) + _args, _kwargs) + val = filesysc.wxFileSystemHandler_GetMimeTypeFromExt(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFileSystemHandler(wxFileSystemHandlerPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(filesysc.new_wxFileSystemHandler,_args,_kwargs) + self.this = filesysc.new_wxFileSystemHandler(*_args,**_kwargs) self.thisown = 1 self._setCallbackInfo(self, wxFileSystemHandler) @@ -118,25 +118,25 @@ class wxFileSystemPtr(wxObjectPtr): self.this = this self.thisown = 0 def ChangePathTo(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystem_ChangePathTo,(self,) + _args, _kwargs) + val = filesysc.wxFileSystem_ChangePathTo(self, *_args, **_kwargs) return val def GetPath(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystem_GetPath,(self,) + _args, _kwargs) + val = filesysc.wxFileSystem_GetPath(self, *_args, **_kwargs) return val def OpenFile(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystem_OpenFile,(self,) + _args, _kwargs) + val = filesysc.wxFileSystem_OpenFile(self, *_args, **_kwargs) return val def FindFirst(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystem_FindFirst,(self,) + _args, _kwargs) + val = filesysc.wxFileSystem_FindFirst(self, *_args, **_kwargs) return val def FindNext(self, *_args, **_kwargs): - val = apply(filesysc.wxFileSystem_FindNext,(self,) + _args, _kwargs) + val = filesysc.wxFileSystem_FindNext(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFileSystem(wxFileSystemPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(filesysc.new_wxFileSystem,_args,_kwargs) + self.this = filesysc.new_wxFileSystem(*_args,**_kwargs) self.thisown = 1 @@ -147,16 +147,16 @@ class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr): self.this = this self.thisown = 0 def CanOpen(self, *_args, **_kwargs): - val = apply(filesysc.wxInternetFSHandler_CanOpen,(self,) + _args, _kwargs) + val = filesysc.wxInternetFSHandler_CanOpen(self, *_args, **_kwargs) return val def OpenFile(self, *_args, **_kwargs): - val = apply(filesysc.wxInternetFSHandler_OpenFile,(self,) + _args, _kwargs) + val = filesysc.wxInternetFSHandler_OpenFile(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxInternetFSHandler(wxInternetFSHandlerPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(filesysc.new_wxInternetFSHandler,_args,_kwargs) + self.this = filesysc.new_wxInternetFSHandler(*_args,**_kwargs) self.thisown = 1 @@ -167,22 +167,22 @@ class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr): self.this = this self.thisown = 0 def CanOpen(self, *_args, **_kwargs): - val = apply(filesysc.wxZipFSHandler_CanOpen,(self,) + _args, _kwargs) + val = filesysc.wxZipFSHandler_CanOpen(self, *_args, **_kwargs) return val def OpenFile(self, *_args, **_kwargs): - val = apply(filesysc.wxZipFSHandler_OpenFile,(self,) + _args, _kwargs) + val = filesysc.wxZipFSHandler_OpenFile(self, *_args, **_kwargs) return val def FindFirst(self, *_args, **_kwargs): - val = apply(filesysc.wxZipFSHandler_FindFirst,(self,) + _args, _kwargs) + val = filesysc.wxZipFSHandler_FindFirst(self, *_args, **_kwargs) return val def FindNext(self, *_args, **_kwargs): - val = apply(filesysc.wxZipFSHandler_FindNext,(self,) + _args, _kwargs) + val = filesysc.wxZipFSHandler_FindNext(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxZipFSHandler(wxZipFSHandlerPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(filesysc.new_wxZipFSHandler,_args,_kwargs) + self.this = filesysc.new_wxZipFSHandler(*_args,**_kwargs) self.thisown = 1 @@ -193,22 +193,22 @@ class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr): self.this = this self.thisown = 0 def CanOpen(self, *_args, **_kwargs): - val = apply(filesysc.wxMemoryFSHandler_CanOpen,(self,) + _args, _kwargs) + val = filesysc.wxMemoryFSHandler_CanOpen(self, *_args, **_kwargs) return val def OpenFile(self, *_args, **_kwargs): - val = apply(filesysc.wxMemoryFSHandler_OpenFile,(self,) + _args, _kwargs) + val = filesysc.wxMemoryFSHandler_OpenFile(self, *_args, **_kwargs) return val def FindFirst(self, *_args, **_kwargs): - val = apply(filesysc.wxMemoryFSHandler_FindFirst,(self,) + _args, _kwargs) + val = filesysc.wxMemoryFSHandler_FindFirst(self, *_args, **_kwargs) return val def FindNext(self, *_args, **_kwargs): - val = apply(filesysc.wxMemoryFSHandler_FindNext,(self,) + _args, _kwargs) + val = filesysc.wxMemoryFSHandler_FindNext(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxMemoryFSHandler(wxMemoryFSHandlerPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(filesysc.new_wxMemoryFSHandler,_args,_kwargs) + self.this = filesysc.new_wxMemoryFSHandler(*_args,**_kwargs) self.thisown = 1 @@ -218,6 +218,8 @@ class wxMemoryFSHandler(wxMemoryFSHandlerPtr): #-------------- FUNCTION WRAPPERS ------------------ +wxFileSystem_URLToFileName = filesysc.wxFileSystem_URLToFileName + __wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage __wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap @@ -228,6 +230,8 @@ wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers +wxFileSystem_FileNameToURL = filesysc.wxFileSystem_FileNameToURL + wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile