GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.BusyCursor
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.BusyCursor — wxPython 4.3.2 Docs

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.

See also

wx.BeginBusyCursor , wx.EndBusyCursor , wx.WindowDisabler, wx.BusyInfo


class_hierarchy Class Hierarchy¶

Inheritance diagram for class BusyCursor:

Inheritance diagram of 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)¶
© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.