calc center of screen before pack()