HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/tkinter/__pycache__/font.cpython-310.opt-2.pyc
o

�iX�@s�ddlZddlZdZgd�ZdZdZdZdZd!dd	�ZGd
d�d�Z	d"dd
�Z
d!dd�Zedkr�e�
�Ze	dded�Zee���ee�d��ee�d��ee���ee�d��ee�d��ee��ee�d�e�d��eejed��e	dd�Zee�d�ejded��ejeded�Ze��ejedejd�Ze��e	edd���Zejed �ejed�e��dSdS)#�Nz0.9)�NORMAL�ROMAN�BOLD�ITALIC�
nametofont�Font�families�namesZnormalZroman�boldZitaliccCs	t|d|d�S)NT)�name�exists�root)r)rr
�r�)/usr/local/lib/python3.10/tkinter/font.pyrsrc@s�eZdZ	e�d�Zdd�Zdd�Zdd�Zd$d
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zd%dd�Zdd�Zdd�ZeZd&d d!�Zd"d#�ZdS)'r�cCs:g}|��D]\}}|�d|�|�t|��qt|�S�N�-)�items�append�str�tuple)�self�kw�options�k�vrrr�_set2s
z	Font._setcCs$g}|D]	}|�d|�qt|�Sr)rr)r�argsrrrrr�_get9sz	Font._getcCs:i}tdt|�d�D]}||d|||dd�<q
|S)Nr�r)�range�len)rrr�irrr�_mkdict?szFont._mkdictNFcKs�|dur	t�d�}t|d|�}|r|�|�dd|��}n|�|�}|s,dtt|j��}||_	|rYd|_
|j	|�|�dd��vrJtj�d|j	f��|rX|jdd|j	g|�R�n|jdd	|j	g|�R�d
|_
||_
|j|_|j|_dS)Nzuse font�tk�font�actualFr	z$named font %s does not already exist�	configureZcreateT)�tkinter�_get_default_root�getattr�	splitlist�callrr�next�counterr�delete_fontZ_tkinterZTclError�_tk�_split�_call)rr
r%rrrr$rrr�__init__Es.


��z
Font.__init__cCs|jS�N)r�rrrr�__str__dszFont.__str__cCs"d|jj�d|jj�d|j�d�S)N�<�.z object �>)�	__class__�
__module__�__qualname__rr5rrr�__repr__gs�z
Font.__repr__cCs&t|t�stS|j|jko|j|jkSr4)�
isinstancer�NotImplementedrr0)r�otherrrr�__eq__ks
zFont.__eq__cCs
|�|�Sr4)�cget)r�keyrrr�__getitem__ps
zFont.__getitem__cCs|jdi||i��dS)Nr)r')rrC�valuerrr�__setitem__sszFont.__setitem__cCs8z|jr|�dd|j�WdSWdStyYdSw)Nr%�delete)r/r2r�	Exceptionr5rrr�__del__vs��zFont.__del__cCs	t|jfi|����Sr4)rr0r&r5rrr�copy}�z	Font.copycCs`	d}|r	d|f}|r|d|f}|jdd|jg|�R�S|�|�|jdd|jg|�R���S)Nr�
-displayofrr%r&)r2rr#r1)r�option�	displayofrrrrr&�s�zFont.actualcCs	|�dd|jd|�S)Nr%�configr)r2r)rrMrrrrB�rKz	Font.cgetc	KsD	|r|jdd|jg|�|��R�dS|�|�|�dd|j���S)Nr%rO)r2rrr#r1)rrrrrrO�s��zFont.configcCs6	|f}|rd||f}|j�|jdd|jg|�R��S)NrLr%�measure)r0�getintr2r)r�textrNrrrrrP�s

 zFont.measurecOs�	d}|�dd�}|rd|f}|r(||�|�}|j�|jdd|jg|�R��S|�|jdd|jg|�R��}i}tdt|�d�D]}|j�||d�|||dd�<qA|S)	NrrNrLr%�metricsrrr)	�poprr0rQr2rr1r r!)rrrrrN�resr"rrrrS�s�&zFont.metrics)NNNF�NNr4)�__name__r;r<�	itertools�countr.rrr#r3r6r=rArDrFrIrJr&rBrOr'rPrSrrrrrs(


	
rcCsB	|dur
t�d�}d}|rd|f}|j�|jjddg|�R��S)Nzuse font.families()rrLr%r�r(r)r$r+r,)r
rNrrrrr�s
rcCs*	|dur
t�d�}|j�|j�dd��S)Nzuse font.names()r%r	rZ)r
rrrr	�s
r	�__main__�times�)�family�size�weightr^r`ZhelloZ	linespace)rN)ZCourier�r
)r%zHello, world)rRr%zQuit!)rRZcommandr%)r`r4rV)rXr(�__version__�__all__rrrrrrrr	rWZTkr
�f�printr&rOrBrPrSZLabel�w�packZButtonZdestroyrJZfbZmainlooprrrr�<module>sH






�