[Bugs] #1330 UNSP: turtle art clean brick
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Sat Sep 12 08:58:13 EDT 2009
#1330: turtle art clean brick
------------------------------------------+---------------------------------
Reporter: walter | Owner: walter
Type: enhancement | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: Turtleart | Version: Unspecified
Severity: Unspecified | Resolution:
Keywords: | Distribution: Unspecified
Status_field: Unconfirmed |
------------------------------------------+---------------------------------
Comment(by walter):
Good point. I'll look into adding the new block (probably not until
after feature freeze, alas). In the meanwhile, you could try this code
loaded into the programmable brick (the one that loads Python code
from the journal):
# clear canvas without reseting any turtle parameters
rect = gtk.gdk.Rectangle(0,0,lc.tw.turtle.width,lc.tw.turtle.height)
lc.tw.turtle.gc.set_foreground(lc.tw.bgcolor)
lc.tw.turtle.canvas.image.draw_rectangle(lc.tw.turtle.gc, True, *rect)
invalt(lc.tw.turtle,0,0,lc.tw.turtle.width,lc.tw.turtle.height)
return
One thought I had is to make the clean brick just clear the screen
(and stop any media that is playing) and let the start brick do the
reset. I wonder how many TA programs would break? (And I would have to
make the start brick be able to be connected in line. Currently it
only can be positioned at the top of a pile.)
--
Ticket URL: <http://dev.sugarlabs.org/ticket/1330#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list