centre button tkintwer code example Example: tkinter centre a button on 1920x1080 x = 1920/2 - (5 + 35*width/10)