]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_streams.i
Make IsSelected be a bit more specific
[wxWidgets.git] / wxPython / src / _streams.i
index ed762b075e25fde0dce30f7d065cf690f937e289..5d89908a078659f2790135033e60a066b2ebb222 100644 (file)
@@ -54,7 +54,7 @@
     if ($1) {
         _ptr = new wxPyInputStream($1);
     }
     if ($1) {
         _ptr = new wxPyInputStream($1);
     }
-    $result = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true);
+    $result = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), $owner);
 }
 
 
 }
 
 
@@ -68,7 +68,9 @@ enum wxSeekMode
 };
 
 
 };
 
 
-%name(InputStream) class wxPyInputStream {
+%rename(InputStream) wxPyInputStream;
+class wxPyInputStream
+{
 public:
     %extend {
         wxPyInputStream(PyObject* p) {
 public:
     %extend {
         wxPyInputStream(PyObject* p) {
@@ -79,7 +81,8 @@ public:
                 return NULL;
         }
     }
                 return NULL;
         }
     }
-
+    ~wxPyInputStream();
+    
     void close();
     void flush();
     bool eof();
     void close();
     void flush();
     bool eof();