added do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)
This commit is contained in:
parent
c2dab4866e
commit
2a75909980
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue