Search code examples
pythontkintertitlecentering

Tkinter : How to center the window title


I am creating a project using tkinter and when I create a window, I couldn't seem to get the window title to center itself (Like most programs nowadays). Here's the example code:

from tkinter import *

root = Tk()
root.title("Window Title".center(110))# Doesn't seem to work

root.mainloop()

Is there a way to center the window title up ? Thanks in advance


Solution

  • There is nothing you can do. Tkinter has no control over how the window manager or OS displays the titles of windows other than to specify the text.