Tkinter選擇路徑功能的實現 Python2.7

Python 2.7 下使用。 其他版本不保證正確性。 # -*- coding:utf8 -*- from Tkinter import * import tkFileDialog def selectPath(): path_ = tkFileDialog.askopenfilename(filetypes=[("bmp格式".decode('gbk'),"py")]) pa
相關文章
相關標籤/搜索