March 6th, 2005, 02:12 PM
If you're using a *nix like system then you could use the Python program to lay out the text and then pipe the output to the printer. This isn't a very a very Pythonic or portable solution but it is by far the easiest way I can think of
The only other way I can think of would be to use Mark Hammonds Win32 extensions – assuming that Windows has an API for accessing the printer
. It may also be possible to use the PySerial module to talk to the printer.
But I've never actually seen this done.
Hope this is of some help,
programming language development: www.netytan.com – Hula