Skip to content

Add a "mainloop" coroutine (and function) to Windows #84

@tmontes

Description

@tmontes

Such that the following program skeleton would work, even when turtles and events and animation is included.

import asyncio
import aturtle

w = aturtle.Window()
asyncio.run(w.mainloop())

PS: Maybe we could add the synchronous counterpart with the help of syncer. In that case, the above code would probably call w.async_mainloop() while the sync version would be called with w.sync_mainloop().

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions