Adding rows in a Grid works OK. When I try to delete a column or a row
in a Grid, it does not work as expected.
The signature of the DeleteCols is as follows:
bool DeleteCols(self, pos, numCols, updateLabels)
The pos parameter is not taken into account. No matter what value it
takes,
always the last column/row is deleted. Note that I am not using
PyGridTableBase model.
Tested on Linux and Windows XP, wxPython version 2.9.3.1
Please make a runnable, small as possible, sample application that demonstrates the problem. MakingSampleApps - wxPyWiki
···
On 3/19/12 1:41 PM, jan bodnar wrote:
Hello,
Adding rows in a Grid works OK. When I try to delete a column or a row
in a Grid, it does not work as expected.
The signature of the DeleteCols is as follows:
bool DeleteCols(self, pos, numCols, updateLabels)
The pos parameter is not taken into account. No matter what value it
takes,
always the last column/row is deleted. Note that I am not using
PyGridTableBase model.
Tested on Linux and Windows XP, wxPython version 2.9.3.1
While creating the sample application I found the catch.
Unless we set our own labels, the column/row names are automatically
updated when we delete them. And it looks like the last one is
deleted.
···
On Mar 20, 7:36 pm, Robin Dunn <ro...@alldunn.com> wrote:
On 3/19/12 1:41 PM, jan bodnar wrote:
> Hello,
> Adding rows in a Grid works OK. When I try to delete a column or a row
> in a Grid, it does not work as expected.
> The pos parameter is not taken into account. No matter what value it
> takes,
> always the last column/row is deleted. Note that I am not using
> PyGridTableBase model.
> Tested on Linux and Windows XP, wxPython version 2.9.3.1
Please make a runnable, small as possible, sample application that
demonstrates the problem.MakingSampleApps - wxPyWiki
--
Robin Dunn
Software Craftsmanhttp://wxPython.org