def run(calendar, server): top = EventWidget(valign='top', calendar=calendar, server=server) loop = urwid.MainLoop(top) loop.run()