AlkantarClanX12
Current Path : /proc/self/root/lib64/python3.8/tkinter/__pycache__/ |
Current File : //proc/self/root/lib64/python3.8/tkinter/__pycache__/font.cpython-38.pyc |
U e5d@ � @ sz d Z ddlZddlZdZdZdZdZdd� ZG d d � d �Zd dd�Z d!d d�Z edk�rve�� Z edded�Zee�� � ee�d�� ee�d�� ee�� � ee�d�� ee�d�� ee � � ee�d�e�d�� eeje d�� edd�Zee�d�ejde d�� eje ded�Ze�� eje de jd�Ze�� eed d��� Zejed� ejed� e�� dS )"z0.9� NZnormalZroman�boldZitalicc C s t | dd�S )zFGiven the name of a tk named font, returns a Font representation. T)�name�exists)�Font�r � r �$/usr/lib64/python3.8/tkinter/font.py� nametofont s r c @ s� e Zd ZdZe�d�Zdd� Zdd� Zdd� Z d#dd�Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� Zd$dd�Zdd� 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�-)�items�append�str�tuple)�self�kw�options�k�vr 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|�d�D ] }||d ||| dd � <