[PyKDE] Newbie pyQt user needs some slot help

Phil Thompson phil at river-bank.demon.co.uk
Thu May 4 13:29:42 BST 2000

Boudewijn Rempt wrote:
> On Thu, 27 Apr 2000, Phil Thompson wrote:
> > QPopupMenu::exec() isn't a slot, it's just a member function.  You could
> > sub-class a QPopupMenu with a Python method called (say) showMenu which
> > does something like...
> >
> When I was concocting some sample code for Matthew to play with I started
> thinking about this issue, and I was wondering whether it would would be
> difficult, desirable or useful to adapt PyQt to make all public C++
> members slots - after all, all Python member functions can be slots, too.

Difficult - no, but SIP would have to generate a fair bit of extra code
(an extra C++ member function for every function that wasn't already a

Desirable - no (from my point of view) as it starts to make PyQt
different (possibly better) that C++ Qt.

Useful - I'm not the person to judge, but this is the first time anybody
has (publically) had this problem.

I'd be interested to know, when people first started using PyQt/PyKDE,
what their biggest problem was.


More information about the PyQt mailing list