[pygtk] button queue

Mr Jason Cupp forrestcupp at yahoo.com
Mon Jul 31 22:11:56 WST 2006


I am pretty new to pygtk.  I wrote a program where there are several buttons that are connected to a method that plays different wav files using pymedia.  My problem is that if I keep pressing buttons while a wav is being played, it queues the events and just keeps playing audio files for the events that were racked up.  I want a button to only work when an audio file is not being played.  I tried making a method to disconnect all of the buttons when I don't want them to work, and another one to reconnect them, but for some reason that didn't work.  Is there a way to clear the event queue when I am ready to accept a button click?

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060731/7f9942d6/attachment.htm


More information about the pygtk mailing list