Skip to content

Commit

Permalink
0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Oct 7, 2022
1 parent dc66739 commit 3f2bd32
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions static/default.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,22 @@ async def sitecustomize():

main = appdir / "assets" / "main.py"


# start async top level machinery and add a console.
await TopLevel_async_handler.start_toplevel(platform.shell, console=window.python.config.debug)

# get a relevant list of modules to import
__file__ = main
await TopLevel_async_handler.async_imports(*TopLevel_async_handler.list_imports(None, main))

imports_ready = False

async def imports():
nonlocal imports_ready
await TopLevel_async_handler.async_imports(*TopLevel_async_handler.list_imports(None, main))
imports_ready = True


await imports()

# test/wait user media interaction
if not platform.window.MM.UME:

Expand All @@ -165,8 +174,8 @@ async def sitecustomize():
while not platform.window.MM.UME:
await asyncio.sleep(.1)

screen.fill( (0,0,0,0) )
pygame.display.flip()
screen.fill( (0,0,0,0) )
pygame.display.flip()



Expand Down

0 comments on commit 3f2bd32

Please sign in to comment.