java.util.zip.ZipFile解压后被java占用问题。
在使用jdk自带zip解压工具解压文件时,调用ZipFile的getInputStream(ZipEntry entry)方法获取实体输入流后,正常关闭getInputStram返回的输入流。zip文件仍然被占用,导致java删除zip文件失败的问题。
解决方法:
在解压完成后调用ZipFile的close()方法关闭所有已打开的输入流。
原因:根据源码(jdk1.6)
若压缩方式

我的解决方案:
绑定事件是:<ButtonRelease-1>
绑定方法获取选中值使用:
event.widget.get(event.widget.curselection())
list_box_config = Listbox(self.frame, selectmode=SINGLE)
list_box_config.bind('<ButtonRelease-1>', select_config)
def select_config(event):
print(event.widget.get(event.widget.curselection()))
thanks http://www.itkeyword.com/doc/1715070224370926222/python-tkinter-listbox-event-binding