Page 1 of 1

prevent overlapping of columns of a grid in wxPython

Posted: Tue Sep 27, 2016 5:41 am
by pikkip
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

Posted: Tue Sep 27, 2016 6:48 am
by doublemax
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.

Re: prevent overlapping of columns of a grid in wxPython

Posted: Fri Oct 21, 2016 5:06 am
by pikkip
Thank you for the suggestion