Python Tkinter – Frameless window
Prerequisite: Python GUI – tkinter
Python offers multiple options for developing 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.
To create a Frameless window, we will use the overrideredirect() method.
Syntax:
root.overrideredirect(value)
To create a Frameless Window, we will pass value True or 1 as arguments in overrideredirect() method.
Create a Normal Window
Below is the program that creates a normal tkinter window.
Python3
# Import modulefrom tkinter import * # Create objectroot = Tk() # Adjist sizeroot.geometry("400x400") # Execute tkinterroot.mainloop() |
Output:

Frame Window
Create a Frameless Window
Below is the Program to create a frameless tkinter window in python using the overrideredirect() method.
Python3
# Import modulefrom tkinter import * # Create objectroot = Tk() # Adjist sizeroot.geometry("400x400") # Use overrideredirect() methodroot.overrideredirect(True) # Execute tkinterroot.mainloop() |
Output:

Frameless Window
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course


