What's the best method for executing a proc to run one time at startup -- e.g. -- setting default states of widgets, reading settings from an external source, etc.? If it's using the bind, what's the best way?
In fact Tk executes your script first, then enters an events loop.
It's during a second step that you can interact with your widgets and activate the callbacks you binded in the first step.
So you define widgets, set callback scripts, set startup values in your 'initial' script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.