Add context manager methods to wx.BusyCursor

Fixes #196
This commit is contained in:
Robin Dunn
2016-12-03 15:59:52 -08:00
parent 432e4056ce
commit ede75fdc8d
2 changed files with 10 additions and 1 deletions

View File

@@ -29,7 +29,10 @@ class utils_Tests(wtc.WidgetTestCase):
self.assertTrue( wx.IsBusy())
wx.EndBusyCursor()
self.assertTrue(not wx.IsBusy())
def test_utilsBusyCursor3(self):
with wx.BusyCursor():
self.myYield()
def test_utilsSomeOtherStuff(self):
wx.GetBatteryState()