]> granicus.if.org Git - python/commitdiff
Patch #853488: Add hlist entry_configure and entry_cget methods.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 21 Mar 2004 15:26:44 +0000 (15:26 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 21 Mar 2004 15:26:44 +0000 (15:26 +0000)
Lib/lib-tk/Tix.py

index 91145386d3ecaf16e97a1753b9735aaafd725a6d..f19bf97799c254279d67f9a83e1a3dd04fb9ea9c 100755 (executable)
@@ -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)