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

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

src/p/y/pyqt5-HEAD/examples/widgets/icons/icons.py   pyqt5(Download)
            if self.guessModeStateAct.isChecked():
                if '_act' in fileName:
                    item1.setText("Active")
                elif '_dis' in fileName:
                    item1.setText("Disabled")
                elif '_sel' in fileName:
                    item1.setText("Selected")
 
                if '_on' in fileName:
                    item2.setText("On")

src/p/y/pyqt5-HEAD/examples/tools/settingseditor/settingseditor.py   pyqt5(Download)
 
                item0 = QTableWidgetItem()
                item0.setText(settings.fileName())
 
                item1 = QTableWidgetItem()
                disable = not (settings.childKeys() or settings.childGroups())
 
                if row == 0:
                    if settings.isWritable():
                        item1.setText("Read-write")
                        disable = False
                    else:
                        item1.setText("Read-only")
                    self.buttonBox.button(QDialogButtonBox.Ok).setDisabled(disable)
                else:
                    item1.setText("Read-only fallback")

src/s/t/starcheat-HEAD/starcheat/gui/common.py   starcheat(Download)
 
        if type(icon) is QPixmap:
            self.setText("")