Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-25 03:07:11 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-25 03:07:11 (GMT)
commit51aa00596f2f7710826f35a68ad4c44fc92fd7d5 (patch)
tree36f728503eb302ea1e2193d459eec72223251dae
parent524d173f3b7a6887f61b0d2f644d9103ea39feb7 (diff)
Revert "Corrected minute and second hand lengths (second hand should be longer than minute)."
This reverts commit 524d173f3b7a6887f61b0d2f644d9103ea39feb7.
-rwxr-xr-xclock.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/clock.py b/clock.py
index 0a30391..48ff674 100755
--- a/clock.py
+++ b/clock.py
@@ -789,9 +789,9 @@ class ClockFace(gtk.DrawingArea):
cr.arc(self._center_x, self._center_y, 4 * self._line_width, 0, 2 * math.pi)
cr.fill_preserve()
cr.move_to(self._center_x, self._center_y)
- cr.line_to(int(self._center_x + self._radius * 0.8 *
+ cr.line_to(int(self._center_x + self._radius * 0.7 *
math.sin(math.pi / 30 * minutes)),
- int(self._center_y + self._radius * 0.8 *
+ int(self._center_y + self._radius * 0.7 *
- math.cos(math.pi / 30 * minutes)))
cr.stroke()
@@ -802,9 +802,9 @@ class ClockFace(gtk.DrawingArea):
cr.arc(self._center_x, self._center_y, 3 * self._line_width, 0, 2 * math.pi)
cr.fill_preserve()
cr.move_to(self._center_x, self._center_y)
- cr.line_to(int(self._center_x + self._radius * 0.7 *
+ cr.line_to(int(self._center_x + self._radius * 0.8 *
math.sin(math.pi / 30 * seconds)),
- int(self._center_y + self._radius * 0.7 *
+ int(self._center_y + self._radius * 0.8 *
- math.cos(math.pi / 30 * seconds)))
cr.stroke()