OP-2414 - added wrapper

If ConsoleAppTray wont be viable this might be easier to modify
This commit is contained in:
Petr Kalis 2022-01-27 19:08:47 +01:00
parent da10a8a283
commit bfd91e0ec8

View file

@ -35,6 +35,9 @@ self.port = None
self.log = logging.getLogger(__name__)
self.log.setLevel(logging.DEBUG)
def execute_in_main_thread(func, *args, **kwargs):
ConsoleTrayApp.instance().execute_in_main_thread(func, *args, **kwargs)
def signature(postfix="func") -> str:
"""Return random ECMA6 compatible function name.