mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-25 13:10:08 +01:00
12 lines
287 B
Python
12 lines
287 B
Python
|
|
# Normal usage
|
|
wait = wx.BusyInfo("Please wait, working...")
|
|
for i in range(10000):
|
|
DoACalculation()
|
|
del wait
|
|
|
|
# It can be used as a context manager too
|
|
with wx.BusyInfo("Please wait, working..."):
|
|
for i in range(10000):
|
|
DoACalculation()
|