def query(): conn = sqlite3.connect('billing.db') c.execute("SELECT *, oid FROM billing") # print(records)
for record in records:
print_records += str(record[0]
在下面的Python代码中,我尝试更改Treeview表中的行的颜色。它不起作用。我试着用tag.configure但是..。正如你所看到的,这个函数的作用是从sql数据库中提取数据,并将其放入Treeview表中,根据行的不同,颜色应该不同,但它不起作用……需要帮忙吗?from tkinter import *
from tkinter import t