diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-01-22 00:28:06 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-01-22 00:28:06 (GMT) |
commit | 7954dd9b2820d2bb76ec38cbe08a2bc28611311b (patch) | |
tree | 07542d09c25fc317c7a24b50ba090b0bbbffaf47 /talogo.py | |
parent | 90a696e3e66ad1b6a3865218fb19e1093f0337b8 (diff) |
fixed disconnect, but not connect
Diffstat (limited to 'talogo.py')
-rw-r--r-- | talogo.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -609,12 +609,17 @@ def lcNew(tw): return lc -def display_coordinates(tw): +def display_coordinates(tw, a=-1, b=-1, d=-1): if hasattr(tw, "activity"): if hasattr(tw.activity, "coordinates_label"): - x = round_int(tw.turtle.xcor/tw.coord_scale) - y = round_int(tw.turtle.ycor/tw.coord_scale) - h = round_int(tw.turtle.heading) + if a==-1 and b==-1 and d == -1: + x = round_int(tw.turtle.xcor/tw.coord_scale) + y = round_int(tw.turtle.ycor/tw.coord_scale) + h = round_int(tw.turtle.heading) + else: + x = a + y = b + h = d tw.activity.coordinates_label.set_text(_("xcor") + " = " + \ str(x) + " " + \ _("ycor") + " = " + \ |