- Timestamp:
- Feb 9, 2017 8:19:16 AM (8 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:
- cf89cce
- Parents:
- 57b7ee2
- Location:
- src/sas/qtgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotter2D.py
r57b7ee2 r9a05a8d5 226 226 self.param_model = self.slicer.model() 227 227 # Pass the model to the Slicer Parameters widget 228 self.slicer_widget = SlicerParameters( self,model=self.param_model)228 self.slicer_widget = SlicerParameters(model=self.param_model) 229 229 self.slicer_widget.close_signal.connect(slicer_closed) 230 # Add the plot to the workspace 231 self.manager.parent.workspace().addWindow(self.slicer_widget) 230 232 231 233 self.slicer_widget.show() -
src/sas/qtgui/SlicerParameters.py
r57b7ee2 r9a05a8d5 16 16 """ 17 17 close_signal = QtCore.pyqtSignal() 18 def __init__(self, parent=None,model=None):18 def __init__(self, model=None): 19 19 super(SlicerParameters, self).__init__() 20 20 … … 41 41 42 42 # Close doesn't trigger closeEvent automatically, so force it 43 self.buttonBox.button(QtGui.QDialogButtonBox.Close).clicked.connect(functools.partial(self.closeEvent, None))43 self.buttonBox.button(QtGui.QDialogButtonBox.Close).clicked.connect(functools.partial(self.closeEvent, None)) 44 44 45 45 # Disable row number display … … 74 74 location = "docs/sphinx-docs/build/html" + \ 75 75 "/user/sasgui/guiframe/graph_help.html#d-data-averaging" 76 self. _helpView = QtWebKit.QWebView()77 self. _helpView.load(QtCore.QUrl(location))78 self. _helpView.show()76 self.helpView = QtWebKit.QWebView() 77 self.helpView.load(QtCore.QUrl(location)) 78 self.helpView.show() 79 79 80 80 … … 88 88 89 89 def columnReadOnly(self, column): 90 '''Returns True if column is read only, false otherwise''' 90 91 return column in self._columns 91 92 92 93 def setColumnReadOnly(self, column, readonly=True): 94 '''Add/removes a column from the readonly list''' 93 95 if readonly: 94 96 self._columns.add(column) … … 97 99 98 100 def flags(self, index): 101 '''Sets column flags''' 99 102 flags = super(ProxyModel, self).flags(index) 100 103 if self.columnReadOnly(index.column()): … … 108 111 """ 109 112 def createEditor(self, widget, option, index): 113 '''Overwrite default editor''' 110 114 if not index.isValid(): 111 115 return 0
Note: See TracChangeset
for help on using the changeset viewer.