def __init__(self): QThread.__init__(self) from hotkey import Hotkey self.hotkey = Hotkey(self.handle_hotkey)