Importing Module To Use Variables In A Second Module

rshepard at rshepard at
Fri Sep 28 02:13:16 CEST 2007

On 2007-09-27, Steve Holden <steve at> 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.


  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.


More information about the Python-list mailing list