Getting screen dims platform specific? Say it ain't so!
Luis Zarrabeitia
kyrie at uh.cu
Tue Feb 24 19:41:09 EST 2009
On Tuesday 24 February 2009 07:12:36 pm Lionel wrote:
> In a nutshell, what I need is a way to acquire the screen dimensions
> (in pixels) and its dpi setting.
This is a guess, and a guess only.
What do you want to know it for? If it is for painting something on the
screen, maybe (just maybe - I'm guessing here big time), whatever API you are
using for painting can be used for getting the dimensions of the drawing
device. I don't even know if GTK or Qt have that feature, but you should look
into it. If the same api you will use for painting provides that
functionality, then it would be kind of irrelevant if it is on the stdlib or
not.
Of course, this only applies if you want to paint and your api provides that
info.
--
Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.
http://profesores.matcom.uh.cu/~kyrie
More information about the Python-list
mailing list