Preventing resizing of rows and columns in a wx.Grid

I am using a grid in my interface, and would like to prevent the user
from resizing rows or columns. I have tried both the following but
have had no success so far...

        self.Bind(wxgrd.EVT_GRID_COL_SIZE, self.__do_not_resize)
        self.Bind(wxgrd.EVT_GRID_CMD_COL_SIZE, self.__do_not_resize)

in __do_not_resize() I have tried...

pass
event.Skip()
event.Skip(True)
event.Skip(False)

And none of those appear to work either. What am I doing wrong?

Thanks.

···

--
Stand Fast,
tjg. [Timothy Grant]

Timothy Grant wrote:

I am using a grid in my interface, and would like to prevent
the user from resizing rows or columns.

I think this is what you are looking for -

    self.DisableDragRowSize()
    self.DisableDragColSize()

Frank Millman

Thanks Frank.

I imagine that is exactly what I was looking for!

Much appreciated.

···

On Thu, Aug 7, 2008 at 11:53 PM, Frank Millman <frank@chagford.com> wrote:

Timothy Grant wrote:

I am using a grid in my interface, and would like to prevent
the user from resizing rows or columns.

I think this is what you are looking for -

   self.DisableDragRowSize()
   self.DisableDragColSize()

Frank Millman

--
Stand Fast,
tjg. [Timothy Grant]