Answers for "pyqt5 window size"

3

pyqt5 window size

##### inside Qt class	
class Main(QWidget):
    def __init__(self, parent=None):
        super(Main, self).__init__(parent)
        
        width = 550
        height = 600

        self.setFixedWidth(width)
        self.setFixedHeight(height)
Posted by: Guest on March-22-2022
0

pyqt5 image change size

pixmap = pixmap.scaled(64, 64)
	#changes the size of the image to 64,64
Posted by: Guest on March-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language