logo       

Re: pygame display position: msg#00147

python.pygame

Subject: Re: pygame display position

On 9/16/05, Roel Smulders
<mstrblstrprdctns-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> wrote:
> Hi!
>
> I am working on some zoomable objects, that react to the screen getting
> resized.
>
> Is there a way to
> a) get the current desktopsize

Not that I know of... you might need to get platform specific things
for this. Not all platforms even have a desktop. Perhaps search the
SDL mailing lists, or ask there.

> b) get the window-position on the desktop

same as above.

> c) react to the 'close' event of that window (little cross in the upper
> right corner has to actually work) and have a screen that is able to resize
> (and have some code fired when it does)?

A QUIT event happens. Also check out the VIDEORESIZE event for when
the video size changes.

>
> With kind regards, Roelie
>
>
>


Cheer.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise