From 91b031cf4a0c473e2c1c6f883e175df926bb6644 Mon Sep 17 00:00:00 2001 From: Samir Gupta Date: Thu, 28 Sep 2023 16:43:24 +1000 Subject: [PATCH] string id --- src/popups/OptionSelectPopup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popups/OptionSelectPopup.py b/src/popups/OptionSelectPopup.py index f4708fc..86f39df 100644 --- a/src/popups/OptionSelectPopup.py +++ b/src/popups/OptionSelectPopup.py @@ -13,7 +13,7 @@ def __init__(self, master: Misc | None, options: list[_T], callback: Callable[[_ tree = ttk.Treeview(self, show="tree") for row, option in enumerate(options): - tree.insert("", tkinter.END, row, text=display(option), open=row == 0) + tree.insert("", tkinter.END, f"{row}", text=display(option), open=row == 0) scrollbar = ttk.Scrollbar(self, orient=tkinter.VERTICAL, command=tree.yview) # type: ignore tree.configure(yscroll=scrollbar.set) # type: ignore