From 9432a7dc813afea9f400a56de8004db1cc837d7d Mon Sep 17 00:00:00 2001 From: Axw Date: Tue, 5 Nov 2024 01:24:17 +0800 Subject: [PATCH] Initial commit --- module/eye_display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/eye_display.py b/module/eye_display.py index 5d69de9..fb9099e 100644 --- a/module/eye_display.py +++ b/module/eye_display.py @@ -56,8 +56,8 @@ def __init__(): canvas.coords(layer[i][dynamic['eyes'][index]["selected"]])[0]) - screen_width / 2 + files[i][ dynamic['eyes'][index]["selected"]].width() / 2) / screen_width * 2 dynamic['eyes'][i]["ny"] = (int( - canvas.coords(layer[i][dynamic['eyes'][index]["selected"]])[1]) - screen_height / 2 + files[ - i][dynamic['eyes'][index]["selected"]].height() / 2) / screen_height * 2 + canvas.coords(layer[i][dynamic['eyes'][index]["selected"]])[1]) - screen_height / 2 + files[i][ + dynamic['eyes'][index]["selected"]].height() / 2) / screen_height * 2 if len(layer[i]) > 1: for j in layer[i]: canvas.moveto(j, screen_width, screen_height)