From 0d6f2d211efdee1c7eb8b5e500887b26ae03c6e4 Mon Sep 17 00:00:00 2001 From: Robin Dunn <> Date: Mon, 6 Apr 2020 12:02:04 -0700 Subject: [PATCH] Changes needed to ensure both the native and generic controls can be used in the wxGTK build. --- demo/AnimateCtrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/AnimateCtrl.py b/demo/AnimateCtrl.py index fe909c3e..336d5d32 100644 --- a/demo/AnimateCtrl.py +++ b/demo/AnimateCtrl.py @@ -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)