Question

I have some widgets, checkboxes actually. And I have variables that contains their value. I have shared this variables and called a sub with creating new thread. Variables change into this sub but look of widgets stays unchanged. So that is the question: how colud I redraw widgets or update their look somehow... or how could I rebuild my programm so they will update automatically or something. Thank you!

Was it helpful?

Solution

Using threads and Tk is not easy. See Perl Tk and Threads on PerlMonks for tips and tricks.

Do you really need threads? Using Tk::after or $widget->update you can usually update widgets to changing values.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top