Your IP : 3.23.103.203
�
e f� � @ s^ d d l Z d d l Td d l j Z Gd d � d � Z d d � Z e d k rZ e � n d S)� N)�*c @ s� e Z d Z d d l m Z d d � Z d d d � Z d d d � Z d d
d � Z d d
� Z d d � Z
d d � Z d d � Z d S)�FileListr )�EditorWindowc C s( | | _ i | _ i | _ i | _ d S)N)�root�dict�inversedict�vars)�selfr � r
�5/opt/alt/python34/lib64/python3.4/idlelib/FileList.py�__init__ s zFileList.__init__Nc C s� | s t � | j | � } t j j | � rQ t j d d | f d | j �d St j j | � } | | j k r� | j | } | j
j � | S| r� | | � S| j | | | � } | j
r� | S| j � d Sd S)Nz
File Errorz%r is a directory.�master)�AssertionError�canonize�os�path�isdir�tkMessageBox� showerrorr �normcaser �top�wakeupr Z good_loadZ_close)r �filename�action�key�editr
r
r �open s(
z
FileList.openc C s; | j | � } | d k r7 | d k r7 | j | � n d S)N)r Zgotoline)r r �linenor r
r
r �gotofileline+ s zFileList.gotofilelinec C s | j | | � S)N)r )r r r
r
r �new0 s zFileList.newc O s: x3 t | j � D]"