How to adjust the widget?

Need to do something like tape the VC. But it turns out that some images just don't fit in the ribbon:
dd53e1d50e25427ebe906d4b0db1863a.jpg

How can you do fit the images to the size of the tape, or how can you change photo size?

Solved:
To change the image sizes, the class has a method Qpixmaps scaled(x, y)
August 19th 19 at 22:35
1 answer
August 19th 19 at 22:37
Solution
Here is the solution:
self.button = QPushButton(self)
self.button.setIconSize(QSize(50,50))
self.button.setGeometry(0,0, 40,40)
self.button.setIcon(QIcon(Qpixmaps("button_run.png")))


self.button.setIconSize(QSize(50,50))
thanks, but problem already solved) - keanu commented on August 19th 19 at 22:40

Find more questions by tags PyQtPythonQt