hephy-dd / comet

COMET - Control and Measurement Toolkit
GNU General Public License v3.0
2 stars 2 forks source link

Add table UI widget #31

Closed arnobaer closed 4 years ago

arnobaer commented 4 years ago

Add a simple to use table widget.

table = comet.Table(header=["Key", "Value"])
table.append(["spam", 1000])
table.append(["ham", 2000])
table.append(["eggs", 3000])
for row in table:
    row[0].checked = True # set check state
    row[0].color = "blue"

table