On 12/28/2019 5:52 AM, L A Smit wrote:
Hi
Don't know if this is the correct subject but i want a program like an
invoice, You make an invoice and save it and the next one is ready to
use. I am completely new to programming and want this program for myself.
I want to use python to do it. Have already build the program but don't
know how to put it in usable format. I hope you understand what i mean.
Ex: Input.
Quote Nr:
Client:
Product:
Then there will be costs and in the end a cost per product.
In the end a save button to save quote with input from line 1 and 2.
Then the template is ready for next input.
Start with the simplest thing that works, which would be something like:
quotenum = input('Quote Nr: ')
client = input('Client: ')
...
invoice = f"""\
Quote Nr: {quotenum}
Client: {client}
...
"""
with open('quotenum'+'client', mode='w') as f:
f.write(invoice)
Then do something fancier if you want.
1. GUI form with tkinter.
2. Generate input statements or GUI form from the invoice template string.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list