summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-09-26 12:16:22 (GMT)
committerJust van Rossum <just@lettererror.com>1999-09-26 12:16:22 (GMT)
commit2028b59db4d43b887a4ec1eb701715bf80b3947c (patch)
tree8001a2144fa2d6cefb6a6bc1ec216cdaae607185 /Mac/Tools
parentcee9a48ea86db14bbb5036f9ec16a72190cb9fec (diff)
downloadcpython-2028b59db4d43b887a4ec1eb701715bf80b3947c.zip
cpython-2028b59db4d43b887a4ec1eb701715bf80b3947c.tar.gz
cpython-2028b59db4d43b887a4ec1eb701715bf80b3947c.tar.bz2
1 - added "set default window font" menu
2 - updated scripts folder location (jvr)
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PythonIDEMain.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index ae5f0e3..69223f5 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]