You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to move a widget to a different index dynamically. Specifically, I want to remove widgets temporarily and have the remaining widgets take up their space until the removed widgets are added again, while keeping the relative order of the widgets.
Is there a way I can do this? My main problem is that when resizing widgets to take up more rows, it always happens downwards, so if I want a widget on top to be gone and a widget below to take up the space, it cannot be done by using the resize method.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
We only provide access to the row, column, row span, and column span when adding a widget. If this is not enough to get the behavior you're looking for I think changes would have to be made to Grid to allow for it. I'm sorry, but I'm not very experienced with controlling this type of stuff with kiwisolver. You might be able to set certain aspects of this with the Widget.padding and Widget.margin keyword arguments and properties or the Widget.stretch property to get a little more control. Oh I also see width_min and width_max properties on the Widget class so you might be able to control that too. This is just what I've found from skimming the widget.py source code.
I would like to be able to move a widget to a different index dynamically. Specifically, I want to remove widgets temporarily and have the remaining widgets take up their space until the removed widgets are added again, while keeping the relative order of the widgets.
Is there a way I can do this? My main problem is that when resizing widgets to take up more rows, it always happens downwards, so if I want a widget on top to be gone and a widget below to take up the space, it cannot be done by using the resize method.
Thanks in advance!
The text was updated successfully, but these errors were encountered: