Changeset 1d85b5e in sasview for src/sas/qtgui/SldPanel.py
- Timestamp:
- Oct 20, 2016 9:11:19 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:
- 9968d6a
- Parents:
- ef36eb2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/SldPanel.py
ref36eb2 r1d85b5e 118 118 119 119 def __init__(self, parent=None): 120 super(SldPanel, self).__init__(parent) 120 super(SldPanel, self).__init__() 121 122 self.manager = parent 121 123 122 124 self.setupUi() … … 149 151 150 152 # signals 151 QtCore.QObject.connect( 152 self.ui.buttonBox.button(QtGui.QDialogButtonBox.Reset), 153 QtCore.SIGNAL("clicked(bool)"), 154 lambda checked: self.modelReset()) 153 self.ui.buttonBox.button(QtGui.QDialogButtonBox.Reset).clicked.connect(self.modelReset) 154 self.ui.buttonBox.button(QtGui.QDialogButtonBox.Help).clicked.connect(self.displayHelp) 155 155 156 156 def setupModel(self): … … 232 232 pass 233 233 #self.model.endResetModel() 234 235 def displayHelp(self): 236 try: 237 location = self.manager.HELP_DIRECTORY_LOCATION + \ 238 "/user/sasgui/perspectives/calculator/sld_calculator_help.html" 239 self.manager._helpView.load(QtCore.QUrl(location)) 240 self.manager._helpView.show() 241 except AttributeError: 242 # No manager defined - testing and standalone runs 243 pass 244
Note: See TracChangeset
for help on using the changeset viewer.