开发者

tkinter integration with glib mainloop

开发者 https://www.devze.com 2022-12-30 23:59 出处:网络
Is it possible to integrate tkinter with glib mainloop开发者_Go百科 ?Here is one way of doing it:

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

精彩评论

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