1

I have written my first program on Python 3.4, including a GUI using Tkinter. (Hooray!) I have an option to save input (create a text file and a csv from what they've input), or people can X out of the program without saving the info.

Is there a way to bring up an "are you sure you want to exit without saving?" prompt when people click the X to exit?

Mic
  • 107
  • 2
  • 7

1 Answers1

0

Use tkMessageBox maybe.

Here's an example from another query Tkinter askquestion dialog box.

Community
  • 1
  • 1