Grid Lines of wx.grid

António Barbosa \(GN/dpi\) ab at globalnoticias.pt
Mon Aug 28 04:33:11 PDT 2006


Hi all,

I have a small problem with wx.grid.
[Windows 2k/Xp  Wx 2.6.1.0]

Is there any way to disable the default behaviour of grid 
that inhibits the cell selection when we click over or near the grid lines?

In a normal grid when mouse passes near a vertical grid line the cursor changes to <->, indicating that we can change the column's width, dragging that line.

If we DON'T want that behaviour, we can disable it with:
	self.DisableDragGridSize()
	self.DisableDragRowSize()
and then, the cursor keeps always the default shape, showing that now we can not drag the grid lines.

My problem is: if I click the mouse NEAR the grid line, the respective cell do not get selected!

This is rather annoying, mainly with small cells that compels us to be very careful clicking in the centre of the cell. 

Rephrasing the question:
	Is there a method to change the width of the «border» of grid lines?


Thanks.

Antonio Barbosa






More information about the wxpython-users mailing list