'Status bar widget for current file read/write mode.'

def __init__(self, parent, statusbar):

    super(ReadWriteStatus, self).__init__(parent, statusbar)
    self.label = QLabel(_('Permissions:'))
    self.readwrite = QLabel()
    self.label.setAlignment(Qt.AlignRight)
    self.readwrite.setFont(self.label_font)
    layout = self.layout()
    layout.addWidget(self.label)
    layout.addWidget(self.readwrite)
    layout.addSpacing(20)
