Skip to content

Commit c7158fb

Browse files
authored
Merge pull request #1715 from lesamouraipourpre/portal-calculator
PyPortal Calculator: Update for CP7
2 parents e0e218b + 1681352 commit c7158fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PyPortal_Calculator/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
LABEL_OFFSET = 290
3131

3232
# Make the display context
33-
calc_group = displayio.Group(max_size=25)
33+
calc_group = displayio.Group()
3434
board.DISPLAY.show(calc_group)
3535

3636
# Make a background color fill
@@ -68,7 +68,7 @@ def find_button(label):
6868
return result
6969

7070
border = Rect(20, 8, 280, 35, fill=WHITE, outline=BLACK, stroke=2)
71-
calc_display = Label(font, text="0", color=BLACK, max_glyphs=MAX_DIGITS)
71+
calc_display = Label(font, text="0", color=BLACK)
7272
calc_display.y = 25
7373

7474
clear_button = add_button(0, 0, "AC")

PyPortal_Calculator/titano_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
size=(SCREEN_WIDTH, SCREEN_HEIGHT))
3434

3535
# Make the display context
36-
calc_group = displayio.Group(max_size=25)
36+
calc_group = displayio.Group()
3737
board.DISPLAY.show(calc_group)
3838

3939
# Make a background color fill
@@ -75,7 +75,7 @@ def find_button(label):
7575
return result
7676

7777
border = Rect(int(SCREEN_WIDTH/18), 8, (LABEL_OFFSET), 35, fill=WHITE, outline=BLACK, stroke=2)
78-
calc_display = Label(font, text="0", color=BLACK, max_glyphs=MAX_DIGITS)
78+
calc_display = Label(font, text="0", color=BLACK)
7979
calc_display.y = 25
8080

8181
clear_button = add_button(0, 0, "AC")

0 commit comments

Comments
 (0)