]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added option interface
authorGuido van Rossum <guido@python.org>
Thu, 20 Oct 1994 22:02:27 +0000 (22:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 20 Oct 1994 22:02:27 +0000 (22:02 +0000)
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index 4b012f19880d198b3e690b862ad4f0d9afe4ab56..de081ecf1bed49c4cf8cdae4185e95f90c6fc6a8 100644 (file)
@@ -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):
index 4b012f19880d198b3e690b862ad4f0d9afe4ab56..de081ecf1bed49c4cf8cdae4185e95f90c6fc6a8 100755 (executable)
@@ -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):