tkinter center window
def center_window(self, cont, width, height):
screenwidth = cont.winfo_screenwidth()
screenheight = cont.winfo_screenheight()
size = "%sx%s+%s+%s" % (
width, height, (screenwidth - width) / 2,
(screenheight - height) / 2)
return size