'called by hardware wallets'

def query_choice(self, msg, choices):

    clayout = ChoicesLayout(msg, choices)
    vbox = QVBoxLayout()
    vbox.addLayout(clayout.layout())
    self.exec_layout(vbox, '')
    return clayout.selected_index()
