質問

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