MCPcopy Index your code
hub / github.com/python/cpython / preferTabsPreferenceWarning

Function preferTabsPreferenceWarning

Lib/idlelib/macosx.py:100–115  ·  view source on GitHub ↗

Warn if "Prefer tabs when opening documents" is set to "Always".

()

Source from the content-addressed store, hash-verified

98
99
100def preferTabsPreferenceWarning():
101 """
102 Warn if "Prefer tabs when opening documents" is set to "Always".
103 """
104 if platform != 'darwin':
105 return None
106
107 prefs = readSystemPreferences()
108 if prefs and prefs.get('AppleWindowTabbingMode') == 'always':
109 return (
110 'WARNING: The system preference "Prefer tabs when opening'
111 ' documents" is set to "Always". This will cause various problems'
112 ' with IDLE. For the best experience, change this setting when'
113 ' running IDLE (via System Preferences -> Dock).'
114 )
115 return None
116
117
118## Fix the menu and related functions.

Callers

nothing calls this directly

Calls 2

readSystemPreferencesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…