Skip to content

Commit 7c95840

Browse files
Reduce warning level
1 parent f12494e commit 7c95840

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

mats/tkwidgets.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def __init__(
122122
relief=_relief, padx=_label_padding, pady=_label_padding
123123
)
124124

125+
self._string_length_warning_issued = False
125126
self._update()
126127

127128
def _update(self):
@@ -218,10 +219,13 @@ def _update(self):
218219
if value_str and len(value_str) <= max_length:
219220
label_text = f"{self._label_text}\n({value_str.strip()})"
220221
else:
221-
self._logger.info(
222-
"the value string length is greater than "
223-
f"{max_length} and, thus, will not be shown on the GUI"
224-
)
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
225229
label_text = self._label_text
226230

227231
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.3"
3+
version = "0.74.4"
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)