summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 19:16:10 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 19:16:10 (GMT)
commitc296651e101b37f4bf1ef1c2ca28c57a7a0d153a (patch)
treefe880f2a0157235226d9636aff8cc3bc3ccda6f7 /Lib
parenta16a509dfc79b9331a9b9eab437ceab7ba129862 (diff)
downloadcpython-c296651e101b37f4bf1ef1c2ca28c57a7a0d153a.zip
cpython-c296651e101b37f4bf1ef1c2ca28c57a7a0d153a.tar.gz
cpython-c296651e101b37f4bf1ef1c2ca28c57a7a0d153a.tar.bz2
Add image_types() and image_names() as methods to Misc class.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 51bcb676..7ac6a0f 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -731,6 +731,14 @@ class Misc:
return self.tk.splitlist(
self.tk.call('event', 'info', virtual))
+ # Image related commands
+
+ def image_names(self):
+ return self.tk.call('image', 'names')
+
+ def image_types(self):
+ return self.tk.call('image', 'types')
+
class CallWrapper:
def __init__(self, func, subst, widget):