(self)
| 116 | self.tcp_socket.sendall(packSocketData(data)) |
| 117 | '''催促''' |
| 118 | def urge(self): |
| 119 | if self.tcp_socket and self.is_gaming and (self.winner is None) and (self.whoseround == self.opponent_player_color): |
| 120 | data = {'type': 'action', 'detail': 'urge'} |
| 121 | self.tcp_socket.sendall(packSocketData(data)) |
| 122 | self.urge_sound.play() |
| 123 | '''鼠标左键点击事件-玩家回合''' |
| 124 | def mousePressEvent(self, event): |
| 125 | if (self.tcp_socket is None) or (event.buttons() != QtCore.Qt.LeftButton) or (self.winner is not None) or (self.whoseround != self.player_color) or (not self.is_gaming): |
nothing calls this directly
no test coverage detected