Jul-30-2020, 07:06 PM
(This post was last modified: Jul-30-2020, 07:11 PM by deanhystad.)
It would be a lot easier to help you if you wrapped you code in python tags
Quote:As for setting variable values, it would be helpful to know what you are trying to do. If you are trying to make a form for entering data, you may want to use tkinter variables and controls that display their value; such as Entry or Checkbutton, Scale, Listbox, etc... This kind of code has only one function callback to process the controls when an Accept button is pressed. If you are writing something with more interaction, you may need to provide a way to store state information. Instead of using a bunch of variables I suggest you read up on Python Classes. Classes are a great way to organize data and functions and work really well when used with GUI interfaces.[python]
# code goes here
[/python]