The following script works great from the command line but crashes from the pythonaddin:
import Tkinterimport tkFileDialogroot = Tkinter.Tk()root.withdraw()pathtest = tkFileDialog.askopenfilename()print pathtestpathtest = pythonaddins.OpenDialog('Open Item', True) does not work for me because it suppresses filetypes that I need to see (pdf).
I know this is a duplicate question but I just joined the site and could not comment on other posts.
أكثر...
import Tkinterimport tkFileDialogroot = Tkinter.Tk()root.withdraw()pathtest = tkFileDialog.askopenfilename()print pathtestpathtest = pythonaddins.OpenDialog('Open Item', True) does not work for me because it suppresses filetypes that I need to see (pdf).
I know this is a duplicate question but I just joined the site and could not comment on other posts.
أكثر...