Skip to content

Create table from 1 dimensional list #1918

Answered by Sikwate
diamant3 asked this question in Support
Discussion options

You must be logged in to vote

In my case I have 4 list. One for each header. Just my sample

def game_table(tag, callback, db_table, where='', show=False):

with dpg.table(header_row=True, tag=tag, show=show, sortable=True, callback=callback):
    dpg.add_table_column(label="Date")
    dpg.add_table_column(label="Combination", no_sort=True)
    dpg.add_table_column(label="Pot")
    dpg.add_table_column(label="Winner")

    
    ldate = ls.select_all(table_name=db_table, column_name='date', where=where)
    lcomb = ls.select_all(table_name=db_table, column_name='combination', where=where)
    lpot = ls.select_all(table_name=db_table, column_name='pot', where=where)
    lwinnerv2 = ls.select_all(table_name=db_table, colum…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@diamant3
Comment options

@Sikwate
Comment options

@diamant3
Comment options

Answer selected by diamant3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants