I have a wxPython app that I have inherited. It has a modal form that
has many fields that are usually filled by the user. Now I have been
asked to make a mod where the form is brought up with all the fields
pre filled in based on a selection from a previous form. I have this
working for everything but one field that's a grid.
This grid that gets populated when the user enters values in 3 other
fields and then they can select items from the grid. When I populate
the 3 fields programmatically and then call the callback associated
with the fields and then display the form the grid is filled in. But I
need to select one row from the grid before displaying the form. But
in my code the grid does not have any data in it until I call
ShowModal (when I step through it at some point it gets populated),
This is different behavior from every other type of widget - there are
many combo boxes that when selected determine the content of the rest
of the form. For those when I set the combo value and call the
callback the just instantiated fields are immediately available to me.
I even tried populating the grid myself but that seemed to have no
effect.
Is there some way I can get at the grid data and select a row before I
call ShowModal?
TIA!
-larry