I have a grid object (it doesn’t use the PyGridTableBase class for grid data. It is a regular grid)
When I append rows to this grid, it doesn’t display the newly appended rows automatically. After appending rows, when I change the size of the main window with mouse, the new rows are displayed.
You could try the my_gid.MakeCellVisible() method.
···
On 10/08/14 09:52, steve wrote:
Hi,
I have a grid object (it doesn't use the PyGridTableBase class
for grid data. It is a regular grid)
When I append rows to this grid, it doesn't display the newly
appended rows automatically. After appending rows, when I change
the size of the main window with mouse, the new rows are
displayed.
I do this:
my_grid.AppendRows(5)
my_grid.Layout()
my_grid.Refresh()
Layout()
and Refresh()
methods didn't help.
How will I achieve this? Why does it display the newly appended
rows when I change the size of the main window with mouse?
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
OK, I had to call SetSizerAndFit() method to make the sizer fit the grid’s new dimensions.
···
On Sunday, August 10, 2014 12:52:33 PM UTC+3, Gadget Steve wrote:
On 10/08/14 09:52, steve wrote:
Hi,
I have a grid object (it doesn't use the PyGridTableBase class
for grid data. It is a regular grid)
When I append rows to this grid, it doesn't display the newly
appended rows automatically. After appending rows, when I change
the size of the main window with mouse, the new rows are
displayed.
I do this:
my_grid.AppendRows(5)
my_grid.Layout()
my_grid.Refresh()
Layout()
and Refresh()
methods didn't help.
How will I achieve this? Why does it display the newly appended
rows when I change the size of the main window with mouse?
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,