I'm trying to import the User class from a file called gui.py into another called snake.py. I want to import the class so that I can use ,a method within the class and an instance of the class called current_user. But when I do:
from gui import User
It imports everything from gui.py. Does anyone know where I've gone wrong and what I can do to fix this? I'm new to working with multiple files in Python and this is quite confusing to me. The files for this are available at: https://github.com/VladRadoi08/Snake-LoginUI
Thanks!