phoenix_title wx.BusyCursor

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.


class_hierarchy Class Hierarchy

Inheritance diagram for class BusyCursor:

method_summary Methods Summary

__init__

Constructs a busy cursor object, calling wx.BeginBusyCursor .

__enter__

__exit__


api Class API

class wx.BusyCursor(object)

Possible constructors:

BusyCursor(cursor=HOURGLASS_CURSOR) -> None

BusyCursor(cursors) -> None

This class makes it easy to tell your user that the program is temporarily busy.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self, cursor=HOURGLASS_CURSOR)

Constructs a busy cursor object, calling wx.BeginBusyCursor .

Parameters:

cursor (wx.Cursor)

Return type:

None



__init__ (self, cursors)

Constructs a busy cursor object, calling wx.BeginBusyCursor with the given cursor bundle.

Parameters:

cursors (wx.CursorBundle)

Return type:

None

Added in version 4.3/wxWidgets-3.3.0.





__enter__(self)


__exit__(self, exc_type, exc_val, exc_tb)