Preventing Frame Resizing or Resizing Widgets

23 views
Skip to first unread message

Rich Shepard

unread,
May 25, 2015, 8:15:36 PM5/25/15
to wxpytho...@googlegroups.com
When the frame is resized by dragging on a corner the non-grid widgets on
the panel do not shrink, but are lost to view. This seems to be the result
of having a wx.Grid with a defined number of rows occupying most of the
panel's interior.

What is the recommended way of addressing this issue? I've not seen a way
to make the grid shrink with the frame. I know that I can append rows as
needed, but that's done in a method when the 'Add' button is clicked and the
data fill the last available row.

Rich

Dev Player

unread,
Jun 10, 2015, 9:06:32 AM6/10/15
to wxpython-users
Please include two snapshots or example code.

Rich Shepard

unread,
Jun 10, 2015, 11:35:43 AM6/10/15
to wxpython-users
On Wed, 10 Jun 2015, Dev Player wrote:

> Please include two snapshots or example code.

Will do ... soon.

Rich

Mike Driscoll

unread,
Jun 10, 2015, 12:04:19 PM6/10/15
to wxpytho...@googlegroups.com, rshe...@appl-ecosys.com


You can prevent frame resizing by using the SetSizeHints method: http://www.wxpython.org/docs/api/wx.Window-class.html

Something to think about anyway.
- Mike

Rich
Reply all
Reply to author
Forward
0 new messages