[C++-sig] Pyste bug: protected virtual methods
by Niall Douglas other posts by this author
Oct 26 2003 4:01AM messages near this date
[C++-sig] Improved version of Lijun Qin's multithreading patch
|
Re: [C++-sig] Pyste bug: protected virtual methods
--PGPMime-Boundary-894E9FA4
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Ok, there's FXWindow which provides a virtual method GetClass() but
it's protected so pyste doesn't wrap it in the definition for
FXWindow.
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.
Cheers,
Niall
--PGPMime-Boundary-894E9FA4
Content-Type: application/pgp-signature
-----BEGIN PGP MESSAGE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBP5tHIcEcvDLFGKbPEQKkNgCaA3V6/XL8GtKST6ii0ZcwU2wrDT8An01L
6Xmw6GEM0EbB8FGaFuv3AiOR
=LYuj
-----END PGP MESSAGE-----
--PGPMime-Boundary-894E9FA4--
Attachments:
unknown1
unknown1
unknown2
unknown3
unknown4
Thread:
Niall Douglas
Nicodemus
Niall Douglas
|