coderoftheday
coderoftheday

Reputation: 2075

Remove tkinter window border

I've searched the web but I cant find an answer:

I just want to remove the border(that contains the tk icon, and the buttons(minimise,expand and close)) from the tkinter window,

enter image description here

Upvotes: 0

Views: 805

Answers (1)

Delrius Euphoria
Delrius Euphoria

Reputation: 15088

Try this out:

root.overrideredirect(True) # or 1 instead of True

Keep in mind, with this you actually cannot close the window from the titlebar(because titlebar is removed), and I dont think the window icon will appear in the taskbar either. Basically its like removing most possibilities in redirecting back to the window.

Hope this was of some help, do let me know if any errors or doubts.

Cheers

Upvotes: 1

Related Questions