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

Method eventFilter

lib/matplotlib/backends/backend_qt.py:265–268  ·  view source on GitHub ↗
(self, source, event)

Source from the content-addressed store, hash-verified

263 screen.logicalDotsPerInchChanged.connect(self._update_pixel_ratio)
264
265 def eventFilter(self, source, event):
266 if event.type() == QtCore.QEvent.Type.DevicePixelRatioChange:
267 self._update_pixel_ratio()
268 return super().eventFilter(source, event)
269
270 def showEvent(self, event):
271 # Set up correct pixel ratio, and connect to any signal changes for it,

Callers

nothing calls this directly

Calls 2

_update_pixel_ratioMethod · 0.95
typeMethod · 0.80

Tested by

no test coverage detected