home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / dbus / glib.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  779 b   |  24 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import dbus
  5. import dbus_glib_bindings
  6.  
  7. def _setup_with_g_main(conn):
  8.     dbus_glib_bindings.setup_with_g_main(conn._connection)
  9.  
  10. _dbus_gthreads_initialized = False
  11.  
  12. def threads_init():
  13.     global _dbus_gthreads_initialized
  14.     if not _dbus_gthreads_initialized:
  15.         dbus_glib_bindings.gthreads_init()
  16.         _dbus_gthreads_initialized = True
  17.     
  18.  
  19.  
  20. def init_threads():
  21.     threads_init()
  22.  
  23. setattr(dbus, '_dbus_mainloop_setup_function', _setup_with_g_main)
  24.