def _oldGiInit():
 _glibbase.ensureNotImported(_PYGTK_MODULES, "Introspected and static glib/gtk bindings must not be mixed; can't import gireactor since pygtk2 module is already imported.")
 global GLib
 from gi.repository import GLib
 if (getattr(GLib, 'threads_init', None) is not None):
  GLib.threads_init()
 _glibbase.ensureNotImported([], '', preventImports=_PYGTK_MODULES)

def _oldGiInit ( ) : _glibbase . ensureNotImported ( _PYGTK_MODULES , "Introspected and static glib/gtk bindings must not be mixed; can't import gireactor since pygtk2 module is already imported." ) global GLib from gi . repository import GLib if ( getattr ( GLib , 'threads_init' , None ) is not None ) : GLib . threads_init ( ) _glibbase . ensureNotImported ( [ ] , '' , preventImports = _PYGTK_MODULES )
make sure pygtk and gi arent loaded at the same time .