alejandroautalan / pygubu

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

Possible bug with script generator #251

Closed javageek68 closed 2 years ago

javageek68 commented 2 years ago

I created a resizable dialogue box in the designer. Resizing worked correctly in the preview within PyGubu. The child frame and the textbox resized when the user resized the parent frame.

Then I used the Code Script tab to generate code. When I ran the script from Python, it did not resize correctly. When the user resized the parent frame the child frame and the textbox did not resize.

I attached a zip file with the original ui file and the Python script it generated.

PyGuBu.zip .

alejandroautalan commented 2 years ago

Hello javageek68, thanks for trying pygubu.

Some notes about the test_app.ui file:

Yes, It seems that there is a bug when showing the preview with the F5 key. But if you try to resize the window using the design view, it shows that the frame is not resizable.

The code generation seems to be working ok.

I made a video showing how to fix the layout.

https://user-images.githubusercontent.com/3482471/146771968-38b8f5a6-3486-4fa6-b950-3dc6390b59b5.mp4

Let me know.

Regards Alejandro A.

javageek68 commented 2 years ago

Thanks for your help!

BTW, this app is a life saver!