Message395900
Hi there. I love Python and Tkinter. I know that there are geometry managers pack, place, and grid. I think there should be a flow type management available, like what is done in Java or html/css. This is more important as responsive GUI design is needed with different screen sizes.
I initially addressed this by inheriting from the Frame in tkinter to a 'FlowFrame' object and anything in that Frame would have flow geometry.
But this is a little awkward because the syntax is widget.pack() or widget.grid(), etc, so the method is linked to the widget.
So I altered the tkinter __init__.py wrapper to add the .flow method so you can use widget.flow() syntax.
The flow geometry manager uses the grid managers methods.
The changes are straight-forward and I have 3 related projects on github:
1) https://github.com/garydavenport73/tkinterFlow -
there are only 2 versions so history will demonstrate the relatively simple changes.
2) https://github.com/garydavenport73/FlowFrame -
a related project, FlowFrame object
3) https://github.com/garydavenport73/cpython
the formal changes to the most recent
https://github.com/python/cpython/blob/3.9/Lib/tkinter/__init__.py file. |
|
Date |
User |
Action |
Args |
2021-06-15 23:09:33 | Gary73 | set | recipients:
+ Gary73 |
2021-06-15 23:09:33 | Gary73 | set | messageid: <1623798573.21.0.50454331855.issue44429@roundup.psfhosted.org> |
2021-06-15 23:09:33 | Gary73 | link | issue44429 messages |
2021-06-15 23:09:32 | Gary73 | create | |
|