in reply to Re: refreshing a GUI
in thread refreshing a GUI

The Idea is not about where you store the Code. That could be in a module or an evaled sub or whereever. The Idea is how you *call* your code. You call your code by -command. That means the MainLoop calls it on your behalf through that ref. So your code runs *inside* the MainLoop. It does *not* enter the MainLoop again before it returns. That's the error.