How can I customize the strings WM_NAME and WM_CLASS of a PyQt4 program as shown by xprop?
Consider for example:
from PyQt4 import QtGui, QtCore
import sys
if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
app.setStyle("plastique")
listView = QtGui.QListView()
listView.show()
combobox = QtGui.QComboBox()
combobox.show()
sys.exit(app.exec_())
If I run this (the file is called xprop_test.py) via python xprop_test.py and invoke the linux tool xprop either for the ListView Or for the ComboBox, it shows
WM_NAME(STRING) = "xprop_test.py"
and
WM_CLASS(STRING) = "xprop_test.py", "Xprop_test.py"
How can I set the strings WM_NAME and WM_CLASS to another custom value (different from the filename)?
How can I set it for the whole program? How can I adjust it for each individual GUI element?