문제

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