def closeEvent(self, event): """ """ dialog = ExitDialog() if dialog.exec_(): event.accept() else: event.ignore()
def closeEvent(self, event): """ """ #### TODO: exit game properly dialog = ExitDialog() if dialog.exec_(): event.accept() else: event.ignore()
def closeEvent(self, event): """ """ #### TODO: exit game properly dialog = ExitDialog() if dialog.exec_(): event.accept() msg = dict() msg['head'] = DELPLAYER msg['body'] = None self.socket.writeData(dumps(msg)) else: event.ignore()