Tkinnter questions

pu pu at myRealBox.com
Sun Nov 10 13:05:57 EST 2002


this one seems to work better:

    tkRoot.update_idletasks()
    tkDw = (tkRoot.winfo_screenwidth() - tkRoot.winfo_width() )/2
    tkDh = (tkRoot.winfo_screenheight()- tkRoot.winfo_height())/2
    tkRoot.geometry("+%d+%d" % (tkDw,tkDh))

Cheers,
-Patrick





More information about the Python-list mailing list