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

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

src/p/y/pyqt5-HEAD/examples/widgets/calculator.py   pyqt5(Download)
    def __init__(self, text, parent=None):
        super(Button, self).__init__(parent)
 
        self.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
        self.setText(text)

src/e/t/etm_qt-2.3.27/etmQt/ui5/ui_etmView.py   etm_qt(Download)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pause_restartButton.sizePolicy().hasHeightForWidth())
        self.pause_restartButton.setSizePolicy(sizePolicy)
        self.pause_restartButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.pause_restartButton.setStyleSheet("border: 0px solid black")
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stopButton.sizePolicy().hasHeightForWidth())
        self.stopButton.setSizePolicy(sizePolicy)
        self.stopButton.setBaseSize(QtCore.QSize(25, 0))
        self.stopButton.setFocusPolicy(QtCore.Qt.NoFocus)