Skip to content

Using AREPL with GUI's

Almenon edited this page Aug 31, 2018 · 18 revisions

You can use arepl for working with gui's like turtle or many others. Each time you edit the code the gui restarts, so to make it less annoying the typing debounce is automatically increased for a longer delay before execution. Or you can switch to execute on save/keybinding.

I also suggest coding it so the gui appears on the side (not blocking your view of your code), like so:

import turtle

turtle.setup(width=500, height=500, startx=-1, starty=0)

turtle.forward(100)
turtle.left(90)

Note on p5: There are some outstanding bugs that will cause p5 animation library to fail. See https://github.com/Almenon/AREPL-backend/issues/31 and https://github.com/Almenon/AREPL-backend/issues/32