Skip to content

SimpleDialog

py
from tkinterplus import simpledialog
import tkinter

root = tkinter.Tk()
root.title("simpledialog")
root.minsize(500, 500)
root.configure(padx=10, pady=10)


def dialog1():
    res = simpledialog.askopenurl("Open Website", "https://example.com", parent=root)
    print(res)


tkinter.Button(root, text="dialog1", command=dialog1).pack()
root.mainloop()

Not associated with or approved by Mojang Studios or Microsoft