(Jul-16-2018, 09:06 AM)Larz60+ Wrote: You are trying (adjusted code, line 5 for example) to get amount before it exists.I used this code for another project and it worked without setting the values, like "amount.set('0')
move the definitions for the entry textvariables (lines 20, 21, 22) before you try to access.
You must also set the values to something valid before access, example:
amount = StringVar() amount.set('0')
[Tkinter] Getting Input from Tkinter Entry
Messages In This Thread |
Getting Input from Tkinter Entry - by juliabrushett - Jul-16-2018, 05:35 AM
RE: Getting Input from Tkinter Entry - by Larz60+ - Jul-16-2018, 09:06 AM
RE: Getting Input from Tkinter Entry - by reblark - Feb-12-2020, 11:33 PM
RE: Getting Input from Tkinter Entry - by Larz60+ - Feb-12-2020, 11:39 PM
RE: Getting Input from Tkinter Entry - by reblark - Feb-13-2020, 12:12 AM
RE: Getting Input from Tkinter Entry - by reblark - May-29-2020, 11:56 PM
RE: Getting Input from Tkinter Entry - by Larz60+ - May-30-2020, 03:29 PM
|
Users browsing this thread: 2 Guest(s)