- Timestamp:
- 01/24/09 22:31:03 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/Area51/trunk/Lib/area51Lib/interface/document.py
r346 r360 86 86 self.vanillaWindowController.filePathChangedByUser() 87 87 88 def validateUserInterfaceItem_(self, item): 89 """ 90 This method validates menu items. We only care 91 about the "generate font" menu item, so this 92 only deals with that. 93 """ 94 if item.action() != "compileOTF:": 95 return super(Area51Document, self).validateUserInterfaceItem_(item) 96 # only enable the item if the FDK has been found 97 return NSApp().delegate().haveFDK() 88 98 99 # ----------------- 100 # Menu Item Methods 101 # ----------------- 102 103 def compileOTF_(self, sender): 104 """ 105 This method will be called when the user selects the 106 "Generate Font..." menu item. 107 """ 108 self.vanillaWindowController.compileOTF() 109
Note: See TracChangeset
for help on using the changeset viewer.
