Skip to main content

Simple Table Layout – HTML table-like layout that supports rowspan and colspan, built into Kivy Garden.

Project description

screenshot

Simple Table Layout

Simple Table like Layout that understands rowspan and colspan properties of children (like HTML tables).

Usage (kv):

Example 1:

SimpleTableLayout:
    rows: 2
    cols: 2

    Button:
        text: "C1"
        colspan: 2
    Button:
        text: "C2"
    Button:
        text: "C3"

creates:

###########

#    C1   #

###########

# C2 # C3 #

###########

Example 2:

SimpleTableLayout:
    rows: 2
    cols: 2

    Button:
        text: "C1"
        rowspan: 2
    Button:
        text: "C2"
    Button:
        text: "C3"

creates:

###########

#    # C2 #

# C1 ######

#    # C3 #

###########

Lastly, SimpleTableLayout.cell(row, col) returns widget at that position in the grid.

License

MIT license.

Credits

Author: Jeyson Molina jeyson.mco@gmail.com

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

kivy_garden.simpletablelayout-0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kivy_garden.simpletablelayout-0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file kivy_garden.simpletablelayout-0.1.tar.gz.

File metadata

File hashes

Hashes for kivy_garden.simpletablelayout-0.1.tar.gz
Algorithm Hash digest
SHA256 c56986d8ead78e9c14ceb1fc1f34fab22141de1574bc8ae56fdcd8dee4ca2ab5
MD5 32bdfc05e5eb5e26ae6dec76b09f7581
BLAKE2b-256 4b5ab2a2db0ecc8a589581b93d1023ebc35bac992fb23ae63aeef2e690fa7389

See more details on using hashes here.

File details

Details for the file kivy_garden.simpletablelayout-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kivy_garden.simpletablelayout-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af50ee27616cec682eb01b581e8ca7edc15318ace90021475d2bbc6d3461257b
MD5 5e6384da9ac3041494deab3370c77840
BLAKE2b-256 195eaa23d001dab66415e8de5902ef72438181bf1602355357ce0f57f03df0d7

See more details on using hashes here.

Supported by

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