class NytowlScreen(ConsoleWidget): """ Represents the view for the Nyt Owl Text Editor """ def __init__(self, editor): """ Initialize the view """ self.headerWidget = HeaderWidget(editor) self.textWidget = TextWidget(editor) def draw(self): """ Draw the Widget """ self.headerWidget.draw() self.textWidget.draw()
def __init__(self, editor): """ Initialize the view """ self.headerWidget = HeaderWidget(editor) self.textWidget = TextWidget(editor)