当查询(Python) open ttk.Treeview item的选项时,我会遇到不愉快的行为。考虑一下这个脚本:from ttk import Treeview
for row in tree.get_childrenTreeview控件。'>) Got: True (bool)
不一致性:初始化为int时,随后分配的
def query(): conn = sqlite3.connect('billing.db') c.execute("SELECT *, oid FROM billing") # print(records)
for record in records:
print_records += str(record[0]
我的UI中有一个TableView,它从数据库中显示一个用户列表。这个表中的一个列是可编辑的,当启用编辑时,这个特定列的单元格变成一个treeview,列出了可以选择的各种选项。为了澄清这一点,我试图在表格单元上实现一个数据报警器或一个颜色选择器,但是使用我自己的列表作为一棵树。filled with a tree