Here with right click the change of cell is changed
(self, widget)
| 47 | self.onclick.do(self.check_mine) |
| 48 | |
| 49 | def on_right_click(self, widget): |
| 50 | """ Here with right click the change of cell is changed """ |
| 51 | if self.opened: |
| 52 | return |
| 53 | self.state = (self.state + 1) % 3 |
| 54 | self.set_icon() |
| 55 | self.game.check_if_win() |
| 56 | |
| 57 | def check_mine(self, widget, notify_game=True): |
| 58 | if self.state == 1: |
nothing calls this directly
no test coverage detected