Jan-22-2020, 07:29 PM
really, I this is the last answer I post in this thread, sorry...
why do you remove the line
why do you remove the line
conn.commit()
which I explicitly stated that I have indented?def submit(): payload = (name_text.get(), Monthly_Income_text.get(), Monthly_Budget.get(), Monthly_Expenses.get()) c.execute("INSERT INTO expenses VALUES (?, ?, ?, ?)", payload) c.commit() for row in c.execute('SELECT * FROM expenses'): print(row)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs