| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/test_tkinter/__pycache__/ |
Upload File : |
�
���g� � �� � d dl Z d dlZd dlmZ d dlmZmZmZ d dlmZm Z ed� dZ
G d� dee j � Z G d � d
e e j � Z
edk( r e j � yy)� N)�font)�requires�
gc_collect� ALWAYS_EQ)�AbstractTkTest�AbstractDefaultRootTest�gui�
TkDefaultFontc �^ � e Zd Zed� � Zd� Zd� Zd� Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zy
)�FontTestc �" � t j j | � t j | j
t d�� | _ y # t j $ r. t j | j
t d�� | _ Y y w xY w)NT��root�name�existsF) r �
setUpClass�__func__r �Fontr �fontname�tkinter�TclError)�clss �0C:\Python312\\Lib\test\test_tkinter\test_font.pyr zFontTest.setUpClass
sc � ��!�!�*�*�3�/� M��y�y�c�h�h�X�d�K�C�H����� M��y�y�c�h�h�X�e�L�C�H� M�s �+A
�
>B�
Bc � � | j j � }| j t |� h d�� |D ]R }| j | j j |� || � | j | j | || � �T dD ]m }| j
|| t � | j
| j j |� t � | j
| j | t � �o | j rt nt }dD ]a }| j
|| |� | j
| j j |� |� | j
| j | |� �c y �N> �size�slant�family�weight� underline�
overstrike)r r r )r r r! )
r � configure�assertGreaterEqual�set�assertEqual�cget�assertIsInstance�str�wantobjects�int��self�options�key�sizetypes r �test_configurezFontTest.test_configure s, � ��)�)�%�%�'������G��L� N��C����T�Y�Y�^�^�C�0�'�#�,�?����T�Y�Y�s�^�W�S�\�:� � /�C��!�!�'�#�,��4��!�!�$�)�)�.�.��"5�s�;��!�!�$�)�)�C�.�#�6� /� �*�*�3���4�C��!�!�'�#�,��9��!�!�$�)�)�.�.��"5�x�@��!�!�$�)�)�C�.�(�;� 5� c � � d} t j | j |d�� }| j |j
d� |� ~t � y # t j $ r% t j | j |d�� }Y �dw xY w)Nu MS ゴシックT)r r r Fr )r r r r r r% r&