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)