Close the example app after it launches

This commit is contained in:
Ogi Moore 2021-05-28 08:44:23 -07:00
parent e7a30b9324
commit ee951331be
2 changed files with 1 additions and 12 deletions

View File

@ -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()

View File

@ -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))