# this will either work flawlessly, or fail to do anything... # if you're trying to understand this, sorry for the spaghetti code from ui import Ui from scheduler import Scheduler import sys sc = Scheduler() ui = Ui(sc.menu_event, sc.update) sc.set_ui_class(ui) ui.run()