problem with hack using multiple inheritance for plugins

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Jun 28 11:33:14 EDT 2007


massimo s. a écrit :
> On 28 Giu, 14:41, "massimo s." <deviceran... at gmail.com> wrote:
> 
>> The new-style behaviour only appears when wxFrame is plugged with the
>> current hack.
>> That is:
>>
>> - print type(self) in wxFrame alone returns <type 'instance'>
>> - print type(self) in the plugged (multiply inherited) wxFrame returns
>> < class '__main__.MainWindowPlugged'>
>>
>> So the problem is that I acquire a new style behaviour somewhere!
> 
> Forget this one, it is wrong (Don't know how did I obtain it).
> I rechecked and, yes, problem is that cmd.Cmd is old-style (and the
> plugin hack works) while wxFrame is new style (and the plugin hack
> works no more).
> 
> Again: using a new-style plugin class for multiple inheritance does
> not work.

I doubt this is really the problem. Obviously Petter's brain works 
better than mine.



More information about the Python-list mailing list