0

How to display an icon on PyQt4?

I am beginner in python and make a simple script to display a main window with an icon, but the icon didn't appear and there was not an error message too. I use Linux 16.04, PyQt4, python 2.7 and placed the logo.png and the script on Desktop. How to make the icon appear? Any help please. this is the command I used: self.setWindowIcon(QtGui.QIcon('logo.png'))

17th May 2017, 7:54 AM
tri
tri - avatar
1 Resposta
0
thank you for all of your answers 😊
29th May 2017, 6:54 AM
tri
tri - avatar