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