move the log file viewer to its own plugin

We plan to have multiple different types of tabs.
This commit is contained in:
2021-12-04 16:53:02 +01:00
parent e255d157d8
commit 614968ca4b
9 changed files with 106 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
from types import ModuleType
from typing import Dict
from typing import Dict, Optional
from inspect import isclass
from pkgutil import iter_modules
from pathlib import Path
@@ -46,11 +46,11 @@ class PluginRegistry():
return PluginRegistry.modules.copy()
@staticmethod
def executeSingle(function_name: str, *args):
def execute_single(function_name: str, *args) -> Optional[any]:
return PluginRegistry._execute(function_name, True, *args)
@staticmethod
def execute(function_name: str, *args) -> []:
def execute(function_name: str, *args) -> [any]:
return PluginRegistry._execute(function_name, False, *args)
@staticmethod