def widgets(self):
    patch = self.patch
    widgets = [QTableWidgetItem(('%#x' % patch.addr)), QTableWidgetItem(('%d bytes' % len(patch))), QTableWidgetItem((binascii.hexlify(self.old_bytes).decode('ascii') if self.old_bytes else '<unknown>')), QTableWidgetItem(binascii.hexlify(patch.new_bytes).decode('ascii'))]
    for w in widgets:
        w.setFlags((w.flags() & (~ Qt.ItemIsEditable)))
    return widgets
def widgets(self):
    patch = self.patch
    widgets = [QTableWidgetItem(('%#x' % patch.addr)), QTableWidgetItem(('%d bytes' % len(patch))), QTableWidgetItem((binascii.hexlify(self.old_bytes).decode('ascii') if self.old_bytes else '<unknown>')), QTableWidgetItem(binascii.hexlify(patch.new_bytes).decode('ascii'))]
    for w in widgets:
        w.setFlags((w.flags() & (~ Qt.ItemIsEditable)))
    return widgets