This class makes it easy to tell your user that the program is temporarily busy.
Just create a wx.BusyCursor object on the stack, and within the current scope, the hourglass will be shown.
For example:
# 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()
It works by calling wx.BeginBusyCursor
in the constructor, and wx.EndBusyCursor
in the destructor.
Inheritance diagram for class
BusyCursor:
Methods Summary¶ Class API¶Possible constructors:
BusyCursor(cursor=HOURGLASS_CURSOR) -> None
This class makes it easy to tell your user that the program is temporarily busy.
Constructs a busy cursor object, calling wx.BeginBusyCursor
.
cursor (wx.Cursor)
None
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4