I'd like to change the hover-over title of my app icon; such that, in the picture below, it reads "FOO" instead of "python". I'm showing the code I've used to import the app icon, and am thinking if there's a way, it must be a one liner underneath this. Anyone know?
if __name__ == '__main__':
app = QtGui.QApplication.instance()
if app is None:
app = QtGui.QApplication([])
# set app icon for tray:
pyDir = os.path.dirname(os.path.abspath(__file__)) #python file location
iconDir = os.path.join(pyDir, 'icons')
app_icon = QtGui.QIcon()
app_icon.addFile(os.path.join(iconDir, '256x256.png'), QtCore.QSize(256,256))
app.setWindowIcon(app_icon)
#should be a one-liner here?? app.setWindowIconTitle, etc?
w = MainWindow()
sys.exit(app.exec_())
Image: