gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] write documents


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] write documents
Date: Wed, 27 Apr 2011 18:31:09 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Apr 25, 2011 at 10:14:53PM +0200, Hilbert, Sebastian wrote:

> > Given that it should be possible to create a small Python
> > application "print.py" like this:
> > 
> >     import os
> >     import os.path
> > 
> >     the_file = os.path.normpath(the_file)
> >     try:
> >             os.startfile(the_file, 'print')
> >     except AttributeError:
> >             print "not on Windows"
> > 
> > which supposedly would invoke the application Windows is
> > configured to print a certain file type with.
> > 
> > Please test this and report back. If that works I'll include
> > the above with GNUmed directly.
> 
> 
> It does open the associated application and tries to print the file. So this 
> is one way to do it.

Good to know. I added this method to GNUmed-next. Hence
we've now got two methods to print files (pipe into
os.startfile, pipe to gm-print_doc). If no preferred print
API is configured GNUmed will try both.

> Still looking into PrintFile since it can watch for files appearing in a 
> directory and print these.

Tell me when you know the details so I can add it.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]