def _RefuseUnsavedModifications(self, refuse_modified_options=False):
        if self.entry_modified:
            wx.MessageBox("Entry has been modified.  You must " +
                         "either save or revert it.", "Modified Entry",
                         wx.OK | wx.ICON_INFORMATION, self.frame)
            return True
        elif refuse_modified_options and self.diary_modified:
            if wx.OK == wx.MessageBox("Diary has been modified. Click OK " +
                         "to continue and lose the changes", "Modified Diary",
                         wx.OK| wx.CANCEL | wx.ICON_QUESTION, self.frame):
                return False
            return True
        return False
If there exist unsaved entry modifications, inform the user
dataset/ETHPy150Open cmpilato/thotkeeper/lib/tk_main.py/ThotKeeper._RefuseUnsavedModifications