Dictionary help

S

Steve

I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a and
the definition is a list of parts that make up the component. My problem
is I need to list out several components, but not all, and there
associated parts to a printer. Not having any luck. I can list them to
the screen but not the printer. Any help/ideas would be appreciated.

Steve
 
L

Larry Bates

Steve said:
I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a and
the definition is a list of parts that make up the component. My problem
is I need to list out several components, but not all, and there
associated parts to a printer. Not having any luck. I can list them to
the screen but not the printer. Any help/ideas would be appreciated.

Steve

Windows or Linux or Mac. Printers are handled differently on different
platforms. On Windows you can simply open LPT1, LPT2 or LPT3 as a file and
write to it (for simple printing). For more complex "Windows" printing you must
use Win32 extensions or something like wxWindows.

-Larry
 
S

Steve

Windows or Linux or Mac. Printers are handled differently on different
platforms. On Windows you can simply open LPT1, LPT2 or LPT3 as a file
and write to it (for simple printing). For more complex "Windows"
printing you must use Win32 extensions or something like wxWindows.

-Larry

I'm currently using Linux. I give it some more thought and research and
see what I can come up with. Thank you for the reply.

Steve
 
W

wes weston

Steve said:
I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a and
the definition is a list of parts that make up the component. My problem
is I need to list out several components, but not all, and there
associated parts to a printer. Not having any luck. I can list them to
the screen but not the printer. Any help/ideas would be appreciated.

Steve

You can do os.system("<some printing command; lp fn.txt, etc.>") after
putting your stuf in a file.
 
S

Steve

You can do os.system("<some printing command; lp fn.txt, etc.>") after
putting your stuf in a file.

Thank you for the reply. I finally got it printing in Linux.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,501
Latest member
Ledmyplace

Latest Threads

Top