alejandroautalan / pygubu

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

The anchor property does not function when defined in xml #291

Closed microbullet closed 7 months ago

microbullet commented 7 months ago

Describe the bug The anchor property in xml does not function

To Reproduce Steps to reproduce the behavior:

  1. Grab the "helloworld.ui" file from the readme
  2. Change the anchor property from "center" to "w" (left aligning)
  3. Grab the "helloworld.py" script from the readme
  4. Place both of these files in a folder together
  5. Run "helloworld.py"
  6. Resize the resulting window to a larger size

Expected behavior When resized the text should stay at the left of the window

Screenshots image

Your Environment (please complete the following information):

Additional context Add any other context about the problem here.

alejandroautalan commented 7 months ago

Hello @microbullet, thanks for trying pygubu.

The anchor property in xml does not function

It is not an error, You must take into account the layout of the widget on the screen. Look at this example and let me know if this clarifies the issue.

2024-02-03 14-48-14.webm

Regards Alejandro A.

microbullet commented 7 months ago

Ahhh i completely understand, thank you for clarifying!