tkinter integration with glib mainloop
Is it possible to integrate tkinter with glib mainloop开发者_Go百科 ?
Here is one way of doing it:
app=TkinterApp()
def refreshApp():
app.update()
return True
gobject.idle_add(refreshApp)
loop = gobject.MainLoop()
loop.run()
加载中,请稍侯......
精彩评论