views:

32

answers:

1

Is it possible to integrate tkinter with glib mainloop ?

+1  A: 

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