Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56680

Process pending Tk events from GObject main loop?

Date 2013-10-11 07:52 -0500
Subject Process pending Tk events from GObject main loop?
From Skip Montanaro <skipm@trdlnk.com>
Newsgroups comp.lang.python
Message-ID <mailman.1002.1381496349.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Process pending Tk events from GObject main loop? Skip Montanaro <skipm@trdlnk.com> - 2013-10-11 07:52 -0500
  Re: Process pending Tk events from GObject main loop? Christian Gollwitzer <auriocus@gmx.de> - 2013-10-11 21:58 +0200

csiph-web