Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(160)  |  Call(160)  |  Derive(0)  |  Import(0)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/McaAdvancedFit.py   pymca(Download)
                msg.setInformativeText(str(sys.exc_info()[1]))
                msg.setDetailedText(traceback.format_exc())
                msg.exec_()
                return
            config.update(npar)
                msg.setInformativeText(str(sys.exc_info()[1]))
                msg.setDetailedText(traceback.format_exc())
                msg.exec_()
                return
 
                    msg.setIcon(qt.QMessageBox.Critical)
                    msg.setText("Concentrations error: %s" % sys.exc_info()[1])
                    msg.exec_()
                    self.mainTab.setCurrentIndex(0)
        elif str(self.mainTab.tabText(self.mainTab.currentIndex())).upper() == "TABLE":
            text = "Sorry. You need to perform a fit first.\n"
            msg.setText(text)
            msg.exec_()
            if str(self.mainTab.tabText(self.mainTab.currentIndex())).upper() == "DIAGNOSTICS":
                self.mainTab.setCurrentIndex(0)
            text = "Sorry, You need to perform a fit first.\n"
            msg.setText(text)
            msg.exec_()
            if str(self.mainTab.tabText(self.mainTab.currentIndex())).upper() == "CONCENTRATIONS":
                self.mainTab.setCurrentIndex(0)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/XRFMCPyMca.py   pymca(Download)
            msg.setText("Do you want to stop on-going simulation?")
            msg.setStandardButtons(qt.QMessageBox.Yes|qt.QMessageBox.No)
            answer=msg.exec_()
            if answer == qt.QMessageBox.Yes:
                self.logWidget.stop()
        msg.setIcon(qt.QMessageBox.Critical)
        msg.setText(text)
        msg.exec_()
 
    def start(self):
            msg.setInformativeText(str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()
 
    def _start(self):
                    text += line
            msg.setText(text)
            msg.exec_()
        xmsoName = self.__fileNamesDict['xmso']
 

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/PyMcaMain.py   pymca(Download)
            msg.setInformativeText(str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()
 
    def _dispatcherAddSelectionSlot(self, dictOrList):
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Error: %s" % sys.exc_info()[1])
            msg.exec_()
 
 
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Error: %s" % sys.exc_info()[1])
            msg.exec_()
 
    def _dispatcherReplaceSelectionSlot(self, dictOrList):
                                msg.setInformativeText(txt)
                                msg.setDetailedText(traceback.format_exc())
                                msg.exec_()
 
                if 'WidgetConfiguration' in ddict[source]:
                            msg.setInformativeText(txt)
                            msg.setDetailedText(traceback.format_exc())
                            msg.exec_()
 
    def __configureRoi(self, ddict):

src/p/y/pymca-HEAD/PyMca5/PyMcaPlugins/AdvancedAlignmentScanPlugin.py   pymca(Download)
            msg.setInformativeText(str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()
 
    def store(self):
            msg.setTitle('FFTAlignment Load Error')
            msg.setText('Unable to read shifts form file \'%s\''%filename)
            msg.exec_()
            return
        if 'Shifts' not in inDict.keys():
                msg.setWindowTitle('FFTAlignment Load Error')
                msg.setText('No shift information found in file \'%s\''%filename)
                msg.exec_()
            ddict = dict(zip(orderedLegends, shiftList))
            llist = self.plugin.getOrder()
            msg.setWindowTitle('FFTAlignment Save Error')
            msg.setText('Unable to write configuration to \'%s\''%filename)
            msg.exec_()
        return True
 
                msg.setText('Singular matrix encountered during least squares fit.')
                msg.setStandardButtons(qt.QMessageBox.Ok)
                msg.exec_()
                shift = float('NaN')
                fitp, chisq, sigma = [None, None, None], 0., 0.

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/McaCalWidget.py   pymca(Download)
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Error on estimate: %s" % sys.exc_info()[1])
            msg.exec_()
            return
        try:
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Error on Fit")
            msg.exec_()
            return
        npeaks = 0
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Less than two peaks found")
            msg.exec_()
            return
 
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Invalid peak separation %g" % deltat)
            msg.exec_()
            return
 
                msg.setIcon(qt.QMessageBox.Critical)
                msg.setText("Error on fit:\n%s" % sys.exc_info()[1])
                msg.exec_()
        return (A, B, Vret)
 

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/QPyMcaMatplotlibSave.py   pymca(Download)
            msg.setDetailedText(traceback.format_exc())
            msg.setWindowTitle('Matplotlib Save Image')
            msg.exec_()
 
 
            msg.setText("Error printing image: %s" % sys.exc_info()[1])
            msg.setWindowTitle('Matplotlib Save Image')
            msg.exec_()
 
    def saveClicked(self):
                msg.setText("Error saving image: %s" % sys.exc_info()[1])
                msg.setWindowTitle('Matplotlib Save Image')
                msg.exec_()
            try:            
                outputDir  = os.path.dirname(outstr)
                msg.setText("Cannot overwrite file: %s" % sys.exc_info()[1])
                msg.setWindowTitle('Matplotlib Save Image')
                msg.exec_()
                return
        try:
                msg.setText("Error saving file: %s" % sys.exc_info()[1])
                msg.setWindowTitle('Matplotlib Save Image')
                msg.exec_()
 
class SimpleComboBox(qt.QComboBox):

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/MaterialEditor.py   pymca(Download)
            msg.setInformativeText(str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()
 
    def _massAttenuationSlot(self, ddict):
            msg.setInformativeText(str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()        
 
    def closeEvent(self, event):
                msg.setText("Invalid Material Name '%s'\n" % text + \
                            "It ends with a space character.\n")
                msg.exec_()
                msg = qt.QMessageBox.No
            else:
                                "You cannot use a number as material name.\n" +\
                                "Hint: You can use _%s_" % text)
                    msg.exec_()
                    msg = qt.QMessageBox.No
                except:
                        "The material is a valid Formula.\n " \
                        "There is no need to define it.")
            msg.exec_()
            self.setCurrentIndex(0)
            for i in range(self.count()):

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/McaWindow.py   pymca(Download)
           msg.setText("Please Select an active curve")
           msg.setWindowTitle('MCA Window Simple Fit')
           msg.exec_()
           return
        x, y, info = self.getDataAndInfoFromLegend(legend)
                msg.setText("Error. Trying to fit fitted data?")
                msg.setWindowTitle('MCA Window Simple Fit')
                msg.exec_()
 
    def getActiveCurve(self, just_legend=False):
            msg.setText("Please Select an active curve")
            msg.setWindowTitle('MCA Window')
            msg.exec_()
            return
 
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("Error. Trying to fit fitted data?")
            msg.exec_()
        return
 
                    msg.setIcon(qt.QMessageBox.Critical)
                    msg.setText("Please Select an active curve")
                    msg.exec_()
                    return
                else:

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/QStackWidget.py   pymca(Download)
                msg.setIcon(qt.QMessageBox.Critical)
                msg.setText("Please use ASCII characters in file name and path")
                msg.exec_()
        return ""
 
                msg.setIcon(qt.QMessageBox.Critical)
                msg.setText("Please use ASCII characters in file name and path")
                msg.exec_()
        return ""
 
            msg.setInformativeText(qt.safe_str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()
 
    def saveStackAsNeXusSpectra(self, compression=False):
            msg.setIcon(qt.QMessageBox.Critical)
            msg.setText("%s: %s" % (sys.exc_info()[0], sys.exc_info()[1]))
            msg.exec_()
            return
        if stack is None:
                msg.setIcon(qt.QMessageBox.Information)
                msg.setText("Problem loading plugins")
                msg.exec_()
            return
        if idx == 1:

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/StackSimpleFitWindow.py   pymca(Download)
                msg.setText("Do you want to delete current output files?")
                msg.setStandardButtons(qt.QMessageBox.Yes|qt.QMessageBox.No)
                answer=msg.exec_()
                if answer == qt.QMessageBox.Yes:
                    deleteFiles = True
            msg.setInformativeText(safe_str(sys.exc_info()[1]))
            msg.setDetailedText(traceback.format_exc())
            msg.exec_()
        finally:
            self.progressBar.hide()

  1 | 2 | 3 | 4  Next