def __init__(self, scores, comp): super().__init__() self.initUI(scores, comp) self.setAttribute(Qt.WA_DeleteOnClose)