[PyKDE] SIGNAL vs PYSIGNAL

Phil Thompson phil at riverbankcomputing.co.uk
Tue Dec 30 13:10:01 GMT 2003


On Tuesday 30 December 2003 6:04 am, Tony Cappellini wrote:
> I've just started (for the most part) working with PyQT. Going through the
> "Gui Programming with Python"book, and looking at the
> online docs at Riverbank
> http://www.riverbankcomputing.co.uk/pyqt/docs/PyQt.html
>
> I'm having a hard time understanding the differences between SIGNAL and
> PYSIGNAL. The descriptions are not very clear.

SIGNALs are implemented in Qt, so they are all predefined. If you want to 
invent a new signal it has to be a PYSIGNAL.

> With regard to PYSIGNAL- should I use this when I want a signal from a
> python function that I write to connect to a PyQT slot ?

Yes, if it is a signal you've invented. It doesn't matter what you are 
connecting it to.

Phil




More information about the PyQt mailing list