问题
Is it possible to integrate tkinter
with glib mainloop
?
回答1:
Here is one way of doing it:
app=TkinterApp()
def refreshApp():
app.update()
return True
gobject.idle_add(refreshApp)
loop = gobject.MainLoop()
loop.run()
来源:https://stackoverflow.com/questions/2884528/tkinter-integration-with-glib-mainloop