Sign in to follow this  

Tkinter - asksavefilename vs askopenfilename - neither?

This topic is 1517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In my application I want to let the user specify a new file name or pick an existing file which will simply be appended. 

 

asksavefilename works to specify a new file, but it throws a warning window if an existing file is picked saying it will be overwritten. 

askopenfilename lets you pick an existing file without the overwrite warning, but you can't specify a new file

 

Any ideas how to make either of these work or am I going to have to roll my own dialog?  If I could force asksavefilename not to throw the overwrite warning, that would be great.

 

-Kirk

 

Share this post


Link to post
Share on other sites

Yeah, I thought of that, too.  The catch is that this is the very last piece of my application that I need to finish.  The whole thing is complete apart from the Save functionality and all done in Tkinter.  Ugh.  I hate to mix the two, but maybe for this one piece...

Share this post


Link to post
Share on other sites

This topic is 1517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this