From 445b756e59b8dd7f676fe55c1a89b193717ef554 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 07 Feb 2010 23:38:31 +0000 Subject: fixed dockig problem with old-style arithmetic blocks --- diff --git a/tawindow.py b/tawindow.py index 23a01c1..68a9f01 100644 --- a/tawindow.py +++ b/tawindow.py @@ -821,7 +821,7 @@ class TurtleArtWindow(): else: cons.append(blocks[c]) elif blocks[i].connections == 'check': - # Ugly corner case is to convert old-style booleans op. + # Corner case to convert old-style boolean and arithmetic blocks cons.append(None) # Add an extra connection. for c in data[i][4]: if c is None: @@ -829,19 +829,34 @@ class TurtleArtWindow(): else: cons.append(blocks[c]) # If the boolean op was connected, readjust the plumbing. - if data[i][4][0] is not None: - c = data[i][4][0] - cons[0] = blocks[data[c][4][0]] - c0 = data[c][4][0] - for j, cj in enumerate(data[c0][4]): - if cj == c: - blocks[c0].connections[j] = blocks[i] - if c