From 60fecc946934fc95ed20479e50cc3aacceb58b37 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 28 Dec 2020 14:32:56 +0000 Subject: [PATCH] apps: calc: Draw a closed grid Currently the calculator uses an open grid. It's a matter of taste but I prefer a closed grid. Signed-off-by: Daniel Thompson --- wasp/apps/calc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wasp/apps/calc.py b/wasp/apps/calc.py index 33188ee..35a2309 100644 --- a/wasp/apps/calc.py +++ b/wasp/apps/calc.py @@ -87,6 +87,9 @@ class CalculatorApp(): draw.line(x0=0,y0=(i+1)*47,x1=239,y1=(i+1)*47) # vertical lines draw.line(x0=(i+1)*47,y0=47,x1=(i+1)*47,y1=239) + draw.line(x0=0, y0=47, x1=0, y1=239) + draw.line(x0=239, y0=47, x1=239, y1=239) + draw.line(x0=0, y0=239, x1=239, y1=239) # Draw button label: draw.set_color(wasp.system.theme('accent-hi')) for x in range(5):