Browse Source

Add place holder for pending info

unifiedWindowUI
Luke Murphy 4 years ago
parent
commit
41634265f0
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 11
      dropship.py

11
dropship.py

@ -23,6 +23,14 @@ log = logging.getLogger("dropship")
loop = asyncio.get_event_loop()
class PendingTransfer:
"""A wormhole send waiting for a wormhole receive."""
def __init__(self, code):
"""Object initialisation."""
self.code = code
class DropShip:
"""Drag it, drop it, ship it."""
@ -32,6 +40,7 @@ class DropShip:
self.CSS_FILE = "dropship.css"
self._running = loop.create_future()
self._pending = []
self.init_glade()
self.init_css()
@ -125,6 +134,8 @@ class DropShip:
code = line.split()[-1]
self.drop_label.set_text(code)
self._pending.append(PendingTransfer(code))
# TODO(decentral1se): waits forever...
await process.wait()

Loading…
Cancel
Save