

def init_gui(self):
    self.lineEdit = QtGui.QLineEdit(self)
    action = QtGui.QWidgetAction(self)
    action.setDefaultWidget(self.lineEdit)
    self.addAction(action)
    self.lineEdit.setFocus()
    items = lib.list_scripts()
    items.extend(lib.list_commands())
    completer = QtGui.QCompleter(items, self)
    completer.setCompletionMode(QtGui.QCompleter.PopupCompletion)
    completer.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
    self.lineEdit.setCompleter(completer)
    self.lineEdit.returnPressed.connect(self.accept)

dataset/ETHPy150Open csaez/quicklauncher/quicklauncher/gui.py QuickLauncher.init_gui/original