[wxPython-users] Re: A Question of Style
Rich Shepard
rshepard at appl-ecosys.com
Fri Oct 20 15:32:34 PDT 2006
On Fri, 20 Oct 2006, Don Dwiggins wrote:
> I did something along this line in an application that draws together
> several complex interactive steps, with each step "living" in a notebook
> page. There's a file for the application itself, a file for each page,
> and for some pages, files for their model classes, separating UI concerns
> from database access concerns.
Don,
This is similar to how I want to restructure my application.
> I used XRCed to create the GUI. For each notebook page panel, I specified a
> subclass of the form modulename.classname, e.g.
> "AutoCleaningPanel.AutoCleaningPanel". Then, in the main file, I added an
> import statement for each, e.g., "from AutoCleaningPanel import
> AutoCleaningPanel" (in this case, the module and class names are identical).
> This was enough to allow the XRC loader to find the classes.
I've not looked at all at XRC. I have discovered that if I put all the
methods in a file by themselves, and import them in the main project file as
'from wxMethods import *', they're not seen by python. Perhaps the methods
need to be in a class of their own; I'll look into the reason.
Thanks,
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