fix qapp storage bug
This commit is contained in:
parent
927fe44ab9
commit
3240f7a435
@ -274,8 +274,9 @@ if m is not None and list(map(int, m.groups())) < versionReq:
|
|||||||
raise Exception('pyqtgraph requires Qt version >= %d.%d (your version is %s)' % (versionReq[0], versionReq[1], QtVersion))
|
raise Exception('pyqtgraph requires Qt version >= %d.%d (your version is %s)' % (versionReq[0], versionReq[1], QtVersion))
|
||||||
|
|
||||||
|
|
||||||
|
QAPP = None
|
||||||
def mkQApp():
|
def mkQApp():
|
||||||
app = QtGui.QApplication.instance()
|
global QAPP
|
||||||
if app is None:
|
if QtGui.QApplication.instance() is None:
|
||||||
app = QtGui.QApplication([])
|
QAPP = QtGui.QApplication([])
|
||||||
return app
|
return QAPP
|
||||||
|
Loading…
Reference in New Issue
Block a user