'Status bar widget base.'

def __init__(self, parent, statusbar):

    super(StatusBarWidget, self).__init__(parent)
    self.label_font = get_font(option='rich_font')
    self.label_font.setPointSize(self.font().pointSize())
    self.label_font.setBold(True)
    layout = QHBoxLayout()
    layout.setContentsMargins(0, 0, 0, 0)
    self.setLayout(layout)
    statusbar.addPermanentWidget(self)
