Movatterモバイル変換


[0]ホーム

URL:


Open In App
Next Article:
Tkinter Application to Switch Between Different Page Frames
Next article icon

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 theoverrideredirect()method.

Syntax:

root.overrideredirect(value)

To create a Frameless Window, we will pass valueTrueor 1as arguments inover ride redirect()method.

Create a Normal Window

Below is the program that creates a normaltkinter window.

Python3
# Import modulefromtkinterimport*# Create objectroot=Tk()# Adjust sizeroot.geometry("400x400")# Execute tkinterroot.mainloop()

Output:

Frame Window

Create a Frameless Window

Below is the Program to create a framelesstkinter window in python using theoverrideredirect()method.

Python3
# Import modulefromtkinterimport*# Create objectroot=Tk()# Adjust sizeroot.geometry("400x400")# Use overrideredirect() methodroot.overrideredirect(True)# Execute tkinterroot.mainloop()

Output:

Frameless Window

Improve
Article Tags :
Practice Tags :

Similar Reads

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood ourCookie Policy &Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences

[8]ページ先頭

©2009-2025 Movatter.jp