from tkinter import *
from tkinter import messagebox
root = Tk()
def msgbox():
messagebox.showinfo(title="A Message", message="Hello World!")
b1 = Button(root, text="msgbox", command=msgbox)
b1.pack(pady=20,padx=20)
root.mainloop()
from tkinter import messagebox
messagebox.option('title', 'message_to_be_displayed')
from tkinter import *
main = Tk()
Msg ='Hello Welcome to softhunt.net'
messageVar = Message(main, text = Msg)
messageVar.config(bg='lightblue', font='30px')
messageVar.pack( )
main.mainloop( )
# We must import messagebox, so we do that
from tkinter import messagebox
#We have 3 options:
# showinfo - show a dialog with an info icon
# showwarning - show a dialog with a warning icon
# and showerror - show a dialog with a error icon
#every one needs the following inputs:
# title - use a string to make a title for your dialog.
# message - use string to make the message for your dialog
Heres an example using the commands:
showinfo('test info ','test info message')
showwarning('test warning','test warning message')
showerror('test error','test error message')
import tkinter
from tkinter import *
from tkinter import messagebox
root=Tk()
root.geometry("Anydimension xAny dimesion")
root.title("title here")
root.configure("here you can insert background etc.")
root.mainloop()