如何在python 3.x中的tkinter中创建多列列表框小部件?

时间:2018-06-18 13:24:21

标签: python python-3.x tkinter sqlite

我想将sqlite3数据库中的数据显示到包含多列的列表框中。如何为多列配置列表框? 这是我的代码的一部分我想将serialamount显示在不同的列中,但无法执行此操作。我是新手,告诉我如何显示数据库customer

中的数据
def endofday():
   endoftheday = Tk()
   endoftheday.title("this is the final sheet")
   endoftheday.geometry("500x500+900+0")

   L1 = Listbox(endoftheday)
   L1.pack()

   c.execute('SELECT serial,amount FROM customer')
   L1.insert(END,c.fetchall())

0 个答案:

没有答案