Message Box in Tkinter python | python Tkinter GUI Tutorial

 Message Box in Tkinter python | python Tkinter GUI Tutorial

from tkinter import *
import tkinter.messagebox as tmsg
root = Tk()
root.geometry("785x433")
root.title("Notepad")
def help():
print("I will help you")
a = tmsg.showinfo("help", "harry will help you with this gui")

#use these to create to non dropdown menu
mymenu = Menu(root)

mymenu.add_command(label="help", command=help)
root.config(menu=mymenu)

root.mainloop()

Output