]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/streams.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / src / mac / streams.py
index d2a8b1880078015ce9971899d46adfcc4708cd86..5104c86c7d30b6608d272d5a61b3c23b7e1d0975 100644 (file)
@@ -6,58 +6,58 @@ class wxInputStreamPtr :
         self.this = this
         self.thisown = 0
     def close(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_close,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_close(self, *_args, **_kwargs)
         return val
     def flush(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_flush,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_flush(self, *_args, **_kwargs)
         return val
     def eof(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_eof,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_eof(self, *_args, **_kwargs)
         return val
     def read(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_read,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_read(self, *_args, **_kwargs)
         return val
     def readline(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_readline,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_readline(self, *_args, **_kwargs)
         return val
     def readlines(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_readlines,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_readlines(self, *_args, **_kwargs)
         return val
     def seek(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_seek,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_seek(self, *_args, **_kwargs)
         return val
     def tell(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_tell,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_tell(self, *_args, **_kwargs)
         return val
     def Peek(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_Peek,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_Peek(self, *_args, **_kwargs)
         return val
     def GetC(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_GetC,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_GetC(self, *_args, **_kwargs)
         return val
     def LastRead(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_LastRead,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_LastRead(self, *_args, **_kwargs)
         return val
     def CanRead(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_CanRead,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_CanRead(self, *_args, **_kwargs)
         return val
     def Eof(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_Eof,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_Eof(self, *_args, **_kwargs)
         return val
     def Ungetch(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_Ungetch,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_Ungetch(self, *_args, **_kwargs)
         return val
     def SeekI(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_SeekI,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_SeekI(self, *_args, **_kwargs)
         return val
     def TellI(self, *_args, **_kwargs):
-        val = apply(streamsc.wxInputStream_TellI,(self,) + _args, _kwargs)
+        val = streamsc.wxInputStream_TellI(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxInputStream instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxInputStream(wxInputStreamPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(streamsc.new_wxInputStream,_args,_kwargs)
+        self.this = streamsc.new_wxInputStream(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -68,10 +68,10 @@ class wxOutputStreamPtr :
         self.this = this
         self.thisown = 0
     def write(self, *_args, **_kwargs):
-        val = apply(streamsc.wxOutputStream_write,(self,) + _args, _kwargs)
+        val = streamsc.wxOutputStream_write(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxOutputStream instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxOutputStream(wxOutputStreamPtr):
     def __init__(self,this):
         self.this = this