Jump to content
  • Advertisement
Sign in to follow this  
kirkd

Tkinter - asksavefilename vs askopenfilename - neither?

This topic is 2101 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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!