diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-03-21 15:26:44 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-03-21 15:26:44 (GMT) |
commit | 433fa69c4015584a2ee298faf71570813b7689dc (patch) | |
tree | 2751c54e1e94eb71164e0477a5dd88fa04e6e896 /Lib/lib-tk/Tix.py | |
parent | 48485579249beb3549e0b201f830b1e4c48bb0db (diff) | |
download | cpython-433fa69c4015584a2ee298faf71570813b7689dc.zip cpython-433fa69c4015584a2ee298faf71570813b7689dc.tar.gz cpython-433fa69c4015584a2ee298faf71570813b7689dc.tar.bz2 |
Patch #853488: Add hlist entry_configure and entry_cget methods.
Diffstat (limited to 'Lib/lib-tk/Tix.py')
-rwxr-xr-x | Lib/lib-tk/Tix.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 9114538..f19bf97 100755 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py @@ -1005,6 +1005,17 @@ class HList(TixWidget): def item_delete(self, entry, col): self.tk.call(self._w, 'item', 'delete', entry, col) + def entrycget(self, entry, opt): + return self.tk.call(self._w, 'entrycget', entry, opt) + + def entryconfigure(self, entry, cnf={}, **kw): + if cnf is None: + return _lst2dict( + self.tk.split( + self.tk.call(self._w, 'entryconfigure', entry))) + self.tk.call(self._w, 'entryconfigure', entry, + *self._options(cnf, kw)) + def nearest(self, y): return self.tk.call(self._w, 'nearest', y) |