Assigning values to dialog box entry widgets.....................
Jeff Epler
jepler at unpythonic.net
Tue May 6 15:37:51 EDT 2003
Your pasted code went horribly wrong with whitespace missing. But it
sounds like you need to read about two things:
First, if you run your program as 'python a.py', there is no 'module a'
automatically created --- instead, the contents of a.py are executed in
'module __main__'. So if b imports a, it gets essentially a second copy
of the module (but with a different name).
Second, even if the modules were 'a' and 'b', this is a case of the
so-called "circular import", since each depends on the other. This can
cause trouble.
Jeff
More information about the Python-list
mailing list