mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
added do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)
This commit is contained in:
parent
c2dab4866e
commit
2a75909980
1 changed files with 9 additions and 1 deletions
|
@ -365,6 +365,14 @@ class Application(FrameWork.Application):
|
||||||
import PyEdit
|
import PyEdit
|
||||||
PyEdit.EditorDefaultSettings()
|
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):
|
class MenuBar(FrameWork.MenuBar):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue