Importing Module To Use Variables In A Second Module

rshepard at nospam.appl-ecosys.com rshepard at nospam.appl-ecosys.com
Thu Sep 27 20:13:16 EDT 2007


On 2007-09-27, Steve Holden <steve at holdenweb.com> wrote:

> Self-evidently you are *not* creating the variables you think you are in
> the variablePage module. Have you tried an interactive test? Try this at
> the interpreter prompt:
>
> >>> import variablePage
> >>> dir(variablePage)
>
> and you will see exactly what names the module is defining in its 
> namespace. You could also try
>
> >>> variablePage.__file__
>
> to make sure that you are importing the module you think you are.

Steve,

  Many thanks.

  I _think_ the problem is that the wxPython objects are not instatiated
when I'm trying to access the variables. Since they are instance variables,
they just don't exist yet.

  Learning just when wxPython objects are instantiated is something I've
just begun to do.

Rich



More information about the Python-list mailing list