So I have two python scripts- main.py and gui.py in the same directory/folder. But when I try to import main.py
in gui.py
, it doesn't work. It's the same when I try to import gui.py
in main.py
I tried it this way
from main import *
I saw several questions about similar things but nothing works. Please help and thanks in advance! I'm using Pycharm and Python 3.10