this module is used to display the message-box in the desktop based applications the messagebox module is used to display the message boxes in the python applications there are the various functions which are used to display the relevant messages depending upon the application requirements the syntax to use the messagebox is given below messagebox function_name(title,message,[,options] parameter explanation function_name-it represents an appropriate message box functions title-it is string which is shown as title of messagebox message-it is the string to be displayed as message on the massagebox optionsthere are various options which can be used to configure the message dialog box code snippet from tkinter import from tkinter import messagebox top tk(top geometry(" "messagebox askquestion("confirm","are you sure?"top mainloop(outputfig output-tkmessagebox