summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-10-20 22:02:27 (GMT)
committerGuido van Rossum <guido@python.org>1994-10-20 22:02:27 (GMT)
commit780044f27a18a7f414f02fe58ead9d25fe4a86c6 (patch)
tree0d407b4c9c169298f97af8d1a07d795c84b55460 /Lib/tkinter
parent971dc53f0ede0945dda9471596e4c727ea23dc7c (diff)
downloadcpython-780044f27a18a7f414f02fe58ead9d25fe4a86c6.zip
cpython-780044f27a18a7f414f02fe58ead9d25fe4a86c6.tar.gz
cpython-780044f27a18a7f414f02fe58ead9d25fe4a86c6.tar.bz2
added option interface
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-xLib/tkinter/Tkinter.py8
1 files changed, 8 insertions, 0 deletions
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):