So am currently writing a simple settings page for a project... and so this is what the page looks like:
class Settings(object):
def _init_(self):
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230,230,230)
st = Settings()
print(st.screen_width)
and so I followed the instruction on what this other question: Accessing a class' member variables in Python? but I still have issues accessing a single variable...
this is the error I get:
it basically says that the current class (which is "Settings") doesn't have an attribute called "screen_width"
am starting to think its my text editor... I use VSCode but I don't know maybe am missing something?