[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Problem with QMenuData
From: Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date: 2002-05-21 16:04:04
[Download RAW message or body]
Thierry Jouve wrote:
>
> 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
Can you send a (small) complete script that demonstrates the problem.
What version of PyQt?
What version of Qt?
Which platform?
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic