def lose(self): import Final self.Form = Final.MyDialog() self.fui = Final.Ui_Dialog() self.fui.setupUi(self.Form) self.fui.Exit.clicked.connect(self.out) self.fui.Rematch.clicked.connect(self.rematch) self.Form.exec()
def draw(self): import Final self.Form = Final.MyDialog() self.fui = Final.Ui_Dialog() self.fui.setupUi(self.Form) self.fui.Exit.clicked.connect(self.out) self.fui.label.setPixmap(QPixmap(".\\img/draw.png")) self.fui.Rematch.clicked.connect(self.rematch) self.Form.exec()