Use latest trio-gtk API (no nursery)

This commit is contained in:
Luke Murphy 2020-09-21 00:07:43 +02:00
parent 2a0b6a47ea
commit d680409488
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 5 additions and 3 deletions

View File

@ -145,9 +145,11 @@ class DropShip:
await trio.run_process(command, stderr=PIPE) await trio.run_process(command, stderr=PIPE)
async def main(nursery): async def main():
"""Trio main entrypoint.""" """Trio main entrypoint."""
DropShip(nursery=nursery) async with trio.open_nursery() as nursery:
DropShip(nursery)
await trio.sleep_forever()
trio_gtk.run(main) trio_gtk.run(main)

View File

@ -1,5 +1,5 @@
PyGObject==3.38.0 PyGObject==3.38.0
PyInstaller==3.6 PyInstaller==3.6
magic-wormhole==0.12.0 magic-wormhole==0.12.0
trio-gtk==0.1.1 trio-gtk==1.0.0
trio==0.17.0 trio==0.17.0