[Tutor] Getting the screen size....using Tkinter
Feise, David
DFeise at ea.com
Mon Dec 4 18:23:21 CET 2006
Try this:
>>> from Tkinter import *
>>> root = Tk()
>>> root.winfo_screenwidth()
1280
>>> root.winfo_screenheight()
1024
>>>
-Dave
________________________________________
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] 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.
More information about the Tutor
mailing list