nos0s/main.py

12 lines
251 B
Python

class MenuState:
def __init__(self, title, desc, parent):
self.title = title
self.description = desc
self.parent = parent
self.subs = []
def add_submenu(self, menu):
self.subs.append(menu)