[Python] Tkinter : How to center the window title

Discussão em 'Python' iniciado por Stack, Maio 11, 2025.

  1. Stack

    Stack Membro Participativo

    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

    Continue reading...

Compartilhe esta Página