What's preventing me from making a window smaller?

I have a wxpython app that I’ve inherited. When you start the app, the window is bigger then the screen and you cannot resize the window and make it smaller (you can make it bigger). What would be preventing me from making it smaller? I searched for calls to SetSizeHints and I found some, and I commented them all out, but it made no difference.

Thanks!

-larry

Hi Larry,

···

On Tuesday, November 5, 2013 2:52:44 PM UTC-6, Larry....@gmail.com wrote:

I have a wxpython app that I’ve inherited. When you start the app, the window is bigger then the screen and you cannot resize the window and make it smaller (you can make it bigger). What would be preventing me from making it smaller? I searched for calls to SetSizeHints and I found some, and I commented them all out, but it made no difference.

Thanks!

-larry

How can you make it bigger if it’s already bigger than your screen? Try setting its size to something smaller than the size of your monitor.

Mike

It's taller then the height of the screen, but not the width. I can make it
wider, but I can't make it shorter or narrower. I don't see any place where
the size is explicitly set. What would I search for to find that?

···

On Tue, Nov 5, 2013 at 2:06 PM, Mike Driscoll <kyosohma@gmail.com> wrote:

Hi Larry,

On Tuesday, November 5, 2013 2:52:44 PM UTC-6, Larry....@gmail.com wrote:

I have a wxpython app that I've inherited. When you start the app, the
window is bigger then the screen and you cannot resize the window and make
it smaller (you can make it bigger). What would be preventing me from
making it smaller? I searched for calls to SetSizeHints and I found some,
and I commented them all out, but it made no difference.

Thanks!
-larry

How can you make it bigger if it's already bigger than your screen? Try
setting its size to something smaller than the size of your monitor.

Either the frame is getting passed a size in its init or there’s a SetSize() somewhere. For the init, look for a tuple of numbers, like (800,600) or size=(800, 600) or some such.

Anyway, I was saying to could explicitly set the size yourself to fix it temporarily…or try to create a sample app based on your app that exhibits the same problems.

Mike

···

On Tuesday, November 5, 2013 3:09:40 PM UTC-6, Larry....@gmail.com wrote:

On Tue, Nov 5, 2013 at 2:06 PM, Mike Driscoll kyos...@gmail.com wrote:

Hi Larry,

On Tuesday, November 5, 2013 2:52:44 PM UTC-6, Larry....@gmail.com wrote:

I have a wxpython app that I’ve inherited. When you start the app, the window is bigger then the screen and you cannot resize the window and make it smaller (you can make it bigger). What would be preventing me from making it smaller? I searched for calls to SetSizeHints and I found some, and I commented them all out, but it made no difference.

Thanks!

-larry

How can you make it bigger if it’s already bigger than your screen? Try setting its size to something smaller than the size of your monitor.

It’s taller then the height of the screen, but not the width. I can make it wider, but I can’t make it shorter or narrower. I don’t see any place where the size is explicitly set. What would I search for to find that?

Hi,

···

On 05/11/2013 21:52, Larry Martell wrote:

I have a wxpython app that I've inherited. When you start the app, the window is bigger then the screen and you cannot resize the window and make it smaller (you can make it bigger). What would be preventing me from making it smaller? I searched for calls to SetSizeHints and I found some, and I commented them all out, but it made no difference.

Maybe a call to "SetMinSize" somewhere?

Werner

Thanks - found it.

···

On Tue, Nov 5, 2013 at 2:18 PM, Mike Driscoll <kyosohma@gmail.com> wrote:

On Tuesday, November 5, 2013 3:09:40 PM UTC-6, Larry....@gmail.com wrote:

On Tue, Nov 5, 2013 at 2:06 PM, Mike Driscoll <kyos...@gmail.com> wrote:

Hi Larry,

On Tuesday, November 5, 2013 2:52:44 PM UTC-6, Larry....@gmail.comwrote:

I have a wxpython app that I've inherited. When you start the app, the
window is bigger then the screen and you cannot resize the window and make
it smaller (you can make it bigger). What would be preventing me from
making it smaller? I searched for calls to SetSizeHints and I found some,
and I commented them all out, but it made no difference.

Thanks!
-larry

How can you make it bigger if it's already bigger than your screen? Try
setting its size to something smaller than the size of your monitor.

It's taller then the height of the screen, but not the width. I can make
it wider, but I can't make it shorter or narrower. I don't see any place
where the size is explicitly set. What would I search for to find that?

Either the frame is getting passed a size in its __init__ or there's a
SetSize() somewhere. For the init, look for a tuple of numbers, like
(800,600) or size=(800, 600) or some such.