]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_streams.i
Simplified and extended compiler detection for OS/2.
[wxWidgets.git] / wxPython / src / _streams.i
index d92f5eb225a4f30a86697efb926a98cd7bc631b4..5d89908a078659f2790135033e60a066b2ebb222 100644 (file)
@@ -54,7 +54,7 @@
     if ($1) {
         _ptr = new wxPyInputStream($1);
     }
-    $result = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true);
+    $result = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), $owner);
 }
 
 
@@ -68,8 +68,9 @@ enum wxSeekMode
 };
 
 
-
-%name(InputStream) class wxPyInputStream {
+%rename(InputStream) wxPyInputStream;
+class wxPyInputStream
+{
 public:
     %extend {
         wxPyInputStream(PyObject* p) {
@@ -80,7 +81,8 @@ public:
                 return NULL;
         }
     }
-
+    ~wxPyInputStream();
+    
     void close();
     void flush();
     bool eof();