def main(self):
self.loop = urwid.MainLoop(self.view, self.palette, screen=Screen(),
input_filter=self.input_filter)
self.loop.run()
# on exit write the formula and the result to the console
expression, result = self.get_expression_result()
print "Paste this expression into a new Column Calculator session to continue editing:"
print expression
print "Result:", result
评论列表
文章目录