Hey all,
What does it mean when you get an error that says ImportError: no module named main. I wasn't aware I was trying to import a module named main. I don't even have a module named main.
I'm using Jython and I'm reflecting on an instance of a python class in java. Would that throw the error?
In python I have this:
map.put("ball",[ballCollisionListener()])
map.put("brick",[brickCollisionListener()])
map.put("paddle",[paddleCollisionListener()])
where these are all types of listeners that are python classes and that are of the java type CollisionListener (a custom class I made up).
In java I have this:
for(EventListener l:myMap.get(i.getType()))
{
Class c = l.getClass();
EventListener newL=null;
try
{
newL = (EventListener)c.newInstance();
}
#more code
}