Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Startup / Initialize

Status
Not open for further replies.

cptk

Technical User
Mar 18, 2003
305
US
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.

HTH

ulis
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top