(self, names)
Return name of first font family derived from names.
Return name of first font family derived from names.
Return name of first font family derived from names .
def findfont(self, names):
        "Return name of first font family derived from names."
        for name in names:
            if name.lower() in (x.lower() for x in tkfont.names(root=self)):
                font = tkfont.Font(name=name, exists=True, root=self)
                return font.actual()['family']
            elif name.lower() in (x.lower()
                                  for x in tkfont.families(root=self)):
                return name
def findfont ( self , names ) : for name in names : if name . lower ( ) in ( x . lower ( ) for x in tkfont . names ( root = self ) ) : font = tkfont . Font ( name = name , exists = True , root = self ) return font . actual ( ) [ 'family' ] elif name . lower ( ) in ( x . lower ( ) for x in tkfont . families ( root = self ) ) : return name