Ticket #240 (closed defect: fixed)
[portfolio] named variables cause errors in "+="
| Reported by: | sprinkmeier | Owned by: | walter |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.86 |
| Component: | Turtleart | Version: | Unspecified |
| Severity: | Minor | Keywords: | portfolio |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | Assigned |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
