def METHOD_NAME(self, event):
    pyqtgraph.PlotWidget.METHOD_NAME(self, event)
    if self.static_text:
        painter = QtGui.QPainter(self.viewport())
        painter.drawStaticText(70, 10, self.static_text)