How to remove frame around images placed in the button?

Using the module of PyQt5 I placed the button image. But it is shown with a frame that I would like to remove(picture is below). I guess the problem can be solved by setting the size of the button equal to the size of the image, using the method setGeometry(), but I didn't want to specify exact coordinate value of the button which calls this method. Please tell me how to remove frame?
from PyQt5 import QtWidgets, QtGui, QtCore
import sys

app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()

button = QtWidgets.QPushButton('Button')

button = QtWidgets.QPushButton()
button.setIcon(QtGui.QIcon('picture1.png'))
button.setIconSize(QtCore.QSize(150, 150))
box1 = QtWidgets.QHBoxLayout()
box1.addWidget(button)
window.setLayout(box1)

window.show()
sys.exit(app.exec_())

5e41611207d49212061801.png
April 7th 20 at 11:00
1 answer
April 7th 20 at 11:02
Solution
Try:
button {
border: none;
margin: 0px;
padding: 0px;
}
Thank you very much:) - Oran_Smi commented on April 7th 20 at 11:05

Find more questions by tags PythonPyQt