diff --git a/PyPortal_Calculator/code.py b/PyPortal_Calculator/code.py index 8707495d9..5a7186da2 100755 --- a/PyPortal_Calculator/code.py +++ b/PyPortal_Calculator/code.py @@ -30,7 +30,7 @@ LABEL_OFFSET = 290 # Make the display context -calc_group = displayio.Group(max_size=25) +calc_group = displayio.Group() board.DISPLAY.show(calc_group) # Make a background color fill @@ -68,7 +68,7 @@ def find_button(label): return result border = Rect(20, 8, 280, 35, fill=WHITE, outline=BLACK, stroke=2) -calc_display = Label(font, text="0", color=BLACK, max_glyphs=MAX_DIGITS) +calc_display = Label(font, text="0", color=BLACK) calc_display.y = 25 clear_button = add_button(0, 0, "AC") diff --git a/PyPortal_Calculator/titano_code.py b/PyPortal_Calculator/titano_code.py index 68d39bde9..3c33e249f 100644 --- a/PyPortal_Calculator/titano_code.py +++ b/PyPortal_Calculator/titano_code.py @@ -33,7 +33,7 @@ size=(SCREEN_WIDTH, SCREEN_HEIGHT)) # Make the display context -calc_group = displayio.Group(max_size=25) +calc_group = displayio.Group() board.DISPLAY.show(calc_group) # Make a background color fill @@ -75,7 +75,7 @@ def find_button(label): return result border = Rect(int(SCREEN_WIDTH/18), 8, (LABEL_OFFSET), 35, fill=WHITE, outline=BLACK, stroke=2) -calc_display = Label(font, text="0", color=BLACK, max_glyphs=MAX_DIGITS) +calc_display = Label(font, text="0", color=BLACK) calc_display.y = 25 clear_button = add_button(0, 0, "AC")