Kit Manager: fixed-width columns, only Kit name stretches

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-09 08:02:08 +03:00
co-authored by Claude Opus 4.6
parent 703e2faa5c
commit 943ec1a844
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it.
import configparser import configparser
import os import os
VERSION = "0.0.0.066" VERSION = "0.0.0.067"
PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties") PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties")
DEFAULT_GRID_SIZE = 10 DEFAULT_GRID_SIZE = 10
DEFAULT_ADD_TIMESTAMP = True DEFAULT_ADD_TIMESTAMP = True
+6 -6
View File
@@ -218,14 +218,14 @@ class KitsPanel:
) )
self.table.heading("#0", text="") self.table.heading("#0", text="")
self.table.column("#0", width=32, minwidth=32, stretch=False, anchor="center") self.table.column("#0", width=32, minwidth=32, stretch=False, anchor="center")
for column, heading, width, anchor in [ for column, heading, width, stretch, anchor in [
("name", "Kit name", 200, "w"), ("name", "Kit name", 200, True, "w"),
("installed", "Installed", 105, "w"), ("installed", "Installed", 105, False, "w"),
("latest", "Latest", 105, "w"), ("latest", "Latest", 105, False, "w"),
("action", "Action", 300, "w"), ("action", "Action", 300, False, "w"),
]: ]:
self.table.heading(column, text=heading, anchor=anchor) self.table.heading(column, text=heading, anchor=anchor)
self.table.column(column, width=width, anchor=anchor, stretch=(column == "action")) self.table.column(column, width=width, anchor=anchor, stretch=stretch)
scrollbar = ttk.Scrollbar(self.frame, orient=tk.VERTICAL, command=self.table.yview) scrollbar = ttk.Scrollbar(self.frame, orient=tk.VERTICAL, command=self.table.yview)
self.table.configure(yscrollcommand=scrollbar.set) self.table.configure(yscrollcommand=scrollbar.set)