update BusyCursor snippet

This commit is contained in:
DietmarSchwertberger
2024-02-27 14:08:10 +01:00
parent 0c54500045
commit d343f222cc

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()