U e5d@ @ sz d Z ddlZddlZdZdZdZdZdd ZG d d d Zd ddZ d!d dZ edkrve Z eddedZee eed eed ee eed eed ee eeded eeje d eddZeedejde d eje dedZe eje de jdZe eed d Zejed ejed e dS )"z0.9 NZnormalZromanboldZitalicc C s t | ddS )zFGiven the name of a tk named font, returns a Font representation. T)nameexists)Fontr r $/usr/lib64/python3.8/tkinter/font.py nametofont s r c @ s e Zd ZdZedZdd Zdd Zdd Z d#ddZ d d Zdd Zdd Z dd Zdd Zdd Zd$ddZdd Zdd ZeZd%dd Zd!d" Zd S )&r a Represents a named font. Constructor options are: font -- font specifier (name, system font, or (family, size, style)-tuple) name -- name to use for this font configuration (defaults to a unique name) exists -- does a named font by this name already exist? Creates a new named font if False, points to the existing font if True. Raises _tkinter.TclError if the assertion is false. the following are ignored if font is specified: family -- font 'family', e.g. Courier, Times, Helvetica size -- font size in points weight -- font thickness: NORMAL, BOLD slant -- font slant: ROMAN, ITALIC underline -- font underlining: false (0), true (1) overstrike -- font strikeout: false (0), true (1) c C s: g }| D ]$\}}|d| |t| qt|S N-)itemsappendstrtuple)selfkwoptionskvr r r _set1 s z Font._setc C s$ g }|D ]}| d| qt|S r )r r )r argsr r r r r _get8 s z Font._getc C s: i }t dt|dD ] }||d ||| dd <