Package dbus :: Package mainloop :: Module glib
[hide private]
[frames] | no frames]

Module glib

source code

GLib main loop integration using libdbus-glib.
Functions [hide private]
NativeMainLoop
DBusGMainLoop(set_as_default=False)
Return a NativeMainLoop object which can be used to represent the default GLib main context in dbus-python.
 
threads_init()
Initialize threads in dbus-glib, if this has not already been done.
source code
Variables [hide private]
  _dbus_gthreads_initialized = False
  __package__ = 'dbus.mainloop'
  __warningregistry__ = {('Not importing directory \'/var/tmp/pk...
Function Details [hide private]

DBusGMainLoop(set_as_default=False)

 

Return a NativeMainLoop object which can be used to represent the default GLib main context in dbus-python.

If the keyword argument set_as_default is given and is true, set the new main loop as the default for all new Connection or Bus instances.

Non-default main contexts are not currently supported.

Returns: NativeMainLoop

threads_init()

source code 

Initialize threads in dbus-glib, if this has not already been done.

This must be called before creating a second thread in a program that uses this module.


Variables Details [hide private]

__warningregistry__

Value:
{('Not importing directory \'/var/tmp/pkg-python3-dbus-51BGnD0/dbus-py\
thon-1.2.0/_dbus_glib_bindings\': missing __init__.py',
  <type 'exceptions.ImportWarning'>,
  29): True}