multiple selections in grid

Hello List,

i’m seeing some unusual behaviour when selection multiple blocks in a grid. The first block gets highlighted normally when selecting it with left mouse button click. The next blocks (marked while holding down control key) will only get the first and last selected cells of the block highlighted.

And also the selection info from the grid is wrong:

The returned row/col values from GetSelectionBlockTopLeft()for the first block are correct, but for the following blocks it will return the values for last cell where the block marking ended.

The returned row/col values from GetSelectionBlockBottomRight() for the first block are correct, but for the following blocks it will return the same values as GetSelectionBlockTopLeft().

GetSelectedCells() will return row/col values for the second and following blocks. These values are those where the blockselection was begun.

This is on:

Windows 7 (64Bit)

Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32

wxPython 3.0.2.0 msw (classic)

Is this a known bug and is there a way to workaround it?

Torsten

Aufnahme 03.wmv (110 KB)

grid_selection.py (1.62 KB)