wx.grid.Grid: How Hide Row Headers?

What is the preferred way to hide row headers in a wx.grid.Grid?

SetRowLabelSize(0) works, but is there a more straight-forward way to hide row headers?

--Wayne

What is wrong with SetRowLabelSize(0)?

···

2009/2/4 Wayne Cannon wayne.cannon@cyanoptics.com

What is the preferred way to hide row headers in a wx.grid.Grid?

SetRowLabelSize(0) works, but is there a more straight-forward way to hide row headers?

–Wayne


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

I have no problem with SetRowLabelSize(0) if it results in an efficient
solution and is not just a side-effect that still spends time trying to
paint the row headers.

I’ve done a lot of windows programming, but am new to wx. I just
wanted to know the “preferred” approach for hiding the row headers of a
Grid.

–Wayne

raffaello wrote:

···

wxpython-users@lists.wxwidgets.orghttp://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Wayne Cannon wrote:

I have no problem with SetRowLabelSize(0) if it results in an efficient solution and is not just a side-effect that still spends time trying to paint the row headers.

I've done a lot of windows programming, but am new to wx. I just wanted to know the "preferred" approach for hiding the row headers of a Grid.

--Wayne

I did some digging into one of my programs that does this (since I couldn't remember how I did it) and I use SetRowLabelSize() as well. It would be nice if there was some kind of alias like HideRowLabels() or some such, but I looked through the grid methods and didn't see anything like that. So I think it's safe to say that this is the proper way to approach it.

Mike

···

raffaello wrote:

What is wrong with SetRowLabelSize(0)?

2009/2/4 Wayne Cannon <wayne.cannon@cyanoptics.com <mailto:wayne.cannon@cyanoptics.com>>

    What is the preferred way to hide row headers in a wx.grid.Grid?

    SetRowLabelSize(0) works, but is there a more straight-forward
    way to hide row headers?

    --Wayne
    _______________________________________________
    wxpython-users mailing list
    wxpython-users@lists.wxwidgets.org
    <mailto:wxpython-users@lists.wxwidgets.org>
    http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

------------------------------------------------------------------------

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
  
------------------------------------------------------------------------

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Thanks for your research.
--Wayne

Mike Driscoll wrote:

···

Wayne Cannon wrote:

I have no problem with SetRowLabelSize(0) if it results in an efficient solution and is not just a side-effect that still spends time trying to paint the row headers.

I've done a lot of windows programming, but am new to wx. I just wanted to know the "preferred" approach for hiding the row headers of a Grid.

--Wayne

I did some digging into one of my programs that does this (since I couldn't remember how I did it) and I use SetRowLabelSize() as well. It would be nice if there was some kind of alias like HideRowLabels() or some such, but I looked through the grid methods and didn't see anything like that. So I think it's safe to say that this is the proper way to approach it.

Mike

raffaello wrote:

What is wrong with SetRowLabelSize(0)?

2009/2/4 Wayne Cannon <wayne.cannon@cyanoptics.com <mailto:wayne.cannon@cyanoptics.com>>

    What is the preferred way to hide row headers in a wx.grid.Grid?

    SetRowLabelSize(0) works, but is there a more straight-forward
    way to hide row headers?

    --Wayne
    _______________________________________________
    wxpython-users mailing list
    wxpython-users@lists.wxwidgets.org
    <mailto:wxpython-users@lists.wxwidgets.org>
    http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

------------------------------------------------------------------------

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
  
------------------------------------------------------------------------

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
  
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users