wxgrid selection

Why does the following code not work with the wxGrid on Linux? valuestwo is a 0 length array and so is values.

valuestwo = self.m_grid.GetSelectedCells()
values = self.m_grid.GetSelectedRows()
selectedRowIndex = self.m_grid.SelectedRows[0]


A complete sample that shows the problem would be helpful.

···

Allan Edwards wrote:

    Why does the following code not work with the

wxGrid on Linux? valuestwo is a 0 length array and so is
values.

valuestwo = self.m_grid.GetSelectedCells()
values = self.m_grid.GetSelectedRows()
selectedRowIndex = self.m_grid.SelectedRows[0]
-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com

I figured out my issue… I needed to run the 3.x wxpython! I was going against 2.8!

···

On Monday, April 27, 2015 at 12:10:57 PM UTC-5, Tim Roberts wrote:

Allan Edwards wrote:

    Why does the following code not work with the

wxGrid on Linux? valuestwo is a 0 length array and so is
values.

valuestwo = self.m_grid.GetSelectedCells()
values = self.m_grid.GetSelectedRows()
selectedRowIndex = self.m_grid.SelectedRows[0]
A complete sample that shows the problem would be helpful.
-- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.