MCPcopy Create free account
hub / github.com/rawpython/remi / on_right_click

Method on_right_click

examples/minefield_app.py:49–55  ·  view source on GitHub ↗

Here with right click the change of cell is changed

(self, widget)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

set_iconMethod · 0.95
check_if_winMethod · 0.80

Tested by

no test coverage detected