Changeset 464cd07 in sasview for src/sas/qtgui/Plotting/UnitTesting/WindowTitleTest.py
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.