🐍 Python 3.10+
Disable Balloon Tip Notifications (Python)
Disables the small notification balloon tips in the system tray. Applies the tweak via the stdlib winreg module.
set_disable_balloon_tips.py
#!/usr/bin/env python3
"""
set_disable_balloon_tips.py
Disable Balloon Tip Notifications.
Disables the small notification balloon tips in the system tray.
Usage:
python set_disable_balloon_tips.py
"""
import winreg
def main() -> None:
key = winreg.CreateKeyEx(
winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", 0, winreg.KEY_SET_VALUE
)
winreg.SetValueEx(key, "EnableBalloonTips", 0, winreg.REG_DWORD, 0)
winreg.CloseKey(key)
print("Disable Balloon Tip Notifications applied.")
if __name__ == "__main__":
main()