Hi,
Just learning PyQt4 to build a GUI, but I can't get the window icon to display, it worked on a raspberry pi, but not on Linux Mint Sarah?
Code:
#!/usr/bin/python3
# input.py
# Module for getting userdata via a GUI using PyQt4
import sys
from PyQt4 import QtGui
class Window(QtGui.QMainWindow):
def __init__(self):
super(Window, self).__init__()
self.setGeometry(50, 50, 500, 300)
self.setWindowTitle("GUI testing")
self.setWindowIcon(QtGui.QIcon('./tick.png'))
self.show()
app = QtGui.QApplication(sys.argv)
GUI = Window()
sys.exit(app.exec())
So this is in a folder of it's own, and the png file is in the same folder. I have been told about absolute paths, and I have tried that also but still it does not show up, any ideas please?
Regards
iFunc