From 7954dd9b2820d2bb76ec38cbe08a2bc28611311b Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 22 Jan 2010 00:28:06 +0000 Subject: fixed disconnect, but not connect --- (limited to 'talogo.py') diff --git a/talogo.py b/talogo.py index bbb91d9..072da45 100644 --- a/talogo.py +++ b/talogo.py @@ -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") + " = " + \ -- cgit v0.9.1