Changeset 4992ff2 in sasview for src/sas/qtgui/Perspectives/Invariant
- Timestamp:
- Nov 9, 2017 8:43:07 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:
- 7969b9c
- Parents:
- 7fb471d
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/30/17 07:50:09)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:07)
- Location:
- src/sas/qtgui/Perspectives/Invariant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/InvariantDetails.py
- Property mode changed from 100755 to 100644
rb3e8629 r4992ff2 1 1 import sys 2 2 import os 3 from PyQt4 import QtCore 4 from PyQt4 import QtGui 3 from PyQt5 import QtCore 4 from PyQt5 import QtGui 5 from PyQt5 import QtWidgets 5 6 6 7 # local … … 8 9 from .InvariantUtils import WIDGETS 9 10 10 class DetailsDialog(Qt Gui.QDialog, Ui_Dialog):11 class DetailsDialog(QtWidgets.QDialog, Ui_Dialog): 11 12 """ 12 13 """ -
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
r7fb471d r4992ff2 2 2 import sys 3 3 import os 4 from PyQt4 import QtCore 5 from PyQt4 import QtGui 6 from PyQt4 import QtWebKit 4 from PyQt5 import QtCore 5 from PyQt5 import QtGui 6 from PyQt5 import QtWidgets 7 from PyQt5 import QtWebKitWidgets 7 8 8 9 from twisted.internet import threads … … 35 36 self._model.appendRow(item) 36 37 37 class InvariantWindow(Qt Gui.QDialog, Ui_tabbedInvariantUI):38 class InvariantWindow(QtWidgets.QDialog, Ui_tabbedInvariantUI): 38 39 # The controller which is responsible for managing signal slots connections 39 40 # for the gui and providing an interface to the data model. … … 61 62 self._model_item = QtGui.QStandardItem() 62 63 63 self._helpView = QtWebKit .QWebView()64 self._helpView = QtWebKitWidgets.QWebView() 64 65 self.detailsDialog = DetailsDialog(self) 65 66 … … 502 503 def setupMapper(self): 503 504 # Set up the mapper. 504 self.mapper = Qt Gui.QDataWidgetMapper(self)505 self.mapper = QtWidgets.QDataWidgetMapper(self) 505 506 self.mapper.setOrientation(QtCore.Qt.Vertical) 506 507 self.mapper.setModel(self.model) … … 543 544 self.mapper.addMapping(self.lineEdit_18, WIDGETS.W_INVARIANT_ERR) 544 545 545 self.mapper.toFirst() 546 # FIXME DOESNT WORK WITH QT5 547 #self.mapper.toFirst() 546 548 547 549 def setData(self, data_item, is_batch=False): … … 644 646 """ 645 647 return False 646 647 if __name__ == "__main__":648 app = QtGui.QApplication([])649 import qt4reactor650 qt4reactor.install()651 # DO NOT move the following import to the top!652 # (unless you know what you're doing)653 from twisted.internet import reactor654 dlg = InvariantWindow(reactor)655 dlg.show()656 reactor.run()
Note: See TracChangeset
for help on using the changeset viewer.