Christian Schwamborn <[email protected]> writes: > Am 23.02.2011 18:01, schrieb Simon Busch: > ... >>> Is there anyone out there, who might know, how to run the dbus in >>> python in it's own loop? ffphonelog looks like someone managed to >>> run dbus i/o without blocking the elementary gui, but I think it's >>> written in C/Vala?. >> >> You can integrate ecore's loop into the GLib mainloop. Have a look at >> >> EAPI Eina_Bool ecore_main_loop_glib_integrate(void) >> >> This should solve your problem and don't let you to use two different >> threads which are not necessary :) >> >> regards, >> Simon > > I stumbled across this, while browsing through the api docs some time > ago, but I couldn't figure out how to use it yet. Maybe I need to do > some further reading about the GLib mainloop first. > Thank you for this info, to direct me in the right direction.
You can check if asynchronous method calls described in [1] work as described in glib loop for you. If so then after calling ecore.main_loop_glib_integrate() asynchronous method calls should also work in ecore main loop (i.e., callbacks given to asynchronous method calls should get called when dbus reply arrives). [1] http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#making-asynchronous-method-calls > > Chris _______________________________________________ Shr-devel mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-devel
