Skip to main content

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, of course install it first with:

pip install tkinterflow

then use the following import statements

from tkinter import *
from tkinterflow.flowmethods import *

Now instead of using statments like:

button.pack()

you can use

button.flow()

to add widgets to a frame.

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.

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

tkinterflow-0.0.1.tar.gz (41.4 kB view hashes)

Uploaded Source

Built Distribution

tkinterflow-0.0.1-py3-none-any.whl (41.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page