Changeset 464cd07 in sasview for src/sas/qtgui/Plotting
- Timestamp:
- Aug 22, 2017 5:59:29 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:
- b2a5042
- Parents:
- 457d961
- Location:
- src/sas/qtgui/Plotting/UnitTesting
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/AddTextTest.py
r83eb5208 r464cd07 11 11 from sas.qtgui.Plotting.AddText import AddText 12 12 13 app = QtGui.QApplication(sys.argv) 13 if not QtGui.QApplication.instance(): 14 app = QtGui.QApplication(sys.argv) 14 15 15 16 class AddTextTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/BoxSumTest.py
r83eb5208 r464cd07 12 12 from sas.qtgui.Plotting.BoxSum import BoxSum 13 13 14 app = QtGui.QApplication(sys.argv) 14 if not QtGui.QApplication.instance(): 15 app = QtGui.QApplication(sys.argv) 15 16 16 17 class BoxSumTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/ColorMapTest.py
rdc5ef15 r464cd07 18 18 from sas.qtgui.Plotting.ColorMap import ColorMap 19 19 20 app = QtGui.QApplication(sys.argv) 20 if not QtGui.QApplication.instance(): 21 app = QtGui.QApplication(sys.argv) 21 22 22 23 class ColorMapTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/LinearFitTest.py
rdc5ef15 r464cd07 15 15 from sas.qtgui.Plotting.LinearFit import LinearFit 16 16 17 app = QtGui.QApplication(sys.argv) 17 if not QtGui.QApplication.instance(): 18 app = QtGui.QApplication(sys.argv) 18 19 19 20 class LinearFitTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/PlotPropertiesTest.py
r83eb5208 r464cd07 11 11 from sas.qtgui.Plotting.PlotProperties import PlotProperties 12 12 13 app = QtGui.QApplication(sys.argv) 13 if not QtGui.QApplication.instance(): 14 app = QtGui.QApplication(sys.argv) 14 15 15 16 class PlotPropertiesTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/Plotter2DTest.py
rdc5ef15 r464cd07 19 19 import sas.qtgui.Plotting.Plotter2D as Plotter2D 20 20 21 app = QtGui.QApplication(sys.argv) 21 if not QtGui.QApplication.instance(): 22 app = QtGui.QApplication(sys.argv) 22 23 23 24 class Plotter2DTest(unittest.TestCase): … … 159 160 def done(): 160 161 self.clipboard_called = True 161 QtCore.QObject.connect( app.clipboard(), QtCore.SIGNAL("dataChanged()"), done)162 QtCore.QObject.connect(QtGui.qApp.clipboard(), QtCore.SIGNAL("dataChanged()"), done) 162 163 actions[2].trigger() 163 164 QtGui.qApp.processEvents() -
src/sas/qtgui/Plotting/UnitTesting/PlotterBaseTest.py
rdc5ef15 r464cd07 20 20 import sas.qtgui.Plotting.PlotterBase as PlotterBase 21 21 22 app = QtGui.QApplication(sys.argv) 22 if not QtGui.QApplication.instance(): 23 app = QtGui.QApplication(sys.argv) 23 24 24 25 class PlotterBaseTest(unittest.TestCase): … … 149 150 def done(): 150 151 self.clipboard_called = True 151 QtCore.QObject.connect( app.clipboard(), QtCore.SIGNAL("dataChanged()"), done)152 QtCore.QObject.connect(QtGui.qApp.clipboard(), QtCore.SIGNAL("dataChanged()"), done) 152 153 actions[2].trigger() 153 154 QtGui.qApp.processEvents() -
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
rdc5ef15 r464cd07 20 20 import sas.qtgui.Plotting.Plotter as Plotter 21 21 22 app = QtGui.QApplication(sys.argv) 22 if not QtGui.QApplication.instance(): 23 app = QtGui.QApplication(sys.argv) 23 24 24 25 … … 97 98 def done(): 98 99 self.clipboard_called = True 99 QtCore.QObject.connect( app.clipboard(), QtCore.SIGNAL("dataChanged()"), done)100 QtCore.QObject.connect(QtGui.qApp.clipboard(), QtCore.SIGNAL("dataChanged()"), done) 100 101 actions[2].trigger() 101 102 QtGui.qApp.processEvents() -
src/sas/qtgui/Plotting/UnitTesting/ScalePropertiesTest.py
r83eb5208 r464cd07 10 10 from sas.qtgui.Plotting.ScaleProperties import ScaleProperties 11 11 12 app = QtGui.QApplication(sys.argv) 12 if not QtGui.QApplication.instance(): 13 app = QtGui.QApplication(sys.argv) 13 14 14 15 class ScalePropertiesTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/SetGraphRangeTest.py
r83eb5208 r464cd07 10 10 from sas.qtgui.Plotting.SetGraphRange import SetGraphRange 11 11 12 app = QtGui.QApplication(sys.argv) 12 if not QtGui.QApplication.instance(): 13 app = QtGui.QApplication(sys.argv) 13 14 14 15 class SetGraphRangeTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/SlicerModelTest.py
r83eb5208 r464cd07 12 12 from sas.qtgui.Plotting.SlicerModel import SlicerModel 13 13 14 app = QtGui.QApplication(sys.argv) 14 if not QtGui.QApplication.instance(): 15 app = QtGui.QApplication(sys.argv) 15 16 16 17 class SlicerModelTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/SlicerParametersTest.py
- Property mode changed from 100755 to 100644
r83eb5208 r464cd07 18 18 from sas.qtgui.Plotting.SlicerParameters import SlicerParameters 19 19 20 app = QtGui.QApplication(sys.argv) 20 if not QtGui.QApplication.instance(): 21 app = QtGui.QApplication(sys.argv) 21 22 22 23 class SlicerParametersTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/WindowTitleTest.py
r83eb5208 r464cd07 10 10 from sas.qtgui.Plotting.WindowTitle import WindowTitle 11 11 12 app = QtGui.QApplication(sys.argv) 12 if not QtGui.QApplication.instance(): 13 app = QtGui.QApplication(sys.argv) 13 14 14 15 class WindowTitleTest(unittest.TestCase): … … 32 33 '''Modify the title''' 33 34 self.widget.show() 34 app.processEvents()35 QtGui.qApp.processEvents() 35 36 # make sure we have the pre-set title 36 37 self.assertEqual(self.widget.txtTitle.text(), "some title") … … 38 39 self.widget.txtTitle.clear() 39 40 self.widget.txtTitle.setText("5 elephants") 40 app.processEvents()41 QtGui.qApp.processEvents() 41 42 # Retrieve value 42 43 new_title = self.widget.title()
Note: See TracChangeset
for help on using the changeset viewer.