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

@ -365,6 +365,14 @@ class Application(FrameWork.Application):
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):