]> granicus.if.org Git - python/commitdiff
Add image_types() and image_names() as methods to Misc class.
authorGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 19:16:10 +0000 (19:16 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 19:16:10 +0000 (19:16 +0000)
Lib/lib-tk/Tkinter.py

index 51bcb67653a929a3bb23e6764d86071ac5895765..7ac6a0f2f91aaa13a1435bd693834a859e221f85 100644 (file)
@@ -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):