From: Schollnick, B. <Ben...@xe...> - 2004-11-10 13:49:30
|
Folks, I am attempting to do two things: 1) Access a virtual file system containing the contents of a ZIP file. This has been achieved, via using the VFS / ZipFS from skunkWeb. 2) Use a HTML Window component to view the HTML contents.... This is partially usable... But there is several major issues. The issues are: 1) [Minor] HTML Window is not frames enabled... 2) The following code works okay... self.directory, self.zip_filename =3D self.Choose_Zip_File ( ) self.directory =3D self.directory + os.sep print self.directory print self.zip_filename self.zipfile =3D zipfs.ZipFS ( self.directory + = self.zip_filename ) open =3D self.zipfile.open if self.zipfile.isfile ("default.htm"): tempfile =3D self.zipfile.open (r"default.htm")=20 text =3D "".join (tempfile.readlines () ) self.components.BookViewer.text =3D "".join = (tempfile.readlines()) But the HTML Window does not properly display the graphics, nor can it navigate the HTML file. Any links that are clicked are "broken"... =20 So I suspect the WX HTML viewer does not use the Python Open command... Since I re-assigned OPEN to the zipfile open routines... Any suggestions on working around this? I can deal with the lack of=20 frames.... But I really need to be able to view the graphics, and follow the links... - Benjamin |