+
   woq,a~                       ^ RI Ht ^ RIt^ RIHt ^ RItRsR tR tR t	R t
R tR	 tR
 tR tR tR tR tR t]R8X  d   ^ RIHt ]! R^R7       R# R# )    )
expanduserN)platformc                  `   \         R 8X  d   ^ RIHp  V '       d   ^ RIHpHp  V! R4       \        P                  ! 4       pVP                  P                  RR4      pRV9   d   R	sM$R
V9  d   RsMRVP                  4       9   d   RsMRsVP                  4        R# RsR#   T d    Rs R# i ; i)darwin)testing)requiresResourceDeniedguicocoaNtkwindowingsystemx11xquartzaquaotherAppKitcarbon)r   idlelib.__init__r   test.supportr   r	   _tk_typetkinterTkr   callwinfo_serverdestroy)r   r   r	   rootwss        %/usr/lib/python3.14/idlelib/macosx.py_init_tk_typer      s     8
 	-=
 zz|WW\\$ 12B; H2H**,,HH  
# " "s   B   	B-,B-c                  b    \         '       g   \        4        \         R 8H  ;'       g
    \         R8H  # )r   r   r   r        r   isAquaTkr$   3   s&     8w66(h"66r#   c                  @    \         '       g   \        4        \         R 8H  # )r   r!   r"   r#   r   
isCarbonTkr&   ;   s    
 8xr#   c                  @    \         '       g   \        4        \         R 8H  # )r   r!   r"   r#   r   	isCocoaTkr(   D   s     8wr#   c                  @    \         '       g   \        4        \         R 8H  # )r   r!   r"   r#   r   	isXQuartzr*   L   s     8y  r#   c                      \         R 8w  d   R# \        R4      p  \        V R4      ;_uu_ 4       p\        P                  ! V4      uuRRR4       #   + '       g   i     R# ; i  \
         d     R# i ; i)r   Nz.~/Library/Preferences/.GlobalPreferences.plistrb)r   r   openplistlibloadOSError)
plist_path
plist_files     r   readSystemPreferencesr3   U   sZ     8LMJ*d##z==, $### s.   A# A
A# A 	A#  A# #A21A2c                  v    \         R 8w  d   R# \        4       p V '       d   V P                  R4      R8X  d    R# R# )r   NAppleWindowTabbingModealwayszWARNING: The system preference "Prefer tabs when opening documents" is set to "Always". This will cause various problems with IDLE. For the best experience, change this setting when running IDLE (via System Preferences -> Dock).)r   r3   get)prefss    r   preferTabsPreferenceWarningr9   d   s:     8!#E34@>	
 r#   c                 8   a V3R  lpV P                  RV4       R# )c                  <   < V  F  pSP                  V4       K  	  R # N)r-   )argsfnflists   * r   
doOpenFile'addOpenEventSupport.<locals>.doOpenFile}   s    BJJrN r#   z::tk::mac::OpenDocumentN)createcommand)r   r?   r@   s   &f r   addOpenEventSupportrC   x   s    
 	0*=r#   c                 x     V P                   P                  R R4       R#   \        P                   d     R# i ; i)consolehideN)r   r   r   TclErrorr   s   &r   hideTkConsolerI      s1    Y' s     99c                 n  a aa ^ RI Hp ^ RIHp ^ RIHo VP
                  ^ ,          ^,          R,          pVP
                  ^ ,          ^,          RR1 VP
                  ^ ,          ^,          P                  ^V4       VP
                  R,          ^,          R VP
                  R,          ^,          R V! S 4      pS P                  VR7       V! VR^ R7      pVP                  R	V^ R
7       V3V3R llpSP                  V4       RV 3R llpRVV 3R llp	RV 3R llp
S P                  RV4       S P                  RV	4       S P                  RV	4       S'       d9   S P                  RSP                  4       S P                  RSP                  4       \        4       '       d?   V! VR^ R7      pVP                  RVR7       VP
                  P                  ^ RRR.34       \        4       '       dB   S P                  RV4       S P                  RV
4       VP
                  R,          ^,          ^  R# R# )r   )Menu)mainmenu)windowN:r      N)menurM   )nametearoffWindow)labelrO   	underlinec                    < V P                  R 4      pVf   RpV^ 8  d   V P                  ^ V4       SP                  V 4       R# )endN)indexdeleteadd_windows_to_menu)rO   rV   rM   s   & r   postwindowsmenu)overrideRootMenu.<locals>.postwindowsmenu   s>    jj;C7KK3""4(r#   c                 6   < ^ RI Hp VP                  S4       R# )r   )
help_aboutN)idlelibr^   AboutDialog)eventr^   r   s   & r   about_dialog&overrideRootMenu.<locals>.about_dialog   s     	't$r#   c                 Z   < ^ RI Hp SP                  Sn        VP	                  SR4       R# )r   )configdialogSettingsN)r_   re   inversedictinstance_dictConfigDialog)ra   re   r?   r   s   & r   config_dialog'overrideRootMenu.<locals>.config_dialog   s(     	) #..!!$
3r#   c                 6   < ^ RI Hp VP                  S4       R# )r   )helpN)r_   rm   show_idlehelp)ra   rm   r   s   & r   help_dialog%overrideRootMenu.<locals>.help_dialog   s     	!4 r#   <<about-idle>>z<<open-config-dialog>>z::tk::mac::ShowPreferencesz<<close-all-windows>>z::tk::mac::QuitappleIDLE)rS   rO   applicationtkAboutDialogz::tk::mac::ShowHelprW   r<   )z
About IDLErq   )r   rK   r_   rL   rM   menudefsinsert	configureadd_cascaderegister_callbackbindrB   close_all_callbackr&   r(   )r   r?   rK   rL   	closeItemmenubarrO   r[   rb   rj   ro   rM   s   ff         @r   overrideRootMenur      s      !!!$Q'+I
 	!Q$a""1i0 	"a % 	"a %4jGNNN h2DhTQ?! ) _-%
4 
4! 	II-II&63]C		)5+C+CD
 	,e.F.FG||G'15&t4  0 	
 {{?L90+>b!!$Q' r#   c                 r    V P                  R R4       V P                  R R4       V P                  R R4       R# )Textz<B2>z<B2-Motion>z<<PasteSelection>>N)unbind_classrH   s   &r   fixb2contextr      s5     	ff%fm,f23r#   c                     \        4       '       d/   \        V 4       \        W4       \        W4       \	        V 4       R # R # r<   )r$   rI   r   rC   r   )r   r?   s   &&r   setupAppr      s0      zzd%D(T	 r#   __main__)mainzidlelib.idle_test.test_macosx)	verbosity)os.pathr   r.   sysr   r   r   r   r$   r&   r(   r*   r3   r9   rC   rI   r   r   r   __name__unittestr   r"   r#   r   <module>r      sv        !F7 !(>d(L4. z	(A6 r#   