[PyKDE] Problem with QMenuData
Thierry Jouve
jouve at esrf.fr
Tue May 21 17:29:00 BST 2002
Hello,
I want to create a popup menu... So I use the class QPopupMenu, but I
can't insert a simple
String in it... I made this :
class CtxtMenu(QPopupMenu) :
def __init__(self, parent, name = None):
QPopupMenu.__init__(self, parent, name)
self.insertItem(QString("Edit"), id = 1, index = -1)
and I have the following error :
[...]
File "./ObjectsList.py", line 109, in __init__
self.insertItem(QString("Edit"), id = 1, index = -1)
TypeError: Argument 1 of QMenuData.insertItem() has an invalid type
Help... please
--
Thierry JOUVE
BLISS GROUP - ESRF
Mail : jouve at esrf.fr, Office : 155b, Tel : 29-46
More information about the PyQt
mailing list