def __init__(self, instance, parent):
    super(QPatchTable, self).__init__(parent)
    self.setColumnCount(len(self.HEADER))
    self.setHorizontalHeaderLabels(self.HEADER)
    self.setSelectionBehavior(QAbstractItemView.SelectRows)
    self.verticalHeader().setVisible(False)
    self.items = []
    self.instance = instance
    self.instance.patches.am_subscribe(self._watch_patches)
def __init__(self, instance, parent):
    super(QPatchTable, self).__init__(parent)
    self.setColumnCount(len(self.HEADER))
    self.setHorizontalHeaderLabels(self.HEADER)
    self.setSelectionBehavior(QAbstractItemView.SelectRows)
    self.verticalHeader().setVisible(False)
    self.items = []
    self.instance = instance
    self.instance.patches.am_subscribe(self._watch_patches)