Openings and External file (pdf, doc files).

So I have a “Help” option on my menu bar.

And with that I want it to open a PDF or .DOC file, to open a Manual for the program I’m making.

I’ve had a search and all I’ve found is some File browsers. But it’s not exactly what I need.

Cheers.

I would strong urge you not to make any help file a .doc as it is a
proprietary format that relies on the user having a copy of
Microsoft Word, (often of a specific version or narrow range of
versions), which itself limits the operating systems that your code
can run on. Not a good match with an Open Source, Free, Cross
Platform library. If you NEED your manual to be fixed layout and
read only then pdf as there are viewers for most platforms but
personally I would always prefer manuals to be in .html format,
(avoiding Internet Explorer specific features), as this can be read
on just about any modern platform.

···

On 27/02/13 02:50, Sion Jones wrote:

So I have a “Help” option on my menu bar.
And with that I want it to open a PDF or .DOC file, to open a
Manual for the program I’m making.

    I've had a search and all I've found is some File browsers.

But it’s not exactly what I need.

Cheers.

  You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to .
For more options, visit .


Steve Gadget Barnes

wxpython-users+unsubscribe@googlegroups.com
https://groups.google.com/groups/opt_out

I use:

to open files (pdf, images or web pages/urls) in an external program.

desktop.open(yoururl or fullpath)

As Steve mentioned don't use .doc for a manual. I would suggest to use reST and Sphinx for that and generate at least PDF and HTML from it, or for windoes it even allows to generate 'htmlhelp'.

http://sphinx-doc.org/index.html

Werner

···

On 27/02/2013 03:50, Sion Jones wrote:

So I have a "Help" option on my menu bar.
And with that I want it to open a PDF or .DOC file, to open a Manual for the program I'm making.

I've had a search and all I've found is some File browsers. But it's not exactly what I need.

Cheers for answers guys. For this it doesn’t really matter what form the manual comes in. It’s for a university project, so it won’t go out publicly.

It’s just for show really! I’d rather open it in a PDF format than HTML. How would I set up the desktop function as you mentioned first?

It seems that you can only download it as a .tar format.

···

On Wednesday, February 27, 2013 7:18:29 AM UTC, werner wrote:

On 27/02/2013 03:50, Sion Jones wrote:

So I have a “Help” option on my menu bar.

And with that I want it to open a PDF or .DOC file, to open a Manual
for the program I’m making.

I’ve had a search and all I’ve found is some File browsers. But it’s
not exactly what I need.

I use:

https://pypi.python.org/pypi/desktop

to open files (pdf, images or web pages/urls) in an external program.

desktop.open(yoururl or fullpath)

As Steve mentioned don’t use .doc for a manual. I would suggest to use
reST and Sphinx for that and generate at least PDF and HTML from it, or
for windoes it even allows to generate ‘htmlhelp’.

http://sphinx-doc.org/index.html

Werner

The demo will be shown on a Windows platform. So again it doesn’t matter for the OS etc.

···

On Wednesday, February 27, 2013 7:18:29 AM UTC, werner wrote:

On 27/02/2013 03:50, Sion Jones wrote:

So I have a “Help” option on my menu bar.

And with that I want it to open a PDF or .DOC file, to open a Manual
for the program I’m making.

I’ve had a search and all I’ve found is some File browsers. But it’s
not exactly what I need.

I use:

https://pypi.python.org/pypi/desktop

to open files (pdf, images or web pages/urls) in an external program.

desktop.open(yoururl or fullpath)

As Steve mentioned don’t use .doc for a manual. I would suggest to use
reST and Sphinx for that and generate at least PDF and HTML from it, or
for windoes it even allows to generate ‘htmlhelp’.

http://sphinx-doc.org/index.html

Werner

Hi,

···

On Wed, Feb 27, 2013 at 9:25 AM, Sion Jones chudboy55@gmail.com wrote:

The demo will be shown on a Windows platform. So again it doesn’t matter for the OS etc.

If its just Windows then I would suggest to just use startfile.

import os

os.startfile(path_to_my_document);

Cody

Found another way for it just to open the PDF file. Which is -

import os
os.startfile(filepath)

just opens up the PDF file that I made earlier.

Cheers

···

On Wednesday, February 27, 2013 7:18:29 AM UTC, werner wrote:

On 27/02/2013 03:50, Sion Jones wrote:

So I have a “Help” option on my menu bar.

And with that I want it to open a PDF or .DOC file, to open a Manual
for the program I’m making.

I’ve had a search and all I’ve found is some File browsers. But it’s
not exactly what I need.

I use:

https://pypi.python.org/pypi/desktop

to open files (pdf, images or web pages/urls) in an external program.

desktop.open(yoururl or fullpath)

As Steve mentioned don’t use .doc for a manual. I would suggest to use
reST and Sphinx for that and generate at least PDF and HTML from it, or
for windoes it even allows to generate ‘htmlhelp’.

http://sphinx-doc.org/index.html

Werner

Hey I missed this suggestion. But found the exact same one in another thread.

Could of been you who suggested it, so thanks!

···

On Wednesday, February 27, 2013 3:33:13 PM UTC, Cody Precord wrote:

Hi,

On Wed, Feb 27, 2013 at 9:25 AM, Sion Jones chud...@gmail.com wrote:

The demo will be shown on a Windows platform. So again it doesn’t matter for the OS etc.

If its just Windows then I would suggest to just use startfile.

import os

os.startfile(path_to_my_document);

Cody