Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Created April 26, 2009 14:20
Show Gist options
  • Save danlucraft/102048 to your computer and use it in GitHub Desktop.
Save danlucraft/102048 to your computer and use it in GitHub Desktop.
# make dialog respond
dialog.response(dialog.get_response(button))
# run events forward til non left
Gtk.main_iteration while Gtk.events_pending?
# check non are left
p Gtk.events_pending?
#=> false (good)
# wait a minute
sleep 0.3
# check there are still no events.
p Gtk.events_pending?
#=> true (what?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment