[[wxPython] wxGrid & Selecting large areas.]

> How do you select more than one cell using wxGrid? I can't seem

to

> select more than one cell at a time. Am I just missing something?

Try to drag woth mouse.

Niki Spahiev
e-mail: niki@vintech.bg

Thanks for the brilliant insight. Really. That was a nearly
blinding flash of the obvious. However, if I were that stupid, I would
not be writing. [no insult intended]. More pointedly:

When use a wxGrid object, how do I allow the user to select a large
array of cols / rows? And how does wxPython return that to my
application? I can't seem to figure out how to catch a range. I
admit I have not done much testing, and I am still hacking, but I
thought maybe I was missing something.

thanks,
  Joshua

Python: 1.52
wxPython: 2.1.13

using MS bloody Windows.

···

"Mailing List Drop Box" <lkml@srci.iwpsd.org> wrote:

When use a wxGrid object, how do I allow the user to select a large
array of cols / rows? And how does wxPython return that to my
application? I can't seem to figure out how to catch a range.

Catch the EVT_GRID_RANGE_SELECT event. See the demo for an example.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

When use a wxGrid object, how do I allow the user to select a large
array of cols / rows? And how does wxPython return that to my
application? I can't seem to figure out how to catch a range. I
admit I have not done much testing, and I am still hacking, but I
thought maybe I was missing something.

Python: 1.52
wxPython: 2.1.13

If you switch to a newer version of wxPython (2.1.15 is the current one),
you'll be able to follow Robin's advice and use EVT_GRID_RANGE_SELECT.
I think that you have to do it by hand if you are using the older versions
(like 2.1.13).

If you are using the Grid widget, you want to upgrade anyway, because the
newer one (in 2.1.15) is not fully backwards compatible with the older
one.

Hope this is helpful,
-greg

>wxPython: 2.1.13

If you switch to a newer version of wxPython (2.1.15 is the current one),

I didn't notice that version number. Thanks for catching that Greg!

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!