Skip to content

Commit 6dfdd34

Browse files
Fix bug in tk
1 parent d64d546 commit 6dfdd34

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

mats/tkwidgets.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def __init__(
4141
):
4242
self._logger = logging.getLogger(self.__class__.__name__)
4343
self._logger.setLevel(loglevel)
44-
self._string_length_warning_issued = False
4544

4645
self._parent = parent
4746
super().__init__(self._parent)
@@ -219,13 +218,10 @@ def _update(self):
219218
if value_str and len(value_str) <= max_length:
220219
label_text = f"{self._label_text}\n({value_str.strip()})"
221220
else:
222-
if not self._string_length_warning_issued:
223-
self._logger.info(
224-
"the value string length is greater than "
225-
f"{max_length} and, thus, will not be shown on the GUI"
226-
)
227-
else:
228-
self._string_length_warning_issued = True
221+
self._logger.debug(
222+
"the value string length is greater than "
223+
f"{max_length} and, thus, will not be shown on the GUI"
224+
)
229225
label_text = self._label_text
230226

231227
self.config(background=color, text=label_text)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mats"
3-
version = "0.74.5"
3+
version = "0.74.6"
44
description = "Manufacturing Automated Test System, a framework for building device testing quickly and consistently"
55
authors = [
66
{name = "Jason R. Jones", email = "slightlynybbled@gmail.com"},

0 commit comments

Comments
 (0)