How to create a borderless fullscreen application using Python-3 Tkinter?

In order to make a Tkinter window borderless and full-screen, we can use the utility method attributes(‘-fullscreen’, True). Tkinter windows can be configured using functions and methods defined in the Tkinter library.

Another similar method Tkinter provides to make the application window full-screen is, overrideredirect(True). This method can be invoked only if the application needs to resize in its defined width and height only.


#Import the required Libraries
from tkinter import *
#Create an instance of Tkinter frame
win= Tk()
#Set the Geometry
#Full Screen Window
win.attributes('-fullscreen', True)
def quit_win():
#Create a Quit Button
button=Button(win,text="Quit", font=('Comic Sans', 13, 'bold'), command= quit_win)


Running the above code will display a full-screen window.

Click the "Quit" button to close the full-screen window.

Updated on: 22-Apr-2021

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started