import wx from wx.animate import GIFAnimationCtrl from Main import opj GIFNames = [ "bitmaps/ani-bttrfly.gif", "bitmaps/ani-avtr.gif", "bitmaps/ani-phone.gif", # "bitmaps/ani-walker.gif", "bitmaps/ani-man.gif", "bitmaps/ani-bookworm.gif", "bitmaps/ani-hooked.gif", ] #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(2,3,5,5) for name in GIFNames: ani = GIFAnimationCtrl(self, -1, opj(name)) ani.GetPlayer().UseBackgroundColour(True) ani.Play() sizer.Add(ani, 0, wx.ALL, 10) border = wx.BoxSizer() border.Add(sizer, 1, wx.EXPAND|wx.ALL, 20) self.SetSizer(border) #---------------------------------------------------------------------- def runTest(frame, nb, log): win = TestPanel(nb, log) return win #---------------------------------------------------------------------- overview = """