[wxPython] Re-generating an event

First, a proposition that may make some of you gag:

As I understand it, when a wxGrid control has row labels (and then
only) left-clicking on one of these labels highlights the entire row
associated with the label.

Suppose I would like to highlight an entire row when the user left-
clicks on a cell other than a label?

One way to do this would be to code an event handler that would
respond to the left-click event by regenerating the incoming event
with a 'column' value of -1 (rather than the actual number of the
column on which the user clicked).

Can someone say, how does one:

1. generate one of the standard events?
2. learn of the properties and methods of these events, preferably
without the need to read through a few thousand lines of C++ code?

If you have some comment about my intended use of this
technique then I'd enjoy reading that too.

Thanks very much for any help.

Bill

As I understand it, when a wxGrid control has row labels (and then
only) left-clicking on one of these labels highlights the entire row
associated with the label.

Suppose I would like to highlight an entire row when the user left-
clicks on a cell other than a label?

One way to do this would be to code an event handler that would
respond to the left-click event by regenerating the incoming event
with a 'column' value of -1 (rather than the actual number of the
column on which the user clicked).

Or just catch EVT_GRID_SELECT_CELL and call grid.SelectRow(event.GetRow())

Can someone say, how does one:

1. generate one of the standard events?

Just create an instance of the event and send it with

    window.GetEventHandler().ProcessEvent()

2. learn of the properties and methods of these events, preferably
without the need to read through a few thousand lines of C++ code?

Many of the event classes are documented. Unfortunatly the events for the
grid are not.

···

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