Python Forum
[Tkinter] Error in Tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Error in Tkinter
#2
Don't use eval, unless you know what you are doing. It's considered security risk as user can enter malicious code.
If you want them to be float, why do you use StringVar and not DoubleVar? DoubleVar will return float.

And what version of python do you use. If I am not mistaken and based on the error you get I think it's python2. It's recommend to move to python3, because python2 support ends 1.1.2020
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

Reply


Messages In This Thread
Error in Tkinter - by moste - Apr-11-2019, 06:38 AM
RE: Error in Tkinter - by buran - Apr-11-2019, 06:58 AM
RE: Error in Tkinter - by moste - Apr-11-2019, 07:07 AM
RE: Error in Tkinter - by buran - Apr-11-2019, 09:06 AM
RE: Error in Tkinter - by moste - Apr-11-2019, 09:13 AM
RE: Error in Tkinter - by buran - Apr-11-2019, 09:26 AM
RE: Error in Tkinter - by moste - Apr-11-2019, 09:37 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020