Move Desktop Resolution info print statement to test.py

This commit is contained in:
Ogi Moore 2019-05-29 13:07:08 -07:00
parent c4e295ceae
commit 4b26519fef
2 changed files with 6 additions and 3 deletions

View File

@ -31,8 +31,6 @@ def init_viewbox():
g = pg.GridItem()
vb.addItem(g)
desktop = app.desktop().screenGeometry()
print("\n\nDesktop Resolution: {} x {}\n\n".format(desktop.width(), desktop.height()))
app.processEvents()
def test_ViewBox():

View File

@ -15,10 +15,15 @@ elif '--pyqt4' in args:
elif '--pyqt5' in args:
args.remove('--pyqt5')
import PyQt5
elif '--pyside2' in args:
args.remove('--pyside2')
import PySide2
import pyqtgraph as pg
pg.systemInfo()
qApp = pg.mkQApp()
desktop = qApp.desktop().screenGeometry()
print("\n\nDesktop Resolution: {} x {}\n\n".format(desktop.width(), desktop.height()))
pytest.main(args)