You have a lot of options:
GUI: Any major gui toolkit will do the job. It's probobly easiest to
stick with tkinter.
HTML Template: Use a template language, e.g. mako or django templates
Pdf Templates: Reportlab is an option.
File Access: Of course you could just open a file and write to it, but
it probably gets messy. I would recommend using a database. Sqlite is
maybe a good choice, or sqlalchemy.
- Patrick
On 2011-02-14 20:55, Mitch Seymour wrote:
Hello,
I am trying to design a program and GUI that will allow the user to
select from a series of options and, depending on which options are
selected in the GUI, information will then be placed in a html or pdf
template.
Here's an example.
Option A
Option B
Option C
If Option A, insert _____ into the template.
If Option B, insert _____ into the template.
If Option C, insert _____ into the template.
The reason I used ______ is because the user needs to be able to edit,
from the GUI, which information is associated with each option, and,
subsequently, which information will be placed into the template.
However, I am very new to python and I don't how to do this. A friend
suggested that I create a python file that would store the user defined
information, which would be read by the program before the information
is placed into the template. So the user could select the options from
the GUI, edit the associated information from a preferences tab, and
then initiate the process of placing the info into the templates.
My question is, how would you do this and, if I do create a file to
store the information, could you please give me some examples of code to
get me started?
Thanks so much!
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor