Skip to content

Commit 295bef0

Browse files
authored
Don't convert options to a tuple and back
1 parent cb4bde1 commit 295bef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tksvg/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def configure(self, **kwargs):
4949
if kwargs:
5050
return tk.PhotoImage.configure(self, **kwargs)
5151

52-
options = ()
52+
options = ""
5353
for key, value in svg_options.items():
5454
if value is not None:
55-
options += (f"-{key}", str(value))
55+
options += f"-{key} {value}"
5656

57-
self.tk.eval("%s configure -format {svg %s}" % (self.name, " ".join(options)))
57+
self.tk.eval("%s configure -format {svg %s}" % (self.name, options))
5858

5959
config = configure
6060

0 commit comments

Comments
 (0)