Skip to content

ttk style text justification #157337

Description

@jvalenzuela

Bug report

Bug description:

The justify ttk style option does not work starting with Python 3.14.7. Here is a small program demonstrating the issue:

import tkinter
from tkinter import ttk

root = tkinter.Tk()
ttk.Style().configure("TButton", justify=tkinter.CENTER)
ttk.Button(root, text="Foo Bar\nSpam Eggs").pack()
root.mainloop()

Python 3.14.6 and older yield correctly justified text:

Image

With Python 3.14.7 the justification option seems to have no effect:

Image

Both screenshots are from Windows 10(x64).

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-tkintertype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions