[C++-sig] Pyste bug: protected virtual methods

Niall Douglas 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
Type: application/pgp-signature
Size: 208 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031026/8b0c7382/attachment.pgp>

More information about the Cplusplus-sig mailing list