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!

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top