def repaint():
'''Easy function to clean up the event queue and force a repaint.'''
# I've been unable to find any other way to repaint the interface. :-(
while Gtk.events_pending():
# Blocking: True/false
Gtk.main_iteration_do(False)
评论列表
文章目录