Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    Note: the file dialog is implemented in python on linux systems. On windows and OSX it is a native file dialog. Commented May 7, 2015 at 12:33
  • @BryanOakley You could make a class inheriting from FileDialog.SaveFileDialog, overwrite the ok_command and call it using fd = MySaveFileDialog(root) filename = fd.go() though right? Although of course that looks nowhere near as pretty as the native OS dialog. Commented May 7, 2015 at 13:13
  • So, from your comments, the asksaveasfilename function does not really use the FileDialog.SaveFileDialog on Windows? But instead gets the OS file dialog? Is that done by the command = "tk_getSaveFile"? Commented May 8, 2015 at 6:14
  • Now I noticed that @Aaron had edited is question a long time ago. And I did not know I could start the filedialog with fd.go() as mentioned by @fhdrsdg. Commented May 8, 2015 at 8:58
  • I'll mark this as the answer and give the bounty, since it led me in the right way to understand how file dialogs are built. Unfortunately, the resulting dialog looks pretty ugly since it does not use the native file dialog from windows. Commented May 13, 2015 at 10:54