Advertisement

08.12.2008 at 09:40AM PDT, ID: 23641835 | Points: 500
[x]
Attachment Details

How do I return a value for screen resolution so that my application looks the same on different systems??

Asked by sverigedog in Python Scripting Language

Tags: ,

I need to be able to return a value for screen resolution so that I can set my application to look the same on different systems.

Using VPython I create multiple scenes and at times need them to have half the width of the screen each. Therefore I need to return a value for resolution and can then set x or y values accordingly. i.e.

bob = screen resolution width
sally = screen resolution height

scene2 = display(x=(bob/2) , y=0, width=(bob/2) , height=sally , newzoom=1)

Thank you for any help
Start Free Trial
 
Loading Advertisement...
 
[+][-]08.14.2008 at 09:41AM PDT, ID: 22231835

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 03:17PM PDT, ID: 22234819

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 06:06AM PDT, ID: 22237815

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628