added do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)

This commit is contained in:
Just van Rossum 1999-09-26 12:18:19 +00:00
parent c2dab4866e
commit 2a75909980
1 changed files with 9 additions and 1 deletions

View File

@ -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):