MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / mousePressEvent

Method mousePressEvent

python/examples/triage/entropy.py:74–79  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

72 self.update()
73
74 def mousePressEvent(self, event):
75 if event.button() != Qt.LeftButton:
76 return
77 frac = float(event.x()) / self.rect().width()
78 offset = int(frac * self.width * self.block_size)
79 self.view.navigateToFileOffset(offset)

Callers

nothing calls this directly

Calls 3

xMethod · 0.80
widthMethod · 0.45
navigateToFileOffsetMethod · 0.45

Tested by

no test coverage detected