Skip to content

Commit

Permalink
Don't convert options to a tuple and back
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbende authored Sep 26, 2024
1 parent cb4bde1 commit 295bef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tksvg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 295bef0

Please # to comment.