Merge pull request #2536 from DietmarSchwertberger/ISS_2535

update BusyCursor snippet
This commit is contained in:
Scott Talbert
2024-02-27 13:17:21 -05:00
committed by GitHub

View File

@@ -1,7 +1,11 @@
# Normal usage
wait = wx.BusyCursor()
for i in xrange(10000):
for i in range(10000):
DoACalculation()
del wait
# It can be used as a context manager too
with wx.BusyCursor():
for i in range(10000):
DoACalculation()