From 3eb472870a7c00c3320b4e03cb558cf5d5133e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=83=E5=9E=9A?= <146716153+2002yy@users.noreply.github.com> Date: Thu, 24 Sep 2026 23:15:47 +0800 Subject: [PATCH] fix(ui): normalize Tk padding value --- ui/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app.py b/ui/app.py index 04c0615..abb73e6 100644 --- a/ui/app.py +++ b/ui/app.py @@ -306,7 +306,7 @@ def _calc_content_height(self) -> int: if isinstance(pad, int): pad_bottom = pad elif len(pad) >= 4: - pad_bottom = pad[3] + pad_bottom = int(str(pad[3])) else: pad_bottom = 0 return max_bottom + pad_bottom @@ -988,4 +988,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file