def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) text = pyperclip.paste() self.setupUi(self, text,error)