code: def mousePressEvent(self, event):
          
          if event.x() < 50:
              super(PlotMenuBar, self).mousePressEvent(event)
          else:
              # ignore to allow proper functioning of float
              event.ignore()
docs: Marshalls behaviour depending on location of the mouse click