Added file for the GUI system.

This commit is contained in:
The Wobbler 2024-02-27 19:42:19 +01:00
parent ae87f61aa9
commit 5b44dd7e30

14
ui.py Normal file
View file

@ -0,0 +1,14 @@
#!/usr/bin/python3
class UI:
def __init__(self):
self.current_page = "main_menu"
self.main_menu = Page()
class Page:
def __init__(self, elements: dict=None):
if not elements is None:
for name, element in elements.items():
setattr(self, name, element)