Getting User Display Information
mnh at cogitation.org
Wed Jun 30 20:33:57 CEST 2004
On Wed, 30 Jun 2004 12:10:45 -0400, Christopher T King <squirrel at WPI.EDU> wrote:
>> I was wondering if it was possible to get the screen display size and
>> other associated properties somehow either using python modules or if
>> possible using Tk methods.
> Using Tkinter:
> from Tkinter import Tk
> print w.winfo_screenwidth(),w.winfo_screenheight()
> There's a plethora of other information available as methods of the Tk
> object (actually any Tkinter widget), including color depth, cursor
> position, window manager type, etc.
> Note that this is actually creating a Tk window; calling its destroy()
> method right after you've finished with it prevents it from appearing on
> screen. Don't do this if you actually are creating a GUI with Tk.
Is there anyway to get the size of the available screen. I have things
like the status bar across the bottom of the screen (redhat) and I would
like to size my application so that it doesn't overlap it.
More information about the Python-list