Changeset fbfc488 in sasview for src/sas/qtgui/Plotting/BoxSum.py
- Timestamp:
- Nov 9, 2017 8:43:55 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:
- d6b8a1d
- Parents:
- 7969b9c
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/03/17 10:58:39)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/BoxSum.py
r4992ff2 rfbfc488 11 11 12 12 class BoxSum(QtWidgets.QDialog, Ui_BoxSumUI): 13 apply_signal = QtCore.pyqtSignal(tuple, str)14 13 def __init__(self, parent=None, model=None): 15 14 super(BoxSum, self).__init__() … … 24 23 25 24 self.model = model 26 self.mapper = Qt Gui.QDataWidgetMapper()25 self.mapper = QtWidgets.QDataWidgetMapper() 27 26 self.mapper.setModel(self.model) 28 27 … … 32 31 self.mapper.addMapping(self.txtCenterX, 2) 33 32 self.mapper.addMapping(self.txtCenterY, 3) 34 self.mapper.addMapping(self.lblAvg, 4, "text")35 self.mapper.addMapping(self.lblAvgErr, 5, "text")36 self.mapper.addMapping(self.lblSum, 6, "text")37 self.mapper.addMapping(self.lblSumErr, 7, "text")38 self.mapper.addMapping(self.lblNumPoints, 8, "text")33 self.mapper.addMapping(self.lblAvg, 4, b"text") 34 self.mapper.addMapping(self.lblAvgErr, 5, b"text") 35 self.mapper.addMapping(self.lblSum, 6, b"text") 36 self.mapper.addMapping(self.lblSumErr, 7, b"text") 37 self.mapper.addMapping(self.lblNumPoints, 8, b"text") 39 38 40 39 # Populate the widgets with data from the first column … … 43 42 self.setFixedSize(self.minimumSizeHint()) 44 43 44 # Handle the Apply button click 45 self.buttonBox.button(QtWidgets.QDialogButtonBox.Close).clicked.connect(self.onClose) 46 47 def onClose(self): 48 """ 49 close the window containing this panel 50 """ 51 self.close() 52
Note: See TracChangeset
for help on using the changeset viewer.