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
相關文章
相關標籤/搜索