1、首先,一个frame中添加了两个多选的listbox,选择第二个listbox里面的选项。

2、这时,第一个listbox里面选过的选项就会重新变成未选中。

3、把listbox中exportselection设置为False即可。

4、我这里的背景是,只是自己快速写个GUI来玩玩,所以简单地用Tkinter就好。

5、在命令行界面下def a:..root.quit..root1.tk()Button(root,text = 'Hello Button',command = a).pack()
