diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-28 14:32:56 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-29 08:59:53 (GMT) |
| commit | 60fecc946934fc95ed20479e50cc3aacceb58b37 (patch) | |
| tree | 6060d2734158ce2e91e219b3ba5c5e3f3a4cc2f6 /wasp | |
| parent | 0884d22799c980e0063f81084a019682a9c8a796 (diff) | |
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 <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp')
| -rw-r--r-- | wasp/apps/calc.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |
