Close the example app after it launches
This commit is contained in:
parent
e7a30b9324
commit
ee951331be
@ -1,11 +0,0 @@
|
||||
import initExample ## Add path to library (just for examples; you do not need this)
|
||||
|
||||
import pyqtgraph as pg
|
||||
from pyqtgraph.Qt import QtGui, QtCore
|
||||
|
||||
from examples.ExampleApp import ExampleLoader
|
||||
|
||||
loader = ExampleLoader()
|
||||
|
||||
if __name__ == '__main__':
|
||||
pg.exec()
|
@ -34,7 +34,7 @@ def buildFileList(examples, files=None):
|
||||
|
||||
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
files = [("Example App", "test_ExampleApp.py")]
|
||||
files = [("Example App", "RunExampleApp.py")]
|
||||
for ex in [utils.examples, utils.others]:
|
||||
files = buildFileList(ex, files)
|
||||
files = sorted(set(files))
|
||||
|
Loading…
Reference in New Issue
Block a user