Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--images/print.svg50
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py18
2 files changed, 59 insertions, 9 deletions
diff --git a/images/print.svg b/images/print.svg
new file mode 100644
index 0000000..9f48a36
--- /dev/null
+++ b/images/print.svg
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.0"
+ width="767"
+ height="38"
+ id="svg2">
+ <metadata
+ id="metadata17">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs27" />
+ <path
+ d="M 15,37.5 C 11.5,37.5 8,35 5.5,32.5 3,30 0.5,26.5 0.5,23 l 0,-8 c 0,-3.25 2.5,-8.5 5,-10.5 2.5,-2 6,-4 9.5,-4 l 736.5,0 c 2.5,0 7,1 10.5,4 3.5,2.75 4.5,7.5 4.5,10.5 l 0,8 c 0,3.5 -2,7 -4.5,9.5 -2.5,2.5 -6.5,5 -10.5,5 L 15,37.5 z"
+ id="path4"
+ style="fill:#80ffff;fill-opacity:1;fill-rule:evenodd;stroke:#00e0e0;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <g
+ transform="translate(656,65.625)"
+ id="g6">
+ <path
+ d="m 79.5,438.5 c 0,4.5 -3.75,8 -8.5,8 -4.5,0 -8.25,-3.5 -8.25,-8 0,-4.5 3.75,-8.25 8.25,-8.25 4.75,0 8.5,3.75 8.5,8.25 l 0,0 z"
+ transform="translate(24,-485)"
+ id="path8"
+ style="fill:#ff4040;fill-opacity:1;fill-rule:nonzero;stroke:#ff4040;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <text
+ id="text10"
+ style="font-size:12px;font-weight:bold;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans">
+ <tspan
+ x="91"
+ y="-42"
+ id="tspan12"
+ style="font-size:12px">X</tspan>
+ </text>
+ </g>
+</svg>
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
index 325c4c4..8052e3a 100644
--- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py
+++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
@@ -1010,7 +1010,7 @@ bullets'))
if flag and (self.tw.hide or self.tw.step_time == 0):
return
if type(n) == list:
- self.tw.showlabel('status', n)
+ self.tw.showlabel('print', n)
elif type(n) == str or type(n) == unicode:
if n[0:6] == 'media_' and \
n[6:].lower not in media_blocks_dictionary:
@@ -1022,27 +1022,27 @@ bullets'))
except:
debug_output("Couldn't open %s" % (n[6:]),
self.tw.running_sugar)
- self.tw.showlabel('status', dsobject.metadata['title'])
+ self.tw.showlabel('print', dsobject.metadata['title'])
dsobject.destroy()
else:
- self.tw.showlabel('status', n[6:])
+ self.tw.showlabel('print', n[6:])
except IOError:
- self.tw.showlabel('status', n)
+ self.tw.showlabel('print', n)
else:
- self.tw.showlabel('status', n)
+ self.tw.showlabel('print', n)
elif type(n) == int:
- self.tw.showlabel('status', n)
+ self.tw.showlabel('print', n)
else:
- self.tw.showlabel('status',
+ self.tw.showlabel('print',
str(round_int(n)).replace('.', self.tw.decimal_point))
def _prim_printheap(self):
""" Display contents of heap """
heap_as_string = str(self.tw.lc.heap)
if len(heap_as_string) > 80:
- self.tw.showlabel('status', str(self.tw.lc.heap)[0:79] + '…')
+ self.tw.showlabel('print', str(self.tw.lc.heap)[0:79] + '…')
else:
- self.tw.showlabel('status', str(self.tw.lc.heap))
+ self.tw.showlabel('print', str(self.tw.lc.heap))
def _prim_push(self, val):
""" Push value onto FILO """