Hello Everybody,
I want to put an in ICON into a push button.. the code should work like that:
self.printButton = QtGui.QPushButton(self.tab_name)
self.printButton.setIcon(QtGui.QPixmap('printer.tif'))
self.printButton.setGeometry(QtCore.QRect(1030, 500, 161, 61))
But instead, it gives the error message:
TypeError: argument 1 of QAbstractButton.setIcon() has an invalid type
What is missing here?
All comments and suggestions are highly appreciated.