Move Desktop Resolution info print statement to test.py
This commit is contained in:
parent
c4e295ceae
commit
4b26519fef
@ -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():
|
||||
|
7
test.py
7
test.py
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user