At the end of this, zfile doesn't contain a wxFSFile object like I would
expect. Instead, it has a generic wxObject. I get the same thing for
OpenFile('somefile.zip'). The file system can find the file, because
fs.FindFirst returns the proper filename.
Where's my mistake? This is great stuff, but sometimes it's a little
difficult figuring out how to use it in Python from the C++
documentation.
At the end of this, zfile doesn't contain a wxFSFile object like I would
expect. Instead, it has a generic wxObject.
wxFSFile doesn't have the wx type identification stuff set for it, which is
what wxPython's OOR code uses to figure out what kind of Python object to
create. I'll fix it for the next release.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
In the meantime, does this mean that I need to find alternate means?
Without the identification, the object that is returned doesn't have the
GetStream method.
Thanks,
-scott
Robin Dunn wrote:
···
>
> zfile = fs.OpenFile('somefile.zip#zip:foo.txt')
>
> At the end of this, zfile doesn't contain a wxFSFile object like I would
> expect. Instead, it has a generic wxObject.
wxFSFile doesn't have the wx type identification stuff set for it, which is
what wxPython's OOR code uses to figure out what kind of Python object to
create. I'll fix it for the next release.
In the meantime, does this mean that I need to find alternate means?
Without the identification, the object that is returned doesn't have the
GetStream method.
wxPyTypeCast should work. (See wx.py and the archive for this list for
notes about it.)
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!