[C++-sig] Pyste bug: protected virtual methods
s_sourceforge at nedprod.com
Sun Oct 26 05:01:36 CET 2003
Ok, there's FXWindow which provides a virtual method GetClass() but
it's protected so pyste doesn't wrap it in the definition for
However, FXMainWindow inherits off FXWindow and in
FXMainWindow_Wrapper there's an override for GetClass()! Needless to
say, because python doesn't know of GetClass it can't call the
default method :(
Solution: Don't generate items in X_Wrapper unless they're public.
This is overkill however, because technically protected methods
should be available to python if a python class inherits off it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 208 bytes
Desc: not available
More information about the Cplusplus-sig