Skip to content

Commit

Permalink
New way of showing dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
aivarannamaa committed Aug 11, 2018
1 parent 19c75b2 commit e717856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thonnycontrib/calliope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,7 @@
import os.path
from thonnycontrib.micropython import MicroPythonProxy, MicroPythonConfigPage,\
add_micropython_backend
from thonny import get_workbench
from thonny import get_workbench, ui_utils
from thonny.ui_utils import FileCopyDialog
from thonny.misc_utils import find_volume_by_name
import shutil
Expand Down Expand Up @@ -39,7 39,7 @@ def flash_the_firmware(hex_path):

dlg = FileCopyDialog(get_workbench(), hex_path, destination_path,
"Uploading %s to %s" % (os.path.basename(hex_path), mount_path))
dlg.start_and_wait()
ui_utils.show_dialog(dlg)

def load_plugin():
add_micropython_backend("CalliopeMini", CalliopeMiniProxy,
Expand Down

0 comments on commit e717856

Please sign in to comment.