Lines 300-320
Link Here
|
300 |
return 1 |
300 |
return 1 |
301 |
|
301 |
|
302 |
|
302 |
|
303 |
def confirm_buffer_is_saved(self, editwin): |
303 |
def confirm_buffer_is_saved(self, editwin): |
304 |
if not editwin.get_saved(): |
304 |
if not editwin.get_saved(): |
305 |
name = (editwin.short_title()or |
305 |
name = (editwin.short_title()or |
306 |
editwin.long_title()or |
306 |
editwin.long_title()or |
307 |
"Untitled") |
307 |
"Untitled") |
308 |
reply = tkMessageBox.askokcancel("Bicycle Repair Man", |
308 |
reply = tkMessageBox.askokcancel("Bicycle Repair Man", |
309 |
"The buffer for %s is not saved.\n\n"%name+ |
309 |
"The buffer for %s is not saved.\n\n"%name+ |
310 |
"Save it and continue?", |
310 |
"Save it and continue?", |
311 |
master = self.editwin.text) |
311 |
master = self.editwin.text) |
312 |
&nbs p; self.editwin.text.focus_set() |
312 |
self.editwin.text.focus_set() |
313 |
if reply: |
313 |
if reply: |
314 |
editwin.io.save(None) |
314 |
editwin.io.save(None) |
315 |
else: |
315 |
else: |
316 |
return 0 |
316 |
return 0 |
317 |
return 1 |
317 |
return 1 |
318 |
|
318 |
|
319 |
def errorbox(self, title, message): |
319 |
def errorbox(self, title, message): |
320 |
tkMessageBox.showerror(title, message, master = self.editwin.text) |
320 |
tkMessageBox.showerror(title, message, master = self.editwin.text) |