j*****k 发帖数: 1198 | 1 # code
import wx
from wx.animate import *
class ImagePanel(wx.Panel):
""" create a panel with a wx.StaticBitmap """
def __init__(self, parent):
wx.Panel.__init__(self, parent)
ctrl = GIFAnimationCtrl(self)
app = wx.App(0)
# create window/frame instance
frame = wx.Frame(None)
# create the panel instance
ImagePanel(frame)
# show the frame
frame.Show(True)
# start the GUI event loop
app.MainLoop()
# error
# Python Error
# can't open file " (error 3... |
|