Tk Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Ticket UUID: a4508be8f399b24600d744d9f6725a569093e756
Title: ttk:spinbox arrows are not centered in the entry
Type: Bug Version: 8.6
Submitter: anonymous Created on: 2017-07-13 19:42:40
Subsystem: 17. [spinbox] Assigned To: nobody
Priority: 5 Medium Severity: Cosmetic
Status: Open Last Modified: 2017-07-13 20:30:10
Resolution: None Closed By: nobody
    Closed on:
I couldn't find a ticket like mine, but I may have missed it.

I am using Tk 8.6 on Windows 10 through Tkinter. To be clear I am using the ttk::spinbox. I programmed in the widget myself. The issue is that the spinbox buttons aren't centered within the entry it seems as the top of the up arrow button is cut off. This is not the case in tk::spinbox. Included are picture to illustrate my point. Unfortunately the pictures must be zoomed in quite a ways.
User Comments: fvogel added on 2017-07-13 20:30:10:

I can reproduce on Vista just by:

package require Tk
pack [spinbox .tks]
pack [ttk::spinbox .ttks]

Yes, you need to zoom in the image to see this.

It does not happen for all themes, for instance alt and clam are OK.