text: # -*- coding: utf-8 -*-
  
  from anima.ui.lib import QtWidgets
  
  
  class ResponsibleInfoWidget(QtWidgets.QWidget):
      """A widget that displays task responsible information
      """
  
      def __init__(self, task=None, parent=None, **kwargs):
          self.task = task
          self.parent = parent
  
          super(ResponsibleInfoWidget, self).__init__(parent=parent)
  
          # storage for UI stuff
          self.vertical_layout = None
          self.header_horizontal_layout = None
          self.responsible_label = None
          self.add_responsible_button = None
          self.responsible_grid_layout = None
  
          self._setup_ui()
  
      def _setup_ui(self):
          """create the UI widgets
          """
          self.vertical_layout = QtWidgets.QVBoxLayout(self)
  
          self.header_horizontal_layout = QtWidgets.QHBoxLayout()
  
          self.responsible_label = QtWidgets.QLabel(self)
          self.responsible_label.setText('Responsible')
          self.responsible_label.setStyleSheet("""
              background-color: gray;
              color: white;
              font-weight: bold;
              padding: 0.5em;
          """)
  
          self.add_responsible_button = QtWidgets.QPushButton(self)
          self.add_responsible_button.setText('+')
          self.add_responsible_button.setStyleSheet("""
              background-color: gray;
              color: white;
              font-weight: bold;
              padding: 0.5em;
          """)
  
          self.header_horizontal_layout.addWidget(self.responsible_label)
          self.header_horizontal_layout.addStretch(1)
          self.header_horizontal_layout.addWidget(self.add_responsible_button)
          self.header_horizontal_layout.setStretch(0, 1)
          self.header_horizontal_layout.setStretch(1, 0)
          self.vertical_layout.addLayout(self.header_horizontal_layout)
  
          self.responsible_grid_layout = QtWidgets.QGridLayout()
          self.vertical_layout.addLayout(self.responsible_grid_layout)
  
          line = QtWidgets.QFrame(self)
          line.setFrameShape(QtWidgets.QFrame.HLine)
          line.setFrameShadow(QtWidgets.QFrame.Sunken)
          self.vertical_layout.addWidget(line)
  
          horizontal_layout = QtWidgets.QHBoxLayout()
          self.vertical_layout.addLayout(horizontal_layout)
  
          review_set_label = QtWidgets.QLabel(self)
          review_set_label.setText('Review Set')
          horizontal_layout.addWidget(review_set_label)
  