
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
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.
Example
#Import the required Libraries from tkinter import * #Create an instance of Tkinter frame win= Tk() #Set the Geometry win.geometry("750x250") #Full Screen Window win.attributes('-fullscreen', True) def quit_win(): win.destroy() #Create a Quit Button button=Button(win,text="Quit", font=('Comic Sans', 13, 'bold'), command= quit_win) button.pack(pady=20) win.mainloop()
Output
Running the above code will display a full-screen window.
Click the "Quit" button to close the full-screen window.
- Related Articles
- How to display a tkinter application in fullscreen on macOS?
- How to Create Fullscreen API using JavaScript?
- How to create a Borderless Window in Java?
- How to create a System Tray icon of a Tkinter application?
- How to set fullscreen mode for Java Swing Application?
- How to bundle a Python Tkinter application including dependencies?
- Python to create a digital clock using Tkinter
- How to create a Titleless and Borderless JFrame in Java?
- How to create a timer using tkinter?
- How to create an impressive GUI in Python using Tkinter?
- How to compile a Python 3 app to an .exe using Tkinter?
- How to create a Splash Screen using Tkinter?
- How to create a simple screen using Tkinter?
- How to create a directly-executable cross-platform GUI app using Python(Tkinter)?
- How to create a password entry field using Tkinter?

Advertisements