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 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):