diff options
author | Just van Rossum <just@lettererror.com> | 1999-09-26 12:18:19 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 1999-09-26 12:18:19 (GMT) |
commit | 2a7590998052f82829ecc4415353c9365514afdd (patch) | |
tree | 5c8d1ba3c74c10da171289b3ac3b6dd20fafadaf /Mac | |
parent | c2dab4866ee06544c1385bea21639ae1b370728d (diff) | |
download | cpython-2a7590998052f82829ecc4415353c9365514afdd.zip cpython-2a7590998052f82829ecc4415353c9365514afdd.tar.gz cpython-2a7590998052f82829ecc4415353c9365514afdd.tar.bz2 |
added do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Tools/IDE/Wapplication.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py index 3cfeb56..ed639fa 100644 --- a/Mac/Tools/IDE/Wapplication.py +++ b/Mac/Tools/IDE/Wapplication.py @@ -360,11 +360,19 @@ class Application(FrameWork.Application): def getprefs(self): import MacPrefs return MacPrefs.GetPrefs(self.preffilepath) - + def do_editorprefs(self, *args): import PyEdit PyEdit.EditorDefaultSettings() + def do_setwindowfont(self, *args): + import FontSettings, W + prefs = self.getprefs() + settings = FontSettings.FontDialog(prefs.defaultfont) + if settings: + prefs.defaultfont, tabsettings = settings + raise W.AlertError, "Note that changes will only affect new windows!" + class MenuBar(FrameWork.MenuBar): |