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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top