[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/devdocs/api/_as_gen/matplotlib.widgets.LockDraw.html [Back]  [Original]

matplotlib.widgets.LockDraw — Matplotlib 3.12.0.dev712+g0a1451ce0 documentation
Back to top
Search the docs ...:

matplotlib.widgets.LockDraw#

class matplotlib.widgets.LockDraw[source]#

Some widgets, like the cursor, draw onto the canvas, and this is not desirable under all circumstances, like when the toolbar is in zoom-to-rect mode and drawing a rectangle. To avoid this, a widget can acquire a canvas' lock with canvas.widgetlock(widget) before drawing on the canvas; this will prevent other widgets from doing so at the same time (if they also try to acquire the lock first).

__init__()[source]#

Methods

__init__()

available(o)

Return whether drawing is available to o.

isowner(o)

Return whether o owns this lock.

locked()

Return whether the lock is currently held by an owner.

release(o)

Release the lock from o.

available(o)[source]#

Return whether drawing is available to o.

isowner(o)[source]#

Return whether o owns this lock.

locked()[source]#

Return whether the lock is currently held by an owner.

release(o)[source]#

Release the lock from o.


Web Proxy Viewer  |  New URL  |  Original Page