def __init__(self, title): MenuItem.__init__(self) self.id = title self.label = QLabel(title, self) self.baseStyle = self.label.styleSheet() self.selectedStyle = 'QLabel { background-color: blue; }' self.setMinimumHeight(25)