mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
minor fixes, removed obsolete warning
This commit is contained in:
parent
6b7d69d9b4
commit
2ad9419c8f
1 changed files with 3 additions and 10 deletions
|
|
@ -10,6 +10,7 @@ import MacOS
|
||||||
from Carbon import Win
|
from Carbon import Win
|
||||||
from Carbon import Res
|
from Carbon import Res
|
||||||
from Carbon import Evt
|
from Carbon import Evt
|
||||||
|
from Carbon import Qd
|
||||||
import os
|
import os
|
||||||
import imp
|
import imp
|
||||||
import sys
|
import sys
|
||||||
|
|
@ -365,7 +366,6 @@ class Editor(W.Window):
|
||||||
def close(self):
|
def close(self):
|
||||||
if self.editgroup.editor.changed:
|
if self.editgroup.editor.changed:
|
||||||
import EasyDialogs
|
import EasyDialogs
|
||||||
from Carbon import Qd
|
|
||||||
Qd.InitCursor()
|
Qd.InitCursor()
|
||||||
save = EasyDialogs.AskYesNoCancel('Save window "%s" before closing?' % self.title,
|
save = EasyDialogs.AskYesNoCancel('Save window "%s" before closing?' % self.title,
|
||||||
default=1, no="Don\xd5t save")
|
default=1, no="Don\xd5t save")
|
||||||
|
|
@ -509,7 +509,7 @@ class Editor(W.Window):
|
||||||
if self.run_with_interpreter:
|
if self.run_with_interpreter:
|
||||||
if self.editgroup.editor.changed:
|
if self.editgroup.editor.changed:
|
||||||
import EasyDialogs
|
import EasyDialogs
|
||||||
import Qd; Qd.InitCursor()
|
Qd.InitCursor()
|
||||||
save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1)
|
save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1)
|
||||||
if save > 0:
|
if save > 0:
|
||||||
if self.domenu_save():
|
if self.domenu_save():
|
||||||
|
|
@ -520,16 +520,9 @@ class Editor(W.Window):
|
||||||
raise W.AlertError, "Can't run unsaved file"
|
raise W.AlertError, "Can't run unsaved file"
|
||||||
self._run_with_interpreter()
|
self._run_with_interpreter()
|
||||||
elif self.run_with_cl_interpreter:
|
elif self.run_with_cl_interpreter:
|
||||||
# Until universal newline support
|
|
||||||
if self._eoln != '\n':
|
|
||||||
import EasyDialogs
|
|
||||||
ok = EasyDialogs.AskYesNoCancel('Warning: "%s" does not have Unix line-endings'
|
|
||||||
% self.title, 1, yes='OK', no='')
|
|
||||||
if not ok:
|
|
||||||
return
|
|
||||||
if self.editgroup.editor.changed:
|
if self.editgroup.editor.changed:
|
||||||
import EasyDialogs
|
import EasyDialogs
|
||||||
import Qd; Qd.InitCursor()
|
Qd.InitCursor()
|
||||||
save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1)
|
save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1)
|
||||||
if save > 0:
|
if save > 0:
|
||||||
if self.domenu_save():
|
if self.domenu_save():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue