def openFontToDos(self, sender): window = ToDoWindow(CurrentFont()) window.open()
def openGlyphToDos(self, sender): window = ToDoWindow(CurrentGlyph()) window.open()
from todo.views import ToDoWindow glyph = CurrentGlyph() if glyph is not None: ToDoWindow(glyph).open()
from todo.views import ToDoWindow font = CurrentFont() if font is not None: ToDoWindow(font).open()