]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/GIFAnimationCtrl.py
3 from wx
.animate
import GIFAnimationCtrl
8 'bitmaps/AG00178_.gif',
9 'bitmaps/BD13656_.gif',
10 'bitmaps/AG00185_.gif',
11 'bitmaps/AG00039_.gif',
12 'bitmaps/AG00183_.gif',
13 'bitmaps/AG00028_.gif',
16 #----------------------------------------------------------------------
18 class TestPanel(wx
.Panel
):
19 def __init__(self
, parent
, log
):
21 wx
.Panel
.__init
__(self
, parent
, -1)
23 sizer
= wx
.FlexGridSizer(2,3,5,5)
25 ani
= GIFAnimationCtrl(self
, -1, opj(name
))
26 ani
.GetPlayer().UseBackgroundColour(True)
28 sizer
.Add(ani
, 0, wx
.ALL
, 10)
30 border
= wx
.BoxSizer()
31 border
.Add(sizer
, 1, wx
.EXPAND|wx
.ALL
, 20)
35 #----------------------------------------------------------------------
37 def runTest(frame
, nb
, log
):
38 win
= TestPanel(nb
, log
)
41 #----------------------------------------------------------------------
45 overview
= """<html><body>
46 <h2><center>wx.animate.GIFAnimationCtrl</center></h2>
48 wx.animate.GIFAnimationCtrl is like a wx.StaticBitmap but is able to
49 display an animation by extracing frames from a multi-images GIF file.
56 if __name__
== '__main__':
59 run
.main(['', os
.path
.basename(sys
.argv
[0])] + sys
.argv
[1:])