Python Forum
[Tkinter] Error in Tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Error in Tkinter
#4
We cannot really give you advice, because you don't show your full code.
In any case you can refactor your code, so that any calculations are performed after you enter your data (e.g. require user to click a button to perform calculations) or if you don't want to click a button you can handle the error and/or set default value for the Var/Entry (e.g. 1.0, value will depend on your business case) and/or use if to check z value before performing calculations
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