PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  qfc@s}dZddlZddlZddlmZdadZdadZ dZ dZ dZ d Z d ZdS( s A number of function that enhance IDLE on MacOSX when it used as a normal GUI application (as opposed to an X11 application). iN(tpathcCs1tdkr-tjdko'dtjkantS(s Returns True if Python is running from within an app on OSX. If so, assume that Python was built with Aqua Tcl/Tk rather than X11 Tcl/Tk. tdarwins.appN(t _appbundletNonetsystplatformt executable(((s-/usr/lib64/python2.7/idlelib/macosxSupport.pytrunningAsOSXApp s !cCsUtdkrQtoKd|jjddkoKd|jjdddkantS( sb Returns True if IDLE is using a Carbon Aqua Tk (instead of the newer Cocoa Aqua Tk). taquattktwindowingsystemtAppKittwinfotservert.N(t _carbonaquatkRRR tcall(troot((s-/usr/lib64/python2.7/idlelib/macosxSupport.pytisCarbonAquaTks   !cCsatrYd|jjdddkrY|jjdd}|d krLtSd j|StSd S( s2 Returns a string warning message if the Tk version in use appears to be one known to cause problems with IDLE. 1. Apple Cocoa-based Tk 8.5.7 shipped with Mac OS X 10.6 is unusable. 2. Apple Cocoa-based Tk 8.5.9 in OS X 10.7 and 10.8 is better but can still crash unexpectedly. R R R Rtinfot patchlevels8.5.7s8.5.9sWARNING: The version of Tcl/Tk ({0}) in use may be unstable.\nVisit http://www.python.org/download/mac/tcltk/ for current information.N(s8.5.7s8.5.9(RR RtFalsetformat(RR((s-/usr/lib64/python2.7/idlelib/macosxSupport.pyttkVersionWarning%s  cs#fd}|jd|dS(s This ensures that the application will respond to open AppleEvents, which makes is feasible to use IDLE as the default application for python files. cs"x|D]}j|qWdS(N(topen(targstfn(tflist(s-/usr/lib64/python2.7/idlelib/macosxSupport.pyt doOpenFile?s s::tk::mac::OpenDocumentN(t createcommand(RRR((Rs-/usr/lib64/python2.7/idlelib/macosxSupport.pytaddOpenEventSupport:scCs2y|jjddWntjk r-nXdS(Ntconsolethide(R RtTkintertTclError(R((s-/usr/lib64/python2.7/idlelib/macosxSupport.pyt hideTkConsoleHscsVddlm}m}m}ddlm}m}ddlm}ddlmddl m }|}j d|i} ||dd | d <} |j d d d| d d | fd} j | d$fd} d$fd} d$fd}jd| jd| jd| rqjdjjdjntr ||dd| d<} |j d dd| |jjd dd%d$gfjjd}ttt|jdd&krR|jd d jd'qRn2jd"| jd#||jdd d =d$S((sU Replace the Tk root menu by something that's more appropriate for IDLE. i(tMenutTextR%(tprepstrtget_accelerator(tBindings(t WindowList(tMultiCallCreatortmenutnametwindowstlabeltWindowt underlineicsT|jd}|dkr$d}n|dkrC|jd|nj|dS(Ntendii(tindexRtdeletetadd_windows_to_menu(R+R1(R)(s-/usr/lib64/python2.7/idlelib/macosxSupport.pytpostwindowsmenuls    cs$ddlm}|jddS(Ni(t aboutDialogs About IDLE(tidlelibR6t AboutDialog(teventR6(R(s-/usr/lib64/python2.7/idlelib/macosxSupport.pyt about_dialogvscs0ddlm}j_|jddS(Ni(t configDialogtSettings(R7R;t inversedictt instance_dictt ConfigDialog(R9R;(RR(s-/usr/lib64/python2.7/idlelib/macosxSupport.pyt config_dialogzs csKddlm}tjtjtjtd}|jd|dS(Ni(ttextViewshelp.txttHelp(R7RARtjointabspathtdirnamet__file__t view_file(R9RAR(R(s-/usr/lib64/python2.7/idlelib/macosxSupport.pyt help_dialogs$s<>s<>s::tk::mac::ShowPreferencess<>texittapplet applicationtIDLEs About IDLEsinfo patchlevelRiiiis_Preferences....t tkAboutDialogs::tk::mac::ShowHelpN(s About IDLEs<>(iii(s_Preferences....s<>(R!R$R%tidlelib.EditorWindowR&R'R7R(R)tidlelib.MultiCallR*t configuret add_cascadetregister_callbackRtbindRtclose_all_callbackRtmenudefstinsertR tevalttupletmaptinttsplittappend(RRR$R%R&R'R(R*tmenubartmenudictR+R5R:R@RHt tkversion((R)RRs-/usr/lib64/python2.7/idlelib/macosxSupport.pytoverrideRootMenuOsF     $ cCs5ts dSt|t||t||dS(s7 Perform setup for the OSX application bundle. N(RR#R`R(RR((s-/usr/lib64/python2.7/idlelib/macosxSupport.pytsetupApps    (t__doc__RR!tosRRRRRRRRR#R`Ra(((s-/usr/lib64/python2.7/idlelib/macosxSupport.pyts       X