Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/turtle_blocks_extras/turtle_blocks_extras.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
index dfe8356..8052e3a 100644
--- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py
+++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
@@ -609,6 +609,15 @@ module found in the Journal'))
special_name=_('bottom'),
help_string=_('bottom of a collapsible stack'))
+ palette.add_block('sandwichtop_no_arm_no_label',
+ hidden=True,
+ colors=["#FF0000", "#A00000"],
+ style='collapsible-top-no-arm-no-label',
+ label=[' ', _('click to open')],
+ prim_name='nop',
+ help_string=_('collapsed stack: click to open'))
+
+ # deprecated blocks
palette.add_block('sandwichcollapsed',
hidden=True,
colors=["#FF0000", "#A00000"],
@@ -618,7 +627,6 @@ module found in the Journal'))
help_string=_('bottom block in a collapsed stack: \
click to open'))
- # deprecated blocks
palette.add_block('sandwichtop',
hidden=True,
colors=["#FF0000", "#A00000"],
@@ -637,14 +645,6 @@ click to open'))
prim_name='comment',
help_string=_('top of stack'))
- palette.add_block('sandwichtop_no_arm_no_label',
- hidden=True,
- colors=["#FF0000", "#A00000"],
- style='collapsible-top-no-arm-no-label',
- label=[' ', _('click to open')],
- prim_name='nop',
- help_string=_('top of stack'))
-
def _portfolio_palette(self):
palette = make_palette('portfolio',
@@ -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 """