1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
import unittest
from unittests import wtc
import wx
#---------------------------------------------------------------------------
class busyinfo_Tests(wtc.WidgetTestCase):
def test_busyinfo1(self):
busy = wx.BusyInfo('This is a busy info message')
self.waitFor(250)
del busy
def test_busyinfo2(self):
with wx.BusyInfo('This is a busy info message'):
self.waitFor(250)
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()
|