27 lines
731 B
Python
27 lines
731 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Any, Self
|
|
from Interfaces.Application.AnPInterface import AnPInterface
|
|
from Models.PrintTypeModel import PrintTypeModel
|
|
|
|
class PrintTypesManager:
|
|
|
|
def __init__(self:Self, anp:AnPInterface) -> None:
|
|
self.anp:AnPInterface = anp
|
|
self.__print_types:list[PrintTypeModel] = [
|
|
PrintTypeModel(["unkn", "unknown"], "#888")
|
|
]
|
|
|
|
def get(self:Self, _type:str) -> str:
|
|
|
|
subset:list[str]
|
|
|
|
for subset in self.__print_types:
|
|
if _type in subset:
|
|
return subset[0]
|
|
return self.__print_types[0][0]
|
|
|
|
def add(self:Self, inputs:Any|None, custom_options:int = 0) -> None:
|
|
pass
|