mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Merge pull request #2536 from DietmarSchwertberger/ISS_2535
update BusyCursor snippet
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user