From 780044f27a18a7f414f02fe58ead9d25fe4a86c6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 Oct 1994 22:02:27 +0000 Subject: added option interface --- Lib/lib-tk/Tkinter.py | 8 ++++++++ Lib/tkinter/Tkinter.py | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 4b012f1..de081ec 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -181,6 +181,14 @@ class Misc: return status def lower(self, belowThis=None): self.tk.call('lower', self._w, belowThis) + def option_add(self, pattern, value, priority = None): + self.tk.call('option', 'add', pattern, priority) + def option_clear(self): + self.tk.call('option', 'clear') + def option_get(self, name, className): + return self.tk.call('option', 'get', self._w, name, className) + def option_readfile(self, fileName, priority = None): + self.tk.call('option', 'readfile', fileName, priority) def selection_clear(self): self.tk.call('selection', 'clear', self._w) def selection_get(self, type=None): diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index 4b012f1..de081ec 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -181,6 +181,14 @@ class Misc: return status def lower(self, belowThis=None): self.tk.call('lower', self._w, belowThis) + def option_add(self, pattern, value, priority = None): + self.tk.call('option', 'add', pattern, priority) + def option_clear(self): + self.tk.call('option', 'clear') + def option_get(self, name, className): + return self.tk.call('option', 'get', self._w, name, className) + def option_readfile(self, fileName, priority = None): + self.tk.call('option', 'readfile', fileName, priority) def selection_clear(self): self.tk.call('selection', 'clear', self._w) def selection_get(self, type=None): -- cgit v0.12