Tkinter: How Can I Get The Users Choice Of Filetype In The Asksaveasfilename-dialog?
currently, I'm programming a GUI, which should allow the user to save a file and select the filetype (lets say: jpg, bmp). I'm using tkinter with Python 3.4. Unfortunately, I am un
Solution 1:
As I struggle with the same problem of automatically updating the extension, I stumbled over your question. Apparently you can try that with addins:
pythonaddins.SaveDialog = saveFileDialog
This one is almost identical to OpenDialog except that instead of filtering files, we have the ability to automatically append a particular extension to the user's input. It's also possible to pass in a tupled list of filetype descriptions and extension which would then populate the Save As Filetype Dropdown, but again the only thing that is doing is filtering the files displayed. It's actually the FileExtension parameter that is appending the extension to the return value.
Post a Comment for "Tkinter: How Can I Get The Users Choice Of Filetype In The Asksaveasfilename-dialog?"