MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / eventFilter

Method eventFilter

tools/triage_tests.py:88–93  ·  view source on GitHub ↗
(self, receiver, event)

Source from the content-addressed store, hash-verified

86 self.window = window
87
88 def eventFilter(self, receiver, event):
89 if event.type() == QtCore.QEvent.Type.KeyPress:
90 self.window.keyPressEvent(event)
91 return True
92 else:
93 return super().eventFilter(receiver, event)
94
95
96class Dialog(QtWidgets.QDialog):

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
keyPressEventMethod · 0.45

Tested by

no test coverage detected