Changeset 3e8dee3 in sasview for src/sas/qtgui/Plotting/UnitTesting/ScalePropertiesTest.py
- Timestamp:
- Nov 8, 2017 9:22:45 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 0e80658
- Parents:
- 412e069e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/ScalePropertiesTest.py
r464cd07 r3e8dee3 2 2 import unittest 3 3 4 from PyQt 4 import QtGui4 from PyQt5 import QtGui, QtWidgets 5 5 6 6 # set up import paths … … 10 10 from sas.qtgui.Plotting.ScaleProperties import ScaleProperties 11 11 12 if not Qt Gui.QApplication.instance():13 app = Qt Gui.QApplication(sys.argv)12 if not QtWidgets.QApplication.instance(): 13 app = QtWidgets.QApplication(sys.argv) 14 14 15 15 class ScalePropertiesTest(unittest.TestCase): … … 27 27 def testDefaults(self): 28 28 '''Test the GUI in its default state''' 29 self.assertIsInstance(self.widget, Qt Gui.QDialog)29 self.assertIsInstance(self.widget, QtWidgets.QDialog) 30 30 self.assertEqual(self.widget.windowTitle(), "Scale Properties") 31 31 self.assertEqual(self.widget.cbX.count(), 6)
Note: See TracChangeset
for help on using the changeset viewer.