RE: [wxPython] Dyin’ with a sizer problem…
THANK GOD! That worked, although I had to do the resizing trick
for both the parent and grandparent. Totally cool.
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, July 31, 2002 3:19 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] Dyin’ with a sizer problem…
The problem I am having is that from time to time I repopulate the
contents of the “task” panel, and I want panel “right” to resize to
take only as much space as it needs so that panel “viewer” will
expand or recede.
The initial layout is all correct and the contents of the panel are
changing correctly, but no matter what I’ve tried I haven’t been able
to make panels “right” and “viewer” adjust to the new contents.
You may need to do some adjusting to the min size that the sizer has for an
item. For windows, the sizer will assume that its initial size is the
minimum size. So if your sub panels need to be resized then the parent
sizer that contains that panel will need to be notified. Something like
this:
size = subpanelsizer.GetMinSize()
parentsizer.SetItemMinSize(subpanel, size)
–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
wxpython-users mailing list