Index: IOBinding.py =================================================================== --- IOBinding.py (revision 56490) +++ IOBinding.py (working copy) @@ -465,6 +465,18 @@ self.text.insert("end-1c", "\n") def print_window(self, event): + m = tkMessageBox.Message( + title="Really print?", + message="Are you sure you want to print the window's contents?", + icon=tkMessageBox.QUESTION, + type=tkMessageBox.YESNO, + default=tkMessageBox.NO, + master=self.text) + reply = m.show() + if reply != tkMessageBox.YES: + self.text.focus_set() + return "break" + tempfilename = None saved = self.get_saved() if saved: