represents a main event loop. A
is created with the glib.MainLoop()
constructor. After adding the initial event sources, the
method is called. This continuously checks for new events from each of the
event sources and dispatches them. Finally, the processing of an event from
one of the sources leads to a call to the
method to exit the main loop, and the
It is possible to create new instances of
recursively. This is often used in
when showing modal dialog boxes. Note that event sources are associated with
and will be checked and dispatched for all main loops associated with that
PyGTK contains wrappers of some of these
functions, e.g. the
|a new |
Creates a new
get_context() method returns the
that the mainloop was created with.
is_running() method checks to see
if the mainloop is currently being run via the
quit() method stops the mainloop
from running. Any subsequent calls to the
method will return immediately.
© manpagez.com 2000-2017 Individual documents may contain additional copyright information.