Python学习笔记0217(tkinter系列)

1、添加选项与删除 from tkinter import * master=Tk() theLB=Listbox(master) theLB.pack() for item in [“苹果”,“香蕉”,“草莓”,“菠萝”]: theLB.insert(END,item) #theLB.delete(0,END)#删除全部 #单独删除某一个 theButton=Button(master,text
相关文章
相关标签/搜索