This package adds a .flow to existing .pack, .grid, and .place geometry managers.
Project description
tkinterflow
This is a project to add the functionality of a 'flow' layout to Python Tkinter graphical user interface module.
Tkinter has the Pack, Grid, and Place geometry managers.
This module adds a Flow option to the geometry managers.
To implement the module, install it first with:
pip install tkinterflow
then use the following import statements
from tkinter import *
from tkinterflow.flowmethods import *
Now additional methods can be used. If you are used to using statements like:
button1.pack()
you can use
button1.flow()
to add the widgets to a frame.
you can use
button1.destroy()
to remove the button from the frame.
The widgets should flow inside the parent frame like typical flow geometry, like in typical html or just regular text flow like word-wrapping.
You cannot use the flow geometry manager in the root widget, but can use it in any frame below root.
So if you only have one root window, pack a frame into the root window, then use flow to add widgets to that frame. You'll want to make that frame stick to the parent root window so it expands with the root window.
The flow behavior is a subset of the grid geometry manager.
Like pack, grid, and place, you should not mix geometry managers. Likewise with the flow geometry manager.
-If you are flowing into a frame, only use flow, don't try to mix and match geometry managers.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tkinterflow-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b34c1e73a26a6e346600a35d4c2591b115c3021aeedf25cee05d34ab3be0d079 |
|
MD5 | ed28d532798c6293f21fd4ee27e2c520 |
|
BLAKE2b-256 | 5a866d592efe35be3ae711a0069b3af84ce93d7b37807215db946bac05d348ff |