Preventing Frame Resizing or Resizing Widgets

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

Please include two snapshots or example code.

···

On Mon, May 25, 2015 at 8:15 PM, Rich Shepard rshepard@appl-ecosys.com wrote:

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

Will do ... soon.

Rich

···

On Wed, 10 Jun 2015, Dev Player wrote:

Please include two snapshots or example code.

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.

You can prevent frame resizing by using the SetSizeHints method: wxPython API Documentation — wxPython Phoenix 4.2.2 documentation

Something to think about anyway.

  • Mike
···

On Monday, May 25, 2015 at 7:15:36 PM UTC-5, fuzzydoc wrote:

Rich