Is it possible to integrate tkinter
with glib mainloop
?
Asked
Active
Viewed 1,015 times
1 Answers
2
Here is one way of doing it:
app=TkinterApp()
def refreshApp():
app.update()
return True
gobject.idle_add(refreshApp)
loop = gobject.MainLoop()
loop.run()

jldupont
- 93,734
- 56
- 203
- 318
-
Do you mean [`tkinter.Tk`](https://docs.python.org/library/tkinter.html#tkinter.Tk) by `TkinterApp` ? – Андрей Беньковский Nov 20 '17 at 14:17