From 295bef0a95e35b658d7399e7c3e8b23b053bd8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20D=C3=A9v=C3=A9nyi?= Date: Thu, 26 Sep 2024 18:14:28 +0200 Subject: [PATCH] Don't convert options to a tuple and back --- tksvg/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tksvg/__init__.py b/tksvg/__init__.py index ba9f4c0..e08877b 100644 --- a/tksvg/__init__.py +++ b/tksvg/__init__.py @@ -49,12 +49,12 @@ def configure(self, **kwargs): if kwargs: return tk.PhotoImage.configure(self, **kwargs) - options = () + options = "" for key, value in svg_options.items(): if value is not None: - options += (f"-{key}", str(value)) + options += f"-{key} {value}" - self.tk.eval("%s configure -format {svg %s}" % (self.name, " ".join(options))) + self.tk.eval("%s configure -format {svg %s}" % (self.name, options)) config = configure