From: <bra...@om...> - 2005-06-01 13:49:15
|
I'm glad to hear it's possible to add non-PythonCard wx widgets into PythonCard. I take it that none of the normal PythonCard events will be generated by these kinds of add-ins? As in, on_mouseClick or on_closeField or on_select are all events that only come from PythonCard widgets, right? Bo Green wrote on 06/01/2005 07:02:42 AM: > > Thanks Brad. First, an aside, the grid is working fine for all but > the problem of creating and loading inside the same event handler. > Your comments were helpful, because they made me rethink the methods > and modules. I remembered a list member talking about a childWindow > problem with event handling (in their case it was trying to Raise() > the window after creating it in the same event handler). Same > problem, same solution. The solution was to move the Raise() into > the on_initialize method. I borrowed that logic, and moved my > set_grid_data() method call into the on_initialize method. I also > moved the get_grid_data() and set_grid_data() methods into > FileSpecsWin as a better style choice. Works like a charm. > |