Screen Resolution Issue and GUI

Hello All,

I am using python2.6.6 and boa-constructor-0.6.1 and WX.python 2.8.12.1

I am having a problem with a GUI when used on different machine resolutions.

I have created a GUI Application with main GUI frame (say frame1) which has 1140801 pixels which contains second frame (say frame2) of 880758 pixels. And frame2 contains one Scrolled window with 840*400 pixels which has number of panels.

My problem is that on 16001200 machine resolution everything looks Ok, but when I use 1024768 resolution for my machine that GUI width as well as height goes outside screen of my machine as my application main frame1 pixels are larger than this.

Does anyone have solution for this, as for frame1 I have already given property for vertical as well as horizontal scroll, but scrolls do not appear.

Anyone faced such problems. Or how can I go on this.

Thanks for your help.

Regards,

Prashant

Hi,

Hello All,

I am using python2.6.6 and boa-constructor-0.6.1 and WX.python 2.8.12.1

I am having a problem with a GUI when used on different machine resolutions.

I have created a GUI Application with main GUI frame (say frame1) which has 1140*801 pixels which contains second frame (say frame2) of 880*758 pixels. And frame2 contains one Scrolled window with 840*400 pixels which has number of panels.

My problem is that on 1600*1200 machine resolution everything looks Ok, but when I use 1024*768 resolution for my machine that GUI width as well as height goes outside screen of my machine as my application main frame1 pixels are larger than this.

You should set your frame1 to 1024x768, if that is to small to hold all controls then you need to use e.g. a scrolledwindow or aui or something with similar functionality.

You should use sizers to control the widgets within the frames so that they will nicely grow.

Does anyone have solution for this, as for frame1 I have already given property for vertical as well as horizontal scroll, but scrolls do not appear.

Are you using a Scrolled* control within your frame?

Can you show some code in how are setting things up.

Werner

···

On 14/02/2014 10:52, Prashant Deshmukh wrote:

I have created a GUI Application with main GUI frame (say frame1) which
has 1140*801 pixels which contains second frame (say frame2) of 880*758
pixels. And frame2 contains one Scrolled window with 840*400 pixels which
has number of panels.

My problem is that on 1600*1200 machine resolution everything looks Ok,
but when I use 1024*768 resolution for my machine that GUI width as well as
height goes outside screen of my machine as my application main frame1
pixels are larger than this.

You should set your frame1 to 1024x768, if that is to small to hold all
controls then you need to use e.g. a scrolledwindow or aui or something
with similar functionality.

exactly -- though I wouldnt even hard-code that -- design your app so that
the Window can be smaller (maybe even a lt smaller, even though it wmya vbe
hard to use on a really small screen).

Then either use Maximise() or check the screen resolution before you set
your main frame size:

wx.DisplaySize()

(note: some odd things may happen with multiple monitors....)

You should use sizers to control the widgets within the frames so that

they will nicely grow.

exactly.

-Chris

···

On Fri, Feb 14, 2014 at 4:20 AM, Werner <wernerfbd@gmx.ch> wrote:

On 14/02/2014 10:52, Prashant Deshmukh wrote:

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

It’s not wx.Maximise() but it is wx.Maximize().