[wxPython] My first problem with wxPython 2.3

Thanks Robin

That worked well
I agree with you, 90% is too restrictive, but must exist a limit anyway.

Thanks for the hybrid version too, this is great way to trace problems for
people like me,
who are not professional programmers.

Cristian Echeverría

···

-----Original Message-----
From: Robin Dunn [SMTP:robin@alldunn.com]
Sent: Wednesday, May 23, 2001 12:13 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] My first problem with wxPython 2.3

> I have a very complex dialog layout using sizers, wxHtmlWindow,
wxButtons
> and wxGrid.
> The size of the dialog is determined for the size of the widgets inside
it.
> But when I increase the size of my wxGrid over some limit, the dialog
don't
> increases the same
> way and some button can't be seen on the dialog.

There was a change to sizer.Fit that if the window passed is a top level
window, it won't be resized beyond 90% of the available space on the
screen.
(I had thought the limit was going to be the screen size, but the person
who
did it chose 90% instead...)

If you don't like the 90% restriction you can work around it by calling
this
instead of box.Fit and box.SetSizeHints:

    self.SetClientSize(box.GetMinSize())

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users