Mantiene leggibili le griglie inventario anche nelle finestre piccole

This commit is contained in:
2026-10-21 15:39:24 +02:00
parent 588bf6ce73
commit 85b11834b6
2 changed files with 10 additions and 3 deletions

View File

@@ -74,6 +74,13 @@ class InventoryGuiTests(unittest.TestCase):
for suffix in ("ready", "formula", "legend.A", "legend.B", "legend.C", "legend.X"):
self.assertTrue(catalog[lang]["inventory." + suffix])
def test_small_window_keeps_both_grids_visible(self):
self.win.geometry("900x560+4000+0")
self.win.deiconify()
self.root.update_idletasks()
self.assertGreaterEqual(self.win.tree.winfo_height(), 80)
self.assertGreaterEqual(self.win.lot_tree.winfo_height(), 80)
def test_selection_populates_lot_and_container_details(self):
self.win._loaded(self.sample())
self.win.tree.selection_set("0")