mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
33 lines
852 B
Python
33 lines
852 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import wx.adv
|
|
import os
|
|
|
|
gifFile = os.path.join(os.path.dirname(__file__), 'BD13656_.gif')
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class animate_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_animate1(self):
|
|
ani = wx.adv.Animation()
|
|
ani.LoadFile(gifFile)
|
|
self.assertTrue(ani.IsOk())
|
|
anictrl = wx.adv.AnimationCtrl(self.frame, anim=ani)
|
|
anictrl.Play()
|
|
self.waitFor(500)
|
|
|
|
def test_animate2(self):
|
|
ani = wx.adv.Animation(gifFile)
|
|
self.assertTrue(ani.IsOk())
|
|
anictrl = wx.adv.AnimationCtrl(self.frame, anim=ani)
|
|
anictrl.Play()
|
|
self.waitFor(500)
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|