(err, address)
Display socket error from manage_socket.
Display socket error from manage_socket.
Display socket error from manage_socket .
def show_socket_error(err, address):
    "Display socket error from manage_socket."
    import tkinter
    from tkinter.messagebox import showerror
    root = tkinter.Tk()
    fix_scaling(root)
    root.withdraw()
    showerror(
            "Subprocess Connection Error",
            f"IDLE's subprocess can't connect to {address[0]}:{address[1]}.\n"
            f"Fatal OSError #{err.errno}: {err.strerror}.\n"
            "See the 'Startup failure' section of the IDLE doc, online at\n"
            "https://docs.python.org/3/library/idle.html#startup-failure",
            parent=root)
    root.destroy()
def show_socket_error ( err , address ) : import tkinter from tkinter . messagebox import showerror root = tkinter . Tk ( ) fix_scaling ( root ) root . withdraw ( ) showerror ( "Subprocess Connection Error" , f"IDLE's subprocess can't connect to {address[0]}:{address[1]}.\n" f"Fatal OSError #{err.errno}: {err.strerror}.\n" "See the 'Startup failure' section of the IDLE doc, online at\n" "https://docs.python.org/3/library/idle.html#startup-failure" , parent = root ) root . destroy ( )