관리-도구
편집 파일: test_sidebar.cpython-37.opt-1.pyc
B � f�3 � @ s� d Z ddlZddlmZ ddlZddlZddlmZ ddl Z ddlmZ ddl mZ G dd� d�ZG d d � d ej�Zedkr�ejdd � dS )zTest sidebar, coverage 93%� N)�chain)�requires)� Delegator)� Percolatorc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )� Dummy_editwinc C s4 || _ | j j| _t|�| _t� | _| j�| j� d S )N)�textZmaster� text_framer �perr ZundoZinsertfilter)�selfr � r �C/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_sidebar.py�__init__ s zDummy_editwin.__init__c C s d S )Nr )r �name�valuer r r �setvar s zDummy_editwin.setvarc C s t t| j�|���S )N)�int�floatr �index)r r r r r � getlineno s zDummy_editwin.getlinenoN)�__name__� __module__�__qualname__r r r r r r r r s r c @ s� e Zd Zedd� �Zedd� �Zdd� Zdd� Zd d � Zdd� Z d d� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/S )0�LineNumbersTestc C s� t d� t�� | _t�| j�| _| jjtjtjdd� | jj ddd� | jj ddd� tj| jddtjd�| _ | j jddtjd � t| j �| _t�| j�| j_d S ) NZguiT)ZsideZfill�expand� )Zweight�P � )�widthZheightZwrap)�row�columnZsticky)r �tkZTk�rootZFramer ZpackZLEFTZBOTHZrowconfigureZcolumnconfigureZTextZNONEr ZgridZNSEWr �editwinZ ScrollbarZvbar)�clsr r r � setUpClass s zLineNumbersTest.setUpClassc C s4 | j j�� | j�� | j�� | `| `| ` | `d S )N)r"