From 2028b59db4d43b887a4ec1eb701715bf80b3947c Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sun, 26 Sep 1999 12:16:22 +0000 Subject: [PATCH] 1 - added "set default window font" menu 2 - updated scripts folder location (jvr) --- Mac/Tools/IDE/PythonIDEMain.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index ae5f0e3fded..69223f5c2ae 100644 --- a/Mac/Tools/IDE/PythonIDEMain.py +++ b/Mac/Tools/IDE/PythonIDEMain.py @@ -77,6 +77,7 @@ class PythonIDE(Wapplication.Application): mm = FrameWork.SubMenu(m, "Preferences") FrameWork.MenuItem(mm, "Set Scripts folderŠ", None, self.do_setscriptsfolder) FrameWork.MenuItem(mm, "Editor default settingsŠ", None, self.do_editorprefs) + FrameWork.MenuItem(mm, "Set default window fontŠ", None, self.do_setwindowfont) self.openwindowsmenu = Wapplication.Menu(self.menubar, 'Windows') self.makeopenwindowsmenu() @@ -92,9 +93,13 @@ class PythonIDE(Wapplication.Application): fss, fss_changed = macfs.RawAlias(prefs.scriptsfolder).Resolve() self.scriptsfolder = fss.NewAlias() except: - path = os.path.join(os.getcwd(), 'Scripts') + path = os.path.join(os.getcwd(), ":Mac:IDE scripts") if not os.path.exists(path): - os.mkdir(path) + path = os.path.join(os.getcwd(), "Scripts") + if not os.path.exists(path): + os.mkdir(path) + f = open(os.path.join(path, "Place your scripts hereŠ"), "w") + f.close() fss = macfs.FSSpec(path) self.scriptsfolder = fss.NewAlias() self.scriptsfoldermodtime = fss.GetDates()[1]