Kit Manager: fixed-width columns, only Kit name stretches
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-6
@@ -218,14 +218,14 @@ class KitsPanel:
|
||||
)
|
||||
self.table.heading("#0", text="")
|
||||
self.table.column("#0", width=32, minwidth=32, stretch=False, anchor="center")
|
||||
for column, heading, width, anchor in [
|
||||
("name", "Kit name", 200, "w"),
|
||||
("installed", "Installed", 105, "w"),
|
||||
("latest", "Latest", 105, "w"),
|
||||
("action", "Action", 300, "w"),
|
||||
for column, heading, width, stretch, anchor in [
|
||||
("name", "Kit name", 200, True, "w"),
|
||||
("installed", "Installed", 105, False, "w"),
|
||||
("latest", "Latest", 105, False, "w"),
|
||||
("action", "Action", 300, False, "w"),
|
||||
]:
|
||||
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)
|
||||
self.table.configure(yscrollcommand=scrollbar.set)
|
||||
|
||||
Reference in New Issue
Block a user