Sindbad~EG File Manager
�
)Μg� � �( � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z ed� dZ
dZd Zd
Z
G d� de e j � Z G d
� de e j � Z G d� de e j � ZeeefZedk( r e j( � yy)� N)�TclError)�requires)�pixels_conv)�AbstractWidgetTest�guiz+expected floating-point number but got "{}"z4expected floating-point number (or "" )?but got "{}"z.(bad|expected) screen distance (but got )?"{}"z4(bad|expected) screen distance (or "" but got )?"{}"c �^ � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zy)�PackTestNc �h � t j | j d�� }|j d� |j dd� t j
|dddd� � }t j
|d
ddd
� � }t j
|dddd� � }t j
|dddd� � }|||||fS )N�pack)�name�300x200+0+0� �a� �( �red)r �width�height�bg�b�2 � �blue�c�P �green�d�yellow)�tkinter�Toplevel�root�wm_geometry�
wm_minsize�Frame��selfr r r r r s �E/usr/local/lib/python3.12/test/test_tkinter/test_geometry_managers.py�create2zPackTest.create2 s� � ����� � ��7������'�����1���M�M�$�S��2�%�H���M�M�$�S��2�&�I���M�M�$�S��2�'�J���M�M�$�S��2�(�K���Q��1�a��� c �� � | j � \ }}}}}| j t d|z � 5 |j |�� d d d � | j t d� 5 |j d�� d d d � |j d�� |j d�� |j d�� |j d�� | j |j � ||||g� |j |�� | j |j � ||||g� |j |�� | j |j � ||||g� y # 1 sw Y ��xY w# 1 sw Y ��xY w)N�window "%s" isn't packed)�after�bad window path name ".foo"�.foo�top��side�r( �assertRaisesRegexr �pack_configure�assertEqual�pack_slavesr% s r'