prevent overlapping of columns of a grid in wxPython Topic is solved
prevent overlapping of columns of a grid in wxPython
I am using a grid with two columns in wxPython. The first column contains very long strings. The problem here is that these strings overlap on to the second column which are empty in the same row. I tried setting FirstGrid.SetDefaultCellOverflow( False) but it did not help. Can anyone help me out in solving this issue???
Re: prevent overlapping of columns of a grid in wxPython
SetDefaultCellOverflow(false) should work. Did you try calling Refresh() afterwards?
If wxPython has a grid demo, check its source. In the C++ sample SetDefaultCellOverflow(false) does work.
If wxPython has a grid demo, check its source. In the C++ sample SetDefaultCellOverflow(false) does work.
Use the source, Luke!
Re: prevent overlapping of columns of a grid in wxPython
Thank you for the suggestion