コード例 #1
0
ファイル: etheroll.py プロジェクト: plaenar/EtherollApp
 def on_empty_account_list():
     controller = App.get_running_app().root
     keystore_dir = controller.pyethapp.services.accounts.keystore_dir
     title = "No account found"
     body = "No account found in:\n%s" % keystore_dir
     dialog = Dialog.create_dialog(title, body)
     dialog.open()
コード例 #2
0
ファイル: etheroll.py プロジェクト: plaenar/EtherollApp
 def on_account_none():
     """
     Error dialog on no account selected.
     """
     title = "No account selected"
     body = "Please select an account before rolling"
     dialog = Dialog.create_dialog(title, body)
     dialog.open()
コード例 #3
0
ファイル: etheroll.py プロジェクト: plaenar/EtherollApp
 def dialog_roll_error(exception):
     title = "Error rolling"
     body = str(exception)
     dialog = Dialog.create_dialog(title, body)
     dialog.open()
コード例 #4
0
ファイル: etheroll.py プロジェクト: plaenar/EtherollApp
 def dialog_roll_success(tx_hash):
     title = "Rolled successfully"
     body = "Transaction hash:\n" + tx_hash.hex()
     dialog = Dialog.create_dialog(title, body)
     dialog.open()