()
return None
Warn if "Prefer tabs when opening documents" is set to "Always".
Warn if "Prefer tabs when opening documents" is set to "Always".
Warn if Prefer tabs when opening documents is set to Always .
def preferTabsPreferenceWarning():
    """
    Warn if "Prefer tabs when opening documents" is set to "Always".
    """
    if platform != 'darwin':
        return None

    prefs = readSystemPreferences()
    if prefs and prefs.get('AppleWindowTabbingMode') == 'always':
        return (
            'WARNING: 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).'
        )
    return None
def preferTabsPreferenceWarning ( ) : if platform != 'darwin' : return None prefs = readSystemPreferences ( ) if prefs and prefs . get ( 'AppleWindowTabbingMode' ) == 'always' : return ( 'WARNING: 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).' ) return None