commit | 96f502059717a692ca3abd968b26c5ea2918ad3a | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Fri May 26 08:15:51 2017 +0300 |
committer | GitHub <noreply@github.com> | Fri May 26 08:15:51 2017 +0300 |
tree | 13c5c29e2c0eb074339d30606b93d63befbf0091 | |
parent | 2bb6eb3fbbce367adefa3919b8a549eab3157571 [diff] [blame] |
[2.7] bpo-30310: tkFont now supports unicode options (e.g. font family). (#1567)
diff --git a/Lib/lib-tk/tkFont.py b/Lib/lib-tk/tkFont.py index 113c983..b245623 100644 --- a/Lib/lib-tk/tkFont.py +++ b/Lib/lib-tk/tkFont.py
@@ -47,8 +47,10 @@ def _set(self, kw): options = [] for k, v in kw.items(): + if not isinstance(v, basestring): + v = str(v) options.append("-"+k) - options.append(str(v)) + options.append(v) return tuple(options) def _get(self, args):