Reimplementation of a slot?

Phil Thompson phil at river-bank.demon.co.uk
Thu Apr 24 11:05:28 EDT 2003


On Thursday 24 April 2003 2:55 pm, Birgit Lachner wrote:
> Hi ...
> I created a ui-file with QtDesigner and translated it to Python with pyuic.
> The new .py-file is then imported to the file with the main-function.
> Everything is working. But I want to reimplement the existing slot in the
> pyuic-generated file.
> How can I do this? I search through the internet and found many documents
> about Python, Qt and slots but nothing about how to reimplement slots.
>
> Can you help me?

You can either sub-class the class created by pyuic and re-implement the slot 
there.

Or you can put Python code directly into Qt Designer and pyuic will extract 
it. This is covered under "Using Qt Designer" in the PyQt documentation.

Phil





More information about the Python-list mailing list