From 31591ecceb7865bf5d1e3f927d3cc5d4a3b399dd Mon Sep 17 00:00:00 2001 From: Gregory Davis Date: Thu, 5 Jul 2018 12:02:21 -0700 Subject: [PATCH 1/2] Updated widgets.py to allow display of Feat with an offset value (degC). --- lantz/ui/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lantz/ui/widgets.py b/lantz/ui/widgets.py index 049e989..23cf0f0 100644 --- a/lantz/ui/widgets.py +++ b/lantz/ui/widgets.py @@ -822,7 +822,7 @@ def value(self): """Get widget value and scale by units. """ if self._units: - return super().value() * self._units + return Q_(super().value(),self._units) return super().value() def setValue(self, value): From ae23dc4dd6389f4e8aa1804b6254fd1bcb65510e Mon Sep 17 00:00:00 2001 From: Gregory Davis Date: Thu, 2 Aug 2018 08:18:45 -0700 Subject: [PATCH 2/2] Add imports from colorama to fix logging exceptions. --- lantz/log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lantz/log.py b/lantz/log.py index aec47e3..35175ec 100644 --- a/lantz/log.py +++ b/lantz/log.py @@ -16,6 +16,7 @@ import struct import logging import threading +from colorama import Fore, Back, Style from logging import DEBUG, INFO, WARNING, ERROR, CRITICAL from logging.handlers import SocketHandler, DEFAULT_TCP_LOGGING_PORT, DEFAULT_UDP_LOGGING_PORT