Re: Importing from a module which contains more than one Class...

2009-05-11 Thread GKalman
alex23 wrote: > > GKalman wrote: >> from MyClass import * >> from MyOtherClass import *     # error msg: no such module! >> >> As I mentioned above,  the code for MyClass & MyOtherClass is in the same >> file . This program only works with a single Clas

Importing from a module which contains more than one Class...

2009-05-10 Thread GKalman
OS= MS Vista File structure: .../Module (i.e a Folder with 2 sub-folders) .../Module_Class(sub-folder #1) /MyClass.py .../Module_Class_Testing (sub_folder #2) /module_class_driver.py Here is the code for the two (simplified) Python files: #this is modul