def METHOD_NAME(self, event):
    super(MdiSubWindow, self).METHOD_NAME(event)
    # Renumber the plot windows and emit the changed signal.
    self.mdiArea().renumberPlotWindows()
    self.mdiArea().changed.emit()