MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / geticonimage

Method geticonimage

tools/python-3.11.9-amd64/Lib/idlelib/tree.py:102–112  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

100 self.parent = None
101
102 def geticonimage(self, name):
103 try:
104 return self.iconimages[name]
105 except KeyError:
106 pass
107 file, ext = os.path.splitext(name)
108 ext = ext or ".gif"
109 fullname = os.path.join(ICONDIR, file + ext)
110 image = PhotoImage(master=self.canvas, file=fullname)
111 self.iconimages[name] = image
112 return image
113
114 def select(self, event=None):
115 if self.selected:

Callers 2

drawMethod · 0.95
drawiconMethod · 0.95

Calls 3

PhotoImageClass · 0.85
splitextMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected