Try this: >>> from Tkinter import * >>> root = Tk() >>> root.winfo_screenwidth() 1280 >>> root.winfo_screenheight() 1024 >>>
-Dave ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Asrarahmed Kadri Sent: Monday, December 04, 2006 8:44 AM To: tutor-python Subject: [Tutor] Getting the screen size....using Tkinter Hi folks, Is it possible to get the screen size using a standard API of Tkinter? And also any function to position the window in the center of the screen..?? Thanks in anticipation. Regards, Asrarahmed Kadri -- To HIM you shall return. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor