MCPcopy Index your code
hub / github.com/ipython/ipython / get_app_qt4

Function get_app_qt4

IPython/lib/guisupport.py:112–120  ·  view source on GitHub ↗

Create a new Qt app or return an existing one.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

110#-----------------------------------------------------------------------------
111
112def get_app_qt4(*args, **kwargs):
113 """Create a new Qt app or return an existing one."""
114 from IPython.external.qt_for_kernel import QtGui
115 app = QtGui.QApplication.instance()
116 if app is None:
117 if not args:
118 args = ([""],)
119 app = QtGui.QApplication(*args, **kwargs)
120 return app
121
122def is_event_loop_running_qt4(app=None):
123 """Is the qt event loop running."""

Callers 2

start_event_loop_qt4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…