Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.BusyCursor.1.py
DietmarSchwertberger d343f222cc update BusyCursor snippet
2024-02-27 14:08:10 +01:00

12 lines
281 B
Python

# Normal usage
wait = wx.BusyCursor()
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()