By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,550 Members | 1,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,550 IT Pros & Developers. It's quick & easy.

Get actual resolution for pygame

P: n/a

I'm trying to write a function with pygame that takes the path to a
..jpg image and displays it in a maximized/fullscreen window. I'm stuck
at pygame.display.set_mode() :-) This function needs a resolution as
parameter... Because I don't want the graphic card to change mode, the
best thing would be to give set_mode the actual display resolution.
But how can I get it? My first idea was to invoke "xwininfo -root",
but thats not platform independent. The other idea was to abuse
Tkinter (root = Tkinter.Tk(); h=root.winfo_vrootheight();
w=root.winfo_vrootwidth()), but thats not satisfying and takes a

Anyone with a better idea?
Or do I have to use "xwininfo"?

Thanks in advance
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.