Ensure animationctrl virtuals are still virtual in the wrapper classes

This commit is contained in:
Robin Dunn
2020-04-06 12:50:38 -07:00
parent 0d6f2d211e
commit 4dcd9a7114

View File

@@ -39,6 +39,7 @@ def run():
c = module.find('wxAnimationCtrl')
tools.fixWindowClass(c)
play = c.find('Play')
play.isVirtual = True
others = [
c.find('Stop'),
c.find('IsPlaying'),
@@ -66,6 +67,7 @@ def run():
# methods it will be inheriting from the real base class, which is not
# public.
for m in others:
m.isVirtual = True
c.addItem(m)
module.addGlobalStr('wxAnimationCtrlNameStr', c)