From 7f685dd8a42a66e394f4b65fb38c363b90d46533 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Tue, 11 Jan 2022 17:31:58 +0100 Subject: [PATCH] Don't shrink constant-width columns --- gui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui.py b/gui.py index 71f171d..e7322a2 100644 --- a/gui.py +++ b/gui.py @@ -596,6 +596,8 @@ class ChannelList: iids = self._table.get_children() if iids: # table needs to have at least one item for column in columns: + if column in self._const_width: + continue width = max(self._measure(self._table.set(i, column)) for i in iids) self._table.column(column, minwidth=width, width=width) self._redraw()