def set_cursor ( self, cursor = None ):
        if cursor is None:
            self.control.SetCursor( wx.NullCursor )
            return

        global cursor_map

        if cursor not in cursor_map:
            cursor_map[ cursor ] = wx.StockCursor( cursor )

        self.control.SetCursor( cursor_map[ cursor ] )

    #---------------------------------------------------------------------------
    #  Releases ownership of the mouse capture:
    #---------------------------------------------------------------------------
Sets the cursor to a specified cursor shape.
dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window.py/DockWindow.set_cursor