Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/clock.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-03 18:10:01 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-03 18:10:01 (GMT)
commit2c0395fc549d85af3c82dc13f53ca28b2f79b67e (patch)
treeb437514bd670c1916c4cccbbf106ecd4f1f968c0 /clock.py
parentea138c4e06558322cc0f3ef7ddcc35f7fbaf16f3 (diff)
Vary stroke thickness on 15, 5, and 1 min ticks.
Diffstat (limited to 'clock.py')
-rwxr-xr-xclock.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/clock.py b/clock.py
index fa78269..382c061 100755
--- a/clock.py
+++ b/clock.py
@@ -711,11 +711,14 @@ class ClockFace(gtk.DrawingArea):
# Clock ticks
for i in xrange(60):
if i % 15 == 0:
- inset = 0.175 * self._radius
+ inset = 0.11 * self._radius
+ cr.set_line_width(7 * self._line_width)
elif i % 5 == 0:
inset = 0.1 * self._radius
+ cr.set_line_width(5 * self._line_width)
else:
inset = 0.05 * self._radius
+ cr.set_line_width(4 * self._line_width)
cos = math.cos(i * math.pi / 30.0)
sin = math.sin(i * math.pi / 30.0)