Changeset 722b7d6 in sasview
- Timestamp:
- Oct 29, 2018 4:34:53 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- ec4a143
- Parents:
- 75906a1
- Location:
- src/sas/qtgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r6bc0840 r722b7d6 364 364 pass 365 365 366 def sendData(self, event ):366 def sendData(self, event=None): 367 367 """ 368 368 Send selected item data to the current perspective and set the relevant notifiers … … 1171 1171 Mask Editor for 2D plots 1172 1172 """ 1173 msg = QtWidgets.QMessageBox() 1174 msg.setIcon(QtWidgets.QMessageBox.Information) 1175 msg.setText("Error: cannot apply mask.\n"+ 1176 "Please select a 2D dataset.") 1177 msg.setStandardButtons(QtWidgets.QMessageBox.Ok) 1178 1173 1179 try: 1174 1180 if data is None or not isinstance(data, Data2D): 1181 # if data wasn't passed - try to get it from 1182 # the currently selected item 1175 1183 index = self.current_view.selectedIndexes()[0] 1176 1184 proxy = self.current_view.model() … … 1181 1189 1182 1190 if data is None or not isinstance(data, Data2D): 1183 msg = QtWidgets.QMessageBox() 1184 msg.setIcon(QtWidgets.QMessageBox.Information) 1185 msg.setText("Error: cannot apply mask. \ 1186 Please select a 2D dataset.") 1187 msg.setStandardButtons(QtWidgets.QMessageBox.Cancel) 1191 # If data is still not right, complain 1188 1192 msg.exec_() 1189 1193 return 1190 1194 except: 1191 msg = QtWidgets.QMessageBox()1192 msg.setIcon(QtWidgets.QMessageBox.Information)1193 msg.setText("Error: No dataset selected. \1194 Please select a 2D dataset.")1195 msg.setStandardButtons(QtWidgets.QMessageBox.Cancel)1196 1195 msg.exec_() 1197 1196 return -
src/sas/qtgui/MainWindow/GuiManager.py
r8748751 r722b7d6 10 10 from PyQt5.QtGui import * 11 11 from PyQt5.QtCore import Qt, QLocale, QUrl 12 13 import matplotlib as mpl 14 mpl.use("Qt5Agg") 12 15 13 16 from twisted.internet import reactor -
src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
r906e0c7 r722b7d6 13 13 Overwrite generic constructor to allow for some globals 14 14 """ 15 super( QtWidgets.QStyledItemDelegate, self).__init__()15 super(ModelViewDelegate, self).__init__() 16 16 17 17 # Main parameter table view columns … … 125 125 Overwrite generic constructor to allow for some globals 126 126 """ 127 super( QtWidgets.QStyledItemDelegate, self).__init__()127 super(PolyViewDelegate, self).__init__() 128 128 129 129 self.poly_parameter = 0 … … 226 226 Overwrite generic constructor to allow for some globals 227 227 """ 228 super( QtWidgets.QStyledItemDelegate, self).__init__()228 super(MagnetismViewDelegate, self).__init__() 229 229 230 230 self.mag_parameter = 0 -
src/sas/qtgui/Plotting/Plotter2D.py
r8fad50b r722b7d6 9 9 10 10 11 #import sys12 #print("SYS.PATH = ", sys.path)13 11 import matplotlib as mpl 14 mpl.use("Qt5Agg")15 12 DEFAULT_CMAP = mpl.cm.jet 16 13
Note: See TracChangeset
for help on using the changeset viewer.