mirror of https://github.com/akuker/RASCSI.git
17 lines
391 B
Python
17 lines
391 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"""
|