def __init__(self, MainWindow, parent=None): super(ClipThread, self).__init__(parent) self.window = MainWindow pyperclip.copy('') self.last_clipboard = '' self.active = True