X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..1721a8c028d3b6a553634c632117fbfac102a30e:/wxPython/src/_streams.i diff --git a/wxPython/src/_streams.i b/wxPython/src/_streams.i index d92f5eb225..5d89908a07 100644 --- a/wxPython/src/_streams.i +++ b/wxPython/src/_streams.i @@ -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();