开发者

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()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜