Created
January 22, 2021 17:02
-
-
Save frankrolf/7d4b3b05be8540b18335cf055afdc696 to your computer and use it in GitHub Desktop.
Robofont version number in menu bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AppKit | |
from mojo.roboFont import version | |
menu = AppKit.NSApp().mainMenu() | |
roboFontItem = menu.itemWithTitle_("RoboFont") | |
if roboFontItem: | |
# roboFontItem.submenu().setTitle_("RoboFont %s THIS IS THE OLD VERSION, WATCH OUT FRANK!" % version) | |
roboFontItem.submenu().setTitle_("RoboFont %s" % version) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment