def confirm(self):
    'Selection completed, set the value and close'
    o_dict = self.enters
    for (index, item) in enumerate(self._labels_):
        o_dict[item.text()] = self.fields[index].text()
    self.close()
Selection completed, set the value and close
def confirm(self):
    
    o_dict = self.enters
    for (index, item) in enumerate(self._labels_):
        o_dict[item.text()] = self.fields[index].text()
    self.close()