]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_streams.i
added OnSysColourChanged() (modified patch 1103439)
[wxWidgets.git] / wxPython / src / _streams.i
index 59ff7d7d4ae8795595b072385c85f1a2c5ac0bfc..5d89908a078659f2790135033e60a066b2ebb222 100644 (file)
 %typemap(in) wxInputStream*  (wxPyInputStream* temp, bool created) {
     if (wxPyConvertSwigPtr($input, (void **)&temp, wxT("wxPyInputStream"))) {
         $1 = temp->m_wxis;
-        created = False;
+        created = false;
     } else {
         PyErr_Clear();  // clear the failure of the wxPyConvert above
-        $1 = wxPyCBInputStream_create($input, False);
+        $1 = wxPyCBInputStream_create($input, false);
         if ($1 == NULL) {
             PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
             SWIG_fail;
         }
-        created = True;
+        created = true;
     }
 }
 %typemap(freearg) wxInputStream* {
@@ -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();