I want to import a function named ret() from a module called mainprog into another module named windw.
So I did it like this in the windw module:
from mainprog import ret
This is supposed to work right?
But there is an infinite loop in the mainprog module.
So, even without calling the function I imported, it just keeps loading forever when I try to run the windw module.
So I guess it runs the whole mainprog module when I import? I need help to avoid this.
 
     
    