Added file for the GUI system.
This commit is contained in:
parent
ae87f61aa9
commit
5b44dd7e30
1 changed files with 14 additions and 0 deletions
14
ui.py
Normal file
14
ui.py
Normal 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)
|
Loading…
Reference in a new issue