1 - added "set default window font" menu

2 - updated scripts folder location
(jvr)
This commit is contained in:
Just van Rossum 1999-09-26 12:16:22 +00:00
parent cee9a48ea8
commit 2028b59db4
1 changed files with 7 additions and 2 deletions

View File

@ -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]