home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / dbus / glib.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  759 b   |  18 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. """Deprecated module which sets the default GLib main context as the mainloop
  5. implementation within D-Bus, as a side-effect of being imported!
  6.  
  7. This API is highly non-obvious, so instead of importing this module,
  8. new programs which don't need pre-0.80 compatibility should use this
  9. equivalent code::
  10.  
  11.     from dbus.mainloop.glib import DBusGMainLoop
  12.     DBusGMainLoop(set_as_default=True)
  13. """
  14. __docformat__ = 'restructuredtext'
  15. from dbus.mainloop.glib import DBusGMainLoop, threads_init
  16. init_threads = threads_init
  17. DBusGMainLoop(set_as_default = True)
  18.