From 46aace37db5c035a6d6b432db261dc7c417456f4 Mon Sep 17 00:00:00 2001 From: Markus Otto Date: Sat, 22 Aug 2015 19:15:22 +0200 Subject: make protocol work, some gui stuff --- voctocore/lib/notifications.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 voctocore/lib/notifications.py (limited to 'voctocore/lib/notifications.py') diff --git a/voctocore/lib/notifications.py b/voctocore/lib/notifications.py new file mode 100644 index 0000000..1e101e1 --- /dev/null +++ b/voctocore/lib/notifications.py @@ -0,0 +1,14 @@ +#!/usr/bin/python3 + +# If you know a better way to do this, go for it... + +import logging + +log = logging.getLogger("Notifications") +controlserver = None + +def notify_all(msg): + try: + controlserver.notify_all(msg) + except Exception as e: + log.warn(e) -- cgit v1.2.3