"Pushing" Data to Modules
Rich Shepard
rshepard at appl-ecosys.com
Fri Dec 1 13:55:19 PST 2006
I now know how to use a generic 'config.py' module to make variables
visible to all the modules in my application. Each module can "pull" the
values it needs from this universally-visible module, and that's working
well.
However, is there a way of "pushing" data to the various modules?
Specifically, each module is a wx.Notebook() page with widgets for data
belonging to different parts of the overall model. Within each notebook page
I successfully enter new or changed values of the widgets and store those in
the model database when the "Save" button is pressed. My difficulties are
with loading each of those widgets with data retrieved from an existing
model database when it's opened.
One module, the one with general descriptive information on the model, has
the "Open" button and bound method. It works as far as displaying retrieved
data on its own notebook page, but I have not figured out how to force the
data onto the other pages since they don't have the equivalent of the "Open"
button's method.
Each module sets up the appropriate widgets, but does not have a bound
method to fill the display. I could create such a method and use it to call
the data retrieved by the dbMethods.py module, but to what is it bound? Is
there a way to propagate the OnOpenDB() call to all modules?
Puzzled,
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the wxpython-users
mailing list