problem with hack using multiple inheritance for plugins

massimo s. devicerandom at gmail.com
Thu Jun 28 09:07:48 EDT 2007


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.
What can I do now?




More information about the Python-list mailing list