This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Gary73
Recipients Gary73
Date 2021-06-15.23:09:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623798573.21.0.50454331855.issue44429@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-06-15 23:09:33Gary73setrecipients: + Gary73
2021-06-15 23:09:33Gary73setmessageid: <1623798573.21.0.50454331855.issue44429@roundup.psfhosted.org>
2021-06-15 23:09:33Gary73linkissue44429 messages
2021-06-15 23:09:32Gary73create