Tkinter integration with glib mainloop

Is it possible to integrate tkinterwith glib mainloop?

+3
source share
1 answer

Here is one way to do this:

app=TkinterApp()

def refreshApp():
    app.update()
    return True

gobject.idle_add(refreshApp)
loop = gobject.MainLoop()
loop.run()
+2
source

Source: https://habr.com/ru/post/1746602/


All Articles