doc/tutorial.txt.in: Add copyright and license (GPL2/AFL2.1, like the code)
[dbus-python-phuang.git] / dbus / mainloop / __init__.py
blob95770dcceec9e9bb767e71339a7ec204e7777bae
1 """Base definitions, etc. for main loop integration.
3 """
5 import _dbus_bindings
7 NativeMainLoop = _dbus_bindings.NativeMainLoop
9 NULL_MAIN_LOOP = _dbus_bindings.NULL_MAIN_LOOP
10 """A null mainloop which doesn't actually do anything.
12 For advanced users who want to dispatch events by hand. This is almost
13 certainly a bad idea - if in doubt, use the GLib main loop found in
14 `dbus.mainloop.glib`.
15 """
17 WATCH_READABLE = _dbus_bindings.WATCH_READABLE
18 """Represents a file descriptor becoming readable.
19 Used to implement file descriptor watches."""
21 WATCH_WRITABLE = _dbus_bindings.WATCH_WRITABLE
22 """Represents a file descriptor becoming readable.
23 Used to implement file descriptor watches."""
25 WATCH_HANGUP = _dbus_bindings.WATCH_HANGUP
26 """Represents a file descriptor reaching end-of-file.
27 Used to implement file descriptor watches."""
29 WATCH_ERROR = _dbus_bindings.WATCH_ERROR
30 """Represents an error condition on a file descriptor.
31 Used to implement file descriptor watches."""
33 __all__ = (
34 # Imported into this module
35 'NativeMainLoop', 'WATCH_READABLE', 'WATCH_WRITABLE',
36 'WATCH_HANGUP', 'WATCH_ERROR', 'NULL_MAIN_LOOP',
38 # Submodules
39 'glib'