Skip to content

Simple Table Layout: Implements table layout with rowspan / colspan capabilities (like HTML tables)

License

Notifications You must be signed in to change notification settings

kivy-garden/garden.simpletablelayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Table Layout: Implements table layout with rowspan / colspan capabilities (like HTML tables)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages