def is_event_loop_running_qt4(app=None):
 ip = get_ipython()
 if (ip is not None):
  return (ip.active_eventloop and ip.active_eventloop.startswith('qt'))
 if (app is None):
  app = get_app_qt4([''])
 if hasattr(app, '_in_event_loop'):
  return app._in_event_loop
 else:
  return False

def is_event_loop_running_qt4 ( app = None ) : ip = get_ipython ( ) if ( ip is not None ) : return ( ip . active_eventloop and ip . active_eventloop . startswith ( 'qt' ) ) if ( app is None ) : app = get_app_qt4 ( [ '' ] ) if hasattr ( app , '_in_event_loop' ) : return app . _in_event_loop else : return False
is the qt4 event loop running .