Hi, how can I pass my own python slot to addButton? def slotInsert(self): pass
newItem = KGuiItem(QString("&New"), KIcon("document-new")) self.newButton = self.buttonBox.addButton(newItem, KDialogButtonBox.ActionRole, self, self.slotInsert) TypeError: KDialogButtonBox.addButton(): arguments did not match any overloaded call: overload 1: argument 1 has unexpected type 'KGuiItem' overload 2: argument 1 has unexpected type 'KGuiItem' overload 3: argument 4 has unexpected type 'instancemethod' overload 4: argument 3 has unexpected type 'PlayerList' This is KDE 4.4 with pyqt4 4.7.0 -- Wolfgang _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt