.. include:: headings.inc .. _BusyCursor: ========================================================================================================================================== |phoenix_title| **BusyCursor** ========================================================================================================================================== This class makes it easy to tell your user that the program is temporarily busy. Just create a :ref:`BusyCursor` object on the stack, and within the current scope, the hourglass will be shown. For example: :: wait = wx.BusyCursor() for i in xrange(10000): DoACalculation() del wait It works by calling :func:`BeginBusyCursor` in the constructor, and :func:`EndBusyCursor` in the destructor. .. seealso:: :func:`BeginBusyCursor`, :func:`EndBusyCursor`, :ref:`WindowDisabler` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **BusyCursor** .. raw:: html

Inheritance diagram of BusyCursor

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~BusyCursor.__init__` Constructs a busy cursor object, calling :func:`BeginBusyCursor`. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: BusyCursor(object) This class makes it easy to tell your user that the program is temporarily busy. **Possible constructors**:: BusyCursor(cursor=HOURGLASS_CURSOR) .. method:: __init__(self, cursor=HOURGLASS_CURSOR) Constructs a busy cursor object, calling :func:`BeginBusyCursor`. :param `cursor`: :type `cursor`: Cursor