How to set the window location in the center of the screen?
Something like this (one of Google's answers):
from Tkinter import * root = Tk() x = (root.winfo_screenwidth() - root.winfo_reqwidth()) / 2 y = (root.winfo_screenheight() - root.winfo_reqheight()) / 2 root.wm_geometry("+%d+%d" % (x, y)) root.mainloop()
Source: https://ru.stackoverflow.com/questions/19319/More articles:Objects in Javascript. What is the scope?Copy MoveClip in codeCreating a search module similar to Yandex. ServicesCreating an online game on the J2ME SDKSelect the type of storage and the method of storing frequently changing dataGet a list of tables in user databases in SQL ServerHow to cut w3support.net from issuing googleStrange numbers in the http responseHow to bind an element of the current DataGrid row in a ComboBoxOrganization of resume in php HTTP_RANGEAll Articles