, . .
1:
, , mainloop, loop = gobject.MainLoop(). , . D-Bus, .
2:
, D-Bus, , mainloop. dbus-python mainloop, mainloop - ( dbus-python, GLib).
3:
- , , D-Bus ( ).
:
, mainloop , . D-Bus , , D-Bus. mainloop. , , , . , mainloops, , "" , , , , , , (, GLib).
D-Bus dbus-python , mainloop, mainloop. mainloop - , mainloop , mainloop (, , D-Bus). , .
, , mainloop, , . , , , /, mainloop, , mainlop . , .
bus_loop, :
bus_loop = DBusGMainLoop(set_as_default=True)
... , dbus.mainloop.NativeMainLoop, mainloop dbus-python.
dbus-python GLL mainloop, . dbus-python GLL-mainloop - GLL mainloop, :
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
GLib, GLL-GLOBAL-ROOL , dbus-python . mainloop - , GLib. mainloop gobject, :
loop = gobject.MainLoop()
loop.run()
mainloop , . "" D-Bus dbus-python GObject gobject ( GLib).
, , , :
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
- , , mainloop, :
loop = gobject.MainLoop()
loop.run()
, - . , GLib , , .
, GLib GMainLoop GMainContext . , .