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

Class _Event

lib/matplotlib/tests/test_backend_qt.py:117–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 qt_mod |= getattr(QtCore.Qt.KeyboardModifier, mod)
116
117 class _Event:
118 def isAutoRepeat(self): return False
119 def key(self): return _to_int(getattr(QtCore.Qt.Key, qt_key))
120
121 monkeypatch.setattr(QtWidgets.QApplication, "keyboardModifiers",
122 lambda self: qt_mod)

Callers 1

test_correct_keyFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_correct_keyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…