From: James B. <bi...@cs...> - 2006-08-25 20:42:17
|
So in a previous email I asked how I could have imported modules be in the same scope: %module test %import "parent.i" %import "child.i" This leaves all the code in parent.i and child.i in test.parent and test.child respectively. I wanted the stuff in test.parent and test.child to be scoped under test. Instead of test.child.Child() and test.parent.Parent(), I wanted test.Child() and test.Parent(). Robin Dunn from the wxPython list suggested I add "from child import *" and "from parent import *" to the python code. Inside test.py I see at the end: import parent import child Is there a way I can change that from "import parent" to "from parent import *"? Thanks, James |