관리-도구
편집 파일: test_sidebar.cpython-37.opt-2.pyc
B YI~d�3 � @ s� d dl Zd dlmZ d dlZd dlZd dlmZ d dlZ d dl mZ d dlm Z G dd� d�ZG dd � d ej�Zed kr�ejdd� dS ) � 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)Zside�fill�expand� )Zweight�P � )�widthZheight�wrap)�row�columnZsticky)r �tkZTk�rootZFramer �packZLEFTZBOTHZrowconfigureZcolumnconfigureZTextZNONEr ZgridZNSEWr �editwinZ ScrollbarZvbar)�clsr r r � setUpClass s zLineNumbersTest.setUpClassc C s4 | j j�� | j�� | j�� | `| `| ` | `d S )N)r% r �closer# �updateZdestroyr r )r&