[wxPython-users] Re: wxSnip
Karsten Hilbert
Karsten.Hilbert at gmx.net
Wed May 9 07:24:29 PDT 2007
On Wed, May 09, 2007 at 02:04:52PM +0000, kib2 wrote:
> Mixins could be great, but I saw several implementations for Python. Wich one is
> the best ? I don't know really, but I like this one :
> http://sebulba.wikispaces.com/recipe+real+mixins
>
> An alternative would be to create a subclass of wxStyledTextCtrl, I think it's
> just a 1 hour job :)
Well, 1 hour if you already know how ...
A subclass isn't really an alternative because one may want
to combine several mixins which would not be possible if
there are several sublcasses of wx.stc each implementing one
desirable feature.
As to how to make it a mixin you may want to have a look at
Frank's nice TreeMixin classes (search the list archives).
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
More information about the wxpython-users
mailing list