Skip to content

Commit

Permalink
Handle tuple values from ttk widgets (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ObaraEmmanuel committed Jan 27, 2024
1 parent 03b447f commit 34f1e3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion studio/lib/pseudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ def get_prop(self, prop):
intercept = self._intercepts.get(prop)
if intercept:
return intercept.get(self, prop)
return self[prop]
prop = self[prop]
if isinstance(prop, (tuple, list)):
prop = " ".join(map(str, prop))
return prop

def configure(self, options=None, **kw):
for opt in list(kw.keys()):
Expand Down

0 comments on commit 34f1e3b

Please sign in to comment.