b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / idlelib /
Filename/usr/lib64/python2.6/idlelib/macosxSupport.pyo
Size4.77 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:41
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sOdZddkZddkZd�Zd�Zd�Zd�Zd�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).
iÿÿÿÿNcCstidjo
dtijS(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 Tck/Tk.
tdarwins.app(tsystplatformt
executable(((s-/usr/lib64/python2.6/idlelib/macosxSupport.pytrunningAsOSXAppscs#�fd�}|id|�dS(s£
This ensures that the application will respont to open AppleEvents, which
makes is feaseable to use IDLE as the default application for python files.
cs"x|D]}�i|�qWdS(N(topen(targstfn(tflist(s-/usr/lib64/python2.6/idlelib/macosxSupport.pyt
doOpenFiless::tk::mac::OpenDocumentN(t
createcommand(trootRR ((Rs-/usr/lib64/python2.6/idlelib/macosxSupport.pytaddOpenEventSupportscCs4y|iidd�Wntij
onXdS(Ntconsolethide(ttktcalltTkintertTclError(R ((s-/usr/lib64/python2.6/idlelib/macosxSupport.pyt
hideTkConsolescs�ddkl}l}l}ddkl}l}ddkl}ddkl�ddk l
}|��}�i d|�h} ||dd �| d <}
|i d
d d|
d d
�|
�fd�} �i
| �||dd�| d<}
|i d
dd|
�d!�fd�} d!��fd�}
�id| ��id|
��o�id�i�n�iid�}ttt|id���d"jo-dd#d!gf|id
<�id|
�n¿x»|iD]°\}}| i|�}
|
pqÜqÜx�|D]|}|p|
i�q |\}}||�\}}||i|�}�|d�}|
id
|d |d|d |�q WqÜWd!S($sU
Replace the Tk root menu by something that's more appropriate for
IDLE.
iÿÿÿÿ(tMenutTextR(tprepstrtget_accelerator(tBindings(t
WindowList(tMultiCallCreatortmenutnametwindowstlabeltWindowt underlineicsX|id�}|djo
d}n|djo|id|�n�i|�dS(Ntendiÿÿÿÿi(tindextNonetdeletetadd_windows_to_menu(RR!(R(s-/usr/lib64/python2.6/idlelib/macosxSupport.pytpostwindowsmenuBs 


tapplet applicationtIDLEcs$ddkl}|i�d�dS(Niÿÿÿÿ(t aboutDialogs
About IDLE(tidlelibR*t AboutDialog(teventR*(R (s-/usr/lib64/python2.6/idlelib/macosxSupport.pyt about_dialogOscs0ddkl}�i�_|i�d�dS(Niÿÿÿÿ(t configDialogtSettings(R+R/t inversedictt
instance_dictt ConfigDialog(R-R/(R R(s-/usr/lib64/python2.6/idlelib/macosxSupport.pyt
config_dialogSs s<<about-idle>>s<<open-config-dialog>>s<<close-all-windows>>sinfo patchlevelt.iiis
About IDLEs::tk::mac::ShowPreferencescSs|i|�dS(N(tevent_generate(ttextt eventname((s-/usr/lib64/python2.6/idlelib/macosxSupport.pytcommandwsR9t acceleratorN(iii(s
About IDLEs<<about-idle>>(RRRtidlelib.EditorWindowRRR+RRtidlelib.MultiCallRt configuret add_cascadetregister_callbackR#tbindtclose_all_callbackRtevalttupletmaptinttsplittmenudefsR
tgett
add_separatortdefault_keydefst add_command(R RRRRRRRtmenubartmenudictRR&R.R4t tkversiontmnamet entrylisttentryRR8R R:R9((RRR s-/usr/lib64/python2.6/idlelib/macosxSupport.pytoverrideRootMenu%sT 
%
   cCs7t�pdSt|�t||�t||�dS(s7
Perform setup for the OSX application bundle.
N(RRRRR (R R((s-/usr/lib64/python2.6/idlelib/macosxSupport.pytsetupApp|s



(t__doc__RRRR RRRRS(((s-/usr/lib64/python2.6/idlelib/macosxSupport.pyt<module>s      W