Create Multiple frames with Grid manager using Tkinter Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 1 Likes Like Report Prerequisites: Tkinter Tkinter can support the creation of more than one widget in the same frame. Not just this it also supports a mechanism to align them relative to each other. One of the easiest ways of aligning the different widgets in the Tkinter is through grid manager. Apart from aligning various widgets, the grid manager can also be used for aligning the numerous frames. In this article, we will be discussing the approach of aligning multiple frames with Grid Manager. For this first the frames needs to be defined, and then they need to be aligned using grid(). Syntax: frame1=LabelFrame(app, text="#Text you want to give in frame") frame1.grid(row=#Row value, column=#Column value) Function UsedLabelFrame() is used to create a framegrid() is used to apply grid manager to the widgets createdApproachImport moduleCreate a GUI app using tkinterGive a title to the app.(optional)Now, create the first frame, i.e., frame1Display the frame1 in grid manager by specifying row and column values.Further, create a widget you wish to get display in the frame1.Display the widget you made in previous step.For creating more frames, repeat from steps 4 to 7. Repeat these steps n number of times for creating n number of frames. Don't forget to change the row value and column value for every frame. You can change the row value and column value of the frames according to the given image.Finally, make the loop for displaying the GUI app on the screen. Program: Python # Import the library tkinter from tkinter import * # Create a GUI app app = Tk() # Give a title to your app app.title("Vinayak App") # Constructing the first frame, frame1 frame1 = LabelFrame(app, text="Fruit", bg="green", fg="white", padx=15, pady=15) # Displaying the frame1 in row 0 and column 0 frame1.grid(row=0, column=0) # Constructing the button b1 in frame1 b1 = Button(frame1, text="Apple") # Displaying the button b1 b1.pack() # Constructing the second frame, frame2 frame2 = LabelFrame(app, text="Vegetable", bg="yellow", padx=15, pady=15) # Displaying the frame2 in row 0 and column 1 frame2.grid(row=0, column=1) # Constructing the button in frame2 b2 = Button(frame2, text="Tomato") # Displaying the button b2 b2.pack() # Make the loop for displaying app app.mainloop() Output: Create Quiz Comment V vin8rai Follow 1 Improve V vin8rai Follow 1 Improve Article Tags : Python Python-tkinter 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