[Tutor] Old popen turned in subprocess...[SOLVED]
Alan Gauld
alan.gauld at btinternet.com
Wed Feb 18 01:39:35 CET 2015
On 18/02/15 00:23, Ken G. wrote:
> I wish to thanks Danny Yoo and Alan Gauld
> for providing information on using the new
> subprocess in printing on paper,
Glad to help.
> I got my desired output printed.
>
> Not looking forward to updating my old programs.
If it's a common function in your code why not
create a module with a function. Then you can simply
import it and call the function.
import lprinter
lprinter_init()
...
lprint('some text here')
or similar?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list