Skip to content

Commit

Permalink
Merge pull request wxWidgets#2536 from DietmarSchwertberger/ISS_2535
Browse files Browse the repository at this point in the history
update BusyCursor snippet
  • Loading branch information
swt2c authored Feb 27, 2024
2 parents 0205c7c + d343f22 commit a207b40
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit a207b40

Please sign in to comment.