blob: ff7e6f8d80bd70398f78a1a2105ed8629de49635 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
=== modified file 'ide-integration/BicycleRepairMan_Idle.py'
--- ide-integration/BicycleRepairMan_Idle.py 2008-07-21 20:08:33 +0000
+++ ide-integration/BicycleRepairMan_Idle.py 2008-07-21 20:15:02 +0000
@@ -300,21 +300,21 @@
return 1
- def confirm_buffer_is_saved(self, editwin):
- if not editwin.get_saved():
- name = (editwin.short_title()or
- editwin.long_title()or
- "Untitled")
- reply = tkMessageBox.askokcancel("Bicycle Repair Man",
- "The buffer for %s is not saved.\n\n"%name+
- "Save it and continue?",
- master = self.editwin.text)
- &nbs p; self.editwin.text.focus_set()
- if reply:
- editwin.io.save(None)
- else:
- return 0
- return 1
+ def confirm_buffer_is_saved(self, editwin):
+ if not editwin.get_saved():
+ name = (editwin.short_title()or
+ editwin.long_title()or
+ "Untitled")
+ reply = tkMessageBox.askokcancel("Bicycle Repair Man",
+ "The buffer for %s is not saved.\n\n"%name+
+ "Save it and continue?",
+ master = self.editwin.text)
+ self.editwin.text.focus_set()
+ if reply:
+ editwin.io.save(None)
+ else:
+ return 0
+ return 1
def errorbox(self, title, message):
tkMessageBox.showerror(title, message, master = self.editwin.text)
|