Process pending Tk events from GObject main loop?

S

Skip Montanaro

I know I have things bassackwards, but trying to process Gtk events
from Tkinter's main loop using after() isn't working. (I suspect our
underlying C++ (ab)use of Gtk may require a Gtk main loop). I'd like
to process Tk events periodically from a GObject main loop. I know I
want to call gobject.idle_add(), but can't find Tkinter equivalent to
gobject.MainLoop().get_context().iteration(). That is, how do you
process a single event (or all pending events)? It looks like
_tkinter.dooneevent() might be the right call to process a single
event, but how do I tell no more events are pending?

Thx,

Skip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top