[wxPython-users] Re: Accessing Variables From Other Modules

Rich Shepard rshepard at appl-ecosys.com
Thu Sep 27 11:27:15 PDT 2007


On Thu, 27 Sep 2007, Steve Holden wrote:

> Modules don't have methods. What does self refer to in the code below?

   The variable in the class where I want to assign the imported value.

> You need to rewrite that statement as multiple statements to try and get a
> handle on which expression is causing the problem. It's probably the call
> to modVar(), but how can we know?

   More research taught me what I did incorrectly, and what to do to get the
results I want. That is, rather than importing the entire class from the
source module, import only the variables I want to display.

Thanks, Steve,

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |         Accelerators(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863




More information about the wxpython-users mailing list