from header import Header from pybackground import draw_background from state import * from level import Level from ChooseLevel import ChooseLevel root = tkinter.Tk() width, height = root.winfo_screenwidth(), root.winfo_screenwidth() os.environ['SDL_VIDEO_CENTERED'] = '1' #height, width = 800, 600 startButton = StartButton((width // 2 - 95, height // 2 - 180, 190, 60)) nextButton = NextButton((width // 2 - 95, height // 2 - 50, 190, 60)) continueButton = ContinueButton((width // 2 - 95, height // 2 - 250, 190, 60)) menuButton = MenuButton((width - 200, 10, 190, 60)) exitButton = ExitButton((width // 2 - 95, height // 2 - 40, 190, 60)) hintButton = HintButton((width - 400, 10, 190, 60)) chooseLevelButton = ChooseLevelButton( (width // 2 - 95, height // 2 - 110, 190, 60)) headerImage = Header() levelInput = open("levelToPlayDoc.txt") maxLevel = int(levelInput.readline().strip()) levelInput.close() levelToPlay = maxLevel level = None bk = None chooseLevel = None prevScore = 0 newScore = 0