[PyKDE] KAction callbacks
Jérôme Martin
jerome.f.martin at free.fr
Thu Oct 3 19:09:01 BST 2002
I'm trying to create menu on a KMainWindow using KAction.
I have write the following but unfortunatly, nothing appends: I never enter in
by import function. Why ?
[...]
p = QPopupMenu (self)
importAction = KAction(i18n("Import"),
QIconSet(BarIcon("filenew")),
KShortcut.null(),
self.import,
self.actionCollection (), "importAction")
importAction.plug (p)
self.menuBar().insertItem(i18n("&File"), p)
[...]
def import(self):
print "import"
Thx for your help.
More information about the PyQt
mailing list