qfc@sXddlZddlTddlZdddYZdZedkrTendS(iN(t*tFileListcBsieZddlmZdZd dZd dZd dZdZ dZ dZ d Z RS( i(t EditorWindowcCs(||_i|_i|_i|_dS(N(troottdictt inversedicttvars(tselfR((s(/usr/lib64/python2.7/idlelib/FileList.pyt__init__ s   cCs|s t|j|}tjj|rQtjdd|fd|jdStjj |}||j kr|j |}|j j |S|r||S|j |||SdS(Ns File Errors%r is a directory.tmaster(tAssertionErrortcanonizetostpathtisdirt tkMessageBoxt showerrorRtNonetnormcaseRttoptwakeupR(Rtfilenametactiontkeytedit((s(/usr/lib64/python2.7/idlelib/FileList.pytopens       cCs;|j|}|dk r7|dk r7|j|ndS(N(RRtgotoline(RRtlinenoR((s(/usr/lib64/python2.7/idlelib/FileList.pyt gotofileline&scCs|j||S(N(R(RR((s(/usr/lib64/python2.7/idlelib/FileList.pytnew+scOs:x3|jjD]"}|j}|dkrPqqWdS(Ntcanceltbreak(Rtkeystclose(RtargstkwdsRtreply((s(/usr/lib64/python2.7/idlelib/FileList.pytclose_all_callback.s   cCsey|j|}Wntk r*dGHdSX|r>|j|=n|j|=|jsa|jjndS(Ns-Don't know this EditorWindow object. (close)(RtKeyErrorRRtquit(RRR((s(/usr/lib64/python2.7/idlelib/FileList.pytunregister_maybe_terminate5s    cCs1|jy|j|}Wntk r4dGHdSX|jj}|sk|rZ|j|=nd|j|R4(((s(/usr/lib64/python2.7/idlelib/FileList.pyts   f