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

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

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/MaterialEditor.py   pymca(Download)
                                          qt.QMessageBox.Yes,qt.QMessageBox.No)
            if msg == qt.QMessageBox.No:
                self.setCurrentIndex(0)
                for i in range(self.count()):
                    selftext = self.itemText(i)
                        "There is no need to define it.")
            msg.exec_()
            self.setCurrentIndex(0)
            for i in range(self.count()):
                selftext = self.itemText(i)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/QPyMcaMatplotlibSave.py   pymca(Download)
    def setCurrentText(self, text):
        for i in range(self.count()):
            if qt.safe_str(self.itemText(i)) == text:
                self.setCurrentIndex(i)
                break

src/p/y/pymca-HEAD/PyMca5/PyMcaPlugins/MotorInfoWindow.py   pymca(Download)
        if newIndex < 0:
            newIndex = 0
        self.setCurrentIndex(newIndex)
 
class MotorInfoHeader(qt.QHeaderView):

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/math/fitting/SimpleFitControlWidget.py   pymca(Download)
        self.functionEstimationCombo.addItem(str("Estimate once"))
        self.functionEstimationCombo.addItem(str("Estimate always"))
        self.functionEstimationCombo.setCurrentIndex(2)
 
        self.mainLayout.addWidget(self.functionEstimationLabel, row, 0)
        self.backgroundEstimationCombo.addItem(str("Estimate once"))
        self.backgroundEstimationCombo.addItem(str("Estimate always"))
        self.backgroundEstimationCombo.setCurrentIndex(2)
 
        self.mainLayout.addWidget(self.backgroundEstimationLabel, row, 0)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/AttenuatorsTable.py   pymca(Download)
                cbox.addItem(item)
            if i == 0:
                cbox.setCurrentIndex(0)
            else:
                cbox.setCurrentIndex(1)