import ctypes ctypes.windll.user32.MessageBoxW(0, "Your message", "Your title", 1) #opens up a black window