mirror of
https://github.com/python/cpython
synced 2024-09-16 01:31:10 +00:00
Add image_types() and image_names() as methods to Misc class.
This commit is contained in:
parent
a16a509dfc
commit
c296651e10
|
@ -731,6 +731,14 @@ def event_info(self, virtual=None):
|
|||
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):
|
||||
|
|
Loading…
Reference in a new issue