Ejemplo n.º 1
0
 def onHelp(self):
     """
     Shows the help page
     """
     try:
         from pymantidplot.proxies import showCustomInterfaceHelp
         showCustomInterfaceHelp("PyChop")
     except ImportError:
         helpTxt = "PyChop is a tool to allow direct inelastic neutron\nscattering users to estimate the inelastic resolution\n"
         helpTxt += "and incident flux for a given spectrometer setting.\n\nFirst select the instrument, chopper settings and\n"
         helpTxt += "Ei, and then click 'Calculate and Plot'. Data for all\nthe graphs will be generated (may take 1-2s) and\n"
         helpTxt += "all graphs will be updated. If the 'Hold current plot'\ncheck box is ticked, additional settings will be\n"
         helpTxt += "overplotted on the existing graphs if they are\ndifferent from previous settings.\n\nMore in-depth help "
         helpTxt += "can be obtained from the\nMantid help pages."
         self.hlpwin = QDialog()
         self.hlpedt = QLabel(helpTxt)
         self.hlpbtn = QPushButton('OK')
         self.hlpwin.layout = QVBoxLayout(self.hlpwin)
         self.hlpwin.layout.addWidget(self.hlpedt)
         self.hlpwin.layout.addWidget(self.hlpbtn)
         self.hlpbtn.clicked.connect(self.hlpwin.deleteLater)
         self.hlpwin.setWindowTitle('Help')
         self.hlpwin.setWindowModality(Qt.ApplicationModal)
         self.hlpwin.setAttribute(Qt.WA_DeleteOnClose)
         self.hlpwin.setMinimumSize(370, 300)
         self.hlpwin.resize(370, 300)
         self.hlpwin.show()
         self.hlploop = QEventLoop()
         self.hlploop.exec_()
Ejemplo n.º 2
0
 def onHelp(self):
     """
     Shows the help page
     """
     try:
         from pymantidplot.proxies import showCustomInterfaceHelp
         showCustomInterfaceHelp("PyChop")
     except ImportError:
         helpTxt = "PyChop is a tool to allow direct inelastic neutron\nscattering users to estimate the inelastic resolution\n"
         helpTxt += "and incident flux for a given spectrometer setting.\n\nFirst select the instrument, chopper settings and\n"
         helpTxt += "Ei, and then click 'Calculate and Plot'. Data for all\nthe graphs will be generated (may take 1-2s) and\n"
         helpTxt += "all graphs will be updated. If the 'Hold current plot'\ncheck box is ticked, additional settings will be\n"
         helpTxt += "overplotted on the existing graphs if they are\ndifferent from previous settings.\n\nMore in-depth help "
         helpTxt += "can be obtained from the\nMantid help pages."
         self.hlpwin = QtGui.QDialog()
         self.hlpedt = QtGui.QLabel(helpTxt)
         self.hlpbtn = QtGui.QPushButton('OK')
         self.hlpwin.layout = QtGui.QVBoxLayout(self.hlpwin)
         self.hlpwin.layout.addWidget(self.hlpedt)
         self.hlpwin.layout.addWidget(self.hlpbtn)
         self.hlpbtn.clicked.connect(self.hlpwin.deleteLater)
         self.hlpwin.setWindowTitle('Help')
         self.hlpwin.setWindowModality(QtCore.Qt.ApplicationModal)
         self.hlpwin.setAttribute(QtCore.Qt.WA_DeleteOnClose)
         self.hlpwin.setMinimumSize(370, 300)
         self.hlpwin.resize(370, 300)
         self.hlpwin.show()
         self.hlploop = QtCore.QEventLoop()
         self.hlploop.exec_()
Ejemplo n.º 3
0
 def helpClicked(self):
     try:
         from pymantidplot.proxies import showCustomInterfaceHelp
         showCustomInterfaceHelp("Filter Events")
     except ImportError:
         url = ("http://docs.mantidproject.org/nightly/interfaces/{}.html"
                "".format("Filter Events"))
         QDesktopServices.openUrl(QUrl(url))
Ejemplo n.º 4
0
 def helpClicked(self):
     try:
         from pymantidplot.proxies import showCustomInterfaceHelp
         showCustomInterfaceHelp("Filter Events")
     except ImportError:
         url = ("http://docs.mantidproject.org/nightly/interfaces/{}.html"
                "".format("Filter Events"))
         QDesktopServices.openUrl(QUrl(url))
Ejemplo n.º 5
0
 def helpClicked(self):
     from pymantidplot.proxies import showCustomInterfaceHelp
     showCustomInterfaceHelp("Filter Events")
Ejemplo n.º 6
0
 def helpClicked(self):
     from pymantidplot.proxies import showCustomInterfaceHelp
     showCustomInterfaceHelp("FilterEventUI")
Ejemplo n.º 7
0
 def _on_help_button_clicked(self):
     if PYQT4:
         proxies.showCustomInterfaceHelp('sans_save_other')
Ejemplo n.º 8
0
 def helpClicked(self):
     # Temporary import while method is in the wrong place
     from pymantidplot.proxies import showCustomInterfaceHelp
     showCustomInterfaceHelp("TOF Converter")
Ejemplo n.º 9
0
 def onHelp(self):
     from pymantidplot.proxies import showCustomInterfaceHelp
     showCustomInterfaceHelp("QECoverage")
Ejemplo n.º 10
0
 def onHelp(self):
     from pymantidplot.proxies import showCustomInterfaceHelp
     showCustomInterfaceHelp("QECoverage")
Ejemplo n.º 11
0
 def helpClicked(self):
     # Temporary import while method is in the wrong place
     from pymantidplot.proxies import showCustomInterfaceHelp
     showCustomInterfaceHelp("TOF_Converter")
Ejemplo n.º 12
0
 def _on_help_button_clicked(self):
     if PYQT4:
         proxies.showCustomInterfaceHelp('sans_save_other')