X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec873c943d71f0d5f13e3398557071448cda6c23..a4027e74873007e3430af3bd77019bcab76f6c04:/wxPython/demo/GIFAnimationCtrl.py diff --git a/wxPython/demo/GIFAnimationCtrl.py b/wxPython/demo/GIFAnimationCtrl.py deleted file mode 100644 index ec3a7ad344..0000000000 --- a/wxPython/demo/GIFAnimationCtrl.py +++ /dev/null @@ -1,60 +0,0 @@ - -import wx -from wx.animate import GIFAnimationCtrl - -from Main import opj - -GIFNames = [ - 'bitmaps/AG00178_.gif', - 'bitmaps/BD13656_.gif', - 'bitmaps/AG00185_.gif', - 'bitmaps/AG00039_.gif', - 'bitmaps/AG00183_.gif', - 'bitmaps/AG00028_.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 = """ -

wx.animate.GIFAnimationCtrl

- -wx.animate.GIFAnimationCtrl is like a wx.StaticBitmap but is able to -display an animation by extracing frames from a multi-images GIF file. - - -""" - - - -if __name__ == '__main__': - import sys,os - import run - run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) -