code: def mousePressEvent(self, event):
          
          # Raise the main application window on click
          self.parent.raise_()
          self.raise_()
  
          if event.button() == Qt.RightButton:
              pass
docs: override Qt method