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 : [EMAIL PROTECTED], Office : 155b, Tel : 29-46
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde