From 5b44dd7e30b68e9e469d4be04d1c0bf0390e2b5b Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Tue, 27 Feb 2024 19:42:19 +0100 Subject: [PATCH] Added file for the GUI system. --- ui.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ui.py diff --git a/ui.py b/ui.py new file mode 100644 index 0000000..a3d853c --- /dev/null +++ b/ui.py @@ -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)