From 433fa69c4015584a2ee298faf71570813b7689dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 21 Mar 2004 15:26:44 +0000 Subject: Patch #853488: Add hlist entry_configure and entry_cget methods. --- Lib/lib-tk/Tix.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- cgit v0.12