1. Save this userinput to a database file. I figured out that I will need to use
file = open('/tmp/agatest', 'r+')
or something similar for this task.2. Allow the user to sort the entries in this database.
3. Allow the user to run basic statistics or math based operations on the data.
The main problem I'm having is I cannot grok easyGUI, in specific I've figured out how to take the strings and print them to the python console, but I don't have a clue how to capture the strings and integers and store them in the database. And the easyGUI documentation either is not very well written or just doesn't explain itself well.
I'm using multienterbox.
from easygui import *
msgbox(msg="", ok_button="OK")
msgbox("")
msg = ""
title = ""
fieldNames = ["Product Name", "Price ","Product Name","Price","Product Name","Price","Product Name", "Price ","Product Name","Price","Product Name","Price"]
fieldValues = [] # we start with blanks for the values
fieldValues = multenterbox(msg,title, fieldNames)
print fieldValues
This is the basic interface code. It loads a basic interface. A user can enter strings into the interface. It then captures and prints them to the screen. But if I want to capture these strings and integers into an object to be stored into a database, how would I do that?

New Topic/Question
Reply



MultiQuote







|