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()
def mousePressEvent ( self , event ) : if event . x ( ) < 50 : super ( PlotMenuBar , self ) . mousePressEvent ( event ) else : event . ignore ( )
Marshalls behaviour depending on location of the mouse click