Page 1 of 1

can grid size be dynamic in wxpython

Posted: Wed Oct 19, 2016 10:29 am
by pikkip
Number of lines to be inserted in grid is not known prior. I will know it only after computation. Is there any means by which i can skip CreateGrid using wxpython???

Re: can grid size be dynamic in wxpython

Posted: Wed Oct 19, 2016 11:01 am
by doublemax
You can add columns and rows dynamically using wxGrid::AppendCols and wxGrid::AppendRows.

But i don't know if you can skip CreateGrid completely. Maybe you have to create at least a 1x1 grid.

Re: can grid size be dynamic in wxpython

Posted: Thu Oct 20, 2016 5:15 am
by pikkip
Thank you :D