Current Dir: /snap/core22/2955/usr/lib/python3/dist-packages/urwid/tests/__pycache__/
[FILE] test_canvas.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_container.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_decoration.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_doctests.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_escapes.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_event_loops.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_graphics.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_listbox.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_str_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_text_layout.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_widget.cpython-310.pyc [ edit | delete | rename ]
[FILE] util.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]
Viewing: /snap/core22/2955/usr/lib/python3/dist-packages/urwid/tests/__pycache__/test_listbox.cpython-310.pyc
o
��o_ym � @ s� d dl Z d dlmZ d dlmZ d dlZG dd� de j�ZG dd� de j�ZG dd � d e j�Z G d
d� de j�Z
G dd
� d
e j�ZdS )� N��B)�SelectableTextc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�ListBoxCalculateVisibleTestc C s� t �t �|��}|j�|� ||_||_|jddd�\} }
}| \}}
}}}|d ur5|\}}||7 }||f}||ksBJ d|||f ��||ksOJ d|||f ��d S )N�� � � ��focus�%s got: %r expected: %r� %s (cursor) got: %r expected: %r)�urwid�ListBox�SimpleListWalker�body� set_focus�offset_rows�inset_fraction�calculate_visible)�self�descr r r r �exp_offset_inset�exp_cur�lbox�middle�top�bottom�offset_inset�focus_widget� focus_pos�_ign�cursor�x�y� r% �:/usr/lib/python3/dist-packages/urwid/tests/test_listbox.py�cvtest s z"ListBoxCalculateVisibleTest.cvtestc C sz t j}|d�|d�|d�|d�|d�|d�|d�g}| �d|ddddd � | �d|dd dd d � | �d
|ddddd � | �d|ddd
dd � | �d|ddddd � | �d|ddddd � | �d|ddddd � | �d|ddddd � | �d|ddddd � | �d|dd ddd � | �d|ddd
d d � | �d|d�|d�|d�gd ddd d � | �d|d�|d�|d�gd ddd d � d S )N� �
�
zsimple top position� r �r r zsimple middle positionr zsimple bottom position� zstraddle top edge)r r- ���zstraddle bottom edger zoff bottom edger zway off bottom edge�d z
gap at topzgap at top and off bottom edgez
gap at bottom� z%gap at bottom and straddling top edgez$gap at bottom cannot completely fillzgap at top and bottom)r �Textr'