1
0
Fork 0

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>
pull/139/head
Daniel Thompson 2020-12-28 14:32:56 +00:00
parent 0884d22799
commit 60fecc9469
1 changed files with 3 additions and 0 deletions

View File

@ -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):