Turtle (beta)
This lets you embed a turtle widget in appJar.
from appJar import gui
def press(b):
s = app.getTurtleScreen("t1")
t = app.getTurtle("t1")
s.bgcolor("blue")
t.pencolor("white")
for i in range(20):
t.forward(i * 10)
t.right(144)
app=gui()
app.addTurtle("t1")
app.addButton("DRAW", press)
app.go()
-
.addTurtle(title)
Creates a turtle widget. -
.getTurtle(title)
Gets the specified turtle widget. -
.getTurtleScreen(title)
Gets the screen behind the turtle widget.