•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 456,274 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,271 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 1345 | Replies: 2
![]() |
You need to use the wxPython GUI toolkit to do that:
I think something like this is in the snippets.
python Syntax (Toggle Plain Text)
# experiment with the wx.animate.GIFAnimationCtrl() widget # needs wxPython installed import wx import wx.animate class AnimatedGif(wx.Panel): """class to show an animated gif image on a panel""" def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) #self.SetBackgroundColour("black") # pick an animated GIF filename you have in the working folder ag_fname = "ag_puppy.gif" try: ag = wx.animate.GIFAnimationCtrl(self, id, ag_fname, pos=(10, 10)) parent.SetTitle(ag_fname) except: pass ag.GetPlayer().UseBackgroundColour(True) ag.Play() app = wx.PySimpleApp() frame = wx.Frame(None, id=-1, title="need animated gif file", size=(300, 300)) AnimatedGif(frame, id=-1) frame.Show(True) app.MainLoop()
drink her pretty
![]() |
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- animated pictures and .GIF files (Graphics and Multimedia)
- unable to properly save images (Windows NT / 2000 / XP / 2003)
- creating menu bars and animate images (JavaScript / DHTML / AJAX)
- animated gifs don't display (Web Browsers)
- images no longer animated (Web Browsers)
- Images in signatures (Growing an Online Community)
Other Threads in the Python Forum
- Previous Thread: soduko problem
- Next Thread: Numeric elements of a mixed list



Linear Mode