HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1k
System: Linux vps109042.inmotionhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: cisa (1010)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //opt/imh/python3.13/lib/python3.13/tkinter/__pycache__/font.cpython-313.pyc
�

��eX����SSKrSSKrSr/SQrSrSrSrSrSSjr"S	S
5r	SSjr
SSjr\S
:XGa�\R"5r\	"SS\S9r\"\R#55 \"\R#S55 \"\R#S55 \"\R%55 \"\R'S55 \"\R'S55 \"\"55 \"\R)S5\R+S55 \"\R+\S95 \	"SS9r\"\R)S5\R+S\S95 \R,"\S\S9r\R15 \R2"\S\R4S9r\R15 \	"\SS9R75r\R%\S9 \R%\S9 \R:"5 gg) �Nz0.9)�NORMAL�ROMAN�BOLD�ITALIC�
nametofont�Font�families�names�normal�roman�bold�italicc��[USUS9$)zFGiven the name of a tk named font, returns a Font representation.
    T)�name�exists�root)r)rrs  �2/opt/imh/python3.13/lib/python3.13/tkinter/font.pyrrs���T�$�T�2�2�c��\rSrSrSr\R"S5rSrSr	Sr
SSjrS	rS
r
SrSrS
rSrSrSSjrSrSr\rSSjrSrSrg)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��/nUR5H3up4URSU-5 UR[U55 M5 [U5$�N�-)�items�append�str�tuple)�self�kw�options�k�vs     r�_set�	Font._set2sE�����H�H�J�D�A��N�N�3�q�5�!��N�N�3�q�6�"���W�~�rc�V�/nUHnURSU-5 M [U5$r)rr)r�argsr!r"s    r�_get�	Font._get9s+�����A��N�N�3�q�5�!���W�~�rc�b�0n[S[U5S5HnXS-X!USS'M U$)Nr�r)�range�len)rr'r!�is    r�_mkdict�Font._mkdict?s;�����q�#�d�)�Q�'�A�#'�!��9�G��G�A�B�K� �(��rNc���Uc[R"S5n[USU5nU(a#URUR	SSU55nOURU5nU(d!S[
[UR55-nX0l	U(a�SUl
URURUR	SS55;a.[RRSUR<S35eU(aUR"SS	UR/UQ76 O&UR"SS
UR/UQ76 SUl
X`l
URUlURUlg)Nzuse font�tk�font�actualFr
znamed font z does not already exist�	configure�createT)�tkinter�_get_default_root�getattr�	splitlist�callr$r�next�counterr�delete_font�_tkinter�TclError�_tk�_split�_call)rrr3rrr!r2s       r�__init__�
Font.__init__Es���<��,�,�Z�8�D�
�T�4��
&����<�<������$� ?�@�D��9�9�W�%�D���C��T�\�\� 2�3�3�D��	��$�D���y�y����R�W�W�V�W�-E� F�F��&�&�/�/�>B�i�i�I�K�K�������T�Y�Y�>��>��
�G�G�F�H�d�i�i�7�$�7�#�D�����l�l����g�g��
rc��UR$�N)r�rs r�__str__�Font.__str__ds���y�y�rc��SURRSURRSUR<S3$)N�<�.z object �>)�	__class__�
__module__�__qualname__rrHs r�__repr__�
Font.__repr__gs<���4�>�>�,�,�-�Q�t�~�~�/J�/J�.K��$�)�)��a�)�	)rc��[U[5(d[$URUR:H=(a URUR:H$rG)�
isinstancer�NotImplementedrrA)r�others  r�__eq__�Font.__eq__ks:���%��&�&�!�!��y�y�E�J�J�&�@�4�8�8�u�y�y�+@�@rc�$�URU5$rG)�cget)r�keys  r�__getitem__�Font.__getitem__ps���y�y��~�rc�*�UR"S0X0D6 g)N�)r5)rr\�values   r�__setitem__�Font.__setitem__ss�����&�#��&rc��UR(aURSSUR5 gg![a gf=f)Nr3�delete)r>rCr�	ExceptionrHs r�__del__�Font.__del__vs;��	�����
�
�6�8�T�Y�Y�7� ���	��	�s�.2�
?�?c�J�[UR40UR5D6$)z*Return a distinct copy of the current font)rrAr4rHs r�copy�	Font.copy}s���D�H�H�.����
�.�.rc	���SnU(aSU4nU(a(USU-4-nUR"SSUR/UQ76$URURUR"SSUR/UQ7655$)zReturn actual font attributesr`�
-displayofrr3r4)rCrr/rB)r�option�	displayofr's    rr4�Font.actual�sy����� �)�,�D���3��<�*�*�D��:�:�f�h��	�	�A�D�A�A��<�<����D�J�J�v�x����J�T�J�K�M�
Mrc�D�URSSURSU-5$)zGet font attributer3�configr)rCr)rrns  rr[�	Font.cget�s���z�z�&�(�D�I�I�s�6�z�B�Brc	���U(a/UR"SSUR/URU5Q76 gURUR	URSSUR555$)zModify font attributesr3rrN)rCrr$r/rB)rr!s  rrr�Font.config�s^����J�J�v�x����
'��9�9�W�%�
'��<�<����D�J�J�v�x����C�D�F�
Frc��U4nU(aSX!4nURRUR"SSUR/UQ765$)zReturn text widthrmr3�measure)rA�getintrCr)r�textror's    rrw�Font.measure�s?���w��� �)�2�D��x�x���t�z�z�&�)�T�Y�Y�N��N�O�Orc���SnURSS5nU(aSU4nU(aKX0RU5-nURRUR"SSUR
/UQ765$UR
UR"SSUR
/UQ765n0n[S[U5S5H+nURRXVS	-5XUS	S'M- U$)
zmReturn font metrics.

For best performance, create a dummy widget
using this font before calling this method.r`roNrmr3�metricsrr+r)	�popr(rArxrCrrBr,r-)rr!r r'ro�resr.s       rr|�Font.metrics�s���
���F�F�;��-�	�� �)�,�D���)�)�G�,�,�D��8�8�?�?��
�
�6�9�d�i�i�?�$�?�A�
A��+�+�d�j�j���D�I�I�M��M�N�C��G��1�c�#�h��*��&*�h�h�o�o�c�A�#�h�&?��A��q�r�
�#�+��Nr)rCrBrAr>r)NNNF�NNrG)�__name__rPrQ�__firstlineno__�__doc__�	itertools�countr=r$r(r/rDrIrRrXr]rbrgrjr4r[rrr5rwr|�__static_attributes__r`rrrrss���*�o�o�a� �G�����>�)�A�
�'��/�
M�C�F��I�P�rrc��Uc[R"S5nSnU(aSU4nURRURR"SS/UQ765$)zGet font families (as a tuple)zuse font.families()r`rmr3r	�r7r8r2r:r;)rror's   rr	r	�sS���|��(�(�)>�?��
�D���i�(���7�7���T�W�W�\�\�&�*�D�t�D�E�Erc��Uc[R"S5nURRURR	SS55$)z'Get names of defined fonts (as a tuple)zuse font.names()r3r
r�)rs rr
r
�s<���|��(�(�);�<���7�7���T�W�W�\�\�&�'�:�;�;r�__main__�times�)�family�size�weightr�r��hello�	linespace)ro)�Courier�r
)r3zHello, world)ryr3zQuit!)ry�commandr3)r�rGr�)r�r7�__version__�__all__rrrrrrr	r
r��Tkr�f�printr4rrr[rwr|�Label�w�pack�Button�destroyrj�fb�mainloopr`rr�<module>r�s�������6��
����	��	��3�[�[�|F�<��z���:�:�<�D�	
�G�"�V�4�A�	�!�(�(�*��	�!�(�(�8�
��	�!�(�(�8�
��	�!�(�(�*��	�!�&�&��
��	�!�&�&��
��	�%�'�N�	�!�)�)�G�
�a�i�i��4�5�	�!�)�)�d�)�
#�$��)�*�A�	�!�)�)�G�
�a�i�i��t�i�D�E��
�
�d��a�8�A��F�F�H����t�'�4�<�<�@�A��F�F�H�	
�1�V�9�	�	"�	"�	$�B��I�I�T�I���H�H�"�H������Gr