mς &U²Ic@s\dkTdklZdkZdkZdkZdefd„ƒYZdfd„ƒYZdS((t*(s EditorWindowNt OutputWindowcBs†tZdZd„Zd„Zd„Zd„Zfdd„Zd„Zd„Z dgZ d d d gZ e Z e d„Zd„ZRS(sœAn editor window that can serve as an output file. Also the future base class for the Python shell window. This class has no input facilities. cGs*ti||Œ|iid|iƒdS(Ns<>(t EditorWindowt__init__tselftargsttexttbindtgoto_file_line(RR((t1/data/zmath/lib/python2.4/idlelib/OutputWindow.pyRscCsdS(Ni((Rtfilename((R tispythonsourcescCsdS(NtOutput((R((R t short_titlescCs|iƒodSndSdS(Ntyestno(Rt get_saved(R((R t maybesaves tinsertcCswt|tƒo0yt|tiƒ}Wq@tj oq@Xn|ii |||ƒ|ii |ƒ|ii ƒdS(N(t isinstancetststrtunicodet IOBindingtencodingt UnicodeErrorRRRtmarkttagstseetupdate(RRRR((R twrite%s cCst|i|ƒdS(N(tmapRRtl(RR ((R t writelines2scCsdS(N((R((R tflush5ssGo to file/lines<>sfile "([^"]*)", line (\d+)s([^\s]+)\((\d+)\)s([^\s]+):\s*(\d+):c Csύ|idjoCg}x-|iD]"}|iti|ti ƒƒq W||_n|i i ddƒ}|i |ƒ}|pP|i i ddƒ}|i |ƒ}|p!tiddd|i ƒdSqΞn|\}}|ii|ƒ}|i|ƒdS(Nsinsert linestartsinsert lineendsinsert -1line linestartsinsert -1line lineendsNo special linesTThe line you point at doesn't look like a valid file name followed by a line number.tmaster(Rtfile_line_progstNoneR tfile_line_patstpattappendtretcompilet IGNORECASERtgettlinet_file_line_helpertresultt tkMessageBoxt showerrorR tlinenotflisttopentedittgotoline( RteventR'R5R R R/R-R2((R RFs(         cCs΄x0|iD]!}|i|ƒ}|oPq q WdS|iddƒ\}}yt |dƒ}|i ƒWnt j o dSnXy|t|ƒfSWntj o dSnXdS(Niitr(RR$tprogtsearchR-tmR%tgroupR R2R4tftclosetIOErrortintt TypeError(RR-R=R;R R2R9((R R.as    (sGo to file/lines<>(t__name__t __module__t__doc__RR R RRR!R"t rmenu_specsR&R%R$RR.(((R Rs         tOnDemandOutputWindowcBsMtZhdhdd<<dhdd<