Fabricio Rocha 2025-11-27
The flexframe is a responsive container megawidget which grows and scrolls in one direction when it is not tall or wide enough to show all of its children in the other direction.
It is somewhat inspired by the CSS flexbox. Even much simpler and more limited, it might still be useful for some interesting UIs.
Here is a flexframe created with options -orient horizontal -start nw -center 0 -autoscroll 1:
Then another flexframe, with options -orient vertical -start nw -center 1 -autoscroll 1, before and after getting some extra width.
I had to create it (with AI help, I admit) because I could not find anything similar for Tk. Should you know some, please feel free to mention them here.
Code is hosted on GitHub. Issues and pull requests are welcome.