mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-20 07:29:30 +00:00
15 lines
389 B
Python
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"""
|