Python EasyGUI - Message Box Last Updated : 20 Apr, 2023 Comments Improve Suggest changes Like Article Like Report Message Box : It is used to display a window having a message or information in EasyGUI, it can be used where there is a need to display some message or some important information, it contains message and a "Ok" button which when pressed closes the message, below is how the message box looks like EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls. Unlike other complicated GUI's EasyGUI is the simplest GUI till now. EasyGUI depends on the Tkinter module. In order to do this we will use msgbox methodSyntax : msgbox(message, title, ok_button_text)Argument : It takes 3 arguments, first string i.e message/information to be displayed, second string i.e title of the window and third string i.e display text of the OK button Return : It returns the text of the OK button Example : In this we will create a message box having a message and will set the display text of the OK button, below is the implementation Python3 # importing easygui module from easygui import * # message / information to be displayed on the screen message = "This is a Message Box in EasyGUI" # title of the window title = "GfG - EasyGUI" # text of the Ok button ok_btn_txt = "Continue" # creating a message box output = msgbox(message, title, ok_btn_txt) # printing the output print("User pressed : " + output) Output : User pressed : Continue Another Example In this we will create a window having message and title but without changing the text of the ok button Python3 # importing easygui module from easygui import * # message / information to be displayed on the screen message = "This is a Message Box in EasyGUI (GeeksforGeeks)" # title of the window title = "GfG - EasyGUI" # creating a message box output = msgbox(message, title) # printing the output print("User pressed : " + output) Output : User pressed : OK Comment More infoAdvertise with us Next Article Python EasyGUI - Message Box R rakshitarora Follow Improve Article Tags : Python Python-gui Python-EasyGUI Practice Tags : python Similar Reads Python EasyGUI â Integer Box Integer Box : It is used to get the integer input from the user, input should be integer input not string which happens in enter box. It displays the title, message to be displayed, place to enter a integer input and a pair of "Ok", "Cancel" button which is used confirm the input. We can set some de 3 min read Python EasyGUI â Enter Box Enter Box : It is used to get the input from the user, input can be any keyboard input, it takes input in form of string. It displays the title, message to be displayed, place to enter a text and a pair of "Ok", "Cancel" button which is used confirm the input. Also we can set some default text to th 2 min read Python EasyGUI â Yes No Box Yes No Box : It is used to display a window having a two option yes or no in EasyGUI, it can be used where there is a need to get the answer of the question in form of yes or no, it displays two option yes or no for example when we want to ask user whether he is above 18 or not we will use yes no bo 3 min read PyQt5 - Message Box In this article, we will discuss the Message Box Widget of the PyQT5 module. It is used to display the message boxes. PyQt5 is a library used to create GUI using the Qt GUI framework. Qt is originally written in C++ but can be used in Python. The latest version of PyQt5 can be installed using the co 3 min read Python EasyGUI â Multi Choice Box Multi Choice Box : It is used to display a window having a multiple options i.e items in EasyGUI, it can be used where there is a need to select multiple item among a group of items, it consist of title, message to be displayed, group of items and buttons i.e "Cancel", "Select All", "Clear All", "Ok 2 min read Like