dasbus.loop module

class AbstractEventLoop[source]

Bases: object

The abstract representation of the event loop.

It is necessary to run the event loop to handle emitted DBus signals or incoming DBus calls (in the DBus service).

Example:

# Create the event loop.
loop = EventLoop()

# Start the event loop.
loop.run()

# Run loop.quit() to stop.
abstract quit()[source]

Stop the event loop.

abstract run()[source]

Start the event loop.

class EventLoop[source]

Bases: AbstractEventLoop

The representation of the event loop.

quit()[source]

Stop the event loop.

run()[source]

Start the event loop.