I have a database with two columns: ID, Color (1, "red", 2 , "green", etc.) and I am trying to dynamically display the list of the colors with a Checkbox next to the description. Is this possible?
This is what I am trying to do dynamically rather than static.
import PySimpleGUI as sg
layout =[[sg.Checkbox('DB RED', key='-DB ID 1-')],
[sg.Checkbox('DB GREEN', key='-DB ID 2-')],
[sg.Checkbox('DB BLUE', key='-DB ID 3-')]]
window = sg.Window('Test Window', layout)
event, values = window.read()
window.close()
Thanks for any assistance.