From 64c81fe6aa1e59f6d4c575a558c8afbdddf6d583 Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Sun, 12 Apr 2026 00:41:07 +0200 Subject: [PATCH] style: remove `photolist` from `cardset_viewer` as it is unused --- scripts/cardset_viewer.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/cardset_viewer.py b/scripts/cardset_viewer.py index 103489722..720d0bd50 100755 --- a/scripts/cardset_viewer.py +++ b/scripts/cardset_viewer.py @@ -79,8 +79,6 @@ def create_cs_list(ls): def show_cardset(*args): - global photolist - if list_box.curselection(): cs_name = list_box.get(list_box.curselection()) @@ -101,13 +99,10 @@ def show_cardset(*args): x_pos, y_pos, number = 0, 0, 0 - photolist = [] - for file in ls: image = Image.open(file) photo = ImageTk.PhotoImage(image, master=root) - photolist.append(photo) image_width = photo.width() image_height = photo.height()