subclass from more than one wrapped class

Bob jollyrogerer at hotmail.com
Sat Aug 10 06:16:35 CEST 2002


Simple answer: You can't. PyQt doesn't support multiple inheritance.
Better answer: Use *one* Qt parent class, and another Python parent class
with the functionality you need.

Works like a champ.


On Wed, 07 Aug 2002 03:06:11 -0700, huber wrote:


> PyQt problem :
> 
> how can i subclass from more than one of the wrapped qt classes ?
> 
> class preview ( QLabel , QFilePreview ) : ....
> 
> thanks
> udo



More information about the Python-list mailing list