Replies: 2 comments
-
Hey there ! The best way to do that would be destroy the table and reload it |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am a specification unique with dpg.table_row():
for k in range(0, 3):
dpg.add_button(label="OFF", callback=call_clipboard, user_data=data, tag="b"+str(k))
#and then updated
dpg.set_item_label("b"+str(0), "ON")
''' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a problem. After linking to the database, how to display the data in real time through the table?
I used set_value () to replace the value of table, but failed, and it was useless to replace row. Excuse me, what should I do?
with dpg.table(label='task_list',header_row=True, resizable=True, policy=dpg.mvTable_SizingStretchProp, borders_outerH=True, borders_innerV=True, borders_innerH=True, borders_outerV=True,show=True,id='task_list' ): dpg.add_table_column(label="任务列表") dpg.add_table_column(label="操作") #查询数据库,sql_data name_list = search_Project_all() table_num = len(name_list) for i in range(0,table_num): with dpg.table_row(): dpg.add_button(label=f"{name_list[i][1]}" , user_data=name_list[i][0] , callback=changge_win) dpg.add_button(label="X" , user_data=name_list[i][0] ,callback=_delete_task )
Beta Was this translation helpful? Give feedback.
All reactions