Set code in the UI

This commit is contained in:
Luke Murphy 2020-07-23 09:53:58 +02:00
parent d8aa708b90
commit 3cfe971acb
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -119,9 +119,10 @@ class DropShip:
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,
) )
line = await self.read_lines(process.stderr, "wormhole receive") line = await self.read_lines(process.stderr, "wormhole receive")
code = line.split()[-1] code = line.split()[-1]
log.info(f"Wormhole send produced {code}") self.drop_label.set_text(code)
# TODO(decentral1se): waits forever... # TODO(decentral1se): waits forever...
await process.wait() await process.wait()