RASCSI/python/ctrlboard/src/menu/menu_builder.py
Benjamin Zeiss cd0da558c3
Initial version of the Control Board UI (#687)
Initial version of the Control Board UI (#687)
2022-02-25 21:03:36 +01:00

15 lines
389 B
Python

"""Module for creating menus"""
from abc import ABC, abstractmethod
from menu.menu import Menu
# pylint: disable=too-few-public-methods
class MenuBuilder(ABC):
"""Base class for menu builders"""
def __init__(self):
pass
@abstractmethod
def build(self, name: str, context_object=None) -> Menu:
"""builds a menu and gives it a name and a context object"""