def __init__(self, win, device):
    super(QtHandlerBase, self).__init__()
    self.clear_signal.connect(self.clear_dialog)
    self.error_signal.connect(self.error_dialog)
    self.message_signal.connect(self.message_dialog)
    self.passphrase_signal.connect(self.passphrase_dialog)
    self.word_signal.connect(self.word_dialog)
    self.query_signal.connect(self.win_query_choice)
    self.yes_no_signal.connect(self.win_yes_no_question)
    self.status_signal.connect(self._update_status)
    self.win = win
    self.device = device
    self.dialog = None
    self.done = threading.Event()
def __init__(self, win, device):
    super(QtHandlerBase, self).__init__()
    self.clear_signal.connect(self.clear_dialog)
    self.error_signal.connect(self.error_dialog)
    self.message_signal.connect(self.message_dialog)
    self.passphrase_signal.connect(self.passphrase_dialog)
    self.word_signal.connect(self.word_dialog)
    self.query_signal.connect(self.win_query_choice)
    self.yes_no_signal.connect(self.win_yes_no_question)
    self.status_signal.connect(self._update_status)
    self.win = win
    self.device = device
    self.dialog = None
    self.done = threading.Event()