Marshalls behaviour depending on location of the mouse click

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