Skip to content

Instantly share code, notes, and snippets.

@frankrolf
Created January 22, 2021 17:02
Show Gist options
  • Save frankrolf/7d4b3b05be8540b18335cf055afdc696 to your computer and use it in GitHub Desktop.
Save frankrolf/7d4b3b05be8540b18335cf055afdc696 to your computer and use it in GitHub Desktop.
Robofont version number in menu bar
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