alejandroautalan / pygubu

A simple GUI builder for the python tkinter module
MIT License
2.01k stars 213 forks source link

Scrolled frame doesn't resize in grid layout #293

Closed homermafia closed 6 months ago

homermafia commented 6 months ago

Describe the bug I am trying to put a ScrolledFrame inside a LabelFrame and have the ScrolledFrame have a certain size different from the default one. I tried changing width, height, messing with "propagate" property, but nothing worked. This issue was already present before and fixed, but it looks like the problem appeared again (https://github.com/alejandroautalan/pygubu/issues/50 and https://github.com/alejandroautalan/pygubu/issues/204)

To Reproduce Simply create a ui file containing one of the two examples there: https://github.com/alejandroautalan/pygubu/issues/50#issuecomment-451785796 None of the two show like in the screenshot. First example of the post -> What actually shows: image Second example of the post -> What actually shows: image

Expected behavior First example of the post -> What should show: image Second example of the post -> What should show: image

Screenshots See above.

Your Environment (please complete the following information):

Additional context None.

alejandroautalan commented 6 months ago

Hello @homermafia thanks for the report.

The examples are from a previous version, the container layout options must be adjusted. The problem here is that the scrolledframe does not have the container layout options enabled.

I will fix it and make a new example.

Regards. Alejandro A.

alejandroautalan commented 6 months ago

Fixed in pygubu v0.34. Added example here.

Let me know if you have additional issues.

Regards Alejandro A.

homermafia commented 6 months ago

Thanks, it works as I wanted now.