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

Class EventFilter

tools/triage_tests.py:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80class EventFilter(QtCore.QObject):
81 # A hack keypresses can be handled globally and aren't swallowed
82 # by the individual widgets
83
84 def __init__(self, window):
85 super().__init__()
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 2

__init__Method · 0.85
launchFunction · 0.85

Calls

no outgoing calls

Tested by 2

__init__Method · 0.68
launchFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…