Python Tkinter Message (original) (raw)

Last Updated : 12 Jul, 2025

Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and easiest way to create GUI applications. Creating a GUI using Tkinter is an easy task.Note: For more information, refer to Python GUI – tkinter

Message widget

The Message widget is used to show the message to the user regarding the behavior of the python application. The message text contains more than one line.**Syntax:**The syntax to use the message is given below.

w = Message( master, options)

Parameters:

**Options:**Following are commonly used Option can be used with this widget :-

Example:

Python3 `

from tkinter import *

root = Tk() root.geometry("300x200")

w = Label(root, text ='GeeksForGeeks', font = "50") w.pack()

msg = Message( root, text = "A computer science portal for geeks")

msg.pack()

root.mainloop()

`

Output: