Python Tkinter - Message Last Updated : 12 Jul, 2025 Comments Improve Suggest changes 24 Likes Like Report 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: master: This parameter is used to represents the parent window. options:There are many options which are available and they can be used as key-value pairs separated by commas. Options: Following are commonly used Option can be used with this widget :- anchor: This option is used to decide the exact position of the text within the space .Its default value is CENTER. bg: This option used to represent the normal background color. bitmap: This option used to display a monochrome image. bd: This option used to represent the size of the border and the default value is 2 pixels. cursor: By using this option, the mouse cursor will change to that pattern when it is over type. font: This option used to represent the font used for the text. fg: This option used to represent the color used to render the text. height: This option used to represent the number of lines of text on the message. image: This option used to display a graphic image on the widget. justify: This option used to control how the text is justified: CENTER, LEFT, or RIGHT. padx: This option used to represent how much space to leave to the left and right of the widget and text. It's default value is 1 pixel. pady: This option used to represent how much space to leave above and below the widget. It's default value is 1 pixel. relief: The type of the border of the widget. It's default value is set to FLAT. text: This option used use newlines ("\n") to display multiple lines of text. variable: This option used to represents the associated variable that tracks the state of the widget. width: This option used to represents the width of the widget. and also represented in the number of characters that are represented in the form of texts. wraplength: This option will be broken text into the number of pieces. 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: Create Quiz Comment S shubhamsingh10 Follow 24 Improve S shubhamsingh10 Follow 24 Improve Article Tags : Python Python-tkinter Python Tkinter Widget Explore Python FundamentalsPython Introduction 2 min read Input and Output in Python 4 min read Python Variables 4 min read Python Operators 4 min read Python Keywords 2 min read Python Data Types 8 min read Conditional Statements in Python 3 min read Loops in Python - For, While and Nested Loops 5 min read Python Functions 5 min read Recursion in Python 4 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 4 min read Python Tuples 4 min read Python Dictionary 3 min read Python Sets 6 min read Python Arrays 7 min read List Comprehension in Python 4 min read Advanced PythonPython OOP Concepts 11 min read Python Exception Handling 5 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 3 min read Python MySQL 9 min read Python Packages 10 min read Python Modules 3 min read Python DSA Libraries 15 min read List of Python GUI Library and Packages 3 min read Data Science with PythonNumPy Tutorial - Python Library 3 min read Pandas Tutorial 4 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 3 min read StatsModel Library - Tutorial 3 min read Learning Model Building in Scikit-learn 6 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 6 min read Web Development with PythonFlask Tutorial 8 min read Django Tutorial | Learn Django Framework 7 min read Django ORM - Inserting, Updating & Deleting Data 4 min read Templating With Jinja2 in Flask 6 min read Django Templates 5 min read Build a REST API using Flask - Python 3 min read Building a Simple API with Django REST Framework 3 min read Python PracticePython Quiz 1 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like