Animated icons for wx notebook
Frank Aune
Frank.Aune at broadpark.no
Tue Sep 11 05:50:26 PDT 2007
Hello,
Adding icons to a notebook is relatively easy:
self.imglist = wx.ImageList(16,16)
img0 = self.imglist.Add(wx.Bitmap('img.png', wx.BITMAP_TYPE_PNG))
self.notebook.AssignImageList(self.imglist)
self.notebook.SetPageImage(0, img0)
But what if I want to (temporarily) add an animated gif image to a notebook
page? I have the code for displaying animated gifs:
self.busyIcon = wx.animate.GIFAnimationCtrl(self.frame, -1, 'animate.png')
self.busyIcon.GetPlayer().UseBackgroundColour(True)
self.busyIcon.Play()
But so far I see no way of combining these two into what I need. Does anyone
have experience with this kind of approach?
Best regards,
Frank
More information about the wxpython-users
mailing list