def __init__(self): self.conf = Config() self.app = QtGui.QApplication(sys.argv) self.build_icons = BuildIcons() self.app.setWindowIcon(self.build_icons.for_status("Success.Sleeping")) self.app.setQuitOnLastWindowClosed(False) self.ready = False self.timed_event = RepeatTimedEvent(self.app, self.delayed_start, 5) self.timed_event.start() sys.exit(self.app.exec_())