Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: perl tk button on windows 8 touchpad is doesn't not animate if touchedby zentara (Archbishop) |
on May 08, 2014 at 13:44 UTC ( [id://1085469]=note: print w/replies, xml ) | Need Help?? |
.....long operation on db Hi, I would just mention that your Tk interface may become unresponsive during that long operation, since it will block the Tk event-loop. You may want to sprinkle some $mw->update; statements in your long db operation, if possible, to keep the eventloop active. For instance, what if you wanted a Cancel button to cancel the long db operation midstream? The Cancel button will not respond. There are ways around this, like using threads or forks to do the long db operation and set a threads shared variable when done. But that is getting way beyond what you probably want to do. See PerlTk on a thread... for an introduction. BTW, did $button->activate() in the -command callback give any animation? I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|