def select(self): text = self.lineEdit.text() if text != '': items = text.split(';') dlg = DirectorySelectorDialog(None, items) if dlg.exec_(): text = dlg.value() self.lineEdit.setText(text) self.canFocusOut = True