mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Add wx.adv.AnimationCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
31
unittests/test_animate.py
Normal file
31
unittests/test_animate.py
Normal file
@@ -0,0 +1,31 @@
|
||||
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()
|
||||
|
||||
|
||||
def test_animate2(self):
|
||||
ani = wx.adv.Animation(gifFile)
|
||||
self.assertTrue(ani.IsOk())
|
||||
anictrl = wx.adv.AnimationCtrl(self.frame, anim=ani)
|
||||
anictrl.Play()
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user