Skip to content

Commit 490ba17

Browse files
Fix max_length attribute in tkwidgets
1 parent b669787 commit 490ba17

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

mats/tkwidgets.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ def __init__(
8686
for test in self._sequence.tests:
8787
self._test_status_frames.append(
8888
_TestLabel(
89-
status_frame, test, loglevel=self._logger.getEffectiveLevel()
89+
status_frame, test,
90+
max_length=self._max_length,
91+
loglevel=self._logger.getEffectiveLevel()
9092
)
9193
)
9294

@@ -145,10 +147,12 @@ class _TestLabel(Label):
145147
A single instance of a test label frame.
146148
"""
147149

148-
def __init__(self, parent, test: Test, loglevel=logging.INFO):
150+
def __init__(self, parent, test: Test, max_length: int = 12,
151+
loglevel=logging.INFO):
149152
self._logger = logging.getLogger(self.__class__.__name__)
150153
self._logger.setLevel(loglevel)
151154

155+
self._max_length = max_length
152156
self._parent = parent
153157
super().__init__(self._parent)
154158

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