[PyQt] Fwd: Mixin classes and PyQt4
    Baz Walter 
    bazwal at ftml.net
       
    Mon Feb 10 23:03:37 GMT 2014
    
    
  
On 10/02/14 22:42, Phil Thompson wrote:
> On 10-02-2014 7:47 pm, Baz Walter wrote:
>>
>> What would be the point of the second one?
>>
>> The mixin would always need to go first for subclasses to benefit
>> from the reimplemented sizeHint.
>
> So what if you had a second mixin that handled, say,
> QObject.connectNotify() in the same way?
>
Well, if that's all the second mixin did, then it could just go anywhere 
before Qt base-class.
I suppose the general rule is: don't design mixins that mutually clobber 
each other.
-- 
Regards
Baz Walter
    
    
More information about the PyQt
mailing list