mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +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()
|
wait = wx.BusyCursor()
|
||||||
|
for i in range(10000):
|
||||||
for i in xrange(10000):
|
|
||||||
DoACalculation()
|
DoACalculation()
|
||||||
|
|
||||||
del wait
|
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