The kactionui.rc file given in the fourth example "KAction" in the PyKDE4 tutorial uses a ampersand for the text string of the file menu. As & is a special character in XML it needs to be encoded as & which the author maybe already did, but then forgot to encode the & again to & Christoph