Simplest mainloop that could possibly work
simon.mcvittie at collabora.co.uk
Wed Oct 31 05:32:32 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
On Tue, 30 Oct 2007 at 15:13:17 -0400, Havoc Pennington wrote:
> > So, it looks like I have to bite the bullet and write a non-toy
> > mainloop. I'm having a lot of trouble grokking the Watch/Timeout stuff,
> > though, and I haven't had much luck finding useful example code.
> Some example code you could use is:
> - GLib bindings / main loop
> - Qt bindings / main loop
> - the main loop used by the bus daemon (which is in
libavahi-common also has a quite nice (and small) main loop abstraction
with D-Bus integration; implementations of the abstraction include
"simple" (its own tiny select loop), GLib and Qt.
When dbus-python eventually gets pure-Python main loop support, its API will
probably be heavily inspired by libavahi-common.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
-----END PGP SIGNATURE-----
More information about the dbus