[Bugs] #240 NORM: [portfolio] named variables cause errors in "+="
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Fri Jan 23 00:04:32 EST 2009
#240: [portfolio] named variables cause errors in "+="
-------------------------+--------------------------------------------------
Reporter: sprinkmeier | Owner: walter
Type: defect | Status: new
Priority: normal | Milestone:
Component: Turtleart | Version: unspecified
Keywords: portfolio |
-------------------------+--------------------------------------------------
Doing the block=equivalent of
{{{
foo = foo + 100
}}}
fails with the error below:
{{{
TypeError: 'str' object is not callable
space, 32<flags 0 of type GdkModifierType>
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/olpc/Activities/TurtleArtPortfolio.activity/tawindow.py in
keypress_cb(area=<gtk.EventBox object at 0x9f86cd4 (GtkEventBox at
0xa3e4340)>, event=<GdkEvent at 0xa3e4390>, tw=<tawindow.taWindow instance
at 0x9f76bcc>)
442 if tw.firstkey: newnum =
selblock.check(keyname,tw.defdict[selblock.name])
443 else: newnum = oldnum+keyname
--> 444 setlabel(tw.selected_block, selblock.check(newnum,oldnum))
global setlabel = <function setlabel at 0xb609317c>
tw.selected_block = <tasprites.taSprite instance at 0xa16cfcc>
selblock.check = ''
newnum = 'None '
oldnum = 'None'
445 tw.firstkey = False
446 return True
}}}
the equivalent 'code' works with box1 and box2
--
Ticket URL: <http://dev.sugarlabs.org/ticket/240>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list