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

Method findfont

tools/python-3.11.9-amd64/Lib/idlelib/help.py:199–207  ·  view source on GitHub ↗

Return name of first font family derived from names.

(self, names)

Source from the content-addressed store, hash-verified

197 self['state'] = 'disabled'
198
199 def findfont(self, names):
200 "Return name of first font family derived from names."
201 for name in names:
202 if name.lower() in (x.lower() for x in tkfont.names(root=self)):
203 font = tkfont.Font(name=name, exists=True, root=self)
204 return font.actual()['family']
205 elif name.lower() in (x.lower()
206 for x in tkfont.families(root=self)):
207 return name
208
209
210class HelpFrame(Frame):

Callers 1

__init__Method · 0.95

Calls 3

actualMethod · 0.95
lowerMethod · 0.45
namesMethod · 0.45

Tested by

no test coverage detected