How to hide the GridCursor

How do you hide the wx.grid's cursor? I just want a simple 10x10 box
and to handle all the selection effects myself using cell background
colors. So I've done the following however I still get a border around
cell 0,0, SetGridCursor(-1,-1) doesn't hide it unfortunately.

        self.grid.CreateGrid(10,10)
        self.grid.SetColLabelSize(0)
        self.grid.SetRowLabelSize(0)
        self.grid.AutoSize()
        self.grid.DisableDragGridSize()
        self.grid.HideCellEditControl()
        self.grid.SetGridCursor(-1,-1)

        self.grid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK,
self.OnLeftClick)
        self.grid.GetGridWindow().Bind(wx.EVT_MOTION, self.OnMotion)

    def OnLeftClick(self,event):
        pass
    def OnMotion(self,event):
        if event.Dragging():
            pass
        else:
            event.Skip()

theGrid.SetCellHighlightPenWidth(0)

···

On 8/23/10 2:02 PM, Mark wrote:

How do you hide the wx.grid's cursor? I just want a simple 10x10 box
and to handle all the selection effects myself using cell background
colors. So I've done the following however I still get a border around
cell 0,0, SetGridCursor(-1,-1) doesn't hide it unfortunately.

--
Robin Dunn
Software Craftsman

I needed SetCellHighlightROPenWidth(0) since all my cells are read
only. How should I go about getting these functions added to the
online docs here

http://www.wxpython.org/onlinedocs.php -- alphabetical references --
Grid

Mark

···

On Aug 24, 7:26 am, Robin Dunn <ro...@alldunn.com> wrote:

On 8/23/10 2:02 PM, Mark wrote:

> How do you hide the wx.grid's cursor? I just want a simple 10x10 box
> and to handle all the selection effects myself using cell background
> colors. So I've done the following however I still get a border around
> cell 0,0, SetGridCursor(-1,-1) doesn't hide it unfortunately.

 theGrid\.SetCellHighlightPenWidth\(0\)

--
Robin Dunn
Software Craftsmanhttp://wxPython.org

Hi Mark,

I needed SetCellHighlightROPenWidth(0) since all my cells are read
only. How should I go about getting these functions added to the
online docs here

http://www.wxpython.org/onlinedocs.php -- alphabetical references --

I believe the undocumented methods are automatically excluded in the
doxygen output in the wxWidgets docs. Not sure, but it appears to be
like that. On the other hand, there is some very tiny info on my
version of the docs:

http://xoomer.virgilio.it/infinity77/wxPython/grid/wx.grid.Grid.html#SetCellHighlightROPenWidth

No specific docs for the method itself, but all the available methods
should be listed alphabetically there (at the time of wxPython
2.8.9.1).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
The Doomed City: Removal Group: the nightmare <==

···

On 24 August 2010 04:41, Mark wrote: