

def popUp(self, text='', move=True):
    self.edit.setText(text)
    self.edit.setSelection(0, len(text))
    self.edit.setFocus(Qt.PopupFocusReason)
    if move:
        self.move(QCursor.pos())
    return (self.edit.text() if self.exec_() else None)

dataset/ETHPy150Open tzutalin/labelImg/libs/labelDialog.py LabelDialog.popUp/original