From: Guido van Rossum Date: Fri, 10 Apr 1998 19:16:10 +0000 (+0000) Subject: Add image_types() and image_names() as methods to Misc class. X-Git-Tag: v1.5.1~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c296651e101b37f4bf1ef1c2ca28c57a7a0d153a;p=python Add image_types() and image_names() as methods to Misc class. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 51bcb67653..7ac6a0f2f9 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):