Module wxmpl :: Class CursorChanger
[show private | hide private]
[frames | no frames]

Class CursorChanger

DestructableViewMixin --+
                        |
                       CursorChanger


Manages the current cursor of a wxPython window, allowing it to be switched between a normal arrow and a square cross.
Method Summary
  __init__(self, view, enabled)
Create a CursorChanger attached to the wxPython window view.
  setCross(self)
Change the cursor of the associated window to a square cross.
  setEnabled(self, state)
Enable or disable this cursor changer.
  setNormal(self)
Change the cursor of the associated window to a normal arrow.
    Inherited from DestructableViewMixin
  destroy(self)
Sets this object's view attribute to None.

Method Details

__init__(self, view, enabled=True)
(Constructor)

Create a CursorChanger attached to the wxPython window view. The keyword argument enabled has the same meaning as the argument to the setEnabled() method.

setCross(self)

Change the cursor of the associated window to a square cross.

setEnabled(self, state)

Enable or disable this cursor changer. When disabled, the cursor is reset to the normal arrow and calls to the set() methods have no effect.

setNormal(self)

Change the cursor of the associated window to a normal arrow.

Generated by Epydoc 2.1 on Mon Aug 28 13:47:50 2006 http://epydoc.sf.net