Changes needed to ensure both the native and generic controls can be used in the wxGTK build.

This commit is contained in:
Robin Dunn
2020-04-06 12:02:04 -07:00
parent 0d838c12a3
commit 0d6f2d211e

View File

@@ -32,8 +32,8 @@ class TestPanel(wx.Panel):
sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5)
for name in GIFNames:
ani = Animation(opj(name))
ctrl = AnimationCtrl(self, -1, ani)
ctrl = AnimationCtrl(self)
ctrl.LoadFile(opj(name))
ctrl.SetBackgroundColour(self.GetBackgroundColour())
ctrl.Play()
sizer.Add(ctrl, 0, wx.ALL, 10)