johnf wrote:
> I wonder if what I'm missing is the fact that somewhere the wxPython app loop 
> is started.  And it is what is causing the new namespace area??  As you can 
> see I don't understand what I'm talking about.  But it may not matter since 
> now I can use my imports.

The app.start() from your main program does indeed start the event loop, 
  making the next line in your main program not execute until the event 
loop has finished. But that really has nothing to do with namespaces: 
you can't access the names in your main namespace from your forms, 
unless you 'import main' from them. But, because of the way Python 
imports work, your forms may not be able to do that even if the main 
program is in a superdirectory.

It really isn't as insane as it sounds. In fact, it avoids a whole class 
of issues that using globals can cause in other languages such as VFP.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to