question about wxpython file viewer

Hi, All:
      In python, there are some modules which can manipulate pdf
files and open pdf file in wxpython widgets. And I wonder are there
similar modules or packages which can manipulate and view other format
files such as Djvu, epub, ?
      Thanks!

Not to my knowledge. I would just use os.startfile() or subprocess to open the files with the native program. For PDFs, wxPython has an activex wrapper (or it might be ctypes now) around Adobe Reader for viewing the PDF. I don’t even know if that works on anything other than Windows though.

···

On Sun, Jan 23, 2011 at 4:25 PM, zhengqing zhengqinggan@gmail.com wrote:

Hi, All:

  In python, there are  some modules which can manipulate pdf

files and open pdf file in wxpython widgets. And I wonder are there

similar modules or packages which can manipulate and view other format

files such as Djvu, epub, ?

  Thanks!

Mike Driscoll

Blog: http://blog.pythonlibrary.org

Hi, All:

  In python, there are  some modules which can manipulate pdf

files and open pdf file in wxpython widgets. And I wonder are there

similar modules or packages which can manipulate and view other format

files such as Djvu, epub, ?

  Thanks!

The ePub format is basically a Zip file (that’s been renamed to .epub instead of .zip - nothing more fancy than that); inside, there are two or three folders containing HTML files, plus a couple of XML property files. It shouldn’t be terribly hard to write a module to manipulate them…

… and as soon as I wrote that, I Googled it. Take a look at the “epub-tools” page:
https://code.google.com/p/epub-tools/
It’s not nearly as generic and full-featured as I hoped - the “epub-tools” just convert to and from a few other formats - but it might be something to play with.

And then I found this:
http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/section5.html

···

On Sun, Jan 23, 2011 at 2:25 PM, zhengqing zhengqinggan@gmail.com wrote:

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en


www.fsrtechnologies.com