Redhat 7.1
Python 2.2.1
wxPython 2.3.4.2
I have run into a couple bugs.
The first one can be reproduced by adding the following lines to the
GridHugeTable.py file.
class HugeTableGrid(wxGrid):
def __init__(self, parent, log):
wxGrid.__init__(self, parent, -1)
table = HugeTable(log)
self.SetTable(table, true)
EVT_GRID_CELL_RIGHT_CLICK(self, self.OnRightDown) #added
def OnRightDown(self, event): #added
print self.GetSelectedRows() #added
When no rows are selected, this prints the expected empty list. When
any rows are selected, any right click, on any cell, causes a core dump.
No debug or error messages.. just a quick trip back to the shell prompt.
The second bug might not be a bug, but it was unexpected behavior. It
deals with selecting rows. In the same grid used above, if I Left-Click
on row 8, and then Shift-Left-Click on row 15, I would expect rows 8
through 15 to be selected. In actuality, rows 1 through 15 are
selected.
Now if I move the cell selection down to row 8 and repeat the above
sequence, then the expected rows (8 through 15) are selected. Is it
normal for multiple row selection to be dependent on where the cell
selection is?
···
--
Bryan Muir <bmuir@eyrie.gsfc.nasa.gov>