У меня такое ощущение, что ответ будет очень очевидным, но я получаю вышеуказанную ошибку. Я попытался поставить скобки, чтобы назвать класс, но это не исправило ошибку.
Модуль настроек:
class Settings:
def __init__(self):
self.title = "Historic City Builder"
class Screen:
def __init__(self):
self.width = 1000
self.height = 650
class Colors:
def __init__(self):
self.red = (255, 0, 0)
self.green = (0, 255, 0)
self.blue = (0, 0, 255)
self.black = (0, 0, 0)
self.white = (255, 255, 255)
Основной:
import pygame as pg
from Settings import Settings
from Settings import Screen
from Settings import Colors
On = True
clock = pg.time.Clock()
pg.init()
MainDisplay = pg.display.set_mode((Screen.width, Screen.height))
pg.display.set_caption(Settings.title)