laziness, impatience, and hubris | |
PerlMonks |
Busy Windows Using Gtk2by aecooper (Acolyte) |
on Jan 25, 2008 at 10:44 UTC ( [id://664263]=perlquestion: print w/replies, xml ) | Need Help?? |
aecooper has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I'm writing a GTK2 Perl application and I am trying to write a routine that will make a window busy, i.e. display the busy cursor and stop all input events (keyboard and mouse clicks, but not move movement) from going to the window). This is using Perl version 5.8.5 on WhiteBox 4 respin 1 (clone of RHAS4U3). I include the following: I use the following routine to update the display when inside a callback that is busy doing some processing: and the following to make a window busy/unbusy: This sort of works. However if the mouse cursor is moved to a widget whilst the window is busy, then the window is made unbusy, the user has to move the cursor away from the widget and then back again before it will respond to a button click (I suspect because the movement was lost along with everything else). I have tried to interrupt the flow of events by writing my own main event loop but that didn't work very well. I'm sure there is an easy answer as it is a common thing to want to do but I can't find anything on this. Any ideas? MTIA, Tony.
Back to
Seekers of Perl Wisdom
|
|