Skip to main content

A kivy grid layout that allows user to resize columns ad rows.

Project description

SplitterGrid

Github Build Status

A GridLayout-like widget, that allows the user to manually change the relative sizes of each collumn and row. If the widget is resized, the preferences will be conserved relalively (a column resized to 10% of the total width will stay 10% of the total width). As with GridLayout, either a number column or a number of rows must be set, if both are set, then cols is used.

It also allows setting the order of filling through the orientation property, all the modes you could hope for are implemented:

tb-lr, top to bottom, left to right, which means the first column will be filled from top to bottom, then the second column, etc. tb-lr

bt-lr: bottom to top, left to right bt-lr

tb-rl: top to bottom, right to left tb-rl

bt-rl, bottom to top, right to left bt-rl

lr-tb: left to right, top to bottom lr-tb

lr-bt: left to right, top to bottom lr-bt

rl-tb: right to left, top to bottom rl-tb

rl-bt: rigth to left, bottom to top rl-bt

The margin between each cell can be dragged by the user, resizing the corresponding row or column (or both, if you drag from an intersection). min_col_width and min_row_height allowing to set constraints on user interaction. On desktop, the mouse cursor is set to arrows indicating the possibility of resizing when hovering a margin.

resizing

This layout doesn't use size_hint or size_hint_min and size_hint_max properties of its children.

The module can be ran standalone and will display a basic demonstration of the layout.

Contributing

Check out our contribution guide and feel free to improve the flower.

License

This software is released under the terms of the MIT License. Please see the LICENSE.txt file.

How to release

See the garden instructions for how to make a new release.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

kivy_garden.splittergrid-1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file kivy_garden.splittergrid-1.0-py3-none-any.whl.

File metadata

  • Download URL: kivy_garden.splittergrid-1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.17

File hashes

Hashes for kivy_garden.splittergrid-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 939c4d31a12bed560a73c37e8d8aad757d4f6adda188bdf2b0e3427b65604dd0
MD5 ff6c097dacc052b1467ba2c755e51dc5
BLAKE2b-256 0c41bd03334f3234f9bbbd95d14b8b620838b5b7aae63822de07c482727a43cf

See more details on using hashes here.

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